2002-08-25 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2
3 * regcache.h (register_offset_hack): Declare.
4 (regcache_cooked_read_using_offset_hack): Declare.
5 (regcache_cooked_write_using_offset_hack): Declare.
6
7 * regcache.c (register_offset_hack): New function.
8 (regcache_cooked_read_using_offset_hack): New function.
9 (regcache_cooked_write_using_offset_hack): New function.
10 (regcache_dump): Check that the registers, according to their
11 offset, are packed hard against each other.
12 (cooked_xfer_using_offset_hack): New function.
13
14 2002-08-25 Andrew Cagney <ac131313@redhat.com>
15
16 * regcache.c (struct regcache_descr): Add field register_type.
17 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
18 in as a parameter
19 (init_regcache_descr): Initialize register_type. Pass the descr
20 to init_legacy_regcache_descr. Use register_type instead of
21 REGISTER_VIRTUAL_TYPE.
22 (register_type): New function.
23 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
24 * regcache.h (register_type): Declare.
25
26 2002-08-25 Andrew Cagney <ac131313@redhat.com>
27
28 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
29 instead of deprecated_store_return_value. Fix fallout from
30 2002-08-23 Andrew Cagney <cagney@redhat.com>.
31
32 2002-08-25 Andrew Cagney <ac131313@redhat.com>
33
34 * regcache.c (max_register_size): New function.
35 (init_legacy_regcache_descr): Ensure that max_register_size is
36 large enough for REGISTER_VIRTUAL_SIZE.
37 * regcache.h (max_register_size): Declare.
38
39 2002-08-24 Andrew Cagney <ac131313@redhat.com>
40
41 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
42 store_return_value.
43 (e500_extract_return_value): Change type of valbuf pointer to
44 void.
45
46 2002-08-24 Mark Kettenis <kettenis@gnu.org>
47
48 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
49 workaround.
50
51 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
52 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
53 long long) to prevent compiler warning on 64-bit systems.
54
55 2002-08-23 Andrew Cagney <cagney@redhat.com>
56
57 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
58 (DEPRECATED_STORE_RETURN_VALUE): New method.
59 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
60 * gdbarch.h, gdbarch.c: Re-generate.
61
62 * values.c (set_return_value): Pass current_regcache to
63 STORE_RETURN_VALUE.
64 * arch-utils.h (legacy_store_return_value): Declare.
65 * arch-utils.c (legacy_store_return_value): New function.
66 (legacy_extract_return_value): Update parameters.
67
68 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
69 STORE_RETURN_VALUE.
70 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
71 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
72 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
73 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
74 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
75 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
76 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
77 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
78 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
79 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
80
81 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
82 * i386-tdep.c (i386_extract_return_value): Update.
83 * arch-utils.c (legacy_extract_return_value): Update.
84 * frv-tdep.c (frv_gdbarch_init): Update.
85 * cris-tdep.c (cris_gdbarch_init): Update.
86 * d10v-tdep.c (d10v_gdbarch_init): Update.
87 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
88 * m68k-tdep.c (m68k_gdbarch_init): Update.
89 * mcore-tdep.c (mcore_gdbarch_init): Update.
90 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
91 * s390-tdep.c (s390_gdbarch_init): Update.
92 * sparc-tdep.c (sparc_gdbarch_init): Update.
93 * sh-tdep.c (sh_gdbarch_init): Update.
94 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
95 * v850-tdep.c (v850_gdbarch_init): Update.
96 * avr-tdep.c (avr_gdbarch_init): Update.
97 * ia64-tdep.c (ia64_gdbarch_init): Update.
98 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
99 * vax-tdep.c (vax_gdbarch_init): Update.
100 * alpha-tdep.c (alpha_gdbarch_init): Update.
101 * arm-tdep.c (arm_gdbarch_init): Update.
102 * mips-tdep.c (mips_gdbarch_init): Update.
103 * i386-tdep.c (i386_gdbarch_init): Update.
104
105 2002-08-23 Andrew Cagney <ac131313@redhat.com>
106
107 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
108 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
109
110 2002-08-24 Mark Kettenis <kettenis@gnu.org>
111
112 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
113 problems.
114
115 2002-08-23 Joel Brobecker <brobecker@gnat.com>
116
117 * infrun.c (handle_inferior_event): Move a comment outside of a
118 function call, in order to avoid indent reformatting this part
119 of the code in an unreadable way.
120
121 2002-08-23 Grace Sainsbury <graces@redhat.com>
122
123 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
124 when breakpoints fail. Move general breakpoint error messages to
125 insert_breakpoints.
126 * breakpoint.c (insert_breakpoints): Change warnings when
127 breakpoints are nto inserted to specify the type. Remove call to
128 memory_error when hardware breakpoints can't be inserted. Remove
129 multiple calls to warning so all messages are sent to the user at
130 once.
131 (delete_breakpoints): Make insert error messsages more explicit.
132
133 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
134
135 * ChangeLog: Move gdbserver entries after GDB 5.2 to
136 gdbserver/ChangeLog.
137
138 2002-08-23 Mark Kettenis <kettenis@gnu.org>
139
140 * i386-tdep.c: Include "objfiles.h".
141 (i386_svr4_init_abi): Set in_solib_call_trampoline and
142 skip_trampoline_code.
143 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
144 (CPLUS_MARKER): Define to '.'.
145
146 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
147 member.
148 (linux_corefile_thread_callback): Increase args->num_notes.
149 (linux_make_note_section): Initialize thread_args.num_notes, and
150 use it to determine whether notes for any threads were created.
151
152 2002-08-23 Donn Terry <dterry@microsoft.com>
153
154 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
155 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
156 and PCUNKILL.
157 (write_with_trace): Conditionalize out the switch branch handling
158 PCSHOLD if the corresponding macro is not defined. Likewise for
159 PRSABORT and PRSTOP.
160 This change will be needed by the Interix port.
161
162 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
163
164 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
165 ev_offset fields.
166 (skip_prologue): Add support for BookE/e500 instructions.
167 (e500_extract_return_value): New function.
168 (frame_get_saved_regs): Add support for saving ev registers and
169 pseudo gpr's.
170 (e500_store_return_value): New function.
171 (rs6000_gdbarch_init): Move up default intializations of
172 deprecated_extract_return_value and store_return_value. Overwrite
173 init of store_return_value with e500 specific version.
174 Set extract_return_value for e500.
175
176 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
177
178 * blockframe.c (generic_call_dummy_register_unwind): Use
179 regcache_cooked_read to catch cases in which the variable is
180 stored in a pseudo register.
181
182 2002-08-22 Andrew Cagney <cagney@redhat.com>
183
184 * NEWS: Mention that the i960 has been made obsolete.
185 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
186 i960-tdep.c
187 (remote-nrom.o): Obsolete target.
188 (remote-nindy.o, i960-tdep.o): Ditto.
189 * remote-nrom.c: Make file obsolete.
190 * remote-nindy.c, remote-vx960.c: Ditto.
191 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
192 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
193 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
194 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
195 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
196 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
197 i960-*-vxworks* obsolete.
198 * MAINTAINERS: Note that the i960 is obsolete.
199
200 2002-08-21 Corinna Vinschen <vinschen@redhat.com
201
202 * aix-thread.c (aix_thread_detach): Disable thread debugging on
203 detach to allow reinitialization.
204
205 2002-08-22 Andrew Cagney <ac131313@redhat.com>
206
207 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
208 attempt).
209
210 2002-08-22 Jim Blandy <jimb@redhat.com>
211
212 * coffread.c (coff_symfile_read): Don't try to read the line
213 number table from disk if the image file doesn't have a symbol
214 table; we'll never actually look at the info anyway, and Windows
215 ships DLL's with bogus file offsets for the line number data.
216
217 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
218
219 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
220 an e500 executable.
221
222 2002-08-21 Michael Snyder <msnyder@redhat.com>
223
224 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
225 (MSYMBOL_SIZE): Replace macro with function.
226 (DEFAULT_MIPS_TYPE): Delete unused macro.
227 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
228 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
229
230 2002-08-21 Jim Blandy <jimb@redhat.com>
231
232 * valops.c (value_cast): Simplify and correct logic for doing a
233 static cast from a pointer to a base class to a pointer to a
234 derived class.
235
236 2002-08-21 Andrew Cagney <ac131313@redhat.com>
237
238 * infcmd.c (default_print_registers_info): Replace
239 do_registers_info.
240 (registers_info): Use gdbarch_print_registers_info instead of
241 DO_REGISTERS_INFO.
242 * inferior.h (default_print_registers_info): Replace
243 do_registers_info.
244 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
245 (DO_REGISTERS_INFO): Change to a predicate function.
246 * gdbarch.h, gdbarch.c: Regenerate.
247
248 2002-08-21 Keith Seitz <keiths@redhat.com>
249
250 * gdb-events.sh: Add target-changed event.
251 * gdb-events.c: Regenerated.
252 * gdb-events.c: Regenerated.
253 * valops.c (value_assign): Add target-changed event notification
254 to inlval_register, lval_memory, and lval_reg_frame_relative.
255
256 2002-08-21 Joel Brobecker <brobecker@gnat.com>
257
258 * NEWS: Add an entry regarding the improvement of the next/step
259 operation on Alpha Tru64 multi-processor machines.
260
261 2002-08-21 Andrew Cagney <ac131313@redhat.com>
262
263 * Makefile.in: Update dependencies for mi/ cli/ and tui/
264 directores.
265 * Makefile.in: Update all _h macro definitions.
266 * Makefile.in (install-gdbtk): Move to install section.
267 (rdi-share/libangsd.a): Move to end of file.
268
269 2002-08-19 Andrew Cagney <ac131313@redhat.com>
270
271 * frame.c (frame_register_unwind): When a register, set addrp to
272 the register's byte.
273
274 2002-08-20 Michael Snyder <msnyder@redhat.com>
275
276 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
277 used locally, so move them from the target machine header to here.
278 (mips_set_processor_type, mips_register_name, mips32_next_pc,
279 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
280 Make static.
281 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
282
283 2002-08-20 Andrew Cagney <cagney@redhat.com>
284
285 * NEWS: Mention that the Apollo line was made obsolete.
286 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
287 m68*-hp-hpux* obsolete.
288 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
289 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
290 * buildsym.c (make_blockvector): Make static.
291 * buildsym.h (make_blockvector): Make extern declaration obsolete.
292 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
293 (ALLDEPFILES): Remove dstread.c.
294 (dstread.o): Obsolete make rule.
295 * dstread.c: Makefile obsolete.
296 * dst.h: Ditto.
297 * config/m68k/hp300hpux.mt: Ditto.
298 * config/m68k/hp300hpux.mh: Ditto.
299 * config/m68k/hp300bsd.mt: Ditto.
300 * config/m68k/hp300bsd.mh: Ditto.
301 * config/m68k/apollo68b.mt: Ditto.
302 * config/m68k/apollo68v.mh: Ditto.
303 * config/m68k/apollo68b.mh: Ditto.
304
305 2002-08-20 Michael Snyder <msnyder@redhat.com>
306
307 * mips-tdep.c (mips_in_return_stub): Make static.
308 (mips_gdbarch_init): Set in_solib_return_trampoline.
309 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
310
311 2002-08-20 Michael Snyder <msnyder@redhat.com>
312
313 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
314 * gdbarch.c, gdbarch.h: Regenerate.
315 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
316 Add.
317 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
318
319 2002-08-20 Michael Snyder <msnyder@redhat.com>
320
321 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
322 (mips_gdbarch_init): Set skip_trampoline_code,
323 in_solib_call_trampoline.
324 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
325 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
326
327 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
328
329 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
330
331 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
332 vector type for ev registers.
333 (e500_pseudo_register_read): New function.
334 (e500_pseudo_register_write): New function.
335 (e500_dwarf2_reg_to_regnum): New function.
336 (PPC_UISA_NOFP_SPRS): New macro.
337 (PPC_EV_REGS): New macro.
338 (PPC_GPRS_PSEUDO_REGS): New macro.
339 (registers_e500): New register set for e500.
340 (variants): Add e500 variant.
341 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
342 before setting architectural dependent variations. Initialize ev
343 registers numbers. Add case for e500 architecture. Set the
344 number of pseudo registers.
345
346 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
347
348 * rs6000-tdep.c: Clean up comments.
349
350 2002-08-20 Andrew Cagney <cagney@redhat.com>
351
352 * h8300-tdep.c: Re-indent file.
353
354 2002-08-20 Jim Blandy <jimb@redhat.com>
355
356 * Makefile.in (LDFLAGS): Allow the configure script to establish a
357 default for this.
358
359 2002-08-20 Keith Seitz <keiths@redhat.com>
360
361 * breakpoints.c (watch_command_1): Use internal breakpoint
362 when setting a watchpoint_scope breakpoint.
363
364 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
365
366 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
367 (build_builtin_type_vec64i): Ditto.
368 (build_builtin_type_vec128): Ditto.
369 (build_builtin_type_vec128i): Ditto.
370
371 2002-08-19 Michael Snyder <msnyder@redhat.com>
372
373 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
374 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
375 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
376 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
377 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
378 CALL_DUMMY_ADDRESS): Delete.
379 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
380 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
381 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
382 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
383 push_return_address.
384 (mips_register_raw_size, mips_eabi_use_struct_convention,
385 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
386 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
387 mips_init_extra_frame_info, mips_eabi_push_arguments,
388 mips_n32n64_push_arguments, mips_push_return_address,
389 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
390 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
391
392 2002-08-19 Michael Snyder <msnyder@redhat.com>
393
394 * mips-tdep.c (mips_frame_num_args): New function.
395 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
396 frame_saved_pc, frame_args_address, frame_locals_address,
397 frame_num_args, and frame_args_skip.
398 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
399 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
400 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
401 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
402
403 2002-08-20 Michael Snyder <msnyder@redhat.com>
404
405 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
406 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
407 * mips-tdep.c (mips_store_struct_return): New function.
408 (mips_extract_struct_value_address): New function.
409 (mips_gdbarch_init): Set store_struct_return and
410 extract_struct_value_address.
411
412 2002-08-20 David Carlton <carlton@math.stanford.edu>
413
414 * dwarf2read.c (dwarf2_build_psymtabs): Check that
415 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
416 (read_file_scope): Check that line_header is nonzero before
417 decoding macro information.
418
419 2002-08-20 Mark Kettenis <kettenis@gnu.org>
420
421 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
422 flag the general-purpose registers as floating-point on targets
423 that don't support the floating-point registers.
424
425 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
426
427 * rs6000-tdep.c (altivec_register_p): Delete.
428 (rs6000_do_altivec_registers): Delete.
429 (rs6000_altivec_registers_info): Delete.
430 (rs6000_do_registers_info): Delete.
431 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
432 (rs6000_gdbarch_init): Remove setting of do_registers_info.
433
434 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
435
436 * infcmd.c (do_registers_info): Print vector registers in hex
437 format only.
438 (print_vector_info): Check that printing registers
439 makes sense.
440 (print_float_info): Ditto.
441
442 2002-08-20 Andrew Cagney <ac131313@redhat.com>
443
444 * mips-tdep.c (mips_gdbarch_init): Update.
445 (mips_o32_extract_return_value): Rewrite.
446 (mips_o32_store_return_value): Rewrite.
447 (mips_o32_xfer_return_value): New function.
448 (mips_xfer_register): Tweak debug print message. Allow for
449 buf_offset when dumping the value transfered.
450
451 2002-08-20 Andrew Cagney <ac131313@redhat.com>
452
453 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
454 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
455 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
456 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
457 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
458
459 2002-08-14 Michael Snyder <msnyder@redhat.com>
460
461 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
462
463 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
464
465 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
466 register.
467 (P): New macro to define a register as a pseudo register.
468 (R, R4, R8, R16, FR32, R64, R0): Updated.
469 (struct variant): Add new fields for number of pseudo registers
470 and number of total registers.
471 (tot_num_registers): New macro replacing....
472 (num_registers): ...deleted macro.
473 (num_registers): New function.
474 (num_pseudo_registers): New function.
475 (variants): Update all variants to intialize new fields correctly.
476 Postpone initialization of number of pseudo regs and real regs.
477 (init_variants): New function.
478 (rs6000_gdbarch_init): Initialize variants. Update calculation of
479 registers offsets.
480
481 2002-08-19 David Carlton <carlton@math.stanford.edu>
482
483 * valops.c (search_struct_field): Change error message to treat
484 return value of 0 from value_static_field as meaning that field is
485 optimized out.
486 (value_struct_elt_for_reference): Ditto.
487 * values.c (value_static_field): Treat an unresolved location the
488 same as a nonexistent symbol. Fix PR gdb/635.
489 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
490 enclosed. Fix PR gdb/574.
491 * MAINTAINERS: Add self to Write After Approval list.
492
493 2002-08-19 Andrew Cagney <ac131313@redhat.com>
494
495 * mips-tdep.c (mips_xfer_register): New function.
496 (mips_n32n64_extract_return_value): Rewrite.
497 (mips_gdbarch_init): For N32 and N64, set extract_return_value
498 instead of deprecated_extract_return_value.
499
500 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
501
502 * rs6000-tdep.c (TDEP): Delete macro.
503 (branch_dest): Replace use of TDEP macro with its body.
504 (rs6000_pop_frame): Ditto.
505 (rs6000_push_arguments): Ditto.
506 (rs6000_skip_trampoline_code): Ditto.
507 (rs6000_frame_saved_pc): Ditto.
508 (rs6000_frame_chain): Ditto.
509 (rs6000_register_name): Ditto.
510 (rs6000_register_byte): Ditto.
511 (rs6000_register_raw_size): Ditto.
512 (rs6000_register_virtual_type): Ditto.
513 (rs6000_register_convertible): Ditto.
514 (rs6000_convert_from_func_ptr_addr): Ditto.
515
516 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
517
518 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
519 conditionally.
520 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
521 MIPS_LINUX_JB_ELEMENT_SIZE.
522 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
523 for MAX_REGISTER_RAW_SIZE arrays.
524 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
525 MIPS_LINUX_JB_ELEMENT_SIZE.
526
527 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
528
529 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
530
531 2002-08-19 Aidan Skinner <aidan@velvet.net>
532
533 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
534 ada-valprint.c ada-tasks.c.
535 (YYFILES): Add ada-exp.y.
536 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
537 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
538 (ada-exp.tab.o): New target.
539
540 2002-08-18 Andrew Cagney <ac131313@redhat.com>
541
542 * regcache.c (regcache_xfer_part): New function.
543 (regcache_raw_read_part): New function.
544 (regcache_raw_write_part): New function.
545 (regcache_cooked_read_part): New function.
546 (regcache_cooked_write_part): New function.
547 * regcache.h (regcache_raw_read_part): Declare.
548 (regcache_raw_write_part): Declare.
549 (regcache_cooked_read_part): Declare.
550 (regcache_cooked_write_part): Declare.
551
552 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
553
554 * remote.c (remote_open_1): Add async_p.
555 (remote_async_open_1): Delete.
556 (open_remote_target): Delete.
557 (remote_open, extended_remote_open): Update calls to remote_open_1.
558 (remote_async_open, extended_remote_async_open): Call
559 remote_open_1 instead of remote_async_open_1.
560
561 2002-08-19 Mark Kettenis <kettenis@gnu.org>
562
563 * blockframe.c: Fix a few coding standard violations.
564
565 2002-08-19 Mark Kettenis <kettenis@gnu.org>
566
567 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
568 here from ...
569 * config/i386/tm-i386sco5.h: ... here. File removed.
570 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
571
572 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
573 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
574 (TM_FILE): Set to tm-i386.h.
575 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
576 * config/i386/tm-i386v.h: Remove file.
577 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
578 instead of "i386/tm-i386v.h".
579 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
580 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
581 "i386/tm-i386v.h".
582 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
583 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
584 "i386/tm-i386.h".
585
586 2002-08-18 Mark Kettenis <kettenis@gnu.org>
587
588 * config/i386/nm-i386v.h: Add protection against
589 multiple-inclusion.
590 (i386_register_u_addr): Remove prototype.
591 (register_u_addr): New prototype.
592 (REGISTER_U_ADDR): Redefine accordingly.
593 * i386v-nat.c: Improve several comments.
594 (i386_register_u_addr): Change signature and rename to
595 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
596 ubase variable.
597
598 2002-08-18 Andrew Cagney <ac131313@redhat.com>
599
600 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
601 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
602 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
603 deprecated_extract_return_value.
604 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
605 rename mips_o32o64_push_arguments.
606 (mips_gdbarch_init): Update.
607 (mips_extract_return_value): Delete.
608 (mips_o32_extract_return_value): Clone mips_extract_return_value.
609 (mips_o64_extract_return_value): Clone mips_extract_return_value.
610 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
611 (mips_n32n64_extract_return_value): Clone
612 mips_extract_return_value.
613 (mips_store_return_value): Delete.
614 (mips_o32_store_return_value): Clone mips_store_return_value.
615 (mips_o64_store_return_value): Clone mips_store_return_value.
616 (mips_eabi_store_return_value): Clone mips_store_return_value.
617 (mips_n32n64_store_return_value): Clone mips_store_return_value.
618
619 2002-08-18 Aidan Skinner <aidan@velvet.net>
620
621 * ada-lang.c: Use gdb_string.h instead of <string.h>.
622 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
623
624 2002-08-18 Aidan Skinner <aidan@velvet.net>
625
626 * ada-lang.c: Run through gdb_indent.sh.
627 * ada-lang.h: Run through gdb_indent.sh.
628 * ada-tasks.c: Run through gdb_indent.sh.
629 * ada-typeprint.c: Run through gdb_indent.sh.
630 * ada-valprint.c: Run through gdb_indent.sh.
631
632 2002-08-18 Andrew Cagney <ac131313@redhat.com>
633
634 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
635 ABI.
636
637 2002-08-18 Mark Kettenis <kettenis@gnu.org>
638
639 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
640
641 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
642 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
643
644 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
645 write_register_gen instead of write_register_bytes.
646
647 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
648 i[3456]-*-osf1mk* configurations have been made obsolete.
649 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
650 i[3456]86-*-osf1mk* hosts obsolete.
651 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
652 targets obsolete.
653 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
654 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
655 config/i386/i386m3.mt, config/i386/nm-m3.h,
656 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
657 config/i386/i386mk.mh, config/i386/i386mk.mt,
658 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
659 obsolete.
660 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
661 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
662 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
663
664 2002-08-18 Andrew Cagney <ac131313@redhat.com>
665
666 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
667 (hppa_value_returned_from_stack): Declare.
668 (hppa_extract_return_value): Declare.
669 * config/pa/hppa.mt: New file.
670 * configure.tgt: Recognize hppa*-*-*.
671 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
672
673 2002-08-18 Mark Kettenis <kettenis@gnu.org>
674
675 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
676 comment.
677
678 2002-08-17 Mark Kettenis <kettenis@gnu.org>
679
680 * top.c (gdb_rl_operate_and_get_next): Make sure
681 operate-and-get-next functions correctly even when the history
682 list is completely filled.
683
684 2002-08-18 Andrew Cagney <ac131313@redhat.com>
685
686 * MAINTAINERS (Target Instruction Set Architectures): Rename
687 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
688 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
689 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
690 already listed under Host/Native.
691
692 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
693 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
694 mips*-*-*.
695
696 2002-08-17 Andrew Cagney <ac131313@redhat.com>
697
698 * config/ia64/ia64.mt: New file.
699 * config/alpha/alpha.mt: New file.
700 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
701 ia64-linux-gnu. Mention that ia64-elf is broken.
702 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
703
704 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
705
706 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
707 generic_func_frame_valid instead of func_frame_valid.
708
709 2002-08-16 Joel Brobecker <brobecker@gnat.com>
710
711 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
712 procfs appears to be broken when debugging on multi-processor
713 machines. So enable software single stepping in order to avoid
714 using the procfs interface to do next/step operations, using
715 internal breakpoints instead.
716
717 * infrun.c (handle_inferior_event): Readjust the stop_pc by
718 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
719 make this pc address equal to the value it would have if the
720 system stepping capability was used. Also set a new flag used
721 to ensure that we don't readjust the PC one more time later.
722
723 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
724 address by DECR_PC_AFTER_BREAK when software single step is
725 in use for this architecture, as this has already been taken
726 care of in handle_inferior_event().
727
728 2002-08-16 Joel Brobecker <brobecker@gnat.com>
729
730 * infrun.c (handle_inferior_event): Minor reformatting, to make
731 a rather long condition expression easier to read.
732
733 2002-08-16 Andrew Cagney <ac131313@redhat.com>
734
735 * Makefile.in (gdbtk.o): Move to end of file.
736 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
737 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
738 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
739 (gdbtk-wrapper.o, gdbres.o): Ditto.
740
741 2002-08-16 Andrew Cagney <ac131313@redhat.com>
742
743 * Makefile.in (copying.o): Separate out compile rule.
744 (hpux-thread.o, procfs.o, signals.o): Ditto.
745 (v850ice.o, z8k-tdep.o): Ditto.
746 (tui-file.o): Move to TUI section.
747 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
748 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
749
750 2002-08-16 Joel Brobecker <brobecker@gnat.com>
751
752 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
753 skip_trampoline_code, for better namespace-proofing.
754
755 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
756
757 2002-08-16 Joel Brobecker <brobecker@gnat.com>
758
759 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
760
761 2002-08-16 Joel Brobecker <brobecker@gnat.com>
762
763 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
764 signal, check whether we hit a breakpoint before checking for a
765 single step breakpoint. Otherwise, GDB fails to notice that a
766 breakpoint has been hit when stepping onto a breakpoint.
767
768 2002-08-16 Keith Seitz <keiths@redhat.com>
769
770 * gdb-events.sh (clear_gdb_event_hooks): New function.
771 * gdb-events.c: Regenerate.
772 * gdb-events.h: Regenerate.
773
774 2002-08-16 Andrew Cagney <ac131313@redhat.com>
775
776 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
777 not_a_sw_breakpoint.
778 * breakpoint.h (bpstat_stop_status): Add parameter names.
779
780 2002-08-16 Grace Sainsbury <graces@redhat.com>
781
782 * remote.c (remote_insert_hw_breakpoint)
783 (remote_remove_hw_breakpoint): Fix calculation of length field
784 for Z-packet.
785
786 2002-08-15 Michael Snyder <msnyder@redhat.com>
787
788 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
789 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
790 (supply_fpregset): Ditto.
791
792 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
793 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
794 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
795 (TARGET_READ_SP): Delete.
796 (DO_REGISTERS_INFO): Delete.
797 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
798 Delete.
799 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
800 from macros to functions.
801
802 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
803 (mips_register_convertible, mips_register_convert_to_virtual,
804 mips_register_convert_to_raw): Make static.
805 (mips_read_sp): New function.
806 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
807 (mips_do_registers_info): Make static.
808 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
809 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
810 (mips_register_convert_from_type, mips_register_convert_to_type):
811 New functions.
812 (mips_gdbarch_init): Set up function_start_offset,
813 register_virtual_size, pc_in_sigtramp.
814
815 2002-08-15 Andrew Cagney <ac131313@redhat.com>
816
817 * infcmd.c (vector_info): New function.
818 (_initialize_infcmd): Add command "info vector".
819 (print_vector_info): New function.
820
821 * gdbarch.sh (PRINT_VECTOR_INFO): New method
822 * gdbarch.h, gdbarch.c: Regenerate.
823
824 2002-08-15 Andrew Cagney <ac131313@redhat.com>
825
826 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
827 ``print_all''. Only print vector registers when ``print_all''.
828
829 2002-08-15 Andrew Cagney <ac131313@redhat.com>
830
831 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
832 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
833
834 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
835 Add `args' parameter.
836 * gdbarch.h, gdbarch.c: Regenerate.
837
838 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
839
840 * infcmd.c (float_info): Call print_float_info.
841 (print_float_info): New function. By default, print the
842 floating-point registers.
843
844 * arch-utils.h (default_print_float_info): Delete declaration.
845 * arch-utils.c (default_print_float_info): Delete function.
846
847 2002-08-16 Mark Kettenis <kettenis@gnu.org>
848
849 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
850 out define.
851
852 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
853 FRAME.
854
855 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
856 * configure.host: Make i[3456]86-*-aix host obsolete.
857 * configure.tgt: Make i[3456]86-*-aix target obsolete.
858 * config/i386/i386aix.mh, config/i386/i386aix.mt,
859 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
860 config/i386/xm-i386aix.h: Make files obsolete.
861 * i386aix-nat.c: Make file obsolete.
862 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
863 (i386aix-nat.o): Make target obsolete.
864
865 * config/i386/nm-gnu.h: Removed.
866 * config/i386/nm-i386gnu.h: New file.
867 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
868 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
869 Moved here from ...
870 * config/i386/tm-i386gnu.h: ... here. Removed.
871 * config/i386/xm-i386gnu.h: Removed.
872 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
873 (NAT_FILE): Set to nm-i386gnu.h.
874 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
875 * i386-tdep.c: New file.
876 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
877 (i386gnu-tdep.o): Specify dependencies.
878
879 2002-08-15 Mark Kettenis <kettenis@gnu.org>
880
881 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
882 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
883 Adjust a few comments to reflect reality a bit closer.
884 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
885 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
886 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
887 target_insert_watchpoint, target_remove_watchpoint):
888 Move defines to ...
889 * config/i386/nm-i386sco5.h: ... here.
890 (kernel_u_size): Add prototype. Improve a few comments and add
891 protection against multiple inclusion.
892
893 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
894 out define.
895
896 * uw-thread.c (SP_ARG0): Define if not already defined.
897 * config/i386/tm-i386.h (SO_ARG0): Remove define.
898
899 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
900
901 * config/i386/tm-i386.h: Don't include "regcache.h".
902
903 * i387-tdep.h (i387_print_float_info): New prototype.
904 * i387-tdep.c (print_i387_value, print_i387_ext,
905 print_i387_status_word, print_i387_control_word): Add `struct
906 ui_file *' argument and use it for output.
907 (i387_print_float_info): Renamed from i387_float_info. Add
908 `struct gdbarch *' and `struct ui_file *' arguments and use the
909 latter for output.
910 * i386-tdep.c: Include "i387-tdep.h".
911 (i386_gdbarch_init): Set print_float_info.
912 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
913 (FLOAT_INFO): Remove define.
914
915 2002-08-13 Michael Snyder <msnyder@redhat.com>
916
917 * mips-tdep.c (mips_push_arguments): Rename to
918 mips_eabi_push_arguments, and tune for EABI.
919 (MIPS_REGS_HAVE_HOME_P): Delete.
920 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
921 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
922 Delete references to mips_regs_have_home_p.
923
924 2002-08-14 Keith Seitz <keiths@redhat.com>
925
926 * Makefile.in (install-gdbtk): Create insight plugin directory.
927 Install plugins.tcl file.
928
929 2002-08-14 Keith Seitz <keiths@redhat.com>
930
931 * configure.in: Move SUBDIRS to near top of the file so that
932 --enable options may add things to it.
933 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
934 * configure: Regenerate.
935
936 2002-08-13 Michael Snyder <msnyder@redhat.com>
937
938 * mips-tdep.c (mips_o32o64_push_arguments): New function,
939 cloned from mips_push_arguments, tuned for o32/o64 ABI.
940 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
941
942 2002-08-13 Andrew Cagney <ac131313@redhat.com>
943
944 * vax-tdep.c (vax_get_saved_register): Delete function.
945 (vax_gdbarch_init): Update.
946 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
947 (ns32k_gdbarch_init): Update.
948 * alpha-tdep.c (alpha_get_saved_register): Delete function.
949 (alpha_gdbarch_init): Update.
950
951 2002-08-13 Andrew Cagney <cagney@redhat.com>
952
953 * regcache.c (init_regcache_descr): Overallocate the
954 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
955 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
956 nr_raw_registers.
957 (set_register_cached): Add range checking assertions. Use
958 current_regcache.
959
960 2002-08-13 Mark Kettenis <kettenis@gnu.org>
961
962 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
963 numbers for MMX registers.
964
965 2002-08-13 Andrew Cagney <cagney@redhat.com>
966
967 * i386-tdep.c (i386_gdbarch_init): Use
968 generic_unwind_get_saved_register.
969
970 2002-08-13 Kevin Buettner <kevinb@redhat.com>
971
972 * procfs.c (procfs_can_use_hw_breakpoint): New function.
973 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
974 target vector.
975 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
976 Delete. Add comment regarding this now-deleted target method.
977
978 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
979
980 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
981 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
982 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
983 real PC and the page number (if it's within the memory bank window).
984 (m68hc11_pseudo_register_write): Likewise when saving.
985 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
986 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
987 (m68hc11_register_raw_size): And use 32-bit for it.
988 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
989 16K memory bank is used by the prog; also use the virtual pc.
990
991 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
992
993 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
994 (m68hc11_gdbarch_init): Install it in gdbarch.
995 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
996 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
997 (MSYMBOL_SIZE): New for documentation.
998 (insn_return_kind): Enum to specify how a function returns.
999 (frame_extra_info): Cleanup and record the return mode.
1000 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1001 register in address computation.
1002 (m68hc11_get_return_insn): New to obtain the return instruction used
1003 by the function.
1004 (m68hc11_frame_init_saved_regs): Take into account the return
1005 instruction used by the function for far and interrupt functions.
1006 (m68hc11_init_extra_frame_info): Take into account page register.
1007 (m68hc11_frame_args_address): Adjust according to the return mode.
1008 (show_regs): Print page register only when it's used.
1009
1010 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1011
1012 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1013 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1014 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1015 registers.
1016 (m68hc11_register_raw_size): Likewise.
1017
1018 2002-08-13 Andrew Cagney <cagney@redhat.com>
1019
1020 * i386-tdep.c (i386_register_name): Handle mmx registers.
1021 (mmx_regnum_p): New function.
1022 (i386_mmx_names): New array.
1023 (mmx_num_regs): New variable.
1024 (i386_pseudo_register_read): New function.
1025 (i386_pseudo_register_write): New function.
1026 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1027
1028 * regcache.c (regcache_raw_read_unsigned): New function.
1029 (regcache_raw_read_signed): New function.
1030 * regcache.h (regcache_raw_read_unsigned): Declare.
1031 (regcache_raw_read_signed): Declare.
1032
1033 2002-08-13 Andrew Cagney <cagney@redhat.com>
1034
1035 * regcache.c (regcache_raw_read_as_address): Delete function.
1036 (regcache_cooked_read_signed): New function.
1037 (regcache_cooked_read_unsigned): New function.
1038 * regcache.h (regcache_cooked_read_signed): Declare.
1039 (regcache_cooked_read_unsigned): Declare.
1040 (regcache_raw_read_as_address): Delete declaration.
1041
1042 * blockframe.c (generic_read_register_dummy): Use
1043 regcache_cooked_read_unsigned.
1044 * i386-tdep.c (i386_extract_struct_value_address): Use
1045 regcache_cooked_read_unsigned.
1046
1047 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1048
1049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1050 double sizes according to ELF ABI flags.
1051 (gdbarch_tdep): Record elf_flags.
1052
1053 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1054
1055 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1056 (m6812_prolog): They can appear in 68HC12 function prologue.
1057 (m68hc11_frame_chain): Cleanup.
1058
1059 2002-08-12 Andrew Cagney <cagney@redhat.com>
1060
1061 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1062 declarations.
1063 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1064 (i386_linux_register_raw_size): Delete function.
1065 (i386_linux_init_abi): Update.
1066 * i386-tdep.c (i386_register_raw_size): Delete function.
1067 (i386_register_byte): Delete function.
1068 (i386_gdbarch_init): Update.
1069 (i386_register_size): Delete array.
1070 (i386_register_offset): Delete array.
1071
1072 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1073 (REGISTER_RAW_SIZE): Delete macro.
1074 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1075 (REGISTER_BYTE): Delete macro.
1076
1077 2002-08-11 Aidan Skinner <aidan@velvet.net>
1078
1079 * ada-lang.c (ada_lookup_partial_symbol)
1080 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1081 prototype names so that grep ^func works properly.
1082
1083 * ada-lang.c (ada_array_element_type)
1084 (ada_lookup_partial_symbol): Fix typos in parameter list.
1085
1086 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1087 Fix prototype names so that grep ^func works properly.
1088
1089 2002-08-10 Andrew Cagney <cagney@redhat.com>
1090 Elena Zannoni <ezannoni@redhat.com>
1091 Martin M. Hunt <hunt@redhat.com>
1092
1093 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1094 (build_builtin_type_vec128i): Set the vector bit.
1095 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1096 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1097 (build_builtin_type_vec64): New function.
1098 (build_builtin_type_vec64i): New function.
1099 (build_gdbtypes): Initialize builtin_type_vec64 and
1100 builtin_type_vec64i.
1101
1102 2002-08-09 Andrew Cagney <cagney@redhat.com>
1103
1104 * regcache.c (regcache_dump): Compare the register offset
1105 with REGISTER_BYTE.
1106 * arch-utils.c (generic_register_byte): New function.
1107 * arch-utils.h (generic_register_byte): Declare.
1108 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1109 * gdbarch.h, gdbarch.c: Regenerate.
1110
1111 2002-08-09 Andrew Cagney <cagney@redhat.com>
1112
1113 * regcache.c: Include "gdbcmd.h"
1114 (_initialize_regcache): Add commands "maintenance print
1115 registers", "maintenance print raw-registers" and "maintenance
1116 print cooked-registers".
1117 (enum regcache_dump_what): Define.
1118 (dump_endian_bytes): New function.
1119 (regcache_dump): New function.
1120 (regcache_print): New function.
1121 (maintenance_print_registers): New function.
1122 (maintenance_print_raw_registers): New function.
1123 (maintenance_print_cooked_registers): New function.
1124 * Makefile.in (regcache.o): Update dependencies.
1125
1126 2002-08-09 Michael Snyder <msnyder@redhat.com>
1127
1128 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1129 (mips_push_arguments): Correct some comments. Use paddr_nz
1130 for printing addresses in debug output. Replace static
1131 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1132 (mips_n32n64_push_arguments): New function, cloned from
1133 mips_push_arguments and tuned for the n32/n64 ABI.
1134 (mips_push_register): Buffer needs dynamic allocation.
1135 (mips_print_register): Ditto.
1136 (do_gp_register_row): Ditto.
1137 (mips_store_return_value): Ditto.
1138 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1139
1140 2002-08-09 Don Howard <dhoward@redhat.com>
1141
1142 * memattr.c (mem_info_command): Print special case of upper bound
1143 as max CORE_ADDR + 1.
1144
1145 2002-08-08 Michael Snyder <msnyder@redhat.com>
1146
1147 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1148 returns structs by ref if they're too big to fit in two registers.
1149
1150 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1151
1152 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1153 saved regs value.
1154 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1155 mips_find_saved_regs().
1156 (mips_pop_frame): Likewise.
1157
1158 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1159
1160 * blockframe.c (frame_saved_regs_register_unwind): Revise
1161 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1162 frames are in use.
1163
1164 2002-08-09 Grace Sainsbury <graces@redhat.com>
1165
1166 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1167 T-packets; the 'a' is not taken as a register number.
1168 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1169 (remote_stopped_data_address): New functions; add to target
1170 vector.
1171 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1172 prototypes to match other implementations of this
1173 function. replace integer argument with pointer -- the length
1174 field in the Z-packet is the length of what is pointed to or 1 if
1175 pointer is null. Add to target vector.
1176 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1177 target vector.
1178
1179 From Mark Salter:
1180 * remote.c (remote_wait): Add support to extract optional
1181 watchpoint information from T-packet. Ignore unrecognized
1182 optional info in T-packet.
1183 (remote_async_wait): Ditto.
1184
1185 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1186
1187 * cli/cli-dump.c: Change fopen modes to use binary open modes
1188 as defined in include/fopen-bin.h throughout.
1189
1190 2002-08-08 Michael Snyder <msnyder@redhat.com>
1191
1192 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1193
1194 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1195
1196 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1197 assertion failure by returning early after a warning.
1198
1199 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1200
1201 * mips-tdep.c (mips_find_saved_regs): Make static.
1202 (mips_frame_init_saved_regs): New function.
1203 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1204 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1205 (mips_find_saved_regs): Delete declaration.
1206
1207 2002-08-08 Grace Sainsbury <graces@redhat.com>
1208
1209 * remote.c (remote_wait, remote_async_wait): Change
1210 thread_num from int to ULONGEST.
1211 (unpack_varlen_hex): Change result parameter from
1212 int * to ULONGEST *.
1213
1214 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1215
1216 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1217 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1218 powerpc*-*-*.
1219 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1220
1221 2002-08-08 Andrew Cagney <cagney@redhat.com>
1222
1223 * gcore.c (override_derive_stack_segment): Delete variable.
1224 (preempt_derive_stack_segment): Delete function.
1225 (derive_stack_segment): Delete function.
1226 (default_derive_stack_segment): Renamed to derive_stack_segment.
1227 (override_derive_heap_segment): Delete variable.
1228 (preempt_derive_heap_segment): Delete function.
1229 (derive_heap_segment): Delete function.
1230 (default_derive_heap_segment): Rename to derive_heap_segment.
1231
1232 2002-08-06 Michael Snyder <msnyder@redhat.com>
1233
1234 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1235 * mips-tdep.c (mips_EABI_use_struct_convention,
1236 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1237 New functions. (mips_use_struct_convention): Delete.
1238 (mips_gdbarch_init): set use_gdbarch_convention.
1239
1240 2002-08-06 Michael Snyder <msnyder@redhat.com>
1241
1242 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1243 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1244 mips_o32_reg_struct_has_addr): New functions.
1245 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1246
1247 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1248
1249 * regcache.c (pseudo_register): Delete function.
1250 (fetch_register): Delete function.
1251 (store_register): Delete function.
1252 (regcache_raw_read, legacy_read_register_gen): Use
1253 target_fetch_registers instead of fetch_register.
1254 (legacy_write_register_gen, regcache_raw_write): Use
1255 target_store_register instead of store_register.
1256 (write_register_bytes): Ditto.
1257
1258 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1259 (STORE_PSEUDO_REGISTER): Delete.
1260 * gdbarch.h, gdbarch.c: Regenerate.
1261
1262 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1263
1264 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1265 write dump file binary.
1266
1267 2002-08-05 Michael Snyder <msnyder@redhat.com>
1268
1269 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1270 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1271 (mips_gdbarch_init): Set N32 target to be mips64.
1272
1273 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1274
1275 * frame.c (find_saved_register): Break out of loop once saved
1276 register address is found. Don't mention sparc in loop comment
1277 anymore.
1278
1279 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1280
1281 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1282 mips_default_saved_regsize to 8.
1283
1284 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1285
1286 * gcore.c: Do not include <sys/procfs.h>.
1287 * Makefile.in (gcore.o): Update dependencies.
1288
1289 2002-08-06 Andrew Cagney <cagney@redhat.com>
1290
1291 * configure.tgt: Make arc-*-* obsolete.
1292 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1293 * MAINTAINERS: Make arc-elf obsolete.
1294 * arc-tdep.c: Make file obsolete.
1295 * config/arc/arc.mt: Ditto.
1296 * config/arc/tm-arc.h: Ditto.
1297
1298 2002-08-05 Theodore A. Roth <troth@verinet.com>
1299
1300 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1301
1302 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1303
1304 * mcore-tdep.c (mcore_gdbarch_init): Use
1305 generic_unwind_get_saved_register instead of
1306 generic_get_saved_register.
1307 * v850-tdep.c (v850_gdbarch_init): Ditto.
1308 * frv-tdep.c (frv_gdbarch_init): Ditto.
1309 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1310 * s390-tdep.c (s390_gdbarch_init): Ditto.
1311 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1312 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1313 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1314
1315 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1316
1317 * objfiles.h: Add missing #include "symfile.h"
1318
1319 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1320
1321 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1322
1323 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1324 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1325 of FIELD_BITSIZE.
1326
1327 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1328
1329 * NEWS: Cleanup and nitpick.
1330
1331 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1332
1333 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1334
1335 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1336
1337 * Makefile.in (gdbtk-bp.o): Update dependencies.
1338 (gdbtk-register.o): Ditto.
1339 (gdbtk-varobj.o): Ditto.
1340
1341 2002-08-03 Andrew Cagney <cagney@redhat.com>
1342
1343 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1344 m68hc11_fetch_pseudo_register.
1345 (m68hc11_pseudo_register_write): Replace
1346 m68hc11_store_pseudo_register.
1347 (m68hc11_gdbarch_init): Update.
1348
1349 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1350
1351 * gdbarch.sh: Include "gdb_string.h".
1352 * gdbarch.c: Regenerate.
1353
1354 * regcache.c: Include "gdb_string.h".
1355 * ax-general.c: Ditto.
1356 * varobj.c: Ditto.
1357 * std-regs.c: Ditto.
1358 * fbsd-proc.c: Ditto.
1359 * thread.c: Ditto.
1360
1361 * Makefile.in (regcache.o): Update dependencies.
1362 (thread.o, gdbarch.o): Ditto.
1363 (ax-general.o, gdbarch.o): Ditto.
1364 (varobj.o, std-regs.o): Ditto.
1365 (fbsd-proc.o): Specify dependencies.
1366
1367 2002-08-02 Andrew Cagney <cagney@redhat.com>
1368
1369 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1370 regnum.
1371 (regcache_cooked_write): Ditto.
1372
1373 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1374
1375 * regcache.c (regcache_cooked_read): New function.
1376 (regcache_cooked_write): New function.
1377 (read_register_gen): Rewrite using regcache_cooked_read.
1378 (write_register_gen): Rewrite using regcache_cooked_write.
1379
1380 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1381 Declare.
1382
1383 2002-08-02 Andrew Cagney <cagney@redhat.com>
1384
1385 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1386 Replace the architecture methods register_read and register_write.
1387 * gdbarch.h, gdbarch.c: Regenerate.
1388 * regcache.c (init_regcache_descr): Update.
1389 (read_register_gen): Update.
1390 (write_register_gen): Update.
1391 (supply_register): Update comment.
1392
1393 * sh-tdep.c (sh_gdbarch_init): Update.
1394 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1395 `regcache' and `gdbarch' parameters. Make `buffer' a void
1396 pointer. Update code.
1397 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1398 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1399 void pointer. Update code.
1400 (sh64_register_write): Delete.
1401 (sh4_register_read): Delete.
1402 (sh64_register_read): Delete.
1403 (sh4_register_write): Delete.
1404 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1405 void pointer, `to' parameter a void pointer.
1406 (sh_sh64_register_convert_to_raw): Ditto.
1407
1408 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1409
1410 * mips-tdep.c (mips_register_virtual_type): Use architecture
1411 invariant return values.
1412
1413 2002-08-01 Andrew Cagney <cagney@redhat.com>
1414
1415 * linux-proc.c: Include "gdb_string.h".
1416 * Makefile.in (linux-proc.o): Update dependency list.
1417
1418 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1419
1420 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1421 comment.
1422
1423 2002-08-01 Grace Sainsbury <graces@redhat.com>
1424
1425 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1426 to_insert_watchpoint, to_remove_watchpoint,
1427 to_stopped_by_watchpoint, to_stopped_data_address,
1428 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1429 target vecctor. Define their corresponding macros so they call
1430 them.
1431
1432 * target.c: Add default and debug versions of for
1433 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1434 to_insert_watchpoint, to_remove_watchpoint,
1435 to_stopped_by_watchpoint, to_stopped_data_address,
1436 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1437
1438 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1439
1440 * mips-tdep.c (mips_register_virtual_type): New function.
1441 (mips_gdbarch_init): Register mips_register_virtual_type()
1442 with gdbarch machinery.
1443 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1444 this file instead of tm-bigmips.h.
1445 (MIPS_REGSIZE): Delete this macro.
1446 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1447 multiarch version in mips-tdep.c will be found.
1448
1449 2002-08-01 Andrew Cagney <cagney@redhat.com>
1450
1451 * NEWS: Menion that CHILL has been made obsolete.
1452
1453 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1454 * stabsread.c (read_range_type): Ditto.
1455 * gdbtypes.h: Ditto.
1456 * language.c (binop_type_check): Ditto.
1457 (binop_result_type): Ditto.
1458 (integral_type): Ditto.
1459 (character_type): Ditto.
1460 (string_type): Ditto.
1461 (boolean_type): Ditto.
1462 (structured_type): Ditto.
1463 (lang_bool_type): Ditto.
1464 (binop_type_check): Ditto.
1465 * language.h (_LANG_chill): Ditto.
1466 * dwarfread.c (set_cu_language): Ditto.
1467 * dwarfread.c (CHILL_PRODUCER): Ditto.
1468 * dwarfread.c (handle_producer): Ditto.
1469 * expression.h (enum exp_opcode): Ditto.
1470 * eval.c: Ditto for comments.
1471 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1472 * expprint.c (print_subexp): Ditto.
1473 (print_subexp): Ditto.
1474 * valops.c (value_cast): Ditto.
1475 (search_struct_field): Ditto.
1476 * value.h (COERCE_VARYING_ARRAY): Ditto.
1477 * symfile.c (init_filename_language_table): Ditto.
1478 (add_psymbol_with_dem_name_to_list): Ditto.
1479 * valarith.c (value_binop): Ditto.
1480 (value_neg): Ditto.
1481 * valops.c (value_slice): Ditto.
1482 * symtab.h (union language_specific): Ditto.
1483 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1484 (SYMBOL_DEMANGLED_NAME): Ditto.
1485 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1486 * defs.h (enum language): Ditto.
1487 * symtab.c (got_symtab): Ditto.
1488 * utils.c (fprintf_symbol_filtered): Ditto.
1489
1490 * ch-typeprint.c: Make file obsolete.
1491 * ch-valprint.c: Make file obsolete.
1492 * ch-lang.h: Make file obsolete.
1493 * ch-exp.c: Make file obsolete.
1494 * ch-lang.c: Make file obsolete.
1495
1496 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1497 CHILL_LIB.
1498 (TARGET_FLAGS_TO_PASS): Ditto.
1499 (CHILLFLAGS): Obsolete.
1500 (CHILL): Obsolete.
1501 (CHILL_FOR_TARGET): Obsolete.
1502 (CHILL_LIB): Obsolete.
1503 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1504 ch-valprint.c.
1505 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1506 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1507 ch-lang.o.
1508 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1509 targets.
1510
1511 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1512
1513 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1514 This does not change anything at the moment, but will be helpful
1515 later when full Ada support is integrated.
1516
1517 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1518
1519 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1520 help message.
1521
1522 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1523
1524 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1525 and save it in a local variable. Use variable in later test.
1526
1527 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1528
1529 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1530 test. (Thanks to Daniel Jacobowitz.)
1531
1532 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1533
1534 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1535 (mips_abi_strings): Add "n64".
1536 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1537
1538 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1539
1540 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1541 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1542
1543 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1544
1545 * utils.c (host_pointer_to_address, address_to_host_pointer):
1546 Use gdb_assert() instead of explicit call to internal_error().
1547
1548 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1549
1550 * Makefile.in (rs6000-nat.o): Update dependencies.
1551
1552 From Nicholas Duffek:
1553 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1554 (aix-thread.o): New rule.
1555 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1556 * config/powerpc/aix432.mh: New file.
1557
1558 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1559
1560 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1561 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1562 (fetch_core_registers, ppc_linux_supply_gregset)
1563 (ppc_linux_supply_fpregset): New functions.
1564 (ppc_linux_regset_core_fns): New.
1565 (_initialize_ppc_linux_tdep): Call add_core_fns.
1566 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1567 and ppc_linux_supply_gregset.
1568 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1569 (supply_fpregset): Call ppc_linux_supply_fpregset.
1570 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1571 corelow.o.
1572 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1573
1574 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1575
1576 * symtab.c (lookup_symbol): Demangle before lowercasing.
1577
1578 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1579
1580 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1581 declaration.
1582 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1583 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1584 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1585 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1586 "gdb_string.h".
1587 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1588 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1589 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1590 (avr-tdep.o, mon960-rom.o): Ditto.
1591 (aout_stabs_gnu_h): Define.
1592 (symtab_h): Remove $(gdb_obstack_h).
1593
1594 2002-07-30 Jim Blandy <jimb@redhat.com>
1595
1596 Patch from David Carlton <carlton@math.stanford.edu>:
1597 * gdbinit.in: Move the `dir' commands that add GDB's own source
1598 directory to the search path to the end, so that the `gdb' source
1599 directory will be searched first.
1600
1601 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1602
1603 * gdb_obstack.h: New file.
1604 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1605 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1606 * objfiles.h: Include "gdb_obstack.h".
1607 * Makefile.in (gdb_obstack_h): Define.
1608 (symtab_h): Add $(gdb_obstack_h).
1609 (objfiles_h): Add $(gdb_obstack_h).
1610
1611 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1612 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1613 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1614 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1615 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1616 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1617 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1618 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1619
1620 * Makefile.in (bcache.o): Update dependencies.
1621 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1622 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1623 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1624 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1625 (stabsread.o, symfile.o, symmisc.o): Ditto.
1626 (symtab.o, typeprint.o, macroexp.o): Ditto.
1627 (macrotab.o, mdebugread.o): Ditto.
1628 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1629 (coff_ecoff_h, aout_aout64_h): Define.
1630 (aout_stabs_gnu_h, libaout_h): Define.
1631
1632 2002-07-29 Andrew Cagney <cagney@redhat.com>
1633
1634 * regcache.c (struct regcache_descr): Rename nr_registers to
1635 nr_cooked_registers. Revise comments describing the structure
1636 member fields.
1637 (init_regcache_descr): Update.
1638 (init_legacy_regcache_descr): Update.
1639 (read_register_gen, write_register_gen): When a cooked register in
1640 the raw register range, directly access the value from the raw
1641 register cache.
1642
1643 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1644
1645 * z8k-tdep.c: Do not include "obstack.h".
1646 * h8300-tdep.c, h8500-tdep.c: Ditto.
1647 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1648 * valprint.c, v850-tdep.c: Ditto.
1649 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1650 * mn10200-tdep.c: Ditto.
1651
1652 * Makefile.in (z8k-tdep.o): Update dependencies.
1653 (m68hc11-tdep.o, valprint.o): Ditto.
1654 (v850-tdep.o, d10v-tdep.o): Ditto.
1655 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1656 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1657 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1658 (sh_opc_h, gdb_sim_sh_h): Define.
1659 (elf_sh_h, elf_bfd_h): Define.
1660 (opcode_m68hc11_h): Define.
1661 (OPCODES_SRC, OPCODES_DIR): define.
1662 (OPCODES): Use $(OPCODES_DIR).
1663 (gdb_sim_d10v_h): Rename sim_d10v_h.
1664 (gdb_sim_arm_h): Rename sim_arm_h.
1665
1666 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1667
1668 * utils.c (host_pointer_to_address, address_to_host_pointer):
1669 Change internal_error() message to indicate function responsible
1670 for the error.
1671
1672 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1673
1674 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1675 calls to local_hex_string_custom().
1676
1677 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1678
1679 * irix5-nat.c: Move IRIX shared library support from here...
1680 * solib-irix.c: ...to here. Revised substantially to work with
1681 generic solib framework.
1682
1683 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1684 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1685 * mips-irix-tdep.c: New file.
1686
1687 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1688 (mips-irix-tdep.o, solib-irix.o): New rules.
1689 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1690 solib-irix.o.
1691 * config/mips/irix6.mt (TDEPFILES): Likewise.
1692 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1693
1694 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1695
1696 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1697 disabled (via ``#if 0'') includes.
1698
1699 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1700
1701 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1702 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1703 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1704 Add support for the fpscr register.
1705 * rs6000-nat.c (regmap, fetch_inferior_registers)
1706 (store_inferior_registers, fetch_core_registers): Likewise.
1707
1708 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1709
1710 * rs6000-nat.c (language.h): Include.
1711 (special_regs): Delete this array.
1712 (regmap): New function.
1713 (fetch_register, store_register): Use regmap() to map gdb
1714 register numbers to ptrace register numbers. Also, use
1715 outputs from regmap() to make decisions regarding type of
1716 ptrace() call to make. In particular, don't compare against
1717 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1718 (fetch_inferior_registers, store_inferior_registers): Where
1719 possible, obtain register numbers from tdep struct. Don't
1720 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1721 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1722 (LAST_UISA_SP_REGNUM): Delete.
1723
1724 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1725
1726 * rs6000-nat.c (ppc-tdep.h): Include.
1727 (fetch_registers, store_register, fetch_core_registers): Don't
1728 access registers[] directly. Instead, use supply_register() or
1729 regcache_collect() as appropriate.
1730 (find_toc_address): Format hex address with local_hex_string().
1731
1732 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1733
1734 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1735 bfd/elf32-frv.c.
1736
1737 2002-07-24 Tom Tromey <tromey@redhat.com>
1738
1739 * jv-exp.y: Marked all strings with _().
1740 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1741 internal_error.
1742 (MethodInvocation, CastExpression, parse_number, yyerror,
1743 java_type_from_name, push_expression_name, yylex): Typo fixes.
1744
1745 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1746
1747 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1748 (tee_file_flush, tee_file_write, tee_file_fputs)
1749 (tee_file_isatty): New.
1750 * ui-file.h (tee_file_new): Add prototype.
1751
1752 2002-07-24 Aidan Skinner <aidan@velvet.net>
1753
1754 * ada-lang.c: Change k&r style function definitions to prototyped
1755 form.
1756 * ada-typeprint.c: Change k&r style function definitions to prototyped
1757 form.
1758 * ada-valprint.c: Change k&r style function definitions to prototyped
1759 form.
1760
1761 2002-07-24 Andrew Cagney <cagney@redhat.com>
1762
1763 * README: Remove reference to remote-bug.
1764 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1765 remote-bug.c.
1766 (m88k-nat.o): Delete rule.
1767 (m88k-tdep.o): Delete rule.
1768 (remote-bug.o): Delete rule.
1769 * MAINTAINERS: Mark as obsolete.
1770 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1771 * m88k-tdep.c: Make file obsolete.
1772 * config/m88k/m88k.mh: Ditto.
1773 * config/m88k/delta88v4.mh: Ditto.
1774 * config/m88k/delta88v4.mt: Ditto.
1775 * config/m88k/delta88.mt: Ditto.
1776 * config/m88k/delta88.mh: Ditto.
1777 * remote-bug.c: Ditto.
1778 * config/m88k/tm-delta88.h: Ditto.
1779 * config/m88k/nm-delta88v4.h: Ditto.
1780 * config/m88k/xm-delta88.h: Ditto.
1781 * config/m88k/xm-dgux.h: Ditto.
1782 * config/m88k/tm-m88k.h: Ditto.
1783 * config/m88k/nm-m88k.h: Ditto.
1784 * config/m88k/tm-delta88v4.h: Ditto.
1785 * m88k-nat.c: Ditto.
1786 * cxux-nat.c: Ditto.
1787 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1788 and m88*-*-* obsolete.
1789 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1790 m88*-*-* obsolete.
1791
1792 2002-07-24 Andrew Cagney <cagney@redhat.com>
1793
1794 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1795 constant. Same for local pointer variables.
1796 (extract_signed_integer): Ditto.
1797 * defs.h (extract_unsigned_integer): Update.
1798 (extract_signed_integer): Update.
1799
1800 2002-07-24 Andrew Cagney <cagney@redhat.com>
1801
1802 * regcache.c (regcache_raw_write): Change buf parameter to a
1803 constant void pointer.
1804 (regcache_raw_read): Change buf parameter to a void pointer.
1805 (legacy_write_register_gen): Change myaddr parameter a constant
1806 void pointer.
1807 (supply_register): Change val parameter to a const void pointer.
1808 * regcache.h (regcache_raw_write): Update declaration.
1809 (regcache_raw_read): Update declaration.
1810 (supply_register): Update declaration.
1811
1812 2002-07-24 Tom Tromey <tromey@redhat.com>
1813
1814 * defs.h (gdb_readline_wrapper): Declare.
1815 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1816 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1817 * top.c (gdb_readline_wrapper): New function.
1818 (command_line_input): Use it.
1819
1820 2002-07-24 Andrew Cagney <cagney@redhat.com>
1821
1822 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1823 regcache_read and regcache_write.
1824 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1825 * regcache.c: Update.
1826 * sh-tdep.c (sh64_push_arguments): Update comment.
1827 (sh_pseudo_register_read): Update.
1828 (sh_pseudo_register_write): Update.
1829 (sh4_register_read): Update.
1830 (sh4_register_write): Update.
1831 (sh64_pseudo_register_read): Update.
1832 (sh64_pseudo_register_write): Update.
1833 (sh64_register_read): Update.
1834 (sh64_register_write): Update.
1835 * i386-tdep.c (i386_extract_return_value): Update.
1836 (i386_extract_struct_value_address): Update.
1837 (i386_extract_return_value): Update.
1838 * blockframe.c (generic_read_register_dummy): Update.
1839 (generic_call_dummy_register_unwind): Update
1840 * infrun.c (write_inferior_status_register): Update.
1841
1842 2002-07-23 Jim Blandy <jimb@redhat.com>
1843
1844 * parser-defs.h (expression_context_pc): Make this extern.
1845 (Thanks to Michael Snyder.)
1846
1847 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1848
1849 GDB 5.2.1 released from 5.2 branch.
1850 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1851 * README: Update to mention 5.2.1.
1852
1853 2002-07-23 Mark Salter <msalter@redhat.com>
1854
1855 * remote.c (remote_read_bytes): Fix check for error.
1856
1857 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1858
1859 * aix-thread.c (language.h): Include.
1860 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1861 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1862 Print newlines at end of debug messages.
1863 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1864 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1865
1866 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1867
1868 * aix-thread.c (ppc-tdep.h): Include.
1869 (special_register_p): New function.
1870 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1871 (store_regs_user_thread): Use register number information from
1872 gdbarch_tdep struct instead of hardcoded offsets relative to
1873 FIRST_UISA_SP_REGNUM.
1874 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1875 special_register_p() instead of using FPLAST_REGNUM and
1876 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1877 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1878 will be MQ's register number.
1879
1880 2002-07-22 Michael Snyder <msnyder@redhat.com>
1881
1882 * aix-thread.c (ops): Rename to aix_thread_ops.
1883 (base_ops): Rename to base_target.
1884 (ops_attach): Rename to aix_thread_attach.
1885 (ops_detach): Rename to aix_thread_detach.
1886 (ops_resume): Rename to aix_thread_detach.
1887 (ops_wait): Rename to aix_thread_wait.
1888 (ops_kill): Rename to aix_thread_kill.
1889 (init_ops): Rename to init_aix_thread_ops.
1890 (ops_fetch_register): Rename to aix_thread_fetch_register.
1891 (ops_store_register): Rename to aix_thread_store_register.
1892 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1893 (ops_thread_alive): Rename to aix_thread_thread_alive.
1894 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1895 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1896 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1897 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1898 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1899 (store_regs_lib): Rename to store_regs_user_thread.
1900 (store_regs_kern): Rename to store_regs_kernel_thread.
1901
1902 2002-07-22 Michael Snyder <msnyder@redhat.com>
1903
1904 * aix-thread.c (ops_prepare_to_store): Eliminate.
1905 (init_ops): Don't initialize ops.prepare_to_store.
1906 (store_regs_kern): Pre-fetch register buffers from child,
1907 because some registers may not be in the cache. Copy
1908 regs from register cache only if they are cached.
1909 (store_regs_lib): Copy regs from register cache only
1910 if they are cached.
1911 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1912 fill_gprs64): Ditto.
1913
1914 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1915
1916 * aix-thread.c (gdb_assert.h): Include.
1917 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1918 register sizes (from register cache) match size of buffer holding
1919 register data.
1920 (fill_sprs32): Change parameter types to match those in the ptrace()
1921 buffer.
1922 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1923 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1924
1925 2002-07-22 Michael Snyder <msnyder@redhat.com>
1926
1927 * aix-thread.c (supply_sprs64): Cosmetic change.
1928 (supply_sprs32): Cosmetic change.
1929 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1930 (fill_sprs64): Use regcache_collect instead of read_register.
1931 (store_regs_lib): Use regcache_collect instead of
1932 read_register. Use fill_sprs32 instead of fill_sprs64,
1933 if debugging a 32-bit architecture.
1934 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1935 out of the register cache, instead of passing a pointer into
1936 the register cache directly to ptrace. Use regcache_collect
1937 insteaad of read_register.
1938 (ops_prepare_to_store): Use target_read_registers instead
1939 of read_register_bytes.
1940
1941 2002-07-20 Aidan Skinner <aidan@velvet.net>
1942
1943 * MAINTAINERS: Add self under write after approval.
1944
1945 2002-07-20 Aidan Skinner <aidan@velvet.net>
1946
1947 * ada-tasks.c: Change k&r style function definitions to prototyped
1948 form.
1949
1950 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1951
1952 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1953 * x86-64-tdep.c: Include "objfiles.h".
1954 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1955 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1956
1957 2002-07-17 Michal Ludvig <michal@suse.cz>
1958
1959 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1960 (update_context): Initialise cfa variable.
1961
1962 2002-07-17 Michael Snyder <msnyder@redhat.com>
1963
1964 * aix-thread.c: Shorten some long lines.
1965 Bring comments into line with code spec.
1966
1967 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1968
1969 * infrun.c: Re-indent using gdb_indent.sh.
1970
1971 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1972
1973 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1974 Leave the indentation temporarily untouched, to minimize the diffs.
1975
1976 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1977
1978 * stabsread.c: Make os9k sections of the code obsolete,
1979 for real this time.
1980 * stabsread.h: Make os9k sections of the code obsolete.
1981
1982 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1983
1984 * linux-low.c (regsets_store_inferior_registers): Add free()
1985 at the end of a loop to prevent memory leak.
1986 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1987 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1988 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1989 line a comment.
1990 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1991
1992 2002-07-17 Jim Blandy <jimb@redhat.com>
1993
1994 * macrocmd.c (info_macro_command): Remove newline from error
1995 message.
1996
1997 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1998
1999 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2000 (sh_gdbarch_init): Use it for sh-dsp.
2001
2002 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2003
2004 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2005 64-bit DWARF2 format.
2006
2007 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2008
2009 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2010 <sys/proc.h> when not available.
2011
2012 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2013
2014 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2015 * stabsread.c: Make os9k sections of the code obsolete.
2016 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2017 * config/i386/i386os9k.mt: Make file obsolete.
2018 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2019 (COMMON_OBS): Remove os9kread.o
2020 (SFILES): Remove os9kread.c.
2021 (os9kread.o, remote-os9k.o): Make target obsolete.
2022 * remote-os9k.c: Make file obsolete.
2023 * os9kread.c: Make file obsolete.
2024 * Makefile.in
2025
2026 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2027
2028 * NEWS: Mention that the FR30 has been made obsolete.
2029 * fr30-tdep.c: Make file obsolete.
2030 * config/fr30/tm-fr30.h: Ditto.
2031 * config/fr30/fr30.mt: Ditto.
2032 * configure.tgt: Make fr30-*-elf obsolete.
2033 * MAINTAINERS: Make fr30-elf obsolete.
2034
2035 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2036
2037 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2038 found is not inside a section.
2039
2040 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2041
2042 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2043 strerror().
2044 (pdc_realloc): Use xrealloc() instead of realloc().
2045
2046 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2047
2048 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2049 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2050 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2051 macros.
2052
2053 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2054
2055 * aix-thread.c (ptrace_check): Eliminate goto.
2056 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2057 problem.
2058
2059 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2060
2061 * aix-thread.c (gdbcmd.h): Include.
2062 (DEBUG, DBG, DBG2, dbg): Eliminate.
2063 (debug_aix_thread): New static global.
2064 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2065 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2066 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2067 invocations to DBG and DBG2 macros to test against
2068 ``debug_aix_thread'' and call fprintf_unfiltered().
2069 (_initialize_aix_thread): Add new command "set debug aix-thread".
2070
2071 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2072
2073 From Gerhard Tonn <TON@de.ibm.com>:
2074 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2075 instead of supply_register.
2076
2077 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2078
2079 * dwarf2cfi.c: Include "gdb_assert.h".
2080 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2081 non-NULL.
2082 (update_context): Do not use __func__. Add missing ``break''.
2083 (update_context): Do not use __func__.
2084
2085 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2086
2087 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2088 and its setting. Set gdbarch instruction printing functions
2089 directly. For non-rs6000 case use new function
2090 gdb_print_insn_powerpc.
2091 (gdb_print_insn_powerpc): New function.
2092
2093 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2094
2095 * NEWS: Mention that the d30v has been marked obsolete.
2096 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2097 * configure.tgt: Mark d30v-*-* as obsolete.
2098 * d30v-tdep.c: Mark file as obsolete.
2099 * config/d30v/d30v.mt: Ditto.
2100 * config/d30v/tm-d30v.h: Ditto.
2101
2102 2002-07-13 Aidan Skinner <aidan@velvet.net>
2103
2104 * ada-tasks.c (add_task_entry): replace calls to
2105 malloc() with xmalloc
2106 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2107
2108 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2109 ada_finish_decode_line_1, all_sals_for_line
2110 ada_breakpoint_rewrite): replace calls to free() with xfree()
2111
2112 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2113
2114 From Nicholas Duffek (with minor changes by Martin Hunt,
2115 Louis Hamilton, and Kevin Buettner):
2116 * aix-thread.c: New file.
2117
2118 2002-07-12 Petr Sorfa <petrs@caldera.com>
2119
2120 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2121 complaint for invalid attribute class or form.
2122 (read_func_scope): DW_AT_frame_base
2123 better handling of DW_AT_block*.
2124 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2125 better handling of DW_AT_block*.
2126 (read_common_block): DW_AT_location
2127 better handling of DW_AT_block*.
2128 (read_partial_die): DW_AT_location better handling
2129 of DW_AT_block*.
2130 (new_symbol): DW_AT_external better handling of
2131 DW_AT_block*. Proper initialization of variable
2132 "addr".
2133 (attr_form_is_block): New function that returns true
2134 if the attribute's form is of DW_FORM_block*.
2135
2136 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2137
2138 * valops.c (find_method_list): Remove comment about
2139 removed STATIC_MEMFUNCP argument.
2140 (value_find_oload_method_list): Likewise.
2141
2142 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2143
2144 From Nicholas Duffek:
2145 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2146 target_new_objfile_hook.
2147
2148 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2149
2150 From Nicholas Duffek:
2151 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2152 csect.
2153
2154 2002-07-12 Andrew Cagney <cagney@redhat.com>
2155
2156 * MAINTAINERS: Mention --enable-sim-build-warnings.
2157 (m68hc11-elf): Disable sim build warnings.
2158 (m32r-elf): Mark as broken obsolete candidate.
2159 (x86_64-linux-gnu): Mark as buildable with -Werror.
2160 (arm-elf): Change -w to ``,'' which enables warnings but not
2161 -Werror.
2162
2163 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2164
2165 * bcache.h: Update copyright.
2166 (struct bstring, struct bcache): Move definition to "bcache.c".
2167 Replaced by opaque declaration.
2168 (bcache_xfree): Replace free_bcache.
2169 (bcache_xmalloc, bcache_memory_used): Declare.
2170
2171 * bcache.c: Update copyright.
2172 (struct bstring, struct bcache): Moved to here from "bcache.h".
2173 Update comments.
2174 (bcache_xmalloc, bcache_memory_used): New functions.
2175 (bcache_xfree): Replace function free_bcache.
2176
2177 * Makefile.in (objfiles.o): Add $(bcache_h).
2178 (objfiles_h): Remove $(bcache_h).
2179 (symfile.o): Add $(bcache_h).
2180
2181 * symmisc.c: Update copyright.
2182 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2183 (print_objfile_statistics): Use bcache_memory_used.
2184
2185 * symfile.c: Include "bcache.h".
2186 (reread_symbols): Use bcache_xfree.
2187 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2188 (add_psymbol_to_list): Pass psymbol_cache by value.
2189 (add_psymbol_with_dem_name_to_list): Ditto.
2190
2191 * objfiles.h: Update copyright.
2192 (struct bcache): Declare opaque. Do not include "bcache.h".
2193 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2194 bcache'' pointers.
2195 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2196
2197 * objfiles.c: Include "bcache.h". Update copyright.
2198 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2199 macro_cache.
2200 (free_objfile): Use bcache_xfree.
2201
2202 2002-07-11 Grace Sainsbury <graces@redhat.com>
2203
2204 * monitor.c (monitor_fetch_register): Make name a constant.
2205 (monitor_store_register): Same.
2206
2207 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2208
2209 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2210 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2211 (finish_block) For non-function blocks, hash the symbol table. For
2212 function blocks, mark the symbol table as unhashed.
2213 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2214 (msymbol_hash_iw): Likewise.
2215 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2216 value.
2217 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2218 (lookup_minimal_symbol): Likewise for both.
2219 * symtab.h (struct block): Add `hashtable' flag. Comment the
2220 hashtable.
2221 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2222 (ALL_BLOCK_SYMBOLS): Update.
2223 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2224 (struct symbol): Add `hash_next' pointer.
2225 * symtab.c (lookup_block_symbol): Search using the hash table when
2226 possible.
2227 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2228 (search_symbols, find_addr_symbol): Likewise.
2229
2230 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2231 (read_dst_symtab): Likewise.
2232 * jv-lang.c (get_java_class_symtab): Likewise.
2233 * mdebugread.c: Include "gdb_assert.h".
2234 (shrink_block): Assert that the block being modified is not hashed.
2235 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2236 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2237 symbols.
2238 (dump_symtab): Recognize hashed blocks.
2239 * printcmd.c (print_frame_args): Assert that function blocks do not
2240 have hashed symbol tables.
2241 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2242 (fill_in_ada_prototype, debug_print_block): Likewise.
2243 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2244
2245 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2246
2247 * stack.c (print_frame): Use result of frame_address_in_block()
2248 instead of fi->pc when evaluating symbols.
2249 (backtrace_command_1): Ditto.
2250
2251 2002-07-11 Andrew Cagney <cagney@redhat.com>
2252
2253 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2254 Make static.
2255
2256 * arm-tdep.c (arm_register_name): Make return type constant.
2257
2258 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2259
2260 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2261 prototype.
2262 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2263 * s390-tdep.c (s390_fp_regnum): Ditto.
2264 (s390_read_fp): Ditto.
2265 (s390_pop_frame): Ditto.
2266 (_initialize_s390_tdep): Ditto.
2267 * remote.c (get_remote_state): Ditto.
2268 * procfs.c (mappingflags): Ditto.
2269 * memattr.c (_initialize_mem): Ditto.
2270 * mcore-tdep.c (mcore_pop_frame): Ditto.
2271 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2272 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2273 * language.c (set_case_str): Ditto.
2274 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2275 * frv-tdep.c (new_variant): Ditto.
2276 (frv_stopped_data_address): Ditto.
2277 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2278 (context_alloc): Ditto.
2279 (frame_state_alloc): Ditto.
2280 (unwind_tmp_obstack_init): Ditto.
2281 (unwind_tmp_obstack_free): Ditto.
2282 (cfi_read_fp): Ditto.
2283 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2284 (cris_pop_frame): Ditto.
2285 * c-lang.c (scanning_macro_expansion): Ditto.
2286 (finished_macro_expansion): Ditto.
2287 (c_preprocess_and_parse): Ditto.
2288 * gdbarch.sh: Ditto.
2289 * gdbarch.h, gdbarch.c: Regenerate.
2290 * config/mn10200/tm-mn10200.h: Adjust indentation.
2291 * target.c: Adjust indentation.
2292 * symtab.h: Adjust indentation.
2293 * stabsread.h: Adjust indentation.
2294 * remote-es.c: Adjust indentation.
2295 * os9kread.c: Adjust indentation.
2296
2297 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2298
2299 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2300 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2301
2302 2002-07-10 Grace Sainsbury <graces@redhat.com>
2303
2304 * NEWS: Mention m68k, mcore multi-arching.
2305 * MAINTAINERS: Change status of m68k, mcore to reflect
2306 multi-arching.
2307
2308 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2309
2310 * valops.c (find_overload_match): Free oload_syms.
2311
2312 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2313
2314 Define HAVE_SYS_PROC_H if sys/proc.h exists
2315 * configure.in: Add check for sys/proc.h
2316 * config.in: Regenerate.
2317 * configure: Regenerate.
2318
2319 2002-07-09 Grace Sainsbury <graces@redhat.com>
2320
2321 * config/m68k/tm-m68k.h: Remove macros wrapped in
2322 #if !GDB_MULTI_ARCH.
2323
2324 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2325
2326 * config.in, configure: Regenerate.
2327
2328 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2329
2330 * dwarf2cfi.c: Include "gcore.h".
2331 (execute_stack_op): Fix implementation of the
2332 DW_OP_deref and DW_OP_deref_size operators by letting do their
2333 lookup in the target.
2334
2335 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2336
2337 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2338 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2339 tdep->sc_sp_offset.
2340
2341 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2342
2343 Fix PR gdb/595, gdb/602
2344 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2345 Don't call value_cast, just read the vtable pointer; update comments
2346 to match.
2347
2348 2002-07-05 Grace Sainsbury <graces@redhat.com>
2349
2350 * config/mcore/tm-mcore.h: Remove file.
2351 * config/mcore/mcore.mt: Remove definition of TM_FILE
2352 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2353
2354 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2355
2356 * i386bsd-tdep.c: Include "gdb_string.h".
2357
2358 2002-07-04 Grace Sainsbury <graces@redhat.com>
2359
2360 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2361 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2362 mcore-tdep.
2363 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2364 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2365 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2366 (RETVAL_REGNUM): Move macros from tm-mcore.h
2367 (mcore_reg_struct_has_addr): New function.
2368 (mcore_gdbarch_init): Added initializations for the macros removed
2369 from tm-mcore.h.
2370
2371 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2372
2373 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2374 traditonal string branding within the ELF header.
2375
2376 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2377
2378 * symtab.c (remove_params): New function.
2379 (make_symbol_overload_list): Use it instead of cplus_demangle.
2380 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2381
2382 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2383
2384 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2385
2386 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2387 New variables.
2388 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2389 and tdep->sigtramp_end.
2390 * i386obsd-nat.c: New file.
2391 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2392
2393 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2394 Don't call get_current_frame().
2395
2396 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2397
2398 * i386-nat.c (child_post_startup_inferior): New function
2399 calling i386_cleanup_dregs if
2400 I386_USE_GENERIC_WATCHPOINTS is defined.
2401 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2402 conditional to acknowledge that i386-nat.c has its
2403 own child_post_startup_inferior function.
2404
2405 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2406
2407 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2408 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2409 instead of MAX_REGISTER_RAW_SIZE.
2410 (i386_extract_return_value, i386_extract_struct_value_address):
2411 Convert to use regcache.
2412 (i386_gdbarch_init): Set max_register_raw_size and
2413 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2414 Set extract_return_value and extract_struct_value_address instead
2415 of their deprecated variants.
2416
2417 Convert i386 target to generic dummy frames.
2418 * i386-tdep.c: Include "symfile.h".
2419 (i386_frameless_signal_p): Consider a function to be frameless if
2420 the pc points at the first instruction of the function.
2421 (i386_frame_chain): Handle (generic) call dummies.
2422 (i386_frame_saved_pc): Likewise.
2423 (i386_frame_init_saved_regs): Remove code dealing with call
2424 dummies on the stack.
2425 (i386_push_dummy_frame): Removed.
2426 (i386_call_dummy_words): Removed.
2427 (i386_fix_call_dummy): Removed.
2428 (i386_push_return_address): New function.
2429 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2430 parameter, and don't call get_current_frame.
2431 (i386_pop_frame): New function.
2432 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2433 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2434 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2435 call_dummy_length to 0, set call_dummy_words to NULL, set
2436 sizeof_call_dummy_words to 0, set fix_call_dummy to
2437 generic_fix_call_dummy, set pc_in_call_dummy to
2438 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2439 generic_push_dummy_frame, set push_return_address to
2440 i386_push_return_address and set frame_chain_valid to
2441 generic_file_frame_chain_valid.
2442
2443 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2444
2445 * gdbarch.sh (struct regcache): Add opaque declaration.
2446 (EXTRACT_RETURN_VALUE): New architecture method.
2447 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2448 * gdbarch.h, gdbarch.c: Regenerate.
2449 * arch-utils.c (legacy_extract_return_value): New function.
2450 * arch-utils.h (legacy_extract_return_value): Declare.
2451 * values.c (value_being_returned): Re-enable code handling
2452 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2453 deprecated_grub_regcache_for_registers call to block handling
2454 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2455 (EXTRACT_RETURN_VALUE): Do not define.
2456
2457 2002-07-03 Grace Sainsbury <graces@redhat.com>
2458
2459 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2460 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2461 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2462 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2463 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2464 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2465 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2466 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2467 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2468 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2469 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2470 argument so the function fits the prototype in the architecture
2471 vector.
2472 (mcore_pop_frame): Remove argument so the function fits the
2473 prototype. Use get_current_frame instead of the argument.
2474 (mcore_push_arguments): Change type of struct_return so the
2475 function can be used in the architecture vector.
2476 (mcore_store_struct_return): Add.
2477 (mcore_frame_init_saved_regs): Add.
2478 (mcore_gdbarch_init): Add function calls to replace the macros
2479 removed from tm-mcore.h
2480
2481 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2482
2483 * infcmd.c (print_return_value): Remove compatibility code calling
2484 deprecated_grub_regcache_for_registers.
2485
2486 * values.c: Include "regcache.h".
2487 (value_being_returned): Update. Use
2488 deprecated_grub_regcache_for_registers to extract the register
2489 buffer address.
2490 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2491 ``struct regcache''.
2492 * Makefile.in (values.o): Add dependency on $(regcache_h).
2493
2494 * inferior.h (run_stack_dummy): Change type of second parameter to
2495 a ``struct regcache''.
2496 * valops.c (hand_function_call): Change type of retbuf to ``struct
2497 regcache''. Allocate using regcache_xmalloc, clean using
2498 make_cleanup_regcache_xfree.
2499 * infcmd.c (run_stack_dummy): Update. Use
2500 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2501
2502 * regcache.c (do_regcache_xfree): New function.
2503 (make_cleanup_regcache_xfree): New function.
2504 * regcache.h (make_cleanup_regcache_xfree): Declare.
2505
2506 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2507
2508 * event-top.c (command_line_handler): Don't read past
2509 beginning of buffer.
2510
2511 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2512
2513 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2514 struct frame_id.
2515 (varobj_create): Store frame_id for root.
2516 (varobj_gen_name): Use xasprintf.
2517 (varobj_update): Save and restore frame using get_frame_id() and
2518 frame_find_by_id().
2519 (create_child): Use xasprintf.
2520 (new_root_variable): Initialize frame_id.
2521 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2522 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2523 to prevent memory leak.
2524
2525 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2526
2527 * valops.c (hand_function_call): Move declaration of retbuf to
2528 start of function, allocate using malloc, add a cleanup but before
2529 the inf_status cleanup, cleanup the buffer. Rename local variable
2530 old_chain to inf_status_cleanup.
2531
2532 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2533
2534 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2535
2536 * cli/cli-decode.c (cmd_func_p): New function.
2537 (cmd_func): New function.
2538
2539 * command.h: Add cmd_func() and cmd_func_p().
2540
2541 2002-07-03 Grace Sainsbury <graces@redhat.com>
2542
2543 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2544 (REGISTER_SIZE): Remove.
2545 (MAX_REGISTER_RAW_SIZE): Remove.
2546 (REGISTER_VIRTUAL_TYPE): Remove.
2547 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2548 (REGISTER_NAME): Remove.
2549 (USE_GENERIC_DUMMY_FRAMES): Remove.
2550 (CALL_DUMMY): Remove.
2551 (CALL_DUMMY_START_OFFSET): Remove.
2552 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2553 (CALL_DUMMY_LOCATION): Remove.
2554 (FIX_CALL_DUMMY): Remove.
2555 (CALL_DUMMY_ADDRESS): Remove.
2556 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2557 (SAVE_DUMMY_FRAME_TOS): Remove.
2558 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2559 (mcore_register_virtual_type): New function.
2560 (mcore_register_byte): New function.
2561 (mcore_register_size): New function.
2562 (mcore_register_name): New function.
2563 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2564 macros removed from tm-mcore.h.
2565 (mcore_dump_tdep): Add.
2566 (_initialize_mcore_tdep): Add gdbarch_register call.
2567
2568 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2569
2570 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2571 frameless_look_for_prologue, such that we actually call this
2572 function.
2573
2574 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2575
2576 * frame.h (frame_address_in_block): New function.
2577
2578 * blockframe.c (frame_address_in_block): New function extracted
2579 from get_frame_block().
2580 (get_frame_block): Use frame_address_in_block().
2581 (block_innermost_frame): Use frame_address_in_block() to match
2582 the frame pc address against the block boundaries rather than
2583 the frame pc directly. This prevents a failure when a frame pc
2584 is actually a return-address pointing immediately after the end
2585 of the given block.
2586
2587 2002-07-02 Grace Sainsbury <graces@redhat.com>
2588
2589 * MAINTAINERS: Add self under write after approval.
2590
2591 2002-07-02 Grace Sainsbury <graces@redhat.com>
2592
2593 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2594 used in architecture vector. The default is
2595 m68k_local_breakpoint_from_pc.
2596 (m68k_local_breakpoint_from_pc): Add.
2597 (enum): Add register numbers from tm-m68k.h.
2598 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2599 vector.
2600 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2601 GDB_MULTI_ARCH_PARTIAL.
2602 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2603 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2604 m68k-tdep.c.
2605 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2606 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2607 to enum in m68k-tdep.c
2608
2609 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2610
2611 * solib-osf.c (open_map): Compute the list of shared libraries
2612 loaded by the inferior, rather than the list of libraries loaded
2613 by GDB itself. Otherwise, GDB ends up reading the symbols from
2614 the wrong shared libraries...
2615
2616 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2617
2618 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2619 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2620 macros.
2621 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2622 Remove functions.
2623 (FRAMELESS_SIGNAL): Remove function.
2624 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2625 i386_linux_saved_pc_after_call): Removed.
2626 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2627 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2628 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2629
2630 * i386-tdep.c (i386_frameless_signal_p): New function.
2631 (i386_frame_chain): Deal with frameless signals.
2632 (i386_sigtramp_saved_sp): New function.
2633 (i386_frame_saved_pc): Deal with frameless signals.
2634 (i386_saved_pc_after_call): Make sure the correct value is
2635 returned just after entry into a sigtramp.
2636 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2637 i386fbsd4_sc_sp_offset): New variables.
2638 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2639 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2640 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2641 similiar to what we already did for sc_pc_offset.
2642 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2643 tdep->sc_sp_offset.
2644
2645 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2646
2647 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2648
2649 * config/i386/tm-x86-64linux.h: New.
2650 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2651 definitions.
2652 * config/i386/nm-x86-64.h: Rename to ...
2653 * config/i386/nm-x86-64linux.h: ... this one.
2654 * config/i386/x86-64linux.mh: Reflect the above change.
2655
2656 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2657
2658 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2659 with sigcontext_addr. Add sc_sp_offset.
2660 (i386bsd_sigtramp_saved_pc): Remove prototype.
2661 (i386bsd_sicontext_addr): Add prototype.
2662 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2663 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2664 (i386_svr4_sigtramp_saved_pc): Removed.
2665 (i386_svr4_sigcontext_addr): New function.
2666 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2667 Initialize tdep->sigcontext_addr instead. Initialize
2668 tdep->sc_pc_offset and tdep->sc_sp_offset.
2669 (i386_gdbarch_init): Likewise.
2670 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2671 any more.
2672 (i386bsd_sigtramp_saved_pc): Remove function.
2673 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2674 Initialize tdep->sigcontext_addr instead. Initialize
2675 tdep->sc_pc_offset.
2676 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2677 of tdep->sigtramp_saved_pc.
2678 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2679 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2680 instead.
2681
2682 * i386-tdep.c (i386_frameless_function_invocation,
2683 i386_frame_num_args, i386_frame_init_saved_regs,
2684 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2685 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2686 i386_extract_return_value, i386_store_return_value,
2687 i386_extract_struct_value_address, i386_register_virtual_type,
2688 i386_register_convertible, i386_register_convert_to_virtual,
2689 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2690 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2691 static.
2692
2693 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2694
2695 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2696
2697 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2698 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2699 this macro. Include "value.h".
2700
2701 2002-06-30 Aidan Skinner <aidan@velvet.net>
2702
2703 * ada-exp.tab.c: remove as it's a generated file
2704 * ada-lex.c: remove as it's a generated file
2705
2706 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2707
2708 * config/i386/tm-i386.h (struct frame_info, struct
2709 frame_saved_regs, struct value, struct type): Remove forward
2710 declarations.
2711
2712 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2713 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2714 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2715 (FILL_FPXREGSET): Define.
2716
2717 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2718
2719 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2720 i[3456]86-*-netbsd* case.
2721 * config/i386/tm-obsd.h: Removed.
2722 * config/i386/obsd.mt: Removed.
2723 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2724 core-aout.o.
2725 (MH_CFLAGS): Add -DYYDEBUG=0.
2726
2727 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2728 i386nbsd_sc_pc_offset on OpenBSD too.
2729
2730 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2731 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2732 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2733 define.
2734 * i386bsd-tdep.c: Include "arch-utils.h".
2735 (i386bsd_aout_in_solib_call_trampoline): New function.
2736 (i386bsd_init_abi): Set in_solib_call_trampoline to
2737 i386bsd_aout_in_solib_call_trampoline.
2738 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2739 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2740
2741 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2742
2743 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2744 (struct obstack, struct bcache): Add opaque declarations.
2745 * Makefile.in (macrotab_h): Update
2746
2747 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2748
2749 * blockframe.c (generic_find_dummy_frame): Change return type to
2750 ``struct regcache''.
2751 (struct dummy_frame): Replace field ``registers'' with regcache, a
2752 struct regcache object.
2753 (generic_find_dummy_frame): Update.
2754 (generic_push_dummy_frame): Update. Use regcache_xfree,
2755 regcache_xmalloc and regcache_cpy.
2756 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2757 regcache_xfree.
2758 (deprecated_generic_find_dummy_frame): Update.
2759 (generic_read_register_dummy): Update. Use
2760 regcache_read_as_address.
2761 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2762 (generic_get_saved_register): Update. Use regcache_read.
2763
2764 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2765
2766 * Makefile.in (objfiles_h): Add $(bcache_h).
2767 * objfiles.h: Include "bcache.h".
2768
2769 * Makefile.in (symtab_h): Remove $(bcache_h).
2770 * symtab.h: Do not include "bcache.h".
2771
2772 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2773
2774 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2775 generic_func_frame_chain_valid.
2776
2777 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2778
2779 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2780 * config/i386/tm-fbsd.h: Likewise.
2781
2782 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2783
2784 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2785 generic_unwind_get_saved_register.
2786
2787 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2788
2789 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2790 * regcache.c (supply_register): Add missing argument to
2791 register_buffer call.
2792
2793 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2794
2795 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2796 Solaris /bin/grep does not not like it. From Peter Schauer.
2797
2798 2002-06-26 Tom Tromey <tromey@redhat.com>
2799
2800 * command.h (add_setshow_cmd): Declare.
2801 (add_setshow_cmd_full): Declare.
2802 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2803 returns void. Use add_setshow_cmd_full.
2804 (add_setshow_cmd_full): New function.
2805 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2806 (add_setshow_boolean_cmd): Likewise.
2807
2808 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2809
2810 * config/vax/tm-vax.h: Protect from multiple inclusion.
2811 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2812 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2813 * config/vax/tm-vaxbsd.h: ...here. New file.
2814 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2815
2816 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2817
2818 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2819 (BELIEVE_PCC_PROMOTION): Remove.
2820 (AP_REGNUM): Move to...
2821 * config/vax/nm-vax.h: ...here.
2822 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2823 (vax_breakpoint_from_pc): New function.
2824 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2825 and gdbarch_believe_pcc_promotion.
2826
2827 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2828
2829 * Makefile.in (vax_tdep_h): Define.
2830 (vax-tdep.o): Use $(vax_tdep_h).
2831 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2832 (vax_dump_tdep): New function.
2833 (_initialize_vax_tdep): Register vax_dump_tdep.
2834 * vax-tdep.h: Include osabi.h.
2835 (struct gdbarch_tdep): New.
2836
2837 2002-06-26 Andrew Cagney <cagney@redhat.com>
2838
2839 * frame.h (deprecated_generic_find_dummy_frame): Rename
2840 generic_find_dummy_frame.
2841 * blockframe.c (generic_find_dummy_frame): Make static.
2842 (deprecated_generic_find_dummy_frame): New function.
2843 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2844 generic_find_dummy_frame with deprecated_find_dummy_frame.
2845 (sh64_nofp_frame_init_saved_regs): Ditto.
2846 (sh_fp_frame_init_saved_regs): Ditto.
2847 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2848 (s390_frame_chain): Ditto.
2849 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2850
2851 2002-06-26 Grace Sainsbury <graces@redhat.com>
2852
2853 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2854 gdbarch vector are at the top.
2855 (NUM_REGS): Remove.
2856 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2857 (FRAME_ARGS_ADDRESS): Remove.
2858 (FRAME_LOCALS_ADDRESS): Remove.
2859 (FRAME_NUM_ARGS): Remove.
2860 (FRAME_ARGS_SKIP): Remove.
2861 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2862 (m68k_gdbarch_init): Add gdbarch initializations for macros
2863 undefined in tm-m68k.h
2864
2865 2002-06-26 Grace Sainsbury <graces@redhat.com>
2866
2867 * monitor.h: Add the function regname to monitor_ops
2868 structure. This way NUM_REGS does not have to be a constant.
2869 * monitor.c (monitor_fetch_register): Added support for regname
2870 function. The function is called if the array regnames is NULL.
2871 (monitor_store_register): Same.
2872 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2873 regnames array.
2874 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2875 cpu32bug_cmds.regname to point to new function.
2876 * abug-rom.c (abug_regname): Same as above.
2877 (init_abug_cmds): Same.
2878 * dbug-rom.c (dbug_regname): Same as above.
2879 (init_dbug_cmds): Same.
2880 * remote-est.c (est_regname): Same.
2881 (init_est_cmds): Same.
2882 * rom68k-rom.c (rom68k_regname): Same.
2883 (init_rom68k_cmds): Same.
2884
2885 2002-06-25 Tom Tromey <tromey@redhat.com>
2886
2887 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2888
2889 2002-06-25 Andrew Cagney <cagney@redhat.com>
2890
2891 * infrun.c (stop_registers): Change variable's type to ``struct
2892 regcache'''.
2893 (xmalloc_inferior_status): Delete function.
2894 (free_inferior_status): Delete function.
2895 (normal_stop): Use regcache_cpy.
2896 (struct inferior_status): Change type of fields ``stop_registers''
2897 and ``registers'' to ``struct regcache''.
2898 (write_inferior_status_register): Use regcache_write.
2899 (save_inferior_status): Instead of calling
2900 xmalloc_inferior_status, allocate the inf_status buffer directly.
2901 Use regcache_dup_no_passthrough and regcache_dup to save the
2902 buffers.
2903 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2904 Replace the stop_registers regcache instead of overriding it. Use
2905 regcache_xfree. Instead of calling free_inferior_status, xfree
2906 the buffer directly.
2907 (discard_inferior_status): Use regcache_xfree. Instead of calling
2908 free_inferior_status, xfree the buffer directly.
2909 (build_infrun): Use regcache_xmalloc.
2910 (_initialize_infrun): Delete redundant call to build_infrun.
2911
2912 * Makefile.in (infcmd.o): Add $(regcache_h).
2913
2914 * infcmd.c: Include "regcache.h".
2915 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2916 obtain the address of `stop_registers' register buffer.
2917 (print_return_value): Ditto.
2918
2919 * inferior.h (struct regcache): Add opaque declaration.
2920 (stop_registers): Change variable's declared type to ``struct
2921 regcache''.
2922
2923 2002-06-24 Tom Tromey <tromey@redhat.com>
2924
2925 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2926 * target.c (initialize_targets): Fixed typo in
2927 trust-readonly-sections `show' documentation.
2928
2929 * main.c: Marked all strings with _().
2930
2931 2002-06-24 Don Howard <dhoward@redhat.com>
2932
2933 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2934 that means max CORE_ADDR+1.
2935 (lookup_mem_region): Ditto.
2936 (mem_info_command): Ditto.
2937
2938 2002-06-24 Grace Sainsbury <graces@redhat.com>
2939
2940 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2941 (REGISTER_BYTES_OK): Remove.
2942 (REGISTER_BYTES): Remove.
2943 (STORE_STRUCT_RETURN): Remove.
2944 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2945 (STORE_RETURN_VALUE): Remove.
2946 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2947 (FRAME_CHAIN): Remove.
2948 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2949 (FRAME_SAVED_PC): Remove.
2950 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2951 (m68k_store_struct_return): Add.
2952 (m68k_deprecated_extract_return_value): Add.
2953 (m68k_deprecated_extract_struct_value_address): Add.
2954 (m68k_store_return_value): Add.
2955 (m68k_frame_chain): Add.
2956 (m68k_frameless_function_invocation): Add.
2957 (m68k_frame_saved_pc): Add.
2958 (m68k_gdbarch_init): added set_gdbarch calls for new
2959 functions and deleted macros.
2960
2961 2002-06-23 Tom Tromey <tromey@redhat.com>
2962
2963 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2964 (ALLDEPFILES): Likewise.
2965 (udiheaders): Removed.
2966 (udip2soc.o): Likewise.
2967 (udi2go32.o): Likewise.
2968 (udr.o): Likewise.
2969 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2970
2971 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2972
2973 * infrun.c (_initialize_infrun): Delete unnecessary call to
2974 build_infrun.
2975
2976 * regcache.h: Update comments describing the regcache_cpy family
2977 of functions.
2978 (regcache_save, regcache_restore): Delete declaration.
2979 (regcache_save_no_passthrough): Delete declaration.
2980 (regcache_restore_no_passthrough): Delete declaration.
2981 * regcache.c (regcache_save): Delete function.
2982 (regcache_save_no_passthrough): Delete function.
2983 (regcache_restore): Delete function.
2984 (regcache_restore_no_passthrough): Delete function.
2985
2986 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2987
2988 * config/m68k/tm-m68k.h: Fix typo.
2989 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2990 (m68k_frame_init_saved_regs): Declare.
2991
2992 2002-06-21 Jim Blandy <jimb@redhat.com>
2993
2994 Remove some vestiges of Harris 88k support.
2995 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2996 register numbering quirk.
2997 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2998 odd symbols occurring in Harris 88k ELF targets.
2999
3000 2002-06-21 Tom Tromey <tromey@redhat.com>
3001
3002 * gdb_locale.h: New file.
3003 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3004 (defs_h): Added gdb_locale.h.
3005 * configure, config.in: Rebuilt.
3006 * configure.in (PACKAGE): Define.
3007 * defs.h: Include gdb_locale.h.
3008 * main.c (captured_main): Call setlocale, bindtextdomain,
3009 textdomain.
3010
3011 2002-06-21 Dave Brolley <brolley@redhat.com>
3012
3013 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3014 * config/frv/frv.mt: New file.
3015 * config/frv/tm-frv.h: New file.
3016 * configure.tgt: Support frv-*-*.
3017 * Makefile.in (frv-tdep.o): New target.
3018 * frv-tdep.c: New file.
3019 * NEWS: Mention frv.
3020
3021 2002-06-21 Dave Brolley <brolley@redhat.com>
3022
3023 * MAINTAINERS: Add self to "Write After Approval" list.
3024
3025 2002-06-21 Grace Sainsbury <graces@redhat.com>
3026
3027 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3028 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3029 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3030 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3031 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3032
3033 * m68k-tdep.c: Include arch-utils.h
3034 (m68k_register_raw_size): Add.
3035 (m68k_register_virtual_size): Add.
3036 (m68k_register_virtual_type): Add.
3037 (m68k_register_name): Add.
3038 (m68k_stack_align): Add.
3039 (m68k_register_byte): Add.
3040 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3041 tm-m68k.h.
3042
3043 2002-06-21 Grace Sainsbury <graces@redhat.com>
3044
3045 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3046 m68k_find_saved_regs.
3047 (m68k_pop_frame): Removed saved_regs structure, and replaced
3048 references to it with frame->saved_regs.
3049 (m68k_gdbarch_init): Added function calls to initialize the
3050 gdbarch structure.
3051 (m68k_fix_call_dummy): Add.
3052 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3053 (CALL_DUMMY): Remove.
3054 (CALL_DUMMY_LENGTH): Remove.
3055 (CALL_DUMMY_START_OFFSET): Remove.
3056 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3057 (FIX_CALL_DUMMY): Remove.
3058 (PUSH_DUMMY_FRAME): Remove.
3059 (POP_FRAME): Remove.
3060
3061 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3062
3063 * parse.c (parse_fprintf): New function used to avoid calls to
3064 fprintf in bison parser generated debug code.
3065 * parser-defs.h: Declaration of new parse_fprintf function.
3066 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3067 Set YYDEBUG to 1 by default.
3068 Set YYFPRINTF as parse_fprintf.
3069
3070 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3071
3072 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3073 encoding anymore.
3074 (pointer_encoding, enum ptr_encoding): New.
3075 (execute_cfa_program): Take care about pointer encoding.
3076 (dwarf2_build_frame_info): Only call parse_frame_info for
3077 .debug_frame and .eh_frame.
3078 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3079 fixed augmentation handling, added relative addressing,
3080 ignore duplicate FDEs. Added comments.
3081 * dwarf2cfi.c: Reindented.
3082
3083 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3084
3085 * event-top.c (command_handler): Don't use space_at_cmd_start
3086 unless there is sbrk() on the host. Assign time and space data
3087 to union fields of the appropriate length.
3088
3089 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3090
3091 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3092 x86_64_register_name. Return type changed to 'const char *'.
3093 (x86_64_register_name2nr): Rename to x86_64_register_number.
3094 (x86_64_gdbarch_init): Update to reflect the change.
3095 * x86-64-tdep.h: Ditto.
3096 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3097 (supply_fpregset): Ditto.
3098
3099 2002-06-19 Andrew Cagney <cagney@redhat.com>
3100
3101 * regcache.h: Update copyright.
3102 (struct regcache, struct gdbarch): Add opaque declarations.
3103 (current_regcache): Declare global variable.
3104 (regcache_read, regcache_write): Add gdbarch parameter.
3105 (regcache_save, regcache_save_no_passthrough)
3106 (regcache_restore, regcache_restore_no_passthrough)
3107 (regcache_dup, regcache_dup_no_passthrough)
3108 (regcache_cpy, regcache_cpy_no_passthrough)
3109 (deprecated_grub_regcache_for_registers)
3110 (deprecated_grub_regcache_for_register_valid)
3111 (regcache_valid_p): Add function declarations.
3112
3113 * regcache.c: Update copyright.
3114 (regcache_descr_handle): New global variable.
3115 (struct regcache_descr): Define.
3116 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3117 (regcache_descr, xfree_regcache_descr): New functions.
3118 (struct regcache): Define.
3119 (regcache_xmalloc, regcache_xfree): New functions.
3120 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3121 (regcache_dup, regcache_dup_no_passthrough): New functions.
3122 (regcache_valid_p, regcache_read_as_address): New functions.
3123 (deprecated_grub_regcache_for_registers): New function.
3124 (deprecated_grub_regcache_for_register_valid): New function.
3125 (current_regcache): New global variable.
3126 (register_buffer): Add regcache parameter. Update calls.
3127 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3128 (read_register_gen, write_register_gen): Update register_buffer
3129 call. Test for legacy_p instead of gdbarch_register_read_p or
3130 gdbarch_register_write_p.
3131 (regcache_collect): Update register_buffer call.
3132 (build_regcache): Rewrite. Use deprecated grub functions.
3133 (regcache_save, regcache_save_no_passthrough): New functions.
3134 (regcache_restore, regcache_restore_no_passthrough): New
3135 functions.
3136 (_initialize_regcache): Create the regcache_data_handle. Swap
3137 current_regcache global variable.
3138
3139 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3140 parameter to regcache_read and regcache_write calls.
3141 (sh4_register_read): Ditto.
3142 (sh64_pseudo_register_read): Ditto.
3143 (sh64_register_read): Ditto.
3144 (sh_pseudo_register_write): Ditto.
3145 (sh4_register_write): Ditto.
3146 (sh64_pseudo_register_write): Ditto.
3147 (sh64_register_write): Ditto.
3148
3149 * defs.h (XCALLOC): Define.
3150
3151 2002-06-19 Grace Sainsbury <graces@redhat.com>
3152
3153 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3154 * m68k-tdep.c (m68k_gdbarch_init): Added.
3155 (m68k_dump_tdep): Added.
3156
3157 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3158
3159 * ada-lang.c (fill_in_ada_prototype): Update comment.
3160
3161 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3162
3163 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3164 MIPS_ABI_LAST.
3165 (mips_abi_string, mips_abi_strings): New.
3166 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3167 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3168 tdep->mips_abi_string. Honor mips_abi_string. Default to
3169 O32 if no ABI is found.
3170 (mips_dump_tdep): Use mips_abi_strings.
3171 (mips_abi_update): New function.
3172 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3173 ``set mips abi'' and ``show mips abi''. Check the size of
3174 mips_abi_strings.
3175
3176 2002-06-19 Andrew Cagney <cagney@redhat.com>
3177
3178 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3179 constant.
3180
3181 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3182
3183 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3184 current frame using only the first stack size adjustment. All
3185 subsequent size adjustments are not considered to be part of
3186 the "static" part of the current frame.
3187 Compute the address of the saved registers relative to the
3188 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3189 in use in this frame.
3190
3191 2002-06-18 Don Howard <dhoward@redhat.com>
3192
3193 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3194 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3195 suggesting this solution.
3196
3197 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3198
3199 * config/romp/xm-rtbsd.h: Delete file.
3200 * config/romp/rtbsd.mh: Delete file.
3201
3202 2002-06-18 Keith Seitz <keiths@redhat.com>
3203
3204 * breakpoint.c (condition_command): Post breakpoint_modify
3205 when a condition is added to an existing breakpoint.
3206 (commands_command): Likewise for commands.
3207 (set_ignore_count): Likewise for ignore counts.
3208 If no tty, do not simply return, still need to send event
3209 notification.
3210 (ignore_command): Only print a newline if the command came
3211 from a tty.
3212 Don't call breakpoints_changed, since this is now properly
3213 handled by set_ignore_count.
3214
3215 2002-06-18 Andrew Cagney <cagney@redhat.com>
3216
3217 * MAINTAINERS: Note that cris-elf target can be compiled with
3218 -Werror.
3219 * cris-tdep.c (cris_register_name): Make return type constant.
3220 (cris_breakpoint_from_pc): Ditto.
3221
3222 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3223
3224 * frame.h (struct frame_info): Change type of context to
3225 'struct context'.
3226
3227 2002-06-17 Andrew Cagney <cagney@redhat.com>
3228
3229 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3230 pointer.
3231 * gdbarch.h, gdbarch.c: Regenerate.
3232 * config/mips/tm-mips.h (mips_register_name): Update.
3233 * i386-tdep.h (i386_register_name): Update.
3234 * mips-tdep.c (mips_register_name): Update
3235 * alpha-tdep.c (alpha_register_name): Update.
3236 * arch-utils.c (legacy_register_name): Update.
3237 * arch-utils.h (legacy_register_name): Update.
3238 * avr-tdep.c (avr_register_name): Update.
3239 * ia64-tdep.c (ia64_register_name): Update.
3240 * i386-tdep.c (i386_register_name): Update.
3241 * sparc-tdep.c (sparc32_register_name): Update.
3242 (sparc64_register_name): Update.
3243 (sparclite_register_name): Update.
3244 (sparclet_register_name): Update.
3245 * sh-tdep.c (sh_generic_register_name): Update.
3246 (sh_sh_register_name): Update.
3247 (sh_sh3_register_name): Update.
3248 (sh_sh3e_register_name): Update.
3249 (sh_sh_dsp_register_name): Update.
3250 (sh_sh3_dsp_register_name): Update.
3251 (sh_sh4_register_name): Update.
3252 (sh_sh64_register_name): Update.
3253 * s390-tdep.c (s390_register_name): Update.
3254 * rs6000-tdep.c (rs6000_register_name): Update.
3255 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3256 (ns32k_register_name_32382): Update.
3257 * d10v-tdep.c (d10v_ts2_register_name): Update.
3258 (d10v_ts3_register_name): Update.
3259 * xstormy16-tdep.c (xstormy16_register_name): Update.
3260 * vax-tdep.c (vax_register_name): Update.
3261 * v850-tdep.c (v850_register_name): Update.
3262 * m68hc11-tdep.c (m68hc11_register_name): Update.
3263 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3264 (am33_register_name): Update.
3265
3266 2002-06-17 Grace Sainsbury <graces@redhat.com>
3267
3268 * m68k-tdep.c: Reindented.
3269
3270 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3271
3272 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3273 list of predefined types.
3274
3275 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3276
3277 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3278 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3279 REGISTER_CONVERT_TO_RAW): Remove defines.
3280 (i386_register_virtual_type, i386_register_convertible,
3281 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3282 Remove prototypes.
3283 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3284 macros mentioned above.
3285
3286 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3287 (i386lynx_saved_pc_after_call): Remove prototype.
3288 * i386ly-tdep.c: Include "i386-tdep.h".
3289 (i386lynx_saved_pc_after_call): Make static. Use
3290 read_memory_nobpt instead of read_memory. Use
3291 read_memory_unsigned_integer instead of read_memory_integer.
3292 (i386lynx_init_abi): New function.
3293 (i386lynx_coff_osabi_sniffer): New function.
3294 (_initialize_i386bsd_tdep): New function.
3295
3296 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3297 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3298 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3299 (i386_fix_call_dummy): Remove prototype.
3300 * i386-tdep.c (i386_call_dummy_words): New variable.
3301 (i386_gdbarch_init): Adjust for removal of the
3302 macros mentioned above.
3303
3304 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3305
3306 * command.h (add_setshow_auto_boolean_cmd): Replace
3307 add_set_auto_boolean_cmd.
3308 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3309 add_set_auto_boolean_cmd.
3310 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3311 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3312 mask-address'' command.
3313 (show_mask_address): Add cmd parameter.
3314 * remote.c (add_packet_config_cmd): Update. Change type of
3315 set_func and show_func to cmd_sfunc_ftype.
3316 (_initialize_remote): Update `set remote Z-packet'
3317 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3318 (show_remote_protocol_e_packet_cmd): Ditto.
3319 (show_remote_protocol_E_packet_cmd): Ditto.
3320 (show_remote_protocol_P_packet_cmd): Ditto.
3321 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3322 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3323 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3324 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3325 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3326 (show_remote_protocol_Z_packet_cmd): Ditto.
3327 (show_remote_protocol_binary_download_cmd): Ditto.
3328 (show_remote_cmd): Pass NULL to all of above.
3329
3330 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3331
3332 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3333 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3334 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3335 POP_FRAME): Remove defines.
3336 (i386_push_arguments, i386_store_struct_return,
3337 i386_extract_return_value, i386_store_return_value,
3338 i386_extract_struct_value_address, i386_push_dummy_frame,
3339 i386_pop_frame): Renove prototypes.
3340 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3341 macros mentioned above.
3342
3343 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3344
3345 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3346 add_set_boolean_cmd.
3347 (add_setshow_cmd): New function.
3348 * command.h (add_setshow_boolean_cmd): Replace
3349 add_set_boolean_cmd.
3350 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3351 and ``set rdiromatzero''.
3352 * maint.c (_initialize_maint_cmds): Update commented out code.
3353 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3354 * target.c (initialize_targets): Update `set
3355 trust-readonly-sections'.
3356 * remote.c (_initialize_remote): Update `set remotebreak'.
3357
3358 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3359
3360 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3361 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3362 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3363 fit into multi-arch framework.
3364 (i386_breakpoint_from_pc): New function.
3365 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3366 above.
3367
3368 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3369 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3370 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3371 (i386_frameless_function_invocation, i386_frame_num_args,
3372 i386_frame_init_saved_regs): Remove prototypes.
3373 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3374 macros mentioned above.
3375
3376 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3377
3378 * cli/cli-decode.c (set_cmd_cfunc): Update.
3379 (set_cmd_sfunc): Update.
3380 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3381 (set_cmd_sfunc, set_cmd_cfunc): Update.
3382 * cli/cli-decode.h: Update.
3383
3384 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3385
3386 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3387 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3388
3389 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3390
3391 * defs.h (auto_boolean): Declare enum.
3392 * command.h (cmd_auto_boolean): Delete enum.
3393 * mips-tdep.c (mask_address_var): Update.
3394 (mips_mask_address_p): Update.
3395 (show_mask_address): Update.
3396 * remote.c (struct packet_config): Update.
3397 (update_packet_config): Update.
3398 (show_packet_config_cmd): Update.
3399 (packet_ok): Update.
3400 (add_packet_config_cmd): Update.
3401 (_initialize_remote):
3402 * command.h: Update.
3403 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3404 (do_setshow_command): Update.
3405 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3406 * cli/cli-decode.h: Update.
3407
3408 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3409
3410 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3411 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3412 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3413 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3414 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3415 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3416
3417 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3418 list of DJGPP COFF targets.
3419
3420 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3421 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3422 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3423 (FP0_REGNUM): Remove define.
3424 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3425 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3426 (i386_register_virtual_size): Remove protoype.
3427 * i386-tdep.c (i386_register_virtual_size): Removed.
3428 (i386_extract_return_value, i386_store_return_value): Use
3429 FP0_REGNUM instead of NUM_FREGS to determine whether the
3430 floating-point registers are available.
3431 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3432 Adjust for removal of macros mentioned above.
3433
3434 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3435
3436 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3437 comments.
3438 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3439 Remove prototypes.
3440 (supply_gregset, fill_gregset): Remove use of register keyword and
3441 remove declaration for regmap. Use I386_NUM_GREGS instead of
3442 NUM_REGS and NUM_FREGS.
3443 (FPREGSET_FSAVE_OFFSET): Remove.
3444 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3445 NUM_FREGS to determine whether the floating-point registers are
3446 available.
3447
3448 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3449 gnu_store_registers): Replace usage of NUM_GREGS with
3450 I386_NUM_GREGS.
3451
3452 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3453 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3454 usage of NUM_GREGS with I386_NUM_GREGS.
3455
3456 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3457
3458 * i386bsd-nat.c: Include "i386-tdep.h".
3459 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3460 I386_NUM_GREGS.
3461
3462 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3463 and associated comment. They no longer make any sense, since we
3464 don't use this file anymore on Linux.
3465
3466 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3467 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3468 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3469 elements in these arrays.
3470 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3471 MAX_NUM_REGS.
3472
3473 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3474
3475 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3476 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3477
3478 2002-06-14 Andrew Cagney <cagney@redhat.com>
3479
3480 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3481 EXTRACT_RETURN_VALUE.
3482 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3483 EXTRACT_STRUCT_VALUE_ADDRESS.
3484 * gdbarch.h, gdbarch.c: Regenerate.
3485
3486 * values.c (value_being_returned): Handle
3487 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3488 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3489
3490 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3491 * arm-tdep.c (arm_gdbarch_init): Update.
3492 * avr-tdep.c (avr_gdbarch_init): Update.
3493 * cris-tdep.c (cris_gdbarch_init): Update.
3494 * d10v-tdep.c (d10v_gdbarch_init): Update.
3495 * ia64-tdep.c (ia64_gdbarch_init): Update.
3496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3497 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3498 * s390-tdep.c (s390_gdbarch_init): Update.
3499 * sh-tdep.c (sh_gdbarch_init): Update.
3500 * s390-tdep.c (s390_gdbarch_init): Update.
3501 * sparc-tdep.c (sparc_gdbarch_init): Update.
3502 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3503 * v850-tdep.c (v850_gdbarch_init): Update.
3504 * vax-tdep.c (vax_gdbarch_init): Update.
3505 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3506 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3507
3508 * config/arc/tm-arc.h: Update.
3509 * config/d30v/tm-d30v.h: Update.
3510 * config/fr30/tm-fr30.h: Update.
3511 * config/h8300/tm-h8300.h: Update.
3512 * config/h8500/tm-h8500.h: Update.
3513 * config/i386/tm-i386.h: Update.
3514 * config/i386/tm-ptx.h: Update.
3515 * config/i386/tm-symmetry.h: Update.
3516 * config/i960/tm-i960.h: Update.
3517 * config/m32r/tm-m32r.h: Update.
3518 * config/m68k/tm-delta68.h: Update.
3519 * config/m68k/tm-linux.h: Update.
3520 * config/m68k/tm-m68k.h: Update.
3521 * config/m88k/tm-m88k.h: Update.
3522 * config/mcore/tm-mcore.h: Update.
3523 * config/mips/tm-mips.h: Update.
3524 * config/mn10200/tm-mn10200.h: Update.
3525 * config/pa/tm-hppa.h: Update.
3526 * config/pa/tm-hppa64.h: Update.
3527 * config/sparc/tm-sp64.h: Update.
3528 * config/sparc/tm-sparc.h: Update.
3529 * config/sparc/tm-sparclet.h: Update.
3530 * config/z8k/tm-z8k.h: Update.
3531
3532 2002-06-14 Andrew Cagney <cagney@redhat.com>
3533
3534 * Makefile.in (i386_linux_tdep_h): Define.
3535 (i386_tdep_h, i387_tdep_h): Define.
3536 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3537 $(i386_tdep_h) and $(i387_tdep_h).
3538 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3539
3540 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3541
3542 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3543 Already covered by the default.
3544
3545 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3546 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3547 (i386_gdbarch_init): Initialize long_double_format and long_double
3548 bit.
3549
3550 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3551 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3552 Move these to ...
3553 * config/i386/i386sol2.mh: ... here.
3554 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3555 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3556 (SIGCONTEXT_PC_OFFSET): Remove define.
3557 (IN_SIGTRAMP): Remove define.
3558 * i386-sol2-tdep.c: New file.
3559
3560 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3561 * config/i386/tm-i386nw.h: Removed.
3562
3563 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3564 USE_STRUCT_CONVENTION): Remove defines.
3565 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3566 (get_longjmp_target): Remove prototype.
3567 (IN_SIGTRAMP): Remove define.
3568 (i386bsd_in_sigtramp): Remove prototype.
3569 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3570 function. Update comment accordingly
3571 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3572 (FRAME_SAVED_PC): Remove define.
3573 (i386bsd_frame_saved_pc): Remove prototype.
3574 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3575 GET_LONGJMP_TARGET): Remove defines.
3576 (get_longjmp_target): Remove prototype.
3577 (IN_SIGTRAMP): Remove define.
3578 (i386bsd_in_sigtramp): Remove prototype.
3579 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3580 function. Update comment accordingly
3581 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3582 (FRAME_SAVED_PC): Remove define.
3583 (i386bsd_frame_saved_pc): Remove prototype.
3584 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3585 Remove prototype.
3586 (USE_STRUCT_CONVENTION): Remove prototype.
3587 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3588 declaration.
3589 (_initialize_i386bsd_nat): Revise logic to determine some
3590 constants at compile time when compiling a native GDB. Warn if
3591 things don't match up with what we expect.
3592 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3593 Remove variables.
3594 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3595 to use date stored in `struct gdbarch_tdep'.
3596 (i386bsd_sigcontext_offset): Remove varaible.
3597 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3598 stored in `struct gdbarch_tdep'.
3599 (i386bsd_frame_saved_pc): Make static.
3600 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3601 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3602 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3603 i386fbsd4_sc_pc_offset): New variables.
3604 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3605 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3606 functions.
3607 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3608 functions.
3609 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3610 Modify the value of i386fbsd_sigtramp_start and
3611 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3612 i386fbsd_sigtramp_end.
3613 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3614 function.
3615
3616 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3617 define to i386-linux-tdep.h.
3618 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3619 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3620 defines.
3621 (i386_linux_register_name, i386_linux_register_byte,
3622 i386_linux_register_raw_size): Remove prototypes.
3623 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3624 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3625 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3626 TARGET_WRITE_PC): Remove defines.
3627 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3628 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3629 i386_linux_write_pc): Remove prototypes.
3630 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3631 (get_longjmp_target): Remove prototype.
3632 * i386-linux-tdep.h: New file.
3633 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3634 * i386-linux-tdep.c: Include "i386-tdep.h" and
3635 "i386-linux-tdep.h".
3636 (i386_linux_register_name, i386_linux_register_byte,
3637 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3638 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3639 Make static.
3640 (i386_linux_init_abi): New function.
3641 (_initialize_i386_linux_tdep): New function.
3642
3643 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3644 (i386_saved_pc_after_call): Remove prototype.
3645 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3646 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3647 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3648 (i386_register_name, i386_stab_reg_to_regnum,
3649 i386_dwarf_reg_to_regnum): Remove prototypes.
3650 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3651 SIZEOF_SSE_REGS): Remove defines.
3652 (REGISTER_BYTES): Remove define.
3653 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3654 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3655 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3656 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3657 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3658 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3659 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3660 (get_longjmp_target): Remove prototype.
3661 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3662 (sigtramp_saved_pc): Remove define.
3663 (i386v4_sigtramp_saved_pc): Remove prototype.
3664 * config/i386/tm-go32.h (FRAME_CHAIN,
3665 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3666 (i386go32_frame_saved_pc): Remove prototype.
3667 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3668 (get_longjmp_target): Remove prototype.
3669 * i386-tdep.h: Include "osabi.h".
3670 (enum i386_abi): Removed.
3671 (enum struct_return): New enum.
3672 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3673 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3674 sc_pc_offset members.
3675 (i386_gdbarch_register_os_abi): Remove prototype.
3676 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3677 I386_SSE_NUM_REGS): New defines.
3678 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3679 I386_SSE_SIZEOF_REGS): New defines.
3680 (i386_register_name, i386_register_byte, i386_register_raw_size):
3681 New prototypes.
3682 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3683 (i386bsd_sigtramp_saved_pc): New prototype.
3684 * i386-tdep.c: Don't include "elf-bfd.h".
3685 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3686 i386_frame_chain, i386_saved_pc_after_call): Make static.
3687 (i386_frame_saved_pc): Rewrite to call architecture dependent
3688 function to deal with signal handlers. Make static.
3689 (i386go32_frame_saved_pc): Removed.
3690 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3691 Removed.
3692 (i386_get_longjmp_target): New function.
3693 (default_struct_convention, pcc_struct_convention,
3694 reg_struct_convention, valid_conventions, struct_convention): New
3695 variables.
3696 (i386_use_struct_convention): New function.
3697 (i386v4_sigtramp_saved_pc): Renamed to
3698 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3699 (i386_pc_in_sigtramp): New function.
3700 (i386_abi_names): Removed.
3701 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3702 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3703 Removed.
3704 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3705 i386_gdbarch_register_os_abi): Removed.
3706 (struct i386_abi_handler): Removed.
3707 (i386_abi_handler_list): Removed.
3708 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3709 functions.
3710 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3711 i386_nw_init_abi): New functions.
3712 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3713 Use set_gdbarch_xxx() calls instead of relying on macros for a
3714 number of calls.
3715 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3716 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3717 Register the various architecture variants defined in this file.
3718
3719 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3720
3721 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3722 (struct main_type): Remove arg_types member. Update comments for
3723 struct field.
3724 (TYPE_ARG_TYPES): Remove.
3725 (TYPE_FN_FIELD_ARGS): Update.
3726 (smash_to_method_type): Update prototype.
3727
3728 * c-typeprint.c (cp_type_print_method_args): Take method type
3729 instead of argument list. Use new argument layout. Simplify.
3730 (c_type_print_args): Use new argument layout. Simplify.
3731 (c_type_print_base): Update call to cp_type_print_method_args.
3732 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3733 argument; use die->type instead. Update call to
3734 smash_to_method_type.
3735 (read_structure_scope): Update call to dwarf2_add_member_fn.
3736 * gdbtypes.c (allocate_stub_method): Update comment.
3737 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3738 Use new argument layout.
3739 (check_stub_method): Use new argument layout. Don't count
3740 void as an argument.
3741 (print_arg_types): Update comments. Use new argument layout.
3742 (recursive_dump_type): Don't print arg_types member.
3743 * hpread.c (hpread_read_struct_type): Use new argument layout.
3744 (fixup_class_method_type): Likewise.
3745 (hpread_type_lookup): Likewise.
3746 * stabsread.c (read_type): Update calls to read_args and
3747 smash_to_method_type.
3748 (read_args): Use new argument layout. Simplify.
3749 * valops.c (typecmp): Use new argument layout. Update parameters
3750 and comments. Simplify.
3751 (hand_function_call): Use new argument layout.
3752 (search_struct_method): Update call to typecmp.
3753 (find_overload_match): Use new argument layout.
3754
3755 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3756
3757 * NEWS: Mention multithreaded debug support for gdbserver.
3758
3759 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3760
3761 * MAINTAINERS: Mention NEWS.
3762
3763 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3764
3765 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3766 (struct mips_objfile_private, compare_pdr_entries): New.
3767 (non_heuristic_proc_desc): Read the ".pdr" section if it
3768 is present.
3769
3770 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3771
3772 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3773 (arm_debug): New static variable.
3774 (_initialize_arm_tdep): Add ``set debug arm'' command.
3775
3776 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3777
3778 * Makefile.in (sim_arm_h): Define.
3779 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3780 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3781 (arm_register_sim_regno): New function, map an internal REGNUM
3782 onto a simulator register number.
3783 (arm_gdbarch_init): Set register_sim_regno.
3784
3785 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3786
3787 * MAINTAINERS: Add self.
3788
3789 2002-06-11 Jim Blandy <jimb@redhat.com>
3790
3791 * source.c (source_info): Mention whether the symtab has
3792 information about preprocessor macros.
3793
3794 Call the command `info macro', not `show macro'.
3795 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3796 Fix error message.
3797 (_initialize_macrocmd): Register `info_macro_command' in
3798 `infolist', not `showlist'.
3799
3800 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3801
3802 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3803 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3804 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3805 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3806 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3807 unconditionally.
3808 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3809 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3810 (_initialize_mips_tdep): Remove dead code.
3811 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3812 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3813 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3814 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3815 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3816 MIPS_LAST_FP_ARG_REGNUM): Remove.
3817
3818 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3819
3820 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3821 (unwind_tmp_obstack_free, parse_frame_info)
3822 (update_context, cfi_read_fp, cfi_write_fp)
3823 (cfi_frame_chain, cfi_init_extra_frame_info)
3824 (cfi_virtual_frame_pointer): Use the above function.
3825 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3826
3827 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3828
3829 * v850-tdep.c (v850_type_is_scalar): New function.
3830 (v850_use_struct_convention): Match current gcc implementation
3831 as close as possible.
3832 (v850_push_arguments): Fix stack_offset handling. Don't write
3833 struct_addr into register. This is done by v850_store_struct_return.
3834 (v850_extract_return_value): Care for structs.
3835 (v850_store_return_value): Ditto.
3836 (v850_store_struct_return): Actually write address.
3837
3838 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3839
3840 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3841 without debug information too.
3842
3843 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3844
3845 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3846 Make multi-arch pure.
3847 * gdbarch.h, gdbarch.c: Re-generate.
3848 * arm-tdep.c (arm_print_float_info): Update.
3849 * arch-utils.h (default_print_float_info): Update.
3850 * arch-utils.c (default_print_float_info): Update.
3851 * infcmd.c (float_info): Update call.
3852
3853 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3854
3855 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3856 the front of the initialize list.
3857
3858 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3859
3860 * infrun.c (struct inferior_status): Replace fields
3861 selected_frame_address and selected_level with field
3862 selected_frame_id.
3863 (save_inferior_status): Update. Use get_frame_id.
3864 (struct restore_selected_frame_args): Delete.
3865 (restore_selected_frame): Update. Use frame_find_by_id.
3866 (restore_inferior_status): Update.
3867
3868 * breakpoint.h (struct breakpoint): Change type of
3869 watchpoint_frame to frame_id.
3870 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3871 call to get_current_frame.
3872 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3873 get_current_frame.
3874 (watchpoint_check): Use frame_find_by_id.
3875
3876 * frame.h (record_selected_frame): Delete declaration.
3877 * stack.c (record_selected_frame): Delete function.
3878
3879 * frame.h (struct frame_id): Define.
3880 (get_frame_id): Declare.
3881 (frame_find_by_id): Declare.
3882 * frame.c (frame_find_by_id): New function.
3883 (get_frame_id): New function.
3884
3885 2002-06-10 Andrey Volkov <avolkov@transas.com>
3886
3887 * ser-e7kpc.c: Fix duplicated define and call of
3888 _initialize_ser_e7000pc
3889
3890 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3891
3892 * signals/signals.c (target_signal_from_host): Fix #ifdef
3893 SIGRTMIN case.
3894 (do_target_signal_to_host): Likewise.
3895
3896 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3897
3898 * mips-tdep.c (mips_find_abi_section): New function.
3899 (mips_gdbarch_init): Call it.
3900
3901 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3902
3903 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3904 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3905 after Andrew's 2002-06-08 gdbarch change.
3906
3907 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3908
3909 * i386-linux-nat.c (suppy_gregset): Don't supply
3910 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3911 register cache.
3912 (fill_gregset): Don't fetch it under the same circumstances.
3913
3914 2002-06-09 Andrew Cagney <cagney@redhat.com>
3915
3916 * Makefile.in (callback_h): Define.
3917 (remote_sim_h): Update path to remote-sim.h.
3918 (remote-rdp.o): Add $(callback_h).
3919 (remote-sim.o): Use $(callback_h).
3920 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3921 * remote-rdp.c: Include "gdb/callback.h".
3922
3923 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3924
3925 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3926 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3927
3928 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3929
3930 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3931 * rdi-share/serpardr.c: Ditto.
3932 * rdi-share/unixcomm.c: Ditto.
3933 * rdi-share/serdrv.c: Ditto.
3934 * rdi-share/hostchan.h: Ditto.
3935 * rdi-share/hostchan.c: Ditto.
3936 * rdi-share/host.h: Ditto.
3937 * rdi-share/devsw.c: Ditto.
3938
3939 * objfiles.h: Change type of obj_private to void pointer.
3940 * pa64solib.c: Update copyright. Don't include "assert.h", use
3941 strcmp instead of STREQ, use LONGEST, do not use PTR
3942 * somsolib.c: Ditto.
3943
3944 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3945 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3946 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3947
3948 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3949
3950 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3951 (default_get_saved_register): Delete function.
3952 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3953 generic_unwind_get_saved_register.
3954 * gdbarch.h, gdbarch.c: Re-generate.
3955
3956 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3957
3958 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3959 generic_func_frame_chain_valid.
3960 * gdbarch.h, gdbarch.c: Re-generate.
3961 * blockframe.c (generic_func_frame_chain_valid): Only check
3962 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3963 passing FP to PC_IN_CALL_DUMMY.
3964 Fix PR gdb/360.
3965
3966 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3967
3968 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3969 (register_gdbarch_data): Initialize init_p.
3970 (gdbarch_data): Initialize data pointer using the init function.
3971 (init_gdbarch_data): Delete function.
3972 (gdbarch_update_p): Update.
3973 (initialize_non_multiarch): Update.
3974 (struct gdbarch): Add field initialized_p.
3975 * gdbarch.h, gdbarch.c: Re-generate.
3976
3977 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3978
3979 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3980 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3981 better do the things actually here.
3982 * x86-64-tdep.c (x86_64_register_name2nr): New.
3983 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3984 (x86_64_gdbarch_init): Respect the above change.
3985 * x86-64-tdep.h (x86_64_register_name2nr)
3986 (x86_64_register_nr2name): Add prototypes.
3987 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3988
3989 2002-06-06 Michael Snyder <msnyder@redhat.com>
3990
3991 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3992 Delete extra braces and re-indent.
3993 (d10v_store_return_value): Char return values
3994 must be shifted over by one byte in R0.
3995 (d10v_extract_return_value): Delete extra braces, re-indent.
3996
3997 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3998
3999 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4000 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4001 (d10v_integer_to_address): Rewrite.
4002 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4003 the d10v specific functions which take care of converting to the
4004 correct space.
4005
4006 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4007
4008 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4009 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4010
4011 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4012
4013 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4014 includes.
4015 * config/tm-linux.h: Ditto.
4016 * config/alpha/tm-alphalinux.h: Ditto.
4017 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4018 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4019 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4020 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4021 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4022 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4023 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4024 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4025 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4026 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4027 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4028 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4029 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4030 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4031 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4032 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4033 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4034 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4035 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4036 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4037 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4038 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4039 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4040 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4041 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4042 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4043 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4044 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4045 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4046 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4047 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4048 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4049 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4050 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4051 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4052 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4053 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4054
4055 2002-05-04 Aidan Skinner <aidan@velvet.net>
4056
4057 * ada-exp.tab.c: New file
4058 * ada-exp.y: New file
4059 * ada-lang.c: New file
4060 * ada-lang.h: New file
4061 * ada-lex.c: New file
4062 * ada-lex.l: New file
4063 * ada-tasks.c: New file
4064 * ada-typeprint.c: New file
4065 * ada-valprint.c: New file
4066
4067 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4068
4069 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4070 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4071
4072 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4073
4074 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4075 insetead of ppc-linux-tdep.o.
4076 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4077 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4078
4079 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4080
4081 2002-05-07 Christian Groessler <chris@groessler.org>
4082 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4083 bit register contents for little endian hosts.
4084
4085 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4086
4087 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4088 any maintainer.
4089
4090 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4091
4092 * gdbarch.h: Regenerate.
4093
4094 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4095
4096 * MAINTAINERS: Add everyone to write-after-approval list.
4097
4098 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4099
4100 * stack.c (frame_info): Use frame_register_unwind instead of
4101 saved_regs. Mention when the SP is on the stack or in a register.
4102
4103 * frame.h (frame_register_unwind_ftype): Define. Document.
4104 (struct frame_info): Add field register_unwind and
4105 register_unwind_cache.
4106 (frame_register_unwind): Declare.
4107 (generic_unwind_get_saved_register): Declare.
4108
4109 * frame.c (frame_register_unwind): New function.
4110 (generic_unwind_get_saved_register): New function.
4111
4112 * blockframe.c (generic_call_dummy_register_unwind): New function.
4113 (frame_saved_regs_register_unwind): New function.
4114 (set_unwind_by_pc): New function.
4115 (create_new_frame): New function.
4116 (get_prev_frame): New function.
4117
4118 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4119
4120 * a29k-share/: Delete directory.
4121 * remote-vx29k.c: Delete file.
4122
4123 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4124
4125 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4126 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4127
4128 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4129
4130 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4131 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4132 (sparc64nbsd-nat.o)
4133 (sparcnbsd-nat.o)
4134 (sparcnbsd-tdep.o): New dependency lists.
4135 * NEWS: Note new UltraSPARC NetBSD native configuration.
4136 * configure.host (sparc64-*-netbsd*): New host.
4137 * configure.tgt (sparc-*-netbsdelf*)
4138 (sparc-*-netbsd*): Set gdb_target to nbsd.
4139 (sparc64-*-netbsd*): New target.
4140 * sparc64nbsd-nat.c: New file.
4141 * sparcnbsd-nat.c: New file.
4142 * sparcnbsd-tdep.c: New file.
4143 * sparcnbsd-tdep.h: New file.
4144 * config/sparc/nbsd.mt: New file.
4145 * config/sparc/nbsd64.mh: New file.
4146 * config/sparc/nbsd64.mt: New file.
4147 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4148 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4149 (HOST_IPC): Remove.
4150 * config/sparc/nbsdaout.mt: Remove.
4151 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4152 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4153 (HOST_IPC): Remove.
4154 * config/sparc/nbsdelf.mt: Remove.
4155 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4156 sparc-nat.c compatiblity defines.
4157 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4158 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4159 * config/sparc/tm-nbsd64.h: New file.
4160 * config/sparc/tm-nbsdaout.h: Remove.
4161 * config/sparc/xm-nbsd.h: Remove.
4162
4163 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4164
4165 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4166 * sparc-tdep.c: Include osabi.h.
4167 (gdbarch_tdep): Add osabi member.
4168 (_initialize_sparc_tdep): Use gdbarch_register.
4169 (sparc_gdbarch_init): Use generic OS ABI framework.
4170 (sparc_dump_tdep): New function.
4171
4172 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4173
4174 * corefile.c (do_captured_read_memory_integer): Return non-zero
4175 result.
4176 (safe_read_memory_integer): Copy result of memory read when
4177 status is non-zero. Also, add comments.
4178
4179 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4180
4181 * Makefile.in (ppc_tdep_h): Define.
4182 (ppc-linux-nat.o)
4183 (ppc-linux-tdep.o)
4184 (rs6000-tdep.o): Use $(ppc_tdep_h).
4185 (ppc-sysv-tdep.o)
4186 (ppcnbsd-nat.o)
4187 (ppcnbsd-tdep.o): New dependency lists.
4188 * ppc-tdep.h: Use generic OS ABI framework.
4189 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4190 (ppc_linux_init_abi): New functions.
4191 (ppc_sysv_abi_broken_use_struct_convention)
4192 (ppc_sysv_abi_use_struct_convention)
4193 (ppc_sysv_abi_push_arguments): Move to...
4194 * ppc-sysv-tdep.c: ...here.
4195 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4196 * rs6000-tdep.c (process_note_abi_tag_sections)
4197 (get_elfosabi): Remove.
4198 (rs6000_gdbarch_init): Use generic OS ABI framework.
4199 (rs6000_dump_tdep): New function.
4200 (_initialize_rs6000_tdep): Use gdbarch_register.
4201 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4202 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4203 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4204 of ppc-linux-tdep.o.
4205 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4206 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4207 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4208 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4209 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4210 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4211
4212 2002-05-29 Jim Blandy <jimb@redhat.com>
4213
4214 * macroscope.c (default_macro_scope): Put `void' in empty argument
4215 list.
4216
4217 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4218
4219 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4220 * arch-utils.c: Include "sim-regno.h".
4221 * gdbarch.sh: Don't include "sim-regno.h".
4222 * gdbarch.h, gdbarch.c: Regenerate.
4223 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4224 here.
4225 * arch-utils.h (legacy_register_sim_regno): To here.
4226 * remote-sim.c (legacy_register_sim_regno): Move function from
4227 here.
4228 * arch-utils.c (legacy_register_sim_regno): To here.
4229
4230 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4231
4232 * sim-regno.h: New file.
4233 * Makefile.in (sim_regno_h): Define.
4234 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4235 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4236 (legacy_register_sim_regno): New function.
4237 (one2one_register_sim_regno): New function.
4238 (gdbsim_fetch_register): Rewrite.
4239 (gdbsim_store_register): Only store a register when
4240 REGISTER_SIM_REGNO is valid.
4241 * d10v-tdep.c: Include "sim-regno.h".
4242 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4243 (d10v_ts3_register_sim_regno): Ditto.
4244 * gdbarch.sh: Include "sim-regno.h".
4245 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4246 * gdbarch.h, gdbarch.c: Regenerate.
4247 * arch-utils.h (default_register_sim_regno): Delete declaration.
4248 * arch-utils.c (default_register_sim_regno): Delete function.
4249
4250 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4251
4252 * ppcnbsd-nat.c: Rewrite.
4253 * ppcnbsd-tdep.c: New file.
4254 * ppcnbsd-tdep.h: New file.
4255 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4256 solib.o, and solib-svr4.o.
4257 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4258 nbsd-tdep.o, and corelow.o.
4259
4260 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4261
4262 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4263 `tr' and `sed'. Mention that `broken' targets are not expected to
4264 build.
4265
4266 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4267
4268 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4269 Let PC point right after the prologue before looking up symbols.
4270
4271 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4272
4273 * i386-tdep.c (i386_register_virtual_type): Return
4274 builtin_type_vec128i for SSE registers.
4275
4276 * gdbtypes.h (builtin_type_vec128i): Declare.
4277
4278 * gdbtypes.c (build_builtin_type_vec128i): New function.
4279 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4280 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4281 (build_gdbtypes): Initialize new builtin vector types.
4282 (_initialize_gdbtypes): Register new vector types with gdbarch.
4283
4284 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4285
4286 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4287 since it has been multi-arch'd.
4288 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4289 Move Alpha and VAX multi-arch news entries to same section
4290 as other multi-arch news.
4291
4292 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4293
4294 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4295 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4296 static. Rename some register numbers to put them in ns32k-tdep
4297 private namespace.
4298 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4299 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4300 functions.
4301 (_initialize_ns32k_tdep): Use gdbarch_register.
4302 * ns32k-tdep.h: New file.
4303 * ns32knbsd-tdep.c: New file.
4304 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4305 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4306 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4307 REGISTER_BYTES, REGISTER_BYTE): Remove.
4308 * config/ns32k/tm-ns32k.h: New file.
4309 * config/ns32k/tm-umax.h: Remove.
4310
4311 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4312
4313 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4314 ns32k_store_struct_return, ns32k_extract_return_value,
4315 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4316 functions.
4317 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4318 ns32k_saved_pc_after_call.
4319 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4320 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4321 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4322 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4323 ns32k_extract_struct_value_address.
4324
4325 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4326
4327 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4328 ns32k_fix_call_dummy): New.
4329 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4330 ns32k_call_dummy_words.
4331 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4332 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4333 CALL_DUMMY_NARGS): Remove.
4334 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4335
4336 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4337
4338 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4339 ns32k_frame_saved_pc, ns32k_frame_args_address,
4340 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4341 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4342 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4343 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4344 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4345 (BREAKPOINT): Remove..
4346 (FRAME_CHAIN): Define as ns32k_frame_chain.
4347 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4348 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4349 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4350 (FRAME_FIND_SAVED_REGS): Remove.
4351 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4352 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4353 (POP_FRAME): Define as ns32k_pop_frame.
4354
4355 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4356
4357 * ns32k-tdep.c (ns32k_register_byte_32082,
4358 ns32k_register_byte_32382, ns32k_register_raw_size,
4359 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4360 functions.
4361 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4362 ns32k_register_byte_32382.
4363 * config/ns32k/tm-umax.h: Update copyright years.
4364 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4365 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4366 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4367 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4368 (ns32k_get_enter_addr): Fix prototype.
4369
4370 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4371
4372 * ns32k-tdep.c: Update copyright years.
4373 (ns32k_register_name_32082): New function.
4374 (ns32k_register_name_32382): Ditto.
4375 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4376 (REGISTER_NAME): Define as ns32k_register_name_32382.
4377 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4378 (REGISTER_NAME): Define as ns32k_register_name_32082.
4379
4380 2002-05-24 Jim Blandy <jimb@redhat.com>
4381
4382 * dwarf2read.c (free_line_header): Use xfree, not free.
4383
4384 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4385
4386 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4387 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4388
4389 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4390
4391 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4392
4393 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4394
4395 From Ross Alexander at NEC Europe:
4396 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4397
4398 2002-05-23 Michael Snyder <msnyder@redhat.com>
4399
4400 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4401 for input, rather than parse_and_eval_address.
4402
4403 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4404
4405 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4406 * Makefile.in (sim_d10v_h): Update definition.
4407
4408 2002-05-24 Andrew Cagney <cagney@redhat.com>
4409
4410 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4411 change `2002-05-22 Michael Snyder' below.
4412 (d10v_push_arguments): Ditto.
4413 (d10v_extract_return_value): Ditto.
4414
4415 2002-05-23 Jim Blandy <jimb@redhat.com>
4416
4417 * macrotab.c (check_for_redefinition): Don't complain if the new
4418 definition is the same as the previous one. Take more arguments
4419 to allow the comparison.
4420 (macro_define_object, macro_define_function): Pass more arguments
4421 to check_for_redefinition.
4422
4423 2002-05-22 Michael Snyder <msnyder@redhat.com>
4424
4425 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4426 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4427 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4428 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4429 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4430 Add a temp variable to save a call (and a memory read).
4431 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4432 if possible (so that PC_IN_CALL_DUMMY will work).
4433
4434 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4435
4436 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4437
4438 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4439
4440 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4441 fde->cie_ptr.
4442 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4443 (dwarf2_build_frame_info): Add offset to fde->initial_location
4444 so that frames of shared libraries are mapped correctly.
4445 (execute_stack_op): Change type of 'result' from ULONGEST to
4446 CORE_ADDR.
4447
4448 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4449
4450 * config/alpha/tm-nbsd.h: Include solib.h.
4451
4452 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4453
4454 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4455 assumptions about the host's byte order.
4456
4457 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4458
4459 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4460 to dependency list.
4461 * alphanbsd-tdep.c: Include solib-svr4.h.
4462 * shnbsd-tdep.c: Ditto.
4463
4464 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4465
4466 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4467 nbsd-tdep.h to dependency list.
4468 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4469 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4470 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4471 nbsdaout.mh and nbsdelf.mh consistently.
4472 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4473 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4474 nbsdaout.mt and nbsdelf.mh consistently.
4475 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4476 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4477 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4478 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4479 a.out shared library stuff from here...
4480 * config/nm-nbsdaout.h: ...to here.
4481 * config/tm-nbsd.h: Remove.
4482 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4483 * config/arm/nbsd.mh: Remove.
4484 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4485 nbsd-tdep.o.
4486 * config/arm/nbsdaout.mh: New file.
4487 * config/arm/nbsdelf.mh: New file.
4488 * config/arm/nm-nbsdaout.h: New file.
4489 * config/i386/nbsd.mh: Remove.
4490 * config/i386/nbsd.mt: Remove.
4491 * config/i386/nbsdaout.mh: New file.
4492 * config/i386/nbsdaout.mt: New file.
4493 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4494 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4495 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4496 i386_register_u_addr): Remove.
4497 * config/i386/nm-nbsdaout.h: New file.
4498 * config/i386/nm-nbsdelf.h: Remove.
4499 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4500 (USE_STRUCT_CONVENTION): Remove.
4501 * config/i386/tm-nbsdaout.h: New file.
4502 * config/i386/tm-nbsdelf.h: Remove.
4503 * config/m68k/nbsd.mh: Remove.
4504 * config/m68k/nbsd.mt: Remove.
4505 * config/m68k/nbsdaout.mh: New file.
4506 * config/m68k/nbsdaout.mt: New file.
4507 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4508 * config/m68k/nm-nbsdaout.h: New file.
4509 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4510 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4511 * config/ns32k/nbsd.mh: Remove.
4512 * config/ns32k/nbsd.mt: Remove.
4513 * config/ns32k/nbsdaout.mh: New file.
4514 * config/ns32k/nbsdaout.mt: New file.
4515 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4516 * config/ns32k/nm-nbsdaout.h: New file.
4517 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4518 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4519 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4520 (SVR4_SHARED_LIBS): Remove.
4521 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4522 * config/sparc/nbsd.mh: Remove.
4523 * config/sparc/nbsd.mt: Remove.
4524 * config/sparc/nbsdaout.mh: New file.
4525 * config/sparc/nbsdaout.mt: New file.
4526 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4527 * config/sparc/nbsdelf.mt: New file.
4528 * config/sparc/nm-nbsdaout.h: New file.
4529 * config/sparc/nm-nbsdelf.h: Remove.
4530 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4531 * config/sparc/tm-nbsdaout.h: New file.
4532
4533 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4534
4535 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4536 mipsnbsd-tdep.c
4537 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4538
4539 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4540
4541 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4542 shnbsd-nat.c.
4543 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4544
4545 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4546
4547 * NEWS: Note new MIPS NetBSD native configuration.
4548 * configure.host (mips*-*-netbsd*): New host.
4549 * configure.tgt (mips*-*-netbsd*): New target.
4550 * mipsnbsd-nat.c: New file.
4551 * mipsnbsd-tdep.c: New file.
4552 * mipsnbsd-tdep.h: New file.
4553 * config/mips/nbsd.mh: New file.
4554 * config/mips/nbsd.mt: New file.
4555 * config/mips/nm-nbsd.h: New file.
4556 * config/mips/tm-nbsd.h: New file.
4557
4558 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4559
4560 * Makefile.in (SFILES): Add osabi.c.
4561 (COMMON_OBS): Add osabi.o.
4562 (osabi.o): New dependency list.
4563 * osabi.c: New file.
4564 * osabi.h: New file.
4565 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4566
4567 * Makefile.in (alpha_tdep_h): Define and use instead of
4568 alpha-tdep.h.
4569 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4570 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4571 Remove.
4572 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4573 * alpha-tdep.h: Include osabi.h.
4574 (alpha_abi): Remove.
4575 (gdbarch_tdep): Use generic OS ABI framework.
4576 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4577 gdbarch_register_osabi.
4578 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4579 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4580 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4581
4582 * Makefile.in (sh_tdep_h): Add osabi.h.
4583 * sh-tdep.h (sh_osabi): Remove.
4584 (gdbarch_tdep): Use generic OS ABI framework.
4585 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4586 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4587 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4588 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4589
4590 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4591 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4592 gdbarch_register_osabi.
4593 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4594 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4595 (get_elfosabi): Rename to...
4596 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4597 ABI framework support routines.
4598 (arm_gdbarch_init): Use generic OS ABI framework.
4599 (arm_dump_tdep): Likewise.
4600 (_initialize_arm_tdep): Likewise.
4601 * arm-tdep.h: Include osabi.h.
4602 (arm_abi): Remove.
4603 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4604 osabi member.
4605 (arm_gdbarch_register_os_abi): Remove prototype.
4606 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4607 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4608
4609 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4610 * mips-tdep.c: Include osabi.h.
4611 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4612 OS ABI framework.
4613
4614 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4615
4616 * h8300-tdep.c: Fix formatting.
4617
4618 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4619
4620 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4621 printing vector registers.
4622
4623 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4624
4625 From Fernando Nasser:
4626 * remote.c (remote_async_open_1): Re-throw the exception when the
4627 connection fails.
4628 (remote_cisco_open): Ditto.
4629 (remote_open_1): Ditto.
4630
4631 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4632
4633 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4634 (remote_start_remote): Add uiout parameter. Pass through to
4635 remote_start_remote_dummy.
4636 (remote_open_1): Use catch_exception instead of catch_errors.
4637 (remote_async_open_1): Ditto.
4638 (remote_cisco_open): Ditto.
4639
4640 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4641
4642 * remote.c (remote_start_remote): Replace PTR with void pointer.
4643 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4644 static.
4645
4646 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4647
4648 * gdb_indent.sh: Allow the script to be run in the sim directory.
4649
4650 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4651
4652 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4653 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4654
4655 * corelow.c (core_open): Only call set_gdbarch_from_file if
4656 exec_bfd is NULL.
4657
4658 2002-05-17 Andrey Volkov <avolkov@transas.com>
4659
4660 * h8300-tdep.c: Add support of EXR register
4661 * config/h8300/tm-h8300.h: Ditto.
4662
4663 2002-05-17 Andrey Volkov <avolkov@transas.com>
4664
4665 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4666
4667 2002-05-17 Andrey Volkov <avolkov@transas.com>
4668
4669 * h8300-tdep.c: Change literal regnums to REGNO.
4670
4671 2002-05-17 Jim Blandy <jimb@redhat.com>
4672
4673 * NEWS: Note addition of macro support.
4674
4675 Expand preprocessor macros in C expressions.
4676 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4677 (scan_macro_expansion, scanning_macro_expansion,
4678 finished_macro_expansion): New function declarations.
4679 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4680 variable declarations.
4681 * parser-defs.h (expression_context_pc): New declaration.
4682 * parse.c (expression_context_pc): New variable.
4683 (parse_exp_1): Set expression_context_pc, as well as
4684 expression_context_block.
4685 * c-exp.y (yylex): If we're not already reading the result of a
4686 macro expansion, try to macro-expand the next token. When we're
4687 done scanning a macro expansion, switch back to the mainline text.
4688 Commas and `if's in a macro's expansion don't terminate the input.
4689 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4690 (macro_original_text, macro_expanded_text,
4691 expression_macro_lookup_func, expression_macro_lookup_baton): New
4692 variables.
4693 (scan_macro_expansion, scanning_macro_expansion,
4694 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4695 c_preprocess_and_parse): New functions.
4696 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4697 c_preprocess_and_parse, instead of c_parse.
4698 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4699 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4700
4701 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4702
4703 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4704 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4705 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4706
4707 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4708
4709 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4710
4711 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4712
4713 * Makefile.in (sh_tdep_h): Define and use.
4714 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4715 register enum): Move to...
4716 * * sh-tdep.h: ...here.
4717 * sh-tdep.c: Include sh-tdep.h.
4718 * sh3-rom.c: Likewise.
4719 * shnbsd-tdep.c: Likewise.
4720
4721 2002-05-16 Michael Snyder <msnyder@redhat.com>
4722
4723 * arm-tdep.c: Spelling fix in comment.
4724
4725 2002-05-16 Jim Blandy <jimb@redhat.com>
4726
4727 Add commands for manually expanding macros and showing their
4728 definitions.
4729 * macrocmd.c, macroscope.c, macroscope.h: New files.
4730 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4731 (macroscope_h): New variable.
4732 (HFILES_NO_SRCDIR): Add macroscope.h.
4733 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4734 (macroscope.o, macrocmd.o): New rules.
4735
4736 Teach the Dwarf 2 reader to read macro information.
4737 * dwarf2read.c: #include "macrotab.h".
4738 (dwarf_macinfo_buffer): New variable.
4739 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4740 dwarf_macinfo_size.
4741 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4742 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4743 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4744 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4745 dwarf2_macro_spaces_in_definition): New complaints.
4746 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4747 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4748 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4749 the partial symbol table.
4750 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4751 from what's recorded in the partial symbol table.
4752 (read_file_scope): If the compilation unit has a
4753 `DW_AT_macro_info' attribute, read its macro information.
4754 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4755
4756 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4757
4758 Fix PR gdb/546
4759 * ser-tcp.c: Don't include <netinet/udp.h>.
4760
4761 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4762
4763 * MAINTAINERS: Update my email address.
4764
4765 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4766
4767 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4768 include file of the same name.
4769
4770 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4771
4772 * configure.tgt: Mark v850 as multi-arched.
4773 * config/v850/tm-v850.h: Remove file.
4774 * config/v850/v850.mt: Eliminate TM_FILE.
4775
4776 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4777
4778 * v850-tdep.c: Full multi-arch.
4779 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4780 Define GDB_MULTI_ARCH to 2.
4781
4782 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4783
4784 * p-exp.y (current_type): New static variable.
4785 Carries the type of the expression at the position that is parsed.
4786 (push_current_type, pop_current_type): Two new functions. Used
4787 to store/restore current_type in expression on specific tokens.
4788 (search_field): New static variable. Set to one after parsing a point
4789 as at that point only a FIELDNAME token should be searched.
4790 (FIELDNAME): New token. After a point only a token belonging to
4791 current_type type definition is allowed.
4792 (all over token rules): reset and change current_type according
4793 to rules.
4794 (exp '[' rule): insert implicit array index field if
4795 exp is a pascal string type.
4796
4797 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4798
4799 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4800 frame info. Use frame_info's saved_regs instead of matching member
4801 in extra_frame_info throughout.
4802 (v850_frame_init_saved_regs): New function.
4803 (v850_init_extra_frame_info): Move most functionality into
4804 v850_frame_init_saved_regs().
4805 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4806 (v850_frame_find_saved_regs): Remove declaration.
4807 (FRAME_FIND_SAVED_REGS): Remove definition.
4808 (v850_frame_init_saved_regs): Add declaration.
4809 (FRAME_INIT_SAVED_REGS): Add definition.
4810
4811 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4812
4813 * v850-tdep.c: Begin multi-arch'ing v850.
4814 (v850_target_architecture_hook): Remove function.
4815 (v850_gdbarch_init): New function. Add code previously in
4816 v850_target_architecture_hook().
4817 (_initialize_v850_tdep): Don't set target_architecture_hook.
4818 Call register_gdbarch_init() instead.
4819
4820 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4821
4822 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4823 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4824 (fixup_class_method_type): Likewise.
4825
4826 2002-05-15 Jim Blandy <jimb@redhat.com>
4827
4828 Add macro structures to GDB's symbol tables. Nobody puts anything
4829 in them yet.
4830 * symtab.h (struct symtab): New member: `macro_table'.
4831 * buildsym.h (pending_macros): New global variable.
4832 * buildsym.c: #include "macrotab.h".
4833 (buildsym_init): Initialize `pending_macros'.
4834 (end_symtab): If we found macro information while reading a CU's
4835 debugging info, do build a symtab structure for it. Make the
4836 symtab point to the macro information, and clear the
4837 `pending_macros' pointer which held it while we were reading the
4838 debug info.
4839 (really_free_pendings): Free any pending macro table.
4840 * objfiles.h (struct objfile): New member: `macro_cache'.
4841 * objfiles.c (allocate_objfile): Set allocate and free functions
4842 for the macro cache's objstack.
4843 (free_objfile): Empty the macro cache's obstack.
4844 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4845 set new allocate and free functions for it.
4846 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4847 free functions for the macro cache's objstack. (Why is this
4848 function building its own objfile?)
4849 * symmisc.c (print_objfile_statistics): Print statistics on the
4850 macro bcache.
4851 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4852
4853 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4854
4855 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4856 (REGISTER_U_ADDR): Delete definition.
4857 (arm_register_u_addr): Delete declaration.
4858
4859 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4860
4861 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4862 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4863
4864 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4865
4866 * regcache.c (register_valid): Revise comments refering to "Not
4867 available" and "unavailable".
4868 * frame.c (frame_register_read): Ditto.
4869 * findvar.c (value_of_register): Ditto.
4870
4871 2002-05-15 Andrew Cagney <cagney@redhat.com>
4872
4873 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4874 (remote-sim.o): Update dependencies.
4875 (d10v-tdep.o): Specify dependencies.
4876 (sim_d10v_h): Define.
4877
4878 2002-05-14 Jim Blandy <jimb@redhat.com>
4879
4880 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4881 * macrotab.c (macro_lookup_inclusion, find_definition,
4882 new_macro_table): Same.
4883
4884 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4885 not `! strcmp ()'. This is a dubious improvement.
4886 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4887
4888 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4889 although it's not necessary, to avoid a warning.
4890
4891 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4892
4893 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4894 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4895 TYPE_INSTANCE_FLAGS.
4896 (struct main_type): New.
4897 (struct type): Move most members to struct main_type. Change
4898 cv_type and as_type to new type_chain member. Add instance_flags.
4899 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4900 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4901 (finish_cv_type): Remove prototype.
4902 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4903 Set TYPE_CHAIN.
4904 (alloc_type_instance): New function.
4905 (smash_type): New function.
4906 (make_pointer_type, make_reference_type, make_function_type)
4907 (smash_to_member_type, smash_to_method_type): Call smash_type.
4908 (make_qualified_type): New function.
4909 (make_type_with_address_space): Call make_qualified_type.
4910 (make_cv_type): Likewise.
4911 (finish_cv_type): Remove unnecessary function.
4912 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4913 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4914 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4915 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4916 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4917 * hpread.c (hpread_read_struct_type): Likewise.
4918 * stabsread.c (read_struct_type): Likewise.
4919
4920 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4921
4922 * configure.tgt: Add a catch all sh* target, for cases like
4923 sh[2,3,4]-elf and sh-hms.
4924
4925 2002-05-14 Keith Seitz <keiths@redhat.com>
4926
4927 * event-loop.c (create_file_handler): Don't do anything but
4928 update data when we are given a fd which we are already
4929 monitoring.
4930
4931 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4932
4933 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4934 (update_context): Use __func__ in warnings.
4935
4936 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4937
4938 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4939 and tcp_close to net_open and net_close.
4940 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4941 using UDP if requested. Don't try to disable Nagle on UDP
4942 sockets.
4943 * remote.c (remote_serial_open): New function. Warn about UDP.
4944 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4945
4946 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4947
4948 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4949
4950 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4951
4952 * configure.tgt: Remove sh-hms target.
4953 * MAINTAINERS: Don't list sh-hms as a separate target.
4954
4955 2002-05-13 Jim Blandy <jimb@redhat.com>
4956
4957 Add first preprocessor macro-expansion files.
4958 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4959 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4960 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4961 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4962 (COMMON_OBS): Add macrotab.o, macroexp.o.
4963 (macroexp.o, macrotab.o): New rules.
4964
4965 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4966
4967 * config/m88k/tm-m88k.h: Update copyright.
4968 (m88k_target_write_pc): Declare
4969 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4970 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4971 (SHIFT_INST_REGS): Update definition.
4972 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4973 using old definition of TARGET_WRITE_PC.
4974 * regcache.c (generic_target_write_pc): Delete code handling
4975 NNPC_REGNUM.
4976 * gdbarch.sh (NNPC_REGNUM): Delete.
4977 * gdbarch.h, gdbarch.c: Regenerate.
4978
4979 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4980
4981 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4982 builtin reg number.
4983
4984 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4985
4986 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4987 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4988 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4989 access macros.
4990 * c-typeprint.c (cp_type_print_method_args): Likewise.
4991 (c_type_print_args): Likewise.
4992 * d10v-tdep.c (d10v_push_arguments): Likewise.
4993 (d10v_extract_return_value): Likewise.
4994 * expprint.c (print_subexp): Likewise.
4995 * gdbtypes.c (lookup_primitive_typename): Likewise.
4996 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4997 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4998 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4999 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5000 (TYPE_VECTOR): Likewise.
5001 * hpread.c (hpread_read_struct_type)
5002 (fix_static_member_physnames, fixup_class_method_type)
5003 (hpread_type_lookup): Likewise.
5004 * mdebugread.c (parse_symbol, parse_type): Likewise.
5005 * p-lang.c (is_pascal_string_type): Likewise.
5006 * valops.c (hand_function_call): Likewise.
5007 * x86-64-tdep.c (classify_argument): Likewise.
5008
5009 * hpread.c (hpread_read_function_type)
5010 (hpread_read_doc_function_type): Call replace_type.
5011 * dstread.c (create_new_type): Delete.
5012 (decode_dst_structure, process_dst_function): Call alloc_type.
5013 Use type access macros.
5014
5015 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5016
5017 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5018 the're not supported by the current architecture.
5019 (i387_fill_fxsave): Likewise.
5020
5021 2002-05-12 Fred Fish <fnf@redhat.com>
5022
5023 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5024 sect_index_xxx members to index the first slot in section_offsets
5025 if all of the section_offsets are zero.
5026
5027 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5028
5029 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5030 checked in with last change.
5031
5032 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5033
5034 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5035 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5036 config.sub.
5037
5038 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5039
5040 * Makefile.in: Update dependencies.
5041
5042 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5043
5044 * language.c (local_hex_string_custom): Simplify. Do not depend
5045 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5046
5047 * memattr.c (mem_info_command): Replace calls to
5048 longest_local_hex_string and longest_local_hex_string_custom.
5049 * buildsym.c (make_blockvector): Ditto.
5050 * solib.c (info_sharedlibrary_command): Ditto.
5051 * tracepoint.c (tracepoints_info): Ditto.
5052 * symtab.c (print_msymbol_info): Ditto.
5053
5054 * language.c (local_hex_string): Delete.
5055 (local_hex_string_custom): Delete.
5056 (longest_local_hex_string): Rename to local_hex_string.
5057 (longest_local_hex_string_custom): Rename to
5058 local_hex_string_custom.
5059 * language.h (local_hex_string): Change parameter type to LONGEST.
5060 (local_hex_string_custom): Ditto.
5061 (longest_local_hex_string): Delete declaration.
5062 (longest_local_hex_string_custom): Ditto.
5063
5064 * solib.c: Update copyright.
5065 * memattr.c: Update copyright.
5066
5067 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5068
5069 * arch-utils.h (legacy_register_to_value): Declare.
5070 (legacy_value_to_register): Declare.
5071 (legacy_convert_register_p): Declare.
5072 * arch-utils.c (legacy_register_to_value): New function.
5073 (legacy_value_to_register): New function.
5074 (legacy_convert_register_p): New function.
5075
5076 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5077 (VALUE_TO_REGISTER): Define.
5078 (CONVERT_REGISTER_P): Define.
5079 * gdbarch.h, gdbarch.c: Regenerate.
5080
5081 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5082 VALUE_TO_REGISTER.
5083 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5084 CONVERT_REGISTER_P.
5085
5086 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5087 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5088
5089 * Makefile.in: Update dependencies for valops.c.
5090 * valops.c: Include "gdb_assert.h".
5091 (typecmp): Skip THIS parameter to methods.
5092 (find_method_list): Remove static_memfuncp argument,
5093 update callers. Check for stub methods.
5094 (find_value_oload_method_list): Don't set *static_memfuncp.
5095 (find_overload_match): Don't check for stub methods. Assert
5096 that methods are not stubbed. Handle static methods.
5097 (value_find_oload_method_list): Remove static_memfuncp argument.
5098 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5099 to the argument list for static stub methods.
5100 * value.h (value_find_oload_method_list): Update prototype.
5101
5102 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5103
5104 * arch-utils.h (generic_register_size): Declare.
5105 (generic_register_raw_size, generic_register_virtual_size): Delete
5106 declarations.
5107 * arch-utils.c (generic_register_raw_size): Delete.
5108 (generic_register_size): New function.
5109 (generic_register_virtual_size): Delete.
5110
5111 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5112 default generic_register_size.
5113 * gdbarch.h, gdbarch.c: Re-generate.
5114
5115 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5116 register_virtual_size.
5117 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5118 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5119
5120 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5121
5122 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5123 * gdbarch.h, gdbarch.c: Regenerate.
5124 * gnu-v3-abi.c: Update copyright.
5125 (vtable_address_point_offset): Update.
5126 (gnuv3_rtti_type): Update.
5127 (gnuv3_baseclass_offset): Update.
5128 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5129 (init_fetch_link_map_offsets): Update.
5130 * remote.c (get_remote_state): Update.
5131
5132 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5133
5134 * TODO: Remove value_headof/value_from_vtable_info comment.
5135 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5136 * values.c (value_headof, value_from_vtable_info): Delete.
5137 * value.h (value_from_vtable_info): Delete prototype.
5138
5139 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5140
5141 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5142 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5143 $(gdb_regex_h).
5144 (gdb_assert_h): Define.
5145 (gdb_wait_h): Define.
5146 (gdb_regex_h): Define.
5147
5148 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5149
5150 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5151 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5152
5153 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5154
5155 * nbsd-tdep.c: Fix comment.
5156
5157 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5158
5159 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5160 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5161 (nbsd-tdep.o): New dependency list.
5162 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5163 nbsd-tdep.h.
5164 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5165 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5166 * nbsd-tdep.c: New file.
5167 * nbsd-tdep.h: New file.
5168 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5169 nbsd-tdep.h.
5170 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5171 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5172 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5173 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5174
5175 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5176
5177 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5178 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5179 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5180 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5181 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5182 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5183
5184 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5185
5186 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5187 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5188 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5189 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5190 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5191 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5192 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5193
5194 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5195
5196 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5197 fetch_elfcore_registers to...
5198 * i386nbsd-tdep.c: ...here.
5199 (i386nbsd_use_struct_convention): Rename to...
5200 (i386nbsd_aout_use_struct_convention): ...this.
5201 (i386nbsd_supply_reg): New function.
5202 (i386nbsd_fill_reg): New function.
5203 (fetch_core_registers): Use i386nbsd_supply_reg.
5204 (fetch_elfcore_registers): Likewise.
5205 (_initialize_i386nbsd_tdep): New function.
5206 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5207 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5208 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5209 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5210 (i386nbsd_aout_use_struct_convention): ...this.
5211
5212 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5213
5214 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5215 (store_inferior_registers): Use shnbsd_fill_reg.
5216 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5217 sh_nbsd_supply_register): Collapse into...
5218 (shnbsd_supply_reg): ...this.
5219 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5220 (shnbsd_fill_reg): ...this.
5221 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5222 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5223 (fetch_core_registers): Use shnbsd_supply_reg.
5224 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5225 (sh_nbsd_core_fns): Rename to...
5226 (shnbsd_core_fns): ...this.
5227 (sh_nbsd_elfcore_fns): Rename to...
5228 (shnbsd_elfcore_fns): ...this.
5229 (sh_nbsd_init_abi): Rename to...
5230 (shnbsd_init_abi): ...this.
5231 (_initialize_sh_nbsd_tdep): Rename to...
5232 (_initialize_shnbsd_tdep): ...this.
5233 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5234 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5235 sh_nbsd_fill_register): Remove prototypes.
5236 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5237
5238 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5239
5240 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5241 (i387-nat.o): Delete dependency list.
5242 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5243 (x86-64-linux-nat.o): Likewise.
5244 * i387-nat.c: Delete file, moving contents to...
5245 * i387-tdep.c: ...here.
5246 * i387-nat.h: Rename...
5247 * i387-tdep.h: ...to this.
5248 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5249 * i386-linux-nat.c: Likewise.
5250 * i386bsd-nat.c: Likewise.
5251 * i386gnu-nat.c: Likewise.
5252 * i386nbsd-nat.c: Likewise.
5253 * i386v4-nat.c: Likewise.
5254 * x86-64-linux-nat.c: Likewise.
5255 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5256 * config/i386/go32.mh (NATDEPFILES): Likewise.
5257 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5258 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5259 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5260 * config/i386/linux.mh (NATDEPFILES): Likewise.
5261 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5262 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5263 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5264 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5265
5266 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5267
5268 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5269 (alphanbsd-nat.o): Remove dependency list.
5270 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5271 * alphanbsd-nat.c: Delete. Contents moved to...
5272 * alphanbsd-tdep.c: ...here.
5273 (_initialize_alphanbsd_tdep): Register core functions.
5274 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5275
5276 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5277
5278 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5279 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5280 (alphanbsd-nat.o): Likewise.
5281 (alphabsd-tdep.o): New dependency list.
5282 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5283 (fill_gregset): Use alphabsd_fill_reg.
5284 (supply_fpregset): Use alphabsd_supply_fpreg.
5285 (fill_fpregset): Use alphabsd_fill_fpreg.
5286 (fetch_inferior_registers): Use struct reg and struct fpreg
5287 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5288 and alphabsd_supply_fpreg.
5289 (store_inferior_registers): Use struct reg and struct fpreg
5290 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5291 and alphabsd_fill_fpreg.
5292 * alphabsd-tdep.c: New file.
5293 * alphabsd-tdep.h: New file.
5294 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5295 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5296 alphabsd_supply_fpreg.
5297 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5298 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5299
5300 2002-05-11 Eric Christopher <echristo@redhat.com>
5301
5302 * mips-tdep.c (mips_double_register_type): Fix thinko.
5303 (mips_single_register_type): Ditto.
5304 * MAINTAINERS: Add self.
5305
5306 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5307
5308 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5309 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5310 right thing on architectures with different endianness and/or
5311 integer sizes.
5312
5313 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5314
5315 From Christian Limpach <chris@Pin.LU>
5316 * configure.in: Change sed expression which comments out
5317 NATDEPFILES to also comment out continuation lines.
5318 * configure: Regenerate.
5319
5320 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5321
5322 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5323 big patch.
5324
5325 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5326
5327 * sh-tdep.c: Include correct file.
5328
5329 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5330
5331 New support for sh64-elf (sh5) target.
5332
5333 * configure.tgt: For sh64-elf target, default to sh-elf.
5334
5335 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5336 (struct gdbarch_tdep): Add new fields for new registers and ABI
5337 info.
5338
5339 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5340 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5341 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5342 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5343 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5344 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5345 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5346 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5347 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5348 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5349 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5350 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5351 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5352 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5353 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5354 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5355 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5356 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5357 sign_extend, sh64_nofp_frame_init_saved_regs,
5358 sh64_init_extra_frame_info, sh64_get_saved_register,
5359 sh64_extract_struct_value_address, sh64_pop_frame,
5360 sh64_push_arguments, sh64_extract_return_value,
5361 sh64_store_return_value, sh64_show_media_regs,
5362 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5363 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5364 sh_sh64_register_virtual_type,
5365 sh_sh64_register_convert_to_virtual,
5366 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5367 sh64_register_read, sh64_pseudo_register_write,
5368 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5369 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5370 sh64_do_pseudo_register, sh_compact_do_registers_info,
5371 sh64_do_registers_info, sh_gdbarch_init): New functions.
5372
5373 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5374
5375 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5376
5377 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5378
5379 * linespec.c (decode_line_1): Check for a double quote after
5380 a filename correctly.
5381
5382 2002-05-10 Jim Blandy <jimb@redhat.com>
5383
5384 Properly track the size of the current objfile's .debug_line section.
5385 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5386 (DWARF_LINE_SIZE): New macro.
5387 (dwarf2_build_psymtabs_hard): Record the line section's size in
5388 the partial symbol table.
5389 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5390 symbol table.
5391
5392 2002-05-10 Petr Sorfa <petrs@caldera.com>
5393
5394 * ia64-tdep.c: Handle breakpoints on L instruction type
5395 in MLX instruction bundle by moving the breakpoint to
5396 the third slot (X instruction type) as L holds only data.
5397
5398 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5399
5400 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5401 (process_one_symbol): Complain about discarding local symbols
5402 due to a misplaced N_LBRAC entry.
5403
5404 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5405
5406 From Daniel Berlin <dan@cgsoftware.com>
5407 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5408 decrease the depth we are at, in the case of templates.
5409
5410 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5411
5412 * mips-tdep.c (mips_float_register_type): New function.
5413 (mips_double_register_type): New function.
5414 (mips_print_register): Use them.
5415 (do_fp_register_row): Likewise.
5416
5417 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5418
5419 * signals/signals.c (signals): Remove conditional compilation around
5420 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5421 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5422
5423 2002-05-09 Michael Snyder <msnyder@redhat.com>
5424
5425 * remote-rdp.c (remote_rdp_can_run): Remove.
5426
5427 2002-05-09 Tom Tromey <tromey@redhat.com>
5428
5429 * jv-valprint.c (java_val_print): Handle `char' as a special case
5430 of TYPE_CODE_INT.
5431
5432 2002-05-09 Michael Snyder <msnyder@redhat.com>
5433
5434 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5435 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5436 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5437 str r(0123),[sp,#nn].
5438 (arm_skip_prologue): Ditto. Also make disassembly
5439 order-independent by placing it in a loop.
5440
5441 2002-05-06 Michael Snyder <msnyder@redhat.com>
5442
5443 * stabsread.c (read_type): Add recognition for new attribute:
5444 "@V;" means that an array type is actually a vector.
5445 This is analogous to the vector flag that's been added to dwarf2.
5446
5447 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5448
5449 * i386-tdep.h (i386_abi): New enum.
5450 (struct gdbarch_tdep): Replace os_ident member with abi.
5451 (i386_gdbarch_register_os_abi): New prototype.
5452 * i386-tdep.c (i386_abi_names): New array.
5453 (process_note_abi_tag_sections): Removed.
5454 (process_note_sections): New function.
5455 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5456 (struct i386_abi_handler): New struct.
5457 (i386_abi_handler_list): New variable.
5458 (i386_gdbarch_register_os_abi): New function.
5459 (i386_gdbarch_init): Adapt for the changes given above.
5460
5461 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5462
5463 * gregset.h: Say "GNU/Linux".
5464
5465 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5466
5467 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5468 (build_gdbtypes): Build builtin_type_v2_float.
5469 (_initialize_gdbtypes): Register new builtin type.
5470
5471 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5472
5473 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5474 (clear_gdbarch_swap): New function.
5475 (initialize_non_multiarch): Call.
5476 (gdbarch_update_p): Before calling init(), swap out and clear the
5477 existing architecture.
5478 * gdbarch.c: Regenerate.
5479
5480 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5481
5482 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5483 alphanbsd-tdep.c.
5484
5485 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5486
5487 * sh-nbsd-nat.c: Rename to...
5488 * shnbsd-nat.c: ...this.
5489 * sh-nbsd-tdep.c: Rename to...
5490 * shnbsd-tdep.c: ...this.
5491 * sh-nbsd-tdep.h: Rename to...
5492 * shnbsd-tdep.h: ...this.
5493 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5494 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5495
5496 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5497
5498 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5499 concatenation for command help messages.
5500
5501 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5502
5503 * NEWS: Note new sh*-*-netbsdelf* configuration.
5504 * configure.host: Set gdb_host_cpu to sh for all sh*.
5505 (sh*-*-netbsdelf*): New host.
5506 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5507 (sh*-*-netbsdelf*): New target.
5508 * sh-nbsd-nat.c: New file.
5509 * sh-nbsd-tdep.c: New file.
5510 * sh-nbsd-tdep.h: New file.
5511 * config/sh/nbsd.mh: New file.
5512 * config/sh/nbsd.mt: New file.
5513 * config/sh/nm-nbsd.h: New file.
5514 * config/sh/tm-nbsd.h: New file.
5515
5516 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5517
5518 * sh-tdep.c (sh_osabi_names): Declare.
5519 (process_note_abi_tag_sections): New function.
5520 (get_elfosabi): Ditto.
5521 (sh_gdbarch_register_os_abi): Ditto.
5522 (sh_dump_tdep): Ditto.
5523 _initialize_sh_tdep): Use gdbarch_register to register
5524 sh_gdbarch_init and sh_dump_tdep.
5525 * config/sh/tm-sh.h (sh_osabi): Declare.
5526 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5527
5528 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5529
5530 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5531 (thumb_scan_prologue): Ditto.
5532 (arm_find_callers_reg): Ditto.
5533 (arm_frame_chain): Ditto.
5534 (arm_init_extra_frame_info): Ditto.
5535 (arm_frame_saved_pc): Ditto.
5536 (arm_pop_frame): Ditto.
5537 (arm_push_return_address): New function.
5538 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5539 call_dummy_location, call_dummy_breakpoint_offset_p,
5540 call_dummy_breakpoint_offset, call_dummy_p,
5541 call_dummy_stack_adjust_p, call_dummy_words,
5542 sizeof_call_dummy_words, call_dummy_start_offset,
5543 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5544 call_dummy_address, push_return_address and push_dummy_frame for
5545 generic dummy frames.
5546
5547 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5548
5549 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5550 size computation for alloca.
5551 (sh_fp_frame_init_saved_regs): Likewise.
5552
5553 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5554
5555 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5556 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5557 * arm-tdep.c (arm_store_return_value): Use them.
5558 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5559 * remote-rdp.c (remote_rdp_fetch_register): Use
5560 ARM_MAX_REGISTER_RAW_SIZE.
5561 (remote_rdp_store_register): Likewise.
5562
5563 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5564
5565 * dwarf2cfi.c: Code cleanup, removed unused variables,
5566 added default labels to switch {} statements.
5567 * x86-64-tdep.c: Ditto.
5568 * x86-64-linux-nat.c: Ditto.
5569
5570 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5571
5572 * solib.h: Protect against multiple inclusion.
5573
5574 2002-05-06 Jim Blandy <jimb@redhat.com>
5575
5576 Add first preprocessor macro-expansion files.
5577 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5578 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5579 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5580 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5581 (COMMON_OBS): Add macrotab.o, macroexp.o.
5582 (macroexp.o, macrotab.o): New rules.
5583
5584 Separate the job of reading the line number info statement program
5585 header (...expialidocious) out into its own function.
5586 * dwarf2read.c (struct line_head, struct filenames, struct
5587 directories): Replace with...
5588 (struct line_header): New structure, containing the full
5589 contents of the statement program header, including the
5590 include directory and file name tables.
5591 (read_file_scope): If we have line number info, instead of just
5592 calling dwarf_decode_lines to do all the work, call
5593 dwarf_decode_line_header first to get a `struct line_header'
5594 containing the data in the statement program header, and then
5595 pass that to dwarf_decode_lines, which will pick up where that
5596 left off. Be sure to clean up the `struct line_header' object.
5597 (dwarf_decode_line_header, free_line_header, add_include_dir,
5598 add_file_name): New functions.
5599 (dwarf_decode_lines): Move all the code to read the statement
5600 program header into dwarf_decode_line_header. Take the line
5601 header it built as the first argument, instead of the offset to
5602 the compilation unit's line number info. Use the new `struct
5603 line_header' type instead of the old structures. No need to do
5604 cleanups here now, since we don't allocate anything.
5605 (dwarf2_statement_list_fits_in_line_number_section,
5606 dwarf2_line_header_too_long): New complaints.
5607
5608 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5609
5610 * gdbtypes.c (init_vector_type): New function.
5611 (build_builtin_type_vec128): Simplify the representation of SIMD
5612 registers.
5613 (build_gdbtypes): Initialize new builtin vector types.
5614 (_initialize_gdbtypes): Register new vector types with gdbarch.
5615 (builtin_type_v4_float, builtin_type_v4_int32,
5616 builtin_type_v8_int16, builtin_type_v16_int8,
5617 builtin_type_v2_int32, builtin_type_v4_int16,
5618 builtin_type_v8_int8): New (renamed) SIMD types.
5619
5620 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5621
5622 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5623 (i387_fill_fxsave): Likewise.
5624
5625 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5626
5627 * alpha-tdep.c (alpha_extract_return_value): Don't use
5628 non-constant array size in prototype.
5629
5630 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5631
5632 From Brian Taylor <briant at model dot com>:
5633 * ui-out.c (ui_out_field_core_addr): Use the function
5634 longest_local_hex_string_custom'to format addresses > 32 bits
5635 wide.
5636
5637 * ui-out.c (ui_out_field_core_addr): Update comment.
5638
5639 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5640
5641 * stack.c (select_and_print_frame): Make static. Delete the
5642 parameter `level'.
5643 (func_command): Update call.
5644 (select_frame_command): Delete code computing the frame level.
5645 * frame.h (select_and_print_frame): Delete declaration.
5646
5647 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5648
5649 * sparc-tdep.c (sparc_get_saved_register): Comment why
5650 get_prev_frame call is safe.
5651
5652 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5653
5654 * frame.h (select_frame): Delete level parameter.
5655 * stack.c (select_frame): Update. Use frame_relative_level to
5656 obtain the frame's level.
5657 (select_and_print_frame): Update call.
5658 (select_frame_command): Ditto.
5659 (up_silently_base): Ditto.
5660 (down_silently_base): Ditto.
5661 * ocd.c (ocd_start_remote): Ditto.
5662 * remote-rdp.c (remote_rdp_open): Ditto.
5663 * remote-mips.c (mips_initialize): Ditto.
5664 (common_open): Ditto.
5665 * remote-e7000.c (e7000_start_remote): Ditto.
5666 * m3-nat.c (select_thread): Ditto.
5667 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5668 (child_get_current_exception_event): Ditto.
5669 * varobj.c (varobj_create): Ditto.
5670 (varobj_update): Ditto.
5671 (c_value_of_root): Ditto.
5672 * tracepoint.c (finish_tfind_command): Ditto.
5673 * corelow.c (core_open): Ditto.
5674 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5675 * thread.c (info_threads_command): Ditto.
5676 (switch_to_thread): Ditto.
5677 * infrun.c (normal_stop): Ditto.
5678 (restore_selected_frame): Ditto.
5679 (restore_inferior_status): Ditto.
5680 * breakpoint.c (insert_breakpoints): Ditto.
5681 (watchpoint_check): Ditto.
5682 (bpstat_stop_status): Ditto.
5683 (do_enable_breakpoint): Ditto.
5684 * blockframe.c (flush_cached_frames): Ditto.
5685 (reinit_frame_cache): Ditto.
5686
5687 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5688
5689 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5690 maintainer.
5691
5692 2002-05-04 Jim Blandy <jimb@redhat.com>
5693
5694 * gdbtypes.c (replace_type): Doc fix.
5695
5696 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5697
5698 * valprint.c (strcat_longest): Delete commented out function.
5699 Update copyright.
5700
5701 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5702
5703 * MAINTAINERS: Mark a29k as deleted.
5704 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5705 Move new configurations to the top.
5706 * configure.tgt: Remove a29k.
5707 * config/a29k/tm-vx29k.h: Delete.
5708 * config/a29k/vx29k.mt: Delete.
5709 * config/a29k/tm-a29k.h: Delete.
5710 * config/a29k/a29k-udi.mt: Delete.
5711 * config/a29k/a29k.mt: Delete.
5712 * a29k-tdep.c: Delete.
5713 * remote-udi.c: Delete.
5714 * remote-mm.c: Delete.
5715 * remote-eb.c: Delete.
5716 * remote-adapt.c: Delete.
5717 * Makefile.in: Remove obsolete code.
5718 * config/s390/s390x.mt: Ditto.
5719 * config/s390/s390.mt: Ditto.
5720 * config/sparc/sparclynx.mh: Ditto.
5721 * config/sparc/linux.mh: Ditto.
5722 * config/pa/hppaosf.mh: Ditto.
5723 * config/pa/hppabsd.mh: Ditto.
5724 * config/ns32k/nbsd.mt: Ditto.
5725 * config/mips/vr5000.mt: Ditto.
5726 * config/m68k/sun3os4.mh: Ditto.
5727 * config/m68k/nbsd.mt: Ditto.
5728 * config/m68k/m68klynx.mh: Ditto.
5729 * config/m32r/m32r.mt: Ditto.
5730 * config/i386/x86-64linux.mt: Ditto.
5731 * config/i386/nbsdelf.mt: Ditto.
5732 * config/i386/nbsd.mt: Ditto.
5733 * config/i386/i386lynx.mh: Ditto.
5734
5735 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5736
5737 * target.c (debug_print_register): New function. Handle oversize
5738 registers.
5739 (debug_to_fetch_registers): Call.
5740 (debug_to_store_registers): Call.
5741
5742 2002-05-03 Jim Blandy <jimb@redhat.com>
5743
5744 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5745 (read_type): Doc fix.
5746 * gdbtypes.c (replace_type): Doc fix.
5747
5748 * stabsread.c (multiply_defined_struct): New complaint.
5749 (read_struct_type): If the type we were passed isn't empty, or
5750 incomplete, don't read the new struct type into it; complain,
5751 and return the original type unchanged. Take a new `type_code'
5752 argument, which is the type code for the new type.
5753 (read_type): Rather than storing the type's type code here, pass
5754 it as an argument to read_struct_type, and let that take care of
5755 storing it. That way, we don't overwrite the original type code,
5756 so read_struct_type can use it to decide whether we're overwriting
5757 something we shouldn't.
5758 (complain_about_struct_wipeout): New function.
5759
5760 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5761
5762 * gdbarch.sh: Assert that gdbarch is non-NULL.
5763 * gdbarch.c: Regenerate.
5764
5765 2002-05-03 Jason Merrill <jason@redhat.com>
5766
5767 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5768 and return NULL.
5769
5770 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5771
5772 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5773 (x86_64_dwarf2gdb_regno_map_length),
5774 (x86_64_dwarf2_reg_to_regnum): Added.
5775 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5776 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5777 (_initialize_x86_64_tdep): Synced with the change above.
5778 (x86_64_skip_prologue): Reformulated message.
5779
5780 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5781
5782 * f-exp.y: Also use new prev_lexptr variable
5783 to improve error reporting. Based on Michael Snyder
5784 2002-04-24 dated patch to c-exp.y.
5785 * jv-exp.y: Likewise.
5786 * m2-exp.y: Likewise.
5787
5788 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5789
5790 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5791 we are dealing with vectors.
5792
5793 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5794
5795 * config/m68k/tm-nbsd.h: Obvious fix,
5796 correct machine name.
5797
5798 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5799
5800 * p-typeprint.c (pascal_type_print_base): Add support
5801 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5802
5803 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5804
5805 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5806 for fondamental pascal 'char' type.
5807
5808 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5809
5810 * p-lang.h (is_pascal_string_type): Declaration changed,
5811 new sixth argument of type char ** added.
5812 * p-lang.c (is_pascal_string_type): Implementation
5813 changed. Args length_pos, length_size, string_pos, char_size
5814 can now be NULL. New argument arrayname set to the field
5815 name of the char array. Return value set to char array
5816 field index plus one.
5817 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5818 is_pascal_string_type function.
5819
5820 2002-05-02 Andrew Cagney <cagney@redhat.com>
5821
5822 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5823 <cagney@redhat.com> change.
5824 * gdbarch.c: Regenerate.
5825
5826 2002-05-02 Andrew Cagney <cagney@redhat.com>
5827
5828 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5829 before probing for a new one. Detect errorenous gdbarch_init
5830 functions.
5831 * gdbarch.c: Regenerate.
5832
5833 2002-05-01 Andrew Cagney <cagney@redhat.com>
5834
5835 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5836 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5837 * config/v850/tm-v850.h: Ditto. Update copyright.
5838
5839 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5840
5841 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5842 current_gdbarch.
5843
5844 2002-04-30 Michael Snyder <msnyder@redhat.com>
5845
5846 * arm-tdep.c: Whitespace clean-ups.
5847 (arm_skip_prologue): Fix thinko; two lines
5848 should have been removed as part of 4/24 change.
5849
5850 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5851
5852 * rs6000-tdep.c: Added comment describing how fpscr register
5853 numbers were chosen.
5854
5855 2002-04-30 Michael Snyder <msnyder@redhat.com>
5856
5857 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5858
5859 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5860
5861 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5862 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5863 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5864
5865 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5866
5867 From Louis Hamilton <hamilton@redhat.com>:
5868 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5869 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5870 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5871 not bfd-private xcoff data, to determine wordsize.
5872 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5873
5874 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5875
5876 GDB 5.2 released from 5.2 branch.
5877
5878 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5879
5880 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5881 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5882 (x86_64_register_info_table): Added comments with register numbers.
5883
5884 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5885
5886 * rs6000-tdep.c (rs6000_extract_return_value,
5887 rs6000_store_return_value): Handle returning vectors.
5888 (rs6000_gdbarch_init): Use
5889 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5890 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5891 New function.
5892 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5893 vectors.
5894 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5895 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5896
5897 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5898
5899 * hpread.c (hpread_psymtab_to_symtab_1,
5900 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5901 with fprintf_unfiltered (gdb_stderr,...).
5902
5903 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5904
5905 * remote-array.c (printf_monitor, write_monitor,
5906 array_insert_breakpoint, array_remove_breakpoint ):
5907 Replace fprintf (stderr,...
5908 with fprintf_unfiltered (gdb_stderr,....
5909 * remote-es.c: Likewise.
5910 * remote-os9k.c: Likewise.
5911 * remote-st.c: Likewise.
5912
5913 2002-04-28 Andreas Schwab <schwab@suse.de>
5914
5915 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5916 linux-proc.o and gcore.o.
5917
5918 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5919
5920 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5921 code without frame pointers.
5922
5923 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5924
5925 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5926 ON_STACK is needed.
5927
5928 2002-04-26 Ben Elliston <bje@redhat.com>
5929
5930 * target.c (do_xfer_memory): Correct reference to the new option
5931 "trust-readonly-sections".
5932
5933 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5934
5935 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5936 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5937 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5938 vectors.
5939 (read_array_type): Record the fact that this array type is really a
5940 vector (i.e. are passed in by value).
5941
5942 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5943
5944 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5945 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5946 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5947 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5948 * alpha-linux-tdep.c: Include frame.h.
5949 (alpha_linux_sigcontext_addr): New function.
5950 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5951 alpha_linux_sigcontext_addr.
5952 * alpha-osf1-tdep.c: Include gdbcore.h.
5953 (alpha_osf1_sigcontext_addr): New function.
5954 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5955 alpha_osf1_sigcontext_addr.
5956 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5957 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5958
5959 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5960
5961 * stack.c (selected_frame_level):
5962 (select_frame): Do not set selected_frame_level.
5963 * frame.h (selected_frame_level): Delete declaration.
5964
5965 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5966
5967 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5968 convert_from_func_ptr-addr when AIX / PowerOpen.
5969
5970 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5971
5972 * valops.c (hand_function_call): Call
5973 generic_save_call_dummy_addr.
5974 * frame.h (generic_save_call_dummy_addr): Declare.
5975 * blockframe.c (struct dummy_frame): Add fields call_lo and
5976 call_hi.
5977 (generic_find_dummy_frame): Check for PC in range call_lo to
5978 call_hi instead of entry_point_address.
5979 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5980 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5981 (generic_save_call_dummy_addr): New function.
5982
5983 2002-04-24 David S. Miller <davem@redhat.com>
5984
5985 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5986 sparc_skip_prologue.
5987 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5988 information to find prologue when possible.
5989 (sparc_prologue_frameless_p): Call examine_prologue directly.
5990 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5991 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5992 second argument.
5993 (SKIP_PROLOGUE): Likewise.
5994
5995 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5996
5997 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5998 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5999 indicate that the condition it was testing is always true.
6000 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6001 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6002 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6003
6004 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6005
6006 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6007 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6008 tdep->jb_pc and tdep->jb_elt_size.
6009 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6010 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6011 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6012 * alpha-nat.c (get_longjmp_target): Remove.
6013 (JB_ELEMENT_SIZE): Ditto.
6014 (JB_PC): Ditto.
6015 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6016 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6017 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6018 to alpha_get_longjmp_target.
6019 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6020 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6021 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6022
6023 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6024
6025 * README: Update to GDB 5.2.
6026
6027 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6028
6029 * gdbarch.sh (LC_ALL): Set to `c'.
6030
6031 2002-04-25 Theodore A. Roth <troth@verinet.com>
6032
6033 * avr-tdep.c: Ran through gdb_indent.sh.
6034
6035 2002-04-25 Theodore A. Roth <troth@verinet.com>
6036
6037 * MAINTAINERS: Add myself as AVR maintainer.
6038 * NEWS: Note new target avr.
6039
6040 2002-04-25 Theodore A. Roth <troth@verinet.com>
6041
6042 * Makefile.in: Add support for AVR target.
6043 * configure.tgt: Add support for AVR target.
6044 * avr-tdep.c: New file
6045 * config/avr/avr.mt: New file.
6046
6047 2002-04-25 Theodore A. Roth <troth@verinet.com>
6048
6049 * MAINTAINERS: Add myself to write-after-approval.
6050
6051 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6052
6053 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6054 with fprintf_unfiltered (gdb_stderr,....
6055
6056 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6057
6058 Fix PR gdb/508.
6059 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6060
6061 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6062
6063 * p-exp.y: Also use new prev_lexptr variable
6064 to improve error reporting. Based on Michael Snyder
6065 2002-04-24 dated patch to c-exp.y.
6066
6067 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6068
6069 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6070 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6071 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6072 to 0.
6073 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6074 and struct value.
6075 (FUNCTION_START_OFFSET): Remove.
6076 (BREAKPOINT): Ditto.
6077
6078 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6079
6080 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6081 * NEWS: Ditto.
6082
6083 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6084
6085 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6086 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6087 alpha_linux_pc_in_sigtramp.
6088 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6089 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6090 alpha_osf1_pc_in_sigtramp.
6091 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6092 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6093 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6094 alphafbsd_pc_in_sigtramp.
6095 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6096 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6097 alphanbsd_pc_in_sigtramp.
6098 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6099 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6100
6101 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6104
6105 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6106
6107 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6108 alphanbsd-tdep.c.
6109 (alphanbsd-nat.o): New dependency list.
6110 (alphanbsd-tdep.o): Ditto.
6111 * NEWS: Note new native NetBSD/alpha configuration.
6112 * alphanbsd-nat.c: New file.
6113 * alphanbsd-tdep.c: Ditto.
6114 * configure.host (alpha*-*-netbsd*): New host.
6115 * configure.tgt (alpha*-*-netbsd*): New target.
6116 * config/alpha/nbsd.mh: New file.
6117 * config/alpha/nbsd.mt: Ditto.
6118 * config/alpha/nm-nbsd.h: Ditto.
6119 * config/alpha/tm-nbsd.h: Ditto.
6120
6121 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6122
6123 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6124 (alpha-osf1-tdep.o): New dependency list.
6125 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6126 and skip_sigtramp_frame members.
6127 * alpha-linux-tdep.c: Include gdbcore.h.
6128 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6129 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6130 * alpha-osf1-tdep.c: New file.
6131 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6132 alpha-osf1-dep.c.
6133 (alpha_frame_past_sigtramp_frame): New function.
6134 (alpha_dynamic_sigtramp_offset): Ditto.
6135 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6136 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6137 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6138 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6139 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6140 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6141 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6142 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6143 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6144 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6145 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6146 to find_solib_trampoline_target.
6147 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6148 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6149 (SKIP_TRAMPOLINE_CODE): Remove.
6150 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6151 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6152 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6153 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6154 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6155 (PROC_SIGTRAMP_MAGIC): Ditto.
6156 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6157 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6158 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6159 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6160 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6161
6162 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6163
6164 * NEWS: Note that Alpha targets are now multi-arch.
6165
6166 2002-04-24 Michael Snyder <msnyder@redhat.com>
6167
6168 * parser-defs.h (prev_lexptr): New external variable.
6169 * parse.c (parse_exp_1): Set prev_lexptr to null before
6170 calling the language-specific parser.
6171 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6172 (yyerror): Use prev_lexptr in error reporting.
6173
6174 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6175
6176 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6177 * gregset.h: If FILL_FPXREGSET is defined, provide
6178 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6179 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6180 is defined, call fill_fpxregset.
6181
6182 2002-04-24 Roland McGrath <roland@frob.com>
6183
6184 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6185 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6186 (supply_gregset, supply_fpregset): New functions.
6187
6188 * gnu-nat.c (gnu_find_memory_regions): New function.
6189 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6190 (gnu_xfer_memory): Add a cast.
6191
6192 2002-04-24 Michael Snyder <msnyder@redhat.com>
6193
6194 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6195 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6196 of argument regs ("str r(0123), [r11, #-nn"]).
6197 (arm_skip_prologue): Better handling for frameless functions.
6198 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6199 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6200
6201 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6202
6203 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6204 NUM_PSEUDO_REGS can be used.
6205
6206 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6207
6208 * arch-utils.h: Update copyright.
6209
6210 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6211 * gdbarch.h, gdbarch.c: Re-generate.
6212
6213 * inferior.h (IN_SIGTRAMP): Delete definition.
6214 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6215 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6216
6217 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6218 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6219 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6220 (find_proc_framesize): Ditto.
6221 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6222 (alpha_init_extra_frame_info): Ditto.
6223 * infrun.c (handle_inferior_event): Ditto.
6224 (handle_inferior_event): Ditto.
6225 (check_sigtramp2): Ditto.
6226 * blockframe.c (create_new_frame): Ditto.
6227 (get_prev_frame): Ditto.
6228 * ppc-linux-tdep.c: Update comments.
6229 * i386-linux-tdep.c: Update comments.
6230 * breakpoint.c (bpstat_what): Update comment.
6231
6232 2002-04-24 David S. Miller <davem@redhat.com>
6233
6234 * i960-tdep.c (register_in_window_p): New function.
6235 (i960_find_saved_register): Use it instead of
6236 REGISTER_IN_WINDOW_P.
6237 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6238
6239 * symtab.h (find_stab_function_addr): Kill extern.
6240 * minsyms.c (find_stab_function_addr): Remove from here...
6241 * dbxread.c: ... to here, and mark it static.
6242
6243 2002-04-20 David S. Miller <davem@redhat.com>
6244
6245 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6246 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6247
6248 2002-04-21 David S. Miller <davem@redhat.com>
6249
6250 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6251 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6252 (vx_write_register): Likewise.
6253
6254 2002-04-23 J. Brobecker <brobecker@gnat.com>
6255
6256 * source.c (is_regular_file): New function.
6257 (openp): Check wether file to open is a regular file
6258 to avoid opening directories.
6259
6260 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6261
6262 * findvar.c (extract_signed_integer): Cast printf argument
6263 to suppress format warning.
6264 (extract_unsigned_integer): Likewise.
6265 * infcmd.c (registers_info): Likewise.
6266 * top.c (get_prompt_1): Likewise.
6267 * valops.c (value_assign): Likewise.
6268 * valprint.c (print_decimal): Likewise.
6269
6270 2002-04-22 H.J. Lu (hjl@gnu.org)
6271
6272 * c-exp.y (typebase): Support
6273
6274 [long|long long|short] [signed|unsigned] [int|]
6275
6276 and
6277
6278 signed [long|long long|short] int
6279
6280 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6281
6282 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6283 and vax-tdep.h.
6284 * vax-tdep.h: New file.
6285 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6286 Make several routines static.
6287 (vax_get_saved_register): New function.
6288 (vax_gdbarch_init): New function.
6289 (_initialize_vax_tdep): Register vax_gdbarch_init.
6290 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6291 Remove macros now under the control of gdbarch.
6292
6293 2002-04-22 Michael Snyder <msnyder@redhat.com>
6294
6295 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6296 Some whitespace and coding standards tweaks.
6297
6298 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6299
6300 * vax-tdep.c: Include regcache.h.
6301 (vax_call_dummy_words): New.
6302 (sizeof_vax_call_dummy_words): New.
6303 (vax_fix_call_dummy): New function.
6304 (vax_saved_pc_after_call): Ditto.
6305 * config/vax/tm-vax.h: Don't include regcache.h.
6306 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6307 (CALL_DUMMY): Remove.
6308 (CALL_DUMMY_WORDS): Define.
6309 (SIZEOF_CALL_DUMMY_WORDS): Define.
6310 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6311
6312 2002-04-18 Michael Snyder <msnyder@redhat.com>
6313
6314 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6315
6316 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6317
6318 * vax-tdep.c (vax_frame_chain): New function.
6319 (vax_push_dummy_frame): Ditto.
6320 (vax_pop_frame): Ditto.
6321 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6322 (FRAMELESS_FUNCTION_INVOCATION): Use
6323 generic_frameless_function_invocation_not.
6324 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6325 (POP_FRAME): Use vax_pop_frame.
6326
6327 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6328
6329 * vax-tdep.c (vax_store_struct_return): New function.
6330 (vax_extract_return_value): Ditto.
6331 (vax_store_return_value): Ditto.
6332 (vax_extract_struct_value_address): Ditto.
6333 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6334 vax_store_struct_return.
6335 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6336 (STORE_RETURN_VALUE): Use vax_store_return_value.
6337 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6338
6339 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6340
6341 * vax-tdep.c (vax_frame_saved_pc): New function.
6342 (vax_frame_args_address_correct): Ditto.
6343 (vax_frame_args_address): Ditto.
6344 (vax_frame_locals_address): Ditto.
6345 (vax_frame_num_args): Move code to be in proximity to
6346 other frame-related functions.
6347 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6348 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6349 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6350 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6351 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6352
6353 2002-04-22 H.J. Lu (hjl@gnu.org)
6354
6355 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6356 includedir.
6357
6358 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6359
6360 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6361 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6362 (FRAME_INIT_SAVED_REGS): New macro.
6363
6364 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6365
6366 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6367
6368 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6369
6370 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6371 where needed.
6372 (fetch_osf_core_registers): Likewise.
6373 (supply_gregset): Likewise.
6374
6375 2002-04-22 J. Brobecker <brobecker@gnat.com>
6376
6377 * symfile.h (get_section_index): Define.
6378 * symfile.c (get_section_index): New function.
6379 * mdebugread.c (SC_IS_SBSS): New macro.
6380 (SC_IS_BSS): Return true for the scBss storage class only, as
6381 the scSBss storage class refers to the .sbss section.
6382 (parse_partial_symbols): Discard the symbols which associated
6383 section does not exist.
6384 Make sure to use the .sbss section index for symbols which
6385 storage class is scBss, rather than using the .bss section index.
6386
6387 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6388
6389 * vax-tdep.c: Update copyright years.
6390 (vax_register_name): New function.
6391 (vax_register_byte): Ditto.
6392 (vax_register_raw_size): Ditto.
6393 (vax_register_virtual_size): Ditto.
6394 (vax_register_virtual_type): Ditto.
6395 * config/vax/tm-vax.h: Update copyright years.
6396 (REGISTER_NAMES): Remove.
6397 (REGISTER_NAME): Define.
6398 (REGISTER_BYTE): Use vax_register_byte.
6399 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6400 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6401 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6402
6403 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6404
6405 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6406 declaration
6407 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6408
6409 2002-04-21 David S. Miller <davem@redhat.com>
6410
6411 * arch-utils.c (generic_prologue_frameless_p): Kill
6412 SKIP_PROLOGUE_FRAMELESS_P code.
6413 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6414 references.
6415 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6416 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6417 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6418 references.
6419 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6420 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6421 (sparc_gdbarch_init): Pass it to
6422 set_gdbarch_prologue_frameless_p.
6423
6424 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6425
6426 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6427 (alphabsd-nat.o): New dependency list.
6428
6429 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6430
6431 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6432 alphafbsd-tdep.c.
6433 (alpha-linux-tdep.o): New dependency list.
6434 (alphafbsd-tdep.o): Likewise.
6435
6436 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6437
6438 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6439 to here...
6440 * alpha-tdep.c: ...from here.
6441 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6442
6443 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6444
6445 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6446 prototype from here...
6447 * alpha-tdep.h: ...to here.
6448
6449 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6450
6451 * frame.h (selected_frame_level): Document as deprecated.
6452 (frame_relative_level): Declare.
6453 * stack.c (frame_relative_level): New function.
6454 (selected_frame_level): Document as deprecated.
6455 (select_frame): Do not set the selected_frame_level.
6456
6457 * stack.c (frame_info, record_selected_frame): Update.
6458 (frame_command, current_frame_command): Update.
6459 (up_silently_base, up_command, down_silently_base): Update.
6460 (down_command): Update.
6461 * inflow.c (kill_command): Update.
6462 * tracepoint.c (finish_tfind_command): Update.
6463 * corelow.c (core_open): Update.
6464 * thread.c (info_threads_command): Update.
6465 (do_captured_thread_select): Update.
6466 * infcmd.c (finish_command): Update.
6467 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6468
6469 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6470
6471 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6472
6473 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6474
6475 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6476 type const.
6477
6478 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6479
6480 * alphafbsd-tdep.c: Update copyright years. Include
6481 alpha-tdep.h.
6482 (alphafbsd_use_struct_convention): Make static.
6483 (alphafbsd_init_abi): New function.
6484 (_initialize_alphafbsd_tdep): New function.
6485 * config/alpha/tm-fbsd.h: Update copyright years.
6486 (USE_STRUCT_CONVENTION): Remove.
6487
6488 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6489
6490 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6491 an Alpha ABI variant.
6492 (alpha_abi_handler_list): Declare.
6493 (alpha_gdbarch_register_os_abi): New function.
6494 (alpha_gdbarch_init): Give registered ABI variant handlers a
6495 chance to tweak the gdbarch once we have set up defaults.
6496 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6497
6498 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6499
6500 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6501 to standard_coerce_float_to_double.
6502 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6503
6504 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6505
6506 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6507 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6508 from gdbarch_tdep rather than a constant.
6509 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6510 the default text address for all Alpha Unix ABIs.
6511 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6512 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6513
6514 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6515
6516 * alpha-tdep.h: New file. Includes several Alpha target constants
6517 taken from...
6518 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6519 let gdbarch deal with.
6520 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6521 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6522 to dependency list.
6523 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6524 Alpha target register names.
6525 * alphabsd-nat.c: Likewise.
6526 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6527 Alpha target register names. Make serveral routines static.
6528 (alpha_get_saved_register): New function.
6529 (alpha_abi_names): New.
6530 (process_note_abi_tag_sections): New function.
6531 (get_elfosabi): New function.
6532 (alpha_gdbarch_init): New function.
6533 (alpha_dump_tdep): New function.
6534 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6535
6536 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6537
6538 * frame.c (find_saved_register): Delete #ifdef
6539 HAVE_REGISTER_WINDOWS code.
6540 * config/sparc/tm-sparc.h: Update comments.
6541 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6542
6543 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6544
6545 * i960-tdep.c (i960_find_saved_register): New function.
6546 (i960_get_saved_register): New function.
6547 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6548 (i960_get_saved_register): Declare.
6549 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6550
6551 2002-04-20 David S. Miller <davem@redhat.com>
6552
6553 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6554
6555 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6556
6557 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6558 instead of NUM_PSEUDO_REGS.
6559
6560 2002-04-20 David S. Miller <davem@redhat.com>
6561
6562 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6563 GDB_MULTI_ARCH_PARTIAL
6564 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6565 define, let tm-sp64.h do it.
6566
6567 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6568
6569 * frame.c (find_saved_register): Avoid a NULL pointer
6570 dereference and actually walk the frame list.
6571
6572 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6573
6574 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6575 sorted in most most-recent-used order. Document.
6576 * gdbarch.h, gdbarch.c: Regenerate.
6577
6578 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6579
6580 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6581 instead of ->prev.
6582 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6583 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6584 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6585 instead of ->prev.
6586
6587 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6588
6589 Fix PR gdb/471.
6590 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6591 (build_builtin_type_vec128): Ditto.
6592 (append_composite_type_field): Fix calculation of type length in
6593 union case.
6594
6595 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6596
6597 * config/djgpp/README: Update.
6598
6599 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6600 compiler warnings.
6601
6602 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6603
6604 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6605 (alpha_setup_arbitrary_frame): ...to this.
6606 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6607 for alpha_setup_arbitrary_frame.
6608
6609 2002-04-18 Andrew Cagney <cagney@redhat.com>
6610
6611 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6612 * gdbarch.h, gdbarch.c: Regenerate.
6613
6614 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6615 * target.h (memory_breakpoint_from_pc): Update declaration.
6616 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6617
6618 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6619 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6620 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6621 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6622 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6623 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6624 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6625 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6626 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6627 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6628 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6629 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6630
6631 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6632 const pointer.
6633 * monitor.c (monitor_insert_breakpoint): Ditto.
6634 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6635
6636 * config/mcore/tm-mcore.h: Update copyright.
6637 * mem-break.c: Ditto.
6638 * xstormy16-tdep.c: Ditto.
6639
6640 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6641
6642 * p-exp.y: Add precedence rule for '^' token.
6643 This removes the shift/reduce conflicts.
6644 Remove the comment concerning these shift/reduce conflicts.
6645
6646 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6647
6648 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6649 (registers_powerpc_nofp): New register set for processors
6650 without floating point unit.
6651
6652 2002-04-18 David S. Miller <davem@redhat.com>
6653
6654 * MAINTAINERS: Add myself to write-after-approval.
6655
6656 2002-04-17 Michael Snyder <msnyder@redhat.com>
6657
6658 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6659
6660 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6661
6662 * rs6000-tdep.c (frame_initial_stack_address): Use
6663 frame_register_read to read the alloca_reg.
6664
6665 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6666
6667 * frame.c (find_saved_register): Find saved registers in the next
6668 not prev frame.
6669 Fix PR gdb/365.
6670
6671 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6672
6673 * gdbarch.sh (LANG): Set to ``c''.
6674
6675 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6676
6677 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6678
6679 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6680
6681 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6682 Update copyright.
6683
6684 * hpread.c (hpread_get_lntt): Add declaration.
6685 Also fix PR gdb/391.
6686
6687 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6688
6689 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6690 * aclocal.m4, configure: Re-generate.
6691 Fix PR gdb/391.
6692
6693 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6694
6695 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6696 instead of tm_print_insn.
6697
6698 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6699
6700 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6701
6702 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6703
6704 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6705 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6706 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6707
6708 2002-04-12 Don Howard <dhoward@redhat.com>
6709
6710 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6711 max_user_call_depth.
6712 (init_cmd_lists): Initialize the new value;
6713 * cli/cli-script.c (execute_user_command): Limit the call depth of
6714 user defined commands. This avoids a core-dump when user commands
6715 are infinitly recursive.
6716
6717 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6718
6719 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6720 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6721 from tdep struct instead of DEFAULT_LR_SAVE.
6722 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6723 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6724 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6725
6726 2002-04-12 Michael Snyder <msnyder@redhat.com>
6727
6728 * Remote.c: Spelling fix.
6729 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6730 If no symbol found for "sbrk", try "_sbrk".
6731 (make_output_phdrs): Use bfd_section_name.
6732 (gcore_copy_callback): Use bfd_section_name.
6733 * eval.c: Indentation fix-ups.
6734 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6735 in case it gets applied to an address that is already
6736 in the instruction space.
6737 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6738 * symfile.c: Fix indentation, long lines.
6739 * source.c: White space fix-up.
6740
6741 2002-04-12 Andrew Cagney <cagney@redhat.com>
6742
6743 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6744 * frame.c (frame_register_read): New function. Return non-zero on
6745 success.
6746 (read_relative_register_raw_bytes_for_frame): Delete.
6747 (read_relative_register_raw_bytes): Delete.
6748 * frame.h (frame_register_read): Declare.
6749 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6750 * sh-tdep.c: Ditto.
6751 * infcmd.c (do_registers_info): Ditto.
6752 * hppa-tdep.c: Ditto.
6753 * rs6000-tdep.c: Ditto.
6754 * h8500-tdep.c: Ditto.
6755 * mips-tdep.c: Ditto.
6756 * h8300-tdep.c: Ditto.
6757 * z8k-tdep.c: Ditto.
6758
6759 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6760
6761 From Jimi X <jimix@watson.ibm.com>:
6762 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6763 64-bit SysV ABI.
6764
6765 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6766
6767 From Jimi X <jimix@watson.ibm.com>:
6768 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6769 bfd info.
6770
6771 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6772
6773 From Jimi X <jimix@watson.ibm.com>:
6774 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6775 register sets for these processor variants.
6776
6777 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6778
6779 * regformats/reg-ppc.dat: Support FPSCR.
6780
6781 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6782
6783 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6784 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6785 Add fpscr as an invalid/unfetchable register.
6786 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6787 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6788 (fill_fpregset): Add support for register fpscr.
6789 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6790 (fill_gregset): Account for the fact that register ``mq'' might
6791 not exist.
6792 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6793 (registers_power): Add fpscr to register set at slot 71.
6794 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6795 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6796
6797 2002-04-11 Michael Snyder <msnyder@redhat.com>
6798
6799 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6800 * configure: Regenerate.
6801 * config.in: Regenerate.
6802 * acconfig.h: Add define for _SYSCALL32.
6803 * core-sol2.c: Remove #define _SYSCALL32.
6804 * solib-legacy.c: Remove #define _SYSCALL32.
6805
6806 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6807
6808 * stack.c (select_frame): Cleanup internal error message, do not
6809 use %p.
6810
6811 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6812
6813 * stack.c (select_frame): Check that selected_frame and the
6814 specified level are as expected.
6815 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6816 Update copyright.
6817 * frame.h (struct frame_info): Add field `level'. Update
6818 copyright.
6819 Work-in-progress PR gdb/464.
6820
6821 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6822
6823 * maint.c (maint_print_section_info): Rename print_section_info.
6824 (print_bfd_section_info, print_objfile_section_info): Update.
6825 * inferior.h (struct gdbarch): Add opaque declaration.
6826 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6827 * gdbarch.h: Regenerate.
6828
6829 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6830
6831 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6832 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6833 (kernel_u_size): Added.
6834 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6835 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6836
6837 2002-04-04 Jim Ingham <jingham@apple.com>
6838
6839 * valarith.c (find_size_for_pointer_math): New function, either returns
6840 the size for a pointer's target, returns 1 for void *, or errors for
6841 incomplete types.
6842 (value_add, value_sub): use find_size_for_pointer_math.
6843
6844 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6845
6846 * linux-low.c (linux_look_up_symbols): New hook.
6847 (linux_target_ops): Add linux_look_up_symbols.
6848 * remote-utils.c (decode_address): New function.
6849 (look_up_one_symbol): New function.
6850 * server.c (handle_query): Call target look_up_symbols hook.
6851 * server.h (look_up_one_symbol): Add prototype.
6852 * target.h (struct target_ops): Add look_up_symbols hook.
6853
6854 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6855
6856 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6857 override FP_REGNUM with frame->fp. Update copyright.
6858 * parse.c (num_std_regs, std_regs): Delete.
6859 (target_map_name_to_register): Do not search std_regs. Update
6860 function description.
6861 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6862 declarations. Update copyright.
6863 Fix PR gdb/251.
6864
6865 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6866
6867 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6868 after the last symbol in a block.
6869
6870 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6871
6872 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6873 is non zero as a found symbol.
6874
6875 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6876
6877 * findvar.c: Include "builtin-regs.h".
6878 (value_of_register): Call value_of_builtin_reg when applicable.
6879 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6880 (target_map_name_to_register): Call
6881 builtin_reg_map_name_to_regnum.
6882 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6883 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6884 (builtin_regs_h): Define.
6885 (builtin-regs.o): New target.
6886 (findvar.o): Add $(builtin_regs_h).
6887 * builtin-regs.c, builtin-regs.h: New files.
6888 * std-regs.c: New file.
6889 Partial fix for PR gdb/251.
6890
6891 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6892
6893 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6894 it's no longer required.
6895
6896 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6897
6898 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6899
6900 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6901
6902 From Jimi X <jimix@watson.ibm.com>:
6903 * rs6000-tdep.c (rs6000_software_single_step): Use
6904 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6905 and size. Use target_insert_breakpoint() and
6906 target_remove_breakpoint() to insert and remove breakpoints
6907 instead of explicit memory reads and writes.
6908
6909 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6910
6911 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6912 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6913 ELF_OBJECT_FORMAT ifdef.
6914
6915 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6916
6917 From Jimi X <jimix@watson.ibm.com>:
6918 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6919
6920 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6921
6922 From Jimi X <jimix@watson.ibm.com>:
6923 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6924 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6925
6926 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6927
6928 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6929 s/asprintf/xasprintf/.
6930 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6931
6932 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6933
6934 I believe Jeff Law denies responsability for this one:
6935 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6936 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6937 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6938 Work-around for PR gdb/366.
6939
6940 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6941
6942 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6943 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6944 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6945
6946 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6947
6948 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6949 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6950 information.
6951
6952 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6953
6954 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6955 maintainer.
6956
6957 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6958
6959 * README (Reporting Bugs in GDB): Document the bug web page as the
6960 prefered way of submitting bugs.
6961 Fix PR gdb/402.
6962
6963 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6964
6965 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6966 -1. Update comment.
6967 * gdbarch.h, gdbarch.c: Re-generate.
6968
6969 2002-04-07 Andreas Schwab <schwab@suse.de>
6970
6971 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6972 buffer to regcache_collect.
6973
6974 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6975
6976 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6977 * gdbarch.c, gdbarch.h: Re-generate.
6978
6979 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6980
6981 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6982 declaration. Fix -Werror.
6983
6984 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6985
6986 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6987 * gdbarch.c: Regenerate.
6988
6989 2002-04-05 Michael Snyder <msnyder@redhat.com>
6990
6991 * breakpoint.c (clear_command): Rewrite middle section to
6992 combine two loops with identical control conditions.
6993 Add a cleanup to eliminate a memory leak.
6994 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6995
6996 2002-04-05 H.J. Lu (hjl@gnu.org)
6997
6998 * solib-svr4.c (bkpt_names): Add "__start".
6999
7000 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7001
7002 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7003 as test for 64 bit target.
7004
7005 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7006
7007 * h8500-tdep.c (h8500_write_fp): Delete function.
7008 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7009 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7010 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7012 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7013 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7014 (s390_write_fp):
7015 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7016 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7017 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7018 (d10v_write_fp): Delete function.
7019 * inferior.h (write_fp, generic_target_write_fp): Delete
7020 declarations.
7021 * regcache.c (generic_target_write_fp): Delete function.
7022 (write_fp): Delete function.
7023 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7024 * gdbarch.h, gdbarch.c: Regenerate.
7025 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7026 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7027 (sparc64_write_fp): Delete declaration.
7028 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7029 (h8500_write_fp): Delete declaration.
7030
7031 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7032
7033 * sparc-tdep.c (sparc64_write_fp): Delete.
7034 (sparc_push_dummy_frame): Replace write_fp call with code to store
7035 the FP directly.
7036 (sparc_gdbarch_init): Do not initialize write_fp.
7037
7038 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7039
7040 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7041 clause.
7042
7043 2002-03-29 Jim Blandy <jimb@redhat.com>
7044
7045 * stack.c (get_selected_block): Add new argument `addr_in_block',
7046 used to return the exact code address we used to select the block,
7047 not just the block.
7048 * blockframe.c (get_frame_block, get_current_block): Same.
7049 * frame.h (get_frame_block, get_current_block,
7050 get_selected_block): Update declarations.
7051 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7052 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7053
7054 2002-04-05 Michael Snyder <msnyder@redhat.com>
7055
7056 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7057 warning message.
7058
7059 2002-04-05 J. Brobecker <brobecker@gnat.com>
7060
7061 * utils.c (xfullpath): New function.
7062 * defs.h (xfullpath): Add declaration.
7063 * source.c (openp): Use xfullpath in place of gdb_realpath to
7064 avoid resolving the basename part of filenames when the
7065 associated file is a symbolic link. This fixes a potential
7066 inconsistency between the filenames known to GDB and the
7067 filenames it prints in the annotations.
7068 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7069 to be able to match a filename with either the real filename, or
7070 the name of any symbolic link to this file.
7071 (lookup_partial_symtab): Ditto.
7072
7073 2002-04-04 Michael Snyder <msnyder@redhat.com>
7074
7075 * breakpoint.c: Add support for hardware breakpoints in overlays.
7076 (overlay_events_enabled): New state variable.
7077 (insert_breakpoints): Use overlay_events_enabled to decide
7078 whether to attempt to set a breakpoint at the overlay load addr.
7079 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7080 (remove_breakpoint): Use overlay_events_enabled to decide
7081 whether breakpoints need to be removed from overlay load addr.
7082 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7083 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7084 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7085 disable_overlay_breakpoints): Update overlay_events_enabled.
7086
7087 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7088
7089 * dwarf2read.c (struct function_range): New.
7090 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7091 (check_cu_functions): New.
7092 (read_file_scope): Initialize global function lists.
7093 Call dwarf_decode_line after processing children.
7094 (read_func_scope): Add to global function list.
7095 (dwarf_decode_lines): Call check_cu_functions everywhere
7096 record_line is called. Call record_line with a linenumber
7097 of 0 to mark sequence ends.
7098
7099 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7100
7101 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7102 change sync with glibc.
7103
7104 2002-04-03 Jim Blandy <jimb@redhat.com>
7105
7106 * configure.in: Call AC_C_INLINE.
7107 * configure: Regenerated.
7108
7109 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7110
7111 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7112 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7113
7114 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7115
7116 * NEWS: Mention gcore support on FreeBSD/i386.
7117
7118 * fbsd-proc.c: New file.
7119 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7120 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7121
7122 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7123 while statement.
7124
7125 2002-03-29 Jim Blandy <jimb@redhat.com>
7126
7127 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7128 unescaped newlines in string literals, but newer ones don't. So
7129 escape them.
7130
7131 2002-03-26 Michael Snyder <msnyder@redhat.com>
7132 Andrew Cagney <cagney@redhat.com>
7133
7134 * cli/cli-dump.c: New file. Dump memory to file,
7135 restore file to memory.
7136 * cli/cli-dump.h: New file.
7137 * Makefile.in: Add rules, dependencies for cli-dump.o.
7138 * NEWS: Mention new commands.
7139
7140 2002-03-28 Michael Snyder <msnyder@redhat.com>
7141
7142 * symfile.c (symbol_file_add): Move test for null symbols to later.
7143
7144 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7145
7146 From veksler at il.ibm.com:
7147 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7148 the xstrduped original path.
7149 Fix PR gdb/417.
7150
7151 2002-03-27 Michael Snyder <msnyder@redhat.com>
7152
7153 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7154 * infcmd.c (_initialize_infcmd): Ditto.
7155 * language.c (_initialize_language): Ditto.
7156 * symfile.c (_initialize_symfile): Ditto.
7157 * top.c (_init_main): Ditto.
7158 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7159
7160 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7161
7162 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7163 vector registers handling.
7164 (skip_prologue): Handle new AltiVec instructions. Fill in new
7165 fields of frame data.
7166 (frame_get_saved_regs): Fill in information for AltiVec registers.
7167
7168 2002-03-27 Jim Blandy <jimb@redhat.com>
7169
7170 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7171 a function; leave this macro here to invoke that function.
7172 (symbol_init_mangled_name): Declaration for that function.
7173 * symtab.c (symbol_init_mangled_name): New function.
7174
7175 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7176
7177 * valarith.c: Replace strerror with safe_strerror.
7178 * tracepoint.c: Ditto.
7179 * lin-lwp.c: Ditto.
7180 * go32-nat.c: Ditto.
7181 * inflow.c: Ditto.
7182 * gnu-nat.c: Ditto.
7183
7184 2002-03-27 Andreas Schwab <schwab@suse.de>
7185
7186 * event-top.c (command_line_handler): Remove useless if.
7187
7188 2002-03-27 Andreas Jaeger <aj@suse.de>
7189
7190 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7191 comment.
7192
7193 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7194
7195 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7196 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7197 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7198 (x86_64_linux_dr_get_status, supply_gregset),
7199 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7200 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7201 (x86_64_register_info_table): Add.
7202 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7203 (x86_64_register_raw_size, x86_64_register_virtual_type),
7204 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7205 general x86_64_register_info_table.
7206 (i386_gdbarch_init): gdbarch_register_bytes is now set
7207 dynamicaly during initialization.
7208 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7209 * gdbserver/linux-x86-64-low.c: Ditto.
7210
7211 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7212
7213 * gdbserver/server.c (main): Call target_signal_to_host_p
7214 and target_signal_to_host on signals received from the remote.
7215 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7216 target_signal_from_host on signals sent to the remote.
7217 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7218 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7219
7220 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7221
7222 * signals/signals.c: Include "server.h" in gdbserver build.
7223 (target_signal_from_name): Don't use STREQ.
7224 (_initialize_signals): Likewise. Don't include function in
7225 gdbserver build.
7226
7227 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7228
7229 * signals.c: Moved to...
7230 * signals/signals.c: Here.
7231 * Makefile (signals.o): Update.
7232
7233 2002-03-26 Jeff Law (law@redhat.com)
7234
7235 * somread.c (som_symtab_read): Remove some commented out code and
7236 updated related comments. Do not set the minimal symbol table to
7237 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7238 in a dynamic executable.
7239 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7240 where we are unable to find the minimal symbol for the given
7241 PC value.
7242
7243 2002-03-25 Jeff Law (law@redhat.com)
7244
7245 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7246
7247 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7248
7249 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7250
7251 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7252
7253 * command.h: Update copyright.
7254 (struct cmd_list_element): Replace definition with opaque
7255 declaration.
7256 (enum cmd_types): Document that it will eventually be moved to
7257 cli/cli-decode.h
7258 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7259 (MALLOCED_REPLACEMENT): Delete macro.
7260 * Makefile.in (cli_decode_h): Add $(command_h).
7261 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7262 * top.c: Include "cli/cli-decode.h".
7263 * completer.c: Include "cli/cli-decode.h".
7264 * maint.c: Include "cli/cli-decode.h".
7265 * cli/cli-decode.h: Include "command.h".
7266 (enum command_class): Delete.
7267 (enum cmd_types): Comment out.
7268 (enum cmd_auto_boolean): Delete.
7269 (enum var_types): Delete.
7270
7271 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7272
7273 * cli/cli-decode.c: Include "gdb_assert.h".
7274 (add_set_or_show_cmd): New static function.
7275 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7276 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7277 all fields, such as func, from the set command.
7278
7279 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7280
7281 * MAINTAINERS (sh-elf): Change warning flag to -w.
7282
7283 2002-03-23 Andrew Cagney <cagney@redhat.com>
7284
7285 * defs.h (error): Add printf format attribute.
7286 * thread-db.c (thread_from_lwp): Fix error format string.
7287 * stack.c (parse_frame_specification): Ditto.
7288 * cli/cli-decode.c (undef_cmd_error): Ditto.
7289 * scm-lang.c (scm_lookup_name): Ditto.
7290 * tracepoint.c (trace_error): Ditto.
7291 * remote-utils.c (usage): Ditto.
7292 * remote.c (compare_sections_command): Ditto.
7293 Fix PR gdb/328.
7294
7295 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7296
7297 * gdbtypes.c (append_composite_type_field): New function.
7298 (init_composite_type): New function.
7299 * gdbtypes.h (append_composite_type_field): Declare.
7300 (init_composite_type): Ditto.
7301
7302 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7303
7304 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7305 function.
7306 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7307 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7308 structure returning convention for SYSV ABI case, but not
7309 for GNU/Linux, FreeBSD, or NetBSD.
7310
7311 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7312
7313 * symtab.h (lookup_block_symbol): Add mangled_name argument
7314 to prototype.
7315
7316 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7317 with new mangled_name argument.
7318 * linespec.c (decode_line_1): Likewise.
7319 * valops (value_of_this): Likewise.
7320 * symtab.c (lookup_transparent_type): Likewise.
7321 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7322 (lookup_symbol): If we are given a mangled name, pass it down
7323 to lookup_symbol_aux.
7324 (lookup_block_symbol): If we are given a mangled name to check
7325 against, only return symbols which match it.
7326
7327 2002-03-22 Christopher Faylor <cgf@redhat.com>
7328
7329 * win32-nat.c (child_create_inferior): Check for proper shell to use
7330 here, in case the user changes it on the fly.
7331 (_initialize_inftarg): Remove shell path considerations.
7332
7333 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7334
7335 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7336 for gdbarch_max_register_raw_size and max_register_virtual_size.
7337 Adjust copyright year.
7338
7339 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7340
7341 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7342 in a function to cover the entire beginning of the function
7343 as well if it does not already.
7344
7345 2002-03-21 Tom Rix <trix@redhat.com>
7346
7347 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7348 (rs6000_ptrace64): Renamed from ptrace64.
7349
7350 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7351
7352 * gdbserver/remote-utils.c (remote_open): Don't call
7353 getprotobyname, we're all using TCP here so just use
7354 IPPROTO_TCP.
7355 * gdbserver/gdbreplay.c (remote_open): Ditto.
7356
7357 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7358
7359 * regcache.c (_initialize_regcache): No need to call
7360 build_regcache() at this time; it gets called whenever
7361 the gdbarch changes.
7362
7363 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7364
7365 * sparc-nat.c: Include sys/param.h where possible.
7366
7367 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7368
7369 Fix PR gdb/422.
7370 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7371 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7372 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7373 complex types.
7374 * stabsread.c (rs6000_builtin_type): Likewise.
7375 (read_sun_floating_type): Likewise.
7376
7377 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7378
7379 * stabsread.c (read_member_functions): Remove skip code for duplicate
7380 constructor/destructor methods. Use standard parsing for these
7381 methods and just do not chain them to the list of methods after
7382 parsing.
7383
7384 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7385
7386 * coffread.c: Remove redundant static declarations. Replace
7387 occurrences of `PTR' with `void *'.
7388 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7389 * top.h (quit_cover): Likewise.
7390 * defs.h (catch_errors): Likewise.
7391
7392 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7393
7394 * defs.h (XMALLOC): Define.
7395 * gdb-events.sh (XMALLOC): Delete macro.
7396 * gdb-events.c, gdb-events.h: Regenerate.
7397 * gdbarch.sh (XMALLOC): Delete macro.
7398 * gdbarch.c: Regenerate.
7399 * serial.c (XMALLOC): Delete macro.
7400 * ui-file.c (XMALLOC): Ditto.
7401 * ser-unix.h (XMALLOC): Ditto.
7402 * sh-tdep.c (XMALLOC): Ditto.
7403 * ui-out.c (XMALLOC): Ditto.
7404 * utils.c (XMALLOC): Ditto.
7405 * i386-tdep.c (XMALLOC): Ditto.
7406 * gdb-events.c (XMALLOC): Ditto.
7407 * d10v-tdep.c (XMALLOC): Ditto.
7408 * cli-out.c (XMALLOC): Ditto.
7409
7410 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7411 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7412 * ui-file.c, ui-out.c: Ditto.
7413
7414 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7415
7416 * command.h (struct cmd_list_element): Add field context.
7417 (set_cmd_context, get_cmd_context): Declare.
7418 * cli/cli-decode.h: Ditto.
7419 * cli/cli-decode.c (get_cmd_context): New function.
7420 (set_cmd_context): New function.
7421 (add_cmd): Initialize context.
7422 Part of fixing PR gdb/145 and PR gdb/146.
7423
7424 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7425
7426 * cli/cli-decode.c (cmd_type): New function.
7427 * command.h (cmd_type): Declare.
7428 * infrun.c (set_schedlock_func): Call function cmd_type.
7429 * kod.c (kod_set_os): Call cmd_type.
7430 * cris-tdep.c (cris_version_update): Use function cmd_type.
7431 (cris_mode_update, cris_abi_update): Ditto.
7432
7433 * command.h: (execute_cmd_post_hook): Declare.
7434 (execute_cmd_pre_hook): Declare.
7435 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7436 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7437 functions. Execute pre/post hook while ensuring that afterwords
7438 hook_in is cleared.
7439 * top.c (execute_command): Use execute_cmd_post_hook, and
7440 execute_cmd_pre_hook to execute pre/post commands.
7441 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7442 hook_stop_stub.
7443 (hook_stop_stub): Call execute_cmd_pre_hook.
7444
7445 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7446
7447 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7448 set'' and this leads to a core dump. Move xstrdup of
7449 operating_system to after check that it is not NULL.
7450
7451 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7452
7453 * kod.c (kod_set_os): Remove unnecessary check that
7454 ``command->type'' is set_cmd.
7455
7456 * valprint.c (set_input_radix): Use input_radix.
7457 (set_output_radix): Use output_radix.
7458 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7459 isn't reverted.
7460
7461 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7462
7463 * value.h (struct value): Delete field ``substring_addr''. Change
7464 aligner fields to force_doublest_align, force_longest_align,
7465 force_core_addr_align and force_pointer_aligh.
7466
7467 * value.h (struct value): Fix typo in above change.
7468
7469 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7470
7471 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7472 to fix internal_error from ``maintenance print architecture''.
7473
7474 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7475
7476 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7477 for gcc versions after gcc-2.8.1.
7478
7479 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7480
7481 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7482 for method resolution. Restore adjustment of ``this'' pointer after
7483 calling value_struct_elt, which was accidentally removed during the
7484 HP merge.
7485
7486 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7487
7488 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7489 value_of_register.
7490 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7491 get_saved_register.
7492 * value.h (value_of_register): Update.
7493
7494 2002-03-14 Richard Henderson <rth@redhat.com>
7495
7496 * configure.in: Detect declaration for canonicalize_file_name.
7497 * utils.c (canonicalize_file_name): Declare, if needed.
7498 (gdb_realpath): Prefer realpath if available and usable.
7499 * config.in, configure: Rebuild.
7500
7501 2002-03-14 Richard Henderson <rth@redhat.com>
7502
7503 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7504 a constant array bound.
7505
7506 * MAINTAINERS: Add myself to write-after-approval.
7507
7508 2002-03-14 Michael Snyder <msnyder@redhat.com>
7509
7510 * symfile.c (syms_from_objfile): Return immediately if no syms.
7511 (symbol_file_add): Return immediately if no syms.
7512 (find_sym_fns): Return immediately if no syms.
7513
7514 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7515
7516 * gdbserver/remote-util.c (remote_open): Print remote-side's
7517 IP address when remote debugging over the network.
7518
7519 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7520
7521 * config/sparc/fbsd.mh: Fix copyright.
7522 * config/sparc/fbsd.mt: Likewise.
7523
7524 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7525
7526 * MAINTAINERS: Fix typo in name of gdb warnings option.
7527 (x86-64): Fix formating so that this can be parsed by awk.
7528
7529 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7530
7531 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7532 * defs.h: Include "gdb/signals.h".
7533 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7534
7535 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7536
7537 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7538 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7539 from x86-64-tdep.h
7540
7541 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7542 Don Howard <dhoward@redhat.com>
7543
7544 * mips-tdep.c (ST0_FR): Define.
7545 (mips2_fp_compat): New function, temporarily disabled.
7546 (mips_read_fp_register_single): New function.
7547 (mips_read_fp_register_double): New function.
7548 (mips_print_register): Use them.
7549 (do_fp_register_row): Likewise.
7550
7551 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7552
7553 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7554 approval''.
7555
7556 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7557
7558 * stabsread.c (read_member_functions): Fix is_stub test for
7559 static member functions, improve comment.
7560
7561 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7562
7563 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7564 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7565 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7566 commands that set boolean values.
7567 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7568 (arm_rdi_resume): Always initialize PC.
7569 (arm_rdi_open): Don't use rslt as a boolean.
7570 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7571 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7572 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7573 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7574
7575 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7576
7577 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7578 * configure: Rebuilt.
7579
7580 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7581
7582 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7583 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7584
7585 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7586
7587 * cli/cli-decode.c (set_cmd_completer): New function.
7588 * command.h (set_cmd_completer): Declare.
7589 * cli/cli-decode.h (set_cmd_completer): Ditto.
7590
7591 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7592 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7593 * win32-nat.c (_initialize_inftarg): Ditto.
7594 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7595 * proc-api.c (_initialize_proc_api): Ditto.
7596 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7597 * source.c (_initialize_source): Ditto.
7598 * exec.c (_initialize_exec): Ditto.
7599 * solib.c (_initialize_solib): Ditto.
7600 * top.c (init_main): Ditto.
7601 * tracepoint.c (_initialize_tracepoint): Ditto.
7602 * symfile.c (_initialize_symfile): Ditto.
7603 * printcmd.c (_initialize_printcmd): Ditto.
7604 * infcmd.c (_initialize_infcmd): Ditto.
7605 * corefile.c (_initialize_core): Ditto.
7606
7607 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7608
7609 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7610
7611 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7612
7613 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7614
7615 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7616
7617 * NEWS: Update headings, 5.2 has branched.
7618
7619 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7620
7621 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7622 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7623 (register_addr, REGISTER_RAW_SIZE): Likewise.
7624 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7625 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7626
7627 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7628
7629 * MAINTAINERS (x86-64): Add myself.
7630 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7631 changed value_ptr -> struct value *
7632
7633 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7634
7635 * configure.host (sparc64-*-freebsd): Add.
7636 * configure.tgt: Likewise.
7637 * config/sparc/fbsd.mh: New file.
7638 * config/sparc/fbsd.mt: Likewise.
7639 * config/sparc/nm-fbsd.h: Likewise.
7640 * config/sparc/tm-fbsd.h: Likewise.
7641
7642 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7643
7644 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7645 regformats/reg-s390x.dat.
7646
7647 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7648
7649 * utils.c: Add FIXME explaining true/false problem.
7650
7651 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7652
7653 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7654
7655 2002-02-28 Michael Chastain <mec@shout.net>
7656
7657 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7658
7659 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7660
7661 * gdbserver/linux-s390-low.c: New file.
7662 * regformats/reg-s390.dat: New file.
7663 * regformats/reg-s390x.dat: New file.
7664 * gdbserver/configure.srv: Add S/390.
7665 * gdbserver/Makefile.in: Add S/390.
7666 * configure.tgt: Enable gdbserver for S/390.
7667
7668 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7669
7670 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7671 first line of the doc string for "info dos", except at the end of
7672 the sentence, since the short help stops at the first period.
7673
7674 2002-02-28 Jason Merrill <jason@redhat.com>
7675
7676 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7677
7678 2002-02-27 Fred Fish <fnf@redhat.com>
7679
7680 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7681 comment (dumy -> dummy).
7682
7683 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7684
7685 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7686
7687 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7688
7689 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7690
7691 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7692
7693 * gdbserver/acconfig.h: New file.
7694 * gdbserver/i387-fp.c: New file.
7695 * gdbserver/i387-fp.h: New file.
7696 * gdbserver/linux-x86-64.c: New file.
7697 * regformats/reg-x86-64.dat: New file.
7698 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7699 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7700 * gdbserver/configure.in: Add support for regsets.
7701 * gdbserver/config.in: Regenerate.
7702 * gdbserver/configure: Regenerate.
7703 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7704 * gdbserver/linux-low.h: New file.
7705 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7706 for regsets.
7707 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7708 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7709 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7710 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7711 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7712 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7713 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7714 "i387-fp.h". Add PTRACE_GETREGS and friends.
7715 * gdbserver/regcache.c (supply_register): New function.
7716 (supply_register_by_name): New function.
7717 (collect_register): New function.
7718 (collect_register_by_name): New function.
7719
7720 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7721
7722 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7723 (config.status): Add configure.srv dependency.
7724 (server_h): Add config.h dependency.
7725
7726 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7727
7728 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7729 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7730 * gdbserver/configure.srv: Change i386-*-linux* to use
7731 reg-i386-linux.o.
7732
7733 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7734
7735 * x86-64-tdep.c: Re-indent. Update copyright date.
7736
7737 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7738
7739 From Michal Ludvig <mludvig@suse.cz>:
7740 * x86-64-tdep.c (value.h): Delete.
7741 (gdb_assert.h): Include.
7742 (x86_64_register_convert_to_virtual,
7743 x86_64_register_convert_to_raw ): Add check which lets only
7744 floating-point values to be converted.
7745 (value_push): Delete.
7746 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7747 (i386_gdbarch_init): Number of register_bytes fixed.
7748
7749 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7750
7751 * MAINTAINERS: Add x86-64 target.
7752
7753 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7754
7755 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7756 * osfsolib.c (solib_map_sections): Ditto.
7757 * irix5-nat.c (solib_map_sections): Ditto.
7758 * corelow.c (gdb_check_format): Ditto.
7759 * symfile.c (symfile_bfd_open): Ditto.
7760 * solib.c (solib_map_sections): Ditto.
7761 Fix PR gdb/354.
7762
7763 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7764
7765 * remote.c (_initialize_remote): By default, disable ``e'' and
7766 ``E'' step out-of-range packets.
7767
7768 2002-02-26 Andreas Schwab <schwab@suse.de>
7769
7770 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7771 m68k_linux_frame_saved_pc.
7772 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7773 in_sigtramp.
7774 (SIGCONTEXT_PC_OFFSET): Remove.
7775 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7776 m68k_linux_sigtramp_saved_pc): New functions.
7777 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7778 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7779 (UCONTEXT_PC_OFFSET): Define.
7780 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7781 non-RT and RT signal trampolines.
7782
7783 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7784
7785 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7786 (TARGET_NBPG, STACK_END_ADDR): Delete
7787 (VARIABLES_INSIDE_BLOCK): Delete.
7788
7789 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7790
7791 * utils.c (perror_with_name): Make string parameter constant.
7792 (print_sys_errmsg): Ditto.
7793 (query): Ditto.
7794 * defs.h (perror_with_name): Update.
7795 (print_sys_errmsg): Update.
7796 (query): Update.
7797
7798 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7799
7800 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7801 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7802
7803 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7804
7805 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7806 if it already matches the current architecture from the exec file.
7807 Include arch-utils.h for gdbarch_info_init prototype.
7808 * Makefile.in (rs6000-nat.o): Update dependencies.
7809
7810 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7811
7812 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7813 list of exported variables.
7814
7815 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7816
7817 * gdbserver/configure.srv: New file.
7818 * gdbserver/configure.in: Use configure.srv instead
7819 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7820 from it.
7821 * gdbserver/configure: Regenerated.
7822 * gdbserver/terminal.h: New file.
7823 * gdbserver/Makefile.in: Update for configure changes. Remove
7824 more unneeded include paths.
7825
7826 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7827
7828 From wiz at danbala:
7829 * config/sparc/tm-sp64.h: Fix grammar and typos.
7830 Fix PR gdb/287.
7831
7832 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7833
7834 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7835 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7836 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7837 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7838 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7839 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7840 * s390-tdep.c: Ditto.
7841 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7842 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7843 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7844 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7845 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7846 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7847 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7848 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7849 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7850 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7851 Fix PR gdb/378.
7852
7853 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7854
7855 * lin-thread.c: Delete file.
7856 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7857 to gdb_proc_service.h.
7858 * configure: Re-generate.
7859
7860 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7861 * serial.c (serial_open): Delete check for "ocd".
7862 Fix PR gdb/349.
7863
7864 * Makefile.in (linux-thread.o): Delete target.
7865 * linux-thread.c: Delete file.
7866
7867 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7868 renamed SH files to be consistent.
7869
7870 * symtab.c (sort_search_symbols): Use xfree.
7871
7872 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7873
7874 * arm-linux-tdep.c (arm_linux_init_abi): Register
7875 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7876 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7877 definition with undef, since we don't want the sysvr4 definition.
7878 (SKIP_TRAMPOLINE_CODE): Likewise.
7879
7880 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7881
7882 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7883
7884 * configure.in: (AC_CHECK_FUNCS) Added test for
7885 canonicalize_file_name Regenerated.
7886 * config.in, configure: Regenerated.
7887 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7888 defined use canonicalize_file_name.
7889
7890 2002-02-23 Michael Chastain <mec@shout.net>
7891
7892 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7893
7894 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7895
7896 * README: Remove references to cygnus.com.
7897 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7898 dot com'' form. Remove references to cygnus.com and sourceware.
7899
7900 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7901
7902 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7903 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7904 1003.1-2001 no longer allows "head -1".
7905 * gdb/Makefile.in (version.c): Likewise.
7906 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7907 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7908 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7909
7910 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7911
7912 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7913 * command.h (cmd_cfunc_eq): Declare.
7914 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7915
7916 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7917 ``struct cmd_list_element *''.
7918 * cli/cli-cmds.c (is_complete_command): Update. Use
7919 cmd_cfunc_eq.
7920 * top.c (execute_command): Pass the command to
7921 is_complete_command.
7922 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7923
7924 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7925
7926 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7927 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7928 architecture defines.
7929 * s390-tdep.c (s390_gdbarch_init): Likewise.
7930
7931 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7932
7933 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7934 (arm_linux_push_arguments): Likewise.
7935 (arm_linux_init_abi): Register them. Also register linux-specific
7936 call_dummy_words.
7937 (find_minsym_and_objfile): Use strcmp, not STREQ.
7938 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7939 (arm_linux_call_dummy_words): Delete declaration.
7940 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7941 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7942 declarations.
7943 (LOWEST_PC): Delete.
7944
7945 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7946
7947 * maint.c (print_section_info): Do not prepend `0x' to filepos
7948 output, it will be handled by local_hex_string_custom.
7949
7950 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7951
7952 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7953 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7954 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7955
7956 2002-02-22 Jim Blandy <jimb@redhat.com>
7957
7958 Indicate that the bcache functions don't change the strings
7959 they're passed.
7960 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7961 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7962
7963 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7964
7965 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7966
7967 2002-02-21 Christopher Faylor <cgf@redhat.com>
7968
7969 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7970 find the complete path to a loaded DLL.
7971
7972 2002-02-21 Fred Fish <fnf@redhat.com>
7973
7974 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7975 that marks the end of the range of a function, enter a line number
7976 entry that has a line number of zero and a PC offset that matches
7977 the end of the function. This starts a range of PC's for which no
7978 line number information is known.
7979 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7980 PC's for which no line number info is found (line number is zero)
7981 then we didn't find any valid line information.
7982 * symtab.h: Document use of zero line number entry.
7983
7984 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7985
7986 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7987 (have_ptrace_getvrregs): Define for run time checks.
7988 (gdb_vrregset_t): New type for Altivec register handling.
7989 (fetch_register, store_register): Fetch/store altivec register
7990 when needed.
7991 (fetch_altivec_register, store_altivec_register): New functions.
7992 (supply_vrregset, fill_vrregset): New functions.
7993 (fetch_altivec_registers, store_altivec_registers): New functions.
7994 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7995 registers as well.
7996
7997 2002-02-21 Jiri Smid <smid@suse.cz>
7998
7999 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8000
8001 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8002
8003 * Makefile.in (armnbsd-nat.o): Update dependencies.
8004 * armnbsd-nat.c (supply_gregset): New function. Common code to
8005 supply the integer register set.
8006 (supply_fparegset): New function. Similar for FPA registers.
8007 (fetch_regs, fetch_fp_regs): Use them.
8008 (fetch_core_registers): Likewise.
8009 (fetch_elfcore_registers): New function.
8010 (arm_netbsd_elfcore_fns): New core-file type specification.
8011 (_initialize_arm_netbsd_nat): Register it.
8012
8013 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8014
8015 * armnbsd-nat.c: Include gdbcore.h.
8016 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8017 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8018 'void' to declaration, to shut up ARI.
8019 (fetch_core_registers): Make static. Rewrite using supply_register.
8020 (arm_netbsd_core_fns): New core-file type specification.
8021 (_initialize_arm_netbsd_nat): New function.
8022
8023 2002-02-21 Christopher Faylor <cgf@redhat.com>
8024
8025 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8026 value.
8027
8028 2002-02-20 Christopher Faylor <cgf@redhat.com>
8029
8030 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8031 fails.
8032
8033 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8034
8035 * jv-exp.y (parse_number): Change type of implicit longs
8036 to builtin_type_uint64.
8037
8038 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8039
8040 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8041 to be an integer instead of a `union wait'.
8042
8043 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8044
8045 * mips-linux-nat.c: Call the operating system GNU/Linux.
8046 * mips-linux-tdep.c: Likewise.
8047 * mips-tdep.c: Likewise.
8048
8049 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8050
8051 Fix PR gdb/265.
8052 * jv-exp.y (parse_number): Handle 64-bit integers.
8053
8054 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8055
8056 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8057 AC_STDC_HEADERS to AC_HEADER_STDC.
8058 * gdbserver/configure: Regenerated.
8059
8060 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8061
8062 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8063 is defined.
8064 * sparc-tdep.c (get_longjmp_target): Likewise.
8065
8066 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8067
8068 * News: Add news about ARM and Multi-arch. Mention the new target
8069 arm*-*-netbsd*.
8070
8071 2002-02-19 Jim Blandy <jimb@redhat.com>
8072
8073 * stabsread.c (error_type_complaint): Improve error message.
8074
8075 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8076
8077 * gdbserver/README: Update documentation.
8078 * gdbserver/configure.in: Update configury to match documentation.
8079 * gdbserver/Makefile.in: Likewise.
8080 * gdbserver/configure: Regenerated.
8081 * gdbserver/aclocal.m4: New file, generated by aclocal.
8082 * gdbserver/config.in: New file, generated by autoheader.
8083
8084 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8085
8086 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8087 armnbsd-nat.c.
8088
8089 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8090
8091 * arm-tdep.h (enum arm_float_model): New enum.
8092 (struct gdbarch_tdep): Add fp_model.
8093 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8094 up floating-point conversions until we know the floating-point model
8095 in use by the inferior. Don't complain about being unable to
8096 determine the ABI of the inferior when we don't have one.
8097 (arm_extract_return_value): Support different floating-point models.
8098 (arm_store_return_value): Likewise.
8099 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8100 ARM_FLOAT_SOFT.
8101 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8102
8103 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8104
8105 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8106 of ``current_gdbarch''.
8107
8108 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8109
8110 * armnbsd-nat.c : ANSIfy all function declarations.
8111 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8112 (fetch_inferior_registers): Re-implement in terms of above.
8113 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8114 (store_inferior_registers): Re-implement in terms of above.
8115
8116 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8117
8118 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8119 kernel.
8120 * arm-linux-tdep.c: Likewise.
8121 * config/arm/tm-linux.h: Likewise.
8122
8123 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8124
8125 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8126 * config/arm/nbsd.mt (TM_FILE): Delete.
8127 * config/arm/tm-nbsd.h: Delete.
8128
8129 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8130
8131 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8132 Initialize CALL_DUMMY_LENGTH.
8133
8134 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8135
8136 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8137 function.
8138 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8139 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8140 defines one thing and that is incorrect for this port.
8141 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8142
8143 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8144
8145 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8146
8147 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8148
8149 * win32-nat.c (display_selector): New function. Displays information
8150 about the information returned by GetThreadSelectorEntry API function.
8151 (display_selectors): New function. Displays the infomation of
8152 the selector given as argument, or of CS, DS ans FS selectors
8153 if no argument is given.
8154 ( _initialize_inftarg): Add "w32" as info prefix command.
8155 Add "info w32 selector" as command calling display_selectors.
8156
8157 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8158
8159 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8160 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8161 if not defined.
8162
8163 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8164
8165 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8166
8167 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8168
8169 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8170 (arm_fix_call_dummy): Call it.
8171 (arm_call_dummy_breakpoint_offset): Delete.
8172 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8173 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8174
8175 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8176
8177 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8178 Default to func_frame_chain_valid.
8179 * gdbarch.h, gdbarch.c: Re-generate.
8180 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8181
8182 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8183
8184 * ppc-linux-nat.c: Update copyright.
8185 (fetch_register, store_register): Add tid parameter, don't compute
8186 tid here.
8187 (fetch_ppc_registers, store_ppc_registers): Add tid
8188 parameter. Pass it along to callees.
8189 (fetch_inferior_registers, store_inferior_registers): Compute tid
8190 here, and pass it to calleed functions.
8191 (fill_gregset, supply_fpregset): Clean up formatting.
8192
8193 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8194
8195 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8196 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8197
8198 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8199
8200 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8201 * gdbarch.c gdbarch.h: Regenerate.
8202 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8203 function.
8204 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8205 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8206 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8207
8208 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8209 * arm-tdep.c (arm_get_longjmp_target): New function.
8210 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8211 this to a positive value register arm_get_longjmp_target as the
8212 longjmp handler.
8213 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8214 (arm_linux_init_abi): Set up longjmp description in tdep.
8215 * armnbsd-nat.c (get_longjmp_target): Delete.
8216 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8217 description in tdep.
8218 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8219 (get_longjmp_target): Delete declaration.
8220 (GET_LONGJMP_TARGET): Delete.
8221 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8222 (GET_LONGJMP_TARGET): Delete.
8223
8224 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8225
8226 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8227 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8228 of ``current_gdbarch''.
8229
8230 2002-02-17 Tom Tromey <tromey@redhat.com>
8231
8232 * cli/cli-cmds.c (compare_strings): New function.
8233 (complete_command): Only print each unique item once.
8234 * completer.h (complete_line): Declare.
8235 * completer.c (complete_line): New function.
8236 (line_completion_function): Use it.
8237
8238 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8239
8240 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8241 * gdbarch.h, gdbarch.c: Re-generate.
8242
8243 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8244
8245 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8246
8247 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8248
8249 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8250 * valops.c (value_arg_coerce): Don't take the address of a reference
8251 to convert an argument to a reference.
8252
8253 2002-02-15 Christopher Faylor <cgf@redhat.com>
8254
8255 * win32-nat.c (get_image_name): New function.
8256 (handle_load_dll): Use get_image_name function.
8257 (get_child_debug_event): Avoid registering debug events until possibly
8258 execed process is started.
8259 (child_create_inferior): Allow invocation via shell so that command
8260 line redirection, etc. works ok.
8261 (_initialize_inftarg): Add new command: "set shell" to control whether
8262 a shell is used to start a process.
8263
8264 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8265
8266 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8267 instead of find_register_by_number.
8268 (cannot_store_register): Likewise.
8269
8270 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8271
8272 * dwarf2read.c: Replace fprintf (stderr, ...) by
8273 fprintf_unfiltered (gdb_stderr, ...).
8274
8275 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8276
8277 * gdbserver/gdbserver.1: Document --attach.
8278
8279 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8280
8281 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8282 descriptions.
8283 * arm-tdep.c (arm_default_arm_le_breakpoint)
8284 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8285 (arm_default_thumb_be_breakpoint): New. Initialize them from
8286 traditional breakpoint defines.
8287 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8288 (arm_gdbarch_init): Initialize new breakpoint variables.
8289 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8290 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8291 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8292 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8293 code out to ...
8294 (arm_netbsd_init_abi_common): ... here; new function.
8295 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8296 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8297 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8298 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8299
8300 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8301
8302 * arm-tdep.h (enum arm_abi): New enum.
8303 (struct gdbarch_tdep): New structure.
8304 (LOWEST_PC): Provide a default.
8305 (arm_gdbarch_register_os_abi): Declare new function.
8306 * arm-tdep.c (arm_abi_names): New array.
8307 (process_note_abi_tag_sections): New function.
8308 (get_elfosabi): New function.
8309 (arm_gdbarch_register_os_abi): New function.
8310 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8311 support for that ABI has been built in, then call the appropriate
8312 configuration routine. Use gdbarch_num_regs() to get the number
8313 of registers.
8314 (arm_dump_tdep): New function.
8315 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8316 place-holder functions.
8317 (_initialize_arm_tdep): Register them.
8318 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8319
8320 * armnbsd-tdep.c: New file.
8321 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8322 * config/arm/nbsd.mt (TDEPFILES): Add it.
8323 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8324
8325 * armnbsd-nat.c: Include regcache.h.
8326 * Makefile.in (armnbsd-nat.o): Update dependency list.
8327
8328 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8329
8330 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * gdbserver/Makefile.in: Fix typos in target rules.
8333
8334 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8335
8336 Fix part of PR gdb/267.
8337 * linespec.c (find_methods): Handle constructors specially for now.
8338
8339 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8340
8341 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8342 handling.
8343 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8344 standard_coerce_float_to_double().
8345
8346 2002-02-14 Christopher Faylor <cgf@redhat.com>
8347
8348 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8349 GDBINIT_FILENAME.
8350
8351 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8352
8353 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8354 find_variant_by_name, because it confuses the multiarch
8355 framework. Return NULL if there isn't an architecture with the
8356 user supplied name, instead of forcing a different one without
8357 recording the change with the multiarch machinery.
8358 (find_variant_by_name): Delete.
8359
8360 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8361
8362 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8363 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8364
8365 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8366
8367 * stack.c (print_frame_info_base): When calling
8368 print_frame_info_listing_hook, set current_source_symtab.
8369
8370 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8371
8372 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8373 and remove unused $(INCLUDE_DIR).
8374 Add regcache.c to OBS.
8375 Add generated register protocol files to clean target.
8376 Update dependencies for new objects, obsolete old target code.
8377
8378 * gdbserver/linux-low.c: Remove all platform-specific code to
8379 new files. Remove various dead code. Update to use regcache
8380 functionality.
8381 * gdbserver/remote-utils.c (fromhex): Add return statement
8382 to quiet warning.
8383 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8384 constant.
8385 (input_interrupt): Add integer parameter to match prototype
8386 of a signal handler.
8387 (outreg): Use register_data ().
8388 (prepare_resume_reply): Use gdbserver_expedite_regs.
8389 * gdbserver/server.c (main): Dynamically allocate own_buf because
8390 PBUFSIZ is no longer constant. Use registers_to_string () and
8391 registers_from_string ().
8392 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8393 for error (), fatal (), and warning (). Update definition of
8394 PBUFSIZ to use regcache functionality. Add include guard.
8395 * gdbserver/utils.c (fatal): Add missing ``const''.
8396 (warning): New function.
8397
8398 * regformats/regdat.sh: Include "regcache.h" in generated files.
8399 Provide init_registers () function.
8400 * regformats/regdef.h: Add prototype for set_register_cache ().
8401 Add include guard.
8402
8403 * gdbserver/linux-arm-low.c: New file.
8404 * gdbserver/linux-i386-low.c: New file.
8405 * gdbserver/linux-ia64-low.c: New file.
8406 * gdbserver/linux-m68k-low.c: New file.
8407 * gdbserver/linux-mips-low.c: New file.
8408 * gdbserver/linux-ppc-low.c: New file.
8409 * gdbserver/linux-sh-low.c: New file.
8410
8411 * gdbserver/regcache.c: New file.
8412 * gdbserver/regcache.h: New file.
8413
8414 * gdbserver/low-linux.c: Removed obsolete file.
8415
8416 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8417
8418 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8419 * config/i386/linux.mt: Likewise.
8420 * config/ia64/linux.mt: Likewise.
8421 * config/m68k/linux.mh: Likewise.
8422 * config/powerpc/linux.mh: Likewise.
8423 * config/mips/linux.mt: Likewise.
8424
8425 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8426
8427 * config/i386/i386lynx.mh: Mark gdbserver variables
8428 as (currently) obsolete for this target.
8429 * config/i386/nbsd.mt: Likewise.
8430 * config/i386/nbsdelf.mt: Likewise.
8431 * config/m32r/m32r.mt: Likewise.
8432 * config/m68k/m68klynx.mh: Likewise.
8433 * config/m68k/nbsd.mt: Likewise.
8434 * config/m68k/sun3os4.mh: Likewise.
8435 * config/mips/vr5000.mt: Likewise.
8436 * config/ns32k/nbsd.mt: Likewise.
8437 * config/pa/hppabsd.mh: Likewise.
8438 * config/pa/hppaosf.mh: Likewise.
8439 * config/powerpc/nbsd.mt: Likewise.
8440 * config/rs6000/rs6000lynx.mh: Likewise.
8441 * config/s390/s390.mt: Likewise.
8442 * config/s390/s390x.mt: Likewise.
8443 * config/sparc/sparclynx.mh: Likewise.
8444 * config/sparc/sun4os4.mh: Likewise.
8445 * config/i386/x86-64linux.mt: Likewise.
8446 * config/sparc/linux.mh: Likewise.
8447
8448 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8449
8450 * configure.tgt: Configure gdbserver only for known working
8451 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8452 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8453 SUBDIRS if it is configured. Update comment for ${nativefile}.
8454 * configure: Regenerated.
8455
8456 2002-02-13 Michael Snyder <msnyder@redhat.com>
8457
8458 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8459
8460 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8461 (default_gcore_mach): Just return 0, work around a problem in bfd.
8462 (default_gcore_target): OK to return NULL if exec_bfd is null.
8463 (make_mem_sec): Use a cast, avoid a warning.
8464
8465 * procfs.c (find_memory_regions_callback): Use a cast instead of
8466 calling host_pointer_to_address (which complains if
8467 sizeof (host pointer) != sizeof (target pointer)).
8468 (procfs_make_note_section): Avoid overflow in psargs string.
8469
8470 * procfs.c (procfs_make_note_section): Make the default
8471 implementation return an error.
8472
8473 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8474
8475 * procfs.c (procfs_make_note_section): Provide a default definition
8476 (for alpha-dec-osf4.0f). Fix typos.
8477
8478 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8479
8480 * linux-proc.c: Add include of regcache.h.
8481 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8482
8483 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8484
8485 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8486 * memattr.c (create_mem_region): Disallow useless empty region.
8487 Regions are half-open intervals, so allow [A..B) [B..C) as
8488 non-overlapping.
8489
8490 2002-02-13 Michael Chastain <mec@shout.net>
8491
8492 * defs.h: Kill CONST_PTR.
8493 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8494 * c-lang.c (c_builtin_types): Likewise.
8495 * ch-lang.c (ch_builtin_types): Likewise.
8496 * f-lang.c (f_builtin_types): Likewise.
8497 * language.c (unknown_builtin_types): Likewise.
8498 * m2-lang.c (m2_builtin_types): Likewise.
8499 * p-lang.c (pascal_builtin_types): Likewise.
8500 * scm-lang.c (c_builtin_types): Likewise.
8501
8502 2002-02-13 Keith Seitz <keiths@redhat.com>
8503
8504 * arm-tdep.h (arm_get_next_pc): Add declaration.
8505
8506 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8507
8508 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8509 with other related struct-returning functions.
8510 (arm_extract_struct_value_address): New function.
8511 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8512 initialize float_format, double_format and long_double_format as
8513 appropriate to the endianness of the target.
8514 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8515 (arm_use_struct_convention): Delete declaration.
8516 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8517
8518 2002-02-13 Keith Seitz <keiths@redhat.com>
8519
8520 * defs.h (core_addr_to_string_nz): New function.
8521
8522 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8523
8524 Apply missing bits of 2002-01-15 patch.
8525 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8526 (fill_fpregset): Use i387_fill_fsave.
8527
8528 2002-02-12 Keith Seitz <keiths@redhat.com>
8529
8530 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8531 (core_addr_to_string_nz): New function.
8532
8533 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8534
8535 * arm-linux-nat.c: Really include arm-tdep.h.
8536 * config/arm/tm-linux.h (struct type, struct value): Declare.
8537
8538 2002-02-11 Michael Snyder <msnyder@redhat.com>
8539
8540 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8541 (gcore section): Ifdef for Solaris and Unixware only.
8542 (procfs_do_thread_registers): Unixware needs one lwpstatus
8543 per thread (not one prstatus or pstatus).
8544 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8545 not over all gdb threads. For unixware, call elfcore_write_pstatus
8546 once before iterating over threads.
8547
8548 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8549
8550 * arm-tdep.h: New file.
8551 * arm-tdep.c: Include arm-tdep.h.
8552 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8553 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8554 (arm_print_float_info, arm_register_type, convert_to_extended)
8555 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8556 (arm_extract_return_value, arm_register_name): Make static.
8557 (arm_software_single_step): Similarly. Fix types in declaration.
8558 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8559 (arm_store_return_value, arm_store_struct_return): New functions.
8560 (arm_gdbarch_init): Register the above functions. Also register
8561 call_dummy_start_offset, sizeof_call_dummy_words,
8562 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8563 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8564 max_register_virtual_size, register_size. Set up
8565 prologue_cache.saved_regs here, rather than ...
8566 (_initialize_arm_tdep): ... here.
8567 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8568 declarations.
8569 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8570 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8571 (arm_print_float_info, arm_register_type, convert_to_extended)
8572 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8573 (arm_extract_return_value, arm_register_name): Delete declarations.
8574 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8575 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8576 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8577 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8578 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8579 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8580 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8581 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8582 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8583 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8584 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8585 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8586 interface.
8587 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8588 * remote-rdi.c remote-rdp.c: Likewise.
8589 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8590 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8591 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8592 definition.
8593
8594 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8595 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8596 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8597 from non-ARM_ prefixed definitions.
8598 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8599 all uses of above.
8600 * remote-rdi.c remote-rdp.c: Likewise.
8601 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8602
8603 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8604
8605 * arm-tdep.c (arm_frameless_function_invocation)
8606 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8607 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8608 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8609 (arm_pop_frame, arm_get_next_pc): Make static.
8610 (arm_gdbarch_init): Register above in gdbarch structure.
8611 (arm_read_fp): Renamed from arm_target_read_fp.
8612 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8613 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8614 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8615 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8616 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8617 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8618 (arm_pc_is_thumb_dummy): Delete declarations.
8619 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8620 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8621 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8622 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8623
8624 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8625
8626 * symtab.c (compare_search_syms): New function.
8627 (sort_search_symbols): New function.
8628 (search_symbols): Sort symbols after searching rather than
8629 before.
8630
8631 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8632
8633 * NEWS: Linux -> GNU/Linux.
8634
8635 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8636
8637 * gdbarch.sh: For for level one methods, disallow a definition
8638 when partially multi-arched. Add comments explaining rationale.
8639 * gdbarch.h: Re-generate.
8640
8641 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8642
8643 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8644 multi-arch partial.
8645
8646 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8647
8648 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8649 field. Use diff -u.
8650 * gdbarch.c: Re-generate.
8651
8652 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8653
8654 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8655 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8656 partial.
8657
8658 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8659
8660 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8661 multi-arch partial.
8662 (PUSH_ARGUMENTS): Switch to using predefault.
8663 * gdbarch.c: Regenerate.
8664
8665 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8666
8667 * valops.c (PUSH_ARGUMENTS): Delete definition.
8668 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8669 partial. Default to default_push_arguments.
8670 * gdbarch.h, gdbarch.c: Regenerate.
8671
8672 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8673
8674 * defs.h (throw_exception): Rename return_to_top_level. Update
8675 comments.
8676 * utils.c (error_stream, internal_verror, quit): Ditto.
8677 * top.c (throw_exception, catcher): Ditto.
8678 * sparclet-rom.c (sparclet_load): Ditto.
8679 * remote.c (interrupt_query, minitelnet): Ditto.
8680 * remote-sds.c (interrupt_query): Ditto.
8681 * remote-mips.c (mips_error, mips_kill): Ditto.
8682 * ocd.c (interrupt_query): Ditto.
8683 * monitor.c (monitor_interrupt_query): Ditto.
8684 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8685 * target.h: Update comment.
8686
8687 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8688
8689 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8690
8691 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8692 default_double_format.
8693 * gdbarch.h, gdbarch.c: Re-generate.
8694 * findvar.c (floatformat_unknown): Delete variable definition.
8695 * doublest.h (floatformat_unknown): Delete variable declaration.
8696
8697 2002-02-09 Jim Blandy <jimb@redhat.com>
8698
8699 * stabsread.c (read_type): Add code to parse Sun's syntax for
8700 prototyped function types.
8701
8702 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8703
8704 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8705 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8706
8707 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8708
8709 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8710 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8711 now _initialize_xcoffsolib gets called again and overrides the
8712 commands from solib.c in a native configuration.
8713
8714 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8715
8716 * doublest.c (store_typed_floating): Don't try to return a value.
8717 Fixes PR gdb/290.
8718
8719 2002-02-08 Jim Blandy <jimb@redhat.com>
8720
8721 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8722 is prototyped and has no arguments, print its argument list as
8723 `(void)'.
8724
8725 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8726
8727 * MAINTAINERS (write-after-approval): Add myself.
8728 (paper-trail): I've escaped!
8729
8730 2002-02-08 Christopher Faylor <cgf@redhat.com>
8731
8732 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8733 changes.
8734 (_initialize_check_for_gdb_ini): Ditto.
8735
8736 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8737
8738 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8739 xaprintf -> xasprintf.
8740
8741 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8742
8743 * win32-nat.c: Remove use of printf and sprintf functions.
8744
8745 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8746
8747 * arm-tdep.c (arm_frame_chain_valid): Make static.
8748 (arm_push_arguments): Likewise.
8749 (arm_gdbarch_init): New function.
8750 (_initialize_arm_tdep): Call it.
8751 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8752 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8753 (FRAME_CHAIN_VALID): Delete.
8754 (arm_frame_chain_valid): Delete declaration.
8755 (PUSH_ARGUMENTS): Delete.
8756 (arm_push_arguments): Delete declaration.
8757 (CALL_DUMMY_P): Delete.
8758
8759 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8760 Corinna Vinschen <vinschen@redhat.com>
8761
8762 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8763 on builtin float types.
8764
8765 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8766
8767 * utils.c: Include <curses.h> before "bfd.h".
8768 * tui/tui-hooks.c: Likewise.
8769 * tui/tui.c: Likewise.
8770 * tui/tuiCommand.c: Likewise.
8771 * tui/tuiData.c: Likewise.
8772 * tui/tuiDataWin.c: Likewise.
8773 * tui/tuiDisassem.c: Likewise.
8774 * tui/tuiGeneralWin.c: Likewise.
8775 * tui/tuiIO.c: Likewise.
8776 * tui/tuiLayout.c: Likewise.
8777 * tui/tuiRegs.c: Likewise.
8778 * tui/tuiSource.c: Likewise.
8779 * tui/tuiSourceWin.c: Likewise.
8780 * tui/tuiStack.c: Likewise.
8781 * tui/tuiWin.c: Likewise.
8782
8783 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8784
8785 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8786 to include space for pseudoregs as well. Update loops accordingly.
8787 (sh_fp_frame_init_saved_regs): Ditto.
8788 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8789
8790 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8791
8792 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8793 Add Richard Earnshaw to Arm maintainers.
8794
8795 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8796
8797 * defs.h (warning_begin): Delete declaration.
8798
8799 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8800 Delete macro.
8801
8802 2002-02-07 Michael Snyder <msnyder@redhat.com>
8803
8804 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8805 Logic bug, remove misplaced else.
8806
8807 2002-02-07 Klee Dienes <klee@apple.com>
8808
8809 * fork-inferior.c (fork_inferior): Add '!' to the list of
8810 characters that need to be quoted when building a string for the
8811 shell. Quote '!' specifically with a backslash, since CSH chokes
8812 when trying to evaluate "str!str".
8813
8814 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8815
8816 * rdi-share/host.h: Only provide a typedef for bool if it is not
8817 defined.
8818
8819 2002-02-04 Michael Snyder <msnyder@redhat.com>
8820
8821 * breakpoint.h (enum bptype): Add new overlay event bp type.
8822 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8823
8824 * breakpoint.c (create_internal_breakpoint): New function.
8825 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8826 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8827 (create_thread_event_breakpoint): Ditto.
8828 (create_solib_event_breakpoint): Ditto.
8829 (create_overlay_event_breakpoint): New function.
8830 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8831 (update_breakpoints_after_exec): Delete and re-initialize
8832 overlay event breakpoints after an exec. Add FIXME comment
8833 about longjmp breakpoint.
8834 (print_it_typical): Ignore overlay event breakpoints.
8835 (print_one_breakpoint): Ditto.
8836 (mention): Ditto.
8837 (bpstat_what): Do not stop for overlay event breakpoints.
8838 (delete_breakpoint): Don't delete overlay event breakpoints.
8839 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8840 (breakpoint_re_set): Re-create overlay event breakpoint.
8841
8842 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8843 (overlay_manual_command): Disable overlay breakpoints.
8844 (overlay_off_command): Disable overlay breakpoints.
8845
8846 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8847
8848 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8849 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8850 to here from config/tm-arm.h.
8851 (coff_sym_is_thumb): Make static.
8852 (arm_elf_make_msymbol_special): New function.
8853 (arm_coff_make_msymbol_special): New function.
8854 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8855 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8856 (coff_sym_is_thumb): Delete declaration.
8857 (arm_elf_make_msymbol_special): Declare.
8858 (arm_coff_make_msymbol_special): Declare.
8859 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8860 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8861
8862 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8863
8864 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8865
8866 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8867
8868 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8869 * gdbarch.c gdbarch.h: Regenerate.
8870 * arch-utils.c (default_print_float_info): New function.
8871 * arch-utils.h (default_print_float_info): Prototype it.
8872 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8873 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8874 (PRINT_FLOAT_INFO): Document it.
8875
8876 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8877 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8878 (PRINT_FLOAT_INFO): Define.
8879
8880 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8881
8882 * win32-nat.c (_initialize_check_for_gdb_ini):
8883 Add typecast to sprintf argument to suppress a warning.
8884
8885 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8886
8887 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8888 to allow easier handling of pass state.
8889 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8890 that gives exception name and address.
8891 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8892 and set last_sig value to ourstatus->value.sig. Some missing
8893 exceptions added.
8894 (child_continue): Correctly report continue_status.
8895 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8896 TARGET_SIGNAL_0 (new default value).
8897 (child_resume): consider sig argument passed to decide if
8898 the exception should be passed to debuggee or not.
8899
8900 2002-02-05 Michael Snyder <msnyder@redhat.com>
8901
8902 * regcache.c (fetch_register): Call target_fetch_register
8903 only if we don't call FETCH_PSEUDO_REGISTER.
8904 (store_register): Call target_store_register only if we
8905 don't call STORE_PSEUDO_REGISTER.
8906
8907 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8908
8909 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8910 ELF_MAKE_MSYMBOL_SPECIAL.
8911 * gdbarch.c, gdbarch.h: Regenerate.
8912 * arch-utils.c (default_make_msymbol_special): New function.
8913 * arch-utils.h (default_make_msymbol_special): Export.
8914 * elfread.c (elf_symtab_read): Compile use of
8915 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8916 multiarched.
8917 * coffread.c (coff_symtab_read): Ditto, for
8918 COFF_MAKE_MSYMBOL_SPECIAL.
8919
8920 2002-02-05 Jim Blandy <jimb@redhat.com>
8921
8922 * solib-svr4.c (svr4_truncate_ptr): New function.
8923 (svr4_relocate_section_addresses): Do the address arithmetic with
8924 the appropriate truncation for target addresses, even when
8925 CORE_ADDR is larger than a target address.
8926
8927 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8928
8929 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8930 to (int *).
8931
8932 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8933
8934 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8935 code.
8936
8937 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8938
8939 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8940
8941 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8942
8943 * gdbserver/linux-low.c: Remove unused include files.
8944
8945 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8946
8947 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8948 (read_inferior_memory): Use it.
8949 (write_inferior_memory): Likewise.
8950
8951 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8952
8953 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8954 grubbing through sys_errlist.
8955
8956 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8957
8958 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8959
8960 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8961 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8962
8963 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8964
8965 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8966 (do_sfunc, set_cmd_sfunc): New functions.
8967
8968 * command.h (struct cmd_list_element): Add field func.
8969 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8970 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8971 * cli/cli-decode.h: Ditto.
8972
8973 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8974 (help_all, help_cmd_list): Ditto.
8975 (find_cmd, complete_on_cmdlist): Ditto.
8976 * top.c (execute_command): Ditto.
8977
8978 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8979 function.sfunc.
8980
8981 * infcmd.c (notice_args_read): Fix function signature.
8982
8983 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8984 * cli/cli-decode.c (add_set_cmd): Ditto.
8985 * utils.c (initialize_utils): Ditto.
8986 * maint.c (_initialize_maint_cmds): Ditto.
8987 * infrun.c (_initialize_infrun): Ditto.
8988 * demangle.c (_initialize_demangler): Ditto.
8989 * remote.c (add_packet_config_cmd): Ditto.
8990 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8991 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8992 * proc-api.c (_initialize_proc_api): Ditto.
8993 * kod.c (_initialize_kod): Ditto.
8994 * valprint.c (_initialize_valprint): Ditto.
8995 * top.c (init_main): Ditto.
8996 * infcmd.c (_initialize_infcmd): Ditto.
8997 * corefile.c (_initialize_core): Ditto.
8998 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8999 * arch-utils.c (initialize_current_architecture): Ditto.
9000 (_initialize_gdbarch_utils): Ditto.
9001 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9002
9003 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9004 * wince.c (_initialize_inftarg): Ditto.
9005 * symfile.c (_initialize_symfile): Ditto.
9006 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9007 * language.c (_initialize_language): Ditto.
9008 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9009
9010 2002-02-04 Michael Snyder <msnyder@redhat.com>
9011
9012 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9013
9014 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9015
9016 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9017 Add rules for building the register data files.
9018
9019 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9020
9021 * regformats/regdat.sh: Add braces to the definition of
9022 expedite_regs_${arch}.
9023
9024 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9025
9026 * regformats/regdef.h (struct reg): Add comment describing the
9027 requirements for offset and size fields.
9028
9029 2002-02-04 Andreas Schwab <schwab@suse.de>
9030
9031 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9032 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9033
9034 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9035
9036 * gdbarch.sh (copyright): Update years in generated header.
9037 (SMASH_TEXT_ADDRESS): Add rule.
9038 * gdbarch.h, gdbarch.c: Re-generate.
9039 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9040 * dbxread.c: Likewise.
9041 * dwarfread.c: Likewise.
9042 * elfread.c: Likewise.
9043 * somread.c: Likewise.
9044
9045 * arm-tdep.c (arm_smash_text_address): New function.
9046 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9047
9048 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9049
9050 Add support for hardware watchpoints on win32 native.
9051 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9052 CONTEXT_DEBUG_REGISTERS.
9053 (dr variable): New variable. Static array containing a local copy
9054 of debug registers.
9055 (debug_registers_changed): New variable. Reflects when debug registers
9056 are changed and need to be written to inferior.
9057 (debug_registers_used): New variable. Reflects when any debug register
9058 was set, used when new threads are created.
9059 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9060 i386-nat code.
9061 (thread_rec): Set dr array if id is the thread of current_event .
9062 (child_continue, child_resume): Change the debug registers for all
9063 threads if debug_registers_changed.
9064 (child_add_thread): Change the debug registers if debug_registers_used.
9065 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9066 Link nm.h to new nm-cygwin.h file.
9067 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9068 of hardware registers.
9069
9070 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9071
9072 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9073 Restore behavour broken by 2002-01-20 Andrew Cagney
9074 <ac131313@redhat.com> IEEE_FLOAT removal.
9075
9076 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9077
9078 * c-valprint.c (c_val_print): Pass a proper valaddr to
9079 cp_print_class_method.
9080 * valops.c (search_struct_method): If there is only one method
9081 and args is NULL, return that method.
9082
9083 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9084
9085 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9086 accessing tag_name directly.
9087
9088 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9089
9090 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9091 of accessing tag_name directly.
9092
9093 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9094
9095 PR gdb/280
9096 * gdbtypes.c (replace_type): New function.
9097 * gdbtypes.h (replace_type): Add prototype.
9098 * stabsread.c (read_type): Use replace_type.
9099
9100 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9101
9102 * Makefile.in (memattr.o): Add missing dependencies rule.
9103
9104 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9105
9106 * breakpoint.c (break_at_finish_command): Really export.
9107 (break_at_finish_at_depth_command): Ditto.
9108 (tbreak_at_finish_command): Ditto.
9109 * hppa-tdep.c: Include completer.h.
9110 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9111 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9112
9113 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9114
9115 * utils.c (do_write): New function.
9116 (error_stream): Rewrite combining the code from error_begin and
9117 verror.
9118 (verror): Rewrite using error_stream.
9119 (error_begin): Delete function.
9120
9121 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9122
9123 * utils.c (error_begin): Make static.
9124 * defs.h (error_begin): Delete declaration.
9125
9126 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9127 (decode_line_1): Use cplusplus_error instead of error_begin,
9128 cplusplus_hint and return_to_top_level.
9129 * coffread.c (coff_symfile_read): Use error instead of error_begin
9130 and return_to_top_level.
9131 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9132
9133 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9134
9135 * language.h (type_error, range_error): Make string parameter
9136 constant.
9137 * language.c (warning_pre_print): Delete extern declaration.
9138 * dwarfread.c (warning_pre_print): Ditto.
9139 * language.c (type_error, range_error): Rewrite to use verror and
9140 vwarning instead of warning_begin.
9141
9142 2002-02-01 Michael Snyder <msnyder@redhat.com>
9143
9144 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9145 (set_ignore_count): Move misplaced comment back where it belongs.
9146
9147 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9148
9149 * command.h (NO_FUNCTION): Delete macro.
9150 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9151 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9152 * tracepoint.c (_initialize_tracepoint): Ditto.
9153 * cli/cli-decode.c (add_set_cmd): Ditto.
9154 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9155
9156 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9159 Update ``this'' pointer when calling virtual functions.
9160
9161 2002-02-01 Michael Snyder <msnyder@redhat.com>
9162
9163 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9164 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9165
9166 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9167
9168 * regformats/reg-arm.dat: New file.
9169 * regformats/reg-i386.dat: New file.
9170 * regformats/reg-ia64.dat: New file.
9171 * regformats/reg-m68k.dat: New file.
9172 * regformats/reg-mips.dat: New file.
9173 * regformats/reg-ppc.dat: New file.
9174 * regformats/reg-sh.dat: New file.
9175 * regformats/regdef.h: New file.
9176 * regformats/regdat.sh: New file.
9177
9178 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9179
9180 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9181 (arm_frame_args_address, arm_frame_locals_address): New functions.
9182 (arm_frame_num_args): New function.
9183 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9184 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9185 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9186
9187 2002-01-31 Michael Snyder <msnyder@redhat.com>
9188
9189 * breakpoint.c (break_at_finish_command): Export.
9190 (break_at_finish_at_depth_command): Export.
9191 (tbreak_at_finish_command): Export.
9192 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9193 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9194 "tbreak" commands, which are HPPA specific.
9195
9196 * printcmd.c (disassemble_command): Remove an ancient
9197 artifact of an old merge.
9198
9199 * symfile.h (enum overlay_debugging_state):
9200 Define enum constant values for overlay mode.
9201 * symfile.c (overlay_debugging): Use enums instead of literals.
9202 (overlay_is_mapped, overlay_auto_command,
9203 overlay_manual_command): Ditto.
9204
9205 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9206 breakpoint_here_p, breakpoint_inserted_here_p,
9207 breakpoint_thread_match, bpstat_stop_status,
9208 describe_other_breakpoints, check_duplicates, clear_command):
9209 Coding standard fixes.
9210
9211 * target.c (target_xfer_memory): Add spaces, coding standard.
9212 (do_xfer_memory): Add missing line to trust-readonly
9213 code: check bfd SEC_READONLY flag for section.
9214
9215 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9216
9217 * PROBLEMS: Fix typo, 5.1->5.1.1.
9218
9219 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9220
9221 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9222 data symbols, since we search based on textlow and texthigh.
9223 (find_pc_sect_symtab): Likewise.
9224
9225 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9226
9227 * defs.h (vwarning): Declare.
9228 * utils.c (vwarning): New function.
9229 (warning): Call vwarning.
9230 (warning_begin): Delete function.
9231
9232 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9233 the warning message.
9234 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9235 warning_begin.
9236
9237 2002-01-30 Michael Snyder <msnyder@redhat.com>
9238
9239 * NEWS: Mention "set trust-readonly-sections" command.
9240 Mention generate-core-file command.
9241
9242 2002-01-15 Michael Snyder <msnyder@redhat.com>
9243
9244 * target.c: New command, "set trust-readonly-sections on".
9245 (do_xfer_memory): Honor the suggestion to trust readonly sections
9246 by reading them from the object file instead of from the target.
9247 (initialize_targets): Register command "set trust-readonly-sections".
9248
9249 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9250
9251 * parse.c (target_map_name_to_register): Simplify, search regs and
9252 pseudo-regs using a single loop.
9253
9254 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9255
9256 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9257
9258 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9259
9260 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9261 * config/i386/i386v42mp.mh: Add i387-nat.o .
9262 * i386v4-nat.c: Include i387-nat.h.
9263 (supply_fpregset): Use i387_supply_fsave.
9264 (fill_fpregset): Use i387_fill_fsave.
9265
9266 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9267
9268 * arm-tdep.c (arm_call_dummy_words): Define.
9269 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9270 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9271 (CALL_DUMMY_WORDS): Define.
9272 (arm_call_dummy_words): Declare.
9273 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9274 (arm_linux_call_dummy_words): Declare.
9275
9276 2002-01-30 Andreas Schwab <schwab@suse.de>
9277
9278 * m68klinux-nat.c: Fix last change to use regcache_collect
9279 instead of referencing registers[] directly.
9280
9281 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9282
9283 * parse.c (target_map_name_to_register): Delete code wrapped in
9284 #ifdef REGISTER_NAME_ALIAS_HOOK.
9285
9286 2002-01-28 Michael Snyder <msnyder@redhat.com>
9287
9288 * regcache.c (legacy_read_register_gen): Need to be able to
9289 read pseudo-register as well as real register.
9290 (legacy_write_register_gen): Ditto.
9291
9292 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9293
9294 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9295 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9296 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9297 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9298 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9299 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9300 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9301 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9302 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9303 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9304 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9305 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9306 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9307 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9308 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9309 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9310 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9311 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9312 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9313 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9314
9315 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9316
9317 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9318 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9319 (initialize_current_architecture): Update target_byte_order using
9320 information from BFD.
9321 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9322 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9323
9324 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9325
9326 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9327 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9328
9329 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9330 #ifdef INVALID_FLOAT.
9331 * infcmd.c (do_registers_info): Ditto.
9332 * values.c (unpack_double): Ditto. Add comment.
9333
9334 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9335 already commented out.
9336
9337 2002-01-26 Andreas Schwab <schwab@suse.de>
9338
9339 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9340 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9341 registers and add support for PTRACE_GETREGS.
9342
9343 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9344
9345 GDB 5.1.1 released from 5.1 branch.
9346 * NEWS: Add 5.1.1 news.
9347 * README: Sync with 5.1 branch.
9348
9349 2002-01-23 Fred Fish <fnf@redhat.com>
9350
9351 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9352 stabstring on initial malloc. Reallocing will copy it for us,
9353 if necessary.
9354
9355 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9356
9357 * Makefile.in (hpread_h): Delete.
9358 (HFILES_NO_SRCDIR): Remove hpread.h.
9359 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9360 (hpread.o): Update dependencies.
9361 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9362
9363 * hp-psymtab-read.c: Remove file.
9364 * hp-symtab-read.c: Remove file.
9365 * hpread.h: Remove file.
9366
9367 * hpread.c: Merge all contents of hp-psymtab-read.c,
9368 hp-symtab-read.c and hpread.h into this file, as it was prior to
9369 January 1999.
9370
9371 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9372 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9373 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9374 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9375
9376 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9377
9378 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9379 fill_gregset): Call gdbarch_tdep() just once, assign result to
9380 variable and use that, instead of calling the function several
9381 times.
9382
9383 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9384
9385 * configure.host: Accept sparcv9 as alias for sparc64.
9386 * configure.tgt: Likewise.
9387
9388 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9389
9390 * solib-aix5.c (build_so_list_from_mapfile)
9391 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9392 arguments is not reversed.
9393 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9394 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9395
9396 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9397
9398 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9399 modified version of obsolete sh_fetch_pseudo_register.
9400 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9401 (sh4_register_read): New function.
9402 (sh_pseudo_register_write): New function. Renamed and modified
9403 version of obsolete sh_store_pseudo_register.
9404 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9405 (sh4_register_write): New function.
9406 (sh_gdbarch_init): Remove setting of gdbarch function
9407 fetch_pseudo_register and store_pseudo_register. Remove setting of
9408 register_convert_to_raw, register_convert_to_virtual,
9409 register_convertible.
9410 (sh_sh4_register_convertible): Delete. No longer needed. All is
9411 taken care by architecture specific functions
9412 register_read/register_write.
9413 (sh_sh4_register_convert_to_virtual): Make static.
9414 (sh_sh4_register_convert_to_raw): Ditto.
9415
9416 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9417
9418 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9419 (floatformat_is_nan, floatformat_mantissa): Ditto.
9420
9421 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9422 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9423 builtin_type_ieee_double_little,
9424 builtin_type_ieee_double_littlebyte_bigword,
9425 builtin_type_m68881_ext, builtin_type_i960_ext,
9426 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9427 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9428 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9429 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9430
9431 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9432
9433 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9434 parameter. Set frameless flag if it exists and depended of
9435 whether the scanned function is frameless or not.
9436 (xstormy16_skip_prologue): If function is frameless, return
9437 result of xstormy16_scan_prologue().
9438 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9439 call.
9440
9441 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9442
9443 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9444 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9445 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9446 sh_sh4_register_byte, sh_sh4_register_raw_size,
9447 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9448 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9449 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9450 sh_store_pseudo_register, sh_do_pseudo_register): Call
9451 gdbarch_tdep() just once, assign result to variable and use that,
9452 instead of calling the function several times.
9453
9454 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9455
9456 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9457 macros instead of LAST_FPU_CTRL_REGNUM.
9458 (store_register): Likewise.
9459
9460 2002-01-21 Jim Blandy <jimb@redhat.com>
9461
9462 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9463 is up-to-date before running the program, not just when a program
9464 exits.
9465
9466 2002-01-21 Fred Fish <fnf@redhat.com>
9467
9468 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9469 when we have found all instructions we are looking for.
9470
9471 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9472
9473 * arm-tdep.c (arm_register_name): New function.
9474 (arm_registers_names): Make static.
9475 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9476 (arm_register_name): Declare.
9477 (REGISTER_NAME): Use it.
9478
9479 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9480 Kevin Buettner <kevinb@redhat.com>
9481
9482 Convert arm targets to new FRAME interface.
9483 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9484 (arm_frame_find_save_regs): Delete.
9485 (arm_frame_init_saved_regs): New.
9486 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9487 Allocate extra_info as required. Convert all uses of fsr.regs
9488 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9489 to use extra_info.
9490 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9491 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9492 (check_prologue_cache, save_prologue_cache): Likewise.
9493 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9494 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9495 (FRAME_FIND_SAVED_REGS): Delete.
9496 (arm_frame_find_saved_regs): Delete prototype.
9497 (arm_frame_init_saved_regs): New prototype.
9498 (FRAME_INIT_SAVED_REGS): Define.
9499
9500 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9501
9502 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9503
9504 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9505
9506 From Jeff Law <law@redhat.com>:
9507 * infttrace.c: Include <sys/pstat.h>.
9508 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9509 exec file if the ttrace equivalent fails.
9510
9511 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9512
9513 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9514 (closeLogFile): Ditto.
9515
9516 2002-01-20 Michael Chastain <mec@shout.net>
9517
9518 * top.c (print_gdb_version): Bump copyright year to 2002.
9519
9520 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9521
9522 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9523 Zannoni and Eli Zaretskii.
9524
9525 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9526
9527 * buildsym.c: Update copyright years.
9528 * c-typeprint.c: Likewise.
9529 * dwarf2read.c: Likewise.
9530 * f-typeprint.c: Likewise.
9531 * gdbtypes.c: Likewise.
9532 * gdbtypes.h: Likewise.
9533 * hp-symtab-read.c: Likewise.
9534 * hpread.c: Likewise.
9535 * mdebugread.c: Likewise.
9536 * p-typeprint.c: Likewise.
9537
9538 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9539
9540 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9541 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9542 byte-order selectable.
9543 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9544 * arch-utils.c: Ditto.
9545 (set_endian): Ditto.
9546 (set_endian_from_file): Ditto.
9547 * gdbserver/low-sim.c (create_inferior): Ditto.
9548 * gdbarch.sh: Ditto.
9549 * gdbarch.h: Re-generate.
9550 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9551 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9552 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9553 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9554 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9555 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9556 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9557 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9558 macro definition.
9559 * config/mips/tm-wince.h: Remove #undef of macro
9560 TARGET_BYTE_ORDER_SELECTABLE.
9561 * config/sh/tm-wince.h: Ditto.
9562
9563 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9564
9565 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9566 member function fields. Add accessor macro
9567 TYPE_FN_FIELD_ARTIFICIAL.
9568 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9569 * c-typeprint.c (c_type_print_base): Skip artificial member
9570 functions.
9571
9572 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9573
9574 * f-typeprint.c: Delete unused function f_type_print_args.
9575 * p-typeprint.c: Delete unused function pascal_type_print_args.
9576
9577 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9578
9579 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9580 comment. Add ``artificial'' to ``union field_location''.
9581
9582 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9583
9584 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9585 * mdebugread.c (parse_symbol): Likewise.
9586 * stabsread.c (define_symbol): Likewise.
9587 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9588 initializing TYPE_FIELD_BITPOS to n (obsolete).
9589 (hpread_doc_function_type): Likewise.
9590 * hpread.c (hpread_function_type): Likewise.
9591
9592 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9593
9594 * configure.in (host_makefile_frag): Only require a host makefile
9595 fragment when a native build.
9596 * configure: Re-generate.
9597
9598 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9599
9600 * doublest.h (floatformat_from_type): Declare.
9601 * doublest.c (floatformat_from_type): New function.
9602 (convert_typed_floating): Use.
9603
9604 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9605 call to function floatformat_from_type.
9606
9607 * gdbarch.sh (IEEE_FLOAT): Delete.
9608 * gdbarch.h, gdbarch.c: Re-generate.
9609 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9610 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9611 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9612 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9613 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9614 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9615 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9616 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9617 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9618 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9619 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9620 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9621
9622 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9623 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9624 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9625 * sh-tdep.c (sh_gdbarch_init): Ditto.
9626 * mips-tdep.c (mips_gdbarch_init): Ditto.
9627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9628 * cris-tdep.c (cris_gdbarch_init): Ditto.
9629
9630 2002-01-20 Jiri Smid <smid@suse.cz>
9631
9632 * configure.host, configure.tgt: Support x86-64.
9633 * NEWS: Note new target x86-64.
9634
9635 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9636 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9637 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9638 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9639 x86-64-linux-nat.o): Fix dependencies.
9640
9641 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9642
9643 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9644 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9645 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9646 * config/sparc/xm-sun4os4.h: Delete file.
9647 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9648
9649 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9650
9651 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9652 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9653 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9654 * config/i386/i386lynx.mh (XM_FILE): Delete.
9655 * config/rs6000/xm-rs6000ly.h: Delete file.
9656 * config/sparc/xm-sparclynx.h: Delete file.
9657 * config/m68k/xm-m68klynx.h: Delete file.
9658 * config/i386/xm-i386lynx.h: Delete file.
9659 * config/xm-lynx.h: Delete file.
9660 * config/djgpp/fnchange.lst: Update.
9661
9662 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9663
9664 * alpha-tdep.c (alpha_register_byte): New function.
9665 (alpha_register_raw_size): Ditto.
9666 (alpha_register_virtual_size): Ditto.
9667 (alpha_skip_prologue_internal): Renamed from
9668 alpha_skip_prologue.
9669 (alpha_skip_prologue): New version that calls
9670 alpha_skip_prologue_internal.
9671 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9672 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9673 second argument from alpha_skip_prologue.
9674 (REGISTER_BYTE): Use alpha_register_byte.
9675 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9676 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9677 (FRAMELESS_FUNCTION_INVOCATION): Use
9678 generic_frameless_function_invocation_not.
9679 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9680 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9681
9682 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9683
9684 * config/mips/xm-news-mips.h: Delete file.
9685 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9686
9687 * config/m88k/xm-m88k.h: Delete file.
9688 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9689 * config/m88k/xm-delta88v4.h: Ditto.
9690 * config/m88k/xm-delta88.h: Ditto.
9691
9692 * config/alpha/xm-fbsd.h: Delete file.
9693 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9694
9695 * config/sparc/xm-sparc.h: Delete file.
9696 * Makefile.in (xm-sun4os4.h): Delete dependency.
9697 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9698 * config/sparc/xm-sun4os4.h: Ditto.
9699 * config/sparc/xm-linux.h: Ditto.
9700
9701 * config/i386/xm-windows.h: Delete file.
9702
9703 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9704
9705 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9706 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9707
9708 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9709
9710 * alpha-tdep.c (alpha_call_dummy_words): New.
9711 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9712 (CALL_DUMMY_P): Define.
9713 (CALL_DUMMY_WORDS): Define.
9714 (SIZEOF_CALL_DUMMY_WORDS): Define.
9715
9716 2002-01-19 Per Bothner <per@bothner.com>
9717
9718 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9719 isn't NULL, which can happen with some gcj-3.x-produced code.
9720
9721 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9722
9723 * alpha-tdep.c (alpha_register_virtual_type): New function.
9724 (alpha_init_frame_pc_first): Ditto.
9725 (alpha_fix_call_dummy): Ditto.
9726 (alpha_store_struct_return): Ditto.
9727 (alpha_extract_struct_value_address): Ditto.
9728 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9729 alpha_register_virtual_type.
9730 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9731 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9732 alpha_extract_struct_value_address.
9733 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9734 (INIT_FRAME_PC): Use init_frame_pc_noop.
9735 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9736
9737 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9738
9739 * i386gnu-nat.c: Include "i386-tdep.h".
9740 (fetch_fpregs): Simplify code dealing with uninitialized floating
9741 point states such that it doesn't require FP7_REGNUM.
9742
9743 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9744
9745 * alpha-tdep.c (frame_extra_info): New.
9746 (alpha_find_saved_regs): Make static. Use
9747 frame->extra_info.
9748 (alpha_frame_init_saved_regs): New function.
9749 (alpha_frame_saved_pc): Use frame->extra_info.
9750 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9751 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9752 (init_extra_frame_info): Rename to...
9753 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9754 (alpha_print_extra_frame_info): New function.
9755 (alpha_frame_locals_address): Ditto.
9756 (alpha_frame_args_address): Ditto.
9757 (alpha_pop_frame): Use frame->extra_info.
9758 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9759 alpha_frame_args_address.
9760 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9761 (alpha_find_saved_regs): Remove prototype.
9762 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9763 (EXTRA_FRAME_INFO): Remove.
9764 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9765 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9766
9767 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9768
9769 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9770 (alpha_cannot_fetch_register): Ditto.
9771 (alpha_cannot_store_register): Ditto.
9772 (alpha_register_convertible): Ditto.
9773 (alpha_use_struct_convention): Ditto.
9774 * config/alpha/tm-alpha.h: Update copyright years.
9775 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9776 (INNER_THAN): Use core_addr_lessthan.
9777 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9778 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9779 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9780 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9781 (FRAME_CHAIN): Remove unnecessary cast.
9782
9783 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9784
9785 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9786 obsolete.
9787
9788 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9789
9790 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9791 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9792 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9793 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9794 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9795 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9796 * x86-64-linux-nat.c: Ditto.
9797
9798 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9799
9800 * alpha-tdep.c (alpha_register_name): New function.
9801 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9802 (REGISTER_NAME): Define.
9803
9804 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9805
9806 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9807
9808 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9809
9810 * alpha-tdep.c: Update copyright years.
9811 (alpha_next_pc): New function.
9812 (alpha_software_single_step): Ditto.
9813 * config/alpha/tm-alpha.h: Add prototype for
9814 alpha_software_single_step.
9815
9816 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9817
9818 * alphabsd-nat.c: Update copyright years.
9819 (fill_gregset): Use regcache_collect.
9820 (fill_fpregset): Likewise.
9821 (fetch_inferior_registers): Only fetch integer registers
9822 if requested to do so.
9823 (store_inferior_registers): Only store integer registers
9824 if requested to do so.
9825
9826 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9827
9828 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9829 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9830 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9831 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9832 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9833 * config/arm/linux.mh (XDEPFILES): Delete.
9834 * config/arm/nbsd.mh (XDEPFILES): Delete.
9835 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9836 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9837 * config/i386/i386m3.mh (XDEPFILES): Delete.
9838 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9839 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9840 * config/i386/fbsd.mh (XDEPFILES): Delete.
9841 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9842 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9843 * config/i386/i386v4.mh (XDEPFILES): Delete.
9844 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9845 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9846 * config/i386/i386aix.mh (XDEPFILES): Delete.
9847 * config/i386/go32.mh (XDEPFILES): Delete.
9848 * config/i386/cygwin.mh (XDEPFILES): Delete.
9849 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9850 * config/i386/i386mach.mh (XDEPFILES): Delete.
9851 * config/i386/i386v32.mh (XDEPFILES): Delete.
9852 * config/i386/linux.mh (XDEPFILES): Delete.
9853 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9854 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9855 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9856 * config/i386/i386sco.mh (XDEPFILES): Delete.
9857 * config/i386/i386v.mh (XDEPFILES): Delete.
9858 * config/i386/nbsd.mh (XDEPFILES): Delete.
9859 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9860 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9861 * config/i386/symmetry.mh (XDEPFILES): Delete.
9862 * config/i386/obsd.mh (XDEPFILES): Delete.
9863 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9864 * config/ia64/linux.mh (XDEPFILES): Delete.
9865 * config/ia64/aix.mh (XDEPFILES): Delete.
9866 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9867 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9868 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9869 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9870 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9871 * config/m68k/linux.mh (XDEPFILES): Delete.
9872 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9873 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9874 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9875 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9876 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9877 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9878 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9879 * config/m88k/delta88.mh (XDEPFILES): Delete.
9880 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9881 * config/m88k/m88k.mh (XDEPFILES): Delete.
9882 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9883 * config/mips/linux.mh (XDEPFILES): Delete.
9884 * config/mips/irix6.mh (XDEPFILES): Delete.
9885 * config/mips/irix5.mh (XDEPFILES): Delete.
9886 * config/mips/irix4.mh (XDEPFILES): Delete.
9887 * config/mips/irix3.mh (XDEPFILES): Delete.
9888 * config/mips/decstation.mh (XDEPFILES): Delete.
9889 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9890 (NATDEPFILES): Move core-aout.o to here.
9891 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9892 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9893 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9894 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9895 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9896 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9897 * config/pa/hpux11.mh (XDEPFILES): Delete.
9898 * config/powerpc/aix.mh (XDEPFILES): Delete.
9899 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9900 * config/powerpc/linux.mh (XDEPFILES): Delete.
9901 * config/romp/rtbsd.mh: Rename XDEPFILES.
9902 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9903 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9904 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9905 * config/s390/s390.mh (XDEPFILES): Delete.
9906 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9907 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9908 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9909 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9910 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9911 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9912 * config/sparc/linux.mh (XDEPFILES): Delete.
9913 * config/vax/vaxult.mh (XDEPFILES): Delete.
9914 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9915 * Makefile.in (DEPFILES): Remove XDEPFILES.
9916
9917 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9918
9919 * utils.c (internal_verror): Fix comments, default is yes not no.
9920 Update queries to match. Default to quit and dump core.
9921
9922 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9923
9924 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9925 copyright.
9926 * defs.h, event-top.c, gdbcmd.h: Ditto.
9927 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9928 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9929 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9930 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9931 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9932 * mi/mi-main.c:Ditto.
9933
9934 * stack.c, symfile.c: Update copyright.
9935
9936 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9937
9938 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9939 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9940 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9941 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9942
9943 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9944
9945 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9946 * gdbserver/low-lynx.c (myattach): Likewise.
9947 * gdbserver/low-nbsd.c (myattach): Likewise.
9948 * gdbserver/low-sim.c (myattach): Likewise.
9949 * gdbserver/low-sparc.c (myattach): Likewise.
9950 * gdbserver/low-sun3.c (myattach): Likewise.
9951
9952 * gdbserver/low-linux.c (myattach): New function.
9953
9954 * gdbserver/server.c (attach_inferior): New function.
9955 (main): Handle "--attach".
9956
9957 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9958
9959 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9960 maintainer.
9961
9962 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9963
9964 * c-typeprint.c (is_type_conversion_operator): Add additional
9965 check for non-conversion operators.
9966
9967 2002-01-15 Michael Snyder <msnyder@redhat.com>
9968
9969 * linux-proc.c: Add "info proc" command, a la procfs.c.
9970 (read_mapping): New function, abstract and re-use code.
9971 (linux_find_memory_regions): Use new func read_mapping.
9972 (linux_info_proc_cmd): New function, implement "info proc".
9973 (_initialize_linux_proc): Add new command "info proc".
9974
9975 2002-01-15 Michael Snyder <msnyder@redhat.com>
9976
9977 * symfile.c (generic_load): Use bfd_map_over_sections method
9978 instead of manipulating bfd structure members directly.
9979 (add_section_size_callback): New function, bfd sections callback
9980 used by generic_load.
9981 (load_sections_callback): New function, bfd sections callback
9982 used by generic_load.
9983
9984 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9985
9986 [Based on work by Jim Blandy]
9987 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9988 (builtin_type_vec128): Export.
9989 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9990 types.
9991 (builtin_type_vec128): New builtin type for 128 bit vector
9992 registers.
9993 (build_gdbtypes): Initialize builtin_type_v16qi and
9994 builtin_type_v8hi. Create the vec128 register builtin type
9995 structure.
9996 (build_builtin_type_vec128): New function.
9997 (_initialize_gdbtypes): Register builtin_type_v16qi and
9998 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9999 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10000 AltiVec register to new builtin type.
10001
10002 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10003
10004 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10005 to make_cv_type.
10006
10007 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10008
10009 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10010 CLEAN_UP_REGISTER_VALUE.
10011 * regcache.c (supply_register): Update only call.
10012
10013 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10014
10015 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10016 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10017 a29k-*-vxworks* targets as obsolete.
10018
10019 2002-01-14 Michael Snyder <msnyder@redhat.com>
10020
10021 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10022 until we can resolve portability issues.
10023 * gregset.h: Remove references to fpxregs.
10024 * gcore.c (gcore_command): Initialize note_sec to NULL.
10025
10026 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10027
10028 * signals.c (target_signal_to_name): Rewrite. Only use
10029 signals[].name when in bounds and non-NULL.
10030
10031 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10032
10033 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10034 * signals.c (target_signal_to_name): Verify that SIG is within the
10035 bounds of the signals array.
10036
10037 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10038
10039 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10040
10041 2002-01-13 Keith Seitz <keiths@redhat.com>
10042
10043 * stack.c (print_frame_info_base): Print the frame's pc
10044 only if when print_frame_info_listing_hook is not defined.
10045
10046 2002-01-13 Keith Seitz <keiths@redhat.com>
10047
10048 * varobj.c (varobj_set_value): Make sure that there were no
10049 errors evaluating the object before attempting to set its
10050 value.
10051 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10052 so this offset adjustment is no longer necessary.
10053 (create_child): Don't set the error flag if the child is
10054 a CPLUS_FAKE_CHILD.
10055 (value_of_child): If value_fetch_lazy fails, return NULL
10056 so that callers will be notified that an error occurred.
10057 (c_value_of_variable): Delay check of variable's validity
10058 until later. We actually want all structs and unions to have
10059 the value "{...}".
10060 Do not return "???" for variables which could not be evaluated.
10061 This error condition must be returned to the caller so that it
10062 can get the error condition from gdb.
10063 (cplus_name_of_child): Adjust index for vptr before figuring
10064 out the name of the child.
10065 (cplus_value_of_child): If a child's (real) parent is not valid,
10066 don't even bother trying to give a value for it. Just return
10067 an error. Change all instances in this function.
10068 (cplus_type_of_child): If our parent is one of the "fake"
10069 parents, we need to get at the type of the real parent, and
10070 derive the child's true type using this information.
10071
10072 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10073
10074 From 2002-01-09 John Marshall <johnm@falch.net>:
10075 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10076 sources.redhat.com, and tweak some related URLs which had
10077 suffered from linkrot.
10078
10079 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10080
10081 From Jeff law:
10082 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10083 structures passed in registers.
10084
10085 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10086
10087 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10088 white space which prevented compilation. Reported by DSK
10089 <dsk@student.unsw.edu.au>.
10090
10091 2002-01-11 Michael Snyder <msnyder@redhat.com>
10092
10093 * symfile.c (build_section_addr_info_from_section_tab):
10094 Use bfd access method instead of manipulating bfd directly.
10095 (syms_from_objfile): Ditto.
10096 (simple_overlay_update_1): Ditto.
10097 (simple_overlay_update): Ditto.
10098 (generic_load): Ditto.
10099 (overlay_unmapped_address): FIXME comment, bfd access methods.
10100 (sections_overlap): FIXME comment, bfd access methods.
10101 (pc_in_mapped_range): FIXME comment, bfd access methods.
10102 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10103 (section_is_mapped): FIXME comment, bfd access methods.
10104 (section_is_overlay): FIXME comment, bfd access methods.
10105
10106 * symfile.c (generic_load): Whitespace and long line cleanups.
10107 Remove duplicate variable, change several local variables to
10108 more appropriate data types.
10109 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10110
10111 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10112
10113 From Peter Schauer:
10114 * language.c (longest_local_hex_string_custom): Use phex_nz to
10115 convert NUM to a hex string.
10116
10117 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10118
10119 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10120 the function.
10121 Update Copyright year.
10122
10123 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10124
10125 * language.c (longest_raw_hex_string): Delete unused function.
10126
10127 2002-01-11 Petr Sorfa <petrs@caldera.com>
10128
10129 * MAINTAINERS (write-after-approval): Add myself.
10130 * dwarf2read.c (read_tag_string_type): Handling of
10131 DW_AT_byte_size.
10132 (read_tag_string_type): FORTRAN fix to prevent propagation of
10133 first string size.
10134 (set_cu_language): Handling of DW_LANG_Fortran95
10135
10136 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10137
10138 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10139 GETPID(inferior_ptid).
10140 (store_inferior_registers): Likewise.
10141
10142 2002-01-10 Jason Merrill <jason@redhat.com>
10143
10144 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10145 Fix DW_OP_minus.
10146
10147 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10148
10149 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10150 and bfd/elf32-sh-nbsd.c.
10151
10152 2002-01-10 Michael Snyder <msnyder@redhat.com>
10153
10154 * NEWS: Mention --pid and corefile/proc-id behavior change.
10155
10156 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10157 * gcore.c: Include cli/cli-decode.h instead of command.h.
10158
10159 * main.c (captured_main): Add new command line option "--pid".
10160 If the second command line argument (following the symbol-file)
10161 begins with a digit, try to attach to it before trying to open
10162 it as a corefile.
10163 (print_gdb_help): Document the "--pid" argument.
10164
10165 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10166
10167 * completer.c (command_completer): New function.
10168
10169 * completer.h <command_completer>: Add prototype.
10170
10171 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10172 completer for the "help" command.
10173
10174 2002-01-09 Jason Merrill <jason@redhat.com>
10175
10176 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10177
10178 2002-01-09 Michael Snyder <msnyder@redhat.com>
10179
10180 * i386-linux-nat.c (fill_fpxregset): Make global.
10181 (store_fpxregset): Ditto.
10182
10183 * gregset.h (gdb_fpxregset_t): Define.
10184 (supply_fpxregset): Prototype.
10185 (fill_fpxregset): Prototype.
10186
10187 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10188
10189 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10190
10191 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10192 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10193 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10194
10195 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10196
10197 * MAINTAINERS: Update target maintainer rules so that any
10198 Maintainer can approve a tested patch for a maintenance-only
10199 target.
10200
10201 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10202
10203 * MAINTAINERS (write-after-approval): Add myself.
10204
10205 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10206 IN_SIGTRAMP.
10207
10208 2002-01-08 Michael Snyder <msnyder@redhat.com>
10209
10210 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10211 real name of the executable, rather than the /proc name.
10212
10213 2002-01-03 Michael Snyder <msnyder@redhat.com>
10214
10215 Implement a "generate-core-file" command in gdb, save target state.
10216 * gcore.c: New file. Implement new command 'generate-core-file'.
10217 Save a corefile image of the current state of the inferior.
10218 * linux-proc.c: Add linux-specific code for saving corefiles.
10219 * target.h (struct target_ops): Add new target vectors for saving
10220 corefiles; to_find_memory_regions and to_make_corefile_notes.
10221 (target_find_memory_regions): New macro.
10222 (target_make_corefile_notes): New macro.
10223 * target.c (update_current_target): Inherit new target methods.
10224 (dummy_find_memory_regions): New place-holder method.
10225 (dummy_make_corefile_notes): New place-holder method.
10226 (init_dummy_target): Initialize new dummy target vectors.
10227 * exec.c (exec_set_find_memory_regions): New function.
10228 Allow the exec_ops vector for memory regions to be taken over.
10229 (exec_make_note_section): New function, target vector method.
10230 * defs.h (exec_set_find_memory_regions): Export prototype.
10231 * procfs.c (proc_find_memory_regions): New function, corefile method.
10232 (procfs_make_note_section): New function, corefile method.
10233 (init_procfs_ops): Set new target vector pointers.
10234 (find_memory_regions_callback): New function.
10235 (procfs_do_thread_registers): New function.
10236 (procfs_corefile_thread_callback): New function.
10237 * sol-thread.c (sol_find_memory_regions): New function.
10238 (sol_make_note_section): New function.
10239 (init_sol_thread_ops): Initialize new target vectors.
10240 * inftarg.c (inftarg_set_find_memory_regions): New function.
10241 Allow to_find_memory_regions vector to be taken over.
10242 (inftarg_set_make_corefile_notes): New function.
10243 Allow to_make_corefile_notes vector to be taken over.
10244 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10245 interface layer if not target_has_execution (may be a corefile).
10246 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10247 * config/sparc/sun4sol2.mh: Ditto.
10248 * config/alpha/alpha-linux.mh: Ditto.
10249 * config/arm/linux.mh: Ditto.
10250 * config/i386/x86-64linux.mh: Ditto.
10251 * config/ia64/linux.mh: Ditto.
10252 * config/m68k/linux.mh: Ditto.
10253 * config/mips/linux.mh: Ditto.
10254 * config/powerpc/linux.mh: Ditto.
10255 * config/sparc/linux.mh: Ditto.
10256
10257 2002-01-07 Michael Snyder <msnyder@redhat.com>
10258
10259 * arm-linux-nat.c: Remove references to regcache.c internal data
10260 (registers[] and register_valid[]).
10261
10262 2002-01-07 Michael Snyder <msnyder@redhat.com>
10263
10264 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10265 so that attaching to a pid will automatically read the process's
10266 symbol file and shlibs.
10267 * Makefile.in: Add rule for linux-proc.o.
10268 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10269 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10270 * config/arm/linux.mh: Ditto.
10271 * config/i386/linux.mh: Ditto.
10272 * config/i386/x86-64linux.mh: Ditto.
10273 * config/ia64/linux.mh: Ditto.
10274 * config/m68k/linux.mh: Ditto.
10275 * config/mips/linux.mh: Ditto.
10276 * config/powerpc/linux.mh: Ditto.
10277 * config/sparc/linux.mh: Ditto.
10278
10279 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10280
10281 * win32-nat.c: Add i386-tdep.h dependency.
10282
10283 2002-01-07 Michael Snyder <msnyder@redhat.com>
10284
10285 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10286 instead of bfd_get_arch_size. Don't bail out just because
10287 there's no exec_bfd.
10288
10289 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10290 * p-valprint.c (pascal_object_print_value): Ditto.
10291 * somread.c (som_symtab_read): Ditto.
10292 * symfile.c (simple_free_overlay_region_table): Ditto.
10293 * valops.c (value_assign): Ditto.
10294
10295 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10296 use tilde_expand and strerror for opening save-tracepoints file.
10297
10298 * thread-db.c (thread_db_new_objfile): Indendation fix.
10299
10300 * infptrace.c (GDB_MAX_ALLOCA): New define.
10301 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10302 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10303 can be overridden with whatever value is appropriate to the host).
10304 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10305 alloca to allocate potentially large buffer.
10306 * rs6000-nat.c (child_xfer_memory): Ditto.
10307 * symm-nat.c (child_xfer_memory): Ditto.
10308 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10309
10310 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10311
10312 From Nick Clifton <nickc@redhat.com>
10313 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10314
10315 2002-01-07 Michael Snyder <msnyder@redhat.com>
10316
10317 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10318 Don't use exec_bfd if it's NULL.
10319
10320 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10321
10322 * valops.c (value_arg_coerce): Fix formatting.
10323
10324 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10325
10326 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10327 * gnu-nat.c: Ditto.
10328
10329 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10330
10331 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10332 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10333 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10334 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10335 z8k-coff have not been multi-arched. Update z8k-coff build
10336 status.
10337
10338 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10339
10340 * MAINTAINERS: Mark a29k target as obsolete.
10341 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10342 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10343 comments.
10344 * NEWS: Note that a29k targets are obsolete.
10345 * a29k-tdep.c: Mark as obsolete.
10346 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10347 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10348 a29k-*-vxworks* targets as obsolete.
10349 * remote-adapt.c: Obsolete.
10350 * remote-eb.c: Obsolete.
10351 * remote-mm.c: Obsolete.
10352 * remote-udi.c: Obsolete.
10353 * config/a29k/a29k-udi.mt: Obsolete.
10354 * config/a29k/a29k.mt: Obsolete.
10355 * config/a29k/tm-a29k.h: Obsolete.
10356 * config/a29k/tm-vx29k.h: Obsolete.
10357 * config/a29k/vx29k.mt: Obsolete.
10358
10359 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10360
10361 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10362 with BFD_ENDIAN_BIG.
10363
10364 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10365
10366 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10367 * configure, config.in: Re-generate.
10368 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10369 * defs.h: Do not include <endian.h>.
10370
10371 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10372
10373 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10374 * config.in: Regenerate.
10375 * configure.in: Update copyright years.
10376 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10377 * configure: Regenerate.
10378 * i386bsd-nat.c: Update copyright years.
10379 (fill_gregset): Use regcache_collect.
10380 (fetch_inferior_registers): Only fetch integer registers
10381 if requested to do so. Add support for XMM registers
10382 using PT_GETXMMREGS.
10383 (store_inferior_registers): Only store integer registers
10384 if requested to do so. Add support for XMM registers
10385 using PT_SETXMMREGS.
10386 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10387 (store_inferior_registers): Remove.
10388 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10389 (fetch_elfcore_registers): New function.
10390 (i386nbsd_elfcore_fns): New.
10391 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10392 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10393 i386bsd-nat.o.
10394 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10395 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10396 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10397 * config/i386/tm-nbsd.h: Update copyright years.
10398 (HAVE_SSE_REGS): Define.
10399 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10400 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10401 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10402 (SIGCONTEXT_PC_OFFSET): Remove.
10403 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10404
10405 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10406
10407 * configure.tgt: Remove powerpc-*-macos* target.
10408 * config/m68k/xm-mpw.h: Delete file.
10409 * config/xm-mpw.h: Delete file.
10410 * ser-mac.c: Delete file.
10411 * mpw-make.sed: Delete file.
10412 * mpw-config.in: Delete file.
10413 * mac-xdep.c: Delete file.
10414 * mac-gdb.r: Delete file.
10415 * mac-defs.h: Delete file.
10416 * mac-nat.c: Delete file.
10417 * config/powerpc/macos.mh: Delete file.
10418 * config/powerpc/macos.mt: Delete file.
10419 * config/powerpc/nm-macos.h: Delete file.
10420 * config/powerpc/tm-macos.h: Delete file.
10421 * source.c (openp, open_source_file): Remove obsolete code.
10422 * top.c (gdb_readline): Ditto.
10423 * utils.c (query): Ditto.
10424 * event-top.c (display_gdb_prompt): Ditto.
10425 * Makefile.in (ser-mac.o): Delete obsolete target.
10426 * NEWS: Update.
10427
10428 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10429
10430 * defs.h (BIG_ENDIAN): Delete macro definition.
10431 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10432 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10433 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10434 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10435 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10436 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10437 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10438 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10439 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10440 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10441 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10442 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10443 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10444 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10445 * gdbarch.c: Re-generate.
10446
10447 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10448
10449 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10450 for core files.
10451
10452 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10453
10454 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10455
10456 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10457
10458 * value.h (value_ptr): Delete typedef.
10459
10460 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10461
10462 * i386nbsd-nat.c: Update copyright years.
10463 Include i386-tdep.h.
10464
10465 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10466
10467 * stabsread.c: Update copyright years.
10468
10469 From Debashis Mahata <debashis.mahata@wipro.com>:
10470 (read_struct_fields): Deal with Sun C compiler erroneous stab
10471 output for structs and unions.
10472 Fix PR gdb/269.
10473
10474 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10475
10476 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10477 prototype.
10478
10479 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10480
10481 * cp-abi.c: Fix whitespace.
10482 (baseclass_offset): New wrapper function.
10483 * cp-abi.h (baseclass_offset): Add prototype.
10484 (struct cp_abi_ops): Add baseclass_offset pointer.
10485
10486 * valops.c (vb_match): Move to...
10487 * gnu-v2-abi.c (vb_match): here.
10488 * valops.c (baseclass_offset): Move to...
10489 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10490
10491 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10492
10493 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10494 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10495 * hpacc-abi.c (init_hpacc_ops): Likewise.
10496
10497 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10498
10499 * valops.c (find_overload_match): Accept obj as a
10500 reference parameter. Update it before returning.
10501 * value.h (find_overload_match): Update prototype.
10502 * eval.c (evaluate_subexp_standard): Pass object to
10503 find_overload_match by reference.
10504
10505 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10506
10507 * valarith.c: Replace value_ptr with struct value pointer. Remove
10508 register attribute from value declarations.
10509 * valops.c: Ditto.
10510 * value.h: Ditto.
10511 * scm-lang.c (scm_lookup_name): Ditto.
10512
10513 2002-01-03 Michael Snyder <msnyder@redhat.com>
10514
10515 Abstract the functionality of iterating over mapped memory
10516 regions into a general purpose iterator function.
10517 * procfs.c (iterate_over_mappings): New function, general purpose
10518 iterator for memory sections.
10519 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10520 (solib_mappings_callback): New function, callback for above.
10521 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10522 (info_mappings_callback): New function, callback for above.
10523
10524 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10525
10526 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10527
10528 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10529 * i386-tdep.c: Include "elf-bfd.h".
10530 (process_note_abi_tag_sections): New function.
10531 (i386_gdbarch_init): Add code to recognize various OS/ABI
10532 combinations.
10533
10534 * maint.c (_initialize_maint_cmds): Add missing \ in
10535 string-literal.
10536
10537 For older changes see ChangeLog-2001
10538 \f
10539 Local Variables:
10540 mode: change-log
10541 left-margin: 8
10542 fill-column: 74
10543 version-control: never
10544 End:
This page took 0.25321 seconds and 4 git commands to generate.