2002-08-21 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2
3 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5 source file dependencies. Cleanup corresponding generator rules.
6
7 2002-08-25 Andrew Cagney <ac131313@redhat.com>
8
9 * regcache.h (register_offset_hack): Declare.
10 (regcache_cooked_read_using_offset_hack): Declare.
11 (regcache_cooked_write_using_offset_hack): Declare.
12
13 * regcache.c (register_offset_hack): New function.
14 (regcache_cooked_read_using_offset_hack): New function.
15 (regcache_cooked_write_using_offset_hack): New function.
16 (regcache_dump): Check that the registers, according to their
17 offset, are packed hard against each other.
18 (cooked_xfer_using_offset_hack): New function.
19
20 2002-08-25 Andrew Cagney <ac131313@redhat.com>
21
22 * regcache.c (struct regcache_descr): Add field register_type.
23 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
24 in as a parameter
25 (init_regcache_descr): Initialize register_type. Pass the descr
26 to init_legacy_regcache_descr. Use register_type instead of
27 REGISTER_VIRTUAL_TYPE.
28 (register_type): New function.
29 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
30 * regcache.h (register_type): Declare.
31
32 2002-08-25 Andrew Cagney <ac131313@redhat.com>
33
34 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
35 instead of deprecated_store_return_value. Fix fallout from
36 2002-08-23 Andrew Cagney <cagney@redhat.com>.
37
38 2002-08-25 Andrew Cagney <ac131313@redhat.com>
39
40 * regcache.c (max_register_size): New function.
41 (init_legacy_regcache_descr): Ensure that max_register_size is
42 large enough for REGISTER_VIRTUAL_SIZE.
43 * regcache.h (max_register_size): Declare.
44
45 2002-08-24 Andrew Cagney <ac131313@redhat.com>
46
47 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
48 store_return_value.
49 (e500_extract_return_value): Change type of valbuf pointer to
50 void.
51
52 2002-08-24 Mark Kettenis <kettenis@gnu.org>
53
54 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
55 workaround.
56
57 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
58 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
59 long long) to prevent compiler warning on 64-bit systems.
60
61 2002-08-23 Andrew Cagney <cagney@redhat.com>
62
63 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
64 (DEPRECATED_STORE_RETURN_VALUE): New method.
65 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
66 * gdbarch.h, gdbarch.c: Re-generate.
67
68 * values.c (set_return_value): Pass current_regcache to
69 STORE_RETURN_VALUE.
70 * arch-utils.h (legacy_store_return_value): Declare.
71 * arch-utils.c (legacy_store_return_value): New function.
72 (legacy_extract_return_value): Update parameters.
73
74 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
75 STORE_RETURN_VALUE.
76 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
77 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
78 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
79 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
80 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
81 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
82 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
83 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
84 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
85 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
86
87 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
88 * i386-tdep.c (i386_extract_return_value): Update.
89 * arch-utils.c (legacy_extract_return_value): Update.
90 * frv-tdep.c (frv_gdbarch_init): Update.
91 * cris-tdep.c (cris_gdbarch_init): Update.
92 * d10v-tdep.c (d10v_gdbarch_init): Update.
93 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
94 * m68k-tdep.c (m68k_gdbarch_init): Update.
95 * mcore-tdep.c (mcore_gdbarch_init): Update.
96 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
97 * s390-tdep.c (s390_gdbarch_init): Update.
98 * sparc-tdep.c (sparc_gdbarch_init): Update.
99 * sh-tdep.c (sh_gdbarch_init): Update.
100 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
101 * v850-tdep.c (v850_gdbarch_init): Update.
102 * avr-tdep.c (avr_gdbarch_init): Update.
103 * ia64-tdep.c (ia64_gdbarch_init): Update.
104 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
105 * vax-tdep.c (vax_gdbarch_init): Update.
106 * alpha-tdep.c (alpha_gdbarch_init): Update.
107 * arm-tdep.c (arm_gdbarch_init): Update.
108 * mips-tdep.c (mips_gdbarch_init): Update.
109 * i386-tdep.c (i386_gdbarch_init): Update.
110
111 2002-08-23 Andrew Cagney <ac131313@redhat.com>
112
113 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
114 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
115
116 2002-08-24 Mark Kettenis <kettenis@gnu.org>
117
118 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
119 problems.
120
121 2002-08-23 Joel Brobecker <brobecker@gnat.com>
122
123 * infrun.c (handle_inferior_event): Move a comment outside of a
124 function call, in order to avoid indent reformatting this part
125 of the code in an unreadable way.
126
127 2002-08-23 Grace Sainsbury <graces@redhat.com>
128
129 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
130 when breakpoints fail. Move general breakpoint error messages to
131 insert_breakpoints.
132 * breakpoint.c (insert_breakpoints): Change warnings when
133 breakpoints are nto inserted to specify the type. Remove call to
134 memory_error when hardware breakpoints can't be inserted. Remove
135 multiple calls to warning so all messages are sent to the user at
136 once.
137 (delete_breakpoints): Make insert error messsages more explicit.
138
139 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
140
141 * ChangeLog: Move gdbserver entries after GDB 5.2 to
142 gdbserver/ChangeLog.
143
144 2002-08-23 Mark Kettenis <kettenis@gnu.org>
145
146 * i386-tdep.c: Include "objfiles.h".
147 (i386_svr4_init_abi): Set in_solib_call_trampoline and
148 skip_trampoline_code.
149 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
150 (CPLUS_MARKER): Define to '.'.
151
152 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
153 member.
154 (linux_corefile_thread_callback): Increase args->num_notes.
155 (linux_make_note_section): Initialize thread_args.num_notes, and
156 use it to determine whether notes for any threads were created.
157
158 2002-08-23 Donn Terry <dterry@microsoft.com>
159
160 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
161 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
162 and PCUNKILL.
163 (write_with_trace): Conditionalize out the switch branch handling
164 PCSHOLD if the corresponding macro is not defined. Likewise for
165 PRSABORT and PRSTOP.
166 This change will be needed by the Interix port.
167
168 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
169
170 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
171 ev_offset fields.
172 (skip_prologue): Add support for BookE/e500 instructions.
173 (e500_extract_return_value): New function.
174 (frame_get_saved_regs): Add support for saving ev registers and
175 pseudo gpr's.
176 (e500_store_return_value): New function.
177 (rs6000_gdbarch_init): Move up default intializations of
178 deprecated_extract_return_value and store_return_value. Overwrite
179 init of store_return_value with e500 specific version.
180 Set extract_return_value for e500.
181
182 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
183
184 * blockframe.c (generic_call_dummy_register_unwind): Use
185 regcache_cooked_read to catch cases in which the variable is
186 stored in a pseudo register.
187
188 2002-08-22 Andrew Cagney <cagney@redhat.com>
189
190 * NEWS: Mention that the i960 has been made obsolete.
191 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
192 i960-tdep.c
193 (remote-nrom.o): Obsolete target.
194 (remote-nindy.o, i960-tdep.o): Ditto.
195 * remote-nrom.c: Make file obsolete.
196 * remote-nindy.c, remote-vx960.c: Ditto.
197 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
198 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
199 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
200 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
201 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
202 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
203 i960-*-vxworks* obsolete.
204 * MAINTAINERS: Note that the i960 is obsolete.
205
206 2002-08-21 Corinna Vinschen <vinschen@redhat.com
207
208 * aix-thread.c (aix_thread_detach): Disable thread debugging on
209 detach to allow reinitialization.
210
211 2002-08-22 Andrew Cagney <ac131313@redhat.com>
212
213 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
214 attempt).
215
216 2002-08-22 Jim Blandy <jimb@redhat.com>
217
218 * coffread.c (coff_symfile_read): Don't try to read the line
219 number table from disk if the image file doesn't have a symbol
220 table; we'll never actually look at the info anyway, and Windows
221 ships DLL's with bogus file offsets for the line number data.
222
223 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
224
225 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
226 an e500 executable.
227
228 2002-08-21 Michael Snyder <msnyder@redhat.com>
229
230 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
231 (MSYMBOL_SIZE): Replace macro with function.
232 (DEFAULT_MIPS_TYPE): Delete unused macro.
233 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
234 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
235
236 2002-08-21 Jim Blandy <jimb@redhat.com>
237
238 * valops.c (value_cast): Simplify and correct logic for doing a
239 static cast from a pointer to a base class to a pointer to a
240 derived class.
241
242 2002-08-21 Andrew Cagney <ac131313@redhat.com>
243
244 * infcmd.c (default_print_registers_info): Replace
245 do_registers_info.
246 (registers_info): Use gdbarch_print_registers_info instead of
247 DO_REGISTERS_INFO.
248 * inferior.h (default_print_registers_info): Replace
249 do_registers_info.
250 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
251 (DO_REGISTERS_INFO): Change to a predicate function.
252 * gdbarch.h, gdbarch.c: Regenerate.
253
254 2002-08-21 Keith Seitz <keiths@redhat.com>
255
256 * gdb-events.sh: Add target-changed event.
257 * gdb-events.c: Regenerated.
258 * gdb-events.c: Regenerated.
259 * valops.c (value_assign): Add target-changed event notification
260 to inlval_register, lval_memory, and lval_reg_frame_relative.
261
262 2002-08-21 Joel Brobecker <brobecker@gnat.com>
263
264 * NEWS: Add an entry regarding the improvement of the next/step
265 operation on Alpha Tru64 multi-processor machines.
266
267 2002-08-21 Andrew Cagney <ac131313@redhat.com>
268
269 * Makefile.in: Update dependencies for mi/ cli/ and tui/
270 directores.
271 * Makefile.in: Update all _h macro definitions.
272 * Makefile.in (install-gdbtk): Move to install section.
273 (rdi-share/libangsd.a): Move to end of file.
274
275 2002-08-19 Andrew Cagney <ac131313@redhat.com>
276
277 * frame.c (frame_register_unwind): When a register, set addrp to
278 the register's byte.
279
280 2002-08-20 Michael Snyder <msnyder@redhat.com>
281
282 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
283 used locally, so move them from the target machine header to here.
284 (mips_set_processor_type, mips_register_name, mips32_next_pc,
285 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
286 Make static.
287 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
288
289 2002-08-20 Andrew Cagney <cagney@redhat.com>
290
291 * NEWS: Mention that the Apollo line was made obsolete.
292 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
293 m68*-hp-hpux* obsolete.
294 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
295 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
296 * buildsym.c (make_blockvector): Make static.
297 * buildsym.h (make_blockvector): Make extern declaration obsolete.
298 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
299 (ALLDEPFILES): Remove dstread.c.
300 (dstread.o): Obsolete make rule.
301 * dstread.c: Makefile obsolete.
302 * dst.h: Ditto.
303 * config/m68k/hp300hpux.mt: Ditto.
304 * config/m68k/hp300hpux.mh: Ditto.
305 * config/m68k/hp300bsd.mt: Ditto.
306 * config/m68k/hp300bsd.mh: Ditto.
307 * config/m68k/apollo68b.mt: Ditto.
308 * config/m68k/apollo68v.mh: Ditto.
309 * config/m68k/apollo68b.mh: Ditto.
310
311 2002-08-20 Michael Snyder <msnyder@redhat.com>
312
313 * mips-tdep.c (mips_in_return_stub): Make static.
314 (mips_gdbarch_init): Set in_solib_return_trampoline.
315 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
316
317 2002-08-20 Michael Snyder <msnyder@redhat.com>
318
319 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
320 * gdbarch.c, gdbarch.h: Regenerate.
321 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
322 Add.
323 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
324
325 2002-08-20 Michael Snyder <msnyder@redhat.com>
326
327 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
328 (mips_gdbarch_init): Set skip_trampoline_code,
329 in_solib_call_trampoline.
330 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
331 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
332
333 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
334
335 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
336
337 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
338 vector type for ev registers.
339 (e500_pseudo_register_read): New function.
340 (e500_pseudo_register_write): New function.
341 (e500_dwarf2_reg_to_regnum): New function.
342 (PPC_UISA_NOFP_SPRS): New macro.
343 (PPC_EV_REGS): New macro.
344 (PPC_GPRS_PSEUDO_REGS): New macro.
345 (registers_e500): New register set for e500.
346 (variants): Add e500 variant.
347 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
348 before setting architectural dependent variations. Initialize ev
349 registers numbers. Add case for e500 architecture. Set the
350 number of pseudo registers.
351
352 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
353
354 * rs6000-tdep.c: Clean up comments.
355
356 2002-08-20 Andrew Cagney <cagney@redhat.com>
357
358 * h8300-tdep.c: Re-indent file.
359
360 2002-08-20 Jim Blandy <jimb@redhat.com>
361
362 * Makefile.in (LDFLAGS): Allow the configure script to establish a
363 default for this.
364
365 2002-08-20 Keith Seitz <keiths@redhat.com>
366
367 * breakpoints.c (watch_command_1): Use internal breakpoint
368 when setting a watchpoint_scope breakpoint.
369
370 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
371
372 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
373 (build_builtin_type_vec64i): Ditto.
374 (build_builtin_type_vec128): Ditto.
375 (build_builtin_type_vec128i): Ditto.
376
377 2002-08-19 Michael Snyder <msnyder@redhat.com>
378
379 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
380 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
381 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
382 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
383 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
384 CALL_DUMMY_ADDRESS): Delete.
385 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
386 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
387 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
388 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
389 push_return_address.
390 (mips_register_raw_size, mips_eabi_use_struct_convention,
391 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
392 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
393 mips_init_extra_frame_info, mips_eabi_push_arguments,
394 mips_n32n64_push_arguments, mips_push_return_address,
395 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
396 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
397
398 2002-08-19 Michael Snyder <msnyder@redhat.com>
399
400 * mips-tdep.c (mips_frame_num_args): New function.
401 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
402 frame_saved_pc, frame_args_address, frame_locals_address,
403 frame_num_args, and frame_args_skip.
404 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
405 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
406 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
407 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
408
409 2002-08-20 Michael Snyder <msnyder@redhat.com>
410
411 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
412 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
413 * mips-tdep.c (mips_store_struct_return): New function.
414 (mips_extract_struct_value_address): New function.
415 (mips_gdbarch_init): Set store_struct_return and
416 extract_struct_value_address.
417
418 2002-08-20 David Carlton <carlton@math.stanford.edu>
419
420 * dwarf2read.c (dwarf2_build_psymtabs): Check that
421 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
422 (read_file_scope): Check that line_header is nonzero before
423 decoding macro information.
424
425 2002-08-20 Mark Kettenis <kettenis@gnu.org>
426
427 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
428 flag the general-purpose registers as floating-point on targets
429 that don't support the floating-point registers.
430
431 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
432
433 * rs6000-tdep.c (altivec_register_p): Delete.
434 (rs6000_do_altivec_registers): Delete.
435 (rs6000_altivec_registers_info): Delete.
436 (rs6000_do_registers_info): Delete.
437 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
438 (rs6000_gdbarch_init): Remove setting of do_registers_info.
439
440 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
441
442 * infcmd.c (do_registers_info): Print vector registers in hex
443 format only.
444 (print_vector_info): Check that printing registers
445 makes sense.
446 (print_float_info): Ditto.
447
448 2002-08-20 Andrew Cagney <ac131313@redhat.com>
449
450 * mips-tdep.c (mips_gdbarch_init): Update.
451 (mips_o32_extract_return_value): Rewrite.
452 (mips_o32_store_return_value): Rewrite.
453 (mips_o32_xfer_return_value): New function.
454 (mips_xfer_register): Tweak debug print message. Allow for
455 buf_offset when dumping the value transfered.
456
457 2002-08-20 Andrew Cagney <ac131313@redhat.com>
458
459 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
460 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
461 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
462 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
463 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
464
465 2002-08-14 Michael Snyder <msnyder@redhat.com>
466
467 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
468
469 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
470
471 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
472 register.
473 (P): New macro to define a register as a pseudo register.
474 (R, R4, R8, R16, FR32, R64, R0): Updated.
475 (struct variant): Add new fields for number of pseudo registers
476 and number of total registers.
477 (tot_num_registers): New macro replacing....
478 (num_registers): ...deleted macro.
479 (num_registers): New function.
480 (num_pseudo_registers): New function.
481 (variants): Update all variants to intialize new fields correctly.
482 Postpone initialization of number of pseudo regs and real regs.
483 (init_variants): New function.
484 (rs6000_gdbarch_init): Initialize variants. Update calculation of
485 registers offsets.
486
487 2002-08-19 David Carlton <carlton@math.stanford.edu>
488
489 * valops.c (search_struct_field): Change error message to treat
490 return value of 0 from value_static_field as meaning that field is
491 optimized out.
492 (value_struct_elt_for_reference): Ditto.
493 * values.c (value_static_field): Treat an unresolved location the
494 same as a nonexistent symbol. Fix PR gdb/635.
495 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
496 enclosed. Fix PR gdb/574.
497 * MAINTAINERS: Add self to Write After Approval list.
498
499 2002-08-19 Andrew Cagney <ac131313@redhat.com>
500
501 * mips-tdep.c (mips_xfer_register): New function.
502 (mips_n32n64_extract_return_value): Rewrite.
503 (mips_gdbarch_init): For N32 and N64, set extract_return_value
504 instead of deprecated_extract_return_value.
505
506 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
507
508 * rs6000-tdep.c (TDEP): Delete macro.
509 (branch_dest): Replace use of TDEP macro with its body.
510 (rs6000_pop_frame): Ditto.
511 (rs6000_push_arguments): Ditto.
512 (rs6000_skip_trampoline_code): Ditto.
513 (rs6000_frame_saved_pc): Ditto.
514 (rs6000_frame_chain): Ditto.
515 (rs6000_register_name): Ditto.
516 (rs6000_register_byte): Ditto.
517 (rs6000_register_raw_size): Ditto.
518 (rs6000_register_virtual_type): Ditto.
519 (rs6000_register_convertible): Ditto.
520 (rs6000_convert_from_func_ptr_addr): Ditto.
521
522 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
523
524 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
525 conditionally.
526 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
527 MIPS_LINUX_JB_ELEMENT_SIZE.
528 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
529 for MAX_REGISTER_RAW_SIZE arrays.
530 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
531 MIPS_LINUX_JB_ELEMENT_SIZE.
532
533 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
534
535 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
536
537 2002-08-19 Aidan Skinner <aidan@velvet.net>
538
539 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
540 ada-valprint.c ada-tasks.c.
541 (YYFILES): Add ada-exp.y.
542 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
543 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
544 (ada-exp.tab.o): New target.
545
546 2002-08-18 Andrew Cagney <ac131313@redhat.com>
547
548 * regcache.c (regcache_xfer_part): New function.
549 (regcache_raw_read_part): New function.
550 (regcache_raw_write_part): New function.
551 (regcache_cooked_read_part): New function.
552 (regcache_cooked_write_part): New function.
553 * regcache.h (regcache_raw_read_part): Declare.
554 (regcache_raw_write_part): Declare.
555 (regcache_cooked_read_part): Declare.
556 (regcache_cooked_write_part): Declare.
557
558 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
559
560 * remote.c (remote_open_1): Add async_p.
561 (remote_async_open_1): Delete.
562 (open_remote_target): Delete.
563 (remote_open, extended_remote_open): Update calls to remote_open_1.
564 (remote_async_open, extended_remote_async_open): Call
565 remote_open_1 instead of remote_async_open_1.
566
567 2002-08-19 Mark Kettenis <kettenis@gnu.org>
568
569 * blockframe.c: Fix a few coding standard violations.
570
571 2002-08-19 Mark Kettenis <kettenis@gnu.org>
572
573 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
574 here from ...
575 * config/i386/tm-i386sco5.h: ... here. File removed.
576 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
577
578 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
579 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
580 (TM_FILE): Set to tm-i386.h.
581 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
582 * config/i386/tm-i386v.h: Remove file.
583 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
584 instead of "i386/tm-i386v.h".
585 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
586 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
587 "i386/tm-i386v.h".
588 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
589 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
590 "i386/tm-i386.h".
591
592 2002-08-18 Mark Kettenis <kettenis@gnu.org>
593
594 * config/i386/nm-i386v.h: Add protection against
595 multiple-inclusion.
596 (i386_register_u_addr): Remove prototype.
597 (register_u_addr): New prototype.
598 (REGISTER_U_ADDR): Redefine accordingly.
599 * i386v-nat.c: Improve several comments.
600 (i386_register_u_addr): Change signature and rename to
601 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
602 ubase variable.
603
604 2002-08-18 Andrew Cagney <ac131313@redhat.com>
605
606 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
607 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
608 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
609 deprecated_extract_return_value.
610 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
611 rename mips_o32o64_push_arguments.
612 (mips_gdbarch_init): Update.
613 (mips_extract_return_value): Delete.
614 (mips_o32_extract_return_value): Clone mips_extract_return_value.
615 (mips_o64_extract_return_value): Clone mips_extract_return_value.
616 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
617 (mips_n32n64_extract_return_value): Clone
618 mips_extract_return_value.
619 (mips_store_return_value): Delete.
620 (mips_o32_store_return_value): Clone mips_store_return_value.
621 (mips_o64_store_return_value): Clone mips_store_return_value.
622 (mips_eabi_store_return_value): Clone mips_store_return_value.
623 (mips_n32n64_store_return_value): Clone mips_store_return_value.
624
625 2002-08-18 Aidan Skinner <aidan@velvet.net>
626
627 * ada-lang.c: Use gdb_string.h instead of <string.h>.
628 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
629
630 2002-08-18 Aidan Skinner <aidan@velvet.net>
631
632 * ada-lang.c: Run through gdb_indent.sh.
633 * ada-lang.h: Run through gdb_indent.sh.
634 * ada-tasks.c: Run through gdb_indent.sh.
635 * ada-typeprint.c: Run through gdb_indent.sh.
636 * ada-valprint.c: Run through gdb_indent.sh.
637
638 2002-08-18 Andrew Cagney <ac131313@redhat.com>
639
640 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
641 ABI.
642
643 2002-08-18 Mark Kettenis <kettenis@gnu.org>
644
645 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
646
647 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
648 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
649
650 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
651 write_register_gen instead of write_register_bytes.
652
653 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
654 i[3456]-*-osf1mk* configurations have been made obsolete.
655 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
656 i[3456]86-*-osf1mk* hosts obsolete.
657 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
658 targets obsolete.
659 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
660 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
661 config/i386/i386m3.mt, config/i386/nm-m3.h,
662 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
663 config/i386/i386mk.mh, config/i386/i386mk.mt,
664 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
665 obsolete.
666 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
667 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
668 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
669
670 2002-08-18 Andrew Cagney <ac131313@redhat.com>
671
672 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
673 (hppa_value_returned_from_stack): Declare.
674 (hppa_extract_return_value): Declare.
675 * config/pa/hppa.mt: New file.
676 * configure.tgt: Recognize hppa*-*-*.
677 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
678
679 2002-08-18 Mark Kettenis <kettenis@gnu.org>
680
681 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
682 comment.
683
684 2002-08-17 Mark Kettenis <kettenis@gnu.org>
685
686 * top.c (gdb_rl_operate_and_get_next): Make sure
687 operate-and-get-next functions correctly even when the history
688 list is completely filled.
689
690 2002-08-18 Andrew Cagney <ac131313@redhat.com>
691
692 * MAINTAINERS (Target Instruction Set Architectures): Rename
693 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
694 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
695 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
696 already listed under Host/Native.
697
698 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
699 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
700 mips*-*-*.
701
702 2002-08-17 Andrew Cagney <ac131313@redhat.com>
703
704 * config/ia64/ia64.mt: New file.
705 * config/alpha/alpha.mt: New file.
706 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
707 ia64-linux-gnu. Mention that ia64-elf is broken.
708 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
709
710 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
711
712 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
713 generic_func_frame_valid instead of func_frame_valid.
714
715 2002-08-16 Joel Brobecker <brobecker@gnat.com>
716
717 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
718 procfs appears to be broken when debugging on multi-processor
719 machines. So enable software single stepping in order to avoid
720 using the procfs interface to do next/step operations, using
721 internal breakpoints instead.
722
723 * infrun.c (handle_inferior_event): Readjust the stop_pc by
724 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
725 make this pc address equal to the value it would have if the
726 system stepping capability was used. Also set a new flag used
727 to ensure that we don't readjust the PC one more time later.
728
729 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
730 address by DECR_PC_AFTER_BREAK when software single step is
731 in use for this architecture, as this has already been taken
732 care of in handle_inferior_event().
733
734 2002-08-16 Joel Brobecker <brobecker@gnat.com>
735
736 * infrun.c (handle_inferior_event): Minor reformatting, to make
737 a rather long condition expression easier to read.
738
739 2002-08-16 Andrew Cagney <ac131313@redhat.com>
740
741 * Makefile.in (gdbtk.o): Move to end of file.
742 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
743 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
744 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
745 (gdbtk-wrapper.o, gdbres.o): Ditto.
746
747 2002-08-16 Andrew Cagney <ac131313@redhat.com>
748
749 * Makefile.in (copying.o): Separate out compile rule.
750 (hpux-thread.o, procfs.o, signals.o): Ditto.
751 (v850ice.o, z8k-tdep.o): Ditto.
752 (tui-file.o): Move to TUI section.
753 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
754 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
755
756 2002-08-16 Joel Brobecker <brobecker@gnat.com>
757
758 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
759 skip_trampoline_code, for better namespace-proofing.
760
761 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
762
763 2002-08-16 Joel Brobecker <brobecker@gnat.com>
764
765 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
766
767 2002-08-16 Joel Brobecker <brobecker@gnat.com>
768
769 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
770 signal, check whether we hit a breakpoint before checking for a
771 single step breakpoint. Otherwise, GDB fails to notice that a
772 breakpoint has been hit when stepping onto a breakpoint.
773
774 2002-08-16 Keith Seitz <keiths@redhat.com>
775
776 * gdb-events.sh (clear_gdb_event_hooks): New function.
777 * gdb-events.c: Regenerate.
778 * gdb-events.h: Regenerate.
779
780 2002-08-16 Andrew Cagney <ac131313@redhat.com>
781
782 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
783 not_a_sw_breakpoint.
784 * breakpoint.h (bpstat_stop_status): Add parameter names.
785
786 2002-08-16 Grace Sainsbury <graces@redhat.com>
787
788 * remote.c (remote_insert_hw_breakpoint)
789 (remote_remove_hw_breakpoint): Fix calculation of length field
790 for Z-packet.
791
792 2002-08-15 Michael Snyder <msnyder@redhat.com>
793
794 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
795 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
796 (supply_fpregset): Ditto.
797
798 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
799 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
800 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
801 (TARGET_READ_SP): Delete.
802 (DO_REGISTERS_INFO): Delete.
803 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
804 Delete.
805 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
806 from macros to functions.
807
808 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
809 (mips_register_convertible, mips_register_convert_to_virtual,
810 mips_register_convert_to_raw): Make static.
811 (mips_read_sp): New function.
812 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
813 (mips_do_registers_info): Make static.
814 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
815 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
816 (mips_register_convert_from_type, mips_register_convert_to_type):
817 New functions.
818 (mips_gdbarch_init): Set up function_start_offset,
819 register_virtual_size, pc_in_sigtramp.
820
821 2002-08-15 Andrew Cagney <ac131313@redhat.com>
822
823 * infcmd.c (vector_info): New function.
824 (_initialize_infcmd): Add command "info vector".
825 (print_vector_info): New function.
826
827 * gdbarch.sh (PRINT_VECTOR_INFO): New method
828 * gdbarch.h, gdbarch.c: Regenerate.
829
830 2002-08-15 Andrew Cagney <ac131313@redhat.com>
831
832 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
833 ``print_all''. Only print vector registers when ``print_all''.
834
835 2002-08-15 Andrew Cagney <ac131313@redhat.com>
836
837 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
838 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
839
840 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
841 Add `args' parameter.
842 * gdbarch.h, gdbarch.c: Regenerate.
843
844 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
845
846 * infcmd.c (float_info): Call print_float_info.
847 (print_float_info): New function. By default, print the
848 floating-point registers.
849
850 * arch-utils.h (default_print_float_info): Delete declaration.
851 * arch-utils.c (default_print_float_info): Delete function.
852
853 2002-08-16 Mark Kettenis <kettenis@gnu.org>
854
855 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
856 out define.
857
858 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
859 FRAME.
860
861 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
862 * configure.host: Make i[3456]86-*-aix host obsolete.
863 * configure.tgt: Make i[3456]86-*-aix target obsolete.
864 * config/i386/i386aix.mh, config/i386/i386aix.mt,
865 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
866 config/i386/xm-i386aix.h: Make files obsolete.
867 * i386aix-nat.c: Make file obsolete.
868 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
869 (i386aix-nat.o): Make target obsolete.
870
871 * config/i386/nm-gnu.h: Removed.
872 * config/i386/nm-i386gnu.h: New file.
873 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
874 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
875 Moved here from ...
876 * config/i386/tm-i386gnu.h: ... here. Removed.
877 * config/i386/xm-i386gnu.h: Removed.
878 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
879 (NAT_FILE): Set to nm-i386gnu.h.
880 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
881 * i386-tdep.c: New file.
882 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
883 (i386gnu-tdep.o): Specify dependencies.
884
885 2002-08-15 Mark Kettenis <kettenis@gnu.org>
886
887 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
888 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
889 Adjust a few comments to reflect reality a bit closer.
890 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
891 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
892 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
893 target_insert_watchpoint, target_remove_watchpoint):
894 Move defines to ...
895 * config/i386/nm-i386sco5.h: ... here.
896 (kernel_u_size): Add prototype. Improve a few comments and add
897 protection against multiple inclusion.
898
899 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
900 out define.
901
902 * uw-thread.c (SP_ARG0): Define if not already defined.
903 * config/i386/tm-i386.h (SO_ARG0): Remove define.
904
905 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
906
907 * config/i386/tm-i386.h: Don't include "regcache.h".
908
909 * i387-tdep.h (i387_print_float_info): New prototype.
910 * i387-tdep.c (print_i387_value, print_i387_ext,
911 print_i387_status_word, print_i387_control_word): Add `struct
912 ui_file *' argument and use it for output.
913 (i387_print_float_info): Renamed from i387_float_info. Add
914 `struct gdbarch *' and `struct ui_file *' arguments and use the
915 latter for output.
916 * i386-tdep.c: Include "i387-tdep.h".
917 (i386_gdbarch_init): Set print_float_info.
918 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
919 (FLOAT_INFO): Remove define.
920
921 2002-08-13 Michael Snyder <msnyder@redhat.com>
922
923 * mips-tdep.c (mips_push_arguments): Rename to
924 mips_eabi_push_arguments, and tune for EABI.
925 (MIPS_REGS_HAVE_HOME_P): Delete.
926 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
927 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
928 Delete references to mips_regs_have_home_p.
929
930 2002-08-14 Keith Seitz <keiths@redhat.com>
931
932 * Makefile.in (install-gdbtk): Create insight plugin directory.
933 Install plugins.tcl file.
934
935 2002-08-14 Keith Seitz <keiths@redhat.com>
936
937 * configure.in: Move SUBDIRS to near top of the file so that
938 --enable options may add things to it.
939 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
940 * configure: Regenerate.
941
942 2002-08-13 Michael Snyder <msnyder@redhat.com>
943
944 * mips-tdep.c (mips_o32o64_push_arguments): New function,
945 cloned from mips_push_arguments, tuned for o32/o64 ABI.
946 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
947
948 2002-08-13 Andrew Cagney <ac131313@redhat.com>
949
950 * vax-tdep.c (vax_get_saved_register): Delete function.
951 (vax_gdbarch_init): Update.
952 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
953 (ns32k_gdbarch_init): Update.
954 * alpha-tdep.c (alpha_get_saved_register): Delete function.
955 (alpha_gdbarch_init): Update.
956
957 2002-08-13 Andrew Cagney <cagney@redhat.com>
958
959 * regcache.c (init_regcache_descr): Overallocate the
960 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
961 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
962 nr_raw_registers.
963 (set_register_cached): Add range checking assertions. Use
964 current_regcache.
965
966 2002-08-13 Mark Kettenis <kettenis@gnu.org>
967
968 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
969 numbers for MMX registers.
970
971 2002-08-13 Andrew Cagney <cagney@redhat.com>
972
973 * i386-tdep.c (i386_gdbarch_init): Use
974 generic_unwind_get_saved_register.
975
976 2002-08-13 Kevin Buettner <kevinb@redhat.com>
977
978 * procfs.c (procfs_can_use_hw_breakpoint): New function.
979 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
980 target vector.
981 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
982 Delete. Add comment regarding this now-deleted target method.
983
984 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
985
986 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
987 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
988 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
989 real PC and the page number (if it's within the memory bank window).
990 (m68hc11_pseudo_register_write): Likewise when saving.
991 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
992 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
993 (m68hc11_register_raw_size): And use 32-bit for it.
994 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
995 16K memory bank is used by the prog; also use the virtual pc.
996
997 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
998
999 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1000 (m68hc11_gdbarch_init): Install it in gdbarch.
1001 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1002 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1003 (MSYMBOL_SIZE): New for documentation.
1004 (insn_return_kind): Enum to specify how a function returns.
1005 (frame_extra_info): Cleanup and record the return mode.
1006 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1007 register in address computation.
1008 (m68hc11_get_return_insn): New to obtain the return instruction used
1009 by the function.
1010 (m68hc11_frame_init_saved_regs): Take into account the return
1011 instruction used by the function for far and interrupt functions.
1012 (m68hc11_init_extra_frame_info): Take into account page register.
1013 (m68hc11_frame_args_address): Adjust according to the return mode.
1014 (show_regs): Print page register only when it's used.
1015
1016 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1017
1018 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1019 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1020 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1021 registers.
1022 (m68hc11_register_raw_size): Likewise.
1023
1024 2002-08-13 Andrew Cagney <cagney@redhat.com>
1025
1026 * i386-tdep.c (i386_register_name): Handle mmx registers.
1027 (mmx_regnum_p): New function.
1028 (i386_mmx_names): New array.
1029 (mmx_num_regs): New variable.
1030 (i386_pseudo_register_read): New function.
1031 (i386_pseudo_register_write): New function.
1032 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1033
1034 * regcache.c (regcache_raw_read_unsigned): New function.
1035 (regcache_raw_read_signed): New function.
1036 * regcache.h (regcache_raw_read_unsigned): Declare.
1037 (regcache_raw_read_signed): Declare.
1038
1039 2002-08-13 Andrew Cagney <cagney@redhat.com>
1040
1041 * regcache.c (regcache_raw_read_as_address): Delete function.
1042 (regcache_cooked_read_signed): New function.
1043 (regcache_cooked_read_unsigned): New function.
1044 * regcache.h (regcache_cooked_read_signed): Declare.
1045 (regcache_cooked_read_unsigned): Declare.
1046 (regcache_raw_read_as_address): Delete declaration.
1047
1048 * blockframe.c (generic_read_register_dummy): Use
1049 regcache_cooked_read_unsigned.
1050 * i386-tdep.c (i386_extract_struct_value_address): Use
1051 regcache_cooked_read_unsigned.
1052
1053 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1054
1055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1056 double sizes according to ELF ABI flags.
1057 (gdbarch_tdep): Record elf_flags.
1058
1059 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1060
1061 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1062 (m6812_prolog): They can appear in 68HC12 function prologue.
1063 (m68hc11_frame_chain): Cleanup.
1064
1065 2002-08-12 Andrew Cagney <cagney@redhat.com>
1066
1067 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1068 declarations.
1069 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1070 (i386_linux_register_raw_size): Delete function.
1071 (i386_linux_init_abi): Update.
1072 * i386-tdep.c (i386_register_raw_size): Delete function.
1073 (i386_register_byte): Delete function.
1074 (i386_gdbarch_init): Update.
1075 (i386_register_size): Delete array.
1076 (i386_register_offset): Delete array.
1077
1078 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1079 (REGISTER_RAW_SIZE): Delete macro.
1080 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1081 (REGISTER_BYTE): Delete macro.
1082
1083 2002-08-11 Aidan Skinner <aidan@velvet.net>
1084
1085 * ada-lang.c (ada_lookup_partial_symbol)
1086 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1087 prototype names so that grep ^func works properly.
1088
1089 * ada-lang.c (ada_array_element_type)
1090 (ada_lookup_partial_symbol): Fix typos in parameter list.
1091
1092 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1093 Fix prototype names so that grep ^func works properly.
1094
1095 2002-08-10 Andrew Cagney <cagney@redhat.com>
1096 Elena Zannoni <ezannoni@redhat.com>
1097 Martin M. Hunt <hunt@redhat.com>
1098
1099 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1100 (build_builtin_type_vec128i): Set the vector bit.
1101 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1102 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1103 (build_builtin_type_vec64): New function.
1104 (build_builtin_type_vec64i): New function.
1105 (build_gdbtypes): Initialize builtin_type_vec64 and
1106 builtin_type_vec64i.
1107
1108 2002-08-09 Andrew Cagney <cagney@redhat.com>
1109
1110 * regcache.c (regcache_dump): Compare the register offset
1111 with REGISTER_BYTE.
1112 * arch-utils.c (generic_register_byte): New function.
1113 * arch-utils.h (generic_register_byte): Declare.
1114 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1115 * gdbarch.h, gdbarch.c: Regenerate.
1116
1117 2002-08-09 Andrew Cagney <cagney@redhat.com>
1118
1119 * regcache.c: Include "gdbcmd.h"
1120 (_initialize_regcache): Add commands "maintenance print
1121 registers", "maintenance print raw-registers" and "maintenance
1122 print cooked-registers".
1123 (enum regcache_dump_what): Define.
1124 (dump_endian_bytes): New function.
1125 (regcache_dump): New function.
1126 (regcache_print): New function.
1127 (maintenance_print_registers): New function.
1128 (maintenance_print_raw_registers): New function.
1129 (maintenance_print_cooked_registers): New function.
1130 * Makefile.in (regcache.o): Update dependencies.
1131
1132 2002-08-09 Michael Snyder <msnyder@redhat.com>
1133
1134 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1135 (mips_push_arguments): Correct some comments. Use paddr_nz
1136 for printing addresses in debug output. Replace static
1137 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1138 (mips_n32n64_push_arguments): New function, cloned from
1139 mips_push_arguments and tuned for the n32/n64 ABI.
1140 (mips_push_register): Buffer needs dynamic allocation.
1141 (mips_print_register): Ditto.
1142 (do_gp_register_row): Ditto.
1143 (mips_store_return_value): Ditto.
1144 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1145
1146 2002-08-09 Don Howard <dhoward@redhat.com>
1147
1148 * memattr.c (mem_info_command): Print special case of upper bound
1149 as max CORE_ADDR + 1.
1150
1151 2002-08-08 Michael Snyder <msnyder@redhat.com>
1152
1153 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1154 returns structs by ref if they're too big to fit in two registers.
1155
1156 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1157
1158 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1159 saved regs value.
1160 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1161 mips_find_saved_regs().
1162 (mips_pop_frame): Likewise.
1163
1164 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1165
1166 * blockframe.c (frame_saved_regs_register_unwind): Revise
1167 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1168 frames are in use.
1169
1170 2002-08-09 Grace Sainsbury <graces@redhat.com>
1171
1172 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1173 T-packets; the 'a' is not taken as a register number.
1174 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1175 (remote_stopped_data_address): New functions; add to target
1176 vector.
1177 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1178 prototypes to match other implementations of this
1179 function. replace integer argument with pointer -- the length
1180 field in the Z-packet is the length of what is pointed to or 1 if
1181 pointer is null. Add to target vector.
1182 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1183 target vector.
1184
1185 From Mark Salter:
1186 * remote.c (remote_wait): Add support to extract optional
1187 watchpoint information from T-packet. Ignore unrecognized
1188 optional info in T-packet.
1189 (remote_async_wait): Ditto.
1190
1191 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1192
1193 * cli/cli-dump.c: Change fopen modes to use binary open modes
1194 as defined in include/fopen-bin.h throughout.
1195
1196 2002-08-08 Michael Snyder <msnyder@redhat.com>
1197
1198 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1199
1200 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1201
1202 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1203 assertion failure by returning early after a warning.
1204
1205 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1206
1207 * mips-tdep.c (mips_find_saved_regs): Make static.
1208 (mips_frame_init_saved_regs): New function.
1209 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1210 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1211 (mips_find_saved_regs): Delete declaration.
1212
1213 2002-08-08 Grace Sainsbury <graces@redhat.com>
1214
1215 * remote.c (remote_wait, remote_async_wait): Change
1216 thread_num from int to ULONGEST.
1217 (unpack_varlen_hex): Change result parameter from
1218 int * to ULONGEST *.
1219
1220 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1221
1222 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1223 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1224 powerpc*-*-*.
1225 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1226
1227 2002-08-08 Andrew Cagney <cagney@redhat.com>
1228
1229 * gcore.c (override_derive_stack_segment): Delete variable.
1230 (preempt_derive_stack_segment): Delete function.
1231 (derive_stack_segment): Delete function.
1232 (default_derive_stack_segment): Renamed to derive_stack_segment.
1233 (override_derive_heap_segment): Delete variable.
1234 (preempt_derive_heap_segment): Delete function.
1235 (derive_heap_segment): Delete function.
1236 (default_derive_heap_segment): Rename to derive_heap_segment.
1237
1238 2002-08-06 Michael Snyder <msnyder@redhat.com>
1239
1240 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1241 * mips-tdep.c (mips_EABI_use_struct_convention,
1242 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1243 New functions. (mips_use_struct_convention): Delete.
1244 (mips_gdbarch_init): set use_gdbarch_convention.
1245
1246 2002-08-06 Michael Snyder <msnyder@redhat.com>
1247
1248 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1249 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1250 mips_o32_reg_struct_has_addr): New functions.
1251 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1252
1253 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1254
1255 * regcache.c (pseudo_register): Delete function.
1256 (fetch_register): Delete function.
1257 (store_register): Delete function.
1258 (regcache_raw_read, legacy_read_register_gen): Use
1259 target_fetch_registers instead of fetch_register.
1260 (legacy_write_register_gen, regcache_raw_write): Use
1261 target_store_register instead of store_register.
1262 (write_register_bytes): Ditto.
1263
1264 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1265 (STORE_PSEUDO_REGISTER): Delete.
1266 * gdbarch.h, gdbarch.c: Regenerate.
1267
1268 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1269
1270 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1271 write dump file binary.
1272
1273 2002-08-05 Michael Snyder <msnyder@redhat.com>
1274
1275 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1276 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1277 (mips_gdbarch_init): Set N32 target to be mips64.
1278
1279 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1280
1281 * frame.c (find_saved_register): Break out of loop once saved
1282 register address is found. Don't mention sparc in loop comment
1283 anymore.
1284
1285 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1286
1287 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1288 mips_default_saved_regsize to 8.
1289
1290 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1291
1292 * gcore.c: Do not include <sys/procfs.h>.
1293 * Makefile.in (gcore.o): Update dependencies.
1294
1295 2002-08-06 Andrew Cagney <cagney@redhat.com>
1296
1297 * configure.tgt: Make arc-*-* obsolete.
1298 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1299 * MAINTAINERS: Make arc-elf obsolete.
1300 * arc-tdep.c: Make file obsolete.
1301 * config/arc/arc.mt: Ditto.
1302 * config/arc/tm-arc.h: Ditto.
1303
1304 2002-08-05 Theodore A. Roth <troth@verinet.com>
1305
1306 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1307
1308 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1309
1310 * mcore-tdep.c (mcore_gdbarch_init): Use
1311 generic_unwind_get_saved_register instead of
1312 generic_get_saved_register.
1313 * v850-tdep.c (v850_gdbarch_init): Ditto.
1314 * frv-tdep.c (frv_gdbarch_init): Ditto.
1315 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1316 * s390-tdep.c (s390_gdbarch_init): Ditto.
1317 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1318 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1319 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1320
1321 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1322
1323 * objfiles.h: Add missing #include "symfile.h"
1324
1325 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1326
1327 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1328
1329 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1330 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1331 of FIELD_BITSIZE.
1332
1333 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1334
1335 * NEWS: Cleanup and nitpick.
1336
1337 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1338
1339 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1340
1341 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1342
1343 * Makefile.in (gdbtk-bp.o): Update dependencies.
1344 (gdbtk-register.o): Ditto.
1345 (gdbtk-varobj.o): Ditto.
1346
1347 2002-08-03 Andrew Cagney <cagney@redhat.com>
1348
1349 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1350 m68hc11_fetch_pseudo_register.
1351 (m68hc11_pseudo_register_write): Replace
1352 m68hc11_store_pseudo_register.
1353 (m68hc11_gdbarch_init): Update.
1354
1355 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1356
1357 * gdbarch.sh: Include "gdb_string.h".
1358 * gdbarch.c: Regenerate.
1359
1360 * regcache.c: Include "gdb_string.h".
1361 * ax-general.c: Ditto.
1362 * varobj.c: Ditto.
1363 * std-regs.c: Ditto.
1364 * fbsd-proc.c: Ditto.
1365 * thread.c: Ditto.
1366
1367 * Makefile.in (regcache.o): Update dependencies.
1368 (thread.o, gdbarch.o): Ditto.
1369 (ax-general.o, gdbarch.o): Ditto.
1370 (varobj.o, std-regs.o): Ditto.
1371 (fbsd-proc.o): Specify dependencies.
1372
1373 2002-08-02 Andrew Cagney <cagney@redhat.com>
1374
1375 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1376 regnum.
1377 (regcache_cooked_write): Ditto.
1378
1379 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1380
1381 * regcache.c (regcache_cooked_read): New function.
1382 (regcache_cooked_write): New function.
1383 (read_register_gen): Rewrite using regcache_cooked_read.
1384 (write_register_gen): Rewrite using regcache_cooked_write.
1385
1386 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1387 Declare.
1388
1389 2002-08-02 Andrew Cagney <cagney@redhat.com>
1390
1391 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1392 Replace the architecture methods register_read and register_write.
1393 * gdbarch.h, gdbarch.c: Regenerate.
1394 * regcache.c (init_regcache_descr): Update.
1395 (read_register_gen): Update.
1396 (write_register_gen): Update.
1397 (supply_register): Update comment.
1398
1399 * sh-tdep.c (sh_gdbarch_init): Update.
1400 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1401 `regcache' and `gdbarch' parameters. Make `buffer' a void
1402 pointer. Update code.
1403 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1404 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1405 void pointer. Update code.
1406 (sh64_register_write): Delete.
1407 (sh4_register_read): Delete.
1408 (sh64_register_read): Delete.
1409 (sh4_register_write): Delete.
1410 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1411 void pointer, `to' parameter a void pointer.
1412 (sh_sh64_register_convert_to_raw): Ditto.
1413
1414 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1415
1416 * mips-tdep.c (mips_register_virtual_type): Use architecture
1417 invariant return values.
1418
1419 2002-08-01 Andrew Cagney <cagney@redhat.com>
1420
1421 * linux-proc.c: Include "gdb_string.h".
1422 * Makefile.in (linux-proc.o): Update dependency list.
1423
1424 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1425
1426 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1427 comment.
1428
1429 2002-08-01 Grace Sainsbury <graces@redhat.com>
1430
1431 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1432 to_insert_watchpoint, to_remove_watchpoint,
1433 to_stopped_by_watchpoint, to_stopped_data_address,
1434 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1435 target vecctor. Define their corresponding macros so they call
1436 them.
1437
1438 * target.c: Add default and debug versions of for
1439 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1440 to_insert_watchpoint, to_remove_watchpoint,
1441 to_stopped_by_watchpoint, to_stopped_data_address,
1442 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1443
1444 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1445
1446 * mips-tdep.c (mips_register_virtual_type): New function.
1447 (mips_gdbarch_init): Register mips_register_virtual_type()
1448 with gdbarch machinery.
1449 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1450 this file instead of tm-bigmips.h.
1451 (MIPS_REGSIZE): Delete this macro.
1452 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1453 multiarch version in mips-tdep.c will be found.
1454
1455 2002-08-01 Andrew Cagney <cagney@redhat.com>
1456
1457 * NEWS: Menion that CHILL has been made obsolete.
1458
1459 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1460 * stabsread.c (read_range_type): Ditto.
1461 * gdbtypes.h: Ditto.
1462 * language.c (binop_type_check): Ditto.
1463 (binop_result_type): Ditto.
1464 (integral_type): Ditto.
1465 (character_type): Ditto.
1466 (string_type): Ditto.
1467 (boolean_type): Ditto.
1468 (structured_type): Ditto.
1469 (lang_bool_type): Ditto.
1470 (binop_type_check): Ditto.
1471 * language.h (_LANG_chill): Ditto.
1472 * dwarfread.c (set_cu_language): Ditto.
1473 * dwarfread.c (CHILL_PRODUCER): Ditto.
1474 * dwarfread.c (handle_producer): Ditto.
1475 * expression.h (enum exp_opcode): Ditto.
1476 * eval.c: Ditto for comments.
1477 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1478 * expprint.c (print_subexp): Ditto.
1479 (print_subexp): Ditto.
1480 * valops.c (value_cast): Ditto.
1481 (search_struct_field): Ditto.
1482 * value.h (COERCE_VARYING_ARRAY): Ditto.
1483 * symfile.c (init_filename_language_table): Ditto.
1484 (add_psymbol_with_dem_name_to_list): Ditto.
1485 * valarith.c (value_binop): Ditto.
1486 (value_neg): Ditto.
1487 * valops.c (value_slice): Ditto.
1488 * symtab.h (union language_specific): Ditto.
1489 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1490 (SYMBOL_DEMANGLED_NAME): Ditto.
1491 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1492 * defs.h (enum language): Ditto.
1493 * symtab.c (got_symtab): Ditto.
1494 * utils.c (fprintf_symbol_filtered): Ditto.
1495
1496 * ch-typeprint.c: Make file obsolete.
1497 * ch-valprint.c: Make file obsolete.
1498 * ch-lang.h: Make file obsolete.
1499 * ch-exp.c: Make file obsolete.
1500 * ch-lang.c: Make file obsolete.
1501
1502 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1503 CHILL_LIB.
1504 (TARGET_FLAGS_TO_PASS): Ditto.
1505 (CHILLFLAGS): Obsolete.
1506 (CHILL): Obsolete.
1507 (CHILL_FOR_TARGET): Obsolete.
1508 (CHILL_LIB): Obsolete.
1509 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1510 ch-valprint.c.
1511 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1512 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1513 ch-lang.o.
1514 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1515 targets.
1516
1517 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1518
1519 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1520 This does not change anything at the moment, but will be helpful
1521 later when full Ada support is integrated.
1522
1523 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1524
1525 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1526 help message.
1527
1528 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1529
1530 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1531 and save it in a local variable. Use variable in later test.
1532
1533 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1534
1535 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1536 test. (Thanks to Daniel Jacobowitz.)
1537
1538 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1539
1540 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1541 (mips_abi_strings): Add "n64".
1542 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1543
1544 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1545
1546 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1547 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1548
1549 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1550
1551 * utils.c (host_pointer_to_address, address_to_host_pointer):
1552 Use gdb_assert() instead of explicit call to internal_error().
1553
1554 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1555
1556 * Makefile.in (rs6000-nat.o): Update dependencies.
1557
1558 From Nicholas Duffek:
1559 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1560 (aix-thread.o): New rule.
1561 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1562 * config/powerpc/aix432.mh: New file.
1563
1564 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1565
1566 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1567 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1568 (fetch_core_registers, ppc_linux_supply_gregset)
1569 (ppc_linux_supply_fpregset): New functions.
1570 (ppc_linux_regset_core_fns): New.
1571 (_initialize_ppc_linux_tdep): Call add_core_fns.
1572 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1573 and ppc_linux_supply_gregset.
1574 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1575 (supply_fpregset): Call ppc_linux_supply_fpregset.
1576 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1577 corelow.o.
1578 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1579
1580 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1581
1582 * symtab.c (lookup_symbol): Demangle before lowercasing.
1583
1584 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1585
1586 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1587 declaration.
1588 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1589 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1590 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1591 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1592 "gdb_string.h".
1593 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1594 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1595 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1596 (avr-tdep.o, mon960-rom.o): Ditto.
1597 (aout_stabs_gnu_h): Define.
1598 (symtab_h): Remove $(gdb_obstack_h).
1599
1600 2002-07-30 Jim Blandy <jimb@redhat.com>
1601
1602 Patch from David Carlton <carlton@math.stanford.edu>:
1603 * gdbinit.in: Move the `dir' commands that add GDB's own source
1604 directory to the search path to the end, so that the `gdb' source
1605 directory will be searched first.
1606
1607 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1608
1609 * gdb_obstack.h: New file.
1610 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1611 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1612 * objfiles.h: Include "gdb_obstack.h".
1613 * Makefile.in (gdb_obstack_h): Define.
1614 (symtab_h): Add $(gdb_obstack_h).
1615 (objfiles_h): Add $(gdb_obstack_h).
1616
1617 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1618 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1619 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1620 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1621 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1622 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1623 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1624 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1625
1626 * Makefile.in (bcache.o): Update dependencies.
1627 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1628 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1629 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1630 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1631 (stabsread.o, symfile.o, symmisc.o): Ditto.
1632 (symtab.o, typeprint.o, macroexp.o): Ditto.
1633 (macrotab.o, mdebugread.o): Ditto.
1634 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1635 (coff_ecoff_h, aout_aout64_h): Define.
1636 (aout_stabs_gnu_h, libaout_h): Define.
1637
1638 2002-07-29 Andrew Cagney <cagney@redhat.com>
1639
1640 * regcache.c (struct regcache_descr): Rename nr_registers to
1641 nr_cooked_registers. Revise comments describing the structure
1642 member fields.
1643 (init_regcache_descr): Update.
1644 (init_legacy_regcache_descr): Update.
1645 (read_register_gen, write_register_gen): When a cooked register in
1646 the raw register range, directly access the value from the raw
1647 register cache.
1648
1649 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1650
1651 * z8k-tdep.c: Do not include "obstack.h".
1652 * h8300-tdep.c, h8500-tdep.c: Ditto.
1653 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1654 * valprint.c, v850-tdep.c: Ditto.
1655 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1656 * mn10200-tdep.c: Ditto.
1657
1658 * Makefile.in (z8k-tdep.o): Update dependencies.
1659 (m68hc11-tdep.o, valprint.o): Ditto.
1660 (v850-tdep.o, d10v-tdep.o): Ditto.
1661 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1662 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1663 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1664 (sh_opc_h, gdb_sim_sh_h): Define.
1665 (elf_sh_h, elf_bfd_h): Define.
1666 (opcode_m68hc11_h): Define.
1667 (OPCODES_SRC, OPCODES_DIR): define.
1668 (OPCODES): Use $(OPCODES_DIR).
1669 (gdb_sim_d10v_h): Rename sim_d10v_h.
1670 (gdb_sim_arm_h): Rename sim_arm_h.
1671
1672 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1673
1674 * utils.c (host_pointer_to_address, address_to_host_pointer):
1675 Change internal_error() message to indicate function responsible
1676 for the error.
1677
1678 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1679
1680 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1681 calls to local_hex_string_custom().
1682
1683 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1684
1685 * irix5-nat.c: Move IRIX shared library support from here...
1686 * solib-irix.c: ...to here. Revised substantially to work with
1687 generic solib framework.
1688
1689 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1690 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1691 * mips-irix-tdep.c: New file.
1692
1693 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1694 (mips-irix-tdep.o, solib-irix.o): New rules.
1695 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1696 solib-irix.o.
1697 * config/mips/irix6.mt (TDEPFILES): Likewise.
1698 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1699
1700 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1701
1702 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1703 disabled (via ``#if 0'') includes.
1704
1705 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1706
1707 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1708 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1709 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1710 Add support for the fpscr register.
1711 * rs6000-nat.c (regmap, fetch_inferior_registers)
1712 (store_inferior_registers, fetch_core_registers): Likewise.
1713
1714 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1715
1716 * rs6000-nat.c (language.h): Include.
1717 (special_regs): Delete this array.
1718 (regmap): New function.
1719 (fetch_register, store_register): Use regmap() to map gdb
1720 register numbers to ptrace register numbers. Also, use
1721 outputs from regmap() to make decisions regarding type of
1722 ptrace() call to make. In particular, don't compare against
1723 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1724 (fetch_inferior_registers, store_inferior_registers): Where
1725 possible, obtain register numbers from tdep struct. Don't
1726 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1727 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1728 (LAST_UISA_SP_REGNUM): Delete.
1729
1730 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1731
1732 * rs6000-nat.c (ppc-tdep.h): Include.
1733 (fetch_registers, store_register, fetch_core_registers): Don't
1734 access registers[] directly. Instead, use supply_register() or
1735 regcache_collect() as appropriate.
1736 (find_toc_address): Format hex address with local_hex_string().
1737
1738 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1739
1740 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1741 bfd/elf32-frv.c.
1742
1743 2002-07-24 Tom Tromey <tromey@redhat.com>
1744
1745 * jv-exp.y: Marked all strings with _().
1746 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1747 internal_error.
1748 (MethodInvocation, CastExpression, parse_number, yyerror,
1749 java_type_from_name, push_expression_name, yylex): Typo fixes.
1750
1751 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1752
1753 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1754 (tee_file_flush, tee_file_write, tee_file_fputs)
1755 (tee_file_isatty): New.
1756 * ui-file.h (tee_file_new): Add prototype.
1757
1758 2002-07-24 Aidan Skinner <aidan@velvet.net>
1759
1760 * ada-lang.c: Change k&r style function definitions to prototyped
1761 form.
1762 * ada-typeprint.c: Change k&r style function definitions to prototyped
1763 form.
1764 * ada-valprint.c: Change k&r style function definitions to prototyped
1765 form.
1766
1767 2002-07-24 Andrew Cagney <cagney@redhat.com>
1768
1769 * README: Remove reference to remote-bug.
1770 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1771 remote-bug.c.
1772 (m88k-nat.o): Delete rule.
1773 (m88k-tdep.o): Delete rule.
1774 (remote-bug.o): Delete rule.
1775 * MAINTAINERS: Mark as obsolete.
1776 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1777 * m88k-tdep.c: Make file obsolete.
1778 * config/m88k/m88k.mh: Ditto.
1779 * config/m88k/delta88v4.mh: Ditto.
1780 * config/m88k/delta88v4.mt: Ditto.
1781 * config/m88k/delta88.mt: Ditto.
1782 * config/m88k/delta88.mh: Ditto.
1783 * remote-bug.c: Ditto.
1784 * config/m88k/tm-delta88.h: Ditto.
1785 * config/m88k/nm-delta88v4.h: Ditto.
1786 * config/m88k/xm-delta88.h: Ditto.
1787 * config/m88k/xm-dgux.h: Ditto.
1788 * config/m88k/tm-m88k.h: Ditto.
1789 * config/m88k/nm-m88k.h: Ditto.
1790 * config/m88k/tm-delta88v4.h: Ditto.
1791 * m88k-nat.c: Ditto.
1792 * cxux-nat.c: Ditto.
1793 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1794 and m88*-*-* obsolete.
1795 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1796 m88*-*-* obsolete.
1797
1798 2002-07-24 Andrew Cagney <cagney@redhat.com>
1799
1800 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1801 constant. Same for local pointer variables.
1802 (extract_signed_integer): Ditto.
1803 * defs.h (extract_unsigned_integer): Update.
1804 (extract_signed_integer): Update.
1805
1806 2002-07-24 Andrew Cagney <cagney@redhat.com>
1807
1808 * regcache.c (regcache_raw_write): Change buf parameter to a
1809 constant void pointer.
1810 (regcache_raw_read): Change buf parameter to a void pointer.
1811 (legacy_write_register_gen): Change myaddr parameter a constant
1812 void pointer.
1813 (supply_register): Change val parameter to a const void pointer.
1814 * regcache.h (regcache_raw_write): Update declaration.
1815 (regcache_raw_read): Update declaration.
1816 (supply_register): Update declaration.
1817
1818 2002-07-24 Tom Tromey <tromey@redhat.com>
1819
1820 * defs.h (gdb_readline_wrapper): Declare.
1821 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1822 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1823 * top.c (gdb_readline_wrapper): New function.
1824 (command_line_input): Use it.
1825
1826 2002-07-24 Andrew Cagney <cagney@redhat.com>
1827
1828 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1829 regcache_read and regcache_write.
1830 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1831 * regcache.c: Update.
1832 * sh-tdep.c (sh64_push_arguments): Update comment.
1833 (sh_pseudo_register_read): Update.
1834 (sh_pseudo_register_write): Update.
1835 (sh4_register_read): Update.
1836 (sh4_register_write): Update.
1837 (sh64_pseudo_register_read): Update.
1838 (sh64_pseudo_register_write): Update.
1839 (sh64_register_read): Update.
1840 (sh64_register_write): Update.
1841 * i386-tdep.c (i386_extract_return_value): Update.
1842 (i386_extract_struct_value_address): Update.
1843 (i386_extract_return_value): Update.
1844 * blockframe.c (generic_read_register_dummy): Update.
1845 (generic_call_dummy_register_unwind): Update
1846 * infrun.c (write_inferior_status_register): Update.
1847
1848 2002-07-23 Jim Blandy <jimb@redhat.com>
1849
1850 * parser-defs.h (expression_context_pc): Make this extern.
1851 (Thanks to Michael Snyder.)
1852
1853 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1854
1855 GDB 5.2.1 released from 5.2 branch.
1856 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1857 * README: Update to mention 5.2.1.
1858
1859 2002-07-23 Mark Salter <msalter@redhat.com>
1860
1861 * remote.c (remote_read_bytes): Fix check for error.
1862
1863 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1864
1865 * aix-thread.c (language.h): Include.
1866 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1867 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1868 Print newlines at end of debug messages.
1869 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1870 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1871
1872 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1873
1874 * aix-thread.c (ppc-tdep.h): Include.
1875 (special_register_p): New function.
1876 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1877 (store_regs_user_thread): Use register number information from
1878 gdbarch_tdep struct instead of hardcoded offsets relative to
1879 FIRST_UISA_SP_REGNUM.
1880 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1881 special_register_p() instead of using FPLAST_REGNUM and
1882 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1883 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1884 will be MQ's register number.
1885
1886 2002-07-22 Michael Snyder <msnyder@redhat.com>
1887
1888 * aix-thread.c (ops): Rename to aix_thread_ops.
1889 (base_ops): Rename to base_target.
1890 (ops_attach): Rename to aix_thread_attach.
1891 (ops_detach): Rename to aix_thread_detach.
1892 (ops_resume): Rename to aix_thread_detach.
1893 (ops_wait): Rename to aix_thread_wait.
1894 (ops_kill): Rename to aix_thread_kill.
1895 (init_ops): Rename to init_aix_thread_ops.
1896 (ops_fetch_register): Rename to aix_thread_fetch_register.
1897 (ops_store_register): Rename to aix_thread_store_register.
1898 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1899 (ops_thread_alive): Rename to aix_thread_thread_alive.
1900 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1901 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1902 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1903 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1904 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1905 (store_regs_lib): Rename to store_regs_user_thread.
1906 (store_regs_kern): Rename to store_regs_kernel_thread.
1907
1908 2002-07-22 Michael Snyder <msnyder@redhat.com>
1909
1910 * aix-thread.c (ops_prepare_to_store): Eliminate.
1911 (init_ops): Don't initialize ops.prepare_to_store.
1912 (store_regs_kern): Pre-fetch register buffers from child,
1913 because some registers may not be in the cache. Copy
1914 regs from register cache only if they are cached.
1915 (store_regs_lib): Copy regs from register cache only
1916 if they are cached.
1917 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1918 fill_gprs64): Ditto.
1919
1920 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1921
1922 * aix-thread.c (gdb_assert.h): Include.
1923 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1924 register sizes (from register cache) match size of buffer holding
1925 register data.
1926 (fill_sprs32): Change parameter types to match those in the ptrace()
1927 buffer.
1928 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1929 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1930
1931 2002-07-22 Michael Snyder <msnyder@redhat.com>
1932
1933 * aix-thread.c (supply_sprs64): Cosmetic change.
1934 (supply_sprs32): Cosmetic change.
1935 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1936 (fill_sprs64): Use regcache_collect instead of read_register.
1937 (store_regs_lib): Use regcache_collect instead of
1938 read_register. Use fill_sprs32 instead of fill_sprs64,
1939 if debugging a 32-bit architecture.
1940 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1941 out of the register cache, instead of passing a pointer into
1942 the register cache directly to ptrace. Use regcache_collect
1943 insteaad of read_register.
1944 (ops_prepare_to_store): Use target_read_registers instead
1945 of read_register_bytes.
1946
1947 2002-07-20 Aidan Skinner <aidan@velvet.net>
1948
1949 * MAINTAINERS: Add self under write after approval.
1950
1951 2002-07-20 Aidan Skinner <aidan@velvet.net>
1952
1953 * ada-tasks.c: Change k&r style function definitions to prototyped
1954 form.
1955
1956 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1957
1958 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1959 * x86-64-tdep.c: Include "objfiles.h".
1960 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1961 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1962
1963 2002-07-17 Michal Ludvig <michal@suse.cz>
1964
1965 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1966 (update_context): Initialise cfa variable.
1967
1968 2002-07-17 Michael Snyder <msnyder@redhat.com>
1969
1970 * aix-thread.c: Shorten some long lines.
1971 Bring comments into line with code spec.
1972
1973 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1974
1975 * infrun.c: Re-indent using gdb_indent.sh.
1976
1977 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1978
1979 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1980 Leave the indentation temporarily untouched, to minimize the diffs.
1981
1982 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1983
1984 * stabsread.c: Make os9k sections of the code obsolete,
1985 for real this time.
1986 * stabsread.h: Make os9k sections of the code obsolete.
1987
1988 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1989
1990 * linux-low.c (regsets_store_inferior_registers): Add free()
1991 at the end of a loop to prevent memory leak.
1992 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1993 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1994 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1995 line a comment.
1996 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1997
1998 2002-07-17 Jim Blandy <jimb@redhat.com>
1999
2000 * macrocmd.c (info_macro_command): Remove newline from error
2001 message.
2002
2003 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2004
2005 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2006 (sh_gdbarch_init): Use it for sh-dsp.
2007
2008 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2009
2010 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2011 64-bit DWARF2 format.
2012
2013 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2014
2015 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2016 <sys/proc.h> when not available.
2017
2018 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2019
2020 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2021 * stabsread.c: Make os9k sections of the code obsolete.
2022 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2023 * config/i386/i386os9k.mt: Make file obsolete.
2024 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2025 (COMMON_OBS): Remove os9kread.o
2026 (SFILES): Remove os9kread.c.
2027 (os9kread.o, remote-os9k.o): Make target obsolete.
2028 * remote-os9k.c: Make file obsolete.
2029 * os9kread.c: Make file obsolete.
2030 * Makefile.in
2031
2032 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2033
2034 * NEWS: Mention that the FR30 has been made obsolete.
2035 * fr30-tdep.c: Make file obsolete.
2036 * config/fr30/tm-fr30.h: Ditto.
2037 * config/fr30/fr30.mt: Ditto.
2038 * configure.tgt: Make fr30-*-elf obsolete.
2039 * MAINTAINERS: Make fr30-elf obsolete.
2040
2041 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2042
2043 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2044 found is not inside a section.
2045
2046 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2047
2048 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2049 strerror().
2050 (pdc_realloc): Use xrealloc() instead of realloc().
2051
2052 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2053
2054 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2055 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2056 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2057 macros.
2058
2059 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2060
2061 * aix-thread.c (ptrace_check): Eliminate goto.
2062 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2063 problem.
2064
2065 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2066
2067 * aix-thread.c (gdbcmd.h): Include.
2068 (DEBUG, DBG, DBG2, dbg): Eliminate.
2069 (debug_aix_thread): New static global.
2070 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2071 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2072 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2073 invocations to DBG and DBG2 macros to test against
2074 ``debug_aix_thread'' and call fprintf_unfiltered().
2075 (_initialize_aix_thread): Add new command "set debug aix-thread".
2076
2077 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2078
2079 From Gerhard Tonn <TON@de.ibm.com>:
2080 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2081 instead of supply_register.
2082
2083 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2084
2085 * dwarf2cfi.c: Include "gdb_assert.h".
2086 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2087 non-NULL.
2088 (update_context): Do not use __func__. Add missing ``break''.
2089 (update_context): Do not use __func__.
2090
2091 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2092
2093 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2094 and its setting. Set gdbarch instruction printing functions
2095 directly. For non-rs6000 case use new function
2096 gdb_print_insn_powerpc.
2097 (gdb_print_insn_powerpc): New function.
2098
2099 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2100
2101 * NEWS: Mention that the d30v has been marked obsolete.
2102 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2103 * configure.tgt: Mark d30v-*-* as obsolete.
2104 * d30v-tdep.c: Mark file as obsolete.
2105 * config/d30v/d30v.mt: Ditto.
2106 * config/d30v/tm-d30v.h: Ditto.
2107
2108 2002-07-13 Aidan Skinner <aidan@velvet.net>
2109
2110 * ada-tasks.c (add_task_entry): replace calls to
2111 malloc() with xmalloc
2112 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2113
2114 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2115 ada_finish_decode_line_1, all_sals_for_line
2116 ada_breakpoint_rewrite): replace calls to free() with xfree()
2117
2118 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2119
2120 From Nicholas Duffek (with minor changes by Martin Hunt,
2121 Louis Hamilton, and Kevin Buettner):
2122 * aix-thread.c: New file.
2123
2124 2002-07-12 Petr Sorfa <petrs@caldera.com>
2125
2126 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2127 complaint for invalid attribute class or form.
2128 (read_func_scope): DW_AT_frame_base
2129 better handling of DW_AT_block*.
2130 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2131 better handling of DW_AT_block*.
2132 (read_common_block): DW_AT_location
2133 better handling of DW_AT_block*.
2134 (read_partial_die): DW_AT_location better handling
2135 of DW_AT_block*.
2136 (new_symbol): DW_AT_external better handling of
2137 DW_AT_block*. Proper initialization of variable
2138 "addr".
2139 (attr_form_is_block): New function that returns true
2140 if the attribute's form is of DW_FORM_block*.
2141
2142 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2143
2144 * valops.c (find_method_list): Remove comment about
2145 removed STATIC_MEMFUNCP argument.
2146 (value_find_oload_method_list): Likewise.
2147
2148 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2149
2150 From Nicholas Duffek:
2151 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2152 target_new_objfile_hook.
2153
2154 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2155
2156 From Nicholas Duffek:
2157 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2158 csect.
2159
2160 2002-07-12 Andrew Cagney <cagney@redhat.com>
2161
2162 * MAINTAINERS: Mention --enable-sim-build-warnings.
2163 (m68hc11-elf): Disable sim build warnings.
2164 (m32r-elf): Mark as broken obsolete candidate.
2165 (x86_64-linux-gnu): Mark as buildable with -Werror.
2166 (arm-elf): Change -w to ``,'' which enables warnings but not
2167 -Werror.
2168
2169 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2170
2171 * bcache.h: Update copyright.
2172 (struct bstring, struct bcache): Move definition to "bcache.c".
2173 Replaced by opaque declaration.
2174 (bcache_xfree): Replace free_bcache.
2175 (bcache_xmalloc, bcache_memory_used): Declare.
2176
2177 * bcache.c: Update copyright.
2178 (struct bstring, struct bcache): Moved to here from "bcache.h".
2179 Update comments.
2180 (bcache_xmalloc, bcache_memory_used): New functions.
2181 (bcache_xfree): Replace function free_bcache.
2182
2183 * Makefile.in (objfiles.o): Add $(bcache_h).
2184 (objfiles_h): Remove $(bcache_h).
2185 (symfile.o): Add $(bcache_h).
2186
2187 * symmisc.c: Update copyright.
2188 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2189 (print_objfile_statistics): Use bcache_memory_used.
2190
2191 * symfile.c: Include "bcache.h".
2192 (reread_symbols): Use bcache_xfree.
2193 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2194 (add_psymbol_to_list): Pass psymbol_cache by value.
2195 (add_psymbol_with_dem_name_to_list): Ditto.
2196
2197 * objfiles.h: Update copyright.
2198 (struct bcache): Declare opaque. Do not include "bcache.h".
2199 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2200 bcache'' pointers.
2201 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2202
2203 * objfiles.c: Include "bcache.h". Update copyright.
2204 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2205 macro_cache.
2206 (free_objfile): Use bcache_xfree.
2207
2208 2002-07-11 Grace Sainsbury <graces@redhat.com>
2209
2210 * monitor.c (monitor_fetch_register): Make name a constant.
2211 (monitor_store_register): Same.
2212
2213 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2214
2215 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2216 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2217 (finish_block) For non-function blocks, hash the symbol table. For
2218 function blocks, mark the symbol table as unhashed.
2219 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2220 (msymbol_hash_iw): Likewise.
2221 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2222 value.
2223 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2224 (lookup_minimal_symbol): Likewise for both.
2225 * symtab.h (struct block): Add `hashtable' flag. Comment the
2226 hashtable.
2227 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2228 (ALL_BLOCK_SYMBOLS): Update.
2229 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2230 (struct symbol): Add `hash_next' pointer.
2231 * symtab.c (lookup_block_symbol): Search using the hash table when
2232 possible.
2233 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2234 (search_symbols, find_addr_symbol): Likewise.
2235
2236 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2237 (read_dst_symtab): Likewise.
2238 * jv-lang.c (get_java_class_symtab): Likewise.
2239 * mdebugread.c: Include "gdb_assert.h".
2240 (shrink_block): Assert that the block being modified is not hashed.
2241 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2242 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2243 symbols.
2244 (dump_symtab): Recognize hashed blocks.
2245 * printcmd.c (print_frame_args): Assert that function blocks do not
2246 have hashed symbol tables.
2247 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2248 (fill_in_ada_prototype, debug_print_block): Likewise.
2249 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2250
2251 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2252
2253 * stack.c (print_frame): Use result of frame_address_in_block()
2254 instead of fi->pc when evaluating symbols.
2255 (backtrace_command_1): Ditto.
2256
2257 2002-07-11 Andrew Cagney <cagney@redhat.com>
2258
2259 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2260 Make static.
2261
2262 * arm-tdep.c (arm_register_name): Make return type constant.
2263
2264 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2265
2266 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2267 prototype.
2268 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2269 * s390-tdep.c (s390_fp_regnum): Ditto.
2270 (s390_read_fp): Ditto.
2271 (s390_pop_frame): Ditto.
2272 (_initialize_s390_tdep): Ditto.
2273 * remote.c (get_remote_state): Ditto.
2274 * procfs.c (mappingflags): Ditto.
2275 * memattr.c (_initialize_mem): Ditto.
2276 * mcore-tdep.c (mcore_pop_frame): Ditto.
2277 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2278 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2279 * language.c (set_case_str): Ditto.
2280 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2281 * frv-tdep.c (new_variant): Ditto.
2282 (frv_stopped_data_address): Ditto.
2283 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2284 (context_alloc): Ditto.
2285 (frame_state_alloc): Ditto.
2286 (unwind_tmp_obstack_init): Ditto.
2287 (unwind_tmp_obstack_free): Ditto.
2288 (cfi_read_fp): Ditto.
2289 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2290 (cris_pop_frame): Ditto.
2291 * c-lang.c (scanning_macro_expansion): Ditto.
2292 (finished_macro_expansion): Ditto.
2293 (c_preprocess_and_parse): Ditto.
2294 * gdbarch.sh: Ditto.
2295 * gdbarch.h, gdbarch.c: Regenerate.
2296 * config/mn10200/tm-mn10200.h: Adjust indentation.
2297 * target.c: Adjust indentation.
2298 * symtab.h: Adjust indentation.
2299 * stabsread.h: Adjust indentation.
2300 * remote-es.c: Adjust indentation.
2301 * os9kread.c: Adjust indentation.
2302
2303 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2304
2305 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2306 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2307
2308 2002-07-10 Grace Sainsbury <graces@redhat.com>
2309
2310 * NEWS: Mention m68k, mcore multi-arching.
2311 * MAINTAINERS: Change status of m68k, mcore to reflect
2312 multi-arching.
2313
2314 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2315
2316 * valops.c (find_overload_match): Free oload_syms.
2317
2318 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2319
2320 Define HAVE_SYS_PROC_H if sys/proc.h exists
2321 * configure.in: Add check for sys/proc.h
2322 * config.in: Regenerate.
2323 * configure: Regenerate.
2324
2325 2002-07-09 Grace Sainsbury <graces@redhat.com>
2326
2327 * config/m68k/tm-m68k.h: Remove macros wrapped in
2328 #if !GDB_MULTI_ARCH.
2329
2330 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2331
2332 * config.in, configure: Regenerate.
2333
2334 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2335
2336 * dwarf2cfi.c: Include "gcore.h".
2337 (execute_stack_op): Fix implementation of the
2338 DW_OP_deref and DW_OP_deref_size operators by letting do their
2339 lookup in the target.
2340
2341 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2342
2343 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2344 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2345 tdep->sc_sp_offset.
2346
2347 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2348
2349 Fix PR gdb/595, gdb/602
2350 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2351 Don't call value_cast, just read the vtable pointer; update comments
2352 to match.
2353
2354 2002-07-05 Grace Sainsbury <graces@redhat.com>
2355
2356 * config/mcore/tm-mcore.h: Remove file.
2357 * config/mcore/mcore.mt: Remove definition of TM_FILE
2358 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2359
2360 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2361
2362 * i386bsd-tdep.c: Include "gdb_string.h".
2363
2364 2002-07-04 Grace Sainsbury <graces@redhat.com>
2365
2366 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2367 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2368 mcore-tdep.
2369 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2370 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2371 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2372 (RETVAL_REGNUM): Move macros from tm-mcore.h
2373 (mcore_reg_struct_has_addr): New function.
2374 (mcore_gdbarch_init): Added initializations for the macros removed
2375 from tm-mcore.h.
2376
2377 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2378
2379 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2380 traditonal string branding within the ELF header.
2381
2382 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2383
2384 * symtab.c (remove_params): New function.
2385 (make_symbol_overload_list): Use it instead of cplus_demangle.
2386 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2387
2388 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2389
2390 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2391
2392 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2393 New variables.
2394 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2395 and tdep->sigtramp_end.
2396 * i386obsd-nat.c: New file.
2397 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2398
2399 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2400 Don't call get_current_frame().
2401
2402 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2403
2404 * i386-nat.c (child_post_startup_inferior): New function
2405 calling i386_cleanup_dregs if
2406 I386_USE_GENERIC_WATCHPOINTS is defined.
2407 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2408 conditional to acknowledge that i386-nat.c has its
2409 own child_post_startup_inferior function.
2410
2411 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2412
2413 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2414 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2415 instead of MAX_REGISTER_RAW_SIZE.
2416 (i386_extract_return_value, i386_extract_struct_value_address):
2417 Convert to use regcache.
2418 (i386_gdbarch_init): Set max_register_raw_size and
2419 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2420 Set extract_return_value and extract_struct_value_address instead
2421 of their deprecated variants.
2422
2423 Convert i386 target to generic dummy frames.
2424 * i386-tdep.c: Include "symfile.h".
2425 (i386_frameless_signal_p): Consider a function to be frameless if
2426 the pc points at the first instruction of the function.
2427 (i386_frame_chain): Handle (generic) call dummies.
2428 (i386_frame_saved_pc): Likewise.
2429 (i386_frame_init_saved_regs): Remove code dealing with call
2430 dummies on the stack.
2431 (i386_push_dummy_frame): Removed.
2432 (i386_call_dummy_words): Removed.
2433 (i386_fix_call_dummy): Removed.
2434 (i386_push_return_address): New function.
2435 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2436 parameter, and don't call get_current_frame.
2437 (i386_pop_frame): New function.
2438 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2439 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2440 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2441 call_dummy_length to 0, set call_dummy_words to NULL, set
2442 sizeof_call_dummy_words to 0, set fix_call_dummy to
2443 generic_fix_call_dummy, set pc_in_call_dummy to
2444 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2445 generic_push_dummy_frame, set push_return_address to
2446 i386_push_return_address and set frame_chain_valid to
2447 generic_file_frame_chain_valid.
2448
2449 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2450
2451 * gdbarch.sh (struct regcache): Add opaque declaration.
2452 (EXTRACT_RETURN_VALUE): New architecture method.
2453 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2454 * gdbarch.h, gdbarch.c: Regenerate.
2455 * arch-utils.c (legacy_extract_return_value): New function.
2456 * arch-utils.h (legacy_extract_return_value): Declare.
2457 * values.c (value_being_returned): Re-enable code handling
2458 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2459 deprecated_grub_regcache_for_registers call to block handling
2460 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2461 (EXTRACT_RETURN_VALUE): Do not define.
2462
2463 2002-07-03 Grace Sainsbury <graces@redhat.com>
2464
2465 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2466 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2467 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2468 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2469 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2470 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2471 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2472 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2473 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2474 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2475 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2476 argument so the function fits the prototype in the architecture
2477 vector.
2478 (mcore_pop_frame): Remove argument so the function fits the
2479 prototype. Use get_current_frame instead of the argument.
2480 (mcore_push_arguments): Change type of struct_return so the
2481 function can be used in the architecture vector.
2482 (mcore_store_struct_return): Add.
2483 (mcore_frame_init_saved_regs): Add.
2484 (mcore_gdbarch_init): Add function calls to replace the macros
2485 removed from tm-mcore.h
2486
2487 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2488
2489 * infcmd.c (print_return_value): Remove compatibility code calling
2490 deprecated_grub_regcache_for_registers.
2491
2492 * values.c: Include "regcache.h".
2493 (value_being_returned): Update. Use
2494 deprecated_grub_regcache_for_registers to extract the register
2495 buffer address.
2496 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2497 ``struct regcache''.
2498 * Makefile.in (values.o): Add dependency on $(regcache_h).
2499
2500 * inferior.h (run_stack_dummy): Change type of second parameter to
2501 a ``struct regcache''.
2502 * valops.c (hand_function_call): Change type of retbuf to ``struct
2503 regcache''. Allocate using regcache_xmalloc, clean using
2504 make_cleanup_regcache_xfree.
2505 * infcmd.c (run_stack_dummy): Update. Use
2506 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2507
2508 * regcache.c (do_regcache_xfree): New function.
2509 (make_cleanup_regcache_xfree): New function.
2510 * regcache.h (make_cleanup_regcache_xfree): Declare.
2511
2512 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2513
2514 * event-top.c (command_line_handler): Don't read past
2515 beginning of buffer.
2516
2517 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2518
2519 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2520 struct frame_id.
2521 (varobj_create): Store frame_id for root.
2522 (varobj_gen_name): Use xasprintf.
2523 (varobj_update): Save and restore frame using get_frame_id() and
2524 frame_find_by_id().
2525 (create_child): Use xasprintf.
2526 (new_root_variable): Initialize frame_id.
2527 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2528 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2529 to prevent memory leak.
2530
2531 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2532
2533 * valops.c (hand_function_call): Move declaration of retbuf to
2534 start of function, allocate using malloc, add a cleanup but before
2535 the inf_status cleanup, cleanup the buffer. Rename local variable
2536 old_chain to inf_status_cleanup.
2537
2538 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2539
2540 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2541
2542 * cli/cli-decode.c (cmd_func_p): New function.
2543 (cmd_func): New function.
2544
2545 * command.h: Add cmd_func() and cmd_func_p().
2546
2547 2002-07-03 Grace Sainsbury <graces@redhat.com>
2548
2549 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2550 (REGISTER_SIZE): Remove.
2551 (MAX_REGISTER_RAW_SIZE): Remove.
2552 (REGISTER_VIRTUAL_TYPE): Remove.
2553 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2554 (REGISTER_NAME): Remove.
2555 (USE_GENERIC_DUMMY_FRAMES): Remove.
2556 (CALL_DUMMY): Remove.
2557 (CALL_DUMMY_START_OFFSET): Remove.
2558 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2559 (CALL_DUMMY_LOCATION): Remove.
2560 (FIX_CALL_DUMMY): Remove.
2561 (CALL_DUMMY_ADDRESS): Remove.
2562 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2563 (SAVE_DUMMY_FRAME_TOS): Remove.
2564 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2565 (mcore_register_virtual_type): New function.
2566 (mcore_register_byte): New function.
2567 (mcore_register_size): New function.
2568 (mcore_register_name): New function.
2569 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2570 macros removed from tm-mcore.h.
2571 (mcore_dump_tdep): Add.
2572 (_initialize_mcore_tdep): Add gdbarch_register call.
2573
2574 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2575
2576 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2577 frameless_look_for_prologue, such that we actually call this
2578 function.
2579
2580 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2581
2582 * frame.h (frame_address_in_block): New function.
2583
2584 * blockframe.c (frame_address_in_block): New function extracted
2585 from get_frame_block().
2586 (get_frame_block): Use frame_address_in_block().
2587 (block_innermost_frame): Use frame_address_in_block() to match
2588 the frame pc address against the block boundaries rather than
2589 the frame pc directly. This prevents a failure when a frame pc
2590 is actually a return-address pointing immediately after the end
2591 of the given block.
2592
2593 2002-07-02 Grace Sainsbury <graces@redhat.com>
2594
2595 * MAINTAINERS: Add self under write after approval.
2596
2597 2002-07-02 Grace Sainsbury <graces@redhat.com>
2598
2599 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2600 used in architecture vector. The default is
2601 m68k_local_breakpoint_from_pc.
2602 (m68k_local_breakpoint_from_pc): Add.
2603 (enum): Add register numbers from tm-m68k.h.
2604 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2605 vector.
2606 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2607 GDB_MULTI_ARCH_PARTIAL.
2608 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2609 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2610 m68k-tdep.c.
2611 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2612 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2613 to enum in m68k-tdep.c
2614
2615 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2616
2617 * solib-osf.c (open_map): Compute the list of shared libraries
2618 loaded by the inferior, rather than the list of libraries loaded
2619 by GDB itself. Otherwise, GDB ends up reading the symbols from
2620 the wrong shared libraries...
2621
2622 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2623
2624 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2625 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2626 macros.
2627 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2628 Remove functions.
2629 (FRAMELESS_SIGNAL): Remove function.
2630 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2631 i386_linux_saved_pc_after_call): Removed.
2632 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2633 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2634 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2635
2636 * i386-tdep.c (i386_frameless_signal_p): New function.
2637 (i386_frame_chain): Deal with frameless signals.
2638 (i386_sigtramp_saved_sp): New function.
2639 (i386_frame_saved_pc): Deal with frameless signals.
2640 (i386_saved_pc_after_call): Make sure the correct value is
2641 returned just after entry into a sigtramp.
2642 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2643 i386fbsd4_sc_sp_offset): New variables.
2644 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2645 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2646 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2647 similiar to what we already did for sc_pc_offset.
2648 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2649 tdep->sc_sp_offset.
2650
2651 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2652
2653 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2654
2655 * config/i386/tm-x86-64linux.h: New.
2656 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2657 definitions.
2658 * config/i386/nm-x86-64.h: Rename to ...
2659 * config/i386/nm-x86-64linux.h: ... this one.
2660 * config/i386/x86-64linux.mh: Reflect the above change.
2661
2662 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2663
2664 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2665 with sigcontext_addr. Add sc_sp_offset.
2666 (i386bsd_sigtramp_saved_pc): Remove prototype.
2667 (i386bsd_sicontext_addr): Add prototype.
2668 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2669 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2670 (i386_svr4_sigtramp_saved_pc): Removed.
2671 (i386_svr4_sigcontext_addr): New function.
2672 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2673 Initialize tdep->sigcontext_addr instead. Initialize
2674 tdep->sc_pc_offset and tdep->sc_sp_offset.
2675 (i386_gdbarch_init): Likewise.
2676 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2677 any more.
2678 (i386bsd_sigtramp_saved_pc): Remove function.
2679 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2680 Initialize tdep->sigcontext_addr instead. Initialize
2681 tdep->sc_pc_offset.
2682 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2683 of tdep->sigtramp_saved_pc.
2684 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2685 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2686 instead.
2687
2688 * i386-tdep.c (i386_frameless_function_invocation,
2689 i386_frame_num_args, i386_frame_init_saved_regs,
2690 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2691 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2692 i386_extract_return_value, i386_store_return_value,
2693 i386_extract_struct_value_address, i386_register_virtual_type,
2694 i386_register_convertible, i386_register_convert_to_virtual,
2695 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2696 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2697 static.
2698
2699 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2700
2701 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2702
2703 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2704 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2705 this macro. Include "value.h".
2706
2707 2002-06-30 Aidan Skinner <aidan@velvet.net>
2708
2709 * ada-exp.tab.c: remove as it's a generated file
2710 * ada-lex.c: remove as it's a generated file
2711
2712 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2713
2714 * config/i386/tm-i386.h (struct frame_info, struct
2715 frame_saved_regs, struct value, struct type): Remove forward
2716 declarations.
2717
2718 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2719 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2720 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2721 (FILL_FPXREGSET): Define.
2722
2723 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2724
2725 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2726 i[3456]86-*-netbsd* case.
2727 * config/i386/tm-obsd.h: Removed.
2728 * config/i386/obsd.mt: Removed.
2729 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2730 core-aout.o.
2731 (MH_CFLAGS): Add -DYYDEBUG=0.
2732
2733 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2734 i386nbsd_sc_pc_offset on OpenBSD too.
2735
2736 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2737 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2738 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2739 define.
2740 * i386bsd-tdep.c: Include "arch-utils.h".
2741 (i386bsd_aout_in_solib_call_trampoline): New function.
2742 (i386bsd_init_abi): Set in_solib_call_trampoline to
2743 i386bsd_aout_in_solib_call_trampoline.
2744 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2745 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2746
2747 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2748
2749 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2750 (struct obstack, struct bcache): Add opaque declarations.
2751 * Makefile.in (macrotab_h): Update
2752
2753 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2754
2755 * blockframe.c (generic_find_dummy_frame): Change return type to
2756 ``struct regcache''.
2757 (struct dummy_frame): Replace field ``registers'' with regcache, a
2758 struct regcache object.
2759 (generic_find_dummy_frame): Update.
2760 (generic_push_dummy_frame): Update. Use regcache_xfree,
2761 regcache_xmalloc and regcache_cpy.
2762 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2763 regcache_xfree.
2764 (deprecated_generic_find_dummy_frame): Update.
2765 (generic_read_register_dummy): Update. Use
2766 regcache_read_as_address.
2767 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2768 (generic_get_saved_register): Update. Use regcache_read.
2769
2770 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2771
2772 * Makefile.in (objfiles_h): Add $(bcache_h).
2773 * objfiles.h: Include "bcache.h".
2774
2775 * Makefile.in (symtab_h): Remove $(bcache_h).
2776 * symtab.h: Do not include "bcache.h".
2777
2778 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2779
2780 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2781 generic_func_frame_chain_valid.
2782
2783 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2784
2785 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2786 * config/i386/tm-fbsd.h: Likewise.
2787
2788 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2789
2790 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2791 generic_unwind_get_saved_register.
2792
2793 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2794
2795 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2796 * regcache.c (supply_register): Add missing argument to
2797 register_buffer call.
2798
2799 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2800
2801 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2802 Solaris /bin/grep does not not like it. From Peter Schauer.
2803
2804 2002-06-26 Tom Tromey <tromey@redhat.com>
2805
2806 * command.h (add_setshow_cmd): Declare.
2807 (add_setshow_cmd_full): Declare.
2808 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2809 returns void. Use add_setshow_cmd_full.
2810 (add_setshow_cmd_full): New function.
2811 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2812 (add_setshow_boolean_cmd): Likewise.
2813
2814 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2815
2816 * config/vax/tm-vax.h: Protect from multiple inclusion.
2817 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2818 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2819 * config/vax/tm-vaxbsd.h: ...here. New file.
2820 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2821
2822 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2823
2824 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2825 (BELIEVE_PCC_PROMOTION): Remove.
2826 (AP_REGNUM): Move to...
2827 * config/vax/nm-vax.h: ...here.
2828 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2829 (vax_breakpoint_from_pc): New function.
2830 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2831 and gdbarch_believe_pcc_promotion.
2832
2833 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2834
2835 * Makefile.in (vax_tdep_h): Define.
2836 (vax-tdep.o): Use $(vax_tdep_h).
2837 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2838 (vax_dump_tdep): New function.
2839 (_initialize_vax_tdep): Register vax_dump_tdep.
2840 * vax-tdep.h: Include osabi.h.
2841 (struct gdbarch_tdep): New.
2842
2843 2002-06-26 Andrew Cagney <cagney@redhat.com>
2844
2845 * frame.h (deprecated_generic_find_dummy_frame): Rename
2846 generic_find_dummy_frame.
2847 * blockframe.c (generic_find_dummy_frame): Make static.
2848 (deprecated_generic_find_dummy_frame): New function.
2849 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2850 generic_find_dummy_frame with deprecated_find_dummy_frame.
2851 (sh64_nofp_frame_init_saved_regs): Ditto.
2852 (sh_fp_frame_init_saved_regs): Ditto.
2853 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2854 (s390_frame_chain): Ditto.
2855 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2856
2857 2002-06-26 Grace Sainsbury <graces@redhat.com>
2858
2859 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2860 gdbarch vector are at the top.
2861 (NUM_REGS): Remove.
2862 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2863 (FRAME_ARGS_ADDRESS): Remove.
2864 (FRAME_LOCALS_ADDRESS): Remove.
2865 (FRAME_NUM_ARGS): Remove.
2866 (FRAME_ARGS_SKIP): Remove.
2867 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2868 (m68k_gdbarch_init): Add gdbarch initializations for macros
2869 undefined in tm-m68k.h
2870
2871 2002-06-26 Grace Sainsbury <graces@redhat.com>
2872
2873 * monitor.h: Add the function regname to monitor_ops
2874 structure. This way NUM_REGS does not have to be a constant.
2875 * monitor.c (monitor_fetch_register): Added support for regname
2876 function. The function is called if the array regnames is NULL.
2877 (monitor_store_register): Same.
2878 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2879 regnames array.
2880 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2881 cpu32bug_cmds.regname to point to new function.
2882 * abug-rom.c (abug_regname): Same as above.
2883 (init_abug_cmds): Same.
2884 * dbug-rom.c (dbug_regname): Same as above.
2885 (init_dbug_cmds): Same.
2886 * remote-est.c (est_regname): Same.
2887 (init_est_cmds): Same.
2888 * rom68k-rom.c (rom68k_regname): Same.
2889 (init_rom68k_cmds): Same.
2890
2891 2002-06-25 Tom Tromey <tromey@redhat.com>
2892
2893 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2894
2895 2002-06-25 Andrew Cagney <cagney@redhat.com>
2896
2897 * infrun.c (stop_registers): Change variable's type to ``struct
2898 regcache'''.
2899 (xmalloc_inferior_status): Delete function.
2900 (free_inferior_status): Delete function.
2901 (normal_stop): Use regcache_cpy.
2902 (struct inferior_status): Change type of fields ``stop_registers''
2903 and ``registers'' to ``struct regcache''.
2904 (write_inferior_status_register): Use regcache_write.
2905 (save_inferior_status): Instead of calling
2906 xmalloc_inferior_status, allocate the inf_status buffer directly.
2907 Use regcache_dup_no_passthrough and regcache_dup to save the
2908 buffers.
2909 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2910 Replace the stop_registers regcache instead of overriding it. Use
2911 regcache_xfree. Instead of calling free_inferior_status, xfree
2912 the buffer directly.
2913 (discard_inferior_status): Use regcache_xfree. Instead of calling
2914 free_inferior_status, xfree the buffer directly.
2915 (build_infrun): Use regcache_xmalloc.
2916 (_initialize_infrun): Delete redundant call to build_infrun.
2917
2918 * Makefile.in (infcmd.o): Add $(regcache_h).
2919
2920 * infcmd.c: Include "regcache.h".
2921 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2922 obtain the address of `stop_registers' register buffer.
2923 (print_return_value): Ditto.
2924
2925 * inferior.h (struct regcache): Add opaque declaration.
2926 (stop_registers): Change variable's declared type to ``struct
2927 regcache''.
2928
2929 2002-06-24 Tom Tromey <tromey@redhat.com>
2930
2931 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2932 * target.c (initialize_targets): Fixed typo in
2933 trust-readonly-sections `show' documentation.
2934
2935 * main.c: Marked all strings with _().
2936
2937 2002-06-24 Don Howard <dhoward@redhat.com>
2938
2939 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2940 that means max CORE_ADDR+1.
2941 (lookup_mem_region): Ditto.
2942 (mem_info_command): Ditto.
2943
2944 2002-06-24 Grace Sainsbury <graces@redhat.com>
2945
2946 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2947 (REGISTER_BYTES_OK): Remove.
2948 (REGISTER_BYTES): Remove.
2949 (STORE_STRUCT_RETURN): Remove.
2950 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2951 (STORE_RETURN_VALUE): Remove.
2952 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2953 (FRAME_CHAIN): Remove.
2954 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2955 (FRAME_SAVED_PC): Remove.
2956 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2957 (m68k_store_struct_return): Add.
2958 (m68k_deprecated_extract_return_value): Add.
2959 (m68k_deprecated_extract_struct_value_address): Add.
2960 (m68k_store_return_value): Add.
2961 (m68k_frame_chain): Add.
2962 (m68k_frameless_function_invocation): Add.
2963 (m68k_frame_saved_pc): Add.
2964 (m68k_gdbarch_init): added set_gdbarch calls for new
2965 functions and deleted macros.
2966
2967 2002-06-23 Tom Tromey <tromey@redhat.com>
2968
2969 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2970 (ALLDEPFILES): Likewise.
2971 (udiheaders): Removed.
2972 (udip2soc.o): Likewise.
2973 (udi2go32.o): Likewise.
2974 (udr.o): Likewise.
2975 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2976
2977 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2978
2979 * infrun.c (_initialize_infrun): Delete unnecessary call to
2980 build_infrun.
2981
2982 * regcache.h: Update comments describing the regcache_cpy family
2983 of functions.
2984 (regcache_save, regcache_restore): Delete declaration.
2985 (regcache_save_no_passthrough): Delete declaration.
2986 (regcache_restore_no_passthrough): Delete declaration.
2987 * regcache.c (regcache_save): Delete function.
2988 (regcache_save_no_passthrough): Delete function.
2989 (regcache_restore): Delete function.
2990 (regcache_restore_no_passthrough): Delete function.
2991
2992 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2993
2994 * config/m68k/tm-m68k.h: Fix typo.
2995 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2996 (m68k_frame_init_saved_regs): Declare.
2997
2998 2002-06-21 Jim Blandy <jimb@redhat.com>
2999
3000 Remove some vestiges of Harris 88k support.
3001 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3002 register numbering quirk.
3003 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3004 odd symbols occurring in Harris 88k ELF targets.
3005
3006 2002-06-21 Tom Tromey <tromey@redhat.com>
3007
3008 * gdb_locale.h: New file.
3009 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3010 (defs_h): Added gdb_locale.h.
3011 * configure, config.in: Rebuilt.
3012 * configure.in (PACKAGE): Define.
3013 * defs.h: Include gdb_locale.h.
3014 * main.c (captured_main): Call setlocale, bindtextdomain,
3015 textdomain.
3016
3017 2002-06-21 Dave Brolley <brolley@redhat.com>
3018
3019 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3020 * config/frv/frv.mt: New file.
3021 * config/frv/tm-frv.h: New file.
3022 * configure.tgt: Support frv-*-*.
3023 * Makefile.in (frv-tdep.o): New target.
3024 * frv-tdep.c: New file.
3025 * NEWS: Mention frv.
3026
3027 2002-06-21 Dave Brolley <brolley@redhat.com>
3028
3029 * MAINTAINERS: Add self to "Write After Approval" list.
3030
3031 2002-06-21 Grace Sainsbury <graces@redhat.com>
3032
3033 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3034 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3035 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3036 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3037 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3038
3039 * m68k-tdep.c: Include arch-utils.h
3040 (m68k_register_raw_size): Add.
3041 (m68k_register_virtual_size): Add.
3042 (m68k_register_virtual_type): Add.
3043 (m68k_register_name): Add.
3044 (m68k_stack_align): Add.
3045 (m68k_register_byte): Add.
3046 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3047 tm-m68k.h.
3048
3049 2002-06-21 Grace Sainsbury <graces@redhat.com>
3050
3051 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3052 m68k_find_saved_regs.
3053 (m68k_pop_frame): Removed saved_regs structure, and replaced
3054 references to it with frame->saved_regs.
3055 (m68k_gdbarch_init): Added function calls to initialize the
3056 gdbarch structure.
3057 (m68k_fix_call_dummy): Add.
3058 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3059 (CALL_DUMMY): Remove.
3060 (CALL_DUMMY_LENGTH): Remove.
3061 (CALL_DUMMY_START_OFFSET): Remove.
3062 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3063 (FIX_CALL_DUMMY): Remove.
3064 (PUSH_DUMMY_FRAME): Remove.
3065 (POP_FRAME): Remove.
3066
3067 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3068
3069 * parse.c (parse_fprintf): New function used to avoid calls to
3070 fprintf in bison parser generated debug code.
3071 * parser-defs.h: Declaration of new parse_fprintf function.
3072 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3073 Set YYDEBUG to 1 by default.
3074 Set YYFPRINTF as parse_fprintf.
3075
3076 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3077
3078 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3079 encoding anymore.
3080 (pointer_encoding, enum ptr_encoding): New.
3081 (execute_cfa_program): Take care about pointer encoding.
3082 (dwarf2_build_frame_info): Only call parse_frame_info for
3083 .debug_frame and .eh_frame.
3084 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3085 fixed augmentation handling, added relative addressing,
3086 ignore duplicate FDEs. Added comments.
3087 * dwarf2cfi.c: Reindented.
3088
3089 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3090
3091 * event-top.c (command_handler): Don't use space_at_cmd_start
3092 unless there is sbrk() on the host. Assign time and space data
3093 to union fields of the appropriate length.
3094
3095 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3096
3097 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3098 x86_64_register_name. Return type changed to 'const char *'.
3099 (x86_64_register_name2nr): Rename to x86_64_register_number.
3100 (x86_64_gdbarch_init): Update to reflect the change.
3101 * x86-64-tdep.h: Ditto.
3102 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3103 (supply_fpregset): Ditto.
3104
3105 2002-06-19 Andrew Cagney <cagney@redhat.com>
3106
3107 * regcache.h: Update copyright.
3108 (struct regcache, struct gdbarch): Add opaque declarations.
3109 (current_regcache): Declare global variable.
3110 (regcache_read, regcache_write): Add gdbarch parameter.
3111 (regcache_save, regcache_save_no_passthrough)
3112 (regcache_restore, regcache_restore_no_passthrough)
3113 (regcache_dup, regcache_dup_no_passthrough)
3114 (regcache_cpy, regcache_cpy_no_passthrough)
3115 (deprecated_grub_regcache_for_registers)
3116 (deprecated_grub_regcache_for_register_valid)
3117 (regcache_valid_p): Add function declarations.
3118
3119 * regcache.c: Update copyright.
3120 (regcache_descr_handle): New global variable.
3121 (struct regcache_descr): Define.
3122 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3123 (regcache_descr, xfree_regcache_descr): New functions.
3124 (struct regcache): Define.
3125 (regcache_xmalloc, regcache_xfree): New functions.
3126 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3127 (regcache_dup, regcache_dup_no_passthrough): New functions.
3128 (regcache_valid_p, regcache_read_as_address): New functions.
3129 (deprecated_grub_regcache_for_registers): New function.
3130 (deprecated_grub_regcache_for_register_valid): New function.
3131 (current_regcache): New global variable.
3132 (register_buffer): Add regcache parameter. Update calls.
3133 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3134 (read_register_gen, write_register_gen): Update register_buffer
3135 call. Test for legacy_p instead of gdbarch_register_read_p or
3136 gdbarch_register_write_p.
3137 (regcache_collect): Update register_buffer call.
3138 (build_regcache): Rewrite. Use deprecated grub functions.
3139 (regcache_save, regcache_save_no_passthrough): New functions.
3140 (regcache_restore, regcache_restore_no_passthrough): New
3141 functions.
3142 (_initialize_regcache): Create the regcache_data_handle. Swap
3143 current_regcache global variable.
3144
3145 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3146 parameter to regcache_read and regcache_write calls.
3147 (sh4_register_read): Ditto.
3148 (sh64_pseudo_register_read): Ditto.
3149 (sh64_register_read): Ditto.
3150 (sh_pseudo_register_write): Ditto.
3151 (sh4_register_write): Ditto.
3152 (sh64_pseudo_register_write): Ditto.
3153 (sh64_register_write): Ditto.
3154
3155 * defs.h (XCALLOC): Define.
3156
3157 2002-06-19 Grace Sainsbury <graces@redhat.com>
3158
3159 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3160 * m68k-tdep.c (m68k_gdbarch_init): Added.
3161 (m68k_dump_tdep): Added.
3162
3163 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3164
3165 * ada-lang.c (fill_in_ada_prototype): Update comment.
3166
3167 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3168
3169 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3170 MIPS_ABI_LAST.
3171 (mips_abi_string, mips_abi_strings): New.
3172 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3173 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3174 tdep->mips_abi_string. Honor mips_abi_string. Default to
3175 O32 if no ABI is found.
3176 (mips_dump_tdep): Use mips_abi_strings.
3177 (mips_abi_update): New function.
3178 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3179 ``set mips abi'' and ``show mips abi''. Check the size of
3180 mips_abi_strings.
3181
3182 2002-06-19 Andrew Cagney <cagney@redhat.com>
3183
3184 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3185 constant.
3186
3187 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3188
3189 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3190 current frame using only the first stack size adjustment. All
3191 subsequent size adjustments are not considered to be part of
3192 the "static" part of the current frame.
3193 Compute the address of the saved registers relative to the
3194 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3195 in use in this frame.
3196
3197 2002-06-18 Don Howard <dhoward@redhat.com>
3198
3199 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3200 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3201 suggesting this solution.
3202
3203 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3204
3205 * config/romp/xm-rtbsd.h: Delete file.
3206 * config/romp/rtbsd.mh: Delete file.
3207
3208 2002-06-18 Keith Seitz <keiths@redhat.com>
3209
3210 * breakpoint.c (condition_command): Post breakpoint_modify
3211 when a condition is added to an existing breakpoint.
3212 (commands_command): Likewise for commands.
3213 (set_ignore_count): Likewise for ignore counts.
3214 If no tty, do not simply return, still need to send event
3215 notification.
3216 (ignore_command): Only print a newline if the command came
3217 from a tty.
3218 Don't call breakpoints_changed, since this is now properly
3219 handled by set_ignore_count.
3220
3221 2002-06-18 Andrew Cagney <cagney@redhat.com>
3222
3223 * MAINTAINERS: Note that cris-elf target can be compiled with
3224 -Werror.
3225 * cris-tdep.c (cris_register_name): Make return type constant.
3226 (cris_breakpoint_from_pc): Ditto.
3227
3228 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3229
3230 * frame.h (struct frame_info): Change type of context to
3231 'struct context'.
3232
3233 2002-06-17 Andrew Cagney <cagney@redhat.com>
3234
3235 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3236 pointer.
3237 * gdbarch.h, gdbarch.c: Regenerate.
3238 * config/mips/tm-mips.h (mips_register_name): Update.
3239 * i386-tdep.h (i386_register_name): Update.
3240 * mips-tdep.c (mips_register_name): Update
3241 * alpha-tdep.c (alpha_register_name): Update.
3242 * arch-utils.c (legacy_register_name): Update.
3243 * arch-utils.h (legacy_register_name): Update.
3244 * avr-tdep.c (avr_register_name): Update.
3245 * ia64-tdep.c (ia64_register_name): Update.
3246 * i386-tdep.c (i386_register_name): Update.
3247 * sparc-tdep.c (sparc32_register_name): Update.
3248 (sparc64_register_name): Update.
3249 (sparclite_register_name): Update.
3250 (sparclet_register_name): Update.
3251 * sh-tdep.c (sh_generic_register_name): Update.
3252 (sh_sh_register_name): Update.
3253 (sh_sh3_register_name): Update.
3254 (sh_sh3e_register_name): Update.
3255 (sh_sh_dsp_register_name): Update.
3256 (sh_sh3_dsp_register_name): Update.
3257 (sh_sh4_register_name): Update.
3258 (sh_sh64_register_name): Update.
3259 * s390-tdep.c (s390_register_name): Update.
3260 * rs6000-tdep.c (rs6000_register_name): Update.
3261 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3262 (ns32k_register_name_32382): Update.
3263 * d10v-tdep.c (d10v_ts2_register_name): Update.
3264 (d10v_ts3_register_name): Update.
3265 * xstormy16-tdep.c (xstormy16_register_name): Update.
3266 * vax-tdep.c (vax_register_name): Update.
3267 * v850-tdep.c (v850_register_name): Update.
3268 * m68hc11-tdep.c (m68hc11_register_name): Update.
3269 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3270 (am33_register_name): Update.
3271
3272 2002-06-17 Grace Sainsbury <graces@redhat.com>
3273
3274 * m68k-tdep.c: Reindented.
3275
3276 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3277
3278 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3279 list of predefined types.
3280
3281 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3282
3283 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3284 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3285 REGISTER_CONVERT_TO_RAW): Remove defines.
3286 (i386_register_virtual_type, i386_register_convertible,
3287 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3288 Remove prototypes.
3289 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3290 macros mentioned above.
3291
3292 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3293 (i386lynx_saved_pc_after_call): Remove prototype.
3294 * i386ly-tdep.c: Include "i386-tdep.h".
3295 (i386lynx_saved_pc_after_call): Make static. Use
3296 read_memory_nobpt instead of read_memory. Use
3297 read_memory_unsigned_integer instead of read_memory_integer.
3298 (i386lynx_init_abi): New function.
3299 (i386lynx_coff_osabi_sniffer): New function.
3300 (_initialize_i386bsd_tdep): New function.
3301
3302 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3303 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3304 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3305 (i386_fix_call_dummy): Remove prototype.
3306 * i386-tdep.c (i386_call_dummy_words): New variable.
3307 (i386_gdbarch_init): Adjust for removal of the
3308 macros mentioned above.
3309
3310 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3311
3312 * command.h (add_setshow_auto_boolean_cmd): Replace
3313 add_set_auto_boolean_cmd.
3314 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3315 add_set_auto_boolean_cmd.
3316 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3317 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3318 mask-address'' command.
3319 (show_mask_address): Add cmd parameter.
3320 * remote.c (add_packet_config_cmd): Update. Change type of
3321 set_func and show_func to cmd_sfunc_ftype.
3322 (_initialize_remote): Update `set remote Z-packet'
3323 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3324 (show_remote_protocol_e_packet_cmd): Ditto.
3325 (show_remote_protocol_E_packet_cmd): Ditto.
3326 (show_remote_protocol_P_packet_cmd): Ditto.
3327 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3328 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3329 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3330 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3331 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3332 (show_remote_protocol_Z_packet_cmd): Ditto.
3333 (show_remote_protocol_binary_download_cmd): Ditto.
3334 (show_remote_cmd): Pass NULL to all of above.
3335
3336 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3337
3338 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3339 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3340 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3341 POP_FRAME): Remove defines.
3342 (i386_push_arguments, i386_store_struct_return,
3343 i386_extract_return_value, i386_store_return_value,
3344 i386_extract_struct_value_address, i386_push_dummy_frame,
3345 i386_pop_frame): Renove prototypes.
3346 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3347 macros mentioned above.
3348
3349 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3350
3351 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3352 add_set_boolean_cmd.
3353 (add_setshow_cmd): New function.
3354 * command.h (add_setshow_boolean_cmd): Replace
3355 add_set_boolean_cmd.
3356 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3357 and ``set rdiromatzero''.
3358 * maint.c (_initialize_maint_cmds): Update commented out code.
3359 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3360 * target.c (initialize_targets): Update `set
3361 trust-readonly-sections'.
3362 * remote.c (_initialize_remote): Update `set remotebreak'.
3363
3364 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3365
3366 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3367 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3368 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3369 fit into multi-arch framework.
3370 (i386_breakpoint_from_pc): New function.
3371 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3372 above.
3373
3374 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3375 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3376 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3377 (i386_frameless_function_invocation, i386_frame_num_args,
3378 i386_frame_init_saved_regs): Remove prototypes.
3379 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3380 macros mentioned above.
3381
3382 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3383
3384 * cli/cli-decode.c (set_cmd_cfunc): Update.
3385 (set_cmd_sfunc): Update.
3386 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3387 (set_cmd_sfunc, set_cmd_cfunc): Update.
3388 * cli/cli-decode.h: Update.
3389
3390 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3391
3392 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3393 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3394
3395 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3396
3397 * defs.h (auto_boolean): Declare enum.
3398 * command.h (cmd_auto_boolean): Delete enum.
3399 * mips-tdep.c (mask_address_var): Update.
3400 (mips_mask_address_p): Update.
3401 (show_mask_address): Update.
3402 * remote.c (struct packet_config): Update.
3403 (update_packet_config): Update.
3404 (show_packet_config_cmd): Update.
3405 (packet_ok): Update.
3406 (add_packet_config_cmd): Update.
3407 (_initialize_remote):
3408 * command.h: Update.
3409 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3410 (do_setshow_command): Update.
3411 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3412 * cli/cli-decode.h: Update.
3413
3414 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3415
3416 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3417 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3418 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3419 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3420 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3421 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3422
3423 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3424 list of DJGPP COFF targets.
3425
3426 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3427 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3428 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3429 (FP0_REGNUM): Remove define.
3430 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3431 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3432 (i386_register_virtual_size): Remove protoype.
3433 * i386-tdep.c (i386_register_virtual_size): Removed.
3434 (i386_extract_return_value, i386_store_return_value): Use
3435 FP0_REGNUM instead of NUM_FREGS to determine whether the
3436 floating-point registers are available.
3437 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3438 Adjust for removal of macros mentioned above.
3439
3440 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3441
3442 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3443 comments.
3444 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3445 Remove prototypes.
3446 (supply_gregset, fill_gregset): Remove use of register keyword and
3447 remove declaration for regmap. Use I386_NUM_GREGS instead of
3448 NUM_REGS and NUM_FREGS.
3449 (FPREGSET_FSAVE_OFFSET): Remove.
3450 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3451 NUM_FREGS to determine whether the floating-point registers are
3452 available.
3453
3454 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3455 gnu_store_registers): Replace usage of NUM_GREGS with
3456 I386_NUM_GREGS.
3457
3458 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3459 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3460 usage of NUM_GREGS with I386_NUM_GREGS.
3461
3462 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3463
3464 * i386bsd-nat.c: Include "i386-tdep.h".
3465 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3466 I386_NUM_GREGS.
3467
3468 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3469 and associated comment. They no longer make any sense, since we
3470 don't use this file anymore on Linux.
3471
3472 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3473 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3474 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3475 elements in these arrays.
3476 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3477 MAX_NUM_REGS.
3478
3479 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3480
3481 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3482 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3483
3484 2002-06-14 Andrew Cagney <cagney@redhat.com>
3485
3486 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3487 EXTRACT_RETURN_VALUE.
3488 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3489 EXTRACT_STRUCT_VALUE_ADDRESS.
3490 * gdbarch.h, gdbarch.c: Regenerate.
3491
3492 * values.c (value_being_returned): Handle
3493 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3494 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3495
3496 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3497 * arm-tdep.c (arm_gdbarch_init): Update.
3498 * avr-tdep.c (avr_gdbarch_init): Update.
3499 * cris-tdep.c (cris_gdbarch_init): Update.
3500 * d10v-tdep.c (d10v_gdbarch_init): Update.
3501 * ia64-tdep.c (ia64_gdbarch_init): Update.
3502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3503 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3504 * s390-tdep.c (s390_gdbarch_init): Update.
3505 * sh-tdep.c (sh_gdbarch_init): Update.
3506 * s390-tdep.c (s390_gdbarch_init): Update.
3507 * sparc-tdep.c (sparc_gdbarch_init): Update.
3508 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3509 * v850-tdep.c (v850_gdbarch_init): Update.
3510 * vax-tdep.c (vax_gdbarch_init): Update.
3511 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3512 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3513
3514 * config/arc/tm-arc.h: Update.
3515 * config/d30v/tm-d30v.h: Update.
3516 * config/fr30/tm-fr30.h: Update.
3517 * config/h8300/tm-h8300.h: Update.
3518 * config/h8500/tm-h8500.h: Update.
3519 * config/i386/tm-i386.h: Update.
3520 * config/i386/tm-ptx.h: Update.
3521 * config/i386/tm-symmetry.h: Update.
3522 * config/i960/tm-i960.h: Update.
3523 * config/m32r/tm-m32r.h: Update.
3524 * config/m68k/tm-delta68.h: Update.
3525 * config/m68k/tm-linux.h: Update.
3526 * config/m68k/tm-m68k.h: Update.
3527 * config/m88k/tm-m88k.h: Update.
3528 * config/mcore/tm-mcore.h: Update.
3529 * config/mips/tm-mips.h: Update.
3530 * config/mn10200/tm-mn10200.h: Update.
3531 * config/pa/tm-hppa.h: Update.
3532 * config/pa/tm-hppa64.h: Update.
3533 * config/sparc/tm-sp64.h: Update.
3534 * config/sparc/tm-sparc.h: Update.
3535 * config/sparc/tm-sparclet.h: Update.
3536 * config/z8k/tm-z8k.h: Update.
3537
3538 2002-06-14 Andrew Cagney <cagney@redhat.com>
3539
3540 * Makefile.in (i386_linux_tdep_h): Define.
3541 (i386_tdep_h, i387_tdep_h): Define.
3542 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3543 $(i386_tdep_h) and $(i387_tdep_h).
3544 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3545
3546 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3547
3548 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3549 Already covered by the default.
3550
3551 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3552 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3553 (i386_gdbarch_init): Initialize long_double_format and long_double
3554 bit.
3555
3556 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3557 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3558 Move these to ...
3559 * config/i386/i386sol2.mh: ... here.
3560 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3561 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3562 (SIGCONTEXT_PC_OFFSET): Remove define.
3563 (IN_SIGTRAMP): Remove define.
3564 * i386-sol2-tdep.c: New file.
3565
3566 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3567 * config/i386/tm-i386nw.h: Removed.
3568
3569 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3570 USE_STRUCT_CONVENTION): Remove defines.
3571 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3572 (get_longjmp_target): Remove prototype.
3573 (IN_SIGTRAMP): Remove define.
3574 (i386bsd_in_sigtramp): Remove prototype.
3575 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3576 function. Update comment accordingly
3577 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3578 (FRAME_SAVED_PC): Remove define.
3579 (i386bsd_frame_saved_pc): Remove prototype.
3580 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3581 GET_LONGJMP_TARGET): Remove defines.
3582 (get_longjmp_target): Remove prototype.
3583 (IN_SIGTRAMP): Remove define.
3584 (i386bsd_in_sigtramp): Remove prototype.
3585 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3586 function. Update comment accordingly
3587 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3588 (FRAME_SAVED_PC): Remove define.
3589 (i386bsd_frame_saved_pc): Remove prototype.
3590 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3591 Remove prototype.
3592 (USE_STRUCT_CONVENTION): Remove prototype.
3593 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3594 declaration.
3595 (_initialize_i386bsd_nat): Revise logic to determine some
3596 constants at compile time when compiling a native GDB. Warn if
3597 things don't match up with what we expect.
3598 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3599 Remove variables.
3600 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3601 to use date stored in `struct gdbarch_tdep'.
3602 (i386bsd_sigcontext_offset): Remove varaible.
3603 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3604 stored in `struct gdbarch_tdep'.
3605 (i386bsd_frame_saved_pc): Make static.
3606 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3607 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3608 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3609 i386fbsd4_sc_pc_offset): New variables.
3610 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3611 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3612 functions.
3613 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3614 functions.
3615 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3616 Modify the value of i386fbsd_sigtramp_start and
3617 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3618 i386fbsd_sigtramp_end.
3619 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3620 function.
3621
3622 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3623 define to i386-linux-tdep.h.
3624 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3625 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3626 defines.
3627 (i386_linux_register_name, i386_linux_register_byte,
3628 i386_linux_register_raw_size): Remove prototypes.
3629 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3630 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3631 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3632 TARGET_WRITE_PC): Remove defines.
3633 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3634 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3635 i386_linux_write_pc): Remove prototypes.
3636 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3637 (get_longjmp_target): Remove prototype.
3638 * i386-linux-tdep.h: New file.
3639 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3640 * i386-linux-tdep.c: Include "i386-tdep.h" and
3641 "i386-linux-tdep.h".
3642 (i386_linux_register_name, i386_linux_register_byte,
3643 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3644 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3645 Make static.
3646 (i386_linux_init_abi): New function.
3647 (_initialize_i386_linux_tdep): New function.
3648
3649 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3650 (i386_saved_pc_after_call): Remove prototype.
3651 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3652 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3653 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3654 (i386_register_name, i386_stab_reg_to_regnum,
3655 i386_dwarf_reg_to_regnum): Remove prototypes.
3656 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3657 SIZEOF_SSE_REGS): Remove defines.
3658 (REGISTER_BYTES): Remove define.
3659 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3660 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3661 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3662 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3663 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3664 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3665 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3666 (get_longjmp_target): Remove prototype.
3667 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3668 (sigtramp_saved_pc): Remove define.
3669 (i386v4_sigtramp_saved_pc): Remove prototype.
3670 * config/i386/tm-go32.h (FRAME_CHAIN,
3671 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3672 (i386go32_frame_saved_pc): Remove prototype.
3673 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3674 (get_longjmp_target): Remove prototype.
3675 * i386-tdep.h: Include "osabi.h".
3676 (enum i386_abi): Removed.
3677 (enum struct_return): New enum.
3678 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3679 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3680 sc_pc_offset members.
3681 (i386_gdbarch_register_os_abi): Remove prototype.
3682 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3683 I386_SSE_NUM_REGS): New defines.
3684 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3685 I386_SSE_SIZEOF_REGS): New defines.
3686 (i386_register_name, i386_register_byte, i386_register_raw_size):
3687 New prototypes.
3688 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3689 (i386bsd_sigtramp_saved_pc): New prototype.
3690 * i386-tdep.c: Don't include "elf-bfd.h".
3691 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3692 i386_frame_chain, i386_saved_pc_after_call): Make static.
3693 (i386_frame_saved_pc): Rewrite to call architecture dependent
3694 function to deal with signal handlers. Make static.
3695 (i386go32_frame_saved_pc): Removed.
3696 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3697 Removed.
3698 (i386_get_longjmp_target): New function.
3699 (default_struct_convention, pcc_struct_convention,
3700 reg_struct_convention, valid_conventions, struct_convention): New
3701 variables.
3702 (i386_use_struct_convention): New function.
3703 (i386v4_sigtramp_saved_pc): Renamed to
3704 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3705 (i386_pc_in_sigtramp): New function.
3706 (i386_abi_names): Removed.
3707 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3708 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3709 Removed.
3710 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3711 i386_gdbarch_register_os_abi): Removed.
3712 (struct i386_abi_handler): Removed.
3713 (i386_abi_handler_list): Removed.
3714 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3715 functions.
3716 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3717 i386_nw_init_abi): New functions.
3718 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3719 Use set_gdbarch_xxx() calls instead of relying on macros for a
3720 number of calls.
3721 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3722 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3723 Register the various architecture variants defined in this file.
3724
3725 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3726
3727 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3728 (struct main_type): Remove arg_types member. Update comments for
3729 struct field.
3730 (TYPE_ARG_TYPES): Remove.
3731 (TYPE_FN_FIELD_ARGS): Update.
3732 (smash_to_method_type): Update prototype.
3733
3734 * c-typeprint.c (cp_type_print_method_args): Take method type
3735 instead of argument list. Use new argument layout. Simplify.
3736 (c_type_print_args): Use new argument layout. Simplify.
3737 (c_type_print_base): Update call to cp_type_print_method_args.
3738 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3739 argument; use die->type instead. Update call to
3740 smash_to_method_type.
3741 (read_structure_scope): Update call to dwarf2_add_member_fn.
3742 * gdbtypes.c (allocate_stub_method): Update comment.
3743 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3744 Use new argument layout.
3745 (check_stub_method): Use new argument layout. Don't count
3746 void as an argument.
3747 (print_arg_types): Update comments. Use new argument layout.
3748 (recursive_dump_type): Don't print arg_types member.
3749 * hpread.c (hpread_read_struct_type): Use new argument layout.
3750 (fixup_class_method_type): Likewise.
3751 (hpread_type_lookup): Likewise.
3752 * stabsread.c (read_type): Update calls to read_args and
3753 smash_to_method_type.
3754 (read_args): Use new argument layout. Simplify.
3755 * valops.c (typecmp): Use new argument layout. Update parameters
3756 and comments. Simplify.
3757 (hand_function_call): Use new argument layout.
3758 (search_struct_method): Update call to typecmp.
3759 (find_overload_match): Use new argument layout.
3760
3761 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3762
3763 * NEWS: Mention multithreaded debug support for gdbserver.
3764
3765 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3766
3767 * MAINTAINERS: Mention NEWS.
3768
3769 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3770
3771 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3772 (struct mips_objfile_private, compare_pdr_entries): New.
3773 (non_heuristic_proc_desc): Read the ".pdr" section if it
3774 is present.
3775
3776 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3777
3778 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3779 (arm_debug): New static variable.
3780 (_initialize_arm_tdep): Add ``set debug arm'' command.
3781
3782 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3783
3784 * Makefile.in (sim_arm_h): Define.
3785 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3786 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3787 (arm_register_sim_regno): New function, map an internal REGNUM
3788 onto a simulator register number.
3789 (arm_gdbarch_init): Set register_sim_regno.
3790
3791 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3792
3793 * MAINTAINERS: Add self.
3794
3795 2002-06-11 Jim Blandy <jimb@redhat.com>
3796
3797 * source.c (source_info): Mention whether the symtab has
3798 information about preprocessor macros.
3799
3800 Call the command `info macro', not `show macro'.
3801 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3802 Fix error message.
3803 (_initialize_macrocmd): Register `info_macro_command' in
3804 `infolist', not `showlist'.
3805
3806 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3807
3808 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3809 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3810 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3811 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3812 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3813 unconditionally.
3814 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3815 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3816 (_initialize_mips_tdep): Remove dead code.
3817 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3818 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3819 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3820 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3821 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3822 MIPS_LAST_FP_ARG_REGNUM): Remove.
3823
3824 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3825
3826 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3827 (unwind_tmp_obstack_free, parse_frame_info)
3828 (update_context, cfi_read_fp, cfi_write_fp)
3829 (cfi_frame_chain, cfi_init_extra_frame_info)
3830 (cfi_virtual_frame_pointer): Use the above function.
3831 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3832
3833 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3834
3835 * v850-tdep.c (v850_type_is_scalar): New function.
3836 (v850_use_struct_convention): Match current gcc implementation
3837 as close as possible.
3838 (v850_push_arguments): Fix stack_offset handling. Don't write
3839 struct_addr into register. This is done by v850_store_struct_return.
3840 (v850_extract_return_value): Care for structs.
3841 (v850_store_return_value): Ditto.
3842 (v850_store_struct_return): Actually write address.
3843
3844 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3845
3846 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3847 without debug information too.
3848
3849 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3850
3851 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3852 Make multi-arch pure.
3853 * gdbarch.h, gdbarch.c: Re-generate.
3854 * arm-tdep.c (arm_print_float_info): Update.
3855 * arch-utils.h (default_print_float_info): Update.
3856 * arch-utils.c (default_print_float_info): Update.
3857 * infcmd.c (float_info): Update call.
3858
3859 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3860
3861 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3862 the front of the initialize list.
3863
3864 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3865
3866 * infrun.c (struct inferior_status): Replace fields
3867 selected_frame_address and selected_level with field
3868 selected_frame_id.
3869 (save_inferior_status): Update. Use get_frame_id.
3870 (struct restore_selected_frame_args): Delete.
3871 (restore_selected_frame): Update. Use frame_find_by_id.
3872 (restore_inferior_status): Update.
3873
3874 * breakpoint.h (struct breakpoint): Change type of
3875 watchpoint_frame to frame_id.
3876 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3877 call to get_current_frame.
3878 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3879 get_current_frame.
3880 (watchpoint_check): Use frame_find_by_id.
3881
3882 * frame.h (record_selected_frame): Delete declaration.
3883 * stack.c (record_selected_frame): Delete function.
3884
3885 * frame.h (struct frame_id): Define.
3886 (get_frame_id): Declare.
3887 (frame_find_by_id): Declare.
3888 * frame.c (frame_find_by_id): New function.
3889 (get_frame_id): New function.
3890
3891 2002-06-10 Andrey Volkov <avolkov@transas.com>
3892
3893 * ser-e7kpc.c: Fix duplicated define and call of
3894 _initialize_ser_e7000pc
3895
3896 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3897
3898 * signals/signals.c (target_signal_from_host): Fix #ifdef
3899 SIGRTMIN case.
3900 (do_target_signal_to_host): Likewise.
3901
3902 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3903
3904 * mips-tdep.c (mips_find_abi_section): New function.
3905 (mips_gdbarch_init): Call it.
3906
3907 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3908
3909 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3910 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3911 after Andrew's 2002-06-08 gdbarch change.
3912
3913 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3914
3915 * i386-linux-nat.c (suppy_gregset): Don't supply
3916 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3917 register cache.
3918 (fill_gregset): Don't fetch it under the same circumstances.
3919
3920 2002-06-09 Andrew Cagney <cagney@redhat.com>
3921
3922 * Makefile.in (callback_h): Define.
3923 (remote_sim_h): Update path to remote-sim.h.
3924 (remote-rdp.o): Add $(callback_h).
3925 (remote-sim.o): Use $(callback_h).
3926 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3927 * remote-rdp.c: Include "gdb/callback.h".
3928
3929 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3930
3931 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3932 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3933
3934 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3935
3936 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3937 * rdi-share/serpardr.c: Ditto.
3938 * rdi-share/unixcomm.c: Ditto.
3939 * rdi-share/serdrv.c: Ditto.
3940 * rdi-share/hostchan.h: Ditto.
3941 * rdi-share/hostchan.c: Ditto.
3942 * rdi-share/host.h: Ditto.
3943 * rdi-share/devsw.c: Ditto.
3944
3945 * objfiles.h: Change type of obj_private to void pointer.
3946 * pa64solib.c: Update copyright. Don't include "assert.h", use
3947 strcmp instead of STREQ, use LONGEST, do not use PTR
3948 * somsolib.c: Ditto.
3949
3950 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3951 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3952 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3953
3954 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3955
3956 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3957 (default_get_saved_register): Delete function.
3958 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3959 generic_unwind_get_saved_register.
3960 * gdbarch.h, gdbarch.c: Re-generate.
3961
3962 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3963
3964 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3965 generic_func_frame_chain_valid.
3966 * gdbarch.h, gdbarch.c: Re-generate.
3967 * blockframe.c (generic_func_frame_chain_valid): Only check
3968 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3969 passing FP to PC_IN_CALL_DUMMY.
3970 Fix PR gdb/360.
3971
3972 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3973
3974 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3975 (register_gdbarch_data): Initialize init_p.
3976 (gdbarch_data): Initialize data pointer using the init function.
3977 (init_gdbarch_data): Delete function.
3978 (gdbarch_update_p): Update.
3979 (initialize_non_multiarch): Update.
3980 (struct gdbarch): Add field initialized_p.
3981 * gdbarch.h, gdbarch.c: Re-generate.
3982
3983 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3984
3985 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3986 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3987 better do the things actually here.
3988 * x86-64-tdep.c (x86_64_register_name2nr): New.
3989 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3990 (x86_64_gdbarch_init): Respect the above change.
3991 * x86-64-tdep.h (x86_64_register_name2nr)
3992 (x86_64_register_nr2name): Add prototypes.
3993 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3994
3995 2002-06-06 Michael Snyder <msnyder@redhat.com>
3996
3997 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3998 Delete extra braces and re-indent.
3999 (d10v_store_return_value): Char return values
4000 must be shifted over by one byte in R0.
4001 (d10v_extract_return_value): Delete extra braces, re-indent.
4002
4003 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4004
4005 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4006 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4007 (d10v_integer_to_address): Rewrite.
4008 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4009 the d10v specific functions which take care of converting to the
4010 correct space.
4011
4012 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4013
4014 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4015 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4016
4017 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4018
4019 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4020 includes.
4021 * config/tm-linux.h: Ditto.
4022 * config/alpha/tm-alphalinux.h: Ditto.
4023 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4024 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4025 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4026 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4027 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4028 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4029 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4030 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4031 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4032 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4033 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4034 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4035 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4036 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4037 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4038 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4039 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4040 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4041 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4042 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4043 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4044 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4045 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4046 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4047 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4048 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4049 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4050 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4051 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4052 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4053 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4054 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4055 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4056 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4057 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4058 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4059 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4060
4061 2002-05-04 Aidan Skinner <aidan@velvet.net>
4062
4063 * ada-exp.tab.c: New file
4064 * ada-exp.y: New file
4065 * ada-lang.c: New file
4066 * ada-lang.h: New file
4067 * ada-lex.c: New file
4068 * ada-lex.l: New file
4069 * ada-tasks.c: New file
4070 * ada-typeprint.c: New file
4071 * ada-valprint.c: New file
4072
4073 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4074
4075 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4076 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4077
4078 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4079
4080 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4081 insetead of ppc-linux-tdep.o.
4082 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4083 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4084
4085 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4086
4087 2002-05-07 Christian Groessler <chris@groessler.org>
4088 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4089 bit register contents for little endian hosts.
4090
4091 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4092
4093 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4094 any maintainer.
4095
4096 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4097
4098 * gdbarch.h: Regenerate.
4099
4100 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4101
4102 * MAINTAINERS: Add everyone to write-after-approval list.
4103
4104 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4105
4106 * stack.c (frame_info): Use frame_register_unwind instead of
4107 saved_regs. Mention when the SP is on the stack or in a register.
4108
4109 * frame.h (frame_register_unwind_ftype): Define. Document.
4110 (struct frame_info): Add field register_unwind and
4111 register_unwind_cache.
4112 (frame_register_unwind): Declare.
4113 (generic_unwind_get_saved_register): Declare.
4114
4115 * frame.c (frame_register_unwind): New function.
4116 (generic_unwind_get_saved_register): New function.
4117
4118 * blockframe.c (generic_call_dummy_register_unwind): New function.
4119 (frame_saved_regs_register_unwind): New function.
4120 (set_unwind_by_pc): New function.
4121 (create_new_frame): New function.
4122 (get_prev_frame): New function.
4123
4124 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4125
4126 * a29k-share/: Delete directory.
4127 * remote-vx29k.c: Delete file.
4128
4129 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4130
4131 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4132 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4133
4134 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4135
4136 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4137 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4138 (sparc64nbsd-nat.o)
4139 (sparcnbsd-nat.o)
4140 (sparcnbsd-tdep.o): New dependency lists.
4141 * NEWS: Note new UltraSPARC NetBSD native configuration.
4142 * configure.host (sparc64-*-netbsd*): New host.
4143 * configure.tgt (sparc-*-netbsdelf*)
4144 (sparc-*-netbsd*): Set gdb_target to nbsd.
4145 (sparc64-*-netbsd*): New target.
4146 * sparc64nbsd-nat.c: New file.
4147 * sparcnbsd-nat.c: New file.
4148 * sparcnbsd-tdep.c: New file.
4149 * sparcnbsd-tdep.h: New file.
4150 * config/sparc/nbsd.mt: New file.
4151 * config/sparc/nbsd64.mh: New file.
4152 * config/sparc/nbsd64.mt: New file.
4153 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4154 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4155 (HOST_IPC): Remove.
4156 * config/sparc/nbsdaout.mt: Remove.
4157 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4158 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4159 (HOST_IPC): Remove.
4160 * config/sparc/nbsdelf.mt: Remove.
4161 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4162 sparc-nat.c compatiblity defines.
4163 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4164 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4165 * config/sparc/tm-nbsd64.h: New file.
4166 * config/sparc/tm-nbsdaout.h: Remove.
4167 * config/sparc/xm-nbsd.h: Remove.
4168
4169 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4170
4171 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4172 * sparc-tdep.c: Include osabi.h.
4173 (gdbarch_tdep): Add osabi member.
4174 (_initialize_sparc_tdep): Use gdbarch_register.
4175 (sparc_gdbarch_init): Use generic OS ABI framework.
4176 (sparc_dump_tdep): New function.
4177
4178 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4179
4180 * corefile.c (do_captured_read_memory_integer): Return non-zero
4181 result.
4182 (safe_read_memory_integer): Copy result of memory read when
4183 status is non-zero. Also, add comments.
4184
4185 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4186
4187 * Makefile.in (ppc_tdep_h): Define.
4188 (ppc-linux-nat.o)
4189 (ppc-linux-tdep.o)
4190 (rs6000-tdep.o): Use $(ppc_tdep_h).
4191 (ppc-sysv-tdep.o)
4192 (ppcnbsd-nat.o)
4193 (ppcnbsd-tdep.o): New dependency lists.
4194 * ppc-tdep.h: Use generic OS ABI framework.
4195 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4196 (ppc_linux_init_abi): New functions.
4197 (ppc_sysv_abi_broken_use_struct_convention)
4198 (ppc_sysv_abi_use_struct_convention)
4199 (ppc_sysv_abi_push_arguments): Move to...
4200 * ppc-sysv-tdep.c: ...here.
4201 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4202 * rs6000-tdep.c (process_note_abi_tag_sections)
4203 (get_elfosabi): Remove.
4204 (rs6000_gdbarch_init): Use generic OS ABI framework.
4205 (rs6000_dump_tdep): New function.
4206 (_initialize_rs6000_tdep): Use gdbarch_register.
4207 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4208 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4209 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4210 of ppc-linux-tdep.o.
4211 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4212 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4213 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4214 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4215 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4216 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4217
4218 2002-05-29 Jim Blandy <jimb@redhat.com>
4219
4220 * macroscope.c (default_macro_scope): Put `void' in empty argument
4221 list.
4222
4223 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4224
4225 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4226 * arch-utils.c: Include "sim-regno.h".
4227 * gdbarch.sh: Don't include "sim-regno.h".
4228 * gdbarch.h, gdbarch.c: Regenerate.
4229 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4230 here.
4231 * arch-utils.h (legacy_register_sim_regno): To here.
4232 * remote-sim.c (legacy_register_sim_regno): Move function from
4233 here.
4234 * arch-utils.c (legacy_register_sim_regno): To here.
4235
4236 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4237
4238 * sim-regno.h: New file.
4239 * Makefile.in (sim_regno_h): Define.
4240 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4241 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4242 (legacy_register_sim_regno): New function.
4243 (one2one_register_sim_regno): New function.
4244 (gdbsim_fetch_register): Rewrite.
4245 (gdbsim_store_register): Only store a register when
4246 REGISTER_SIM_REGNO is valid.
4247 * d10v-tdep.c: Include "sim-regno.h".
4248 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4249 (d10v_ts3_register_sim_regno): Ditto.
4250 * gdbarch.sh: Include "sim-regno.h".
4251 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4252 * gdbarch.h, gdbarch.c: Regenerate.
4253 * arch-utils.h (default_register_sim_regno): Delete declaration.
4254 * arch-utils.c (default_register_sim_regno): Delete function.
4255
4256 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4257
4258 * ppcnbsd-nat.c: Rewrite.
4259 * ppcnbsd-tdep.c: New file.
4260 * ppcnbsd-tdep.h: New file.
4261 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4262 solib.o, and solib-svr4.o.
4263 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4264 nbsd-tdep.o, and corelow.o.
4265
4266 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4267
4268 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4269 `tr' and `sed'. Mention that `broken' targets are not expected to
4270 build.
4271
4272 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4273
4274 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4275 Let PC point right after the prologue before looking up symbols.
4276
4277 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4278
4279 * i386-tdep.c (i386_register_virtual_type): Return
4280 builtin_type_vec128i for SSE registers.
4281
4282 * gdbtypes.h (builtin_type_vec128i): Declare.
4283
4284 * gdbtypes.c (build_builtin_type_vec128i): New function.
4285 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4286 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4287 (build_gdbtypes): Initialize new builtin vector types.
4288 (_initialize_gdbtypes): Register new vector types with gdbarch.
4289
4290 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4291
4292 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4293 since it has been multi-arch'd.
4294 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4295 Move Alpha and VAX multi-arch news entries to same section
4296 as other multi-arch news.
4297
4298 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4299
4300 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4301 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4302 static. Rename some register numbers to put them in ns32k-tdep
4303 private namespace.
4304 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4305 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4306 functions.
4307 (_initialize_ns32k_tdep): Use gdbarch_register.
4308 * ns32k-tdep.h: New file.
4309 * ns32knbsd-tdep.c: New file.
4310 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4311 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4312 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4313 REGISTER_BYTES, REGISTER_BYTE): Remove.
4314 * config/ns32k/tm-ns32k.h: New file.
4315 * config/ns32k/tm-umax.h: Remove.
4316
4317 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4318
4319 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4320 ns32k_store_struct_return, ns32k_extract_return_value,
4321 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4322 functions.
4323 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4324 ns32k_saved_pc_after_call.
4325 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4326 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4327 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4328 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4329 ns32k_extract_struct_value_address.
4330
4331 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4332
4333 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4334 ns32k_fix_call_dummy): New.
4335 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4336 ns32k_call_dummy_words.
4337 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4338 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4339 CALL_DUMMY_NARGS): Remove.
4340 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4341
4342 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4343
4344 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4345 ns32k_frame_saved_pc, ns32k_frame_args_address,
4346 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4347 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4348 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4349 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4350 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4351 (BREAKPOINT): Remove..
4352 (FRAME_CHAIN): Define as ns32k_frame_chain.
4353 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4354 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4355 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4356 (FRAME_FIND_SAVED_REGS): Remove.
4357 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4358 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4359 (POP_FRAME): Define as ns32k_pop_frame.
4360
4361 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4362
4363 * ns32k-tdep.c (ns32k_register_byte_32082,
4364 ns32k_register_byte_32382, ns32k_register_raw_size,
4365 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4366 functions.
4367 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4368 ns32k_register_byte_32382.
4369 * config/ns32k/tm-umax.h: Update copyright years.
4370 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4371 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4372 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4373 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4374 (ns32k_get_enter_addr): Fix prototype.
4375
4376 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4377
4378 * ns32k-tdep.c: Update copyright years.
4379 (ns32k_register_name_32082): New function.
4380 (ns32k_register_name_32382): Ditto.
4381 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4382 (REGISTER_NAME): Define as ns32k_register_name_32382.
4383 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4384 (REGISTER_NAME): Define as ns32k_register_name_32082.
4385
4386 2002-05-24 Jim Blandy <jimb@redhat.com>
4387
4388 * dwarf2read.c (free_line_header): Use xfree, not free.
4389
4390 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4391
4392 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4393 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4394
4395 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4396
4397 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4398
4399 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4400
4401 From Ross Alexander at NEC Europe:
4402 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4403
4404 2002-05-23 Michael Snyder <msnyder@redhat.com>
4405
4406 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4407 for input, rather than parse_and_eval_address.
4408
4409 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4410
4411 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4412 * Makefile.in (sim_d10v_h): Update definition.
4413
4414 2002-05-24 Andrew Cagney <cagney@redhat.com>
4415
4416 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4417 change `2002-05-22 Michael Snyder' below.
4418 (d10v_push_arguments): Ditto.
4419 (d10v_extract_return_value): Ditto.
4420
4421 2002-05-23 Jim Blandy <jimb@redhat.com>
4422
4423 * macrotab.c (check_for_redefinition): Don't complain if the new
4424 definition is the same as the previous one. Take more arguments
4425 to allow the comparison.
4426 (macro_define_object, macro_define_function): Pass more arguments
4427 to check_for_redefinition.
4428
4429 2002-05-22 Michael Snyder <msnyder@redhat.com>
4430
4431 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4432 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4433 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4434 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4435 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4436 Add a temp variable to save a call (and a memory read).
4437 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4438 if possible (so that PC_IN_CALL_DUMMY will work).
4439
4440 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4441
4442 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4443
4444 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4445
4446 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4447 fde->cie_ptr.
4448 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4449 (dwarf2_build_frame_info): Add offset to fde->initial_location
4450 so that frames of shared libraries are mapped correctly.
4451 (execute_stack_op): Change type of 'result' from ULONGEST to
4452 CORE_ADDR.
4453
4454 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4455
4456 * config/alpha/tm-nbsd.h: Include solib.h.
4457
4458 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4459
4460 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4461 assumptions about the host's byte order.
4462
4463 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4464
4465 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4466 to dependency list.
4467 * alphanbsd-tdep.c: Include solib-svr4.h.
4468 * shnbsd-tdep.c: Ditto.
4469
4470 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4471
4472 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4473 nbsd-tdep.h to dependency list.
4474 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4475 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4476 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4477 nbsdaout.mh and nbsdelf.mh consistently.
4478 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4479 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4480 nbsdaout.mt and nbsdelf.mh consistently.
4481 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4482 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4483 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4484 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4485 a.out shared library stuff from here...
4486 * config/nm-nbsdaout.h: ...to here.
4487 * config/tm-nbsd.h: Remove.
4488 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4489 * config/arm/nbsd.mh: Remove.
4490 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4491 nbsd-tdep.o.
4492 * config/arm/nbsdaout.mh: New file.
4493 * config/arm/nbsdelf.mh: New file.
4494 * config/arm/nm-nbsdaout.h: New file.
4495 * config/i386/nbsd.mh: Remove.
4496 * config/i386/nbsd.mt: Remove.
4497 * config/i386/nbsdaout.mh: New file.
4498 * config/i386/nbsdaout.mt: New file.
4499 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4500 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4501 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4502 i386_register_u_addr): Remove.
4503 * config/i386/nm-nbsdaout.h: New file.
4504 * config/i386/nm-nbsdelf.h: Remove.
4505 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4506 (USE_STRUCT_CONVENTION): Remove.
4507 * config/i386/tm-nbsdaout.h: New file.
4508 * config/i386/tm-nbsdelf.h: Remove.
4509 * config/m68k/nbsd.mh: Remove.
4510 * config/m68k/nbsd.mt: Remove.
4511 * config/m68k/nbsdaout.mh: New file.
4512 * config/m68k/nbsdaout.mt: New file.
4513 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4514 * config/m68k/nm-nbsdaout.h: New file.
4515 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4516 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4517 * config/ns32k/nbsd.mh: Remove.
4518 * config/ns32k/nbsd.mt: Remove.
4519 * config/ns32k/nbsdaout.mh: New file.
4520 * config/ns32k/nbsdaout.mt: New file.
4521 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4522 * config/ns32k/nm-nbsdaout.h: New file.
4523 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4524 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4525 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4526 (SVR4_SHARED_LIBS): Remove.
4527 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4528 * config/sparc/nbsd.mh: Remove.
4529 * config/sparc/nbsd.mt: Remove.
4530 * config/sparc/nbsdaout.mh: New file.
4531 * config/sparc/nbsdaout.mt: New file.
4532 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4533 * config/sparc/nbsdelf.mt: New file.
4534 * config/sparc/nm-nbsdaout.h: New file.
4535 * config/sparc/nm-nbsdelf.h: Remove.
4536 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4537 * config/sparc/tm-nbsdaout.h: New file.
4538
4539 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4540
4541 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4542 mipsnbsd-tdep.c
4543 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4544
4545 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4546
4547 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4548 shnbsd-nat.c.
4549 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4550
4551 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4552
4553 * NEWS: Note new MIPS NetBSD native configuration.
4554 * configure.host (mips*-*-netbsd*): New host.
4555 * configure.tgt (mips*-*-netbsd*): New target.
4556 * mipsnbsd-nat.c: New file.
4557 * mipsnbsd-tdep.c: New file.
4558 * mipsnbsd-tdep.h: New file.
4559 * config/mips/nbsd.mh: New file.
4560 * config/mips/nbsd.mt: New file.
4561 * config/mips/nm-nbsd.h: New file.
4562 * config/mips/tm-nbsd.h: New file.
4563
4564 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4565
4566 * Makefile.in (SFILES): Add osabi.c.
4567 (COMMON_OBS): Add osabi.o.
4568 (osabi.o): New dependency list.
4569 * osabi.c: New file.
4570 * osabi.h: New file.
4571 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4572
4573 * Makefile.in (alpha_tdep_h): Define and use instead of
4574 alpha-tdep.h.
4575 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4576 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4577 Remove.
4578 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4579 * alpha-tdep.h: Include osabi.h.
4580 (alpha_abi): Remove.
4581 (gdbarch_tdep): Use generic OS ABI framework.
4582 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4583 gdbarch_register_osabi.
4584 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4585 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4586 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4587
4588 * Makefile.in (sh_tdep_h): Add osabi.h.
4589 * sh-tdep.h (sh_osabi): Remove.
4590 (gdbarch_tdep): Use generic OS ABI framework.
4591 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4592 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4593 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4594 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4595
4596 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4597 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4598 gdbarch_register_osabi.
4599 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4600 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4601 (get_elfosabi): Rename to...
4602 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4603 ABI framework support routines.
4604 (arm_gdbarch_init): Use generic OS ABI framework.
4605 (arm_dump_tdep): Likewise.
4606 (_initialize_arm_tdep): Likewise.
4607 * arm-tdep.h: Include osabi.h.
4608 (arm_abi): Remove.
4609 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4610 osabi member.
4611 (arm_gdbarch_register_os_abi): Remove prototype.
4612 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4613 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4614
4615 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4616 * mips-tdep.c: Include osabi.h.
4617 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4618 OS ABI framework.
4619
4620 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4621
4622 * h8300-tdep.c: Fix formatting.
4623
4624 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4625
4626 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4627 printing vector registers.
4628
4629 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4630
4631 From Fernando Nasser:
4632 * remote.c (remote_async_open_1): Re-throw the exception when the
4633 connection fails.
4634 (remote_cisco_open): Ditto.
4635 (remote_open_1): Ditto.
4636
4637 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4638
4639 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4640 (remote_start_remote): Add uiout parameter. Pass through to
4641 remote_start_remote_dummy.
4642 (remote_open_1): Use catch_exception instead of catch_errors.
4643 (remote_async_open_1): Ditto.
4644 (remote_cisco_open): Ditto.
4645
4646 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4647
4648 * remote.c (remote_start_remote): Replace PTR with void pointer.
4649 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4650 static.
4651
4652 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4653
4654 * gdb_indent.sh: Allow the script to be run in the sim directory.
4655
4656 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4657
4658 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4659 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4660
4661 * corelow.c (core_open): Only call set_gdbarch_from_file if
4662 exec_bfd is NULL.
4663
4664 2002-05-17 Andrey Volkov <avolkov@transas.com>
4665
4666 * h8300-tdep.c: Add support of EXR register
4667 * config/h8300/tm-h8300.h: Ditto.
4668
4669 2002-05-17 Andrey Volkov <avolkov@transas.com>
4670
4671 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4672
4673 2002-05-17 Andrey Volkov <avolkov@transas.com>
4674
4675 * h8300-tdep.c: Change literal regnums to REGNO.
4676
4677 2002-05-17 Jim Blandy <jimb@redhat.com>
4678
4679 * NEWS: Note addition of macro support.
4680
4681 Expand preprocessor macros in C expressions.
4682 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4683 (scan_macro_expansion, scanning_macro_expansion,
4684 finished_macro_expansion): New function declarations.
4685 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4686 variable declarations.
4687 * parser-defs.h (expression_context_pc): New declaration.
4688 * parse.c (expression_context_pc): New variable.
4689 (parse_exp_1): Set expression_context_pc, as well as
4690 expression_context_block.
4691 * c-exp.y (yylex): If we're not already reading the result of a
4692 macro expansion, try to macro-expand the next token. When we're
4693 done scanning a macro expansion, switch back to the mainline text.
4694 Commas and `if's in a macro's expansion don't terminate the input.
4695 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4696 (macro_original_text, macro_expanded_text,
4697 expression_macro_lookup_func, expression_macro_lookup_baton): New
4698 variables.
4699 (scan_macro_expansion, scanning_macro_expansion,
4700 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4701 c_preprocess_and_parse): New functions.
4702 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4703 c_preprocess_and_parse, instead of c_parse.
4704 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4705 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4706
4707 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4708
4709 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4710 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4711 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4712
4713 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4714
4715 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4716
4717 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4718
4719 * Makefile.in (sh_tdep_h): Define and use.
4720 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4721 register enum): Move to...
4722 * * sh-tdep.h: ...here.
4723 * sh-tdep.c: Include sh-tdep.h.
4724 * sh3-rom.c: Likewise.
4725 * shnbsd-tdep.c: Likewise.
4726
4727 2002-05-16 Michael Snyder <msnyder@redhat.com>
4728
4729 * arm-tdep.c: Spelling fix in comment.
4730
4731 2002-05-16 Jim Blandy <jimb@redhat.com>
4732
4733 Add commands for manually expanding macros and showing their
4734 definitions.
4735 * macrocmd.c, macroscope.c, macroscope.h: New files.
4736 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4737 (macroscope_h): New variable.
4738 (HFILES_NO_SRCDIR): Add macroscope.h.
4739 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4740 (macroscope.o, macrocmd.o): New rules.
4741
4742 Teach the Dwarf 2 reader to read macro information.
4743 * dwarf2read.c: #include "macrotab.h".
4744 (dwarf_macinfo_buffer): New variable.
4745 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4746 dwarf_macinfo_size.
4747 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4748 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4749 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4750 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4751 dwarf2_macro_spaces_in_definition): New complaints.
4752 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4753 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4754 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4755 the partial symbol table.
4756 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4757 from what's recorded in the partial symbol table.
4758 (read_file_scope): If the compilation unit has a
4759 `DW_AT_macro_info' attribute, read its macro information.
4760 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4761
4762 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4763
4764 Fix PR gdb/546
4765 * ser-tcp.c: Don't include <netinet/udp.h>.
4766
4767 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4768
4769 * MAINTAINERS: Update my email address.
4770
4771 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4772
4773 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4774 include file of the same name.
4775
4776 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4777
4778 * configure.tgt: Mark v850 as multi-arched.
4779 * config/v850/tm-v850.h: Remove file.
4780 * config/v850/v850.mt: Eliminate TM_FILE.
4781
4782 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4783
4784 * v850-tdep.c: Full multi-arch.
4785 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4786 Define GDB_MULTI_ARCH to 2.
4787
4788 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4789
4790 * p-exp.y (current_type): New static variable.
4791 Carries the type of the expression at the position that is parsed.
4792 (push_current_type, pop_current_type): Two new functions. Used
4793 to store/restore current_type in expression on specific tokens.
4794 (search_field): New static variable. Set to one after parsing a point
4795 as at that point only a FIELDNAME token should be searched.
4796 (FIELDNAME): New token. After a point only a token belonging to
4797 current_type type definition is allowed.
4798 (all over token rules): reset and change current_type according
4799 to rules.
4800 (exp '[' rule): insert implicit array index field if
4801 exp is a pascal string type.
4802
4803 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4804
4805 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4806 frame info. Use frame_info's saved_regs instead of matching member
4807 in extra_frame_info throughout.
4808 (v850_frame_init_saved_regs): New function.
4809 (v850_init_extra_frame_info): Move most functionality into
4810 v850_frame_init_saved_regs().
4811 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4812 (v850_frame_find_saved_regs): Remove declaration.
4813 (FRAME_FIND_SAVED_REGS): Remove definition.
4814 (v850_frame_init_saved_regs): Add declaration.
4815 (FRAME_INIT_SAVED_REGS): Add definition.
4816
4817 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4818
4819 * v850-tdep.c: Begin multi-arch'ing v850.
4820 (v850_target_architecture_hook): Remove function.
4821 (v850_gdbarch_init): New function. Add code previously in
4822 v850_target_architecture_hook().
4823 (_initialize_v850_tdep): Don't set target_architecture_hook.
4824 Call register_gdbarch_init() instead.
4825
4826 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4827
4828 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4829 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4830 (fixup_class_method_type): Likewise.
4831
4832 2002-05-15 Jim Blandy <jimb@redhat.com>
4833
4834 Add macro structures to GDB's symbol tables. Nobody puts anything
4835 in them yet.
4836 * symtab.h (struct symtab): New member: `macro_table'.
4837 * buildsym.h (pending_macros): New global variable.
4838 * buildsym.c: #include "macrotab.h".
4839 (buildsym_init): Initialize `pending_macros'.
4840 (end_symtab): If we found macro information while reading a CU's
4841 debugging info, do build a symtab structure for it. Make the
4842 symtab point to the macro information, and clear the
4843 `pending_macros' pointer which held it while we were reading the
4844 debug info.
4845 (really_free_pendings): Free any pending macro table.
4846 * objfiles.h (struct objfile): New member: `macro_cache'.
4847 * objfiles.c (allocate_objfile): Set allocate and free functions
4848 for the macro cache's objstack.
4849 (free_objfile): Empty the macro cache's obstack.
4850 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4851 set new allocate and free functions for it.
4852 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4853 free functions for the macro cache's objstack. (Why is this
4854 function building its own objfile?)
4855 * symmisc.c (print_objfile_statistics): Print statistics on the
4856 macro bcache.
4857 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4858
4859 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4860
4861 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4862 (REGISTER_U_ADDR): Delete definition.
4863 (arm_register_u_addr): Delete declaration.
4864
4865 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4866
4867 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4868 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4869
4870 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4871
4872 * regcache.c (register_valid): Revise comments refering to "Not
4873 available" and "unavailable".
4874 * frame.c (frame_register_read): Ditto.
4875 * findvar.c (value_of_register): Ditto.
4876
4877 2002-05-15 Andrew Cagney <cagney@redhat.com>
4878
4879 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4880 (remote-sim.o): Update dependencies.
4881 (d10v-tdep.o): Specify dependencies.
4882 (sim_d10v_h): Define.
4883
4884 2002-05-14 Jim Blandy <jimb@redhat.com>
4885
4886 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4887 * macrotab.c (macro_lookup_inclusion, find_definition,
4888 new_macro_table): Same.
4889
4890 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4891 not `! strcmp ()'. This is a dubious improvement.
4892 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4893
4894 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4895 although it's not necessary, to avoid a warning.
4896
4897 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4898
4899 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4900 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4901 TYPE_INSTANCE_FLAGS.
4902 (struct main_type): New.
4903 (struct type): Move most members to struct main_type. Change
4904 cv_type and as_type to new type_chain member. Add instance_flags.
4905 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4906 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4907 (finish_cv_type): Remove prototype.
4908 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4909 Set TYPE_CHAIN.
4910 (alloc_type_instance): New function.
4911 (smash_type): New function.
4912 (make_pointer_type, make_reference_type, make_function_type)
4913 (smash_to_member_type, smash_to_method_type): Call smash_type.
4914 (make_qualified_type): New function.
4915 (make_type_with_address_space): Call make_qualified_type.
4916 (make_cv_type): Likewise.
4917 (finish_cv_type): Remove unnecessary function.
4918 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4919 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4920 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4921 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4922 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4923 * hpread.c (hpread_read_struct_type): Likewise.
4924 * stabsread.c (read_struct_type): Likewise.
4925
4926 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4927
4928 * configure.tgt: Add a catch all sh* target, for cases like
4929 sh[2,3,4]-elf and sh-hms.
4930
4931 2002-05-14 Keith Seitz <keiths@redhat.com>
4932
4933 * event-loop.c (create_file_handler): Don't do anything but
4934 update data when we are given a fd which we are already
4935 monitoring.
4936
4937 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4938
4939 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4940 (update_context): Use __func__ in warnings.
4941
4942 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4943
4944 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4945 and tcp_close to net_open and net_close.
4946 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4947 using UDP if requested. Don't try to disable Nagle on UDP
4948 sockets.
4949 * remote.c (remote_serial_open): New function. Warn about UDP.
4950 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4951
4952 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4953
4954 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4955
4956 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4957
4958 * configure.tgt: Remove sh-hms target.
4959 * MAINTAINERS: Don't list sh-hms as a separate target.
4960
4961 2002-05-13 Jim Blandy <jimb@redhat.com>
4962
4963 Add first preprocessor macro-expansion files.
4964 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4965 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4966 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4967 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4968 (COMMON_OBS): Add macrotab.o, macroexp.o.
4969 (macroexp.o, macrotab.o): New rules.
4970
4971 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4972
4973 * config/m88k/tm-m88k.h: Update copyright.
4974 (m88k_target_write_pc): Declare
4975 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4976 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4977 (SHIFT_INST_REGS): Update definition.
4978 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4979 using old definition of TARGET_WRITE_PC.
4980 * regcache.c (generic_target_write_pc): Delete code handling
4981 NNPC_REGNUM.
4982 * gdbarch.sh (NNPC_REGNUM): Delete.
4983 * gdbarch.h, gdbarch.c: Regenerate.
4984
4985 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4986
4987 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4988 builtin reg number.
4989
4990 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4991
4992 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4993 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4994 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4995 access macros.
4996 * c-typeprint.c (cp_type_print_method_args): Likewise.
4997 (c_type_print_args): Likewise.
4998 * d10v-tdep.c (d10v_push_arguments): Likewise.
4999 (d10v_extract_return_value): Likewise.
5000 * expprint.c (print_subexp): Likewise.
5001 * gdbtypes.c (lookup_primitive_typename): Likewise.
5002 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5003 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5004 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5005 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5006 (TYPE_VECTOR): Likewise.
5007 * hpread.c (hpread_read_struct_type)
5008 (fix_static_member_physnames, fixup_class_method_type)
5009 (hpread_type_lookup): Likewise.
5010 * mdebugread.c (parse_symbol, parse_type): Likewise.
5011 * p-lang.c (is_pascal_string_type): Likewise.
5012 * valops.c (hand_function_call): Likewise.
5013 * x86-64-tdep.c (classify_argument): Likewise.
5014
5015 * hpread.c (hpread_read_function_type)
5016 (hpread_read_doc_function_type): Call replace_type.
5017 * dstread.c (create_new_type): Delete.
5018 (decode_dst_structure, process_dst_function): Call alloc_type.
5019 Use type access macros.
5020
5021 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5022
5023 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5024 the're not supported by the current architecture.
5025 (i387_fill_fxsave): Likewise.
5026
5027 2002-05-12 Fred Fish <fnf@redhat.com>
5028
5029 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5030 sect_index_xxx members to index the first slot in section_offsets
5031 if all of the section_offsets are zero.
5032
5033 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5034
5035 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5036 checked in with last change.
5037
5038 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5039
5040 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5041 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5042 config.sub.
5043
5044 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5045
5046 * Makefile.in: Update dependencies.
5047
5048 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5049
5050 * language.c (local_hex_string_custom): Simplify. Do not depend
5051 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5052
5053 * memattr.c (mem_info_command): Replace calls to
5054 longest_local_hex_string and longest_local_hex_string_custom.
5055 * buildsym.c (make_blockvector): Ditto.
5056 * solib.c (info_sharedlibrary_command): Ditto.
5057 * tracepoint.c (tracepoints_info): Ditto.
5058 * symtab.c (print_msymbol_info): Ditto.
5059
5060 * language.c (local_hex_string): Delete.
5061 (local_hex_string_custom): Delete.
5062 (longest_local_hex_string): Rename to local_hex_string.
5063 (longest_local_hex_string_custom): Rename to
5064 local_hex_string_custom.
5065 * language.h (local_hex_string): Change parameter type to LONGEST.
5066 (local_hex_string_custom): Ditto.
5067 (longest_local_hex_string): Delete declaration.
5068 (longest_local_hex_string_custom): Ditto.
5069
5070 * solib.c: Update copyright.
5071 * memattr.c: Update copyright.
5072
5073 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5074
5075 * arch-utils.h (legacy_register_to_value): Declare.
5076 (legacy_value_to_register): Declare.
5077 (legacy_convert_register_p): Declare.
5078 * arch-utils.c (legacy_register_to_value): New function.
5079 (legacy_value_to_register): New function.
5080 (legacy_convert_register_p): New function.
5081
5082 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5083 (VALUE_TO_REGISTER): Define.
5084 (CONVERT_REGISTER_P): Define.
5085 * gdbarch.h, gdbarch.c: Regenerate.
5086
5087 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5088 VALUE_TO_REGISTER.
5089 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5090 CONVERT_REGISTER_P.
5091
5092 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5093 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5094
5095 * Makefile.in: Update dependencies for valops.c.
5096 * valops.c: Include "gdb_assert.h".
5097 (typecmp): Skip THIS parameter to methods.
5098 (find_method_list): Remove static_memfuncp argument,
5099 update callers. Check for stub methods.
5100 (find_value_oload_method_list): Don't set *static_memfuncp.
5101 (find_overload_match): Don't check for stub methods. Assert
5102 that methods are not stubbed. Handle static methods.
5103 (value_find_oload_method_list): Remove static_memfuncp argument.
5104 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5105 to the argument list for static stub methods.
5106 * value.h (value_find_oload_method_list): Update prototype.
5107
5108 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5109
5110 * arch-utils.h (generic_register_size): Declare.
5111 (generic_register_raw_size, generic_register_virtual_size): Delete
5112 declarations.
5113 * arch-utils.c (generic_register_raw_size): Delete.
5114 (generic_register_size): New function.
5115 (generic_register_virtual_size): Delete.
5116
5117 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5118 default generic_register_size.
5119 * gdbarch.h, gdbarch.c: Re-generate.
5120
5121 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5122 register_virtual_size.
5123 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5124 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5125
5126 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5127
5128 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5129 * gdbarch.h, gdbarch.c: Regenerate.
5130 * gnu-v3-abi.c: Update copyright.
5131 (vtable_address_point_offset): Update.
5132 (gnuv3_rtti_type): Update.
5133 (gnuv3_baseclass_offset): Update.
5134 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5135 (init_fetch_link_map_offsets): Update.
5136 * remote.c (get_remote_state): Update.
5137
5138 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5139
5140 * TODO: Remove value_headof/value_from_vtable_info comment.
5141 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5142 * values.c (value_headof, value_from_vtable_info): Delete.
5143 * value.h (value_from_vtable_info): Delete prototype.
5144
5145 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5146
5147 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5148 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5149 $(gdb_regex_h).
5150 (gdb_assert_h): Define.
5151 (gdb_wait_h): Define.
5152 (gdb_regex_h): Define.
5153
5154 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5155
5156 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5157 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5158
5159 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5160
5161 * nbsd-tdep.c: Fix comment.
5162
5163 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5164
5165 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5166 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5167 (nbsd-tdep.o): New dependency list.
5168 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5169 nbsd-tdep.h.
5170 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5171 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5172 * nbsd-tdep.c: New file.
5173 * nbsd-tdep.h: New file.
5174 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5175 nbsd-tdep.h.
5176 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5177 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5178 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5179 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5180
5181 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5182
5183 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5184 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5185 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5186 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5187 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5188 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5189
5190 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5191
5192 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5193 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5194 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5195 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5196 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5197 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5198 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5199
5200 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5201
5202 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5203 fetch_elfcore_registers to...
5204 * i386nbsd-tdep.c: ...here.
5205 (i386nbsd_use_struct_convention): Rename to...
5206 (i386nbsd_aout_use_struct_convention): ...this.
5207 (i386nbsd_supply_reg): New function.
5208 (i386nbsd_fill_reg): New function.
5209 (fetch_core_registers): Use i386nbsd_supply_reg.
5210 (fetch_elfcore_registers): Likewise.
5211 (_initialize_i386nbsd_tdep): New function.
5212 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5213 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5214 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5215 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5216 (i386nbsd_aout_use_struct_convention): ...this.
5217
5218 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5219
5220 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5221 (store_inferior_registers): Use shnbsd_fill_reg.
5222 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5223 sh_nbsd_supply_register): Collapse into...
5224 (shnbsd_supply_reg): ...this.
5225 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5226 (shnbsd_fill_reg): ...this.
5227 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5228 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5229 (fetch_core_registers): Use shnbsd_supply_reg.
5230 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5231 (sh_nbsd_core_fns): Rename to...
5232 (shnbsd_core_fns): ...this.
5233 (sh_nbsd_elfcore_fns): Rename to...
5234 (shnbsd_elfcore_fns): ...this.
5235 (sh_nbsd_init_abi): Rename to...
5236 (shnbsd_init_abi): ...this.
5237 (_initialize_sh_nbsd_tdep): Rename to...
5238 (_initialize_shnbsd_tdep): ...this.
5239 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5240 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5241 sh_nbsd_fill_register): Remove prototypes.
5242 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5243
5244 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5245
5246 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5247 (i387-nat.o): Delete dependency list.
5248 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5249 (x86-64-linux-nat.o): Likewise.
5250 * i387-nat.c: Delete file, moving contents to...
5251 * i387-tdep.c: ...here.
5252 * i387-nat.h: Rename...
5253 * i387-tdep.h: ...to this.
5254 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5255 * i386-linux-nat.c: Likewise.
5256 * i386bsd-nat.c: Likewise.
5257 * i386gnu-nat.c: Likewise.
5258 * i386nbsd-nat.c: Likewise.
5259 * i386v4-nat.c: Likewise.
5260 * x86-64-linux-nat.c: Likewise.
5261 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5262 * config/i386/go32.mh (NATDEPFILES): Likewise.
5263 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5264 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5265 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5266 * config/i386/linux.mh (NATDEPFILES): Likewise.
5267 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5268 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5269 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5270 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5271
5272 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5273
5274 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5275 (alphanbsd-nat.o): Remove dependency list.
5276 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5277 * alphanbsd-nat.c: Delete. Contents moved to...
5278 * alphanbsd-tdep.c: ...here.
5279 (_initialize_alphanbsd_tdep): Register core functions.
5280 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5281
5282 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5283
5284 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5285 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5286 (alphanbsd-nat.o): Likewise.
5287 (alphabsd-tdep.o): New dependency list.
5288 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5289 (fill_gregset): Use alphabsd_fill_reg.
5290 (supply_fpregset): Use alphabsd_supply_fpreg.
5291 (fill_fpregset): Use alphabsd_fill_fpreg.
5292 (fetch_inferior_registers): Use struct reg and struct fpreg
5293 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5294 and alphabsd_supply_fpreg.
5295 (store_inferior_registers): Use struct reg and struct fpreg
5296 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5297 and alphabsd_fill_fpreg.
5298 * alphabsd-tdep.c: New file.
5299 * alphabsd-tdep.h: New file.
5300 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5301 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5302 alphabsd_supply_fpreg.
5303 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5304 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5305
5306 2002-05-11 Eric Christopher <echristo@redhat.com>
5307
5308 * mips-tdep.c (mips_double_register_type): Fix thinko.
5309 (mips_single_register_type): Ditto.
5310 * MAINTAINERS: Add self.
5311
5312 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5313
5314 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5315 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5316 right thing on architectures with different endianness and/or
5317 integer sizes.
5318
5319 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5320
5321 From Christian Limpach <chris@Pin.LU>
5322 * configure.in: Change sed expression which comments out
5323 NATDEPFILES to also comment out continuation lines.
5324 * configure: Regenerate.
5325
5326 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5327
5328 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5329 big patch.
5330
5331 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5332
5333 * sh-tdep.c: Include correct file.
5334
5335 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5336
5337 New support for sh64-elf (sh5) target.
5338
5339 * configure.tgt: For sh64-elf target, default to sh-elf.
5340
5341 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5342 (struct gdbarch_tdep): Add new fields for new registers and ABI
5343 info.
5344
5345 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5346 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5347 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5348 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5349 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5350 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5351 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5352 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5353 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5354 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5355 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5356 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5357 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5358 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5359 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5360 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5361 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5362 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5363 sign_extend, sh64_nofp_frame_init_saved_regs,
5364 sh64_init_extra_frame_info, sh64_get_saved_register,
5365 sh64_extract_struct_value_address, sh64_pop_frame,
5366 sh64_push_arguments, sh64_extract_return_value,
5367 sh64_store_return_value, sh64_show_media_regs,
5368 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5369 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5370 sh_sh64_register_virtual_type,
5371 sh_sh64_register_convert_to_virtual,
5372 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5373 sh64_register_read, sh64_pseudo_register_write,
5374 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5375 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5376 sh64_do_pseudo_register, sh_compact_do_registers_info,
5377 sh64_do_registers_info, sh_gdbarch_init): New functions.
5378
5379 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5380
5381 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5382
5383 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5384
5385 * linespec.c (decode_line_1): Check for a double quote after
5386 a filename correctly.
5387
5388 2002-05-10 Jim Blandy <jimb@redhat.com>
5389
5390 Properly track the size of the current objfile's .debug_line section.
5391 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5392 (DWARF_LINE_SIZE): New macro.
5393 (dwarf2_build_psymtabs_hard): Record the line section's size in
5394 the partial symbol table.
5395 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5396 symbol table.
5397
5398 2002-05-10 Petr Sorfa <petrs@caldera.com>
5399
5400 * ia64-tdep.c: Handle breakpoints on L instruction type
5401 in MLX instruction bundle by moving the breakpoint to
5402 the third slot (X instruction type) as L holds only data.
5403
5404 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5405
5406 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5407 (process_one_symbol): Complain about discarding local symbols
5408 due to a misplaced N_LBRAC entry.
5409
5410 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5411
5412 From Daniel Berlin <dan@cgsoftware.com>
5413 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5414 decrease the depth we are at, in the case of templates.
5415
5416 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5417
5418 * mips-tdep.c (mips_float_register_type): New function.
5419 (mips_double_register_type): New function.
5420 (mips_print_register): Use them.
5421 (do_fp_register_row): Likewise.
5422
5423 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5424
5425 * signals/signals.c (signals): Remove conditional compilation around
5426 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5427 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5428
5429 2002-05-09 Michael Snyder <msnyder@redhat.com>
5430
5431 * remote-rdp.c (remote_rdp_can_run): Remove.
5432
5433 2002-05-09 Tom Tromey <tromey@redhat.com>
5434
5435 * jv-valprint.c (java_val_print): Handle `char' as a special case
5436 of TYPE_CODE_INT.
5437
5438 2002-05-09 Michael Snyder <msnyder@redhat.com>
5439
5440 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5441 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5442 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5443 str r(0123),[sp,#nn].
5444 (arm_skip_prologue): Ditto. Also make disassembly
5445 order-independent by placing it in a loop.
5446
5447 2002-05-06 Michael Snyder <msnyder@redhat.com>
5448
5449 * stabsread.c (read_type): Add recognition for new attribute:
5450 "@V;" means that an array type is actually a vector.
5451 This is analogous to the vector flag that's been added to dwarf2.
5452
5453 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5454
5455 * i386-tdep.h (i386_abi): New enum.
5456 (struct gdbarch_tdep): Replace os_ident member with abi.
5457 (i386_gdbarch_register_os_abi): New prototype.
5458 * i386-tdep.c (i386_abi_names): New array.
5459 (process_note_abi_tag_sections): Removed.
5460 (process_note_sections): New function.
5461 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5462 (struct i386_abi_handler): New struct.
5463 (i386_abi_handler_list): New variable.
5464 (i386_gdbarch_register_os_abi): New function.
5465 (i386_gdbarch_init): Adapt for the changes given above.
5466
5467 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5468
5469 * gregset.h: Say "GNU/Linux".
5470
5471 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5472
5473 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5474 (build_gdbtypes): Build builtin_type_v2_float.
5475 (_initialize_gdbtypes): Register new builtin type.
5476
5477 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5478
5479 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5480 (clear_gdbarch_swap): New function.
5481 (initialize_non_multiarch): Call.
5482 (gdbarch_update_p): Before calling init(), swap out and clear the
5483 existing architecture.
5484 * gdbarch.c: Regenerate.
5485
5486 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5487
5488 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5489 alphanbsd-tdep.c.
5490
5491 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5492
5493 * sh-nbsd-nat.c: Rename to...
5494 * shnbsd-nat.c: ...this.
5495 * sh-nbsd-tdep.c: Rename to...
5496 * shnbsd-tdep.c: ...this.
5497 * sh-nbsd-tdep.h: Rename to...
5498 * shnbsd-tdep.h: ...this.
5499 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5500 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5501
5502 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5503
5504 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5505 concatenation for command help messages.
5506
5507 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5508
5509 * NEWS: Note new sh*-*-netbsdelf* configuration.
5510 * configure.host: Set gdb_host_cpu to sh for all sh*.
5511 (sh*-*-netbsdelf*): New host.
5512 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5513 (sh*-*-netbsdelf*): New target.
5514 * sh-nbsd-nat.c: New file.
5515 * sh-nbsd-tdep.c: New file.
5516 * sh-nbsd-tdep.h: New file.
5517 * config/sh/nbsd.mh: New file.
5518 * config/sh/nbsd.mt: New file.
5519 * config/sh/nm-nbsd.h: New file.
5520 * config/sh/tm-nbsd.h: New file.
5521
5522 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5523
5524 * sh-tdep.c (sh_osabi_names): Declare.
5525 (process_note_abi_tag_sections): New function.
5526 (get_elfosabi): Ditto.
5527 (sh_gdbarch_register_os_abi): Ditto.
5528 (sh_dump_tdep): Ditto.
5529 _initialize_sh_tdep): Use gdbarch_register to register
5530 sh_gdbarch_init and sh_dump_tdep.
5531 * config/sh/tm-sh.h (sh_osabi): Declare.
5532 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5533
5534 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5535
5536 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5537 (thumb_scan_prologue): Ditto.
5538 (arm_find_callers_reg): Ditto.
5539 (arm_frame_chain): Ditto.
5540 (arm_init_extra_frame_info): Ditto.
5541 (arm_frame_saved_pc): Ditto.
5542 (arm_pop_frame): Ditto.
5543 (arm_push_return_address): New function.
5544 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5545 call_dummy_location, call_dummy_breakpoint_offset_p,
5546 call_dummy_breakpoint_offset, call_dummy_p,
5547 call_dummy_stack_adjust_p, call_dummy_words,
5548 sizeof_call_dummy_words, call_dummy_start_offset,
5549 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5550 call_dummy_address, push_return_address and push_dummy_frame for
5551 generic dummy frames.
5552
5553 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5554
5555 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5556 size computation for alloca.
5557 (sh_fp_frame_init_saved_regs): Likewise.
5558
5559 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5560
5561 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5562 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5563 * arm-tdep.c (arm_store_return_value): Use them.
5564 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5565 * remote-rdp.c (remote_rdp_fetch_register): Use
5566 ARM_MAX_REGISTER_RAW_SIZE.
5567 (remote_rdp_store_register): Likewise.
5568
5569 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5570
5571 * dwarf2cfi.c: Code cleanup, removed unused variables,
5572 added default labels to switch {} statements.
5573 * x86-64-tdep.c: Ditto.
5574 * x86-64-linux-nat.c: Ditto.
5575
5576 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5577
5578 * solib.h: Protect against multiple inclusion.
5579
5580 2002-05-06 Jim Blandy <jimb@redhat.com>
5581
5582 Add first preprocessor macro-expansion files.
5583 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5584 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5585 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5586 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5587 (COMMON_OBS): Add macrotab.o, macroexp.o.
5588 (macroexp.o, macrotab.o): New rules.
5589
5590 Separate the job of reading the line number info statement program
5591 header (...expialidocious) out into its own function.
5592 * dwarf2read.c (struct line_head, struct filenames, struct
5593 directories): Replace with...
5594 (struct line_header): New structure, containing the full
5595 contents of the statement program header, including the
5596 include directory and file name tables.
5597 (read_file_scope): If we have line number info, instead of just
5598 calling dwarf_decode_lines to do all the work, call
5599 dwarf_decode_line_header first to get a `struct line_header'
5600 containing the data in the statement program header, and then
5601 pass that to dwarf_decode_lines, which will pick up where that
5602 left off. Be sure to clean up the `struct line_header' object.
5603 (dwarf_decode_line_header, free_line_header, add_include_dir,
5604 add_file_name): New functions.
5605 (dwarf_decode_lines): Move all the code to read the statement
5606 program header into dwarf_decode_line_header. Take the line
5607 header it built as the first argument, instead of the offset to
5608 the compilation unit's line number info. Use the new `struct
5609 line_header' type instead of the old structures. No need to do
5610 cleanups here now, since we don't allocate anything.
5611 (dwarf2_statement_list_fits_in_line_number_section,
5612 dwarf2_line_header_too_long): New complaints.
5613
5614 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5615
5616 * gdbtypes.c (init_vector_type): New function.
5617 (build_builtin_type_vec128): Simplify the representation of SIMD
5618 registers.
5619 (build_gdbtypes): Initialize new builtin vector types.
5620 (_initialize_gdbtypes): Register new vector types with gdbarch.
5621 (builtin_type_v4_float, builtin_type_v4_int32,
5622 builtin_type_v8_int16, builtin_type_v16_int8,
5623 builtin_type_v2_int32, builtin_type_v4_int16,
5624 builtin_type_v8_int8): New (renamed) SIMD types.
5625
5626 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5627
5628 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5629 (i387_fill_fxsave): Likewise.
5630
5631 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5632
5633 * alpha-tdep.c (alpha_extract_return_value): Don't use
5634 non-constant array size in prototype.
5635
5636 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5637
5638 From Brian Taylor <briant at model dot com>:
5639 * ui-out.c (ui_out_field_core_addr): Use the function
5640 longest_local_hex_string_custom'to format addresses > 32 bits
5641 wide.
5642
5643 * ui-out.c (ui_out_field_core_addr): Update comment.
5644
5645 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5646
5647 * stack.c (select_and_print_frame): Make static. Delete the
5648 parameter `level'.
5649 (func_command): Update call.
5650 (select_frame_command): Delete code computing the frame level.
5651 * frame.h (select_and_print_frame): Delete declaration.
5652
5653 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5654
5655 * sparc-tdep.c (sparc_get_saved_register): Comment why
5656 get_prev_frame call is safe.
5657
5658 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5659
5660 * frame.h (select_frame): Delete level parameter.
5661 * stack.c (select_frame): Update. Use frame_relative_level to
5662 obtain the frame's level.
5663 (select_and_print_frame): Update call.
5664 (select_frame_command): Ditto.
5665 (up_silently_base): Ditto.
5666 (down_silently_base): Ditto.
5667 * ocd.c (ocd_start_remote): Ditto.
5668 * remote-rdp.c (remote_rdp_open): Ditto.
5669 * remote-mips.c (mips_initialize): Ditto.
5670 (common_open): Ditto.
5671 * remote-e7000.c (e7000_start_remote): Ditto.
5672 * m3-nat.c (select_thread): Ditto.
5673 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5674 (child_get_current_exception_event): Ditto.
5675 * varobj.c (varobj_create): Ditto.
5676 (varobj_update): Ditto.
5677 (c_value_of_root): Ditto.
5678 * tracepoint.c (finish_tfind_command): Ditto.
5679 * corelow.c (core_open): Ditto.
5680 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5681 * thread.c (info_threads_command): Ditto.
5682 (switch_to_thread): Ditto.
5683 * infrun.c (normal_stop): Ditto.
5684 (restore_selected_frame): Ditto.
5685 (restore_inferior_status): Ditto.
5686 * breakpoint.c (insert_breakpoints): Ditto.
5687 (watchpoint_check): Ditto.
5688 (bpstat_stop_status): Ditto.
5689 (do_enable_breakpoint): Ditto.
5690 * blockframe.c (flush_cached_frames): Ditto.
5691 (reinit_frame_cache): Ditto.
5692
5693 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5694
5695 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5696 maintainer.
5697
5698 2002-05-04 Jim Blandy <jimb@redhat.com>
5699
5700 * gdbtypes.c (replace_type): Doc fix.
5701
5702 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5703
5704 * valprint.c (strcat_longest): Delete commented out function.
5705 Update copyright.
5706
5707 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5708
5709 * MAINTAINERS: Mark a29k as deleted.
5710 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5711 Move new configurations to the top.
5712 * configure.tgt: Remove a29k.
5713 * config/a29k/tm-vx29k.h: Delete.
5714 * config/a29k/vx29k.mt: Delete.
5715 * config/a29k/tm-a29k.h: Delete.
5716 * config/a29k/a29k-udi.mt: Delete.
5717 * config/a29k/a29k.mt: Delete.
5718 * a29k-tdep.c: Delete.
5719 * remote-udi.c: Delete.
5720 * remote-mm.c: Delete.
5721 * remote-eb.c: Delete.
5722 * remote-adapt.c: Delete.
5723 * Makefile.in: Remove obsolete code.
5724 * config/s390/s390x.mt: Ditto.
5725 * config/s390/s390.mt: Ditto.
5726 * config/sparc/sparclynx.mh: Ditto.
5727 * config/sparc/linux.mh: Ditto.
5728 * config/pa/hppaosf.mh: Ditto.
5729 * config/pa/hppabsd.mh: Ditto.
5730 * config/ns32k/nbsd.mt: Ditto.
5731 * config/mips/vr5000.mt: Ditto.
5732 * config/m68k/sun3os4.mh: Ditto.
5733 * config/m68k/nbsd.mt: Ditto.
5734 * config/m68k/m68klynx.mh: Ditto.
5735 * config/m32r/m32r.mt: Ditto.
5736 * config/i386/x86-64linux.mt: Ditto.
5737 * config/i386/nbsdelf.mt: Ditto.
5738 * config/i386/nbsd.mt: Ditto.
5739 * config/i386/i386lynx.mh: Ditto.
5740
5741 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5742
5743 * target.c (debug_print_register): New function. Handle oversize
5744 registers.
5745 (debug_to_fetch_registers): Call.
5746 (debug_to_store_registers): Call.
5747
5748 2002-05-03 Jim Blandy <jimb@redhat.com>
5749
5750 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5751 (read_type): Doc fix.
5752 * gdbtypes.c (replace_type): Doc fix.
5753
5754 * stabsread.c (multiply_defined_struct): New complaint.
5755 (read_struct_type): If the type we were passed isn't empty, or
5756 incomplete, don't read the new struct type into it; complain,
5757 and return the original type unchanged. Take a new `type_code'
5758 argument, which is the type code for the new type.
5759 (read_type): Rather than storing the type's type code here, pass
5760 it as an argument to read_struct_type, and let that take care of
5761 storing it. That way, we don't overwrite the original type code,
5762 so read_struct_type can use it to decide whether we're overwriting
5763 something we shouldn't.
5764 (complain_about_struct_wipeout): New function.
5765
5766 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5767
5768 * gdbarch.sh: Assert that gdbarch is non-NULL.
5769 * gdbarch.c: Regenerate.
5770
5771 2002-05-03 Jason Merrill <jason@redhat.com>
5772
5773 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5774 and return NULL.
5775
5776 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5777
5778 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5779 (x86_64_dwarf2gdb_regno_map_length),
5780 (x86_64_dwarf2_reg_to_regnum): Added.
5781 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5782 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5783 (_initialize_x86_64_tdep): Synced with the change above.
5784 (x86_64_skip_prologue): Reformulated message.
5785
5786 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5787
5788 * f-exp.y: Also use new prev_lexptr variable
5789 to improve error reporting. Based on Michael Snyder
5790 2002-04-24 dated patch to c-exp.y.
5791 * jv-exp.y: Likewise.
5792 * m2-exp.y: Likewise.
5793
5794 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5795
5796 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5797 we are dealing with vectors.
5798
5799 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5800
5801 * config/m68k/tm-nbsd.h: Obvious fix,
5802 correct machine name.
5803
5804 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5805
5806 * p-typeprint.c (pascal_type_print_base): Add support
5807 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5808
5809 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5810
5811 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5812 for fondamental pascal 'char' type.
5813
5814 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5815
5816 * p-lang.h (is_pascal_string_type): Declaration changed,
5817 new sixth argument of type char ** added.
5818 * p-lang.c (is_pascal_string_type): Implementation
5819 changed. Args length_pos, length_size, string_pos, char_size
5820 can now be NULL. New argument arrayname set to the field
5821 name of the char array. Return value set to char array
5822 field index plus one.
5823 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5824 is_pascal_string_type function.
5825
5826 2002-05-02 Andrew Cagney <cagney@redhat.com>
5827
5828 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5829 <cagney@redhat.com> change.
5830 * gdbarch.c: Regenerate.
5831
5832 2002-05-02 Andrew Cagney <cagney@redhat.com>
5833
5834 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5835 before probing for a new one. Detect errorenous gdbarch_init
5836 functions.
5837 * gdbarch.c: Regenerate.
5838
5839 2002-05-01 Andrew Cagney <cagney@redhat.com>
5840
5841 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5842 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5843 * config/v850/tm-v850.h: Ditto. Update copyright.
5844
5845 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5846
5847 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5848 current_gdbarch.
5849
5850 2002-04-30 Michael Snyder <msnyder@redhat.com>
5851
5852 * arm-tdep.c: Whitespace clean-ups.
5853 (arm_skip_prologue): Fix thinko; two lines
5854 should have been removed as part of 4/24 change.
5855
5856 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5857
5858 * rs6000-tdep.c: Added comment describing how fpscr register
5859 numbers were chosen.
5860
5861 2002-04-30 Michael Snyder <msnyder@redhat.com>
5862
5863 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5864
5865 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5866
5867 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5868 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5869 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5870
5871 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5872
5873 From Louis Hamilton <hamilton@redhat.com>:
5874 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5875 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5876 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5877 not bfd-private xcoff data, to determine wordsize.
5878 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5879
5880 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5881
5882 GDB 5.2 released from 5.2 branch.
5883
5884 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5885
5886 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5887 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5888 (x86_64_register_info_table): Added comments with register numbers.
5889
5890 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5891
5892 * rs6000-tdep.c (rs6000_extract_return_value,
5893 rs6000_store_return_value): Handle returning vectors.
5894 (rs6000_gdbarch_init): Use
5895 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5896 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5897 New function.
5898 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5899 vectors.
5900 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5901 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5902
5903 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5904
5905 * hpread.c (hpread_psymtab_to_symtab_1,
5906 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5907 with fprintf_unfiltered (gdb_stderr,...).
5908
5909 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5910
5911 * remote-array.c (printf_monitor, write_monitor,
5912 array_insert_breakpoint, array_remove_breakpoint ):
5913 Replace fprintf (stderr,...
5914 with fprintf_unfiltered (gdb_stderr,....
5915 * remote-es.c: Likewise.
5916 * remote-os9k.c: Likewise.
5917 * remote-st.c: Likewise.
5918
5919 2002-04-28 Andreas Schwab <schwab@suse.de>
5920
5921 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5922 linux-proc.o and gcore.o.
5923
5924 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5925
5926 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5927 code without frame pointers.
5928
5929 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5930
5931 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5932 ON_STACK is needed.
5933
5934 2002-04-26 Ben Elliston <bje@redhat.com>
5935
5936 * target.c (do_xfer_memory): Correct reference to the new option
5937 "trust-readonly-sections".
5938
5939 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5940
5941 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5942 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5943 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5944 vectors.
5945 (read_array_type): Record the fact that this array type is really a
5946 vector (i.e. are passed in by value).
5947
5948 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5949
5950 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5951 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5952 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5953 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5954 * alpha-linux-tdep.c: Include frame.h.
5955 (alpha_linux_sigcontext_addr): New function.
5956 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5957 alpha_linux_sigcontext_addr.
5958 * alpha-osf1-tdep.c: Include gdbcore.h.
5959 (alpha_osf1_sigcontext_addr): New function.
5960 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5961 alpha_osf1_sigcontext_addr.
5962 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5963 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5964
5965 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5966
5967 * stack.c (selected_frame_level):
5968 (select_frame): Do not set selected_frame_level.
5969 * frame.h (selected_frame_level): Delete declaration.
5970
5971 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5972
5973 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5974 convert_from_func_ptr-addr when AIX / PowerOpen.
5975
5976 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5977
5978 * valops.c (hand_function_call): Call
5979 generic_save_call_dummy_addr.
5980 * frame.h (generic_save_call_dummy_addr): Declare.
5981 * blockframe.c (struct dummy_frame): Add fields call_lo and
5982 call_hi.
5983 (generic_find_dummy_frame): Check for PC in range call_lo to
5984 call_hi instead of entry_point_address.
5985 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5986 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5987 (generic_save_call_dummy_addr): New function.
5988
5989 2002-04-24 David S. Miller <davem@redhat.com>
5990
5991 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5992 sparc_skip_prologue.
5993 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5994 information to find prologue when possible.
5995 (sparc_prologue_frameless_p): Call examine_prologue directly.
5996 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5997 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5998 second argument.
5999 (SKIP_PROLOGUE): Likewise.
6000
6001 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6002
6003 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6004 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6005 indicate that the condition it was testing is always true.
6006 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6007 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6008 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6009
6010 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6011
6012 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6013 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6014 tdep->jb_pc and tdep->jb_elt_size.
6015 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6016 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6017 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6018 * alpha-nat.c (get_longjmp_target): Remove.
6019 (JB_ELEMENT_SIZE): Ditto.
6020 (JB_PC): Ditto.
6021 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6022 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6023 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6024 to alpha_get_longjmp_target.
6025 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6026 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6027 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6028
6029 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6030
6031 * README: Update to GDB 5.2.
6032
6033 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6034
6035 * gdbarch.sh (LC_ALL): Set to `c'.
6036
6037 2002-04-25 Theodore A. Roth <troth@verinet.com>
6038
6039 * avr-tdep.c: Ran through gdb_indent.sh.
6040
6041 2002-04-25 Theodore A. Roth <troth@verinet.com>
6042
6043 * MAINTAINERS: Add myself as AVR maintainer.
6044 * NEWS: Note new target avr.
6045
6046 2002-04-25 Theodore A. Roth <troth@verinet.com>
6047
6048 * Makefile.in: Add support for AVR target.
6049 * configure.tgt: Add support for AVR target.
6050 * avr-tdep.c: New file
6051 * config/avr/avr.mt: New file.
6052
6053 2002-04-25 Theodore A. Roth <troth@verinet.com>
6054
6055 * MAINTAINERS: Add myself to write-after-approval.
6056
6057 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6058
6059 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6060 with fprintf_unfiltered (gdb_stderr,....
6061
6062 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6063
6064 Fix PR gdb/508.
6065 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6066
6067 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6068
6069 * p-exp.y: Also use new prev_lexptr variable
6070 to improve error reporting. Based on Michael Snyder
6071 2002-04-24 dated patch to c-exp.y.
6072
6073 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6074
6075 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6076 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6077 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6078 to 0.
6079 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6080 and struct value.
6081 (FUNCTION_START_OFFSET): Remove.
6082 (BREAKPOINT): Ditto.
6083
6084 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6085
6086 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6087 * NEWS: Ditto.
6088
6089 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6090
6091 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6092 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6093 alpha_linux_pc_in_sigtramp.
6094 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6095 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6096 alpha_osf1_pc_in_sigtramp.
6097 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6098 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6099 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6100 alphafbsd_pc_in_sigtramp.
6101 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6102 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6103 alphanbsd_pc_in_sigtramp.
6104 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6105 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6106
6107 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6108
6109 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6110
6111 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6112
6113 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6114 alphanbsd-tdep.c.
6115 (alphanbsd-nat.o): New dependency list.
6116 (alphanbsd-tdep.o): Ditto.
6117 * NEWS: Note new native NetBSD/alpha configuration.
6118 * alphanbsd-nat.c: New file.
6119 * alphanbsd-tdep.c: Ditto.
6120 * configure.host (alpha*-*-netbsd*): New host.
6121 * configure.tgt (alpha*-*-netbsd*): New target.
6122 * config/alpha/nbsd.mh: New file.
6123 * config/alpha/nbsd.mt: Ditto.
6124 * config/alpha/nm-nbsd.h: Ditto.
6125 * config/alpha/tm-nbsd.h: Ditto.
6126
6127 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6128
6129 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6130 (alpha-osf1-tdep.o): New dependency list.
6131 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6132 and skip_sigtramp_frame members.
6133 * alpha-linux-tdep.c: Include gdbcore.h.
6134 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6135 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6136 * alpha-osf1-tdep.c: New file.
6137 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6138 alpha-osf1-dep.c.
6139 (alpha_frame_past_sigtramp_frame): New function.
6140 (alpha_dynamic_sigtramp_offset): Ditto.
6141 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6142 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6143 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6144 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6145 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6146 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6147 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6148 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6149 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6150 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6151 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6152 to find_solib_trampoline_target.
6153 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6154 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6155 (SKIP_TRAMPOLINE_CODE): Remove.
6156 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6157 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6158 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6159 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6160 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6161 (PROC_SIGTRAMP_MAGIC): Ditto.
6162 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6163 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6164 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6165 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6166 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6167
6168 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6169
6170 * NEWS: Note that Alpha targets are now multi-arch.
6171
6172 2002-04-24 Michael Snyder <msnyder@redhat.com>
6173
6174 * parser-defs.h (prev_lexptr): New external variable.
6175 * parse.c (parse_exp_1): Set prev_lexptr to null before
6176 calling the language-specific parser.
6177 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6178 (yyerror): Use prev_lexptr in error reporting.
6179
6180 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6181
6182 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6183 * gregset.h: If FILL_FPXREGSET is defined, provide
6184 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6185 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6186 is defined, call fill_fpxregset.
6187
6188 2002-04-24 Roland McGrath <roland@frob.com>
6189
6190 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6191 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6192 (supply_gregset, supply_fpregset): New functions.
6193
6194 * gnu-nat.c (gnu_find_memory_regions): New function.
6195 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6196 (gnu_xfer_memory): Add a cast.
6197
6198 2002-04-24 Michael Snyder <msnyder@redhat.com>
6199
6200 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6201 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6202 of argument regs ("str r(0123), [r11, #-nn"]).
6203 (arm_skip_prologue): Better handling for frameless functions.
6204 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6205 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6206
6207 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6208
6209 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6210 NUM_PSEUDO_REGS can be used.
6211
6212 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6213
6214 * arch-utils.h: Update copyright.
6215
6216 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6217 * gdbarch.h, gdbarch.c: Re-generate.
6218
6219 * inferior.h (IN_SIGTRAMP): Delete definition.
6220 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6221 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6222
6223 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6224 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6225 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6226 (find_proc_framesize): Ditto.
6227 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6228 (alpha_init_extra_frame_info): Ditto.
6229 * infrun.c (handle_inferior_event): Ditto.
6230 (handle_inferior_event): Ditto.
6231 (check_sigtramp2): Ditto.
6232 * blockframe.c (create_new_frame): Ditto.
6233 (get_prev_frame): Ditto.
6234 * ppc-linux-tdep.c: Update comments.
6235 * i386-linux-tdep.c: Update comments.
6236 * breakpoint.c (bpstat_what): Update comment.
6237
6238 2002-04-24 David S. Miller <davem@redhat.com>
6239
6240 * i960-tdep.c (register_in_window_p): New function.
6241 (i960_find_saved_register): Use it instead of
6242 REGISTER_IN_WINDOW_P.
6243 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6244
6245 * symtab.h (find_stab_function_addr): Kill extern.
6246 * minsyms.c (find_stab_function_addr): Remove from here...
6247 * dbxread.c: ... to here, and mark it static.
6248
6249 2002-04-20 David S. Miller <davem@redhat.com>
6250
6251 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6252 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6253
6254 2002-04-21 David S. Miller <davem@redhat.com>
6255
6256 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6257 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6258 (vx_write_register): Likewise.
6259
6260 2002-04-23 J. Brobecker <brobecker@gnat.com>
6261
6262 * source.c (is_regular_file): New function.
6263 (openp): Check wether file to open is a regular file
6264 to avoid opening directories.
6265
6266 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6267
6268 * findvar.c (extract_signed_integer): Cast printf argument
6269 to suppress format warning.
6270 (extract_unsigned_integer): Likewise.
6271 * infcmd.c (registers_info): Likewise.
6272 * top.c (get_prompt_1): Likewise.
6273 * valops.c (value_assign): Likewise.
6274 * valprint.c (print_decimal): Likewise.
6275
6276 2002-04-22 H.J. Lu (hjl@gnu.org)
6277
6278 * c-exp.y (typebase): Support
6279
6280 [long|long long|short] [signed|unsigned] [int|]
6281
6282 and
6283
6284 signed [long|long long|short] int
6285
6286 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6287
6288 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6289 and vax-tdep.h.
6290 * vax-tdep.h: New file.
6291 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6292 Make several routines static.
6293 (vax_get_saved_register): New function.
6294 (vax_gdbarch_init): New function.
6295 (_initialize_vax_tdep): Register vax_gdbarch_init.
6296 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6297 Remove macros now under the control of gdbarch.
6298
6299 2002-04-22 Michael Snyder <msnyder@redhat.com>
6300
6301 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6302 Some whitespace and coding standards tweaks.
6303
6304 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6305
6306 * vax-tdep.c: Include regcache.h.
6307 (vax_call_dummy_words): New.
6308 (sizeof_vax_call_dummy_words): New.
6309 (vax_fix_call_dummy): New function.
6310 (vax_saved_pc_after_call): Ditto.
6311 * config/vax/tm-vax.h: Don't include regcache.h.
6312 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6313 (CALL_DUMMY): Remove.
6314 (CALL_DUMMY_WORDS): Define.
6315 (SIZEOF_CALL_DUMMY_WORDS): Define.
6316 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6317
6318 2002-04-18 Michael Snyder <msnyder@redhat.com>
6319
6320 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6321
6322 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6323
6324 * vax-tdep.c (vax_frame_chain): New function.
6325 (vax_push_dummy_frame): Ditto.
6326 (vax_pop_frame): Ditto.
6327 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6328 (FRAMELESS_FUNCTION_INVOCATION): Use
6329 generic_frameless_function_invocation_not.
6330 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6331 (POP_FRAME): Use vax_pop_frame.
6332
6333 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6334
6335 * vax-tdep.c (vax_store_struct_return): New function.
6336 (vax_extract_return_value): Ditto.
6337 (vax_store_return_value): Ditto.
6338 (vax_extract_struct_value_address): Ditto.
6339 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6340 vax_store_struct_return.
6341 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6342 (STORE_RETURN_VALUE): Use vax_store_return_value.
6343 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6344
6345 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6346
6347 * vax-tdep.c (vax_frame_saved_pc): New function.
6348 (vax_frame_args_address_correct): Ditto.
6349 (vax_frame_args_address): Ditto.
6350 (vax_frame_locals_address): Ditto.
6351 (vax_frame_num_args): Move code to be in proximity to
6352 other frame-related functions.
6353 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6354 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6355 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6356 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6357 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6358
6359 2002-04-22 H.J. Lu (hjl@gnu.org)
6360
6361 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6362 includedir.
6363
6364 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6365
6366 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6367 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6368 (FRAME_INIT_SAVED_REGS): New macro.
6369
6370 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6371
6372 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6373
6374 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6375
6376 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6377 where needed.
6378 (fetch_osf_core_registers): Likewise.
6379 (supply_gregset): Likewise.
6380
6381 2002-04-22 J. Brobecker <brobecker@gnat.com>
6382
6383 * symfile.h (get_section_index): Define.
6384 * symfile.c (get_section_index): New function.
6385 * mdebugread.c (SC_IS_SBSS): New macro.
6386 (SC_IS_BSS): Return true for the scBss storage class only, as
6387 the scSBss storage class refers to the .sbss section.
6388 (parse_partial_symbols): Discard the symbols which associated
6389 section does not exist.
6390 Make sure to use the .sbss section index for symbols which
6391 storage class is scBss, rather than using the .bss section index.
6392
6393 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6394
6395 * vax-tdep.c: Update copyright years.
6396 (vax_register_name): New function.
6397 (vax_register_byte): Ditto.
6398 (vax_register_raw_size): Ditto.
6399 (vax_register_virtual_size): Ditto.
6400 (vax_register_virtual_type): Ditto.
6401 * config/vax/tm-vax.h: Update copyright years.
6402 (REGISTER_NAMES): Remove.
6403 (REGISTER_NAME): Define.
6404 (REGISTER_BYTE): Use vax_register_byte.
6405 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6406 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6407 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6408
6409 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6410
6411 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6412 declaration
6413 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6414
6415 2002-04-21 David S. Miller <davem@redhat.com>
6416
6417 * arch-utils.c (generic_prologue_frameless_p): Kill
6418 SKIP_PROLOGUE_FRAMELESS_P code.
6419 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6420 references.
6421 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6422 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6423 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6424 references.
6425 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6426 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6427 (sparc_gdbarch_init): Pass it to
6428 set_gdbarch_prologue_frameless_p.
6429
6430 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6431
6432 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6433 (alphabsd-nat.o): New dependency list.
6434
6435 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6436
6437 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6438 alphafbsd-tdep.c.
6439 (alpha-linux-tdep.o): New dependency list.
6440 (alphafbsd-tdep.o): Likewise.
6441
6442 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6443
6444 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6445 to here...
6446 * alpha-tdep.c: ...from here.
6447 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6448
6449 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6450
6451 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6452 prototype from here...
6453 * alpha-tdep.h: ...to here.
6454
6455 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6456
6457 * frame.h (selected_frame_level): Document as deprecated.
6458 (frame_relative_level): Declare.
6459 * stack.c (frame_relative_level): New function.
6460 (selected_frame_level): Document as deprecated.
6461 (select_frame): Do not set the selected_frame_level.
6462
6463 * stack.c (frame_info, record_selected_frame): Update.
6464 (frame_command, current_frame_command): Update.
6465 (up_silently_base, up_command, down_silently_base): Update.
6466 (down_command): Update.
6467 * inflow.c (kill_command): Update.
6468 * tracepoint.c (finish_tfind_command): Update.
6469 * corelow.c (core_open): Update.
6470 * thread.c (info_threads_command): Update.
6471 (do_captured_thread_select): Update.
6472 * infcmd.c (finish_command): Update.
6473 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6474
6475 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6476
6477 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6478
6479 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6480
6481 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6482 type const.
6483
6484 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6485
6486 * alphafbsd-tdep.c: Update copyright years. Include
6487 alpha-tdep.h.
6488 (alphafbsd_use_struct_convention): Make static.
6489 (alphafbsd_init_abi): New function.
6490 (_initialize_alphafbsd_tdep): New function.
6491 * config/alpha/tm-fbsd.h: Update copyright years.
6492 (USE_STRUCT_CONVENTION): Remove.
6493
6494 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6495
6496 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6497 an Alpha ABI variant.
6498 (alpha_abi_handler_list): Declare.
6499 (alpha_gdbarch_register_os_abi): New function.
6500 (alpha_gdbarch_init): Give registered ABI variant handlers a
6501 chance to tweak the gdbarch once we have set up defaults.
6502 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6503
6504 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6505
6506 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6507 to standard_coerce_float_to_double.
6508 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6509
6510 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6511
6512 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6513 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6514 from gdbarch_tdep rather than a constant.
6515 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6516 the default text address for all Alpha Unix ABIs.
6517 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6518 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6519
6520 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6521
6522 * alpha-tdep.h: New file. Includes several Alpha target constants
6523 taken from...
6524 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6525 let gdbarch deal with.
6526 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6527 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6528 to dependency list.
6529 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6530 Alpha target register names.
6531 * alphabsd-nat.c: Likewise.
6532 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6533 Alpha target register names. Make serveral routines static.
6534 (alpha_get_saved_register): New function.
6535 (alpha_abi_names): New.
6536 (process_note_abi_tag_sections): New function.
6537 (get_elfosabi): New function.
6538 (alpha_gdbarch_init): New function.
6539 (alpha_dump_tdep): New function.
6540 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6541
6542 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6543
6544 * frame.c (find_saved_register): Delete #ifdef
6545 HAVE_REGISTER_WINDOWS code.
6546 * config/sparc/tm-sparc.h: Update comments.
6547 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6548
6549 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6550
6551 * i960-tdep.c (i960_find_saved_register): New function.
6552 (i960_get_saved_register): New function.
6553 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6554 (i960_get_saved_register): Declare.
6555 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6556
6557 2002-04-20 David S. Miller <davem@redhat.com>
6558
6559 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6560
6561 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6562
6563 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6564 instead of NUM_PSEUDO_REGS.
6565
6566 2002-04-20 David S. Miller <davem@redhat.com>
6567
6568 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6569 GDB_MULTI_ARCH_PARTIAL
6570 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6571 define, let tm-sp64.h do it.
6572
6573 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6574
6575 * frame.c (find_saved_register): Avoid a NULL pointer
6576 dereference and actually walk the frame list.
6577
6578 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6579
6580 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6581 sorted in most most-recent-used order. Document.
6582 * gdbarch.h, gdbarch.c: Regenerate.
6583
6584 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6585
6586 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6587 instead of ->prev.
6588 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6589 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6590 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6591 instead of ->prev.
6592
6593 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6594
6595 Fix PR gdb/471.
6596 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6597 (build_builtin_type_vec128): Ditto.
6598 (append_composite_type_field): Fix calculation of type length in
6599 union case.
6600
6601 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6602
6603 * config/djgpp/README: Update.
6604
6605 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6606 compiler warnings.
6607
6608 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6609
6610 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6611 (alpha_setup_arbitrary_frame): ...to this.
6612 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6613 for alpha_setup_arbitrary_frame.
6614
6615 2002-04-18 Andrew Cagney <cagney@redhat.com>
6616
6617 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6618 * gdbarch.h, gdbarch.c: Regenerate.
6619
6620 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6621 * target.h (memory_breakpoint_from_pc): Update declaration.
6622 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6623
6624 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6625 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6626 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6627 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6628 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6629 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6630 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6631 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6632 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6633 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6634 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6635 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6636
6637 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6638 const pointer.
6639 * monitor.c (monitor_insert_breakpoint): Ditto.
6640 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6641
6642 * config/mcore/tm-mcore.h: Update copyright.
6643 * mem-break.c: Ditto.
6644 * xstormy16-tdep.c: Ditto.
6645
6646 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6647
6648 * p-exp.y: Add precedence rule for '^' token.
6649 This removes the shift/reduce conflicts.
6650 Remove the comment concerning these shift/reduce conflicts.
6651
6652 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6653
6654 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6655 (registers_powerpc_nofp): New register set for processors
6656 without floating point unit.
6657
6658 2002-04-18 David S. Miller <davem@redhat.com>
6659
6660 * MAINTAINERS: Add myself to write-after-approval.
6661
6662 2002-04-17 Michael Snyder <msnyder@redhat.com>
6663
6664 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6665
6666 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6667
6668 * rs6000-tdep.c (frame_initial_stack_address): Use
6669 frame_register_read to read the alloca_reg.
6670
6671 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6672
6673 * frame.c (find_saved_register): Find saved registers in the next
6674 not prev frame.
6675 Fix PR gdb/365.
6676
6677 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6678
6679 * gdbarch.sh (LANG): Set to ``c''.
6680
6681 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6682
6683 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6684
6685 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6686
6687 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6688 Update copyright.
6689
6690 * hpread.c (hpread_get_lntt): Add declaration.
6691 Also fix PR gdb/391.
6692
6693 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6694
6695 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6696 * aclocal.m4, configure: Re-generate.
6697 Fix PR gdb/391.
6698
6699 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6700
6701 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6702 instead of tm_print_insn.
6703
6704 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6705
6706 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6707
6708 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6709
6710 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6711 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6712 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6713
6714 2002-04-12 Don Howard <dhoward@redhat.com>
6715
6716 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6717 max_user_call_depth.
6718 (init_cmd_lists): Initialize the new value;
6719 * cli/cli-script.c (execute_user_command): Limit the call depth of
6720 user defined commands. This avoids a core-dump when user commands
6721 are infinitly recursive.
6722
6723 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6724
6725 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6726 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6727 from tdep struct instead of DEFAULT_LR_SAVE.
6728 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6729 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6730 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6731
6732 2002-04-12 Michael Snyder <msnyder@redhat.com>
6733
6734 * Remote.c: Spelling fix.
6735 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6736 If no symbol found for "sbrk", try "_sbrk".
6737 (make_output_phdrs): Use bfd_section_name.
6738 (gcore_copy_callback): Use bfd_section_name.
6739 * eval.c: Indentation fix-ups.
6740 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6741 in case it gets applied to an address that is already
6742 in the instruction space.
6743 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6744 * symfile.c: Fix indentation, long lines.
6745 * source.c: White space fix-up.
6746
6747 2002-04-12 Andrew Cagney <cagney@redhat.com>
6748
6749 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6750 * frame.c (frame_register_read): New function. Return non-zero on
6751 success.
6752 (read_relative_register_raw_bytes_for_frame): Delete.
6753 (read_relative_register_raw_bytes): Delete.
6754 * frame.h (frame_register_read): Declare.
6755 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6756 * sh-tdep.c: Ditto.
6757 * infcmd.c (do_registers_info): Ditto.
6758 * hppa-tdep.c: Ditto.
6759 * rs6000-tdep.c: Ditto.
6760 * h8500-tdep.c: Ditto.
6761 * mips-tdep.c: Ditto.
6762 * h8300-tdep.c: Ditto.
6763 * z8k-tdep.c: Ditto.
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): Use rs6000_* methods for
6769 64-bit SysV ABI.
6770
6771 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6772
6773 From Jimi X <jimix@watson.ibm.com>:
6774 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6775 bfd info.
6776
6777 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6778
6779 From Jimi X <jimix@watson.ibm.com>:
6780 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6781 register sets for these processor variants.
6782
6783 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6784
6785 * regformats/reg-ppc.dat: Support FPSCR.
6786
6787 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6788
6789 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6790 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6791 Add fpscr as an invalid/unfetchable register.
6792 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6793 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6794 (fill_fpregset): Add support for register fpscr.
6795 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6796 (fill_gregset): Account for the fact that register ``mq'' might
6797 not exist.
6798 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6799 (registers_power): Add fpscr to register set at slot 71.
6800 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6801 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6802
6803 2002-04-11 Michael Snyder <msnyder@redhat.com>
6804
6805 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6806 * configure: Regenerate.
6807 * config.in: Regenerate.
6808 * acconfig.h: Add define for _SYSCALL32.
6809 * core-sol2.c: Remove #define _SYSCALL32.
6810 * solib-legacy.c: Remove #define _SYSCALL32.
6811
6812 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6813
6814 * stack.c (select_frame): Cleanup internal error message, do not
6815 use %p.
6816
6817 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6818
6819 * stack.c (select_frame): Check that selected_frame and the
6820 specified level are as expected.
6821 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6822 Update copyright.
6823 * frame.h (struct frame_info): Add field `level'. Update
6824 copyright.
6825 Work-in-progress PR gdb/464.
6826
6827 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6828
6829 * maint.c (maint_print_section_info): Rename print_section_info.
6830 (print_bfd_section_info, print_objfile_section_info): Update.
6831 * inferior.h (struct gdbarch): Add opaque declaration.
6832 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6833 * gdbarch.h: Regenerate.
6834
6835 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6836
6837 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6838 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6839 (kernel_u_size): Added.
6840 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6841 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6842
6843 2002-04-04 Jim Ingham <jingham@apple.com>
6844
6845 * valarith.c (find_size_for_pointer_math): New function, either returns
6846 the size for a pointer's target, returns 1 for void *, or errors for
6847 incomplete types.
6848 (value_add, value_sub): use find_size_for_pointer_math.
6849
6850 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6851
6852 * linux-low.c (linux_look_up_symbols): New hook.
6853 (linux_target_ops): Add linux_look_up_symbols.
6854 * remote-utils.c (decode_address): New function.
6855 (look_up_one_symbol): New function.
6856 * server.c (handle_query): Call target look_up_symbols hook.
6857 * server.h (look_up_one_symbol): Add prototype.
6858 * target.h (struct target_ops): Add look_up_symbols hook.
6859
6860 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6861
6862 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6863 override FP_REGNUM with frame->fp. Update copyright.
6864 * parse.c (num_std_regs, std_regs): Delete.
6865 (target_map_name_to_register): Do not search std_regs. Update
6866 function description.
6867 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6868 declarations. Update copyright.
6869 Fix PR gdb/251.
6870
6871 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6872
6873 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6874 after the last symbol in a block.
6875
6876 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6877
6878 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6879 is non zero as a found symbol.
6880
6881 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6882
6883 * findvar.c: Include "builtin-regs.h".
6884 (value_of_register): Call value_of_builtin_reg when applicable.
6885 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6886 (target_map_name_to_register): Call
6887 builtin_reg_map_name_to_regnum.
6888 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6889 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6890 (builtin_regs_h): Define.
6891 (builtin-regs.o): New target.
6892 (findvar.o): Add $(builtin_regs_h).
6893 * builtin-regs.c, builtin-regs.h: New files.
6894 * std-regs.c: New file.
6895 Partial fix for PR gdb/251.
6896
6897 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6898
6899 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6900 it's no longer required.
6901
6902 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6903
6904 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6905
6906 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6907
6908 From Jimi X <jimix@watson.ibm.com>:
6909 * rs6000-tdep.c (rs6000_software_single_step): Use
6910 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6911 and size. Use target_insert_breakpoint() and
6912 target_remove_breakpoint() to insert and remove breakpoints
6913 instead of explicit memory reads and writes.
6914
6915 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6916
6917 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6918 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6919 ELF_OBJECT_FORMAT ifdef.
6920
6921 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6922
6923 From Jimi X <jimix@watson.ibm.com>:
6924 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6925
6926 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6927
6928 From Jimi X <jimix@watson.ibm.com>:
6929 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6930 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6931
6932 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6933
6934 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6935 s/asprintf/xasprintf/.
6936 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6937
6938 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6939
6940 I believe Jeff Law denies responsability for this one:
6941 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6942 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6943 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6944 Work-around for PR gdb/366.
6945
6946 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6947
6948 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6949 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6950 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6951
6952 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6953
6954 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6955 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6956 information.
6957
6958 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6959
6960 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6961 maintainer.
6962
6963 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6964
6965 * README (Reporting Bugs in GDB): Document the bug web page as the
6966 prefered way of submitting bugs.
6967 Fix PR gdb/402.
6968
6969 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6970
6971 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6972 -1. Update comment.
6973 * gdbarch.h, gdbarch.c: Re-generate.
6974
6975 2002-04-07 Andreas Schwab <schwab@suse.de>
6976
6977 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6978 buffer to regcache_collect.
6979
6980 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6981
6982 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6983 * gdbarch.c, gdbarch.h: Re-generate.
6984
6985 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6986
6987 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6988 declaration. Fix -Werror.
6989
6990 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6991
6992 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6993 * gdbarch.c: Regenerate.
6994
6995 2002-04-05 Michael Snyder <msnyder@redhat.com>
6996
6997 * breakpoint.c (clear_command): Rewrite middle section to
6998 combine two loops with identical control conditions.
6999 Add a cleanup to eliminate a memory leak.
7000 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7001
7002 2002-04-05 H.J. Lu (hjl@gnu.org)
7003
7004 * solib-svr4.c (bkpt_names): Add "__start".
7005
7006 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7007
7008 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7009 as test for 64 bit target.
7010
7011 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7012
7013 * h8500-tdep.c (h8500_write_fp): Delete function.
7014 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7015 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7016 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7018 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7019 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7020 (s390_write_fp):
7021 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7022 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7023 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7024 (d10v_write_fp): Delete function.
7025 * inferior.h (write_fp, generic_target_write_fp): Delete
7026 declarations.
7027 * regcache.c (generic_target_write_fp): Delete function.
7028 (write_fp): Delete function.
7029 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7030 * gdbarch.h, gdbarch.c: Regenerate.
7031 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7032 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7033 (sparc64_write_fp): Delete declaration.
7034 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7035 (h8500_write_fp): Delete declaration.
7036
7037 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7038
7039 * sparc-tdep.c (sparc64_write_fp): Delete.
7040 (sparc_push_dummy_frame): Replace write_fp call with code to store
7041 the FP directly.
7042 (sparc_gdbarch_init): Do not initialize write_fp.
7043
7044 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7045
7046 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7047 clause.
7048
7049 2002-03-29 Jim Blandy <jimb@redhat.com>
7050
7051 * stack.c (get_selected_block): Add new argument `addr_in_block',
7052 used to return the exact code address we used to select the block,
7053 not just the block.
7054 * blockframe.c (get_frame_block, get_current_block): Same.
7055 * frame.h (get_frame_block, get_current_block,
7056 get_selected_block): Update declarations.
7057 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7058 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7059
7060 2002-04-05 Michael Snyder <msnyder@redhat.com>
7061
7062 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7063 warning message.
7064
7065 2002-04-05 J. Brobecker <brobecker@gnat.com>
7066
7067 * utils.c (xfullpath): New function.
7068 * defs.h (xfullpath): Add declaration.
7069 * source.c (openp): Use xfullpath in place of gdb_realpath to
7070 avoid resolving the basename part of filenames when the
7071 associated file is a symbolic link. This fixes a potential
7072 inconsistency between the filenames known to GDB and the
7073 filenames it prints in the annotations.
7074 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7075 to be able to match a filename with either the real filename, or
7076 the name of any symbolic link to this file.
7077 (lookup_partial_symtab): Ditto.
7078
7079 2002-04-04 Michael Snyder <msnyder@redhat.com>
7080
7081 * breakpoint.c: Add support for hardware breakpoints in overlays.
7082 (overlay_events_enabled): New state variable.
7083 (insert_breakpoints): Use overlay_events_enabled to decide
7084 whether to attempt to set a breakpoint at the overlay load addr.
7085 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7086 (remove_breakpoint): Use overlay_events_enabled to decide
7087 whether breakpoints need to be removed from overlay load addr.
7088 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7089 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7090 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7091 disable_overlay_breakpoints): Update overlay_events_enabled.
7092
7093 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7094
7095 * dwarf2read.c (struct function_range): New.
7096 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7097 (check_cu_functions): New.
7098 (read_file_scope): Initialize global function lists.
7099 Call dwarf_decode_line after processing children.
7100 (read_func_scope): Add to global function list.
7101 (dwarf_decode_lines): Call check_cu_functions everywhere
7102 record_line is called. Call record_line with a linenumber
7103 of 0 to mark sequence ends.
7104
7105 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7106
7107 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7108 change sync with glibc.
7109
7110 2002-04-03 Jim Blandy <jimb@redhat.com>
7111
7112 * configure.in: Call AC_C_INLINE.
7113 * configure: Regenerated.
7114
7115 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7116
7117 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7118 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7119
7120 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7121
7122 * NEWS: Mention gcore support on FreeBSD/i386.
7123
7124 * fbsd-proc.c: New file.
7125 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7126 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7127
7128 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7129 while statement.
7130
7131 2002-03-29 Jim Blandy <jimb@redhat.com>
7132
7133 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7134 unescaped newlines in string literals, but newer ones don't. So
7135 escape them.
7136
7137 2002-03-26 Michael Snyder <msnyder@redhat.com>
7138 Andrew Cagney <cagney@redhat.com>
7139
7140 * cli/cli-dump.c: New file. Dump memory to file,
7141 restore file to memory.
7142 * cli/cli-dump.h: New file.
7143 * Makefile.in: Add rules, dependencies for cli-dump.o.
7144 * NEWS: Mention new commands.
7145
7146 2002-03-28 Michael Snyder <msnyder@redhat.com>
7147
7148 * symfile.c (symbol_file_add): Move test for null symbols to later.
7149
7150 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7151
7152 From veksler at il.ibm.com:
7153 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7154 the xstrduped original path.
7155 Fix PR gdb/417.
7156
7157 2002-03-27 Michael Snyder <msnyder@redhat.com>
7158
7159 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7160 * infcmd.c (_initialize_infcmd): Ditto.
7161 * language.c (_initialize_language): Ditto.
7162 * symfile.c (_initialize_symfile): Ditto.
7163 * top.c (_init_main): Ditto.
7164 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7165
7166 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7167
7168 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7169 vector registers handling.
7170 (skip_prologue): Handle new AltiVec instructions. Fill in new
7171 fields of frame data.
7172 (frame_get_saved_regs): Fill in information for AltiVec registers.
7173
7174 2002-03-27 Jim Blandy <jimb@redhat.com>
7175
7176 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7177 a function; leave this macro here to invoke that function.
7178 (symbol_init_mangled_name): Declaration for that function.
7179 * symtab.c (symbol_init_mangled_name): New function.
7180
7181 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7182
7183 * valarith.c: Replace strerror with safe_strerror.
7184 * tracepoint.c: Ditto.
7185 * lin-lwp.c: Ditto.
7186 * go32-nat.c: Ditto.
7187 * inflow.c: Ditto.
7188 * gnu-nat.c: Ditto.
7189
7190 2002-03-27 Andreas Schwab <schwab@suse.de>
7191
7192 * event-top.c (command_line_handler): Remove useless if.
7193
7194 2002-03-27 Andreas Jaeger <aj@suse.de>
7195
7196 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7197 comment.
7198
7199 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7200
7201 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7202 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7203 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7204 (x86_64_linux_dr_get_status, supply_gregset),
7205 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7206 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7207 (x86_64_register_info_table): Add.
7208 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7209 (x86_64_register_raw_size, x86_64_register_virtual_type),
7210 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7211 general x86_64_register_info_table.
7212 (i386_gdbarch_init): gdbarch_register_bytes is now set
7213 dynamicaly during initialization.
7214 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7215 * gdbserver/linux-x86-64-low.c: Ditto.
7216
7217 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7218
7219 * gdbserver/server.c (main): Call target_signal_to_host_p
7220 and target_signal_to_host on signals received from the remote.
7221 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7222 target_signal_from_host on signals sent to the remote.
7223 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7224 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7225
7226 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7227
7228 * signals/signals.c: Include "server.h" in gdbserver build.
7229 (target_signal_from_name): Don't use STREQ.
7230 (_initialize_signals): Likewise. Don't include function in
7231 gdbserver build.
7232
7233 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7234
7235 * signals.c: Moved to...
7236 * signals/signals.c: Here.
7237 * Makefile (signals.o): Update.
7238
7239 2002-03-26 Jeff Law (law@redhat.com)
7240
7241 * somread.c (som_symtab_read): Remove some commented out code and
7242 updated related comments. Do not set the minimal symbol table to
7243 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7244 in a dynamic executable.
7245 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7246 where we are unable to find the minimal symbol for the given
7247 PC value.
7248
7249 2002-03-25 Jeff Law (law@redhat.com)
7250
7251 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7252
7253 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7254
7255 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7256
7257 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7258
7259 * command.h: Update copyright.
7260 (struct cmd_list_element): Replace definition with opaque
7261 declaration.
7262 (enum cmd_types): Document that it will eventually be moved to
7263 cli/cli-decode.h
7264 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7265 (MALLOCED_REPLACEMENT): Delete macro.
7266 * Makefile.in (cli_decode_h): Add $(command_h).
7267 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7268 * top.c: Include "cli/cli-decode.h".
7269 * completer.c: Include "cli/cli-decode.h".
7270 * maint.c: Include "cli/cli-decode.h".
7271 * cli/cli-decode.h: Include "command.h".
7272 (enum command_class): Delete.
7273 (enum cmd_types): Comment out.
7274 (enum cmd_auto_boolean): Delete.
7275 (enum var_types): Delete.
7276
7277 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7278
7279 * cli/cli-decode.c: Include "gdb_assert.h".
7280 (add_set_or_show_cmd): New static function.
7281 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7282 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7283 all fields, such as func, from the set command.
7284
7285 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7286
7287 * MAINTAINERS (sh-elf): Change warning flag to -w.
7288
7289 2002-03-23 Andrew Cagney <cagney@redhat.com>
7290
7291 * defs.h (error): Add printf format attribute.
7292 * thread-db.c (thread_from_lwp): Fix error format string.
7293 * stack.c (parse_frame_specification): Ditto.
7294 * cli/cli-decode.c (undef_cmd_error): Ditto.
7295 * scm-lang.c (scm_lookup_name): Ditto.
7296 * tracepoint.c (trace_error): Ditto.
7297 * remote-utils.c (usage): Ditto.
7298 * remote.c (compare_sections_command): Ditto.
7299 Fix PR gdb/328.
7300
7301 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7302
7303 * gdbtypes.c (append_composite_type_field): New function.
7304 (init_composite_type): New function.
7305 * gdbtypes.h (append_composite_type_field): Declare.
7306 (init_composite_type): Ditto.
7307
7308 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7309
7310 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7311 function.
7312 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7313 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7314 structure returning convention for SYSV ABI case, but not
7315 for GNU/Linux, FreeBSD, or NetBSD.
7316
7317 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7318
7319 * symtab.h (lookup_block_symbol): Add mangled_name argument
7320 to prototype.
7321
7322 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7323 with new mangled_name argument.
7324 * linespec.c (decode_line_1): Likewise.
7325 * valops (value_of_this): Likewise.
7326 * symtab.c (lookup_transparent_type): Likewise.
7327 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7328 (lookup_symbol): If we are given a mangled name, pass it down
7329 to lookup_symbol_aux.
7330 (lookup_block_symbol): If we are given a mangled name to check
7331 against, only return symbols which match it.
7332
7333 2002-03-22 Christopher Faylor <cgf@redhat.com>
7334
7335 * win32-nat.c (child_create_inferior): Check for proper shell to use
7336 here, in case the user changes it on the fly.
7337 (_initialize_inftarg): Remove shell path considerations.
7338
7339 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7340
7341 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7342 for gdbarch_max_register_raw_size and max_register_virtual_size.
7343 Adjust copyright year.
7344
7345 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7346
7347 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7348 in a function to cover the entire beginning of the function
7349 as well if it does not already.
7350
7351 2002-03-21 Tom Rix <trix@redhat.com>
7352
7353 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7354 (rs6000_ptrace64): Renamed from ptrace64.
7355
7356 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7357
7358 * gdbserver/remote-utils.c (remote_open): Don't call
7359 getprotobyname, we're all using TCP here so just use
7360 IPPROTO_TCP.
7361 * gdbserver/gdbreplay.c (remote_open): Ditto.
7362
7363 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7364
7365 * regcache.c (_initialize_regcache): No need to call
7366 build_regcache() at this time; it gets called whenever
7367 the gdbarch changes.
7368
7369 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7370
7371 * sparc-nat.c: Include sys/param.h where possible.
7372
7373 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7374
7375 Fix PR gdb/422.
7376 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7377 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7378 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7379 complex types.
7380 * stabsread.c (rs6000_builtin_type): Likewise.
7381 (read_sun_floating_type): Likewise.
7382
7383 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7384
7385 * stabsread.c (read_member_functions): Remove skip code for duplicate
7386 constructor/destructor methods. Use standard parsing for these
7387 methods and just do not chain them to the list of methods after
7388 parsing.
7389
7390 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7391
7392 * coffread.c: Remove redundant static declarations. Replace
7393 occurrences of `PTR' with `void *'.
7394 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7395 * top.h (quit_cover): Likewise.
7396 * defs.h (catch_errors): Likewise.
7397
7398 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7399
7400 * defs.h (XMALLOC): Define.
7401 * gdb-events.sh (XMALLOC): Delete macro.
7402 * gdb-events.c, gdb-events.h: Regenerate.
7403 * gdbarch.sh (XMALLOC): Delete macro.
7404 * gdbarch.c: Regenerate.
7405 * serial.c (XMALLOC): Delete macro.
7406 * ui-file.c (XMALLOC): Ditto.
7407 * ser-unix.h (XMALLOC): Ditto.
7408 * sh-tdep.c (XMALLOC): Ditto.
7409 * ui-out.c (XMALLOC): Ditto.
7410 * utils.c (XMALLOC): Ditto.
7411 * i386-tdep.c (XMALLOC): Ditto.
7412 * gdb-events.c (XMALLOC): Ditto.
7413 * d10v-tdep.c (XMALLOC): Ditto.
7414 * cli-out.c (XMALLOC): Ditto.
7415
7416 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7417 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7418 * ui-file.c, ui-out.c: Ditto.
7419
7420 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7421
7422 * command.h (struct cmd_list_element): Add field context.
7423 (set_cmd_context, get_cmd_context): Declare.
7424 * cli/cli-decode.h: Ditto.
7425 * cli/cli-decode.c (get_cmd_context): New function.
7426 (set_cmd_context): New function.
7427 (add_cmd): Initialize context.
7428 Part of fixing PR gdb/145 and PR gdb/146.
7429
7430 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7431
7432 * cli/cli-decode.c (cmd_type): New function.
7433 * command.h (cmd_type): Declare.
7434 * infrun.c (set_schedlock_func): Call function cmd_type.
7435 * kod.c (kod_set_os): Call cmd_type.
7436 * cris-tdep.c (cris_version_update): Use function cmd_type.
7437 (cris_mode_update, cris_abi_update): Ditto.
7438
7439 * command.h: (execute_cmd_post_hook): Declare.
7440 (execute_cmd_pre_hook): Declare.
7441 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7442 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7443 functions. Execute pre/post hook while ensuring that afterwords
7444 hook_in is cleared.
7445 * top.c (execute_command): Use execute_cmd_post_hook, and
7446 execute_cmd_pre_hook to execute pre/post commands.
7447 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7448 hook_stop_stub.
7449 (hook_stop_stub): Call execute_cmd_pre_hook.
7450
7451 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7452
7453 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7454 set'' and this leads to a core dump. Move xstrdup of
7455 operating_system to after check that it is not NULL.
7456
7457 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7458
7459 * kod.c (kod_set_os): Remove unnecessary check that
7460 ``command->type'' is set_cmd.
7461
7462 * valprint.c (set_input_radix): Use input_radix.
7463 (set_output_radix): Use output_radix.
7464 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7465 isn't reverted.
7466
7467 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7468
7469 * value.h (struct value): Delete field ``substring_addr''. Change
7470 aligner fields to force_doublest_align, force_longest_align,
7471 force_core_addr_align and force_pointer_aligh.
7472
7473 * value.h (struct value): Fix typo in above change.
7474
7475 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7476
7477 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7478 to fix internal_error from ``maintenance print architecture''.
7479
7480 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7481
7482 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7483 for gcc versions after gcc-2.8.1.
7484
7485 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7486
7487 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7488 for method resolution. Restore adjustment of ``this'' pointer after
7489 calling value_struct_elt, which was accidentally removed during the
7490 HP merge.
7491
7492 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7493
7494 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7495 value_of_register.
7496 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7497 get_saved_register.
7498 * value.h (value_of_register): Update.
7499
7500 2002-03-14 Richard Henderson <rth@redhat.com>
7501
7502 * configure.in: Detect declaration for canonicalize_file_name.
7503 * utils.c (canonicalize_file_name): Declare, if needed.
7504 (gdb_realpath): Prefer realpath if available and usable.
7505 * config.in, configure: Rebuild.
7506
7507 2002-03-14 Richard Henderson <rth@redhat.com>
7508
7509 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7510 a constant array bound.
7511
7512 * MAINTAINERS: Add myself to write-after-approval.
7513
7514 2002-03-14 Michael Snyder <msnyder@redhat.com>
7515
7516 * symfile.c (syms_from_objfile): Return immediately if no syms.
7517 (symbol_file_add): Return immediately if no syms.
7518 (find_sym_fns): Return immediately if no syms.
7519
7520 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7521
7522 * gdbserver/remote-util.c (remote_open): Print remote-side's
7523 IP address when remote debugging over the network.
7524
7525 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7526
7527 * config/sparc/fbsd.mh: Fix copyright.
7528 * config/sparc/fbsd.mt: Likewise.
7529
7530 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7531
7532 * MAINTAINERS: Fix typo in name of gdb warnings option.
7533 (x86-64): Fix formating so that this can be parsed by awk.
7534
7535 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7536
7537 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7538 * defs.h: Include "gdb/signals.h".
7539 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7540
7541 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7542
7543 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7544 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7545 from x86-64-tdep.h
7546
7547 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7548 Don Howard <dhoward@redhat.com>
7549
7550 * mips-tdep.c (ST0_FR): Define.
7551 (mips2_fp_compat): New function, temporarily disabled.
7552 (mips_read_fp_register_single): New function.
7553 (mips_read_fp_register_double): New function.
7554 (mips_print_register): Use them.
7555 (do_fp_register_row): Likewise.
7556
7557 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7558
7559 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7560 approval''.
7561
7562 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7563
7564 * stabsread.c (read_member_functions): Fix is_stub test for
7565 static member functions, improve comment.
7566
7567 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7568
7569 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7570 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7571 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7572 commands that set boolean values.
7573 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7574 (arm_rdi_resume): Always initialize PC.
7575 (arm_rdi_open): Don't use rslt as a boolean.
7576 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7577 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7578 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7579 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7580
7581 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7582
7583 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7584 * configure: Rebuilt.
7585
7586 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7587
7588 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7589 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7590
7591 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7592
7593 * cli/cli-decode.c (set_cmd_completer): New function.
7594 * command.h (set_cmd_completer): Declare.
7595 * cli/cli-decode.h (set_cmd_completer): Ditto.
7596
7597 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7598 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7599 * win32-nat.c (_initialize_inftarg): Ditto.
7600 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7601 * proc-api.c (_initialize_proc_api): Ditto.
7602 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7603 * source.c (_initialize_source): Ditto.
7604 * exec.c (_initialize_exec): Ditto.
7605 * solib.c (_initialize_solib): Ditto.
7606 * top.c (init_main): Ditto.
7607 * tracepoint.c (_initialize_tracepoint): Ditto.
7608 * symfile.c (_initialize_symfile): Ditto.
7609 * printcmd.c (_initialize_printcmd): Ditto.
7610 * infcmd.c (_initialize_infcmd): Ditto.
7611 * corefile.c (_initialize_core): Ditto.
7612
7613 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7614
7615 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7616
7617 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7618
7619 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7620
7621 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7622
7623 * NEWS: Update headings, 5.2 has branched.
7624
7625 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7626
7627 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7628 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7629 (register_addr, REGISTER_RAW_SIZE): Likewise.
7630 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7631 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7632
7633 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7634
7635 * MAINTAINERS (x86-64): Add myself.
7636 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7637 changed value_ptr -> struct value *
7638
7639 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7640
7641 * configure.host (sparc64-*-freebsd): Add.
7642 * configure.tgt: Likewise.
7643 * config/sparc/fbsd.mh: New file.
7644 * config/sparc/fbsd.mt: Likewise.
7645 * config/sparc/nm-fbsd.h: Likewise.
7646 * config/sparc/tm-fbsd.h: Likewise.
7647
7648 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7649
7650 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7651 regformats/reg-s390x.dat.
7652
7653 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7654
7655 * utils.c: Add FIXME explaining true/false problem.
7656
7657 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7658
7659 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7660
7661 2002-02-28 Michael Chastain <mec@shout.net>
7662
7663 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7664
7665 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7666
7667 * gdbserver/linux-s390-low.c: New file.
7668 * regformats/reg-s390.dat: New file.
7669 * regformats/reg-s390x.dat: New file.
7670 * gdbserver/configure.srv: Add S/390.
7671 * gdbserver/Makefile.in: Add S/390.
7672 * configure.tgt: Enable gdbserver for S/390.
7673
7674 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7675
7676 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7677 first line of the doc string for "info dos", except at the end of
7678 the sentence, since the short help stops at the first period.
7679
7680 2002-02-28 Jason Merrill <jason@redhat.com>
7681
7682 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7683
7684 2002-02-27 Fred Fish <fnf@redhat.com>
7685
7686 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7687 comment (dumy -> dummy).
7688
7689 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7690
7691 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7692
7693 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7694
7695 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7696
7697 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7698
7699 * gdbserver/acconfig.h: New file.
7700 * gdbserver/i387-fp.c: New file.
7701 * gdbserver/i387-fp.h: New file.
7702 * gdbserver/linux-x86-64.c: New file.
7703 * regformats/reg-x86-64.dat: New file.
7704 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7705 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7706 * gdbserver/configure.in: Add support for regsets.
7707 * gdbserver/config.in: Regenerate.
7708 * gdbserver/configure: Regenerate.
7709 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7710 * gdbserver/linux-low.h: New file.
7711 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7712 for regsets.
7713 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7714 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7715 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7716 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7717 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7718 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7719 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7720 "i387-fp.h". Add PTRACE_GETREGS and friends.
7721 * gdbserver/regcache.c (supply_register): New function.
7722 (supply_register_by_name): New function.
7723 (collect_register): New function.
7724 (collect_register_by_name): New function.
7725
7726 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7727
7728 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7729 (config.status): Add configure.srv dependency.
7730 (server_h): Add config.h dependency.
7731
7732 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7733
7734 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7735 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7736 * gdbserver/configure.srv: Change i386-*-linux* to use
7737 reg-i386-linux.o.
7738
7739 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7740
7741 * x86-64-tdep.c: Re-indent. Update copyright date.
7742
7743 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7744
7745 From Michal Ludvig <mludvig@suse.cz>:
7746 * x86-64-tdep.c (value.h): Delete.
7747 (gdb_assert.h): Include.
7748 (x86_64_register_convert_to_virtual,
7749 x86_64_register_convert_to_raw ): Add check which lets only
7750 floating-point values to be converted.
7751 (value_push): Delete.
7752 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7753 (i386_gdbarch_init): Number of register_bytes fixed.
7754
7755 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7756
7757 * MAINTAINERS: Add x86-64 target.
7758
7759 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7760
7761 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7762 * osfsolib.c (solib_map_sections): Ditto.
7763 * irix5-nat.c (solib_map_sections): Ditto.
7764 * corelow.c (gdb_check_format): Ditto.
7765 * symfile.c (symfile_bfd_open): Ditto.
7766 * solib.c (solib_map_sections): Ditto.
7767 Fix PR gdb/354.
7768
7769 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7770
7771 * remote.c (_initialize_remote): By default, disable ``e'' and
7772 ``E'' step out-of-range packets.
7773
7774 2002-02-26 Andreas Schwab <schwab@suse.de>
7775
7776 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7777 m68k_linux_frame_saved_pc.
7778 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7779 in_sigtramp.
7780 (SIGCONTEXT_PC_OFFSET): Remove.
7781 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7782 m68k_linux_sigtramp_saved_pc): New functions.
7783 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7784 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7785 (UCONTEXT_PC_OFFSET): Define.
7786 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7787 non-RT and RT signal trampolines.
7788
7789 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7790
7791 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7792 (TARGET_NBPG, STACK_END_ADDR): Delete
7793 (VARIABLES_INSIDE_BLOCK): Delete.
7794
7795 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7796
7797 * utils.c (perror_with_name): Make string parameter constant.
7798 (print_sys_errmsg): Ditto.
7799 (query): Ditto.
7800 * defs.h (perror_with_name): Update.
7801 (print_sys_errmsg): Update.
7802 (query): Update.
7803
7804 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7805
7806 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7807 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7808
7809 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7810
7811 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7812 if it already matches the current architecture from the exec file.
7813 Include arch-utils.h for gdbarch_info_init prototype.
7814 * Makefile.in (rs6000-nat.o): Update dependencies.
7815
7816 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7817
7818 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7819 list of exported variables.
7820
7821 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7822
7823 * gdbserver/configure.srv: New file.
7824 * gdbserver/configure.in: Use configure.srv instead
7825 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7826 from it.
7827 * gdbserver/configure: Regenerated.
7828 * gdbserver/terminal.h: New file.
7829 * gdbserver/Makefile.in: Update for configure changes. Remove
7830 more unneeded include paths.
7831
7832 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7833
7834 From wiz at danbala:
7835 * config/sparc/tm-sp64.h: Fix grammar and typos.
7836 Fix PR gdb/287.
7837
7838 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7839
7840 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7841 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7842 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7843 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7844 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7845 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7846 * s390-tdep.c: Ditto.
7847 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7848 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7849 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7850 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7851 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7852 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7853 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7854 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7855 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7856 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7857 Fix PR gdb/378.
7858
7859 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7860
7861 * lin-thread.c: Delete file.
7862 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7863 to gdb_proc_service.h.
7864 * configure: Re-generate.
7865
7866 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7867 * serial.c (serial_open): Delete check for "ocd".
7868 Fix PR gdb/349.
7869
7870 * Makefile.in (linux-thread.o): Delete target.
7871 * linux-thread.c: Delete file.
7872
7873 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7874 renamed SH files to be consistent.
7875
7876 * symtab.c (sort_search_symbols): Use xfree.
7877
7878 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7879
7880 * arm-linux-tdep.c (arm_linux_init_abi): Register
7881 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7882 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7883 definition with undef, since we don't want the sysvr4 definition.
7884 (SKIP_TRAMPOLINE_CODE): Likewise.
7885
7886 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7887
7888 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7889
7890 * configure.in: (AC_CHECK_FUNCS) Added test for
7891 canonicalize_file_name Regenerated.
7892 * config.in, configure: Regenerated.
7893 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7894 defined use canonicalize_file_name.
7895
7896 2002-02-23 Michael Chastain <mec@shout.net>
7897
7898 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7899
7900 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7901
7902 * README: Remove references to cygnus.com.
7903 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7904 dot com'' form. Remove references to cygnus.com and sourceware.
7905
7906 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7907
7908 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7909 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7910 1003.1-2001 no longer allows "head -1".
7911 * gdb/Makefile.in (version.c): Likewise.
7912 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7913 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7914 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7915
7916 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7917
7918 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7919 * command.h (cmd_cfunc_eq): Declare.
7920 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7921
7922 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7923 ``struct cmd_list_element *''.
7924 * cli/cli-cmds.c (is_complete_command): Update. Use
7925 cmd_cfunc_eq.
7926 * top.c (execute_command): Pass the command to
7927 is_complete_command.
7928 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7929
7930 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7931
7932 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7933 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7934 architecture defines.
7935 * s390-tdep.c (s390_gdbarch_init): Likewise.
7936
7937 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7938
7939 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7940 (arm_linux_push_arguments): Likewise.
7941 (arm_linux_init_abi): Register them. Also register linux-specific
7942 call_dummy_words.
7943 (find_minsym_and_objfile): Use strcmp, not STREQ.
7944 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7945 (arm_linux_call_dummy_words): Delete declaration.
7946 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7947 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7948 declarations.
7949 (LOWEST_PC): Delete.
7950
7951 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7952
7953 * maint.c (print_section_info): Do not prepend `0x' to filepos
7954 output, it will be handled by local_hex_string_custom.
7955
7956 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7957
7958 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7959 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7960 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7961
7962 2002-02-22 Jim Blandy <jimb@redhat.com>
7963
7964 Indicate that the bcache functions don't change the strings
7965 they're passed.
7966 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7967 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7968
7969 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7970
7971 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7972
7973 2002-02-21 Christopher Faylor <cgf@redhat.com>
7974
7975 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7976 find the complete path to a loaded DLL.
7977
7978 2002-02-21 Fred Fish <fnf@redhat.com>
7979
7980 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7981 that marks the end of the range of a function, enter a line number
7982 entry that has a line number of zero and a PC offset that matches
7983 the end of the function. This starts a range of PC's for which no
7984 line number information is known.
7985 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7986 PC's for which no line number info is found (line number is zero)
7987 then we didn't find any valid line information.
7988 * symtab.h: Document use of zero line number entry.
7989
7990 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7991
7992 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7993 (have_ptrace_getvrregs): Define for run time checks.
7994 (gdb_vrregset_t): New type for Altivec register handling.
7995 (fetch_register, store_register): Fetch/store altivec register
7996 when needed.
7997 (fetch_altivec_register, store_altivec_register): New functions.
7998 (supply_vrregset, fill_vrregset): New functions.
7999 (fetch_altivec_registers, store_altivec_registers): New functions.
8000 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8001 registers as well.
8002
8003 2002-02-21 Jiri Smid <smid@suse.cz>
8004
8005 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8006
8007 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8008
8009 * Makefile.in (armnbsd-nat.o): Update dependencies.
8010 * armnbsd-nat.c (supply_gregset): New function. Common code to
8011 supply the integer register set.
8012 (supply_fparegset): New function. Similar for FPA registers.
8013 (fetch_regs, fetch_fp_regs): Use them.
8014 (fetch_core_registers): Likewise.
8015 (fetch_elfcore_registers): New function.
8016 (arm_netbsd_elfcore_fns): New core-file type specification.
8017 (_initialize_arm_netbsd_nat): Register it.
8018
8019 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8020
8021 * armnbsd-nat.c: Include gdbcore.h.
8022 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8023 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8024 'void' to declaration, to shut up ARI.
8025 (fetch_core_registers): Make static. Rewrite using supply_register.
8026 (arm_netbsd_core_fns): New core-file type specification.
8027 (_initialize_arm_netbsd_nat): New function.
8028
8029 2002-02-21 Christopher Faylor <cgf@redhat.com>
8030
8031 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8032 value.
8033
8034 2002-02-20 Christopher Faylor <cgf@redhat.com>
8035
8036 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8037 fails.
8038
8039 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8040
8041 * jv-exp.y (parse_number): Change type of implicit longs
8042 to builtin_type_uint64.
8043
8044 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8045
8046 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8047 to be an integer instead of a `union wait'.
8048
8049 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8050
8051 * mips-linux-nat.c: Call the operating system GNU/Linux.
8052 * mips-linux-tdep.c: Likewise.
8053 * mips-tdep.c: Likewise.
8054
8055 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8056
8057 Fix PR gdb/265.
8058 * jv-exp.y (parse_number): Handle 64-bit integers.
8059
8060 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8061
8062 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8063 AC_STDC_HEADERS to AC_HEADER_STDC.
8064 * gdbserver/configure: Regenerated.
8065
8066 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8067
8068 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8069 is defined.
8070 * sparc-tdep.c (get_longjmp_target): Likewise.
8071
8072 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8073
8074 * News: Add news about ARM and Multi-arch. Mention the new target
8075 arm*-*-netbsd*.
8076
8077 2002-02-19 Jim Blandy <jimb@redhat.com>
8078
8079 * stabsread.c (error_type_complaint): Improve error message.
8080
8081 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8082
8083 * gdbserver/README: Update documentation.
8084 * gdbserver/configure.in: Update configury to match documentation.
8085 * gdbserver/Makefile.in: Likewise.
8086 * gdbserver/configure: Regenerated.
8087 * gdbserver/aclocal.m4: New file, generated by aclocal.
8088 * gdbserver/config.in: New file, generated by autoheader.
8089
8090 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8091
8092 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8093 armnbsd-nat.c.
8094
8095 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8096
8097 * arm-tdep.h (enum arm_float_model): New enum.
8098 (struct gdbarch_tdep): Add fp_model.
8099 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8100 up floating-point conversions until we know the floating-point model
8101 in use by the inferior. Don't complain about being unable to
8102 determine the ABI of the inferior when we don't have one.
8103 (arm_extract_return_value): Support different floating-point models.
8104 (arm_store_return_value): Likewise.
8105 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8106 ARM_FLOAT_SOFT.
8107 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8108
8109 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8110
8111 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8112 of ``current_gdbarch''.
8113
8114 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8115
8116 * armnbsd-nat.c : ANSIfy all function declarations.
8117 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8118 (fetch_inferior_registers): Re-implement in terms of above.
8119 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8120 (store_inferior_registers): Re-implement in terms of above.
8121
8122 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8123
8124 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8125 kernel.
8126 * arm-linux-tdep.c: Likewise.
8127 * config/arm/tm-linux.h: Likewise.
8128
8129 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8130
8131 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8132 * config/arm/nbsd.mt (TM_FILE): Delete.
8133 * config/arm/tm-nbsd.h: Delete.
8134
8135 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8136
8137 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8138 Initialize CALL_DUMMY_LENGTH.
8139
8140 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8141
8142 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8143 function.
8144 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8145 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8146 defines one thing and that is incorrect for this port.
8147 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8148
8149 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8150
8151 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8152
8153 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8154
8155 * win32-nat.c (display_selector): New function. Displays information
8156 about the information returned by GetThreadSelectorEntry API function.
8157 (display_selectors): New function. Displays the infomation of
8158 the selector given as argument, or of CS, DS ans FS selectors
8159 if no argument is given.
8160 ( _initialize_inftarg): Add "w32" as info prefix command.
8161 Add "info w32 selector" as command calling display_selectors.
8162
8163 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8164
8165 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8166 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8167 if not defined.
8168
8169 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8170
8171 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8172
8173 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8174
8175 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8176 (arm_fix_call_dummy): Call it.
8177 (arm_call_dummy_breakpoint_offset): Delete.
8178 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8179 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8180
8181 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8182
8183 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8184 Default to func_frame_chain_valid.
8185 * gdbarch.h, gdbarch.c: Re-generate.
8186 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8187
8188 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8189
8190 * ppc-linux-nat.c: Update copyright.
8191 (fetch_register, store_register): Add tid parameter, don't compute
8192 tid here.
8193 (fetch_ppc_registers, store_ppc_registers): Add tid
8194 parameter. Pass it along to callees.
8195 (fetch_inferior_registers, store_inferior_registers): Compute tid
8196 here, and pass it to calleed functions.
8197 (fill_gregset, supply_fpregset): Clean up formatting.
8198
8199 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8200
8201 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8202 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8203
8204 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8205
8206 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8207 * gdbarch.c gdbarch.h: Regenerate.
8208 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8209 function.
8210 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8211 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8212 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8213
8214 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8215 * arm-tdep.c (arm_get_longjmp_target): New function.
8216 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8217 this to a positive value register arm_get_longjmp_target as the
8218 longjmp handler.
8219 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8220 (arm_linux_init_abi): Set up longjmp description in tdep.
8221 * armnbsd-nat.c (get_longjmp_target): Delete.
8222 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8223 description in tdep.
8224 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8225 (get_longjmp_target): Delete declaration.
8226 (GET_LONGJMP_TARGET): Delete.
8227 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8228 (GET_LONGJMP_TARGET): Delete.
8229
8230 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8231
8232 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8233 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8234 of ``current_gdbarch''.
8235
8236 2002-02-17 Tom Tromey <tromey@redhat.com>
8237
8238 * cli/cli-cmds.c (compare_strings): New function.
8239 (complete_command): Only print each unique item once.
8240 * completer.h (complete_line): Declare.
8241 * completer.c (complete_line): New function.
8242 (line_completion_function): Use it.
8243
8244 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8245
8246 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8247 * gdbarch.h, gdbarch.c: Re-generate.
8248
8249 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8250
8251 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8252
8253 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8254
8255 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8256 * valops.c (value_arg_coerce): Don't take the address of a reference
8257 to convert an argument to a reference.
8258
8259 2002-02-15 Christopher Faylor <cgf@redhat.com>
8260
8261 * win32-nat.c (get_image_name): New function.
8262 (handle_load_dll): Use get_image_name function.
8263 (get_child_debug_event): Avoid registering debug events until possibly
8264 execed process is started.
8265 (child_create_inferior): Allow invocation via shell so that command
8266 line redirection, etc. works ok.
8267 (_initialize_inftarg): Add new command: "set shell" to control whether
8268 a shell is used to start a process.
8269
8270 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8271
8272 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8273 instead of find_register_by_number.
8274 (cannot_store_register): Likewise.
8275
8276 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8277
8278 * dwarf2read.c: Replace fprintf (stderr, ...) by
8279 fprintf_unfiltered (gdb_stderr, ...).
8280
8281 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8282
8283 * gdbserver/gdbserver.1: Document --attach.
8284
8285 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8286
8287 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8288 descriptions.
8289 * arm-tdep.c (arm_default_arm_le_breakpoint)
8290 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8291 (arm_default_thumb_be_breakpoint): New. Initialize them from
8292 traditional breakpoint defines.
8293 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8294 (arm_gdbarch_init): Initialize new breakpoint variables.
8295 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8296 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8297 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8298 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8299 code out to ...
8300 (arm_netbsd_init_abi_common): ... here; new function.
8301 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8302 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8303 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8304 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8305
8306 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8307
8308 * arm-tdep.h (enum arm_abi): New enum.
8309 (struct gdbarch_tdep): New structure.
8310 (LOWEST_PC): Provide a default.
8311 (arm_gdbarch_register_os_abi): Declare new function.
8312 * arm-tdep.c (arm_abi_names): New array.
8313 (process_note_abi_tag_sections): New function.
8314 (get_elfosabi): New function.
8315 (arm_gdbarch_register_os_abi): New function.
8316 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8317 support for that ABI has been built in, then call the appropriate
8318 configuration routine. Use gdbarch_num_regs() to get the number
8319 of registers.
8320 (arm_dump_tdep): New function.
8321 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8322 place-holder functions.
8323 (_initialize_arm_tdep): Register them.
8324 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8325
8326 * armnbsd-tdep.c: New file.
8327 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8328 * config/arm/nbsd.mt (TDEPFILES): Add it.
8329 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8330
8331 * armnbsd-nat.c: Include regcache.h.
8332 * Makefile.in (armnbsd-nat.o): Update dependency list.
8333
8334 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8335
8336 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8337
8338 * gdbserver/Makefile.in: Fix typos in target rules.
8339
8340 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8341
8342 Fix part of PR gdb/267.
8343 * linespec.c (find_methods): Handle constructors specially for now.
8344
8345 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8346
8347 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8348 handling.
8349 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8350 standard_coerce_float_to_double().
8351
8352 2002-02-14 Christopher Faylor <cgf@redhat.com>
8353
8354 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8355 GDBINIT_FILENAME.
8356
8357 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8358
8359 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8360 find_variant_by_name, because it confuses the multiarch
8361 framework. Return NULL if there isn't an architecture with the
8362 user supplied name, instead of forcing a different one without
8363 recording the change with the multiarch machinery.
8364 (find_variant_by_name): Delete.
8365
8366 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8367
8368 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8369 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8370
8371 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8372
8373 * stack.c (print_frame_info_base): When calling
8374 print_frame_info_listing_hook, set current_source_symtab.
8375
8376 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8377
8378 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8379 and remove unused $(INCLUDE_DIR).
8380 Add regcache.c to OBS.
8381 Add generated register protocol files to clean target.
8382 Update dependencies for new objects, obsolete old target code.
8383
8384 * gdbserver/linux-low.c: Remove all platform-specific code to
8385 new files. Remove various dead code. Update to use regcache
8386 functionality.
8387 * gdbserver/remote-utils.c (fromhex): Add return statement
8388 to quiet warning.
8389 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8390 constant.
8391 (input_interrupt): Add integer parameter to match prototype
8392 of a signal handler.
8393 (outreg): Use register_data ().
8394 (prepare_resume_reply): Use gdbserver_expedite_regs.
8395 * gdbserver/server.c (main): Dynamically allocate own_buf because
8396 PBUFSIZ is no longer constant. Use registers_to_string () and
8397 registers_from_string ().
8398 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8399 for error (), fatal (), and warning (). Update definition of
8400 PBUFSIZ to use regcache functionality. Add include guard.
8401 * gdbserver/utils.c (fatal): Add missing ``const''.
8402 (warning): New function.
8403
8404 * regformats/regdat.sh: Include "regcache.h" in generated files.
8405 Provide init_registers () function.
8406 * regformats/regdef.h: Add prototype for set_register_cache ().
8407 Add include guard.
8408
8409 * gdbserver/linux-arm-low.c: New file.
8410 * gdbserver/linux-i386-low.c: New file.
8411 * gdbserver/linux-ia64-low.c: New file.
8412 * gdbserver/linux-m68k-low.c: New file.
8413 * gdbserver/linux-mips-low.c: New file.
8414 * gdbserver/linux-ppc-low.c: New file.
8415 * gdbserver/linux-sh-low.c: New file.
8416
8417 * gdbserver/regcache.c: New file.
8418 * gdbserver/regcache.h: New file.
8419
8420 * gdbserver/low-linux.c: Removed obsolete file.
8421
8422 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8425 * config/i386/linux.mt: Likewise.
8426 * config/ia64/linux.mt: Likewise.
8427 * config/m68k/linux.mh: Likewise.
8428 * config/powerpc/linux.mh: Likewise.
8429 * config/mips/linux.mt: Likewise.
8430
8431 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8432
8433 * config/i386/i386lynx.mh: Mark gdbserver variables
8434 as (currently) obsolete for this target.
8435 * config/i386/nbsd.mt: Likewise.
8436 * config/i386/nbsdelf.mt: Likewise.
8437 * config/m32r/m32r.mt: Likewise.
8438 * config/m68k/m68klynx.mh: Likewise.
8439 * config/m68k/nbsd.mt: Likewise.
8440 * config/m68k/sun3os4.mh: Likewise.
8441 * config/mips/vr5000.mt: Likewise.
8442 * config/ns32k/nbsd.mt: Likewise.
8443 * config/pa/hppabsd.mh: Likewise.
8444 * config/pa/hppaosf.mh: Likewise.
8445 * config/powerpc/nbsd.mt: Likewise.
8446 * config/rs6000/rs6000lynx.mh: Likewise.
8447 * config/s390/s390.mt: Likewise.
8448 * config/s390/s390x.mt: Likewise.
8449 * config/sparc/sparclynx.mh: Likewise.
8450 * config/sparc/sun4os4.mh: Likewise.
8451 * config/i386/x86-64linux.mt: Likewise.
8452 * config/sparc/linux.mh: Likewise.
8453
8454 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8455
8456 * configure.tgt: Configure gdbserver only for known working
8457 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8458 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8459 SUBDIRS if it is configured. Update comment for ${nativefile}.
8460 * configure: Regenerated.
8461
8462 2002-02-13 Michael Snyder <msnyder@redhat.com>
8463
8464 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8465
8466 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8467 (default_gcore_mach): Just return 0, work around a problem in bfd.
8468 (default_gcore_target): OK to return NULL if exec_bfd is null.
8469 (make_mem_sec): Use a cast, avoid a warning.
8470
8471 * procfs.c (find_memory_regions_callback): Use a cast instead of
8472 calling host_pointer_to_address (which complains if
8473 sizeof (host pointer) != sizeof (target pointer)).
8474 (procfs_make_note_section): Avoid overflow in psargs string.
8475
8476 * procfs.c (procfs_make_note_section): Make the default
8477 implementation return an error.
8478
8479 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8480
8481 * procfs.c (procfs_make_note_section): Provide a default definition
8482 (for alpha-dec-osf4.0f). Fix typos.
8483
8484 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8485
8486 * linux-proc.c: Add include of regcache.h.
8487 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8488
8489 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8490
8491 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8492 * memattr.c (create_mem_region): Disallow useless empty region.
8493 Regions are half-open intervals, so allow [A..B) [B..C) as
8494 non-overlapping.
8495
8496 2002-02-13 Michael Chastain <mec@shout.net>
8497
8498 * defs.h: Kill CONST_PTR.
8499 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8500 * c-lang.c (c_builtin_types): Likewise.
8501 * ch-lang.c (ch_builtin_types): Likewise.
8502 * f-lang.c (f_builtin_types): Likewise.
8503 * language.c (unknown_builtin_types): Likewise.
8504 * m2-lang.c (m2_builtin_types): Likewise.
8505 * p-lang.c (pascal_builtin_types): Likewise.
8506 * scm-lang.c (c_builtin_types): Likewise.
8507
8508 2002-02-13 Keith Seitz <keiths@redhat.com>
8509
8510 * arm-tdep.h (arm_get_next_pc): Add declaration.
8511
8512 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8513
8514 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8515 with other related struct-returning functions.
8516 (arm_extract_struct_value_address): New function.
8517 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8518 initialize float_format, double_format and long_double_format as
8519 appropriate to the endianness of the target.
8520 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8521 (arm_use_struct_convention): Delete declaration.
8522 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8523
8524 2002-02-13 Keith Seitz <keiths@redhat.com>
8525
8526 * defs.h (core_addr_to_string_nz): New function.
8527
8528 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8529
8530 Apply missing bits of 2002-01-15 patch.
8531 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8532 (fill_fpregset): Use i387_fill_fsave.
8533
8534 2002-02-12 Keith Seitz <keiths@redhat.com>
8535
8536 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8537 (core_addr_to_string_nz): New function.
8538
8539 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8540
8541 * arm-linux-nat.c: Really include arm-tdep.h.
8542 * config/arm/tm-linux.h (struct type, struct value): Declare.
8543
8544 2002-02-11 Michael Snyder <msnyder@redhat.com>
8545
8546 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8547 (gcore section): Ifdef for Solaris and Unixware only.
8548 (procfs_do_thread_registers): Unixware needs one lwpstatus
8549 per thread (not one prstatus or pstatus).
8550 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8551 not over all gdb threads. For unixware, call elfcore_write_pstatus
8552 once before iterating over threads.
8553
8554 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8555
8556 * arm-tdep.h: New file.
8557 * arm-tdep.c: Include arm-tdep.h.
8558 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8559 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8560 (arm_print_float_info, arm_register_type, convert_to_extended)
8561 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8562 (arm_extract_return_value, arm_register_name): Make static.
8563 (arm_software_single_step): Similarly. Fix types in declaration.
8564 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8565 (arm_store_return_value, arm_store_struct_return): New functions.
8566 (arm_gdbarch_init): Register the above functions. Also register
8567 call_dummy_start_offset, sizeof_call_dummy_words,
8568 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8569 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8570 max_register_virtual_size, register_size. Set up
8571 prologue_cache.saved_regs here, rather than ...
8572 (_initialize_arm_tdep): ... here.
8573 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8574 declarations.
8575 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8576 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8577 (arm_print_float_info, arm_register_type, convert_to_extended)
8578 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8579 (arm_extract_return_value, arm_register_name): Delete declarations.
8580 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8581 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8582 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8583 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8584 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8585 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8586 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8587 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8588 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8589 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8590 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8591 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8592 interface.
8593 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8594 * remote-rdi.c remote-rdp.c: Likewise.
8595 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8596 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8597 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8598 definition.
8599
8600 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8601 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8602 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8603 from non-ARM_ prefixed definitions.
8604 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8605 all uses of above.
8606 * remote-rdi.c remote-rdp.c: Likewise.
8607 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8608
8609 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8610
8611 * arm-tdep.c (arm_frameless_function_invocation)
8612 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8613 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8614 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8615 (arm_pop_frame, arm_get_next_pc): Make static.
8616 (arm_gdbarch_init): Register above in gdbarch structure.
8617 (arm_read_fp): Renamed from arm_target_read_fp.
8618 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8619 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8620 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8621 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8622 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8623 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8624 (arm_pc_is_thumb_dummy): Delete declarations.
8625 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8626 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8627 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8628 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8629
8630 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8631
8632 * symtab.c (compare_search_syms): New function.
8633 (sort_search_symbols): New function.
8634 (search_symbols): Sort symbols after searching rather than
8635 before.
8636
8637 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8638
8639 * NEWS: Linux -> GNU/Linux.
8640
8641 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8642
8643 * gdbarch.sh: For for level one methods, disallow a definition
8644 when partially multi-arched. Add comments explaining rationale.
8645 * gdbarch.h: Re-generate.
8646
8647 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8648
8649 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8650 multi-arch partial.
8651
8652 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8653
8654 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8655 field. Use diff -u.
8656 * gdbarch.c: Re-generate.
8657
8658 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8659
8660 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8661 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8662 partial.
8663
8664 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8665
8666 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8667 multi-arch partial.
8668 (PUSH_ARGUMENTS): Switch to using predefault.
8669 * gdbarch.c: Regenerate.
8670
8671 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8672
8673 * valops.c (PUSH_ARGUMENTS): Delete definition.
8674 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8675 partial. Default to default_push_arguments.
8676 * gdbarch.h, gdbarch.c: Regenerate.
8677
8678 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8679
8680 * defs.h (throw_exception): Rename return_to_top_level. Update
8681 comments.
8682 * utils.c (error_stream, internal_verror, quit): Ditto.
8683 * top.c (throw_exception, catcher): Ditto.
8684 * sparclet-rom.c (sparclet_load): Ditto.
8685 * remote.c (interrupt_query, minitelnet): Ditto.
8686 * remote-sds.c (interrupt_query): Ditto.
8687 * remote-mips.c (mips_error, mips_kill): Ditto.
8688 * ocd.c (interrupt_query): Ditto.
8689 * monitor.c (monitor_interrupt_query): Ditto.
8690 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8691 * target.h: Update comment.
8692
8693 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8694
8695 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8696
8697 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8698 default_double_format.
8699 * gdbarch.h, gdbarch.c: Re-generate.
8700 * findvar.c (floatformat_unknown): Delete variable definition.
8701 * doublest.h (floatformat_unknown): Delete variable declaration.
8702
8703 2002-02-09 Jim Blandy <jimb@redhat.com>
8704
8705 * stabsread.c (read_type): Add code to parse Sun's syntax for
8706 prototyped function types.
8707
8708 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8709
8710 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8711 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8712
8713 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8714
8715 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8716 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8717 now _initialize_xcoffsolib gets called again and overrides the
8718 commands from solib.c in a native configuration.
8719
8720 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8721
8722 * doublest.c (store_typed_floating): Don't try to return a value.
8723 Fixes PR gdb/290.
8724
8725 2002-02-08 Jim Blandy <jimb@redhat.com>
8726
8727 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8728 is prototyped and has no arguments, print its argument list as
8729 `(void)'.
8730
8731 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8732
8733 * MAINTAINERS (write-after-approval): Add myself.
8734 (paper-trail): I've escaped!
8735
8736 2002-02-08 Christopher Faylor <cgf@redhat.com>
8737
8738 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8739 changes.
8740 (_initialize_check_for_gdb_ini): Ditto.
8741
8742 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8743
8744 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8745 xaprintf -> xasprintf.
8746
8747 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8748
8749 * win32-nat.c: Remove use of printf and sprintf functions.
8750
8751 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8752
8753 * arm-tdep.c (arm_frame_chain_valid): Make static.
8754 (arm_push_arguments): Likewise.
8755 (arm_gdbarch_init): New function.
8756 (_initialize_arm_tdep): Call it.
8757 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8758 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8759 (FRAME_CHAIN_VALID): Delete.
8760 (arm_frame_chain_valid): Delete declaration.
8761 (PUSH_ARGUMENTS): Delete.
8762 (arm_push_arguments): Delete declaration.
8763 (CALL_DUMMY_P): Delete.
8764
8765 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8766 Corinna Vinschen <vinschen@redhat.com>
8767
8768 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8769 on builtin float types.
8770
8771 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8772
8773 * utils.c: Include <curses.h> before "bfd.h".
8774 * tui/tui-hooks.c: Likewise.
8775 * tui/tui.c: Likewise.
8776 * tui/tuiCommand.c: Likewise.
8777 * tui/tuiData.c: Likewise.
8778 * tui/tuiDataWin.c: Likewise.
8779 * tui/tuiDisassem.c: Likewise.
8780 * tui/tuiGeneralWin.c: Likewise.
8781 * tui/tuiIO.c: Likewise.
8782 * tui/tuiLayout.c: Likewise.
8783 * tui/tuiRegs.c: Likewise.
8784 * tui/tuiSource.c: Likewise.
8785 * tui/tuiSourceWin.c: Likewise.
8786 * tui/tuiStack.c: Likewise.
8787 * tui/tuiWin.c: Likewise.
8788
8789 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8790
8791 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8792 to include space for pseudoregs as well. Update loops accordingly.
8793 (sh_fp_frame_init_saved_regs): Ditto.
8794 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8795
8796 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8797
8798 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8799 Add Richard Earnshaw to Arm maintainers.
8800
8801 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8802
8803 * defs.h (warning_begin): Delete declaration.
8804
8805 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8806 Delete macro.
8807
8808 2002-02-07 Michael Snyder <msnyder@redhat.com>
8809
8810 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8811 Logic bug, remove misplaced else.
8812
8813 2002-02-07 Klee Dienes <klee@apple.com>
8814
8815 * fork-inferior.c (fork_inferior): Add '!' to the list of
8816 characters that need to be quoted when building a string for the
8817 shell. Quote '!' specifically with a backslash, since CSH chokes
8818 when trying to evaluate "str!str".
8819
8820 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8821
8822 * rdi-share/host.h: Only provide a typedef for bool if it is not
8823 defined.
8824
8825 2002-02-04 Michael Snyder <msnyder@redhat.com>
8826
8827 * breakpoint.h (enum bptype): Add new overlay event bp type.
8828 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8829
8830 * breakpoint.c (create_internal_breakpoint): New function.
8831 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8832 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8833 (create_thread_event_breakpoint): Ditto.
8834 (create_solib_event_breakpoint): Ditto.
8835 (create_overlay_event_breakpoint): New function.
8836 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8837 (update_breakpoints_after_exec): Delete and re-initialize
8838 overlay event breakpoints after an exec. Add FIXME comment
8839 about longjmp breakpoint.
8840 (print_it_typical): Ignore overlay event breakpoints.
8841 (print_one_breakpoint): Ditto.
8842 (mention): Ditto.
8843 (bpstat_what): Do not stop for overlay event breakpoints.
8844 (delete_breakpoint): Don't delete overlay event breakpoints.
8845 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8846 (breakpoint_re_set): Re-create overlay event breakpoint.
8847
8848 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8849 (overlay_manual_command): Disable overlay breakpoints.
8850 (overlay_off_command): Disable overlay breakpoints.
8851
8852 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8853
8854 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8855 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8856 to here from config/tm-arm.h.
8857 (coff_sym_is_thumb): Make static.
8858 (arm_elf_make_msymbol_special): New function.
8859 (arm_coff_make_msymbol_special): New function.
8860 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8861 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8862 (coff_sym_is_thumb): Delete declaration.
8863 (arm_elf_make_msymbol_special): Declare.
8864 (arm_coff_make_msymbol_special): Declare.
8865 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8866 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8867
8868 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8869
8870 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8871
8872 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8873
8874 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8875 * gdbarch.c gdbarch.h: Regenerate.
8876 * arch-utils.c (default_print_float_info): New function.
8877 * arch-utils.h (default_print_float_info): Prototype it.
8878 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8879 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8880 (PRINT_FLOAT_INFO): Document it.
8881
8882 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8883 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8884 (PRINT_FLOAT_INFO): Define.
8885
8886 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8887
8888 * win32-nat.c (_initialize_check_for_gdb_ini):
8889 Add typecast to sprintf argument to suppress a warning.
8890
8891 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8892
8893 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8894 to allow easier handling of pass state.
8895 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8896 that gives exception name and address.
8897 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8898 and set last_sig value to ourstatus->value.sig. Some missing
8899 exceptions added.
8900 (child_continue): Correctly report continue_status.
8901 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8902 TARGET_SIGNAL_0 (new default value).
8903 (child_resume): consider sig argument passed to decide if
8904 the exception should be passed to debuggee or not.
8905
8906 2002-02-05 Michael Snyder <msnyder@redhat.com>
8907
8908 * regcache.c (fetch_register): Call target_fetch_register
8909 only if we don't call FETCH_PSEUDO_REGISTER.
8910 (store_register): Call target_store_register only if we
8911 don't call STORE_PSEUDO_REGISTER.
8912
8913 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8914
8915 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8916 ELF_MAKE_MSYMBOL_SPECIAL.
8917 * gdbarch.c, gdbarch.h: Regenerate.
8918 * arch-utils.c (default_make_msymbol_special): New function.
8919 * arch-utils.h (default_make_msymbol_special): Export.
8920 * elfread.c (elf_symtab_read): Compile use of
8921 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8922 multiarched.
8923 * coffread.c (coff_symtab_read): Ditto, for
8924 COFF_MAKE_MSYMBOL_SPECIAL.
8925
8926 2002-02-05 Jim Blandy <jimb@redhat.com>
8927
8928 * solib-svr4.c (svr4_truncate_ptr): New function.
8929 (svr4_relocate_section_addresses): Do the address arithmetic with
8930 the appropriate truncation for target addresses, even when
8931 CORE_ADDR is larger than a target address.
8932
8933 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8934
8935 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8936 to (int *).
8937
8938 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8939
8940 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8941 code.
8942
8943 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8944
8945 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8946
8947 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8948
8949 * gdbserver/linux-low.c: Remove unused include files.
8950
8951 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8952
8953 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8954 (read_inferior_memory): Use it.
8955 (write_inferior_memory): Likewise.
8956
8957 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8958
8959 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8960 grubbing through sys_errlist.
8961
8962 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8963
8964 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8965
8966 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8967 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8968
8969 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8970
8971 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8972 (do_sfunc, set_cmd_sfunc): New functions.
8973
8974 * command.h (struct cmd_list_element): Add field func.
8975 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8976 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8977 * cli/cli-decode.h: Ditto.
8978
8979 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8980 (help_all, help_cmd_list): Ditto.
8981 (find_cmd, complete_on_cmdlist): Ditto.
8982 * top.c (execute_command): Ditto.
8983
8984 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8985 function.sfunc.
8986
8987 * infcmd.c (notice_args_read): Fix function signature.
8988
8989 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8990 * cli/cli-decode.c (add_set_cmd): Ditto.
8991 * utils.c (initialize_utils): Ditto.
8992 * maint.c (_initialize_maint_cmds): Ditto.
8993 * infrun.c (_initialize_infrun): Ditto.
8994 * demangle.c (_initialize_demangler): Ditto.
8995 * remote.c (add_packet_config_cmd): Ditto.
8996 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8997 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8998 * proc-api.c (_initialize_proc_api): Ditto.
8999 * kod.c (_initialize_kod): Ditto.
9000 * valprint.c (_initialize_valprint): Ditto.
9001 * top.c (init_main): Ditto.
9002 * infcmd.c (_initialize_infcmd): Ditto.
9003 * corefile.c (_initialize_core): Ditto.
9004 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9005 * arch-utils.c (initialize_current_architecture): Ditto.
9006 (_initialize_gdbarch_utils): Ditto.
9007 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9008
9009 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9010 * wince.c (_initialize_inftarg): Ditto.
9011 * symfile.c (_initialize_symfile): Ditto.
9012 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9013 * language.c (_initialize_language): Ditto.
9014 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9015
9016 2002-02-04 Michael Snyder <msnyder@redhat.com>
9017
9018 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9019
9020 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9021
9022 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9023 Add rules for building the register data files.
9024
9025 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9026
9027 * regformats/regdat.sh: Add braces to the definition of
9028 expedite_regs_${arch}.
9029
9030 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9031
9032 * regformats/regdef.h (struct reg): Add comment describing the
9033 requirements for offset and size fields.
9034
9035 2002-02-04 Andreas Schwab <schwab@suse.de>
9036
9037 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9038 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9039
9040 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9041
9042 * gdbarch.sh (copyright): Update years in generated header.
9043 (SMASH_TEXT_ADDRESS): Add rule.
9044 * gdbarch.h, gdbarch.c: Re-generate.
9045 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9046 * dbxread.c: Likewise.
9047 * dwarfread.c: Likewise.
9048 * elfread.c: Likewise.
9049 * somread.c: Likewise.
9050
9051 * arm-tdep.c (arm_smash_text_address): New function.
9052 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9053
9054 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9055
9056 Add support for hardware watchpoints on win32 native.
9057 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9058 CONTEXT_DEBUG_REGISTERS.
9059 (dr variable): New variable. Static array containing a local copy
9060 of debug registers.
9061 (debug_registers_changed): New variable. Reflects when debug registers
9062 are changed and need to be written to inferior.
9063 (debug_registers_used): New variable. Reflects when any debug register
9064 was set, used when new threads are created.
9065 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9066 i386-nat code.
9067 (thread_rec): Set dr array if id is the thread of current_event .
9068 (child_continue, child_resume): Change the debug registers for all
9069 threads if debug_registers_changed.
9070 (child_add_thread): Change the debug registers if debug_registers_used.
9071 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9072 Link nm.h to new nm-cygwin.h file.
9073 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9074 of hardware registers.
9075
9076 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9077
9078 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9079 Restore behavour broken by 2002-01-20 Andrew Cagney
9080 <ac131313@redhat.com> IEEE_FLOAT removal.
9081
9082 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9083
9084 * c-valprint.c (c_val_print): Pass a proper valaddr to
9085 cp_print_class_method.
9086 * valops.c (search_struct_method): If there is only one method
9087 and args is NULL, return that method.
9088
9089 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9090
9091 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9092 accessing tag_name directly.
9093
9094 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9095
9096 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9097 of accessing tag_name directly.
9098
9099 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9100
9101 PR gdb/280
9102 * gdbtypes.c (replace_type): New function.
9103 * gdbtypes.h (replace_type): Add prototype.
9104 * stabsread.c (read_type): Use replace_type.
9105
9106 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9107
9108 * Makefile.in (memattr.o): Add missing dependencies rule.
9109
9110 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9111
9112 * breakpoint.c (break_at_finish_command): Really export.
9113 (break_at_finish_at_depth_command): Ditto.
9114 (tbreak_at_finish_command): Ditto.
9115 * hppa-tdep.c: Include completer.h.
9116 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9117 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9118
9119 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9120
9121 * utils.c (do_write): New function.
9122 (error_stream): Rewrite combining the code from error_begin and
9123 verror.
9124 (verror): Rewrite using error_stream.
9125 (error_begin): Delete function.
9126
9127 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9128
9129 * utils.c (error_begin): Make static.
9130 * defs.h (error_begin): Delete declaration.
9131
9132 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9133 (decode_line_1): Use cplusplus_error instead of error_begin,
9134 cplusplus_hint and return_to_top_level.
9135 * coffread.c (coff_symfile_read): Use error instead of error_begin
9136 and return_to_top_level.
9137 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9138
9139 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9140
9141 * language.h (type_error, range_error): Make string parameter
9142 constant.
9143 * language.c (warning_pre_print): Delete extern declaration.
9144 * dwarfread.c (warning_pre_print): Ditto.
9145 * language.c (type_error, range_error): Rewrite to use verror and
9146 vwarning instead of warning_begin.
9147
9148 2002-02-01 Michael Snyder <msnyder@redhat.com>
9149
9150 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9151 (set_ignore_count): Move misplaced comment back where it belongs.
9152
9153 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9154
9155 * command.h (NO_FUNCTION): Delete macro.
9156 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9157 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9158 * tracepoint.c (_initialize_tracepoint): Ditto.
9159 * cli/cli-decode.c (add_set_cmd): Ditto.
9160 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9161
9162 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9163
9164 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9165 Update ``this'' pointer when calling virtual functions.
9166
9167 2002-02-01 Michael Snyder <msnyder@redhat.com>
9168
9169 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9170 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9171
9172 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9173
9174 * regformats/reg-arm.dat: New file.
9175 * regformats/reg-i386.dat: New file.
9176 * regformats/reg-ia64.dat: New file.
9177 * regformats/reg-m68k.dat: New file.
9178 * regformats/reg-mips.dat: New file.
9179 * regformats/reg-ppc.dat: New file.
9180 * regformats/reg-sh.dat: New file.
9181 * regformats/regdef.h: New file.
9182 * regformats/regdat.sh: New file.
9183
9184 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9185
9186 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9187 (arm_frame_args_address, arm_frame_locals_address): New functions.
9188 (arm_frame_num_args): New function.
9189 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9190 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9191 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9192
9193 2002-01-31 Michael Snyder <msnyder@redhat.com>
9194
9195 * breakpoint.c (break_at_finish_command): Export.
9196 (break_at_finish_at_depth_command): Export.
9197 (tbreak_at_finish_command): Export.
9198 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9199 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9200 "tbreak" commands, which are HPPA specific.
9201
9202 * printcmd.c (disassemble_command): Remove an ancient
9203 artifact of an old merge.
9204
9205 * symfile.h (enum overlay_debugging_state):
9206 Define enum constant values for overlay mode.
9207 * symfile.c (overlay_debugging): Use enums instead of literals.
9208 (overlay_is_mapped, overlay_auto_command,
9209 overlay_manual_command): Ditto.
9210
9211 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9212 breakpoint_here_p, breakpoint_inserted_here_p,
9213 breakpoint_thread_match, bpstat_stop_status,
9214 describe_other_breakpoints, check_duplicates, clear_command):
9215 Coding standard fixes.
9216
9217 * target.c (target_xfer_memory): Add spaces, coding standard.
9218 (do_xfer_memory): Add missing line to trust-readonly
9219 code: check bfd SEC_READONLY flag for section.
9220
9221 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9222
9223 * PROBLEMS: Fix typo, 5.1->5.1.1.
9224
9225 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9226
9227 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9228 data symbols, since we search based on textlow and texthigh.
9229 (find_pc_sect_symtab): Likewise.
9230
9231 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9232
9233 * defs.h (vwarning): Declare.
9234 * utils.c (vwarning): New function.
9235 (warning): Call vwarning.
9236 (warning_begin): Delete function.
9237
9238 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9239 the warning message.
9240 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9241 warning_begin.
9242
9243 2002-01-30 Michael Snyder <msnyder@redhat.com>
9244
9245 * NEWS: Mention "set trust-readonly-sections" command.
9246 Mention generate-core-file command.
9247
9248 2002-01-15 Michael Snyder <msnyder@redhat.com>
9249
9250 * target.c: New command, "set trust-readonly-sections on".
9251 (do_xfer_memory): Honor the suggestion to trust readonly sections
9252 by reading them from the object file instead of from the target.
9253 (initialize_targets): Register command "set trust-readonly-sections".
9254
9255 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9256
9257 * parse.c (target_map_name_to_register): Simplify, search regs and
9258 pseudo-regs using a single loop.
9259
9260 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9261
9262 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9263
9264 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9265
9266 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9267 * config/i386/i386v42mp.mh: Add i387-nat.o .
9268 * i386v4-nat.c: Include i387-nat.h.
9269 (supply_fpregset): Use i387_supply_fsave.
9270 (fill_fpregset): Use i387_fill_fsave.
9271
9272 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9273
9274 * arm-tdep.c (arm_call_dummy_words): Define.
9275 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9276 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9277 (CALL_DUMMY_WORDS): Define.
9278 (arm_call_dummy_words): Declare.
9279 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9280 (arm_linux_call_dummy_words): Declare.
9281
9282 2002-01-30 Andreas Schwab <schwab@suse.de>
9283
9284 * m68klinux-nat.c: Fix last change to use regcache_collect
9285 instead of referencing registers[] directly.
9286
9287 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9288
9289 * parse.c (target_map_name_to_register): Delete code wrapped in
9290 #ifdef REGISTER_NAME_ALIAS_HOOK.
9291
9292 2002-01-28 Michael Snyder <msnyder@redhat.com>
9293
9294 * regcache.c (legacy_read_register_gen): Need to be able to
9295 read pseudo-register as well as real register.
9296 (legacy_write_register_gen): Ditto.
9297
9298 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9299
9300 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9301 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9302 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9303 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9304 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9305 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9306 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9307 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9308 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9309 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9310 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9311 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9312 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9313 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9314 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9315 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9316 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9317 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9318 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9319 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9320
9321 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9322
9323 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9324 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9325 (initialize_current_architecture): Update target_byte_order using
9326 information from BFD.
9327 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9328 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9329
9330 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9331
9332 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9333 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9334
9335 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9336 #ifdef INVALID_FLOAT.
9337 * infcmd.c (do_registers_info): Ditto.
9338 * values.c (unpack_double): Ditto. Add comment.
9339
9340 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9341 already commented out.
9342
9343 2002-01-26 Andreas Schwab <schwab@suse.de>
9344
9345 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9346 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9347 registers and add support for PTRACE_GETREGS.
9348
9349 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9350
9351 GDB 5.1.1 released from 5.1 branch.
9352 * NEWS: Add 5.1.1 news.
9353 * README: Sync with 5.1 branch.
9354
9355 2002-01-23 Fred Fish <fnf@redhat.com>
9356
9357 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9358 stabstring on initial malloc. Reallocing will copy it for us,
9359 if necessary.
9360
9361 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9362
9363 * Makefile.in (hpread_h): Delete.
9364 (HFILES_NO_SRCDIR): Remove hpread.h.
9365 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9366 (hpread.o): Update dependencies.
9367 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9368
9369 * hp-psymtab-read.c: Remove file.
9370 * hp-symtab-read.c: Remove file.
9371 * hpread.h: Remove file.
9372
9373 * hpread.c: Merge all contents of hp-psymtab-read.c,
9374 hp-symtab-read.c and hpread.h into this file, as it was prior to
9375 January 1999.
9376
9377 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9378 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9379 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9380 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9381
9382 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9383
9384 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9385 fill_gregset): Call gdbarch_tdep() just once, assign result to
9386 variable and use that, instead of calling the function several
9387 times.
9388
9389 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9390
9391 * configure.host: Accept sparcv9 as alias for sparc64.
9392 * configure.tgt: Likewise.
9393
9394 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9395
9396 * solib-aix5.c (build_so_list_from_mapfile)
9397 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9398 arguments is not reversed.
9399 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9400 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9401
9402 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9403
9404 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9405 modified version of obsolete sh_fetch_pseudo_register.
9406 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9407 (sh4_register_read): New function.
9408 (sh_pseudo_register_write): New function. Renamed and modified
9409 version of obsolete sh_store_pseudo_register.
9410 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9411 (sh4_register_write): New function.
9412 (sh_gdbarch_init): Remove setting of gdbarch function
9413 fetch_pseudo_register and store_pseudo_register. Remove setting of
9414 register_convert_to_raw, register_convert_to_virtual,
9415 register_convertible.
9416 (sh_sh4_register_convertible): Delete. No longer needed. All is
9417 taken care by architecture specific functions
9418 register_read/register_write.
9419 (sh_sh4_register_convert_to_virtual): Make static.
9420 (sh_sh4_register_convert_to_raw): Ditto.
9421
9422 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9423
9424 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9425 (floatformat_is_nan, floatformat_mantissa): Ditto.
9426
9427 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9428 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9429 builtin_type_ieee_double_little,
9430 builtin_type_ieee_double_littlebyte_bigword,
9431 builtin_type_m68881_ext, builtin_type_i960_ext,
9432 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9433 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9434 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9435 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9436
9437 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9438
9439 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9440 parameter. Set frameless flag if it exists and depended of
9441 whether the scanned function is frameless or not.
9442 (xstormy16_skip_prologue): If function is frameless, return
9443 result of xstormy16_scan_prologue().
9444 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9445 call.
9446
9447 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9448
9449 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9450 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9451 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9452 sh_sh4_register_byte, sh_sh4_register_raw_size,
9453 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9454 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9455 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9456 sh_store_pseudo_register, sh_do_pseudo_register): Call
9457 gdbarch_tdep() just once, assign result to variable and use that,
9458 instead of calling the function several times.
9459
9460 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9461
9462 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9463 macros instead of LAST_FPU_CTRL_REGNUM.
9464 (store_register): Likewise.
9465
9466 2002-01-21 Jim Blandy <jimb@redhat.com>
9467
9468 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9469 is up-to-date before running the program, not just when a program
9470 exits.
9471
9472 2002-01-21 Fred Fish <fnf@redhat.com>
9473
9474 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9475 when we have found all instructions we are looking for.
9476
9477 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9478
9479 * arm-tdep.c (arm_register_name): New function.
9480 (arm_registers_names): Make static.
9481 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9482 (arm_register_name): Declare.
9483 (REGISTER_NAME): Use it.
9484
9485 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9486 Kevin Buettner <kevinb@redhat.com>
9487
9488 Convert arm targets to new FRAME interface.
9489 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9490 (arm_frame_find_save_regs): Delete.
9491 (arm_frame_init_saved_regs): New.
9492 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9493 Allocate extra_info as required. Convert all uses of fsr.regs
9494 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9495 to use extra_info.
9496 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9497 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9498 (check_prologue_cache, save_prologue_cache): Likewise.
9499 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9500 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9501 (FRAME_FIND_SAVED_REGS): Delete.
9502 (arm_frame_find_saved_regs): Delete prototype.
9503 (arm_frame_init_saved_regs): New prototype.
9504 (FRAME_INIT_SAVED_REGS): Define.
9505
9506 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9507
9508 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9509
9510 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9511
9512 From Jeff Law <law@redhat.com>:
9513 * infttrace.c: Include <sys/pstat.h>.
9514 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9515 exec file if the ttrace equivalent fails.
9516
9517 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9518
9519 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9520 (closeLogFile): Ditto.
9521
9522 2002-01-20 Michael Chastain <mec@shout.net>
9523
9524 * top.c (print_gdb_version): Bump copyright year to 2002.
9525
9526 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9527
9528 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9529 Zannoni and Eli Zaretskii.
9530
9531 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9532
9533 * buildsym.c: Update copyright years.
9534 * c-typeprint.c: Likewise.
9535 * dwarf2read.c: Likewise.
9536 * f-typeprint.c: Likewise.
9537 * gdbtypes.c: Likewise.
9538 * gdbtypes.h: Likewise.
9539 * hp-symtab-read.c: Likewise.
9540 * hpread.c: Likewise.
9541 * mdebugread.c: Likewise.
9542 * p-typeprint.c: Likewise.
9543
9544 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9545
9546 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9547 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9548 byte-order selectable.
9549 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9550 * arch-utils.c: Ditto.
9551 (set_endian): Ditto.
9552 (set_endian_from_file): Ditto.
9553 * gdbserver/low-sim.c (create_inferior): Ditto.
9554 * gdbarch.sh: Ditto.
9555 * gdbarch.h: Re-generate.
9556 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9557 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9558 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9559 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9560 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9561 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9562 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9563 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9564 macro definition.
9565 * config/mips/tm-wince.h: Remove #undef of macro
9566 TARGET_BYTE_ORDER_SELECTABLE.
9567 * config/sh/tm-wince.h: Ditto.
9568
9569 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9570
9571 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9572 member function fields. Add accessor macro
9573 TYPE_FN_FIELD_ARTIFICIAL.
9574 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9575 * c-typeprint.c (c_type_print_base): Skip artificial member
9576 functions.
9577
9578 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9579
9580 * f-typeprint.c: Delete unused function f_type_print_args.
9581 * p-typeprint.c: Delete unused function pascal_type_print_args.
9582
9583 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9586 comment. Add ``artificial'' to ``union field_location''.
9587
9588 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9589
9590 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9591 * mdebugread.c (parse_symbol): Likewise.
9592 * stabsread.c (define_symbol): Likewise.
9593 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9594 initializing TYPE_FIELD_BITPOS to n (obsolete).
9595 (hpread_doc_function_type): Likewise.
9596 * hpread.c (hpread_function_type): Likewise.
9597
9598 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9599
9600 * configure.in (host_makefile_frag): Only require a host makefile
9601 fragment when a native build.
9602 * configure: Re-generate.
9603
9604 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9605
9606 * doublest.h (floatformat_from_type): Declare.
9607 * doublest.c (floatformat_from_type): New function.
9608 (convert_typed_floating): Use.
9609
9610 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9611 call to function floatformat_from_type.
9612
9613 * gdbarch.sh (IEEE_FLOAT): Delete.
9614 * gdbarch.h, gdbarch.c: Re-generate.
9615 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9616 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9617 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9618 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9619 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9620 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9621 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9622 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9623 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9624 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9625 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9626 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9627
9628 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9629 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9630 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9631 * sh-tdep.c (sh_gdbarch_init): Ditto.
9632 * mips-tdep.c (mips_gdbarch_init): Ditto.
9633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9634 * cris-tdep.c (cris_gdbarch_init): Ditto.
9635
9636 2002-01-20 Jiri Smid <smid@suse.cz>
9637
9638 * configure.host, configure.tgt: Support x86-64.
9639 * NEWS: Note new target x86-64.
9640
9641 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9642 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9643 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9644 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9645 x86-64-linux-nat.o): Fix dependencies.
9646
9647 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9648
9649 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9650 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9651 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9652 * config/sparc/xm-sun4os4.h: Delete file.
9653 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9654
9655 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9656
9657 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9658 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9659 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9660 * config/i386/i386lynx.mh (XM_FILE): Delete.
9661 * config/rs6000/xm-rs6000ly.h: Delete file.
9662 * config/sparc/xm-sparclynx.h: Delete file.
9663 * config/m68k/xm-m68klynx.h: Delete file.
9664 * config/i386/xm-i386lynx.h: Delete file.
9665 * config/xm-lynx.h: Delete file.
9666 * config/djgpp/fnchange.lst: Update.
9667
9668 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9669
9670 * alpha-tdep.c (alpha_register_byte): New function.
9671 (alpha_register_raw_size): Ditto.
9672 (alpha_register_virtual_size): Ditto.
9673 (alpha_skip_prologue_internal): Renamed from
9674 alpha_skip_prologue.
9675 (alpha_skip_prologue): New version that calls
9676 alpha_skip_prologue_internal.
9677 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9678 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9679 second argument from alpha_skip_prologue.
9680 (REGISTER_BYTE): Use alpha_register_byte.
9681 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9682 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9683 (FRAMELESS_FUNCTION_INVOCATION): Use
9684 generic_frameless_function_invocation_not.
9685 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9686 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9687
9688 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9689
9690 * config/mips/xm-news-mips.h: Delete file.
9691 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9692
9693 * config/m88k/xm-m88k.h: Delete file.
9694 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9695 * config/m88k/xm-delta88v4.h: Ditto.
9696 * config/m88k/xm-delta88.h: Ditto.
9697
9698 * config/alpha/xm-fbsd.h: Delete file.
9699 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9700
9701 * config/sparc/xm-sparc.h: Delete file.
9702 * Makefile.in (xm-sun4os4.h): Delete dependency.
9703 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9704 * config/sparc/xm-sun4os4.h: Ditto.
9705 * config/sparc/xm-linux.h: Ditto.
9706
9707 * config/i386/xm-windows.h: Delete file.
9708
9709 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9710
9711 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9712 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9713
9714 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9715
9716 * alpha-tdep.c (alpha_call_dummy_words): New.
9717 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9718 (CALL_DUMMY_P): Define.
9719 (CALL_DUMMY_WORDS): Define.
9720 (SIZEOF_CALL_DUMMY_WORDS): Define.
9721
9722 2002-01-19 Per Bothner <per@bothner.com>
9723
9724 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9725 isn't NULL, which can happen with some gcj-3.x-produced code.
9726
9727 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9728
9729 * alpha-tdep.c (alpha_register_virtual_type): New function.
9730 (alpha_init_frame_pc_first): Ditto.
9731 (alpha_fix_call_dummy): Ditto.
9732 (alpha_store_struct_return): Ditto.
9733 (alpha_extract_struct_value_address): Ditto.
9734 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9735 alpha_register_virtual_type.
9736 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9737 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9738 alpha_extract_struct_value_address.
9739 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9740 (INIT_FRAME_PC): Use init_frame_pc_noop.
9741 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9742
9743 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9744
9745 * i386gnu-nat.c: Include "i386-tdep.h".
9746 (fetch_fpregs): Simplify code dealing with uninitialized floating
9747 point states such that it doesn't require FP7_REGNUM.
9748
9749 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9750
9751 * alpha-tdep.c (frame_extra_info): New.
9752 (alpha_find_saved_regs): Make static. Use
9753 frame->extra_info.
9754 (alpha_frame_init_saved_regs): New function.
9755 (alpha_frame_saved_pc): Use frame->extra_info.
9756 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9757 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9758 (init_extra_frame_info): Rename to...
9759 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9760 (alpha_print_extra_frame_info): New function.
9761 (alpha_frame_locals_address): Ditto.
9762 (alpha_frame_args_address): Ditto.
9763 (alpha_pop_frame): Use frame->extra_info.
9764 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9765 alpha_frame_args_address.
9766 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9767 (alpha_find_saved_regs): Remove prototype.
9768 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9769 (EXTRA_FRAME_INFO): Remove.
9770 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9771 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9772
9773 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9774
9775 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9776 (alpha_cannot_fetch_register): Ditto.
9777 (alpha_cannot_store_register): Ditto.
9778 (alpha_register_convertible): Ditto.
9779 (alpha_use_struct_convention): Ditto.
9780 * config/alpha/tm-alpha.h: Update copyright years.
9781 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9782 (INNER_THAN): Use core_addr_lessthan.
9783 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9784 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9785 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9786 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9787 (FRAME_CHAIN): Remove unnecessary cast.
9788
9789 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9790
9791 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9792 obsolete.
9793
9794 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9795
9796 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9797 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9798 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9799 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9800 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9801 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9802 * x86-64-linux-nat.c: Ditto.
9803
9804 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9805
9806 * alpha-tdep.c (alpha_register_name): New function.
9807 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9808 (REGISTER_NAME): Define.
9809
9810 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9811
9812 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9813
9814 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9815
9816 * alpha-tdep.c: Update copyright years.
9817 (alpha_next_pc): New function.
9818 (alpha_software_single_step): Ditto.
9819 * config/alpha/tm-alpha.h: Add prototype for
9820 alpha_software_single_step.
9821
9822 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9823
9824 * alphabsd-nat.c: Update copyright years.
9825 (fill_gregset): Use regcache_collect.
9826 (fill_fpregset): Likewise.
9827 (fetch_inferior_registers): Only fetch integer registers
9828 if requested to do so.
9829 (store_inferior_registers): Only store integer registers
9830 if requested to do so.
9831
9832 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9833
9834 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9835 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9836 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9837 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9838 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9839 * config/arm/linux.mh (XDEPFILES): Delete.
9840 * config/arm/nbsd.mh (XDEPFILES): Delete.
9841 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9842 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9843 * config/i386/i386m3.mh (XDEPFILES): Delete.
9844 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9845 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9846 * config/i386/fbsd.mh (XDEPFILES): Delete.
9847 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9848 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9849 * config/i386/i386v4.mh (XDEPFILES): Delete.
9850 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9851 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9852 * config/i386/i386aix.mh (XDEPFILES): Delete.
9853 * config/i386/go32.mh (XDEPFILES): Delete.
9854 * config/i386/cygwin.mh (XDEPFILES): Delete.
9855 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9856 * config/i386/i386mach.mh (XDEPFILES): Delete.
9857 * config/i386/i386v32.mh (XDEPFILES): Delete.
9858 * config/i386/linux.mh (XDEPFILES): Delete.
9859 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9860 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9861 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9862 * config/i386/i386sco.mh (XDEPFILES): Delete.
9863 * config/i386/i386v.mh (XDEPFILES): Delete.
9864 * config/i386/nbsd.mh (XDEPFILES): Delete.
9865 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9866 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9867 * config/i386/symmetry.mh (XDEPFILES): Delete.
9868 * config/i386/obsd.mh (XDEPFILES): Delete.
9869 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9870 * config/ia64/linux.mh (XDEPFILES): Delete.
9871 * config/ia64/aix.mh (XDEPFILES): Delete.
9872 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9873 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9874 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9875 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9876 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9877 * config/m68k/linux.mh (XDEPFILES): Delete.
9878 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9879 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9880 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9881 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9882 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9883 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9884 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9885 * config/m88k/delta88.mh (XDEPFILES): Delete.
9886 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9887 * config/m88k/m88k.mh (XDEPFILES): Delete.
9888 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9889 * config/mips/linux.mh (XDEPFILES): Delete.
9890 * config/mips/irix6.mh (XDEPFILES): Delete.
9891 * config/mips/irix5.mh (XDEPFILES): Delete.
9892 * config/mips/irix4.mh (XDEPFILES): Delete.
9893 * config/mips/irix3.mh (XDEPFILES): Delete.
9894 * config/mips/decstation.mh (XDEPFILES): Delete.
9895 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9896 (NATDEPFILES): Move core-aout.o to here.
9897 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9898 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9899 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9900 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9901 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9902 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9903 * config/pa/hpux11.mh (XDEPFILES): Delete.
9904 * config/powerpc/aix.mh (XDEPFILES): Delete.
9905 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9906 * config/powerpc/linux.mh (XDEPFILES): Delete.
9907 * config/romp/rtbsd.mh: Rename XDEPFILES.
9908 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9909 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9910 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9911 * config/s390/s390.mh (XDEPFILES): Delete.
9912 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9913 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9914 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9915 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9916 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9917 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9918 * config/sparc/linux.mh (XDEPFILES): Delete.
9919 * config/vax/vaxult.mh (XDEPFILES): Delete.
9920 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9921 * Makefile.in (DEPFILES): Remove XDEPFILES.
9922
9923 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9924
9925 * utils.c (internal_verror): Fix comments, default is yes not no.
9926 Update queries to match. Default to quit and dump core.
9927
9928 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9929
9930 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9931 copyright.
9932 * defs.h, event-top.c, gdbcmd.h: Ditto.
9933 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9934 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9935 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9936 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9937 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9938 * mi/mi-main.c:Ditto.
9939
9940 * stack.c, symfile.c: Update copyright.
9941
9942 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9943
9944 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9945 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9946 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9947 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9948
9949 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9952 * gdbserver/low-lynx.c (myattach): Likewise.
9953 * gdbserver/low-nbsd.c (myattach): Likewise.
9954 * gdbserver/low-sim.c (myattach): Likewise.
9955 * gdbserver/low-sparc.c (myattach): Likewise.
9956 * gdbserver/low-sun3.c (myattach): Likewise.
9957
9958 * gdbserver/low-linux.c (myattach): New function.
9959
9960 * gdbserver/server.c (attach_inferior): New function.
9961 (main): Handle "--attach".
9962
9963 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9964
9965 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9966 maintainer.
9967
9968 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9969
9970 * c-typeprint.c (is_type_conversion_operator): Add additional
9971 check for non-conversion operators.
9972
9973 2002-01-15 Michael Snyder <msnyder@redhat.com>
9974
9975 * linux-proc.c: Add "info proc" command, a la procfs.c.
9976 (read_mapping): New function, abstract and re-use code.
9977 (linux_find_memory_regions): Use new func read_mapping.
9978 (linux_info_proc_cmd): New function, implement "info proc".
9979 (_initialize_linux_proc): Add new command "info proc".
9980
9981 2002-01-15 Michael Snyder <msnyder@redhat.com>
9982
9983 * symfile.c (generic_load): Use bfd_map_over_sections method
9984 instead of manipulating bfd structure members directly.
9985 (add_section_size_callback): New function, bfd sections callback
9986 used by generic_load.
9987 (load_sections_callback): New function, bfd sections callback
9988 used by generic_load.
9989
9990 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9991
9992 [Based on work by Jim Blandy]
9993 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9994 (builtin_type_vec128): Export.
9995 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9996 types.
9997 (builtin_type_vec128): New builtin type for 128 bit vector
9998 registers.
9999 (build_gdbtypes): Initialize builtin_type_v16qi and
10000 builtin_type_v8hi. Create the vec128 register builtin type
10001 structure.
10002 (build_builtin_type_vec128): New function.
10003 (_initialize_gdbtypes): Register builtin_type_v16qi and
10004 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10005 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10006 AltiVec register to new builtin type.
10007
10008 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10011 to make_cv_type.
10012
10013 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10014
10015 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10016 CLEAN_UP_REGISTER_VALUE.
10017 * regcache.c (supply_register): Update only call.
10018
10019 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10020
10021 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10022 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10023 a29k-*-vxworks* targets as obsolete.
10024
10025 2002-01-14 Michael Snyder <msnyder@redhat.com>
10026
10027 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10028 until we can resolve portability issues.
10029 * gregset.h: Remove references to fpxregs.
10030 * gcore.c (gcore_command): Initialize note_sec to NULL.
10031
10032 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10033
10034 * signals.c (target_signal_to_name): Rewrite. Only use
10035 signals[].name when in bounds and non-NULL.
10036
10037 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10038
10039 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10040 * signals.c (target_signal_to_name): Verify that SIG is within the
10041 bounds of the signals array.
10042
10043 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10044
10045 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10046
10047 2002-01-13 Keith Seitz <keiths@redhat.com>
10048
10049 * stack.c (print_frame_info_base): Print the frame's pc
10050 only if when print_frame_info_listing_hook is not defined.
10051
10052 2002-01-13 Keith Seitz <keiths@redhat.com>
10053
10054 * varobj.c (varobj_set_value): Make sure that there were no
10055 errors evaluating the object before attempting to set its
10056 value.
10057 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10058 so this offset adjustment is no longer necessary.
10059 (create_child): Don't set the error flag if the child is
10060 a CPLUS_FAKE_CHILD.
10061 (value_of_child): If value_fetch_lazy fails, return NULL
10062 so that callers will be notified that an error occurred.
10063 (c_value_of_variable): Delay check of variable's validity
10064 until later. We actually want all structs and unions to have
10065 the value "{...}".
10066 Do not return "???" for variables which could not be evaluated.
10067 This error condition must be returned to the caller so that it
10068 can get the error condition from gdb.
10069 (cplus_name_of_child): Adjust index for vptr before figuring
10070 out the name of the child.
10071 (cplus_value_of_child): If a child's (real) parent is not valid,
10072 don't even bother trying to give a value for it. Just return
10073 an error. Change all instances in this function.
10074 (cplus_type_of_child): If our parent is one of the "fake"
10075 parents, we need to get at the type of the real parent, and
10076 derive the child's true type using this information.
10077
10078 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10079
10080 From 2002-01-09 John Marshall <johnm@falch.net>:
10081 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10082 sources.redhat.com, and tweak some related URLs which had
10083 suffered from linkrot.
10084
10085 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10086
10087 From Jeff law:
10088 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10089 structures passed in registers.
10090
10091 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10092
10093 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10094 white space which prevented compilation. Reported by DSK
10095 <dsk@student.unsw.edu.au>.
10096
10097 2002-01-11 Michael Snyder <msnyder@redhat.com>
10098
10099 * symfile.c (build_section_addr_info_from_section_tab):
10100 Use bfd access method instead of manipulating bfd directly.
10101 (syms_from_objfile): Ditto.
10102 (simple_overlay_update_1): Ditto.
10103 (simple_overlay_update): Ditto.
10104 (generic_load): Ditto.
10105 (overlay_unmapped_address): FIXME comment, bfd access methods.
10106 (sections_overlap): FIXME comment, bfd access methods.
10107 (pc_in_mapped_range): FIXME comment, bfd access methods.
10108 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10109 (section_is_mapped): FIXME comment, bfd access methods.
10110 (section_is_overlay): FIXME comment, bfd access methods.
10111
10112 * symfile.c (generic_load): Whitespace and long line cleanups.
10113 Remove duplicate variable, change several local variables to
10114 more appropriate data types.
10115 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10116
10117 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10118
10119 From Peter Schauer:
10120 * language.c (longest_local_hex_string_custom): Use phex_nz to
10121 convert NUM to a hex string.
10122
10123 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10124
10125 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10126 the function.
10127 Update Copyright year.
10128
10129 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10130
10131 * language.c (longest_raw_hex_string): Delete unused function.
10132
10133 2002-01-11 Petr Sorfa <petrs@caldera.com>
10134
10135 * MAINTAINERS (write-after-approval): Add myself.
10136 * dwarf2read.c (read_tag_string_type): Handling of
10137 DW_AT_byte_size.
10138 (read_tag_string_type): FORTRAN fix to prevent propagation of
10139 first string size.
10140 (set_cu_language): Handling of DW_LANG_Fortran95
10141
10142 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10143
10144 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10145 GETPID(inferior_ptid).
10146 (store_inferior_registers): Likewise.
10147
10148 2002-01-10 Jason Merrill <jason@redhat.com>
10149
10150 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10151 Fix DW_OP_minus.
10152
10153 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10154
10155 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10156 and bfd/elf32-sh-nbsd.c.
10157
10158 2002-01-10 Michael Snyder <msnyder@redhat.com>
10159
10160 * NEWS: Mention --pid and corefile/proc-id behavior change.
10161
10162 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10163 * gcore.c: Include cli/cli-decode.h instead of command.h.
10164
10165 * main.c (captured_main): Add new command line option "--pid".
10166 If the second command line argument (following the symbol-file)
10167 begins with a digit, try to attach to it before trying to open
10168 it as a corefile.
10169 (print_gdb_help): Document the "--pid" argument.
10170
10171 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10172
10173 * completer.c (command_completer): New function.
10174
10175 * completer.h <command_completer>: Add prototype.
10176
10177 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10178 completer for the "help" command.
10179
10180 2002-01-09 Jason Merrill <jason@redhat.com>
10181
10182 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10183
10184 2002-01-09 Michael Snyder <msnyder@redhat.com>
10185
10186 * i386-linux-nat.c (fill_fpxregset): Make global.
10187 (store_fpxregset): Ditto.
10188
10189 * gregset.h (gdb_fpxregset_t): Define.
10190 (supply_fpxregset): Prototype.
10191 (fill_fpxregset): Prototype.
10192
10193 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10194
10195 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10196
10197 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10198 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10199 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10200
10201 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10202
10203 * MAINTAINERS: Update target maintainer rules so that any
10204 Maintainer can approve a tested patch for a maintenance-only
10205 target.
10206
10207 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10208
10209 * MAINTAINERS (write-after-approval): Add myself.
10210
10211 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10212 IN_SIGTRAMP.
10213
10214 2002-01-08 Michael Snyder <msnyder@redhat.com>
10215
10216 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10217 real name of the executable, rather than the /proc name.
10218
10219 2002-01-03 Michael Snyder <msnyder@redhat.com>
10220
10221 Implement a "generate-core-file" command in gdb, save target state.
10222 * gcore.c: New file. Implement new command 'generate-core-file'.
10223 Save a corefile image of the current state of the inferior.
10224 * linux-proc.c: Add linux-specific code for saving corefiles.
10225 * target.h (struct target_ops): Add new target vectors for saving
10226 corefiles; to_find_memory_regions and to_make_corefile_notes.
10227 (target_find_memory_regions): New macro.
10228 (target_make_corefile_notes): New macro.
10229 * target.c (update_current_target): Inherit new target methods.
10230 (dummy_find_memory_regions): New place-holder method.
10231 (dummy_make_corefile_notes): New place-holder method.
10232 (init_dummy_target): Initialize new dummy target vectors.
10233 * exec.c (exec_set_find_memory_regions): New function.
10234 Allow the exec_ops vector for memory regions to be taken over.
10235 (exec_make_note_section): New function, target vector method.
10236 * defs.h (exec_set_find_memory_regions): Export prototype.
10237 * procfs.c (proc_find_memory_regions): New function, corefile method.
10238 (procfs_make_note_section): New function, corefile method.
10239 (init_procfs_ops): Set new target vector pointers.
10240 (find_memory_regions_callback): New function.
10241 (procfs_do_thread_registers): New function.
10242 (procfs_corefile_thread_callback): New function.
10243 * sol-thread.c (sol_find_memory_regions): New function.
10244 (sol_make_note_section): New function.
10245 (init_sol_thread_ops): Initialize new target vectors.
10246 * inftarg.c (inftarg_set_find_memory_regions): New function.
10247 Allow to_find_memory_regions vector to be taken over.
10248 (inftarg_set_make_corefile_notes): New function.
10249 Allow to_make_corefile_notes vector to be taken over.
10250 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10251 interface layer if not target_has_execution (may be a corefile).
10252 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10253 * config/sparc/sun4sol2.mh: Ditto.
10254 * config/alpha/alpha-linux.mh: Ditto.
10255 * config/arm/linux.mh: Ditto.
10256 * config/i386/x86-64linux.mh: Ditto.
10257 * config/ia64/linux.mh: Ditto.
10258 * config/m68k/linux.mh: Ditto.
10259 * config/mips/linux.mh: Ditto.
10260 * config/powerpc/linux.mh: Ditto.
10261 * config/sparc/linux.mh: Ditto.
10262
10263 2002-01-07 Michael Snyder <msnyder@redhat.com>
10264
10265 * arm-linux-nat.c: Remove references to regcache.c internal data
10266 (registers[] and register_valid[]).
10267
10268 2002-01-07 Michael Snyder <msnyder@redhat.com>
10269
10270 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10271 so that attaching to a pid will automatically read the process's
10272 symbol file and shlibs.
10273 * Makefile.in: Add rule for linux-proc.o.
10274 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10275 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10276 * config/arm/linux.mh: Ditto.
10277 * config/i386/linux.mh: Ditto.
10278 * config/i386/x86-64linux.mh: Ditto.
10279 * config/ia64/linux.mh: Ditto.
10280 * config/m68k/linux.mh: Ditto.
10281 * config/mips/linux.mh: Ditto.
10282 * config/powerpc/linux.mh: Ditto.
10283 * config/sparc/linux.mh: Ditto.
10284
10285 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10286
10287 * win32-nat.c: Add i386-tdep.h dependency.
10288
10289 2002-01-07 Michael Snyder <msnyder@redhat.com>
10290
10291 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10292 instead of bfd_get_arch_size. Don't bail out just because
10293 there's no exec_bfd.
10294
10295 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10296 * p-valprint.c (pascal_object_print_value): Ditto.
10297 * somread.c (som_symtab_read): Ditto.
10298 * symfile.c (simple_free_overlay_region_table): Ditto.
10299 * valops.c (value_assign): Ditto.
10300
10301 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10302 use tilde_expand and strerror for opening save-tracepoints file.
10303
10304 * thread-db.c (thread_db_new_objfile): Indendation fix.
10305
10306 * infptrace.c (GDB_MAX_ALLOCA): New define.
10307 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10308 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10309 can be overridden with whatever value is appropriate to the host).
10310 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10311 alloca to allocate potentially large buffer.
10312 * rs6000-nat.c (child_xfer_memory): Ditto.
10313 * symm-nat.c (child_xfer_memory): Ditto.
10314 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10315
10316 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10317
10318 From Nick Clifton <nickc@redhat.com>
10319 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10320
10321 2002-01-07 Michael Snyder <msnyder@redhat.com>
10322
10323 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10324 Don't use exec_bfd if it's NULL.
10325
10326 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10327
10328 * valops.c (value_arg_coerce): Fix formatting.
10329
10330 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10331
10332 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10333 * gnu-nat.c: Ditto.
10334
10335 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10336
10337 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10338 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10339 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10340 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10341 z8k-coff have not been multi-arched. Update z8k-coff build
10342 status.
10343
10344 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10345
10346 * MAINTAINERS: Mark a29k target as obsolete.
10347 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10348 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10349 comments.
10350 * NEWS: Note that a29k targets are obsolete.
10351 * a29k-tdep.c: Mark as obsolete.
10352 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10353 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10354 a29k-*-vxworks* targets as obsolete.
10355 * remote-adapt.c: Obsolete.
10356 * remote-eb.c: Obsolete.
10357 * remote-mm.c: Obsolete.
10358 * remote-udi.c: Obsolete.
10359 * config/a29k/a29k-udi.mt: Obsolete.
10360 * config/a29k/a29k.mt: Obsolete.
10361 * config/a29k/tm-a29k.h: Obsolete.
10362 * config/a29k/tm-vx29k.h: Obsolete.
10363 * config/a29k/vx29k.mt: Obsolete.
10364
10365 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10366
10367 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10368 with BFD_ENDIAN_BIG.
10369
10370 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10371
10372 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10373 * configure, config.in: Re-generate.
10374 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10375 * defs.h: Do not include <endian.h>.
10376
10377 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10378
10379 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10380 * config.in: Regenerate.
10381 * configure.in: Update copyright years.
10382 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10383 * configure: Regenerate.
10384 * i386bsd-nat.c: Update copyright years.
10385 (fill_gregset): Use regcache_collect.
10386 (fetch_inferior_registers): Only fetch integer registers
10387 if requested to do so. Add support for XMM registers
10388 using PT_GETXMMREGS.
10389 (store_inferior_registers): Only store integer registers
10390 if requested to do so. Add support for XMM registers
10391 using PT_SETXMMREGS.
10392 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10393 (store_inferior_registers): Remove.
10394 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10395 (fetch_elfcore_registers): New function.
10396 (i386nbsd_elfcore_fns): New.
10397 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10398 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10399 i386bsd-nat.o.
10400 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10401 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10402 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10403 * config/i386/tm-nbsd.h: Update copyright years.
10404 (HAVE_SSE_REGS): Define.
10405 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10406 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10407 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10408 (SIGCONTEXT_PC_OFFSET): Remove.
10409 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10410
10411 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10412
10413 * configure.tgt: Remove powerpc-*-macos* target.
10414 * config/m68k/xm-mpw.h: Delete file.
10415 * config/xm-mpw.h: Delete file.
10416 * ser-mac.c: Delete file.
10417 * mpw-make.sed: Delete file.
10418 * mpw-config.in: Delete file.
10419 * mac-xdep.c: Delete file.
10420 * mac-gdb.r: Delete file.
10421 * mac-defs.h: Delete file.
10422 * mac-nat.c: Delete file.
10423 * config/powerpc/macos.mh: Delete file.
10424 * config/powerpc/macos.mt: Delete file.
10425 * config/powerpc/nm-macos.h: Delete file.
10426 * config/powerpc/tm-macos.h: Delete file.
10427 * source.c (openp, open_source_file): Remove obsolete code.
10428 * top.c (gdb_readline): Ditto.
10429 * utils.c (query): Ditto.
10430 * event-top.c (display_gdb_prompt): Ditto.
10431 * Makefile.in (ser-mac.o): Delete obsolete target.
10432 * NEWS: Update.
10433
10434 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10435
10436 * defs.h (BIG_ENDIAN): Delete macro definition.
10437 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10438 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10439 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10440 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10441 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10442 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10443 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10444 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10445 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10446 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10447 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10448 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10449 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10450 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10451 * gdbarch.c: Re-generate.
10452
10453 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10454
10455 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10456 for core files.
10457
10458 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10459
10460 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10461
10462 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10463
10464 * value.h (value_ptr): Delete typedef.
10465
10466 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10467
10468 * i386nbsd-nat.c: Update copyright years.
10469 Include i386-tdep.h.
10470
10471 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10472
10473 * stabsread.c: Update copyright years.
10474
10475 From Debashis Mahata <debashis.mahata@wipro.com>:
10476 (read_struct_fields): Deal with Sun C compiler erroneous stab
10477 output for structs and unions.
10478 Fix PR gdb/269.
10479
10480 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10483 prototype.
10484
10485 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * cp-abi.c: Fix whitespace.
10488 (baseclass_offset): New wrapper function.
10489 * cp-abi.h (baseclass_offset): Add prototype.
10490 (struct cp_abi_ops): Add baseclass_offset pointer.
10491
10492 * valops.c (vb_match): Move to...
10493 * gnu-v2-abi.c (vb_match): here.
10494 * valops.c (baseclass_offset): Move to...
10495 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10496
10497 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10498
10499 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10500 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10501 * hpacc-abi.c (init_hpacc_ops): Likewise.
10502
10503 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * valops.c (find_overload_match): Accept obj as a
10506 reference parameter. Update it before returning.
10507 * value.h (find_overload_match): Update prototype.
10508 * eval.c (evaluate_subexp_standard): Pass object to
10509 find_overload_match by reference.
10510
10511 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10512
10513 * valarith.c: Replace value_ptr with struct value pointer. Remove
10514 register attribute from value declarations.
10515 * valops.c: Ditto.
10516 * value.h: Ditto.
10517 * scm-lang.c (scm_lookup_name): Ditto.
10518
10519 2002-01-03 Michael Snyder <msnyder@redhat.com>
10520
10521 Abstract the functionality of iterating over mapped memory
10522 regions into a general purpose iterator function.
10523 * procfs.c (iterate_over_mappings): New function, general purpose
10524 iterator for memory sections.
10525 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10526 (solib_mappings_callback): New function, callback for above.
10527 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10528 (info_mappings_callback): New function, callback for above.
10529
10530 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10531
10532 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10533
10534 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10535 * i386-tdep.c: Include "elf-bfd.h".
10536 (process_note_abi_tag_sections): New function.
10537 (i386_gdbarch_init): Add code to recognize various OS/ABI
10538 combinations.
10539
10540 * maint.c (_initialize_maint_cmds): Add missing \ in
10541 string-literal.
10542
10543 For older changes see ChangeLog-2001
10544 \f
10545 Local Variables:
10546 mode: change-log
10547 left-margin: 8
10548 fill-column: 74
10549 version-control: never
10550 End: