* rs6000-tdep.c (altivec_register_p): Restore function inadvertently
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2
3 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4 deleted in 2002-08-20 commit. This function is still used by
5 ppc-linux-nat.c.
6
7 2002-08-26 Keith Seitz <keiths@redhat.com>
8
9 * gdb-events.sh: Add selected-frame-level-changed event.
10 * gdb-events.c: Regenerated.
11 * gdb-events.h: Regenerated.
12
13 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
14
15 Fix PR gdb/393:
16 * inflow.c (terminal_save_ours): New function to save terminal
17 settings.
18 * inferior.h (terminal_save_ours): Declare.
19 * target.c (debug_to_terminal_save_ours): New function.
20 (cleanup_target): Defaults to_terminal_save_ours.
21 (update_current_target): Inherit to_terminal_save_ours.
22 (setup_target_debug): Set to_terminal_save_ours.
23 * target.h (target_terminal_save_ours): New to save terminal settings.
24 (target_ops): New member to_terminal_save_ours.
25 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
26 * hpux-thread.c (init_hpux_thread_ops): Likewise.
27 * inftarg.c (init_child_ops): Likewise.
28 * m3-nat.c (init_m3_ops): Likewise.
29 * procfs.c (init_procfs_ops): Likewise.
30 * wince.c (init_child_ops): Likewise.
31 * win32-nat.c (init_child_ops): Likewise.
32 * sol-thread.c (init_sol_thread_ops): Likewise.
33
34 2002-08-26 Mark Kettenis <kettenis@gnu.org>
35
36 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
37 use regcache_* functions.
38 (i386_gdbarch_init): Set store_return_value instead of
39 deprecated_store_return_value.
40
41 * regcache.c (regcache_raw_write_signed,
42 regcache_raw_write_unsigned): New functions.
43 * regcache.h (regcache_raw_write_signed,
44 regcache_raw_write_unsigned): New prototypes.
45
46 2002-08-25 Andrew Cagney <ac131313@redhat.com>
47
48 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
49 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
50 source file dependencies. Cleanup corresponding generator rules.
51
52 2002-08-25 Andrew Cagney <ac131313@redhat.com>
53
54 * regcache.h (register_offset_hack): Declare.
55 (regcache_cooked_read_using_offset_hack): Declare.
56 (regcache_cooked_write_using_offset_hack): Declare.
57
58 * regcache.c (register_offset_hack): New function.
59 (regcache_cooked_read_using_offset_hack): New function.
60 (regcache_cooked_write_using_offset_hack): New function.
61 (regcache_dump): Check that the registers, according to their
62 offset, are packed hard against each other.
63 (cooked_xfer_using_offset_hack): New function.
64
65 2002-08-25 Andrew Cagney <ac131313@redhat.com>
66
67 * regcache.c (struct regcache_descr): Add field register_type.
68 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
69 in as a parameter
70 (init_regcache_descr): Initialize register_type. Pass the descr
71 to init_legacy_regcache_descr. Use register_type instead of
72 REGISTER_VIRTUAL_TYPE.
73 (register_type): New function.
74 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
75 * regcache.h (register_type): Declare.
76
77 2002-08-25 Andrew Cagney <ac131313@redhat.com>
78
79 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
80 instead of deprecated_store_return_value. Fix fallout from
81 2002-08-23 Andrew Cagney <cagney@redhat.com>.
82
83 2002-08-25 Andrew Cagney <ac131313@redhat.com>
84
85 * regcache.c (max_register_size): New function.
86 (init_legacy_regcache_descr): Ensure that max_register_size is
87 large enough for REGISTER_VIRTUAL_SIZE.
88 * regcache.h (max_register_size): Declare.
89
90 2002-08-24 Andrew Cagney <ac131313@redhat.com>
91
92 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
93 store_return_value.
94 (e500_extract_return_value): Change type of valbuf pointer to
95 void.
96
97 2002-08-24 Mark Kettenis <kettenis@gnu.org>
98
99 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
100 workaround.
101
102 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
103 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
104 long long) to prevent compiler warning on 64-bit systems.
105
106 2002-08-23 Andrew Cagney <cagney@redhat.com>
107
108 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
109 (DEPRECATED_STORE_RETURN_VALUE): New method.
110 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
111 * gdbarch.h, gdbarch.c: Re-generate.
112
113 * values.c (set_return_value): Pass current_regcache to
114 STORE_RETURN_VALUE.
115 * arch-utils.h (legacy_store_return_value): Declare.
116 * arch-utils.c (legacy_store_return_value): New function.
117 (legacy_extract_return_value): Update parameters.
118
119 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
120 STORE_RETURN_VALUE.
121 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
122 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
123 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
124 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
125 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
126 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
127 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
128 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
129 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
130 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
131
132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
133 * i386-tdep.c (i386_extract_return_value): Update.
134 * arch-utils.c (legacy_extract_return_value): Update.
135 * frv-tdep.c (frv_gdbarch_init): Update.
136 * cris-tdep.c (cris_gdbarch_init): Update.
137 * d10v-tdep.c (d10v_gdbarch_init): Update.
138 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
139 * m68k-tdep.c (m68k_gdbarch_init): Update.
140 * mcore-tdep.c (mcore_gdbarch_init): Update.
141 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
142 * s390-tdep.c (s390_gdbarch_init): Update.
143 * sparc-tdep.c (sparc_gdbarch_init): Update.
144 * sh-tdep.c (sh_gdbarch_init): Update.
145 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
146 * v850-tdep.c (v850_gdbarch_init): Update.
147 * avr-tdep.c (avr_gdbarch_init): Update.
148 * ia64-tdep.c (ia64_gdbarch_init): Update.
149 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
150 * vax-tdep.c (vax_gdbarch_init): Update.
151 * alpha-tdep.c (alpha_gdbarch_init): Update.
152 * arm-tdep.c (arm_gdbarch_init): Update.
153 * mips-tdep.c (mips_gdbarch_init): Update.
154 * i386-tdep.c (i386_gdbarch_init): Update.
155
156 2002-08-23 Andrew Cagney <ac131313@redhat.com>
157
158 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
159 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
160
161 2002-08-24 Mark Kettenis <kettenis@gnu.org>
162
163 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
164 problems.
165
166 2002-08-23 Joel Brobecker <brobecker@gnat.com>
167
168 * infrun.c (handle_inferior_event): Move a comment outside of a
169 function call, in order to avoid indent reformatting this part
170 of the code in an unreadable way.
171
172 2002-08-23 Grace Sainsbury <graces@redhat.com>
173
174 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
175 when breakpoints fail. Move general breakpoint error messages to
176 insert_breakpoints.
177 * breakpoint.c (insert_breakpoints): Change warnings when
178 breakpoints are nto inserted to specify the type. Remove call to
179 memory_error when hardware breakpoints can't be inserted. Remove
180 multiple calls to warning so all messages are sent to the user at
181 once.
182 (delete_breakpoints): Make insert error messsages more explicit.
183
184 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
185
186 * ChangeLog: Move gdbserver entries after GDB 5.2 to
187 gdbserver/ChangeLog.
188
189 2002-08-23 Mark Kettenis <kettenis@gnu.org>
190
191 * i386-tdep.c: Include "objfiles.h".
192 (i386_svr4_init_abi): Set in_solib_call_trampoline and
193 skip_trampoline_code.
194 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
195 (CPLUS_MARKER): Define to '.'.
196
197 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
198 member.
199 (linux_corefile_thread_callback): Increase args->num_notes.
200 (linux_make_note_section): Initialize thread_args.num_notes, and
201 use it to determine whether notes for any threads were created.
202
203 2002-08-23 Donn Terry <dterry@microsoft.com>
204
205 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
206 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
207 and PCUNKILL.
208 (write_with_trace): Conditionalize out the switch branch handling
209 PCSHOLD if the corresponding macro is not defined. Likewise for
210 PRSABORT and PRSTOP.
211 This change will be needed by the Interix port.
212
213 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
214
215 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
216 ev_offset fields.
217 (skip_prologue): Add support for BookE/e500 instructions.
218 (e500_extract_return_value): New function.
219 (frame_get_saved_regs): Add support for saving ev registers and
220 pseudo gpr's.
221 (e500_store_return_value): New function.
222 (rs6000_gdbarch_init): Move up default intializations of
223 deprecated_extract_return_value and store_return_value. Overwrite
224 init of store_return_value with e500 specific version.
225 Set extract_return_value for e500.
226
227 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
228
229 * blockframe.c (generic_call_dummy_register_unwind): Use
230 regcache_cooked_read to catch cases in which the variable is
231 stored in a pseudo register.
232
233 2002-08-22 Andrew Cagney <cagney@redhat.com>
234
235 * NEWS: Mention that the i960 has been made obsolete.
236 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
237 i960-tdep.c
238 (remote-nrom.o): Obsolete target.
239 (remote-nindy.o, i960-tdep.o): Ditto.
240 * remote-nrom.c: Make file obsolete.
241 * remote-nindy.c, remote-vx960.c: Ditto.
242 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
243 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
244 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
245 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
246 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
247 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
248 i960-*-vxworks* obsolete.
249 * MAINTAINERS: Note that the i960 is obsolete.
250
251 2002-08-21 Corinna Vinschen <vinschen@redhat.com
252
253 * aix-thread.c (aix_thread_detach): Disable thread debugging on
254 detach to allow reinitialization.
255
256 2002-08-22 Andrew Cagney <ac131313@redhat.com>
257
258 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
259 attempt).
260
261 2002-08-22 Jim Blandy <jimb@redhat.com>
262
263 * coffread.c (coff_symfile_read): Don't try to read the line
264 number table from disk if the image file doesn't have a symbol
265 table; we'll never actually look at the info anyway, and Windows
266 ships DLL's with bogus file offsets for the line number data.
267
268 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
269
270 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
271 an e500 executable.
272
273 2002-08-21 Michael Snyder <msnyder@redhat.com>
274
275 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
276 (MSYMBOL_SIZE): Replace macro with function.
277 (DEFAULT_MIPS_TYPE): Delete unused macro.
278 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
279 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
280
281 2002-08-21 Jim Blandy <jimb@redhat.com>
282
283 * valops.c (value_cast): Simplify and correct logic for doing a
284 static cast from a pointer to a base class to a pointer to a
285 derived class.
286
287 2002-08-21 Andrew Cagney <ac131313@redhat.com>
288
289 * infcmd.c (default_print_registers_info): Replace
290 do_registers_info.
291 (registers_info): Use gdbarch_print_registers_info instead of
292 DO_REGISTERS_INFO.
293 * inferior.h (default_print_registers_info): Replace
294 do_registers_info.
295 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
296 (DO_REGISTERS_INFO): Change to a predicate function.
297 * gdbarch.h, gdbarch.c: Regenerate.
298
299 2002-08-21 Keith Seitz <keiths@redhat.com>
300
301 * gdb-events.sh: Add target-changed event.
302 * gdb-events.c: Regenerated.
303 * gdb-events.c: Regenerated.
304 * valops.c (value_assign): Add target-changed event notification
305 to inlval_register, lval_memory, and lval_reg_frame_relative.
306
307 2002-08-21 Joel Brobecker <brobecker@gnat.com>
308
309 * NEWS: Add an entry regarding the improvement of the next/step
310 operation on Alpha Tru64 multi-processor machines.
311
312 2002-08-21 Andrew Cagney <ac131313@redhat.com>
313
314 * Makefile.in: Update dependencies for mi/ cli/ and tui/
315 directores.
316 * Makefile.in: Update all _h macro definitions.
317 * Makefile.in (install-gdbtk): Move to install section.
318 (rdi-share/libangsd.a): Move to end of file.
319
320 2002-08-19 Andrew Cagney <ac131313@redhat.com>
321
322 * frame.c (frame_register_unwind): When a register, set addrp to
323 the register's byte.
324
325 2002-08-20 Michael Snyder <msnyder@redhat.com>
326
327 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
328 used locally, so move them from the target machine header to here.
329 (mips_set_processor_type, mips_register_name, mips32_next_pc,
330 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
331 Make static.
332 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
333
334 2002-08-20 Andrew Cagney <cagney@redhat.com>
335
336 * NEWS: Mention that the Apollo line was made obsolete.
337 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
338 m68*-hp-hpux* obsolete.
339 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
340 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
341 * buildsym.c (make_blockvector): Make static.
342 * buildsym.h (make_blockvector): Make extern declaration obsolete.
343 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
344 (ALLDEPFILES): Remove dstread.c.
345 (dstread.o): Obsolete make rule.
346 * dstread.c: Makefile obsolete.
347 * dst.h: Ditto.
348 * config/m68k/hp300hpux.mt: Ditto.
349 * config/m68k/hp300hpux.mh: Ditto.
350 * config/m68k/hp300bsd.mt: Ditto.
351 * config/m68k/hp300bsd.mh: Ditto.
352 * config/m68k/apollo68b.mt: Ditto.
353 * config/m68k/apollo68v.mh: Ditto.
354 * config/m68k/apollo68b.mh: Ditto.
355
356 2002-08-20 Michael Snyder <msnyder@redhat.com>
357
358 * mips-tdep.c (mips_in_return_stub): Make static.
359 (mips_gdbarch_init): Set in_solib_return_trampoline.
360 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
361
362 2002-08-20 Michael Snyder <msnyder@redhat.com>
363
364 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
365 * gdbarch.c, gdbarch.h: Regenerate.
366 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
367 Add.
368 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
369
370 2002-08-20 Michael Snyder <msnyder@redhat.com>
371
372 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
373 (mips_gdbarch_init): Set skip_trampoline_code,
374 in_solib_call_trampoline.
375 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
376 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
377
378 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
379
380 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
381
382 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
383 vector type for ev registers.
384 (e500_pseudo_register_read): New function.
385 (e500_pseudo_register_write): New function.
386 (e500_dwarf2_reg_to_regnum): New function.
387 (PPC_UISA_NOFP_SPRS): New macro.
388 (PPC_EV_REGS): New macro.
389 (PPC_GPRS_PSEUDO_REGS): New macro.
390 (registers_e500): New register set for e500.
391 (variants): Add e500 variant.
392 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
393 before setting architectural dependent variations. Initialize ev
394 registers numbers. Add case for e500 architecture. Set the
395 number of pseudo registers.
396
397 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
398
399 * rs6000-tdep.c: Clean up comments.
400
401 2002-08-20 Andrew Cagney <cagney@redhat.com>
402
403 * h8300-tdep.c: Re-indent file.
404
405 2002-08-20 Jim Blandy <jimb@redhat.com>
406
407 * Makefile.in (LDFLAGS): Allow the configure script to establish a
408 default for this.
409
410 2002-08-20 Keith Seitz <keiths@redhat.com>
411
412 * breakpoints.c (watch_command_1): Use internal breakpoint
413 when setting a watchpoint_scope breakpoint.
414
415 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
416
417 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
418 (build_builtin_type_vec64i): Ditto.
419 (build_builtin_type_vec128): Ditto.
420 (build_builtin_type_vec128i): Ditto.
421
422 2002-08-19 Michael Snyder <msnyder@redhat.com>
423
424 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
425 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
426 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
427 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
428 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
429 CALL_DUMMY_ADDRESS): Delete.
430 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
431 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
432 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
433 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
434 push_return_address.
435 (mips_register_raw_size, mips_eabi_use_struct_convention,
436 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
437 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
438 mips_init_extra_frame_info, mips_eabi_push_arguments,
439 mips_n32n64_push_arguments, mips_push_return_address,
440 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
441 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
442
443 2002-08-19 Michael Snyder <msnyder@redhat.com>
444
445 * mips-tdep.c (mips_frame_num_args): New function.
446 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
447 frame_saved_pc, frame_args_address, frame_locals_address,
448 frame_num_args, and frame_args_skip.
449 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
450 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
451 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
452 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
453
454 2002-08-20 Michael Snyder <msnyder@redhat.com>
455
456 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
457 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
458 * mips-tdep.c (mips_store_struct_return): New function.
459 (mips_extract_struct_value_address): New function.
460 (mips_gdbarch_init): Set store_struct_return and
461 extract_struct_value_address.
462
463 2002-08-20 David Carlton <carlton@math.stanford.edu>
464
465 * dwarf2read.c (dwarf2_build_psymtabs): Check that
466 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
467 (read_file_scope): Check that line_header is nonzero before
468 decoding macro information.
469
470 2002-08-20 Mark Kettenis <kettenis@gnu.org>
471
472 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
473 flag the general-purpose registers as floating-point on targets
474 that don't support the floating-point registers.
475
476 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
477
478 * rs6000-tdep.c (altivec_register_p): Delete.
479 (rs6000_do_altivec_registers): Delete.
480 (rs6000_altivec_registers_info): Delete.
481 (rs6000_do_registers_info): Delete.
482 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
483 (rs6000_gdbarch_init): Remove setting of do_registers_info.
484
485 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
486
487 * infcmd.c (do_registers_info): Print vector registers in hex
488 format only.
489 (print_vector_info): Check that printing registers
490 makes sense.
491 (print_float_info): Ditto.
492
493 2002-08-20 Andrew Cagney <ac131313@redhat.com>
494
495 * mips-tdep.c (mips_gdbarch_init): Update.
496 (mips_o32_extract_return_value): Rewrite.
497 (mips_o32_store_return_value): Rewrite.
498 (mips_o32_xfer_return_value): New function.
499 (mips_xfer_register): Tweak debug print message. Allow for
500 buf_offset when dumping the value transfered.
501
502 2002-08-20 Andrew Cagney <ac131313@redhat.com>
503
504 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
505 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
506 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
507 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
508 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
509
510 2002-08-14 Michael Snyder <msnyder@redhat.com>
511
512 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
513
514 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
515
516 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
517 register.
518 (P): New macro to define a register as a pseudo register.
519 (R, R4, R8, R16, FR32, R64, R0): Updated.
520 (struct variant): Add new fields for number of pseudo registers
521 and number of total registers.
522 (tot_num_registers): New macro replacing....
523 (num_registers): ...deleted macro.
524 (num_registers): New function.
525 (num_pseudo_registers): New function.
526 (variants): Update all variants to intialize new fields correctly.
527 Postpone initialization of number of pseudo regs and real regs.
528 (init_variants): New function.
529 (rs6000_gdbarch_init): Initialize variants. Update calculation of
530 registers offsets.
531
532 2002-08-19 David Carlton <carlton@math.stanford.edu>
533
534 * valops.c (search_struct_field): Change error message to treat
535 return value of 0 from value_static_field as meaning that field is
536 optimized out.
537 (value_struct_elt_for_reference): Ditto.
538 * values.c (value_static_field): Treat an unresolved location the
539 same as a nonexistent symbol. Fix PR gdb/635.
540 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
541 enclosed. Fix PR gdb/574.
542 * MAINTAINERS: Add self to Write After Approval list.
543
544 2002-08-19 Andrew Cagney <ac131313@redhat.com>
545
546 * mips-tdep.c (mips_xfer_register): New function.
547 (mips_n32n64_extract_return_value): Rewrite.
548 (mips_gdbarch_init): For N32 and N64, set extract_return_value
549 instead of deprecated_extract_return_value.
550
551 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
552
553 * rs6000-tdep.c (TDEP): Delete macro.
554 (branch_dest): Replace use of TDEP macro with its body.
555 (rs6000_pop_frame): Ditto.
556 (rs6000_push_arguments): Ditto.
557 (rs6000_skip_trampoline_code): Ditto.
558 (rs6000_frame_saved_pc): Ditto.
559 (rs6000_frame_chain): Ditto.
560 (rs6000_register_name): Ditto.
561 (rs6000_register_byte): Ditto.
562 (rs6000_register_raw_size): Ditto.
563 (rs6000_register_virtual_type): Ditto.
564 (rs6000_register_convertible): Ditto.
565 (rs6000_convert_from_func_ptr_addr): Ditto.
566
567 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
568
569 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
570 conditionally.
571 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
572 MIPS_LINUX_JB_ELEMENT_SIZE.
573 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
574 for MAX_REGISTER_RAW_SIZE arrays.
575 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
576 MIPS_LINUX_JB_ELEMENT_SIZE.
577
578 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
579
580 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
581
582 2002-08-19 Aidan Skinner <aidan@velvet.net>
583
584 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
585 ada-valprint.c ada-tasks.c.
586 (YYFILES): Add ada-exp.y.
587 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
588 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
589 (ada-exp.tab.o): New target.
590
591 2002-08-18 Andrew Cagney <ac131313@redhat.com>
592
593 * regcache.c (regcache_xfer_part): New function.
594 (regcache_raw_read_part): New function.
595 (regcache_raw_write_part): New function.
596 (regcache_cooked_read_part): New function.
597 (regcache_cooked_write_part): New function.
598 * regcache.h (regcache_raw_read_part): Declare.
599 (regcache_raw_write_part): Declare.
600 (regcache_cooked_read_part): Declare.
601 (regcache_cooked_write_part): Declare.
602
603 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
604
605 * remote.c (remote_open_1): Add async_p.
606 (remote_async_open_1): Delete.
607 (open_remote_target): Delete.
608 (remote_open, extended_remote_open): Update calls to remote_open_1.
609 (remote_async_open, extended_remote_async_open): Call
610 remote_open_1 instead of remote_async_open_1.
611
612 2002-08-19 Mark Kettenis <kettenis@gnu.org>
613
614 * blockframe.c: Fix a few coding standard violations.
615
616 2002-08-19 Mark Kettenis <kettenis@gnu.org>
617
618 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
619 here from ...
620 * config/i386/tm-i386sco5.h: ... here. File removed.
621 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
622
623 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
624 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
625 (TM_FILE): Set to tm-i386.h.
626 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
627 * config/i386/tm-i386v.h: Remove file.
628 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
629 instead of "i386/tm-i386v.h".
630 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
631 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
632 "i386/tm-i386v.h".
633 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
634 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
635 "i386/tm-i386.h".
636
637 2002-08-18 Mark Kettenis <kettenis@gnu.org>
638
639 * config/i386/nm-i386v.h: Add protection against
640 multiple-inclusion.
641 (i386_register_u_addr): Remove prototype.
642 (register_u_addr): New prototype.
643 (REGISTER_U_ADDR): Redefine accordingly.
644 * i386v-nat.c: Improve several comments.
645 (i386_register_u_addr): Change signature and rename to
646 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
647 ubase variable.
648
649 2002-08-18 Andrew Cagney <ac131313@redhat.com>
650
651 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
652 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
653 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
654 deprecated_extract_return_value.
655 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
656 rename mips_o32o64_push_arguments.
657 (mips_gdbarch_init): Update.
658 (mips_extract_return_value): Delete.
659 (mips_o32_extract_return_value): Clone mips_extract_return_value.
660 (mips_o64_extract_return_value): Clone mips_extract_return_value.
661 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
662 (mips_n32n64_extract_return_value): Clone
663 mips_extract_return_value.
664 (mips_store_return_value): Delete.
665 (mips_o32_store_return_value): Clone mips_store_return_value.
666 (mips_o64_store_return_value): Clone mips_store_return_value.
667 (mips_eabi_store_return_value): Clone mips_store_return_value.
668 (mips_n32n64_store_return_value): Clone mips_store_return_value.
669
670 2002-08-18 Aidan Skinner <aidan@velvet.net>
671
672 * ada-lang.c: Use gdb_string.h instead of <string.h>.
673 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
674
675 2002-08-18 Aidan Skinner <aidan@velvet.net>
676
677 * ada-lang.c: Run through gdb_indent.sh.
678 * ada-lang.h: Run through gdb_indent.sh.
679 * ada-tasks.c: Run through gdb_indent.sh.
680 * ada-typeprint.c: Run through gdb_indent.sh.
681 * ada-valprint.c: Run through gdb_indent.sh.
682
683 2002-08-18 Andrew Cagney <ac131313@redhat.com>
684
685 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
686 ABI.
687
688 2002-08-18 Mark Kettenis <kettenis@gnu.org>
689
690 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
691
692 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
693 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
694
695 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
696 write_register_gen instead of write_register_bytes.
697
698 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
699 i[3456]-*-osf1mk* configurations have been made obsolete.
700 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
701 i[3456]86-*-osf1mk* hosts obsolete.
702 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
703 targets obsolete.
704 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
705 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
706 config/i386/i386m3.mt, config/i386/nm-m3.h,
707 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
708 config/i386/i386mk.mh, config/i386/i386mk.mt,
709 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
710 obsolete.
711 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
712 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
713 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
714
715 2002-08-18 Andrew Cagney <ac131313@redhat.com>
716
717 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
718 (hppa_value_returned_from_stack): Declare.
719 (hppa_extract_return_value): Declare.
720 * config/pa/hppa.mt: New file.
721 * configure.tgt: Recognize hppa*-*-*.
722 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
723
724 2002-08-18 Mark Kettenis <kettenis@gnu.org>
725
726 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
727 comment.
728
729 2002-08-17 Mark Kettenis <kettenis@gnu.org>
730
731 * top.c (gdb_rl_operate_and_get_next): Make sure
732 operate-and-get-next functions correctly even when the history
733 list is completely filled.
734
735 2002-08-18 Andrew Cagney <ac131313@redhat.com>
736
737 * MAINTAINERS (Target Instruction Set Architectures): Rename
738 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
739 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
740 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
741 already listed under Host/Native.
742
743 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
744 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
745 mips*-*-*.
746
747 2002-08-17 Andrew Cagney <ac131313@redhat.com>
748
749 * config/ia64/ia64.mt: New file.
750 * config/alpha/alpha.mt: New file.
751 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
752 ia64-linux-gnu. Mention that ia64-elf is broken.
753 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
754
755 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
756
757 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
758 generic_func_frame_valid instead of func_frame_valid.
759
760 2002-08-16 Joel Brobecker <brobecker@gnat.com>
761
762 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
763 procfs appears to be broken when debugging on multi-processor
764 machines. So enable software single stepping in order to avoid
765 using the procfs interface to do next/step operations, using
766 internal breakpoints instead.
767
768 * infrun.c (handle_inferior_event): Readjust the stop_pc by
769 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
770 make this pc address equal to the value it would have if the
771 system stepping capability was used. Also set a new flag used
772 to ensure that we don't readjust the PC one more time later.
773
774 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
775 address by DECR_PC_AFTER_BREAK when software single step is
776 in use for this architecture, as this has already been taken
777 care of in handle_inferior_event().
778
779 2002-08-16 Joel Brobecker <brobecker@gnat.com>
780
781 * infrun.c (handle_inferior_event): Minor reformatting, to make
782 a rather long condition expression easier to read.
783
784 2002-08-16 Andrew Cagney <ac131313@redhat.com>
785
786 * Makefile.in (gdbtk.o): Move to end of file.
787 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
788 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
789 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
790 (gdbtk-wrapper.o, gdbres.o): Ditto.
791
792 2002-08-16 Andrew Cagney <ac131313@redhat.com>
793
794 * Makefile.in (copying.o): Separate out compile rule.
795 (hpux-thread.o, procfs.o, signals.o): Ditto.
796 (v850ice.o, z8k-tdep.o): Ditto.
797 (tui-file.o): Move to TUI section.
798 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
799 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
800
801 2002-08-16 Joel Brobecker <brobecker@gnat.com>
802
803 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
804 skip_trampoline_code, for better namespace-proofing.
805
806 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
807
808 2002-08-16 Joel Brobecker <brobecker@gnat.com>
809
810 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
811
812 2002-08-16 Joel Brobecker <brobecker@gnat.com>
813
814 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
815 signal, check whether we hit a breakpoint before checking for a
816 single step breakpoint. Otherwise, GDB fails to notice that a
817 breakpoint has been hit when stepping onto a breakpoint.
818
819 2002-08-16 Keith Seitz <keiths@redhat.com>
820
821 * gdb-events.sh (clear_gdb_event_hooks): New function.
822 * gdb-events.c: Regenerate.
823 * gdb-events.h: Regenerate.
824
825 2002-08-16 Andrew Cagney <ac131313@redhat.com>
826
827 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
828 not_a_sw_breakpoint.
829 * breakpoint.h (bpstat_stop_status): Add parameter names.
830
831 2002-08-16 Grace Sainsbury <graces@redhat.com>
832
833 * remote.c (remote_insert_hw_breakpoint)
834 (remote_remove_hw_breakpoint): Fix calculation of length field
835 for Z-packet.
836
837 2002-08-15 Michael Snyder <msnyder@redhat.com>
838
839 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
840 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
841 (supply_fpregset): Ditto.
842
843 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
844 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
845 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
846 (TARGET_READ_SP): Delete.
847 (DO_REGISTERS_INFO): Delete.
848 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
849 Delete.
850 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
851 from macros to functions.
852
853 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
854 (mips_register_convertible, mips_register_convert_to_virtual,
855 mips_register_convert_to_raw): Make static.
856 (mips_read_sp): New function.
857 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
858 (mips_do_registers_info): Make static.
859 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
860 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
861 (mips_register_convert_from_type, mips_register_convert_to_type):
862 New functions.
863 (mips_gdbarch_init): Set up function_start_offset,
864 register_virtual_size, pc_in_sigtramp.
865
866 2002-08-15 Andrew Cagney <ac131313@redhat.com>
867
868 * infcmd.c (vector_info): New function.
869 (_initialize_infcmd): Add command "info vector".
870 (print_vector_info): New function.
871
872 * gdbarch.sh (PRINT_VECTOR_INFO): New method
873 * gdbarch.h, gdbarch.c: Regenerate.
874
875 2002-08-15 Andrew Cagney <ac131313@redhat.com>
876
877 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
878 ``print_all''. Only print vector registers when ``print_all''.
879
880 2002-08-15 Andrew Cagney <ac131313@redhat.com>
881
882 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
883 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
884
885 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
886 Add `args' parameter.
887 * gdbarch.h, gdbarch.c: Regenerate.
888
889 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
890
891 * infcmd.c (float_info): Call print_float_info.
892 (print_float_info): New function. By default, print the
893 floating-point registers.
894
895 * arch-utils.h (default_print_float_info): Delete declaration.
896 * arch-utils.c (default_print_float_info): Delete function.
897
898 2002-08-16 Mark Kettenis <kettenis@gnu.org>
899
900 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
901 out define.
902
903 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
904 FRAME.
905
906 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
907 * configure.host: Make i[3456]86-*-aix host obsolete.
908 * configure.tgt: Make i[3456]86-*-aix target obsolete.
909 * config/i386/i386aix.mh, config/i386/i386aix.mt,
910 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
911 config/i386/xm-i386aix.h: Make files obsolete.
912 * i386aix-nat.c: Make file obsolete.
913 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
914 (i386aix-nat.o): Make target obsolete.
915
916 * config/i386/nm-gnu.h: Removed.
917 * config/i386/nm-i386gnu.h: New file.
918 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
919 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
920 Moved here from ...
921 * config/i386/tm-i386gnu.h: ... here. Removed.
922 * config/i386/xm-i386gnu.h: Removed.
923 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
924 (NAT_FILE): Set to nm-i386gnu.h.
925 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
926 * i386-tdep.c: New file.
927 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
928 (i386gnu-tdep.o): Specify dependencies.
929
930 2002-08-15 Mark Kettenis <kettenis@gnu.org>
931
932 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
933 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
934 Adjust a few comments to reflect reality a bit closer.
935 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
936 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
937 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
938 target_insert_watchpoint, target_remove_watchpoint):
939 Move defines to ...
940 * config/i386/nm-i386sco5.h: ... here.
941 (kernel_u_size): Add prototype. Improve a few comments and add
942 protection against multiple inclusion.
943
944 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
945 out define.
946
947 * uw-thread.c (SP_ARG0): Define if not already defined.
948 * config/i386/tm-i386.h (SO_ARG0): Remove define.
949
950 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
951
952 * config/i386/tm-i386.h: Don't include "regcache.h".
953
954 * i387-tdep.h (i387_print_float_info): New prototype.
955 * i387-tdep.c (print_i387_value, print_i387_ext,
956 print_i387_status_word, print_i387_control_word): Add `struct
957 ui_file *' argument and use it for output.
958 (i387_print_float_info): Renamed from i387_float_info. Add
959 `struct gdbarch *' and `struct ui_file *' arguments and use the
960 latter for output.
961 * i386-tdep.c: Include "i387-tdep.h".
962 (i386_gdbarch_init): Set print_float_info.
963 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
964 (FLOAT_INFO): Remove define.
965
966 2002-08-13 Michael Snyder <msnyder@redhat.com>
967
968 * mips-tdep.c (mips_push_arguments): Rename to
969 mips_eabi_push_arguments, and tune for EABI.
970 (MIPS_REGS_HAVE_HOME_P): Delete.
971 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
972 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
973 Delete references to mips_regs_have_home_p.
974
975 2002-08-14 Keith Seitz <keiths@redhat.com>
976
977 * Makefile.in (install-gdbtk): Create insight plugin directory.
978 Install plugins.tcl file.
979
980 2002-08-14 Keith Seitz <keiths@redhat.com>
981
982 * configure.in: Move SUBDIRS to near top of the file so that
983 --enable options may add things to it.
984 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
985 * configure: Regenerate.
986
987 2002-08-13 Michael Snyder <msnyder@redhat.com>
988
989 * mips-tdep.c (mips_o32o64_push_arguments): New function,
990 cloned from mips_push_arguments, tuned for o32/o64 ABI.
991 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
992
993 2002-08-13 Andrew Cagney <ac131313@redhat.com>
994
995 * vax-tdep.c (vax_get_saved_register): Delete function.
996 (vax_gdbarch_init): Update.
997 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
998 (ns32k_gdbarch_init): Update.
999 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1000 (alpha_gdbarch_init): Update.
1001
1002 2002-08-13 Andrew Cagney <cagney@redhat.com>
1003
1004 * regcache.c (init_regcache_descr): Overallocate the
1005 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1006 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1007 nr_raw_registers.
1008 (set_register_cached): Add range checking assertions. Use
1009 current_regcache.
1010
1011 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1012
1013 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1014 numbers for MMX registers.
1015
1016 2002-08-13 Andrew Cagney <cagney@redhat.com>
1017
1018 * i386-tdep.c (i386_gdbarch_init): Use
1019 generic_unwind_get_saved_register.
1020
1021 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1022
1023 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1024 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1025 target vector.
1026 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1027 Delete. Add comment regarding this now-deleted target method.
1028
1029 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1030
1031 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1032 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1033 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1034 real PC and the page number (if it's within the memory bank window).
1035 (m68hc11_pseudo_register_write): Likewise when saving.
1036 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1037 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1038 (m68hc11_register_raw_size): And use 32-bit for it.
1039 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1040 16K memory bank is used by the prog; also use the virtual pc.
1041
1042 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1043
1044 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1045 (m68hc11_gdbarch_init): Install it in gdbarch.
1046 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1047 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1048 (MSYMBOL_SIZE): New for documentation.
1049 (insn_return_kind): Enum to specify how a function returns.
1050 (frame_extra_info): Cleanup and record the return mode.
1051 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1052 register in address computation.
1053 (m68hc11_get_return_insn): New to obtain the return instruction used
1054 by the function.
1055 (m68hc11_frame_init_saved_regs): Take into account the return
1056 instruction used by the function for far and interrupt functions.
1057 (m68hc11_init_extra_frame_info): Take into account page register.
1058 (m68hc11_frame_args_address): Adjust according to the return mode.
1059 (show_regs): Print page register only when it's used.
1060
1061 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1062
1063 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1064 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1065 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1066 registers.
1067 (m68hc11_register_raw_size): Likewise.
1068
1069 2002-08-13 Andrew Cagney <cagney@redhat.com>
1070
1071 * i386-tdep.c (i386_register_name): Handle mmx registers.
1072 (mmx_regnum_p): New function.
1073 (i386_mmx_names): New array.
1074 (mmx_num_regs): New variable.
1075 (i386_pseudo_register_read): New function.
1076 (i386_pseudo_register_write): New function.
1077 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1078
1079 * regcache.c (regcache_raw_read_unsigned): New function.
1080 (regcache_raw_read_signed): New function.
1081 * regcache.h (regcache_raw_read_unsigned): Declare.
1082 (regcache_raw_read_signed): Declare.
1083
1084 2002-08-13 Andrew Cagney <cagney@redhat.com>
1085
1086 * regcache.c (regcache_raw_read_as_address): Delete function.
1087 (regcache_cooked_read_signed): New function.
1088 (regcache_cooked_read_unsigned): New function.
1089 * regcache.h (regcache_cooked_read_signed): Declare.
1090 (regcache_cooked_read_unsigned): Declare.
1091 (regcache_raw_read_as_address): Delete declaration.
1092
1093 * blockframe.c (generic_read_register_dummy): Use
1094 regcache_cooked_read_unsigned.
1095 * i386-tdep.c (i386_extract_struct_value_address): Use
1096 regcache_cooked_read_unsigned.
1097
1098 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1099
1100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1101 double sizes according to ELF ABI flags.
1102 (gdbarch_tdep): Record elf_flags.
1103
1104 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1105
1106 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1107 (m6812_prolog): They can appear in 68HC12 function prologue.
1108 (m68hc11_frame_chain): Cleanup.
1109
1110 2002-08-12 Andrew Cagney <cagney@redhat.com>
1111
1112 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1113 declarations.
1114 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1115 (i386_linux_register_raw_size): Delete function.
1116 (i386_linux_init_abi): Update.
1117 * i386-tdep.c (i386_register_raw_size): Delete function.
1118 (i386_register_byte): Delete function.
1119 (i386_gdbarch_init): Update.
1120 (i386_register_size): Delete array.
1121 (i386_register_offset): Delete array.
1122
1123 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1124 (REGISTER_RAW_SIZE): Delete macro.
1125 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1126 (REGISTER_BYTE): Delete macro.
1127
1128 2002-08-11 Aidan Skinner <aidan@velvet.net>
1129
1130 * ada-lang.c (ada_lookup_partial_symbol)
1131 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1132 prototype names so that grep ^func works properly.
1133
1134 * ada-lang.c (ada_array_element_type)
1135 (ada_lookup_partial_symbol): Fix typos in parameter list.
1136
1137 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1138 Fix prototype names so that grep ^func works properly.
1139
1140 2002-08-10 Andrew Cagney <cagney@redhat.com>
1141 Elena Zannoni <ezannoni@redhat.com>
1142 Martin M. Hunt <hunt@redhat.com>
1143
1144 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1145 (build_builtin_type_vec128i): Set the vector bit.
1146 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1147 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1148 (build_builtin_type_vec64): New function.
1149 (build_builtin_type_vec64i): New function.
1150 (build_gdbtypes): Initialize builtin_type_vec64 and
1151 builtin_type_vec64i.
1152
1153 2002-08-09 Andrew Cagney <cagney@redhat.com>
1154
1155 * regcache.c (regcache_dump): Compare the register offset
1156 with REGISTER_BYTE.
1157 * arch-utils.c (generic_register_byte): New function.
1158 * arch-utils.h (generic_register_byte): Declare.
1159 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1160 * gdbarch.h, gdbarch.c: Regenerate.
1161
1162 2002-08-09 Andrew Cagney <cagney@redhat.com>
1163
1164 * regcache.c: Include "gdbcmd.h"
1165 (_initialize_regcache): Add commands "maintenance print
1166 registers", "maintenance print raw-registers" and "maintenance
1167 print cooked-registers".
1168 (enum regcache_dump_what): Define.
1169 (dump_endian_bytes): New function.
1170 (regcache_dump): New function.
1171 (regcache_print): New function.
1172 (maintenance_print_registers): New function.
1173 (maintenance_print_raw_registers): New function.
1174 (maintenance_print_cooked_registers): New function.
1175 * Makefile.in (regcache.o): Update dependencies.
1176
1177 2002-08-09 Michael Snyder <msnyder@redhat.com>
1178
1179 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1180 (mips_push_arguments): Correct some comments. Use paddr_nz
1181 for printing addresses in debug output. Replace static
1182 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1183 (mips_n32n64_push_arguments): New function, cloned from
1184 mips_push_arguments and tuned for the n32/n64 ABI.
1185 (mips_push_register): Buffer needs dynamic allocation.
1186 (mips_print_register): Ditto.
1187 (do_gp_register_row): Ditto.
1188 (mips_store_return_value): Ditto.
1189 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1190
1191 2002-08-09 Don Howard <dhoward@redhat.com>
1192
1193 * memattr.c (mem_info_command): Print special case of upper bound
1194 as max CORE_ADDR + 1.
1195
1196 2002-08-08 Michael Snyder <msnyder@redhat.com>
1197
1198 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1199 returns structs by ref if they're too big to fit in two registers.
1200
1201 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1202
1203 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1204 saved regs value.
1205 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1206 mips_find_saved_regs().
1207 (mips_pop_frame): Likewise.
1208
1209 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1210
1211 * blockframe.c (frame_saved_regs_register_unwind): Revise
1212 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1213 frames are in use.
1214
1215 2002-08-09 Grace Sainsbury <graces@redhat.com>
1216
1217 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1218 T-packets; the 'a' is not taken as a register number.
1219 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1220 (remote_stopped_data_address): New functions; add to target
1221 vector.
1222 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1223 prototypes to match other implementations of this
1224 function. replace integer argument with pointer -- the length
1225 field in the Z-packet is the length of what is pointed to or 1 if
1226 pointer is null. Add to target vector.
1227 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1228 target vector.
1229
1230 From Mark Salter:
1231 * remote.c (remote_wait): Add support to extract optional
1232 watchpoint information from T-packet. Ignore unrecognized
1233 optional info in T-packet.
1234 (remote_async_wait): Ditto.
1235
1236 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1237
1238 * cli/cli-dump.c: Change fopen modes to use binary open modes
1239 as defined in include/fopen-bin.h throughout.
1240
1241 2002-08-08 Michael Snyder <msnyder@redhat.com>
1242
1243 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1244
1245 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1246
1247 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1248 assertion failure by returning early after a warning.
1249
1250 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1251
1252 * mips-tdep.c (mips_find_saved_regs): Make static.
1253 (mips_frame_init_saved_regs): New function.
1254 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1255 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1256 (mips_find_saved_regs): Delete declaration.
1257
1258 2002-08-08 Grace Sainsbury <graces@redhat.com>
1259
1260 * remote.c (remote_wait, remote_async_wait): Change
1261 thread_num from int to ULONGEST.
1262 (unpack_varlen_hex): Change result parameter from
1263 int * to ULONGEST *.
1264
1265 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1266
1267 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1268 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1269 powerpc*-*-*.
1270 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1271
1272 2002-08-08 Andrew Cagney <cagney@redhat.com>
1273
1274 * gcore.c (override_derive_stack_segment): Delete variable.
1275 (preempt_derive_stack_segment): Delete function.
1276 (derive_stack_segment): Delete function.
1277 (default_derive_stack_segment): Renamed to derive_stack_segment.
1278 (override_derive_heap_segment): Delete variable.
1279 (preempt_derive_heap_segment): Delete function.
1280 (derive_heap_segment): Delete function.
1281 (default_derive_heap_segment): Rename to derive_heap_segment.
1282
1283 2002-08-06 Michael Snyder <msnyder@redhat.com>
1284
1285 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1286 * mips-tdep.c (mips_EABI_use_struct_convention,
1287 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1288 New functions. (mips_use_struct_convention): Delete.
1289 (mips_gdbarch_init): set use_gdbarch_convention.
1290
1291 2002-08-06 Michael Snyder <msnyder@redhat.com>
1292
1293 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1294 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1295 mips_o32_reg_struct_has_addr): New functions.
1296 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1297
1298 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1299
1300 * regcache.c (pseudo_register): Delete function.
1301 (fetch_register): Delete function.
1302 (store_register): Delete function.
1303 (regcache_raw_read, legacy_read_register_gen): Use
1304 target_fetch_registers instead of fetch_register.
1305 (legacy_write_register_gen, regcache_raw_write): Use
1306 target_store_register instead of store_register.
1307 (write_register_bytes): Ditto.
1308
1309 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1310 (STORE_PSEUDO_REGISTER): Delete.
1311 * gdbarch.h, gdbarch.c: Regenerate.
1312
1313 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1314
1315 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1316 write dump file binary.
1317
1318 2002-08-05 Michael Snyder <msnyder@redhat.com>
1319
1320 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1321 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1322 (mips_gdbarch_init): Set N32 target to be mips64.
1323
1324 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1325
1326 * frame.c (find_saved_register): Break out of loop once saved
1327 register address is found. Don't mention sparc in loop comment
1328 anymore.
1329
1330 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1331
1332 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1333 mips_default_saved_regsize to 8.
1334
1335 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1336
1337 * gcore.c: Do not include <sys/procfs.h>.
1338 * Makefile.in (gcore.o): Update dependencies.
1339
1340 2002-08-06 Andrew Cagney <cagney@redhat.com>
1341
1342 * configure.tgt: Make arc-*-* obsolete.
1343 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1344 * MAINTAINERS: Make arc-elf obsolete.
1345 * arc-tdep.c: Make file obsolete.
1346 * config/arc/arc.mt: Ditto.
1347 * config/arc/tm-arc.h: Ditto.
1348
1349 2002-08-05 Theodore A. Roth <troth@verinet.com>
1350
1351 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1352
1353 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1354
1355 * mcore-tdep.c (mcore_gdbarch_init): Use
1356 generic_unwind_get_saved_register instead of
1357 generic_get_saved_register.
1358 * v850-tdep.c (v850_gdbarch_init): Ditto.
1359 * frv-tdep.c (frv_gdbarch_init): Ditto.
1360 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1361 * s390-tdep.c (s390_gdbarch_init): Ditto.
1362 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1363 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1364 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1365
1366 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1367
1368 * objfiles.h: Add missing #include "symfile.h"
1369
1370 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1371
1372 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1373
1374 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1375 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1376 of FIELD_BITSIZE.
1377
1378 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1379
1380 * NEWS: Cleanup and nitpick.
1381
1382 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1383
1384 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1385
1386 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1387
1388 * Makefile.in (gdbtk-bp.o): Update dependencies.
1389 (gdbtk-register.o): Ditto.
1390 (gdbtk-varobj.o): Ditto.
1391
1392 2002-08-03 Andrew Cagney <cagney@redhat.com>
1393
1394 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1395 m68hc11_fetch_pseudo_register.
1396 (m68hc11_pseudo_register_write): Replace
1397 m68hc11_store_pseudo_register.
1398 (m68hc11_gdbarch_init): Update.
1399
1400 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1401
1402 * gdbarch.sh: Include "gdb_string.h".
1403 * gdbarch.c: Regenerate.
1404
1405 * regcache.c: Include "gdb_string.h".
1406 * ax-general.c: Ditto.
1407 * varobj.c: Ditto.
1408 * std-regs.c: Ditto.
1409 * fbsd-proc.c: Ditto.
1410 * thread.c: Ditto.
1411
1412 * Makefile.in (regcache.o): Update dependencies.
1413 (thread.o, gdbarch.o): Ditto.
1414 (ax-general.o, gdbarch.o): Ditto.
1415 (varobj.o, std-regs.o): Ditto.
1416 (fbsd-proc.o): Specify dependencies.
1417
1418 2002-08-02 Andrew Cagney <cagney@redhat.com>
1419
1420 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1421 regnum.
1422 (regcache_cooked_write): Ditto.
1423
1424 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1425
1426 * regcache.c (regcache_cooked_read): New function.
1427 (regcache_cooked_write): New function.
1428 (read_register_gen): Rewrite using regcache_cooked_read.
1429 (write_register_gen): Rewrite using regcache_cooked_write.
1430
1431 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1432 Declare.
1433
1434 2002-08-02 Andrew Cagney <cagney@redhat.com>
1435
1436 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1437 Replace the architecture methods register_read and register_write.
1438 * gdbarch.h, gdbarch.c: Regenerate.
1439 * regcache.c (init_regcache_descr): Update.
1440 (read_register_gen): Update.
1441 (write_register_gen): Update.
1442 (supply_register): Update comment.
1443
1444 * sh-tdep.c (sh_gdbarch_init): Update.
1445 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1446 `regcache' and `gdbarch' parameters. Make `buffer' a void
1447 pointer. Update code.
1448 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1449 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1450 void pointer. Update code.
1451 (sh64_register_write): Delete.
1452 (sh4_register_read): Delete.
1453 (sh64_register_read): Delete.
1454 (sh4_register_write): Delete.
1455 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1456 void pointer, `to' parameter a void pointer.
1457 (sh_sh64_register_convert_to_raw): Ditto.
1458
1459 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1460
1461 * mips-tdep.c (mips_register_virtual_type): Use architecture
1462 invariant return values.
1463
1464 2002-08-01 Andrew Cagney <cagney@redhat.com>
1465
1466 * linux-proc.c: Include "gdb_string.h".
1467 * Makefile.in (linux-proc.o): Update dependency list.
1468
1469 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1470
1471 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1472 comment.
1473
1474 2002-08-01 Grace Sainsbury <graces@redhat.com>
1475
1476 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1477 to_insert_watchpoint, to_remove_watchpoint,
1478 to_stopped_by_watchpoint, to_stopped_data_address,
1479 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1480 target vecctor. Define their corresponding macros so they call
1481 them.
1482
1483 * target.c: Add default and debug versions of for
1484 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1485 to_insert_watchpoint, to_remove_watchpoint,
1486 to_stopped_by_watchpoint, to_stopped_data_address,
1487 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1488
1489 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1490
1491 * mips-tdep.c (mips_register_virtual_type): New function.
1492 (mips_gdbarch_init): Register mips_register_virtual_type()
1493 with gdbarch machinery.
1494 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1495 this file instead of tm-bigmips.h.
1496 (MIPS_REGSIZE): Delete this macro.
1497 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1498 multiarch version in mips-tdep.c will be found.
1499
1500 2002-08-01 Andrew Cagney <cagney@redhat.com>
1501
1502 * NEWS: Menion that CHILL has been made obsolete.
1503
1504 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1505 * stabsread.c (read_range_type): Ditto.
1506 * gdbtypes.h: Ditto.
1507 * language.c (binop_type_check): Ditto.
1508 (binop_result_type): Ditto.
1509 (integral_type): Ditto.
1510 (character_type): Ditto.
1511 (string_type): Ditto.
1512 (boolean_type): Ditto.
1513 (structured_type): Ditto.
1514 (lang_bool_type): Ditto.
1515 (binop_type_check): Ditto.
1516 * language.h (_LANG_chill): Ditto.
1517 * dwarfread.c (set_cu_language): Ditto.
1518 * dwarfread.c (CHILL_PRODUCER): Ditto.
1519 * dwarfread.c (handle_producer): Ditto.
1520 * expression.h (enum exp_opcode): Ditto.
1521 * eval.c: Ditto for comments.
1522 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1523 * expprint.c (print_subexp): Ditto.
1524 (print_subexp): Ditto.
1525 * valops.c (value_cast): Ditto.
1526 (search_struct_field): Ditto.
1527 * value.h (COERCE_VARYING_ARRAY): Ditto.
1528 * symfile.c (init_filename_language_table): Ditto.
1529 (add_psymbol_with_dem_name_to_list): Ditto.
1530 * valarith.c (value_binop): Ditto.
1531 (value_neg): Ditto.
1532 * valops.c (value_slice): Ditto.
1533 * symtab.h (union language_specific): Ditto.
1534 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1535 (SYMBOL_DEMANGLED_NAME): Ditto.
1536 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1537 * defs.h (enum language): Ditto.
1538 * symtab.c (got_symtab): Ditto.
1539 * utils.c (fprintf_symbol_filtered): Ditto.
1540
1541 * ch-typeprint.c: Make file obsolete.
1542 * ch-valprint.c: Make file obsolete.
1543 * ch-lang.h: Make file obsolete.
1544 * ch-exp.c: Make file obsolete.
1545 * ch-lang.c: Make file obsolete.
1546
1547 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1548 CHILL_LIB.
1549 (TARGET_FLAGS_TO_PASS): Ditto.
1550 (CHILLFLAGS): Obsolete.
1551 (CHILL): Obsolete.
1552 (CHILL_FOR_TARGET): Obsolete.
1553 (CHILL_LIB): Obsolete.
1554 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1555 ch-valprint.c.
1556 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1557 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1558 ch-lang.o.
1559 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1560 targets.
1561
1562 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1563
1564 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1565 This does not change anything at the moment, but will be helpful
1566 later when full Ada support is integrated.
1567
1568 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1569
1570 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1571 help message.
1572
1573 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1574
1575 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1576 and save it in a local variable. Use variable in later test.
1577
1578 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1579
1580 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1581 test. (Thanks to Daniel Jacobowitz.)
1582
1583 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1584
1585 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1586 (mips_abi_strings): Add "n64".
1587 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1588
1589 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1590
1591 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1592 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1593
1594 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1595
1596 * utils.c (host_pointer_to_address, address_to_host_pointer):
1597 Use gdb_assert() instead of explicit call to internal_error().
1598
1599 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1600
1601 * Makefile.in (rs6000-nat.o): Update dependencies.
1602
1603 From Nicholas Duffek:
1604 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1605 (aix-thread.o): New rule.
1606 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1607 * config/powerpc/aix432.mh: New file.
1608
1609 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1612 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1613 (fetch_core_registers, ppc_linux_supply_gregset)
1614 (ppc_linux_supply_fpregset): New functions.
1615 (ppc_linux_regset_core_fns): New.
1616 (_initialize_ppc_linux_tdep): Call add_core_fns.
1617 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1618 and ppc_linux_supply_gregset.
1619 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1620 (supply_fpregset): Call ppc_linux_supply_fpregset.
1621 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1622 corelow.o.
1623 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1624
1625 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1626
1627 * symtab.c (lookup_symbol): Demangle before lowercasing.
1628
1629 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1630
1631 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1632 declaration.
1633 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1634 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1635 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1636 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1637 "gdb_string.h".
1638 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1639 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1640 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1641 (avr-tdep.o, mon960-rom.o): Ditto.
1642 (aout_stabs_gnu_h): Define.
1643 (symtab_h): Remove $(gdb_obstack_h).
1644
1645 2002-07-30 Jim Blandy <jimb@redhat.com>
1646
1647 Patch from David Carlton <carlton@math.stanford.edu>:
1648 * gdbinit.in: Move the `dir' commands that add GDB's own source
1649 directory to the search path to the end, so that the `gdb' source
1650 directory will be searched first.
1651
1652 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1653
1654 * gdb_obstack.h: New file.
1655 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1656 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1657 * objfiles.h: Include "gdb_obstack.h".
1658 * Makefile.in (gdb_obstack_h): Define.
1659 (symtab_h): Add $(gdb_obstack_h).
1660 (objfiles_h): Add $(gdb_obstack_h).
1661
1662 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1663 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1664 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1665 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1666 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1667 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1668 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1669 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1670
1671 * Makefile.in (bcache.o): Update dependencies.
1672 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1673 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1674 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1675 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1676 (stabsread.o, symfile.o, symmisc.o): Ditto.
1677 (symtab.o, typeprint.o, macroexp.o): Ditto.
1678 (macrotab.o, mdebugread.o): Ditto.
1679 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1680 (coff_ecoff_h, aout_aout64_h): Define.
1681 (aout_stabs_gnu_h, libaout_h): Define.
1682
1683 2002-07-29 Andrew Cagney <cagney@redhat.com>
1684
1685 * regcache.c (struct regcache_descr): Rename nr_registers to
1686 nr_cooked_registers. Revise comments describing the structure
1687 member fields.
1688 (init_regcache_descr): Update.
1689 (init_legacy_regcache_descr): Update.
1690 (read_register_gen, write_register_gen): When a cooked register in
1691 the raw register range, directly access the value from the raw
1692 register cache.
1693
1694 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1695
1696 * z8k-tdep.c: Do not include "obstack.h".
1697 * h8300-tdep.c, h8500-tdep.c: Ditto.
1698 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1699 * valprint.c, v850-tdep.c: Ditto.
1700 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1701 * mn10200-tdep.c: Ditto.
1702
1703 * Makefile.in (z8k-tdep.o): Update dependencies.
1704 (m68hc11-tdep.o, valprint.o): Ditto.
1705 (v850-tdep.o, d10v-tdep.o): Ditto.
1706 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1707 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1708 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1709 (sh_opc_h, gdb_sim_sh_h): Define.
1710 (elf_sh_h, elf_bfd_h): Define.
1711 (opcode_m68hc11_h): Define.
1712 (OPCODES_SRC, OPCODES_DIR): define.
1713 (OPCODES): Use $(OPCODES_DIR).
1714 (gdb_sim_d10v_h): Rename sim_d10v_h.
1715 (gdb_sim_arm_h): Rename sim_arm_h.
1716
1717 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1718
1719 * utils.c (host_pointer_to_address, address_to_host_pointer):
1720 Change internal_error() message to indicate function responsible
1721 for the error.
1722
1723 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1724
1725 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1726 calls to local_hex_string_custom().
1727
1728 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1729
1730 * irix5-nat.c: Move IRIX shared library support from here...
1731 * solib-irix.c: ...to here. Revised substantially to work with
1732 generic solib framework.
1733
1734 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1735 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1736 * mips-irix-tdep.c: New file.
1737
1738 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1739 (mips-irix-tdep.o, solib-irix.o): New rules.
1740 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1741 solib-irix.o.
1742 * config/mips/irix6.mt (TDEPFILES): Likewise.
1743 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1744
1745 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1746
1747 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1748 disabled (via ``#if 0'') includes.
1749
1750 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1751
1752 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1753 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1754 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1755 Add support for the fpscr register.
1756 * rs6000-nat.c (regmap, fetch_inferior_registers)
1757 (store_inferior_registers, fetch_core_registers): Likewise.
1758
1759 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1760
1761 * rs6000-nat.c (language.h): Include.
1762 (special_regs): Delete this array.
1763 (regmap): New function.
1764 (fetch_register, store_register): Use regmap() to map gdb
1765 register numbers to ptrace register numbers. Also, use
1766 outputs from regmap() to make decisions regarding type of
1767 ptrace() call to make. In particular, don't compare against
1768 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1769 (fetch_inferior_registers, store_inferior_registers): Where
1770 possible, obtain register numbers from tdep struct. Don't
1771 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1772 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1773 (LAST_UISA_SP_REGNUM): Delete.
1774
1775 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1776
1777 * rs6000-nat.c (ppc-tdep.h): Include.
1778 (fetch_registers, store_register, fetch_core_registers): Don't
1779 access registers[] directly. Instead, use supply_register() or
1780 regcache_collect() as appropriate.
1781 (find_toc_address): Format hex address with local_hex_string().
1782
1783 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1784
1785 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1786 bfd/elf32-frv.c.
1787
1788 2002-07-24 Tom Tromey <tromey@redhat.com>
1789
1790 * jv-exp.y: Marked all strings with _().
1791 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1792 internal_error.
1793 (MethodInvocation, CastExpression, parse_number, yyerror,
1794 java_type_from_name, push_expression_name, yylex): Typo fixes.
1795
1796 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1797
1798 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1799 (tee_file_flush, tee_file_write, tee_file_fputs)
1800 (tee_file_isatty): New.
1801 * ui-file.h (tee_file_new): Add prototype.
1802
1803 2002-07-24 Aidan Skinner <aidan@velvet.net>
1804
1805 * ada-lang.c: Change k&r style function definitions to prototyped
1806 form.
1807 * ada-typeprint.c: Change k&r style function definitions to prototyped
1808 form.
1809 * ada-valprint.c: Change k&r style function definitions to prototyped
1810 form.
1811
1812 2002-07-24 Andrew Cagney <cagney@redhat.com>
1813
1814 * README: Remove reference to remote-bug.
1815 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1816 remote-bug.c.
1817 (m88k-nat.o): Delete rule.
1818 (m88k-tdep.o): Delete rule.
1819 (remote-bug.o): Delete rule.
1820 * MAINTAINERS: Mark as obsolete.
1821 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1822 * m88k-tdep.c: Make file obsolete.
1823 * config/m88k/m88k.mh: Ditto.
1824 * config/m88k/delta88v4.mh: Ditto.
1825 * config/m88k/delta88v4.mt: Ditto.
1826 * config/m88k/delta88.mt: Ditto.
1827 * config/m88k/delta88.mh: Ditto.
1828 * remote-bug.c: Ditto.
1829 * config/m88k/tm-delta88.h: Ditto.
1830 * config/m88k/nm-delta88v4.h: Ditto.
1831 * config/m88k/xm-delta88.h: Ditto.
1832 * config/m88k/xm-dgux.h: Ditto.
1833 * config/m88k/tm-m88k.h: Ditto.
1834 * config/m88k/nm-m88k.h: Ditto.
1835 * config/m88k/tm-delta88v4.h: Ditto.
1836 * m88k-nat.c: Ditto.
1837 * cxux-nat.c: Ditto.
1838 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1839 and m88*-*-* obsolete.
1840 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1841 m88*-*-* obsolete.
1842
1843 2002-07-24 Andrew Cagney <cagney@redhat.com>
1844
1845 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1846 constant. Same for local pointer variables.
1847 (extract_signed_integer): Ditto.
1848 * defs.h (extract_unsigned_integer): Update.
1849 (extract_signed_integer): Update.
1850
1851 2002-07-24 Andrew Cagney <cagney@redhat.com>
1852
1853 * regcache.c (regcache_raw_write): Change buf parameter to a
1854 constant void pointer.
1855 (regcache_raw_read): Change buf parameter to a void pointer.
1856 (legacy_write_register_gen): Change myaddr parameter a constant
1857 void pointer.
1858 (supply_register): Change val parameter to a const void pointer.
1859 * regcache.h (regcache_raw_write): Update declaration.
1860 (regcache_raw_read): Update declaration.
1861 (supply_register): Update declaration.
1862
1863 2002-07-24 Tom Tromey <tromey@redhat.com>
1864
1865 * defs.h (gdb_readline_wrapper): Declare.
1866 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1867 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1868 * top.c (gdb_readline_wrapper): New function.
1869 (command_line_input): Use it.
1870
1871 2002-07-24 Andrew Cagney <cagney@redhat.com>
1872
1873 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1874 regcache_read and regcache_write.
1875 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1876 * regcache.c: Update.
1877 * sh-tdep.c (sh64_push_arguments): Update comment.
1878 (sh_pseudo_register_read): Update.
1879 (sh_pseudo_register_write): Update.
1880 (sh4_register_read): Update.
1881 (sh4_register_write): Update.
1882 (sh64_pseudo_register_read): Update.
1883 (sh64_pseudo_register_write): Update.
1884 (sh64_register_read): Update.
1885 (sh64_register_write): Update.
1886 * i386-tdep.c (i386_extract_return_value): Update.
1887 (i386_extract_struct_value_address): Update.
1888 (i386_extract_return_value): Update.
1889 * blockframe.c (generic_read_register_dummy): Update.
1890 (generic_call_dummy_register_unwind): Update
1891 * infrun.c (write_inferior_status_register): Update.
1892
1893 2002-07-23 Jim Blandy <jimb@redhat.com>
1894
1895 * parser-defs.h (expression_context_pc): Make this extern.
1896 (Thanks to Michael Snyder.)
1897
1898 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1899
1900 GDB 5.2.1 released from 5.2 branch.
1901 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1902 * README: Update to mention 5.2.1.
1903
1904 2002-07-23 Mark Salter <msalter@redhat.com>
1905
1906 * remote.c (remote_read_bytes): Fix check for error.
1907
1908 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1909
1910 * aix-thread.c (language.h): Include.
1911 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1912 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1913 Print newlines at end of debug messages.
1914 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1915 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1916
1917 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1918
1919 * aix-thread.c (ppc-tdep.h): Include.
1920 (special_register_p): New function.
1921 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1922 (store_regs_user_thread): Use register number information from
1923 gdbarch_tdep struct instead of hardcoded offsets relative to
1924 FIRST_UISA_SP_REGNUM.
1925 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1926 special_register_p() instead of using FPLAST_REGNUM and
1927 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1928 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1929 will be MQ's register number.
1930
1931 2002-07-22 Michael Snyder <msnyder@redhat.com>
1932
1933 * aix-thread.c (ops): Rename to aix_thread_ops.
1934 (base_ops): Rename to base_target.
1935 (ops_attach): Rename to aix_thread_attach.
1936 (ops_detach): Rename to aix_thread_detach.
1937 (ops_resume): Rename to aix_thread_detach.
1938 (ops_wait): Rename to aix_thread_wait.
1939 (ops_kill): Rename to aix_thread_kill.
1940 (init_ops): Rename to init_aix_thread_ops.
1941 (ops_fetch_register): Rename to aix_thread_fetch_register.
1942 (ops_store_register): Rename to aix_thread_store_register.
1943 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1944 (ops_thread_alive): Rename to aix_thread_thread_alive.
1945 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1946 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1947 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1948 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1949 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1950 (store_regs_lib): Rename to store_regs_user_thread.
1951 (store_regs_kern): Rename to store_regs_kernel_thread.
1952
1953 2002-07-22 Michael Snyder <msnyder@redhat.com>
1954
1955 * aix-thread.c (ops_prepare_to_store): Eliminate.
1956 (init_ops): Don't initialize ops.prepare_to_store.
1957 (store_regs_kern): Pre-fetch register buffers from child,
1958 because some registers may not be in the cache. Copy
1959 regs from register cache only if they are cached.
1960 (store_regs_lib): Copy regs from register cache only
1961 if they are cached.
1962 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1963 fill_gprs64): Ditto.
1964
1965 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1966
1967 * aix-thread.c (gdb_assert.h): Include.
1968 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1969 register sizes (from register cache) match size of buffer holding
1970 register data.
1971 (fill_sprs32): Change parameter types to match those in the ptrace()
1972 buffer.
1973 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1974 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1975
1976 2002-07-22 Michael Snyder <msnyder@redhat.com>
1977
1978 * aix-thread.c (supply_sprs64): Cosmetic change.
1979 (supply_sprs32): Cosmetic change.
1980 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1981 (fill_sprs64): Use regcache_collect instead of read_register.
1982 (store_regs_lib): Use regcache_collect instead of
1983 read_register. Use fill_sprs32 instead of fill_sprs64,
1984 if debugging a 32-bit architecture.
1985 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1986 out of the register cache, instead of passing a pointer into
1987 the register cache directly to ptrace. Use regcache_collect
1988 insteaad of read_register.
1989 (ops_prepare_to_store): Use target_read_registers instead
1990 of read_register_bytes.
1991
1992 2002-07-20 Aidan Skinner <aidan@velvet.net>
1993
1994 * MAINTAINERS: Add self under write after approval.
1995
1996 2002-07-20 Aidan Skinner <aidan@velvet.net>
1997
1998 * ada-tasks.c: Change k&r style function definitions to prototyped
1999 form.
2000
2001 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2002
2003 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2004 * x86-64-tdep.c: Include "objfiles.h".
2005 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2006 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2007
2008 2002-07-17 Michal Ludvig <michal@suse.cz>
2009
2010 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2011 (update_context): Initialise cfa variable.
2012
2013 2002-07-17 Michael Snyder <msnyder@redhat.com>
2014
2015 * aix-thread.c: Shorten some long lines.
2016 Bring comments into line with code spec.
2017
2018 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2019
2020 * infrun.c: Re-indent using gdb_indent.sh.
2021
2022 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2023
2024 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2025 Leave the indentation temporarily untouched, to minimize the diffs.
2026
2027 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2028
2029 * stabsread.c: Make os9k sections of the code obsolete,
2030 for real this time.
2031 * stabsread.h: Make os9k sections of the code obsolete.
2032
2033 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2034
2035 * linux-low.c (regsets_store_inferior_registers): Add free()
2036 at the end of a loop to prevent memory leak.
2037 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2038 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2039 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2040 line a comment.
2041 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2042
2043 2002-07-17 Jim Blandy <jimb@redhat.com>
2044
2045 * macrocmd.c (info_macro_command): Remove newline from error
2046 message.
2047
2048 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2049
2050 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2051 (sh_gdbarch_init): Use it for sh-dsp.
2052
2053 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2054
2055 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2056 64-bit DWARF2 format.
2057
2058 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2059
2060 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2061 <sys/proc.h> when not available.
2062
2063 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2064
2065 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2066 * stabsread.c: Make os9k sections of the code obsolete.
2067 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2068 * config/i386/i386os9k.mt: Make file obsolete.
2069 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2070 (COMMON_OBS): Remove os9kread.o
2071 (SFILES): Remove os9kread.c.
2072 (os9kread.o, remote-os9k.o): Make target obsolete.
2073 * remote-os9k.c: Make file obsolete.
2074 * os9kread.c: Make file obsolete.
2075 * Makefile.in
2076
2077 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2078
2079 * NEWS: Mention that the FR30 has been made obsolete.
2080 * fr30-tdep.c: Make file obsolete.
2081 * config/fr30/tm-fr30.h: Ditto.
2082 * config/fr30/fr30.mt: Ditto.
2083 * configure.tgt: Make fr30-*-elf obsolete.
2084 * MAINTAINERS: Make fr30-elf obsolete.
2085
2086 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2087
2088 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2089 found is not inside a section.
2090
2091 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2092
2093 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2094 strerror().
2095 (pdc_realloc): Use xrealloc() instead of realloc().
2096
2097 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2098
2099 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2100 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2101 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2102 macros.
2103
2104 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2105
2106 * aix-thread.c (ptrace_check): Eliminate goto.
2107 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2108 problem.
2109
2110 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2111
2112 * aix-thread.c (gdbcmd.h): Include.
2113 (DEBUG, DBG, DBG2, dbg): Eliminate.
2114 (debug_aix_thread): New static global.
2115 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2116 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2117 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2118 invocations to DBG and DBG2 macros to test against
2119 ``debug_aix_thread'' and call fprintf_unfiltered().
2120 (_initialize_aix_thread): Add new command "set debug aix-thread".
2121
2122 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2123
2124 From Gerhard Tonn <TON@de.ibm.com>:
2125 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2126 instead of supply_register.
2127
2128 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2129
2130 * dwarf2cfi.c: Include "gdb_assert.h".
2131 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2132 non-NULL.
2133 (update_context): Do not use __func__. Add missing ``break''.
2134 (update_context): Do not use __func__.
2135
2136 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2137
2138 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2139 and its setting. Set gdbarch instruction printing functions
2140 directly. For non-rs6000 case use new function
2141 gdb_print_insn_powerpc.
2142 (gdb_print_insn_powerpc): New function.
2143
2144 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2145
2146 * NEWS: Mention that the d30v has been marked obsolete.
2147 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2148 * configure.tgt: Mark d30v-*-* as obsolete.
2149 * d30v-tdep.c: Mark file as obsolete.
2150 * config/d30v/d30v.mt: Ditto.
2151 * config/d30v/tm-d30v.h: Ditto.
2152
2153 2002-07-13 Aidan Skinner <aidan@velvet.net>
2154
2155 * ada-tasks.c (add_task_entry): replace calls to
2156 malloc() with xmalloc
2157 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2158
2159 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2160 ada_finish_decode_line_1, all_sals_for_line
2161 ada_breakpoint_rewrite): replace calls to free() with xfree()
2162
2163 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2164
2165 From Nicholas Duffek (with minor changes by Martin Hunt,
2166 Louis Hamilton, and Kevin Buettner):
2167 * aix-thread.c: New file.
2168
2169 2002-07-12 Petr Sorfa <petrs@caldera.com>
2170
2171 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2172 complaint for invalid attribute class or form.
2173 (read_func_scope): DW_AT_frame_base
2174 better handling of DW_AT_block*.
2175 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2176 better handling of DW_AT_block*.
2177 (read_common_block): DW_AT_location
2178 better handling of DW_AT_block*.
2179 (read_partial_die): DW_AT_location better handling
2180 of DW_AT_block*.
2181 (new_symbol): DW_AT_external better handling of
2182 DW_AT_block*. Proper initialization of variable
2183 "addr".
2184 (attr_form_is_block): New function that returns true
2185 if the attribute's form is of DW_FORM_block*.
2186
2187 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2188
2189 * valops.c (find_method_list): Remove comment about
2190 removed STATIC_MEMFUNCP argument.
2191 (value_find_oload_method_list): Likewise.
2192
2193 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2194
2195 From Nicholas Duffek:
2196 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2197 target_new_objfile_hook.
2198
2199 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2200
2201 From Nicholas Duffek:
2202 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2203 csect.
2204
2205 2002-07-12 Andrew Cagney <cagney@redhat.com>
2206
2207 * MAINTAINERS: Mention --enable-sim-build-warnings.
2208 (m68hc11-elf): Disable sim build warnings.
2209 (m32r-elf): Mark as broken obsolete candidate.
2210 (x86_64-linux-gnu): Mark as buildable with -Werror.
2211 (arm-elf): Change -w to ``,'' which enables warnings but not
2212 -Werror.
2213
2214 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2215
2216 * bcache.h: Update copyright.
2217 (struct bstring, struct bcache): Move definition to "bcache.c".
2218 Replaced by opaque declaration.
2219 (bcache_xfree): Replace free_bcache.
2220 (bcache_xmalloc, bcache_memory_used): Declare.
2221
2222 * bcache.c: Update copyright.
2223 (struct bstring, struct bcache): Moved to here from "bcache.h".
2224 Update comments.
2225 (bcache_xmalloc, bcache_memory_used): New functions.
2226 (bcache_xfree): Replace function free_bcache.
2227
2228 * Makefile.in (objfiles.o): Add $(bcache_h).
2229 (objfiles_h): Remove $(bcache_h).
2230 (symfile.o): Add $(bcache_h).
2231
2232 * symmisc.c: Update copyright.
2233 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2234 (print_objfile_statistics): Use bcache_memory_used.
2235
2236 * symfile.c: Include "bcache.h".
2237 (reread_symbols): Use bcache_xfree.
2238 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2239 (add_psymbol_to_list): Pass psymbol_cache by value.
2240 (add_psymbol_with_dem_name_to_list): Ditto.
2241
2242 * objfiles.h: Update copyright.
2243 (struct bcache): Declare opaque. Do not include "bcache.h".
2244 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2245 bcache'' pointers.
2246 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2247
2248 * objfiles.c: Include "bcache.h". Update copyright.
2249 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2250 macro_cache.
2251 (free_objfile): Use bcache_xfree.
2252
2253 2002-07-11 Grace Sainsbury <graces@redhat.com>
2254
2255 * monitor.c (monitor_fetch_register): Make name a constant.
2256 (monitor_store_register): Same.
2257
2258 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2259
2260 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2261 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2262 (finish_block) For non-function blocks, hash the symbol table. For
2263 function blocks, mark the symbol table as unhashed.
2264 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2265 (msymbol_hash_iw): Likewise.
2266 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2267 value.
2268 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2269 (lookup_minimal_symbol): Likewise for both.
2270 * symtab.h (struct block): Add `hashtable' flag. Comment the
2271 hashtable.
2272 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2273 (ALL_BLOCK_SYMBOLS): Update.
2274 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2275 (struct symbol): Add `hash_next' pointer.
2276 * symtab.c (lookup_block_symbol): Search using the hash table when
2277 possible.
2278 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2279 (search_symbols, find_addr_symbol): Likewise.
2280
2281 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2282 (read_dst_symtab): Likewise.
2283 * jv-lang.c (get_java_class_symtab): Likewise.
2284 * mdebugread.c: Include "gdb_assert.h".
2285 (shrink_block): Assert that the block being modified is not hashed.
2286 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2287 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2288 symbols.
2289 (dump_symtab): Recognize hashed blocks.
2290 * printcmd.c (print_frame_args): Assert that function blocks do not
2291 have hashed symbol tables.
2292 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2293 (fill_in_ada_prototype, debug_print_block): Likewise.
2294 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2295
2296 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2297
2298 * stack.c (print_frame): Use result of frame_address_in_block()
2299 instead of fi->pc when evaluating symbols.
2300 (backtrace_command_1): Ditto.
2301
2302 2002-07-11 Andrew Cagney <cagney@redhat.com>
2303
2304 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2305 Make static.
2306
2307 * arm-tdep.c (arm_register_name): Make return type constant.
2308
2309 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2310
2311 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2312 prototype.
2313 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2314 * s390-tdep.c (s390_fp_regnum): Ditto.
2315 (s390_read_fp): Ditto.
2316 (s390_pop_frame): Ditto.
2317 (_initialize_s390_tdep): Ditto.
2318 * remote.c (get_remote_state): Ditto.
2319 * procfs.c (mappingflags): Ditto.
2320 * memattr.c (_initialize_mem): Ditto.
2321 * mcore-tdep.c (mcore_pop_frame): Ditto.
2322 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2323 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2324 * language.c (set_case_str): Ditto.
2325 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2326 * frv-tdep.c (new_variant): Ditto.
2327 (frv_stopped_data_address): Ditto.
2328 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2329 (context_alloc): Ditto.
2330 (frame_state_alloc): Ditto.
2331 (unwind_tmp_obstack_init): Ditto.
2332 (unwind_tmp_obstack_free): Ditto.
2333 (cfi_read_fp): Ditto.
2334 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2335 (cris_pop_frame): Ditto.
2336 * c-lang.c (scanning_macro_expansion): Ditto.
2337 (finished_macro_expansion): Ditto.
2338 (c_preprocess_and_parse): Ditto.
2339 * gdbarch.sh: Ditto.
2340 * gdbarch.h, gdbarch.c: Regenerate.
2341 * config/mn10200/tm-mn10200.h: Adjust indentation.
2342 * target.c: Adjust indentation.
2343 * symtab.h: Adjust indentation.
2344 * stabsread.h: Adjust indentation.
2345 * remote-es.c: Adjust indentation.
2346 * os9kread.c: Adjust indentation.
2347
2348 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2349
2350 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2351 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2352
2353 2002-07-10 Grace Sainsbury <graces@redhat.com>
2354
2355 * NEWS: Mention m68k, mcore multi-arching.
2356 * MAINTAINERS: Change status of m68k, mcore to reflect
2357 multi-arching.
2358
2359 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2360
2361 * valops.c (find_overload_match): Free oload_syms.
2362
2363 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2364
2365 Define HAVE_SYS_PROC_H if sys/proc.h exists
2366 * configure.in: Add check for sys/proc.h
2367 * config.in: Regenerate.
2368 * configure: Regenerate.
2369
2370 2002-07-09 Grace Sainsbury <graces@redhat.com>
2371
2372 * config/m68k/tm-m68k.h: Remove macros wrapped in
2373 #if !GDB_MULTI_ARCH.
2374
2375 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2376
2377 * config.in, configure: Regenerate.
2378
2379 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2380
2381 * dwarf2cfi.c: Include "gcore.h".
2382 (execute_stack_op): Fix implementation of the
2383 DW_OP_deref and DW_OP_deref_size operators by letting do their
2384 lookup in the target.
2385
2386 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2387
2388 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2389 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2390 tdep->sc_sp_offset.
2391
2392 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2393
2394 Fix PR gdb/595, gdb/602
2395 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2396 Don't call value_cast, just read the vtable pointer; update comments
2397 to match.
2398
2399 2002-07-05 Grace Sainsbury <graces@redhat.com>
2400
2401 * config/mcore/tm-mcore.h: Remove file.
2402 * config/mcore/mcore.mt: Remove definition of TM_FILE
2403 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2404
2405 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2406
2407 * i386bsd-tdep.c: Include "gdb_string.h".
2408
2409 2002-07-04 Grace Sainsbury <graces@redhat.com>
2410
2411 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2412 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2413 mcore-tdep.
2414 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2415 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2416 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2417 (RETVAL_REGNUM): Move macros from tm-mcore.h
2418 (mcore_reg_struct_has_addr): New function.
2419 (mcore_gdbarch_init): Added initializations for the macros removed
2420 from tm-mcore.h.
2421
2422 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2423
2424 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2425 traditonal string branding within the ELF header.
2426
2427 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2428
2429 * symtab.c (remove_params): New function.
2430 (make_symbol_overload_list): Use it instead of cplus_demangle.
2431 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2432
2433 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2434
2435 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2436
2437 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2438 New variables.
2439 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2440 and tdep->sigtramp_end.
2441 * i386obsd-nat.c: New file.
2442 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2443
2444 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2445 Don't call get_current_frame().
2446
2447 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2448
2449 * i386-nat.c (child_post_startup_inferior): New function
2450 calling i386_cleanup_dregs if
2451 I386_USE_GENERIC_WATCHPOINTS is defined.
2452 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2453 conditional to acknowledge that i386-nat.c has its
2454 own child_post_startup_inferior function.
2455
2456 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2457
2458 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2459 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2460 instead of MAX_REGISTER_RAW_SIZE.
2461 (i386_extract_return_value, i386_extract_struct_value_address):
2462 Convert to use regcache.
2463 (i386_gdbarch_init): Set max_register_raw_size and
2464 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2465 Set extract_return_value and extract_struct_value_address instead
2466 of their deprecated variants.
2467
2468 Convert i386 target to generic dummy frames.
2469 * i386-tdep.c: Include "symfile.h".
2470 (i386_frameless_signal_p): Consider a function to be frameless if
2471 the pc points at the first instruction of the function.
2472 (i386_frame_chain): Handle (generic) call dummies.
2473 (i386_frame_saved_pc): Likewise.
2474 (i386_frame_init_saved_regs): Remove code dealing with call
2475 dummies on the stack.
2476 (i386_push_dummy_frame): Removed.
2477 (i386_call_dummy_words): Removed.
2478 (i386_fix_call_dummy): Removed.
2479 (i386_push_return_address): New function.
2480 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2481 parameter, and don't call get_current_frame.
2482 (i386_pop_frame): New function.
2483 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2484 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2485 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2486 call_dummy_length to 0, set call_dummy_words to NULL, set
2487 sizeof_call_dummy_words to 0, set fix_call_dummy to
2488 generic_fix_call_dummy, set pc_in_call_dummy to
2489 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2490 generic_push_dummy_frame, set push_return_address to
2491 i386_push_return_address and set frame_chain_valid to
2492 generic_file_frame_chain_valid.
2493
2494 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2495
2496 * gdbarch.sh (struct regcache): Add opaque declaration.
2497 (EXTRACT_RETURN_VALUE): New architecture method.
2498 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2499 * gdbarch.h, gdbarch.c: Regenerate.
2500 * arch-utils.c (legacy_extract_return_value): New function.
2501 * arch-utils.h (legacy_extract_return_value): Declare.
2502 * values.c (value_being_returned): Re-enable code handling
2503 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2504 deprecated_grub_regcache_for_registers call to block handling
2505 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2506 (EXTRACT_RETURN_VALUE): Do not define.
2507
2508 2002-07-03 Grace Sainsbury <graces@redhat.com>
2509
2510 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2511 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2512 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2513 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2514 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2515 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2516 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2517 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2518 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2519 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2520 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2521 argument so the function fits the prototype in the architecture
2522 vector.
2523 (mcore_pop_frame): Remove argument so the function fits the
2524 prototype. Use get_current_frame instead of the argument.
2525 (mcore_push_arguments): Change type of struct_return so the
2526 function can be used in the architecture vector.
2527 (mcore_store_struct_return): Add.
2528 (mcore_frame_init_saved_regs): Add.
2529 (mcore_gdbarch_init): Add function calls to replace the macros
2530 removed from tm-mcore.h
2531
2532 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2533
2534 * infcmd.c (print_return_value): Remove compatibility code calling
2535 deprecated_grub_regcache_for_registers.
2536
2537 * values.c: Include "regcache.h".
2538 (value_being_returned): Update. Use
2539 deprecated_grub_regcache_for_registers to extract the register
2540 buffer address.
2541 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2542 ``struct regcache''.
2543 * Makefile.in (values.o): Add dependency on $(regcache_h).
2544
2545 * inferior.h (run_stack_dummy): Change type of second parameter to
2546 a ``struct regcache''.
2547 * valops.c (hand_function_call): Change type of retbuf to ``struct
2548 regcache''. Allocate using regcache_xmalloc, clean using
2549 make_cleanup_regcache_xfree.
2550 * infcmd.c (run_stack_dummy): Update. Use
2551 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2552
2553 * regcache.c (do_regcache_xfree): New function.
2554 (make_cleanup_regcache_xfree): New function.
2555 * regcache.h (make_cleanup_regcache_xfree): Declare.
2556
2557 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2558
2559 * event-top.c (command_line_handler): Don't read past
2560 beginning of buffer.
2561
2562 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2563
2564 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2565 struct frame_id.
2566 (varobj_create): Store frame_id for root.
2567 (varobj_gen_name): Use xasprintf.
2568 (varobj_update): Save and restore frame using get_frame_id() and
2569 frame_find_by_id().
2570 (create_child): Use xasprintf.
2571 (new_root_variable): Initialize frame_id.
2572 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2573 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2574 to prevent memory leak.
2575
2576 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2577
2578 * valops.c (hand_function_call): Move declaration of retbuf to
2579 start of function, allocate using malloc, add a cleanup but before
2580 the inf_status cleanup, cleanup the buffer. Rename local variable
2581 old_chain to inf_status_cleanup.
2582
2583 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2584
2585 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2586
2587 * cli/cli-decode.c (cmd_func_p): New function.
2588 (cmd_func): New function.
2589
2590 * command.h: Add cmd_func() and cmd_func_p().
2591
2592 2002-07-03 Grace Sainsbury <graces@redhat.com>
2593
2594 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2595 (REGISTER_SIZE): Remove.
2596 (MAX_REGISTER_RAW_SIZE): Remove.
2597 (REGISTER_VIRTUAL_TYPE): Remove.
2598 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2599 (REGISTER_NAME): Remove.
2600 (USE_GENERIC_DUMMY_FRAMES): Remove.
2601 (CALL_DUMMY): Remove.
2602 (CALL_DUMMY_START_OFFSET): Remove.
2603 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2604 (CALL_DUMMY_LOCATION): Remove.
2605 (FIX_CALL_DUMMY): Remove.
2606 (CALL_DUMMY_ADDRESS): Remove.
2607 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2608 (SAVE_DUMMY_FRAME_TOS): Remove.
2609 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2610 (mcore_register_virtual_type): New function.
2611 (mcore_register_byte): New function.
2612 (mcore_register_size): New function.
2613 (mcore_register_name): New function.
2614 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2615 macros removed from tm-mcore.h.
2616 (mcore_dump_tdep): Add.
2617 (_initialize_mcore_tdep): Add gdbarch_register call.
2618
2619 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2620
2621 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2622 frameless_look_for_prologue, such that we actually call this
2623 function.
2624
2625 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2626
2627 * frame.h (frame_address_in_block): New function.
2628
2629 * blockframe.c (frame_address_in_block): New function extracted
2630 from get_frame_block().
2631 (get_frame_block): Use frame_address_in_block().
2632 (block_innermost_frame): Use frame_address_in_block() to match
2633 the frame pc address against the block boundaries rather than
2634 the frame pc directly. This prevents a failure when a frame pc
2635 is actually a return-address pointing immediately after the end
2636 of the given block.
2637
2638 2002-07-02 Grace Sainsbury <graces@redhat.com>
2639
2640 * MAINTAINERS: Add self under write after approval.
2641
2642 2002-07-02 Grace Sainsbury <graces@redhat.com>
2643
2644 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2645 used in architecture vector. The default is
2646 m68k_local_breakpoint_from_pc.
2647 (m68k_local_breakpoint_from_pc): Add.
2648 (enum): Add register numbers from tm-m68k.h.
2649 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2650 vector.
2651 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2652 GDB_MULTI_ARCH_PARTIAL.
2653 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2654 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2655 m68k-tdep.c.
2656 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2657 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2658 to enum in m68k-tdep.c
2659
2660 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2661
2662 * solib-osf.c (open_map): Compute the list of shared libraries
2663 loaded by the inferior, rather than the list of libraries loaded
2664 by GDB itself. Otherwise, GDB ends up reading the symbols from
2665 the wrong shared libraries...
2666
2667 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2668
2669 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2670 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2671 macros.
2672 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2673 Remove functions.
2674 (FRAMELESS_SIGNAL): Remove function.
2675 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2676 i386_linux_saved_pc_after_call): Removed.
2677 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2678 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2679 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2680
2681 * i386-tdep.c (i386_frameless_signal_p): New function.
2682 (i386_frame_chain): Deal with frameless signals.
2683 (i386_sigtramp_saved_sp): New function.
2684 (i386_frame_saved_pc): Deal with frameless signals.
2685 (i386_saved_pc_after_call): Make sure the correct value is
2686 returned just after entry into a sigtramp.
2687 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2688 i386fbsd4_sc_sp_offset): New variables.
2689 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2690 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2691 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2692 similiar to what we already did for sc_pc_offset.
2693 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2694 tdep->sc_sp_offset.
2695
2696 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2697
2698 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2699
2700 * config/i386/tm-x86-64linux.h: New.
2701 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2702 definitions.
2703 * config/i386/nm-x86-64.h: Rename to ...
2704 * config/i386/nm-x86-64linux.h: ... this one.
2705 * config/i386/x86-64linux.mh: Reflect the above change.
2706
2707 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2708
2709 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2710 with sigcontext_addr. Add sc_sp_offset.
2711 (i386bsd_sigtramp_saved_pc): Remove prototype.
2712 (i386bsd_sicontext_addr): Add prototype.
2713 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2714 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2715 (i386_svr4_sigtramp_saved_pc): Removed.
2716 (i386_svr4_sigcontext_addr): New function.
2717 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2718 Initialize tdep->sigcontext_addr instead. Initialize
2719 tdep->sc_pc_offset and tdep->sc_sp_offset.
2720 (i386_gdbarch_init): Likewise.
2721 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2722 any more.
2723 (i386bsd_sigtramp_saved_pc): Remove function.
2724 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2725 Initialize tdep->sigcontext_addr instead. Initialize
2726 tdep->sc_pc_offset.
2727 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2728 of tdep->sigtramp_saved_pc.
2729 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2730 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2731 instead.
2732
2733 * i386-tdep.c (i386_frameless_function_invocation,
2734 i386_frame_num_args, i386_frame_init_saved_regs,
2735 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2736 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2737 i386_extract_return_value, i386_store_return_value,
2738 i386_extract_struct_value_address, i386_register_virtual_type,
2739 i386_register_convertible, i386_register_convert_to_virtual,
2740 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2741 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2742 static.
2743
2744 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2745
2746 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2747
2748 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2749 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2750 this macro. Include "value.h".
2751
2752 2002-06-30 Aidan Skinner <aidan@velvet.net>
2753
2754 * ada-exp.tab.c: remove as it's a generated file
2755 * ada-lex.c: remove as it's a generated file
2756
2757 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2758
2759 * config/i386/tm-i386.h (struct frame_info, struct
2760 frame_saved_regs, struct value, struct type): Remove forward
2761 declarations.
2762
2763 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2764 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2765 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2766 (FILL_FPXREGSET): Define.
2767
2768 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2769
2770 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2771 i[3456]86-*-netbsd* case.
2772 * config/i386/tm-obsd.h: Removed.
2773 * config/i386/obsd.mt: Removed.
2774 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2775 core-aout.o.
2776 (MH_CFLAGS): Add -DYYDEBUG=0.
2777
2778 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2779 i386nbsd_sc_pc_offset on OpenBSD too.
2780
2781 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2782 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2783 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2784 define.
2785 * i386bsd-tdep.c: Include "arch-utils.h".
2786 (i386bsd_aout_in_solib_call_trampoline): New function.
2787 (i386bsd_init_abi): Set in_solib_call_trampoline to
2788 i386bsd_aout_in_solib_call_trampoline.
2789 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2790 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2791
2792 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2793
2794 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2795 (struct obstack, struct bcache): Add opaque declarations.
2796 * Makefile.in (macrotab_h): Update
2797
2798 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2799
2800 * blockframe.c (generic_find_dummy_frame): Change return type to
2801 ``struct regcache''.
2802 (struct dummy_frame): Replace field ``registers'' with regcache, a
2803 struct regcache object.
2804 (generic_find_dummy_frame): Update.
2805 (generic_push_dummy_frame): Update. Use regcache_xfree,
2806 regcache_xmalloc and regcache_cpy.
2807 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2808 regcache_xfree.
2809 (deprecated_generic_find_dummy_frame): Update.
2810 (generic_read_register_dummy): Update. Use
2811 regcache_read_as_address.
2812 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2813 (generic_get_saved_register): Update. Use regcache_read.
2814
2815 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2816
2817 * Makefile.in (objfiles_h): Add $(bcache_h).
2818 * objfiles.h: Include "bcache.h".
2819
2820 * Makefile.in (symtab_h): Remove $(bcache_h).
2821 * symtab.h: Do not include "bcache.h".
2822
2823 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2824
2825 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2826 generic_func_frame_chain_valid.
2827
2828 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2829
2830 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2831 * config/i386/tm-fbsd.h: Likewise.
2832
2833 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2834
2835 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2836 generic_unwind_get_saved_register.
2837
2838 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2839
2840 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2841 * regcache.c (supply_register): Add missing argument to
2842 register_buffer call.
2843
2844 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2845
2846 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2847 Solaris /bin/grep does not not like it. From Peter Schauer.
2848
2849 2002-06-26 Tom Tromey <tromey@redhat.com>
2850
2851 * command.h (add_setshow_cmd): Declare.
2852 (add_setshow_cmd_full): Declare.
2853 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2854 returns void. Use add_setshow_cmd_full.
2855 (add_setshow_cmd_full): New function.
2856 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2857 (add_setshow_boolean_cmd): Likewise.
2858
2859 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2860
2861 * config/vax/tm-vax.h: Protect from multiple inclusion.
2862 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2863 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2864 * config/vax/tm-vaxbsd.h: ...here. New file.
2865 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2866
2867 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2868
2869 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2870 (BELIEVE_PCC_PROMOTION): Remove.
2871 (AP_REGNUM): Move to...
2872 * config/vax/nm-vax.h: ...here.
2873 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2874 (vax_breakpoint_from_pc): New function.
2875 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2876 and gdbarch_believe_pcc_promotion.
2877
2878 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2879
2880 * Makefile.in (vax_tdep_h): Define.
2881 (vax-tdep.o): Use $(vax_tdep_h).
2882 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2883 (vax_dump_tdep): New function.
2884 (_initialize_vax_tdep): Register vax_dump_tdep.
2885 * vax-tdep.h: Include osabi.h.
2886 (struct gdbarch_tdep): New.
2887
2888 2002-06-26 Andrew Cagney <cagney@redhat.com>
2889
2890 * frame.h (deprecated_generic_find_dummy_frame): Rename
2891 generic_find_dummy_frame.
2892 * blockframe.c (generic_find_dummy_frame): Make static.
2893 (deprecated_generic_find_dummy_frame): New function.
2894 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2895 generic_find_dummy_frame with deprecated_find_dummy_frame.
2896 (sh64_nofp_frame_init_saved_regs): Ditto.
2897 (sh_fp_frame_init_saved_regs): Ditto.
2898 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2899 (s390_frame_chain): Ditto.
2900 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2901
2902 2002-06-26 Grace Sainsbury <graces@redhat.com>
2903
2904 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2905 gdbarch vector are at the top.
2906 (NUM_REGS): Remove.
2907 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2908 (FRAME_ARGS_ADDRESS): Remove.
2909 (FRAME_LOCALS_ADDRESS): Remove.
2910 (FRAME_NUM_ARGS): Remove.
2911 (FRAME_ARGS_SKIP): Remove.
2912 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2913 (m68k_gdbarch_init): Add gdbarch initializations for macros
2914 undefined in tm-m68k.h
2915
2916 2002-06-26 Grace Sainsbury <graces@redhat.com>
2917
2918 * monitor.h: Add the function regname to monitor_ops
2919 structure. This way NUM_REGS does not have to be a constant.
2920 * monitor.c (monitor_fetch_register): Added support for regname
2921 function. The function is called if the array regnames is NULL.
2922 (monitor_store_register): Same.
2923 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2924 regnames array.
2925 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2926 cpu32bug_cmds.regname to point to new function.
2927 * abug-rom.c (abug_regname): Same as above.
2928 (init_abug_cmds): Same.
2929 * dbug-rom.c (dbug_regname): Same as above.
2930 (init_dbug_cmds): Same.
2931 * remote-est.c (est_regname): Same.
2932 (init_est_cmds): Same.
2933 * rom68k-rom.c (rom68k_regname): Same.
2934 (init_rom68k_cmds): Same.
2935
2936 2002-06-25 Tom Tromey <tromey@redhat.com>
2937
2938 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2939
2940 2002-06-25 Andrew Cagney <cagney@redhat.com>
2941
2942 * infrun.c (stop_registers): Change variable's type to ``struct
2943 regcache'''.
2944 (xmalloc_inferior_status): Delete function.
2945 (free_inferior_status): Delete function.
2946 (normal_stop): Use regcache_cpy.
2947 (struct inferior_status): Change type of fields ``stop_registers''
2948 and ``registers'' to ``struct regcache''.
2949 (write_inferior_status_register): Use regcache_write.
2950 (save_inferior_status): Instead of calling
2951 xmalloc_inferior_status, allocate the inf_status buffer directly.
2952 Use regcache_dup_no_passthrough and regcache_dup to save the
2953 buffers.
2954 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2955 Replace the stop_registers regcache instead of overriding it. Use
2956 regcache_xfree. Instead of calling free_inferior_status, xfree
2957 the buffer directly.
2958 (discard_inferior_status): Use regcache_xfree. Instead of calling
2959 free_inferior_status, xfree the buffer directly.
2960 (build_infrun): Use regcache_xmalloc.
2961 (_initialize_infrun): Delete redundant call to build_infrun.
2962
2963 * Makefile.in (infcmd.o): Add $(regcache_h).
2964
2965 * infcmd.c: Include "regcache.h".
2966 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2967 obtain the address of `stop_registers' register buffer.
2968 (print_return_value): Ditto.
2969
2970 * inferior.h (struct regcache): Add opaque declaration.
2971 (stop_registers): Change variable's declared type to ``struct
2972 regcache''.
2973
2974 2002-06-24 Tom Tromey <tromey@redhat.com>
2975
2976 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2977 * target.c (initialize_targets): Fixed typo in
2978 trust-readonly-sections `show' documentation.
2979
2980 * main.c: Marked all strings with _().
2981
2982 2002-06-24 Don Howard <dhoward@redhat.com>
2983
2984 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2985 that means max CORE_ADDR+1.
2986 (lookup_mem_region): Ditto.
2987 (mem_info_command): Ditto.
2988
2989 2002-06-24 Grace Sainsbury <graces@redhat.com>
2990
2991 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2992 (REGISTER_BYTES_OK): Remove.
2993 (REGISTER_BYTES): Remove.
2994 (STORE_STRUCT_RETURN): Remove.
2995 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2996 (STORE_RETURN_VALUE): Remove.
2997 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2998 (FRAME_CHAIN): Remove.
2999 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3000 (FRAME_SAVED_PC): Remove.
3001 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3002 (m68k_store_struct_return): Add.
3003 (m68k_deprecated_extract_return_value): Add.
3004 (m68k_deprecated_extract_struct_value_address): Add.
3005 (m68k_store_return_value): Add.
3006 (m68k_frame_chain): Add.
3007 (m68k_frameless_function_invocation): Add.
3008 (m68k_frame_saved_pc): Add.
3009 (m68k_gdbarch_init): added set_gdbarch calls for new
3010 functions and deleted macros.
3011
3012 2002-06-23 Tom Tromey <tromey@redhat.com>
3013
3014 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3015 (ALLDEPFILES): Likewise.
3016 (udiheaders): Removed.
3017 (udip2soc.o): Likewise.
3018 (udi2go32.o): Likewise.
3019 (udr.o): Likewise.
3020 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3021
3022 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3023
3024 * infrun.c (_initialize_infrun): Delete unnecessary call to
3025 build_infrun.
3026
3027 * regcache.h: Update comments describing the regcache_cpy family
3028 of functions.
3029 (regcache_save, regcache_restore): Delete declaration.
3030 (regcache_save_no_passthrough): Delete declaration.
3031 (regcache_restore_no_passthrough): Delete declaration.
3032 * regcache.c (regcache_save): Delete function.
3033 (regcache_save_no_passthrough): Delete function.
3034 (regcache_restore): Delete function.
3035 (regcache_restore_no_passthrough): Delete function.
3036
3037 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3038
3039 * config/m68k/tm-m68k.h: Fix typo.
3040 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3041 (m68k_frame_init_saved_regs): Declare.
3042
3043 2002-06-21 Jim Blandy <jimb@redhat.com>
3044
3045 Remove some vestiges of Harris 88k support.
3046 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3047 register numbering quirk.
3048 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3049 odd symbols occurring in Harris 88k ELF targets.
3050
3051 2002-06-21 Tom Tromey <tromey@redhat.com>
3052
3053 * gdb_locale.h: New file.
3054 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3055 (defs_h): Added gdb_locale.h.
3056 * configure, config.in: Rebuilt.
3057 * configure.in (PACKAGE): Define.
3058 * defs.h: Include gdb_locale.h.
3059 * main.c (captured_main): Call setlocale, bindtextdomain,
3060 textdomain.
3061
3062 2002-06-21 Dave Brolley <brolley@redhat.com>
3063
3064 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3065 * config/frv/frv.mt: New file.
3066 * config/frv/tm-frv.h: New file.
3067 * configure.tgt: Support frv-*-*.
3068 * Makefile.in (frv-tdep.o): New target.
3069 * frv-tdep.c: New file.
3070 * NEWS: Mention frv.
3071
3072 2002-06-21 Dave Brolley <brolley@redhat.com>
3073
3074 * MAINTAINERS: Add self to "Write After Approval" list.
3075
3076 2002-06-21 Grace Sainsbury <graces@redhat.com>
3077
3078 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3079 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3080 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3081 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3082 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3083
3084 * m68k-tdep.c: Include arch-utils.h
3085 (m68k_register_raw_size): Add.
3086 (m68k_register_virtual_size): Add.
3087 (m68k_register_virtual_type): Add.
3088 (m68k_register_name): Add.
3089 (m68k_stack_align): Add.
3090 (m68k_register_byte): Add.
3091 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3092 tm-m68k.h.
3093
3094 2002-06-21 Grace Sainsbury <graces@redhat.com>
3095
3096 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3097 m68k_find_saved_regs.
3098 (m68k_pop_frame): Removed saved_regs structure, and replaced
3099 references to it with frame->saved_regs.
3100 (m68k_gdbarch_init): Added function calls to initialize the
3101 gdbarch structure.
3102 (m68k_fix_call_dummy): Add.
3103 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3104 (CALL_DUMMY): Remove.
3105 (CALL_DUMMY_LENGTH): Remove.
3106 (CALL_DUMMY_START_OFFSET): Remove.
3107 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3108 (FIX_CALL_DUMMY): Remove.
3109 (PUSH_DUMMY_FRAME): Remove.
3110 (POP_FRAME): Remove.
3111
3112 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3113
3114 * parse.c (parse_fprintf): New function used to avoid calls to
3115 fprintf in bison parser generated debug code.
3116 * parser-defs.h: Declaration of new parse_fprintf function.
3117 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3118 Set YYDEBUG to 1 by default.
3119 Set YYFPRINTF as parse_fprintf.
3120
3121 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3122
3123 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3124 encoding anymore.
3125 (pointer_encoding, enum ptr_encoding): New.
3126 (execute_cfa_program): Take care about pointer encoding.
3127 (dwarf2_build_frame_info): Only call parse_frame_info for
3128 .debug_frame and .eh_frame.
3129 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3130 fixed augmentation handling, added relative addressing,
3131 ignore duplicate FDEs. Added comments.
3132 * dwarf2cfi.c: Reindented.
3133
3134 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3135
3136 * event-top.c (command_handler): Don't use space_at_cmd_start
3137 unless there is sbrk() on the host. Assign time and space data
3138 to union fields of the appropriate length.
3139
3140 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3141
3142 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3143 x86_64_register_name. Return type changed to 'const char *'.
3144 (x86_64_register_name2nr): Rename to x86_64_register_number.
3145 (x86_64_gdbarch_init): Update to reflect the change.
3146 * x86-64-tdep.h: Ditto.
3147 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3148 (supply_fpregset): Ditto.
3149
3150 2002-06-19 Andrew Cagney <cagney@redhat.com>
3151
3152 * regcache.h: Update copyright.
3153 (struct regcache, struct gdbarch): Add opaque declarations.
3154 (current_regcache): Declare global variable.
3155 (regcache_read, regcache_write): Add gdbarch parameter.
3156 (regcache_save, regcache_save_no_passthrough)
3157 (regcache_restore, regcache_restore_no_passthrough)
3158 (regcache_dup, regcache_dup_no_passthrough)
3159 (regcache_cpy, regcache_cpy_no_passthrough)
3160 (deprecated_grub_regcache_for_registers)
3161 (deprecated_grub_regcache_for_register_valid)
3162 (regcache_valid_p): Add function declarations.
3163
3164 * regcache.c: Update copyright.
3165 (regcache_descr_handle): New global variable.
3166 (struct regcache_descr): Define.
3167 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3168 (regcache_descr, xfree_regcache_descr): New functions.
3169 (struct regcache): Define.
3170 (regcache_xmalloc, regcache_xfree): New functions.
3171 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3172 (regcache_dup, regcache_dup_no_passthrough): New functions.
3173 (regcache_valid_p, regcache_read_as_address): New functions.
3174 (deprecated_grub_regcache_for_registers): New function.
3175 (deprecated_grub_regcache_for_register_valid): New function.
3176 (current_regcache): New global variable.
3177 (register_buffer): Add regcache parameter. Update calls.
3178 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3179 (read_register_gen, write_register_gen): Update register_buffer
3180 call. Test for legacy_p instead of gdbarch_register_read_p or
3181 gdbarch_register_write_p.
3182 (regcache_collect): Update register_buffer call.
3183 (build_regcache): Rewrite. Use deprecated grub functions.
3184 (regcache_save, regcache_save_no_passthrough): New functions.
3185 (regcache_restore, regcache_restore_no_passthrough): New
3186 functions.
3187 (_initialize_regcache): Create the regcache_data_handle. Swap
3188 current_regcache global variable.
3189
3190 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3191 parameter to regcache_read and regcache_write calls.
3192 (sh4_register_read): Ditto.
3193 (sh64_pseudo_register_read): Ditto.
3194 (sh64_register_read): Ditto.
3195 (sh_pseudo_register_write): Ditto.
3196 (sh4_register_write): Ditto.
3197 (sh64_pseudo_register_write): Ditto.
3198 (sh64_register_write): Ditto.
3199
3200 * defs.h (XCALLOC): Define.
3201
3202 2002-06-19 Grace Sainsbury <graces@redhat.com>
3203
3204 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3205 * m68k-tdep.c (m68k_gdbarch_init): Added.
3206 (m68k_dump_tdep): Added.
3207
3208 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3209
3210 * ada-lang.c (fill_in_ada_prototype): Update comment.
3211
3212 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3213
3214 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3215 MIPS_ABI_LAST.
3216 (mips_abi_string, mips_abi_strings): New.
3217 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3218 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3219 tdep->mips_abi_string. Honor mips_abi_string. Default to
3220 O32 if no ABI is found.
3221 (mips_dump_tdep): Use mips_abi_strings.
3222 (mips_abi_update): New function.
3223 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3224 ``set mips abi'' and ``show mips abi''. Check the size of
3225 mips_abi_strings.
3226
3227 2002-06-19 Andrew Cagney <cagney@redhat.com>
3228
3229 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3230 constant.
3231
3232 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3233
3234 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3235 current frame using only the first stack size adjustment. All
3236 subsequent size adjustments are not considered to be part of
3237 the "static" part of the current frame.
3238 Compute the address of the saved registers relative to the
3239 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3240 in use in this frame.
3241
3242 2002-06-18 Don Howard <dhoward@redhat.com>
3243
3244 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3245 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3246 suggesting this solution.
3247
3248 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3249
3250 * config/romp/xm-rtbsd.h: Delete file.
3251 * config/romp/rtbsd.mh: Delete file.
3252
3253 2002-06-18 Keith Seitz <keiths@redhat.com>
3254
3255 * breakpoint.c (condition_command): Post breakpoint_modify
3256 when a condition is added to an existing breakpoint.
3257 (commands_command): Likewise for commands.
3258 (set_ignore_count): Likewise for ignore counts.
3259 If no tty, do not simply return, still need to send event
3260 notification.
3261 (ignore_command): Only print a newline if the command came
3262 from a tty.
3263 Don't call breakpoints_changed, since this is now properly
3264 handled by set_ignore_count.
3265
3266 2002-06-18 Andrew Cagney <cagney@redhat.com>
3267
3268 * MAINTAINERS: Note that cris-elf target can be compiled with
3269 -Werror.
3270 * cris-tdep.c (cris_register_name): Make return type constant.
3271 (cris_breakpoint_from_pc): Ditto.
3272
3273 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3274
3275 * frame.h (struct frame_info): Change type of context to
3276 'struct context'.
3277
3278 2002-06-17 Andrew Cagney <cagney@redhat.com>
3279
3280 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3281 pointer.
3282 * gdbarch.h, gdbarch.c: Regenerate.
3283 * config/mips/tm-mips.h (mips_register_name): Update.
3284 * i386-tdep.h (i386_register_name): Update.
3285 * mips-tdep.c (mips_register_name): Update
3286 * alpha-tdep.c (alpha_register_name): Update.
3287 * arch-utils.c (legacy_register_name): Update.
3288 * arch-utils.h (legacy_register_name): Update.
3289 * avr-tdep.c (avr_register_name): Update.
3290 * ia64-tdep.c (ia64_register_name): Update.
3291 * i386-tdep.c (i386_register_name): Update.
3292 * sparc-tdep.c (sparc32_register_name): Update.
3293 (sparc64_register_name): Update.
3294 (sparclite_register_name): Update.
3295 (sparclet_register_name): Update.
3296 * sh-tdep.c (sh_generic_register_name): Update.
3297 (sh_sh_register_name): Update.
3298 (sh_sh3_register_name): Update.
3299 (sh_sh3e_register_name): Update.
3300 (sh_sh_dsp_register_name): Update.
3301 (sh_sh3_dsp_register_name): Update.
3302 (sh_sh4_register_name): Update.
3303 (sh_sh64_register_name): Update.
3304 * s390-tdep.c (s390_register_name): Update.
3305 * rs6000-tdep.c (rs6000_register_name): Update.
3306 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3307 (ns32k_register_name_32382): Update.
3308 * d10v-tdep.c (d10v_ts2_register_name): Update.
3309 (d10v_ts3_register_name): Update.
3310 * xstormy16-tdep.c (xstormy16_register_name): Update.
3311 * vax-tdep.c (vax_register_name): Update.
3312 * v850-tdep.c (v850_register_name): Update.
3313 * m68hc11-tdep.c (m68hc11_register_name): Update.
3314 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3315 (am33_register_name): Update.
3316
3317 2002-06-17 Grace Sainsbury <graces@redhat.com>
3318
3319 * m68k-tdep.c: Reindented.
3320
3321 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3322
3323 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3324 list of predefined types.
3325
3326 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3327
3328 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3329 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3330 REGISTER_CONVERT_TO_RAW): Remove defines.
3331 (i386_register_virtual_type, i386_register_convertible,
3332 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3333 Remove prototypes.
3334 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3335 macros mentioned above.
3336
3337 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3338 (i386lynx_saved_pc_after_call): Remove prototype.
3339 * i386ly-tdep.c: Include "i386-tdep.h".
3340 (i386lynx_saved_pc_after_call): Make static. Use
3341 read_memory_nobpt instead of read_memory. Use
3342 read_memory_unsigned_integer instead of read_memory_integer.
3343 (i386lynx_init_abi): New function.
3344 (i386lynx_coff_osabi_sniffer): New function.
3345 (_initialize_i386bsd_tdep): New function.
3346
3347 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3348 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3349 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3350 (i386_fix_call_dummy): Remove prototype.
3351 * i386-tdep.c (i386_call_dummy_words): New variable.
3352 (i386_gdbarch_init): Adjust for removal of the
3353 macros mentioned above.
3354
3355 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3356
3357 * command.h (add_setshow_auto_boolean_cmd): Replace
3358 add_set_auto_boolean_cmd.
3359 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3360 add_set_auto_boolean_cmd.
3361 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3362 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3363 mask-address'' command.
3364 (show_mask_address): Add cmd parameter.
3365 * remote.c (add_packet_config_cmd): Update. Change type of
3366 set_func and show_func to cmd_sfunc_ftype.
3367 (_initialize_remote): Update `set remote Z-packet'
3368 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3369 (show_remote_protocol_e_packet_cmd): Ditto.
3370 (show_remote_protocol_E_packet_cmd): Ditto.
3371 (show_remote_protocol_P_packet_cmd): Ditto.
3372 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3373 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3374 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3375 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3376 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3377 (show_remote_protocol_Z_packet_cmd): Ditto.
3378 (show_remote_protocol_binary_download_cmd): Ditto.
3379 (show_remote_cmd): Pass NULL to all of above.
3380
3381 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3382
3383 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3384 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3385 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3386 POP_FRAME): Remove defines.
3387 (i386_push_arguments, i386_store_struct_return,
3388 i386_extract_return_value, i386_store_return_value,
3389 i386_extract_struct_value_address, i386_push_dummy_frame,
3390 i386_pop_frame): Renove prototypes.
3391 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3392 macros mentioned above.
3393
3394 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3395
3396 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3397 add_set_boolean_cmd.
3398 (add_setshow_cmd): New function.
3399 * command.h (add_setshow_boolean_cmd): Replace
3400 add_set_boolean_cmd.
3401 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3402 and ``set rdiromatzero''.
3403 * maint.c (_initialize_maint_cmds): Update commented out code.
3404 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3405 * target.c (initialize_targets): Update `set
3406 trust-readonly-sections'.
3407 * remote.c (_initialize_remote): Update `set remotebreak'.
3408
3409 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3410
3411 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3412 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3413 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3414 fit into multi-arch framework.
3415 (i386_breakpoint_from_pc): New function.
3416 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3417 above.
3418
3419 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3420 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3421 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3422 (i386_frameless_function_invocation, i386_frame_num_args,
3423 i386_frame_init_saved_regs): Remove prototypes.
3424 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3425 macros mentioned above.
3426
3427 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3428
3429 * cli/cli-decode.c (set_cmd_cfunc): Update.
3430 (set_cmd_sfunc): Update.
3431 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3432 (set_cmd_sfunc, set_cmd_cfunc): Update.
3433 * cli/cli-decode.h: Update.
3434
3435 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3436
3437 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3438 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3439
3440 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3441
3442 * defs.h (auto_boolean): Declare enum.
3443 * command.h (cmd_auto_boolean): Delete enum.
3444 * mips-tdep.c (mask_address_var): Update.
3445 (mips_mask_address_p): Update.
3446 (show_mask_address): Update.
3447 * remote.c (struct packet_config): Update.
3448 (update_packet_config): Update.
3449 (show_packet_config_cmd): Update.
3450 (packet_ok): Update.
3451 (add_packet_config_cmd): Update.
3452 (_initialize_remote):
3453 * command.h: Update.
3454 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3455 (do_setshow_command): Update.
3456 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3457 * cli/cli-decode.h: Update.
3458
3459 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3460
3461 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3462 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3463 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3464 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3465 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3466 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3467
3468 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3469 list of DJGPP COFF targets.
3470
3471 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3472 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3473 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3474 (FP0_REGNUM): Remove define.
3475 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3476 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3477 (i386_register_virtual_size): Remove protoype.
3478 * i386-tdep.c (i386_register_virtual_size): Removed.
3479 (i386_extract_return_value, i386_store_return_value): Use
3480 FP0_REGNUM instead of NUM_FREGS to determine whether the
3481 floating-point registers are available.
3482 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3483 Adjust for removal of macros mentioned above.
3484
3485 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3486
3487 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3488 comments.
3489 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3490 Remove prototypes.
3491 (supply_gregset, fill_gregset): Remove use of register keyword and
3492 remove declaration for regmap. Use I386_NUM_GREGS instead of
3493 NUM_REGS and NUM_FREGS.
3494 (FPREGSET_FSAVE_OFFSET): Remove.
3495 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3496 NUM_FREGS to determine whether the floating-point registers are
3497 available.
3498
3499 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3500 gnu_store_registers): Replace usage of NUM_GREGS with
3501 I386_NUM_GREGS.
3502
3503 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3504 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3505 usage of NUM_GREGS with I386_NUM_GREGS.
3506
3507 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3508
3509 * i386bsd-nat.c: Include "i386-tdep.h".
3510 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3511 I386_NUM_GREGS.
3512
3513 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3514 and associated comment. They no longer make any sense, since we
3515 don't use this file anymore on Linux.
3516
3517 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3518 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3519 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3520 elements in these arrays.
3521 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3522 MAX_NUM_REGS.
3523
3524 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3525
3526 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3527 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3528
3529 2002-06-14 Andrew Cagney <cagney@redhat.com>
3530
3531 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3532 EXTRACT_RETURN_VALUE.
3533 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3534 EXTRACT_STRUCT_VALUE_ADDRESS.
3535 * gdbarch.h, gdbarch.c: Regenerate.
3536
3537 * values.c (value_being_returned): Handle
3538 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3539 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3540
3541 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3542 * arm-tdep.c (arm_gdbarch_init): Update.
3543 * avr-tdep.c (avr_gdbarch_init): Update.
3544 * cris-tdep.c (cris_gdbarch_init): Update.
3545 * d10v-tdep.c (d10v_gdbarch_init): Update.
3546 * ia64-tdep.c (ia64_gdbarch_init): Update.
3547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3548 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3549 * s390-tdep.c (s390_gdbarch_init): Update.
3550 * sh-tdep.c (sh_gdbarch_init): Update.
3551 * s390-tdep.c (s390_gdbarch_init): Update.
3552 * sparc-tdep.c (sparc_gdbarch_init): Update.
3553 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3554 * v850-tdep.c (v850_gdbarch_init): Update.
3555 * vax-tdep.c (vax_gdbarch_init): Update.
3556 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3558
3559 * config/arc/tm-arc.h: Update.
3560 * config/d30v/tm-d30v.h: Update.
3561 * config/fr30/tm-fr30.h: Update.
3562 * config/h8300/tm-h8300.h: Update.
3563 * config/h8500/tm-h8500.h: Update.
3564 * config/i386/tm-i386.h: Update.
3565 * config/i386/tm-ptx.h: Update.
3566 * config/i386/tm-symmetry.h: Update.
3567 * config/i960/tm-i960.h: Update.
3568 * config/m32r/tm-m32r.h: Update.
3569 * config/m68k/tm-delta68.h: Update.
3570 * config/m68k/tm-linux.h: Update.
3571 * config/m68k/tm-m68k.h: Update.
3572 * config/m88k/tm-m88k.h: Update.
3573 * config/mcore/tm-mcore.h: Update.
3574 * config/mips/tm-mips.h: Update.
3575 * config/mn10200/tm-mn10200.h: Update.
3576 * config/pa/tm-hppa.h: Update.
3577 * config/pa/tm-hppa64.h: Update.
3578 * config/sparc/tm-sp64.h: Update.
3579 * config/sparc/tm-sparc.h: Update.
3580 * config/sparc/tm-sparclet.h: Update.
3581 * config/z8k/tm-z8k.h: Update.
3582
3583 2002-06-14 Andrew Cagney <cagney@redhat.com>
3584
3585 * Makefile.in (i386_linux_tdep_h): Define.
3586 (i386_tdep_h, i387_tdep_h): Define.
3587 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3588 $(i386_tdep_h) and $(i387_tdep_h).
3589 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3590
3591 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3592
3593 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3594 Already covered by the default.
3595
3596 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3597 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3598 (i386_gdbarch_init): Initialize long_double_format and long_double
3599 bit.
3600
3601 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3602 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3603 Move these to ...
3604 * config/i386/i386sol2.mh: ... here.
3605 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3606 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3607 (SIGCONTEXT_PC_OFFSET): Remove define.
3608 (IN_SIGTRAMP): Remove define.
3609 * i386-sol2-tdep.c: New file.
3610
3611 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3612 * config/i386/tm-i386nw.h: Removed.
3613
3614 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3615 USE_STRUCT_CONVENTION): Remove defines.
3616 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3617 (get_longjmp_target): Remove prototype.
3618 (IN_SIGTRAMP): Remove define.
3619 (i386bsd_in_sigtramp): Remove prototype.
3620 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3621 function. Update comment accordingly
3622 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3623 (FRAME_SAVED_PC): Remove define.
3624 (i386bsd_frame_saved_pc): Remove prototype.
3625 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3626 GET_LONGJMP_TARGET): Remove defines.
3627 (get_longjmp_target): Remove prototype.
3628 (IN_SIGTRAMP): Remove define.
3629 (i386bsd_in_sigtramp): Remove prototype.
3630 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3631 function. Update comment accordingly
3632 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3633 (FRAME_SAVED_PC): Remove define.
3634 (i386bsd_frame_saved_pc): Remove prototype.
3635 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3636 Remove prototype.
3637 (USE_STRUCT_CONVENTION): Remove prototype.
3638 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3639 declaration.
3640 (_initialize_i386bsd_nat): Revise logic to determine some
3641 constants at compile time when compiling a native GDB. Warn if
3642 things don't match up with what we expect.
3643 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3644 Remove variables.
3645 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3646 to use date stored in `struct gdbarch_tdep'.
3647 (i386bsd_sigcontext_offset): Remove varaible.
3648 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3649 stored in `struct gdbarch_tdep'.
3650 (i386bsd_frame_saved_pc): Make static.
3651 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3652 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3653 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3654 i386fbsd4_sc_pc_offset): New variables.
3655 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3656 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3657 functions.
3658 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3659 functions.
3660 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3661 Modify the value of i386fbsd_sigtramp_start and
3662 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3663 i386fbsd_sigtramp_end.
3664 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3665 function.
3666
3667 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3668 define to i386-linux-tdep.h.
3669 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3670 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3671 defines.
3672 (i386_linux_register_name, i386_linux_register_byte,
3673 i386_linux_register_raw_size): Remove prototypes.
3674 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3675 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3676 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3677 TARGET_WRITE_PC): Remove defines.
3678 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3679 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3680 i386_linux_write_pc): Remove prototypes.
3681 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3682 (get_longjmp_target): Remove prototype.
3683 * i386-linux-tdep.h: New file.
3684 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3685 * i386-linux-tdep.c: Include "i386-tdep.h" and
3686 "i386-linux-tdep.h".
3687 (i386_linux_register_name, i386_linux_register_byte,
3688 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3689 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3690 Make static.
3691 (i386_linux_init_abi): New function.
3692 (_initialize_i386_linux_tdep): New function.
3693
3694 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3695 (i386_saved_pc_after_call): Remove prototype.
3696 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3697 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3698 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3699 (i386_register_name, i386_stab_reg_to_regnum,
3700 i386_dwarf_reg_to_regnum): Remove prototypes.
3701 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3702 SIZEOF_SSE_REGS): Remove defines.
3703 (REGISTER_BYTES): Remove define.
3704 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3705 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3706 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3707 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3708 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3709 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3710 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3711 (get_longjmp_target): Remove prototype.
3712 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3713 (sigtramp_saved_pc): Remove define.
3714 (i386v4_sigtramp_saved_pc): Remove prototype.
3715 * config/i386/tm-go32.h (FRAME_CHAIN,
3716 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3717 (i386go32_frame_saved_pc): Remove prototype.
3718 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3719 (get_longjmp_target): Remove prototype.
3720 * i386-tdep.h: Include "osabi.h".
3721 (enum i386_abi): Removed.
3722 (enum struct_return): New enum.
3723 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3724 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3725 sc_pc_offset members.
3726 (i386_gdbarch_register_os_abi): Remove prototype.
3727 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3728 I386_SSE_NUM_REGS): New defines.
3729 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3730 I386_SSE_SIZEOF_REGS): New defines.
3731 (i386_register_name, i386_register_byte, i386_register_raw_size):
3732 New prototypes.
3733 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3734 (i386bsd_sigtramp_saved_pc): New prototype.
3735 * i386-tdep.c: Don't include "elf-bfd.h".
3736 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3737 i386_frame_chain, i386_saved_pc_after_call): Make static.
3738 (i386_frame_saved_pc): Rewrite to call architecture dependent
3739 function to deal with signal handlers. Make static.
3740 (i386go32_frame_saved_pc): Removed.
3741 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3742 Removed.
3743 (i386_get_longjmp_target): New function.
3744 (default_struct_convention, pcc_struct_convention,
3745 reg_struct_convention, valid_conventions, struct_convention): New
3746 variables.
3747 (i386_use_struct_convention): New function.
3748 (i386v4_sigtramp_saved_pc): Renamed to
3749 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3750 (i386_pc_in_sigtramp): New function.
3751 (i386_abi_names): Removed.
3752 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3753 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3754 Removed.
3755 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3756 i386_gdbarch_register_os_abi): Removed.
3757 (struct i386_abi_handler): Removed.
3758 (i386_abi_handler_list): Removed.
3759 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3760 functions.
3761 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3762 i386_nw_init_abi): New functions.
3763 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3764 Use set_gdbarch_xxx() calls instead of relying on macros for a
3765 number of calls.
3766 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3767 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3768 Register the various architecture variants defined in this file.
3769
3770 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3771
3772 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3773 (struct main_type): Remove arg_types member. Update comments for
3774 struct field.
3775 (TYPE_ARG_TYPES): Remove.
3776 (TYPE_FN_FIELD_ARGS): Update.
3777 (smash_to_method_type): Update prototype.
3778
3779 * c-typeprint.c (cp_type_print_method_args): Take method type
3780 instead of argument list. Use new argument layout. Simplify.
3781 (c_type_print_args): Use new argument layout. Simplify.
3782 (c_type_print_base): Update call to cp_type_print_method_args.
3783 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3784 argument; use die->type instead. Update call to
3785 smash_to_method_type.
3786 (read_structure_scope): Update call to dwarf2_add_member_fn.
3787 * gdbtypes.c (allocate_stub_method): Update comment.
3788 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3789 Use new argument layout.
3790 (check_stub_method): Use new argument layout. Don't count
3791 void as an argument.
3792 (print_arg_types): Update comments. Use new argument layout.
3793 (recursive_dump_type): Don't print arg_types member.
3794 * hpread.c (hpread_read_struct_type): Use new argument layout.
3795 (fixup_class_method_type): Likewise.
3796 (hpread_type_lookup): Likewise.
3797 * stabsread.c (read_type): Update calls to read_args and
3798 smash_to_method_type.
3799 (read_args): Use new argument layout. Simplify.
3800 * valops.c (typecmp): Use new argument layout. Update parameters
3801 and comments. Simplify.
3802 (hand_function_call): Use new argument layout.
3803 (search_struct_method): Update call to typecmp.
3804 (find_overload_match): Use new argument layout.
3805
3806 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3807
3808 * NEWS: Mention multithreaded debug support for gdbserver.
3809
3810 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3811
3812 * MAINTAINERS: Mention NEWS.
3813
3814 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3815
3816 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3817 (struct mips_objfile_private, compare_pdr_entries): New.
3818 (non_heuristic_proc_desc): Read the ".pdr" section if it
3819 is present.
3820
3821 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3822
3823 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3824 (arm_debug): New static variable.
3825 (_initialize_arm_tdep): Add ``set debug arm'' command.
3826
3827 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3828
3829 * Makefile.in (sim_arm_h): Define.
3830 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3831 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3832 (arm_register_sim_regno): New function, map an internal REGNUM
3833 onto a simulator register number.
3834 (arm_gdbarch_init): Set register_sim_regno.
3835
3836 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3837
3838 * MAINTAINERS: Add self.
3839
3840 2002-06-11 Jim Blandy <jimb@redhat.com>
3841
3842 * source.c (source_info): Mention whether the symtab has
3843 information about preprocessor macros.
3844
3845 Call the command `info macro', not `show macro'.
3846 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3847 Fix error message.
3848 (_initialize_macrocmd): Register `info_macro_command' in
3849 `infolist', not `showlist'.
3850
3851 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3852
3853 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3854 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3855 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3856 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3857 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3858 unconditionally.
3859 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3860 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3861 (_initialize_mips_tdep): Remove dead code.
3862 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3863 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3864 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3865 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3866 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3867 MIPS_LAST_FP_ARG_REGNUM): Remove.
3868
3869 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3870
3871 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3872 (unwind_tmp_obstack_free, parse_frame_info)
3873 (update_context, cfi_read_fp, cfi_write_fp)
3874 (cfi_frame_chain, cfi_init_extra_frame_info)
3875 (cfi_virtual_frame_pointer): Use the above function.
3876 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3877
3878 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3879
3880 * v850-tdep.c (v850_type_is_scalar): New function.
3881 (v850_use_struct_convention): Match current gcc implementation
3882 as close as possible.
3883 (v850_push_arguments): Fix stack_offset handling. Don't write
3884 struct_addr into register. This is done by v850_store_struct_return.
3885 (v850_extract_return_value): Care for structs.
3886 (v850_store_return_value): Ditto.
3887 (v850_store_struct_return): Actually write address.
3888
3889 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3890
3891 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3892 without debug information too.
3893
3894 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3895
3896 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3897 Make multi-arch pure.
3898 * gdbarch.h, gdbarch.c: Re-generate.
3899 * arm-tdep.c (arm_print_float_info): Update.
3900 * arch-utils.h (default_print_float_info): Update.
3901 * arch-utils.c (default_print_float_info): Update.
3902 * infcmd.c (float_info): Update call.
3903
3904 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3905
3906 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3907 the front of the initialize list.
3908
3909 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3910
3911 * infrun.c (struct inferior_status): Replace fields
3912 selected_frame_address and selected_level with field
3913 selected_frame_id.
3914 (save_inferior_status): Update. Use get_frame_id.
3915 (struct restore_selected_frame_args): Delete.
3916 (restore_selected_frame): Update. Use frame_find_by_id.
3917 (restore_inferior_status): Update.
3918
3919 * breakpoint.h (struct breakpoint): Change type of
3920 watchpoint_frame to frame_id.
3921 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3922 call to get_current_frame.
3923 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3924 get_current_frame.
3925 (watchpoint_check): Use frame_find_by_id.
3926
3927 * frame.h (record_selected_frame): Delete declaration.
3928 * stack.c (record_selected_frame): Delete function.
3929
3930 * frame.h (struct frame_id): Define.
3931 (get_frame_id): Declare.
3932 (frame_find_by_id): Declare.
3933 * frame.c (frame_find_by_id): New function.
3934 (get_frame_id): New function.
3935
3936 2002-06-10 Andrey Volkov <avolkov@transas.com>
3937
3938 * ser-e7kpc.c: Fix duplicated define and call of
3939 _initialize_ser_e7000pc
3940
3941 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3942
3943 * signals/signals.c (target_signal_from_host): Fix #ifdef
3944 SIGRTMIN case.
3945 (do_target_signal_to_host): Likewise.
3946
3947 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3948
3949 * mips-tdep.c (mips_find_abi_section): New function.
3950 (mips_gdbarch_init): Call it.
3951
3952 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3953
3954 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3955 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3956 after Andrew's 2002-06-08 gdbarch change.
3957
3958 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3959
3960 * i386-linux-nat.c (suppy_gregset): Don't supply
3961 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3962 register cache.
3963 (fill_gregset): Don't fetch it under the same circumstances.
3964
3965 2002-06-09 Andrew Cagney <cagney@redhat.com>
3966
3967 * Makefile.in (callback_h): Define.
3968 (remote_sim_h): Update path to remote-sim.h.
3969 (remote-rdp.o): Add $(callback_h).
3970 (remote-sim.o): Use $(callback_h).
3971 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3972 * remote-rdp.c: Include "gdb/callback.h".
3973
3974 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3975
3976 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3977 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3978
3979 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3980
3981 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3982 * rdi-share/serpardr.c: Ditto.
3983 * rdi-share/unixcomm.c: Ditto.
3984 * rdi-share/serdrv.c: Ditto.
3985 * rdi-share/hostchan.h: Ditto.
3986 * rdi-share/hostchan.c: Ditto.
3987 * rdi-share/host.h: Ditto.
3988 * rdi-share/devsw.c: Ditto.
3989
3990 * objfiles.h: Change type of obj_private to void pointer.
3991 * pa64solib.c: Update copyright. Don't include "assert.h", use
3992 strcmp instead of STREQ, use LONGEST, do not use PTR
3993 * somsolib.c: Ditto.
3994
3995 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3996 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3997 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3998
3999 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4000
4001 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4002 (default_get_saved_register): Delete function.
4003 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4004 generic_unwind_get_saved_register.
4005 * gdbarch.h, gdbarch.c: Re-generate.
4006
4007 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4008
4009 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4010 generic_func_frame_chain_valid.
4011 * gdbarch.h, gdbarch.c: Re-generate.
4012 * blockframe.c (generic_func_frame_chain_valid): Only check
4013 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4014 passing FP to PC_IN_CALL_DUMMY.
4015 Fix PR gdb/360.
4016
4017 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4018
4019 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4020 (register_gdbarch_data): Initialize init_p.
4021 (gdbarch_data): Initialize data pointer using the init function.
4022 (init_gdbarch_data): Delete function.
4023 (gdbarch_update_p): Update.
4024 (initialize_non_multiarch): Update.
4025 (struct gdbarch): Add field initialized_p.
4026 * gdbarch.h, gdbarch.c: Re-generate.
4027
4028 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4029
4030 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4031 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4032 better do the things actually here.
4033 * x86-64-tdep.c (x86_64_register_name2nr): New.
4034 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4035 (x86_64_gdbarch_init): Respect the above change.
4036 * x86-64-tdep.h (x86_64_register_name2nr)
4037 (x86_64_register_nr2name): Add prototypes.
4038 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4039
4040 2002-06-06 Michael Snyder <msnyder@redhat.com>
4041
4042 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4043 Delete extra braces and re-indent.
4044 (d10v_store_return_value): Char return values
4045 must be shifted over by one byte in R0.
4046 (d10v_extract_return_value): Delete extra braces, re-indent.
4047
4048 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4049
4050 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4051 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4052 (d10v_integer_to_address): Rewrite.
4053 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4054 the d10v specific functions which take care of converting to the
4055 correct space.
4056
4057 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4058
4059 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4060 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4061
4062 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4063
4064 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4065 includes.
4066 * config/tm-linux.h: Ditto.
4067 * config/alpha/tm-alphalinux.h: Ditto.
4068 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4069 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4070 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4071 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4072 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4073 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4074 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4075 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4076 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4077 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4078 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4079 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4080 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4081 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4082 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4083 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4084 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4085 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4086 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4087 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4088 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4089 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4090 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4091 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4092 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4093 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4094 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4095 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4096 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4097 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4098 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4099 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4100 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4101 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4102 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4103 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4104 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4105
4106 2002-05-04 Aidan Skinner <aidan@velvet.net>
4107
4108 * ada-exp.tab.c: New file
4109 * ada-exp.y: New file
4110 * ada-lang.c: New file
4111 * ada-lang.h: New file
4112 * ada-lex.c: New file
4113 * ada-lex.l: New file
4114 * ada-tasks.c: New file
4115 * ada-typeprint.c: New file
4116 * ada-valprint.c: New file
4117
4118 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4119
4120 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4121 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4122
4123 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4124
4125 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4126 insetead of ppc-linux-tdep.o.
4127 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4128 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4129
4130 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4131
4132 2002-05-07 Christian Groessler <chris@groessler.org>
4133 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4134 bit register contents for little endian hosts.
4135
4136 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4137
4138 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4139 any maintainer.
4140
4141 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4142
4143 * gdbarch.h: Regenerate.
4144
4145 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4146
4147 * MAINTAINERS: Add everyone to write-after-approval list.
4148
4149 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4150
4151 * stack.c (frame_info): Use frame_register_unwind instead of
4152 saved_regs. Mention when the SP is on the stack or in a register.
4153
4154 * frame.h (frame_register_unwind_ftype): Define. Document.
4155 (struct frame_info): Add field register_unwind and
4156 register_unwind_cache.
4157 (frame_register_unwind): Declare.
4158 (generic_unwind_get_saved_register): Declare.
4159
4160 * frame.c (frame_register_unwind): New function.
4161 (generic_unwind_get_saved_register): New function.
4162
4163 * blockframe.c (generic_call_dummy_register_unwind): New function.
4164 (frame_saved_regs_register_unwind): New function.
4165 (set_unwind_by_pc): New function.
4166 (create_new_frame): New function.
4167 (get_prev_frame): New function.
4168
4169 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4170
4171 * a29k-share/: Delete directory.
4172 * remote-vx29k.c: Delete file.
4173
4174 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4175
4176 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4177 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4178
4179 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4180
4181 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4182 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4183 (sparc64nbsd-nat.o)
4184 (sparcnbsd-nat.o)
4185 (sparcnbsd-tdep.o): New dependency lists.
4186 * NEWS: Note new UltraSPARC NetBSD native configuration.
4187 * configure.host (sparc64-*-netbsd*): New host.
4188 * configure.tgt (sparc-*-netbsdelf*)
4189 (sparc-*-netbsd*): Set gdb_target to nbsd.
4190 (sparc64-*-netbsd*): New target.
4191 * sparc64nbsd-nat.c: New file.
4192 * sparcnbsd-nat.c: New file.
4193 * sparcnbsd-tdep.c: New file.
4194 * sparcnbsd-tdep.h: New file.
4195 * config/sparc/nbsd.mt: New file.
4196 * config/sparc/nbsd64.mh: New file.
4197 * config/sparc/nbsd64.mt: New file.
4198 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4199 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4200 (HOST_IPC): Remove.
4201 * config/sparc/nbsdaout.mt: Remove.
4202 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4203 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4204 (HOST_IPC): Remove.
4205 * config/sparc/nbsdelf.mt: Remove.
4206 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4207 sparc-nat.c compatiblity defines.
4208 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4209 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4210 * config/sparc/tm-nbsd64.h: New file.
4211 * config/sparc/tm-nbsdaout.h: Remove.
4212 * config/sparc/xm-nbsd.h: Remove.
4213
4214 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4215
4216 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4217 * sparc-tdep.c: Include osabi.h.
4218 (gdbarch_tdep): Add osabi member.
4219 (_initialize_sparc_tdep): Use gdbarch_register.
4220 (sparc_gdbarch_init): Use generic OS ABI framework.
4221 (sparc_dump_tdep): New function.
4222
4223 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4224
4225 * corefile.c (do_captured_read_memory_integer): Return non-zero
4226 result.
4227 (safe_read_memory_integer): Copy result of memory read when
4228 status is non-zero. Also, add comments.
4229
4230 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4231
4232 * Makefile.in (ppc_tdep_h): Define.
4233 (ppc-linux-nat.o)
4234 (ppc-linux-tdep.o)
4235 (rs6000-tdep.o): Use $(ppc_tdep_h).
4236 (ppc-sysv-tdep.o)
4237 (ppcnbsd-nat.o)
4238 (ppcnbsd-tdep.o): New dependency lists.
4239 * ppc-tdep.h: Use generic OS ABI framework.
4240 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4241 (ppc_linux_init_abi): New functions.
4242 (ppc_sysv_abi_broken_use_struct_convention)
4243 (ppc_sysv_abi_use_struct_convention)
4244 (ppc_sysv_abi_push_arguments): Move to...
4245 * ppc-sysv-tdep.c: ...here.
4246 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4247 * rs6000-tdep.c (process_note_abi_tag_sections)
4248 (get_elfosabi): Remove.
4249 (rs6000_gdbarch_init): Use generic OS ABI framework.
4250 (rs6000_dump_tdep): New function.
4251 (_initialize_rs6000_tdep): Use gdbarch_register.
4252 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4253 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4254 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4255 of ppc-linux-tdep.o.
4256 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4257 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4258 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4259 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4260 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4261 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4262
4263 2002-05-29 Jim Blandy <jimb@redhat.com>
4264
4265 * macroscope.c (default_macro_scope): Put `void' in empty argument
4266 list.
4267
4268 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4269
4270 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4271 * arch-utils.c: Include "sim-regno.h".
4272 * gdbarch.sh: Don't include "sim-regno.h".
4273 * gdbarch.h, gdbarch.c: Regenerate.
4274 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4275 here.
4276 * arch-utils.h (legacy_register_sim_regno): To here.
4277 * remote-sim.c (legacy_register_sim_regno): Move function from
4278 here.
4279 * arch-utils.c (legacy_register_sim_regno): To here.
4280
4281 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4282
4283 * sim-regno.h: New file.
4284 * Makefile.in (sim_regno_h): Define.
4285 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4286 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4287 (legacy_register_sim_regno): New function.
4288 (one2one_register_sim_regno): New function.
4289 (gdbsim_fetch_register): Rewrite.
4290 (gdbsim_store_register): Only store a register when
4291 REGISTER_SIM_REGNO is valid.
4292 * d10v-tdep.c: Include "sim-regno.h".
4293 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4294 (d10v_ts3_register_sim_regno): Ditto.
4295 * gdbarch.sh: Include "sim-regno.h".
4296 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4297 * gdbarch.h, gdbarch.c: Regenerate.
4298 * arch-utils.h (default_register_sim_regno): Delete declaration.
4299 * arch-utils.c (default_register_sim_regno): Delete function.
4300
4301 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4302
4303 * ppcnbsd-nat.c: Rewrite.
4304 * ppcnbsd-tdep.c: New file.
4305 * ppcnbsd-tdep.h: New file.
4306 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4307 solib.o, and solib-svr4.o.
4308 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4309 nbsd-tdep.o, and corelow.o.
4310
4311 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4312
4313 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4314 `tr' and `sed'. Mention that `broken' targets are not expected to
4315 build.
4316
4317 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4318
4319 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4320 Let PC point right after the prologue before looking up symbols.
4321
4322 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4323
4324 * i386-tdep.c (i386_register_virtual_type): Return
4325 builtin_type_vec128i for SSE registers.
4326
4327 * gdbtypes.h (builtin_type_vec128i): Declare.
4328
4329 * gdbtypes.c (build_builtin_type_vec128i): New function.
4330 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4331 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4332 (build_gdbtypes): Initialize new builtin vector types.
4333 (_initialize_gdbtypes): Register new vector types with gdbarch.
4334
4335 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4336
4337 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4338 since it has been multi-arch'd.
4339 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4340 Move Alpha and VAX multi-arch news entries to same section
4341 as other multi-arch news.
4342
4343 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4344
4345 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4346 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4347 static. Rename some register numbers to put them in ns32k-tdep
4348 private namespace.
4349 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4350 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4351 functions.
4352 (_initialize_ns32k_tdep): Use gdbarch_register.
4353 * ns32k-tdep.h: New file.
4354 * ns32knbsd-tdep.c: New file.
4355 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4356 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4357 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4358 REGISTER_BYTES, REGISTER_BYTE): Remove.
4359 * config/ns32k/tm-ns32k.h: New file.
4360 * config/ns32k/tm-umax.h: Remove.
4361
4362 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4363
4364 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4365 ns32k_store_struct_return, ns32k_extract_return_value,
4366 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4367 functions.
4368 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4369 ns32k_saved_pc_after_call.
4370 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4371 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4372 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4373 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4374 ns32k_extract_struct_value_address.
4375
4376 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4377
4378 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4379 ns32k_fix_call_dummy): New.
4380 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4381 ns32k_call_dummy_words.
4382 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4383 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4384 CALL_DUMMY_NARGS): Remove.
4385 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4386
4387 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4388
4389 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4390 ns32k_frame_saved_pc, ns32k_frame_args_address,
4391 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4392 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4393 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4394 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4395 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4396 (BREAKPOINT): Remove..
4397 (FRAME_CHAIN): Define as ns32k_frame_chain.
4398 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4399 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4400 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4401 (FRAME_FIND_SAVED_REGS): Remove.
4402 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4403 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4404 (POP_FRAME): Define as ns32k_pop_frame.
4405
4406 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4407
4408 * ns32k-tdep.c (ns32k_register_byte_32082,
4409 ns32k_register_byte_32382, ns32k_register_raw_size,
4410 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4411 functions.
4412 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4413 ns32k_register_byte_32382.
4414 * config/ns32k/tm-umax.h: Update copyright years.
4415 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4416 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4417 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4418 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4419 (ns32k_get_enter_addr): Fix prototype.
4420
4421 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4422
4423 * ns32k-tdep.c: Update copyright years.
4424 (ns32k_register_name_32082): New function.
4425 (ns32k_register_name_32382): Ditto.
4426 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4427 (REGISTER_NAME): Define as ns32k_register_name_32382.
4428 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4429 (REGISTER_NAME): Define as ns32k_register_name_32082.
4430
4431 2002-05-24 Jim Blandy <jimb@redhat.com>
4432
4433 * dwarf2read.c (free_line_header): Use xfree, not free.
4434
4435 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4436
4437 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4438 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4439
4440 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4441
4442 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4443
4444 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4445
4446 From Ross Alexander at NEC Europe:
4447 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4448
4449 2002-05-23 Michael Snyder <msnyder@redhat.com>
4450
4451 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4452 for input, rather than parse_and_eval_address.
4453
4454 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4455
4456 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4457 * Makefile.in (sim_d10v_h): Update definition.
4458
4459 2002-05-24 Andrew Cagney <cagney@redhat.com>
4460
4461 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4462 change `2002-05-22 Michael Snyder' below.
4463 (d10v_push_arguments): Ditto.
4464 (d10v_extract_return_value): Ditto.
4465
4466 2002-05-23 Jim Blandy <jimb@redhat.com>
4467
4468 * macrotab.c (check_for_redefinition): Don't complain if the new
4469 definition is the same as the previous one. Take more arguments
4470 to allow the comparison.
4471 (macro_define_object, macro_define_function): Pass more arguments
4472 to check_for_redefinition.
4473
4474 2002-05-22 Michael Snyder <msnyder@redhat.com>
4475
4476 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4477 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4478 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4479 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4480 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4481 Add a temp variable to save a call (and a memory read).
4482 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4483 if possible (so that PC_IN_CALL_DUMMY will work).
4484
4485 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4486
4487 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4488
4489 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4490
4491 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4492 fde->cie_ptr.
4493 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4494 (dwarf2_build_frame_info): Add offset to fde->initial_location
4495 so that frames of shared libraries are mapped correctly.
4496 (execute_stack_op): Change type of 'result' from ULONGEST to
4497 CORE_ADDR.
4498
4499 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4500
4501 * config/alpha/tm-nbsd.h: Include solib.h.
4502
4503 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4504
4505 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4506 assumptions about the host's byte order.
4507
4508 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4509
4510 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4511 to dependency list.
4512 * alphanbsd-tdep.c: Include solib-svr4.h.
4513 * shnbsd-tdep.c: Ditto.
4514
4515 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4516
4517 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4518 nbsd-tdep.h to dependency list.
4519 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4520 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4521 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4522 nbsdaout.mh and nbsdelf.mh consistently.
4523 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4524 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4525 nbsdaout.mt and nbsdelf.mh consistently.
4526 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4527 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4528 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4529 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4530 a.out shared library stuff from here...
4531 * config/nm-nbsdaout.h: ...to here.
4532 * config/tm-nbsd.h: Remove.
4533 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4534 * config/arm/nbsd.mh: Remove.
4535 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4536 nbsd-tdep.o.
4537 * config/arm/nbsdaout.mh: New file.
4538 * config/arm/nbsdelf.mh: New file.
4539 * config/arm/nm-nbsdaout.h: New file.
4540 * config/i386/nbsd.mh: Remove.
4541 * config/i386/nbsd.mt: Remove.
4542 * config/i386/nbsdaout.mh: New file.
4543 * config/i386/nbsdaout.mt: New file.
4544 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4545 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4546 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4547 i386_register_u_addr): Remove.
4548 * config/i386/nm-nbsdaout.h: New file.
4549 * config/i386/nm-nbsdelf.h: Remove.
4550 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4551 (USE_STRUCT_CONVENTION): Remove.
4552 * config/i386/tm-nbsdaout.h: New file.
4553 * config/i386/tm-nbsdelf.h: Remove.
4554 * config/m68k/nbsd.mh: Remove.
4555 * config/m68k/nbsd.mt: Remove.
4556 * config/m68k/nbsdaout.mh: New file.
4557 * config/m68k/nbsdaout.mt: New file.
4558 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4559 * config/m68k/nm-nbsdaout.h: New file.
4560 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4561 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4562 * config/ns32k/nbsd.mh: Remove.
4563 * config/ns32k/nbsd.mt: Remove.
4564 * config/ns32k/nbsdaout.mh: New file.
4565 * config/ns32k/nbsdaout.mt: New file.
4566 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4567 * config/ns32k/nm-nbsdaout.h: New file.
4568 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4569 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4570 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4571 (SVR4_SHARED_LIBS): Remove.
4572 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4573 * config/sparc/nbsd.mh: Remove.
4574 * config/sparc/nbsd.mt: Remove.
4575 * config/sparc/nbsdaout.mh: New file.
4576 * config/sparc/nbsdaout.mt: New file.
4577 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4578 * config/sparc/nbsdelf.mt: New file.
4579 * config/sparc/nm-nbsdaout.h: New file.
4580 * config/sparc/nm-nbsdelf.h: Remove.
4581 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4582 * config/sparc/tm-nbsdaout.h: New file.
4583
4584 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4585
4586 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4587 mipsnbsd-tdep.c
4588 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4589
4590 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4591
4592 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4593 shnbsd-nat.c.
4594 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4595
4596 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4597
4598 * NEWS: Note new MIPS NetBSD native configuration.
4599 * configure.host (mips*-*-netbsd*): New host.
4600 * configure.tgt (mips*-*-netbsd*): New target.
4601 * mipsnbsd-nat.c: New file.
4602 * mipsnbsd-tdep.c: New file.
4603 * mipsnbsd-tdep.h: New file.
4604 * config/mips/nbsd.mh: New file.
4605 * config/mips/nbsd.mt: New file.
4606 * config/mips/nm-nbsd.h: New file.
4607 * config/mips/tm-nbsd.h: New file.
4608
4609 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4610
4611 * Makefile.in (SFILES): Add osabi.c.
4612 (COMMON_OBS): Add osabi.o.
4613 (osabi.o): New dependency list.
4614 * osabi.c: New file.
4615 * osabi.h: New file.
4616 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4617
4618 * Makefile.in (alpha_tdep_h): Define and use instead of
4619 alpha-tdep.h.
4620 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4621 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4622 Remove.
4623 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4624 * alpha-tdep.h: Include osabi.h.
4625 (alpha_abi): Remove.
4626 (gdbarch_tdep): Use generic OS ABI framework.
4627 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4628 gdbarch_register_osabi.
4629 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4630 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4631 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4632
4633 * Makefile.in (sh_tdep_h): Add osabi.h.
4634 * sh-tdep.h (sh_osabi): Remove.
4635 (gdbarch_tdep): Use generic OS ABI framework.
4636 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4637 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4638 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4639 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4640
4641 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4642 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4643 gdbarch_register_osabi.
4644 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4645 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4646 (get_elfosabi): Rename to...
4647 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4648 ABI framework support routines.
4649 (arm_gdbarch_init): Use generic OS ABI framework.
4650 (arm_dump_tdep): Likewise.
4651 (_initialize_arm_tdep): Likewise.
4652 * arm-tdep.h: Include osabi.h.
4653 (arm_abi): Remove.
4654 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4655 osabi member.
4656 (arm_gdbarch_register_os_abi): Remove prototype.
4657 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4658 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4659
4660 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4661 * mips-tdep.c: Include osabi.h.
4662 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4663 OS ABI framework.
4664
4665 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4666
4667 * h8300-tdep.c: Fix formatting.
4668
4669 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4670
4671 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4672 printing vector registers.
4673
4674 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4675
4676 From Fernando Nasser:
4677 * remote.c (remote_async_open_1): Re-throw the exception when the
4678 connection fails.
4679 (remote_cisco_open): Ditto.
4680 (remote_open_1): Ditto.
4681
4682 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4683
4684 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4685 (remote_start_remote): Add uiout parameter. Pass through to
4686 remote_start_remote_dummy.
4687 (remote_open_1): Use catch_exception instead of catch_errors.
4688 (remote_async_open_1): Ditto.
4689 (remote_cisco_open): Ditto.
4690
4691 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4692
4693 * remote.c (remote_start_remote): Replace PTR with void pointer.
4694 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4695 static.
4696
4697 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4698
4699 * gdb_indent.sh: Allow the script to be run in the sim directory.
4700
4701 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4702
4703 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4704 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4705
4706 * corelow.c (core_open): Only call set_gdbarch_from_file if
4707 exec_bfd is NULL.
4708
4709 2002-05-17 Andrey Volkov <avolkov@transas.com>
4710
4711 * h8300-tdep.c: Add support of EXR register
4712 * config/h8300/tm-h8300.h: Ditto.
4713
4714 2002-05-17 Andrey Volkov <avolkov@transas.com>
4715
4716 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4717
4718 2002-05-17 Andrey Volkov <avolkov@transas.com>
4719
4720 * h8300-tdep.c: Change literal regnums to REGNO.
4721
4722 2002-05-17 Jim Blandy <jimb@redhat.com>
4723
4724 * NEWS: Note addition of macro support.
4725
4726 Expand preprocessor macros in C expressions.
4727 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4728 (scan_macro_expansion, scanning_macro_expansion,
4729 finished_macro_expansion): New function declarations.
4730 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4731 variable declarations.
4732 * parser-defs.h (expression_context_pc): New declaration.
4733 * parse.c (expression_context_pc): New variable.
4734 (parse_exp_1): Set expression_context_pc, as well as
4735 expression_context_block.
4736 * c-exp.y (yylex): If we're not already reading the result of a
4737 macro expansion, try to macro-expand the next token. When we're
4738 done scanning a macro expansion, switch back to the mainline text.
4739 Commas and `if's in a macro's expansion don't terminate the input.
4740 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4741 (macro_original_text, macro_expanded_text,
4742 expression_macro_lookup_func, expression_macro_lookup_baton): New
4743 variables.
4744 (scan_macro_expansion, scanning_macro_expansion,
4745 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4746 c_preprocess_and_parse): New functions.
4747 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4748 c_preprocess_and_parse, instead of c_parse.
4749 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4750 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4751
4752 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4753
4754 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4755 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4756 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4757
4758 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4759
4760 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4761
4762 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4763
4764 * Makefile.in (sh_tdep_h): Define and use.
4765 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4766 register enum): Move to...
4767 * * sh-tdep.h: ...here.
4768 * sh-tdep.c: Include sh-tdep.h.
4769 * sh3-rom.c: Likewise.
4770 * shnbsd-tdep.c: Likewise.
4771
4772 2002-05-16 Michael Snyder <msnyder@redhat.com>
4773
4774 * arm-tdep.c: Spelling fix in comment.
4775
4776 2002-05-16 Jim Blandy <jimb@redhat.com>
4777
4778 Add commands for manually expanding macros and showing their
4779 definitions.
4780 * macrocmd.c, macroscope.c, macroscope.h: New files.
4781 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4782 (macroscope_h): New variable.
4783 (HFILES_NO_SRCDIR): Add macroscope.h.
4784 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4785 (macroscope.o, macrocmd.o): New rules.
4786
4787 Teach the Dwarf 2 reader to read macro information.
4788 * dwarf2read.c: #include "macrotab.h".
4789 (dwarf_macinfo_buffer): New variable.
4790 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4791 dwarf_macinfo_size.
4792 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4793 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4794 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4795 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4796 dwarf2_macro_spaces_in_definition): New complaints.
4797 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4798 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4799 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4800 the partial symbol table.
4801 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4802 from what's recorded in the partial symbol table.
4803 (read_file_scope): If the compilation unit has a
4804 `DW_AT_macro_info' attribute, read its macro information.
4805 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4806
4807 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4808
4809 Fix PR gdb/546
4810 * ser-tcp.c: Don't include <netinet/udp.h>.
4811
4812 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4813
4814 * MAINTAINERS: Update my email address.
4815
4816 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4817
4818 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4819 include file of the same name.
4820
4821 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4822
4823 * configure.tgt: Mark v850 as multi-arched.
4824 * config/v850/tm-v850.h: Remove file.
4825 * config/v850/v850.mt: Eliminate TM_FILE.
4826
4827 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4828
4829 * v850-tdep.c: Full multi-arch.
4830 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4831 Define GDB_MULTI_ARCH to 2.
4832
4833 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4834
4835 * p-exp.y (current_type): New static variable.
4836 Carries the type of the expression at the position that is parsed.
4837 (push_current_type, pop_current_type): Two new functions. Used
4838 to store/restore current_type in expression on specific tokens.
4839 (search_field): New static variable. Set to one after parsing a point
4840 as at that point only a FIELDNAME token should be searched.
4841 (FIELDNAME): New token. After a point only a token belonging to
4842 current_type type definition is allowed.
4843 (all over token rules): reset and change current_type according
4844 to rules.
4845 (exp '[' rule): insert implicit array index field if
4846 exp is a pascal string type.
4847
4848 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4849
4850 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4851 frame info. Use frame_info's saved_regs instead of matching member
4852 in extra_frame_info throughout.
4853 (v850_frame_init_saved_regs): New function.
4854 (v850_init_extra_frame_info): Move most functionality into
4855 v850_frame_init_saved_regs().
4856 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4857 (v850_frame_find_saved_regs): Remove declaration.
4858 (FRAME_FIND_SAVED_REGS): Remove definition.
4859 (v850_frame_init_saved_regs): Add declaration.
4860 (FRAME_INIT_SAVED_REGS): Add definition.
4861
4862 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4863
4864 * v850-tdep.c: Begin multi-arch'ing v850.
4865 (v850_target_architecture_hook): Remove function.
4866 (v850_gdbarch_init): New function. Add code previously in
4867 v850_target_architecture_hook().
4868 (_initialize_v850_tdep): Don't set target_architecture_hook.
4869 Call register_gdbarch_init() instead.
4870
4871 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4872
4873 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4874 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4875 (fixup_class_method_type): Likewise.
4876
4877 2002-05-15 Jim Blandy <jimb@redhat.com>
4878
4879 Add macro structures to GDB's symbol tables. Nobody puts anything
4880 in them yet.
4881 * symtab.h (struct symtab): New member: `macro_table'.
4882 * buildsym.h (pending_macros): New global variable.
4883 * buildsym.c: #include "macrotab.h".
4884 (buildsym_init): Initialize `pending_macros'.
4885 (end_symtab): If we found macro information while reading a CU's
4886 debugging info, do build a symtab structure for it. Make the
4887 symtab point to the macro information, and clear the
4888 `pending_macros' pointer which held it while we were reading the
4889 debug info.
4890 (really_free_pendings): Free any pending macro table.
4891 * objfiles.h (struct objfile): New member: `macro_cache'.
4892 * objfiles.c (allocate_objfile): Set allocate and free functions
4893 for the macro cache's objstack.
4894 (free_objfile): Empty the macro cache's obstack.
4895 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4896 set new allocate and free functions for it.
4897 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4898 free functions for the macro cache's objstack. (Why is this
4899 function building its own objfile?)
4900 * symmisc.c (print_objfile_statistics): Print statistics on the
4901 macro bcache.
4902 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4903
4904 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4905
4906 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4907 (REGISTER_U_ADDR): Delete definition.
4908 (arm_register_u_addr): Delete declaration.
4909
4910 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4911
4912 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4913 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4914
4915 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4916
4917 * regcache.c (register_valid): Revise comments refering to "Not
4918 available" and "unavailable".
4919 * frame.c (frame_register_read): Ditto.
4920 * findvar.c (value_of_register): Ditto.
4921
4922 2002-05-15 Andrew Cagney <cagney@redhat.com>
4923
4924 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4925 (remote-sim.o): Update dependencies.
4926 (d10v-tdep.o): Specify dependencies.
4927 (sim_d10v_h): Define.
4928
4929 2002-05-14 Jim Blandy <jimb@redhat.com>
4930
4931 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4932 * macrotab.c (macro_lookup_inclusion, find_definition,
4933 new_macro_table): Same.
4934
4935 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4936 not `! strcmp ()'. This is a dubious improvement.
4937 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4938
4939 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4940 although it's not necessary, to avoid a warning.
4941
4942 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4943
4944 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4945 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4946 TYPE_INSTANCE_FLAGS.
4947 (struct main_type): New.
4948 (struct type): Move most members to struct main_type. Change
4949 cv_type and as_type to new type_chain member. Add instance_flags.
4950 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4951 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4952 (finish_cv_type): Remove prototype.
4953 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4954 Set TYPE_CHAIN.
4955 (alloc_type_instance): New function.
4956 (smash_type): New function.
4957 (make_pointer_type, make_reference_type, make_function_type)
4958 (smash_to_member_type, smash_to_method_type): Call smash_type.
4959 (make_qualified_type): New function.
4960 (make_type_with_address_space): Call make_qualified_type.
4961 (make_cv_type): Likewise.
4962 (finish_cv_type): Remove unnecessary function.
4963 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4964 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4965 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4966 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4967 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4968 * hpread.c (hpread_read_struct_type): Likewise.
4969 * stabsread.c (read_struct_type): Likewise.
4970
4971 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4972
4973 * configure.tgt: Add a catch all sh* target, for cases like
4974 sh[2,3,4]-elf and sh-hms.
4975
4976 2002-05-14 Keith Seitz <keiths@redhat.com>
4977
4978 * event-loop.c (create_file_handler): Don't do anything but
4979 update data when we are given a fd which we are already
4980 monitoring.
4981
4982 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4983
4984 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4985 (update_context): Use __func__ in warnings.
4986
4987 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4988
4989 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4990 and tcp_close to net_open and net_close.
4991 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4992 using UDP if requested. Don't try to disable Nagle on UDP
4993 sockets.
4994 * remote.c (remote_serial_open): New function. Warn about UDP.
4995 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4996
4997 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4998
4999 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5000
5001 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5002
5003 * configure.tgt: Remove sh-hms target.
5004 * MAINTAINERS: Don't list sh-hms as a separate target.
5005
5006 2002-05-13 Jim Blandy <jimb@redhat.com>
5007
5008 Add first preprocessor macro-expansion files.
5009 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5010 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5011 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5012 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5013 (COMMON_OBS): Add macrotab.o, macroexp.o.
5014 (macroexp.o, macrotab.o): New rules.
5015
5016 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5017
5018 * config/m88k/tm-m88k.h: Update copyright.
5019 (m88k_target_write_pc): Declare
5020 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5021 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5022 (SHIFT_INST_REGS): Update definition.
5023 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5024 using old definition of TARGET_WRITE_PC.
5025 * regcache.c (generic_target_write_pc): Delete code handling
5026 NNPC_REGNUM.
5027 * gdbarch.sh (NNPC_REGNUM): Delete.
5028 * gdbarch.h, gdbarch.c: Regenerate.
5029
5030 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5031
5032 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5033 builtin reg number.
5034
5035 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5036
5037 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5038 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5039 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5040 access macros.
5041 * c-typeprint.c (cp_type_print_method_args): Likewise.
5042 (c_type_print_args): Likewise.
5043 * d10v-tdep.c (d10v_push_arguments): Likewise.
5044 (d10v_extract_return_value): Likewise.
5045 * expprint.c (print_subexp): Likewise.
5046 * gdbtypes.c (lookup_primitive_typename): Likewise.
5047 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5048 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5049 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5050 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5051 (TYPE_VECTOR): Likewise.
5052 * hpread.c (hpread_read_struct_type)
5053 (fix_static_member_physnames, fixup_class_method_type)
5054 (hpread_type_lookup): Likewise.
5055 * mdebugread.c (parse_symbol, parse_type): Likewise.
5056 * p-lang.c (is_pascal_string_type): Likewise.
5057 * valops.c (hand_function_call): Likewise.
5058 * x86-64-tdep.c (classify_argument): Likewise.
5059
5060 * hpread.c (hpread_read_function_type)
5061 (hpread_read_doc_function_type): Call replace_type.
5062 * dstread.c (create_new_type): Delete.
5063 (decode_dst_structure, process_dst_function): Call alloc_type.
5064 Use type access macros.
5065
5066 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5067
5068 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5069 the're not supported by the current architecture.
5070 (i387_fill_fxsave): Likewise.
5071
5072 2002-05-12 Fred Fish <fnf@redhat.com>
5073
5074 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5075 sect_index_xxx members to index the first slot in section_offsets
5076 if all of the section_offsets are zero.
5077
5078 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5079
5080 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5081 checked in with last change.
5082
5083 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5084
5085 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5086 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5087 config.sub.
5088
5089 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5090
5091 * Makefile.in: Update dependencies.
5092
5093 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5094
5095 * language.c (local_hex_string_custom): Simplify. Do not depend
5096 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5097
5098 * memattr.c (mem_info_command): Replace calls to
5099 longest_local_hex_string and longest_local_hex_string_custom.
5100 * buildsym.c (make_blockvector): Ditto.
5101 * solib.c (info_sharedlibrary_command): Ditto.
5102 * tracepoint.c (tracepoints_info): Ditto.
5103 * symtab.c (print_msymbol_info): Ditto.
5104
5105 * language.c (local_hex_string): Delete.
5106 (local_hex_string_custom): Delete.
5107 (longest_local_hex_string): Rename to local_hex_string.
5108 (longest_local_hex_string_custom): Rename to
5109 local_hex_string_custom.
5110 * language.h (local_hex_string): Change parameter type to LONGEST.
5111 (local_hex_string_custom): Ditto.
5112 (longest_local_hex_string): Delete declaration.
5113 (longest_local_hex_string_custom): Ditto.
5114
5115 * solib.c: Update copyright.
5116 * memattr.c: Update copyright.
5117
5118 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5119
5120 * arch-utils.h (legacy_register_to_value): Declare.
5121 (legacy_value_to_register): Declare.
5122 (legacy_convert_register_p): Declare.
5123 * arch-utils.c (legacy_register_to_value): New function.
5124 (legacy_value_to_register): New function.
5125 (legacy_convert_register_p): New function.
5126
5127 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5128 (VALUE_TO_REGISTER): Define.
5129 (CONVERT_REGISTER_P): Define.
5130 * gdbarch.h, gdbarch.c: Regenerate.
5131
5132 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5133 VALUE_TO_REGISTER.
5134 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5135 CONVERT_REGISTER_P.
5136
5137 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5138 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5139
5140 * Makefile.in: Update dependencies for valops.c.
5141 * valops.c: Include "gdb_assert.h".
5142 (typecmp): Skip THIS parameter to methods.
5143 (find_method_list): Remove static_memfuncp argument,
5144 update callers. Check for stub methods.
5145 (find_value_oload_method_list): Don't set *static_memfuncp.
5146 (find_overload_match): Don't check for stub methods. Assert
5147 that methods are not stubbed. Handle static methods.
5148 (value_find_oload_method_list): Remove static_memfuncp argument.
5149 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5150 to the argument list for static stub methods.
5151 * value.h (value_find_oload_method_list): Update prototype.
5152
5153 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5154
5155 * arch-utils.h (generic_register_size): Declare.
5156 (generic_register_raw_size, generic_register_virtual_size): Delete
5157 declarations.
5158 * arch-utils.c (generic_register_raw_size): Delete.
5159 (generic_register_size): New function.
5160 (generic_register_virtual_size): Delete.
5161
5162 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5163 default generic_register_size.
5164 * gdbarch.h, gdbarch.c: Re-generate.
5165
5166 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5167 register_virtual_size.
5168 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5169 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5170
5171 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5172
5173 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5174 * gdbarch.h, gdbarch.c: Regenerate.
5175 * gnu-v3-abi.c: Update copyright.
5176 (vtable_address_point_offset): Update.
5177 (gnuv3_rtti_type): Update.
5178 (gnuv3_baseclass_offset): Update.
5179 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5180 (init_fetch_link_map_offsets): Update.
5181 * remote.c (get_remote_state): Update.
5182
5183 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5184
5185 * TODO: Remove value_headof/value_from_vtable_info comment.
5186 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5187 * values.c (value_headof, value_from_vtable_info): Delete.
5188 * value.h (value_from_vtable_info): Delete prototype.
5189
5190 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5191
5192 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5193 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5194 $(gdb_regex_h).
5195 (gdb_assert_h): Define.
5196 (gdb_wait_h): Define.
5197 (gdb_regex_h): Define.
5198
5199 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5200
5201 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5202 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5203
5204 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5205
5206 * nbsd-tdep.c: Fix comment.
5207
5208 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5209
5210 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5211 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5212 (nbsd-tdep.o): New dependency list.
5213 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5214 nbsd-tdep.h.
5215 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5216 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5217 * nbsd-tdep.c: New file.
5218 * nbsd-tdep.h: New file.
5219 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5220 nbsd-tdep.h.
5221 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5222 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5223 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5224 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5225
5226 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5227
5228 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5229 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5230 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5231 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5232 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5233 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5234
5235 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5236
5237 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5238 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5239 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5240 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5241 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5242 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5243 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5244
5245 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5246
5247 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5248 fetch_elfcore_registers to...
5249 * i386nbsd-tdep.c: ...here.
5250 (i386nbsd_use_struct_convention): Rename to...
5251 (i386nbsd_aout_use_struct_convention): ...this.
5252 (i386nbsd_supply_reg): New function.
5253 (i386nbsd_fill_reg): New function.
5254 (fetch_core_registers): Use i386nbsd_supply_reg.
5255 (fetch_elfcore_registers): Likewise.
5256 (_initialize_i386nbsd_tdep): New function.
5257 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5258 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5259 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5260 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5261 (i386nbsd_aout_use_struct_convention): ...this.
5262
5263 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5264
5265 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5266 (store_inferior_registers): Use shnbsd_fill_reg.
5267 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5268 sh_nbsd_supply_register): Collapse into...
5269 (shnbsd_supply_reg): ...this.
5270 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5271 (shnbsd_fill_reg): ...this.
5272 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5273 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5274 (fetch_core_registers): Use shnbsd_supply_reg.
5275 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5276 (sh_nbsd_core_fns): Rename to...
5277 (shnbsd_core_fns): ...this.
5278 (sh_nbsd_elfcore_fns): Rename to...
5279 (shnbsd_elfcore_fns): ...this.
5280 (sh_nbsd_init_abi): Rename to...
5281 (shnbsd_init_abi): ...this.
5282 (_initialize_sh_nbsd_tdep): Rename to...
5283 (_initialize_shnbsd_tdep): ...this.
5284 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5285 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5286 sh_nbsd_fill_register): Remove prototypes.
5287 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5288
5289 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5290
5291 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5292 (i387-nat.o): Delete dependency list.
5293 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5294 (x86-64-linux-nat.o): Likewise.
5295 * i387-nat.c: Delete file, moving contents to...
5296 * i387-tdep.c: ...here.
5297 * i387-nat.h: Rename...
5298 * i387-tdep.h: ...to this.
5299 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5300 * i386-linux-nat.c: Likewise.
5301 * i386bsd-nat.c: Likewise.
5302 * i386gnu-nat.c: Likewise.
5303 * i386nbsd-nat.c: Likewise.
5304 * i386v4-nat.c: Likewise.
5305 * x86-64-linux-nat.c: Likewise.
5306 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5307 * config/i386/go32.mh (NATDEPFILES): Likewise.
5308 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5309 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5310 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5311 * config/i386/linux.mh (NATDEPFILES): Likewise.
5312 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5313 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5314 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5315 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5316
5317 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5318
5319 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5320 (alphanbsd-nat.o): Remove dependency list.
5321 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5322 * alphanbsd-nat.c: Delete. Contents moved to...
5323 * alphanbsd-tdep.c: ...here.
5324 (_initialize_alphanbsd_tdep): Register core functions.
5325 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5326
5327 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5328
5329 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5330 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5331 (alphanbsd-nat.o): Likewise.
5332 (alphabsd-tdep.o): New dependency list.
5333 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5334 (fill_gregset): Use alphabsd_fill_reg.
5335 (supply_fpregset): Use alphabsd_supply_fpreg.
5336 (fill_fpregset): Use alphabsd_fill_fpreg.
5337 (fetch_inferior_registers): Use struct reg and struct fpreg
5338 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5339 and alphabsd_supply_fpreg.
5340 (store_inferior_registers): Use struct reg and struct fpreg
5341 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5342 and alphabsd_fill_fpreg.
5343 * alphabsd-tdep.c: New file.
5344 * alphabsd-tdep.h: New file.
5345 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5346 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5347 alphabsd_supply_fpreg.
5348 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5349 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5350
5351 2002-05-11 Eric Christopher <echristo@redhat.com>
5352
5353 * mips-tdep.c (mips_double_register_type): Fix thinko.
5354 (mips_single_register_type): Ditto.
5355 * MAINTAINERS: Add self.
5356
5357 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5358
5359 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5360 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5361 right thing on architectures with different endianness and/or
5362 integer sizes.
5363
5364 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5365
5366 From Christian Limpach <chris@Pin.LU>
5367 * configure.in: Change sed expression which comments out
5368 NATDEPFILES to also comment out continuation lines.
5369 * configure: Regenerate.
5370
5371 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5372
5373 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5374 big patch.
5375
5376 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5377
5378 * sh-tdep.c: Include correct file.
5379
5380 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5381
5382 New support for sh64-elf (sh5) target.
5383
5384 * configure.tgt: For sh64-elf target, default to sh-elf.
5385
5386 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5387 (struct gdbarch_tdep): Add new fields for new registers and ABI
5388 info.
5389
5390 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5391 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5392 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5393 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5394 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5395 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5396 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5397 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5398 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5399 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5400 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5401 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5402 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5403 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5404 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5405 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5406 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5407 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5408 sign_extend, sh64_nofp_frame_init_saved_regs,
5409 sh64_init_extra_frame_info, sh64_get_saved_register,
5410 sh64_extract_struct_value_address, sh64_pop_frame,
5411 sh64_push_arguments, sh64_extract_return_value,
5412 sh64_store_return_value, sh64_show_media_regs,
5413 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5414 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5415 sh_sh64_register_virtual_type,
5416 sh_sh64_register_convert_to_virtual,
5417 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5418 sh64_register_read, sh64_pseudo_register_write,
5419 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5420 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5421 sh64_do_pseudo_register, sh_compact_do_registers_info,
5422 sh64_do_registers_info, sh_gdbarch_init): New functions.
5423
5424 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5425
5426 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5427
5428 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5429
5430 * linespec.c (decode_line_1): Check for a double quote after
5431 a filename correctly.
5432
5433 2002-05-10 Jim Blandy <jimb@redhat.com>
5434
5435 Properly track the size of the current objfile's .debug_line section.
5436 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5437 (DWARF_LINE_SIZE): New macro.
5438 (dwarf2_build_psymtabs_hard): Record the line section's size in
5439 the partial symbol table.
5440 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5441 symbol table.
5442
5443 2002-05-10 Petr Sorfa <petrs@caldera.com>
5444
5445 * ia64-tdep.c: Handle breakpoints on L instruction type
5446 in MLX instruction bundle by moving the breakpoint to
5447 the third slot (X instruction type) as L holds only data.
5448
5449 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5450
5451 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5452 (process_one_symbol): Complain about discarding local symbols
5453 due to a misplaced N_LBRAC entry.
5454
5455 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5456
5457 From Daniel Berlin <dan@cgsoftware.com>
5458 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5459 decrease the depth we are at, in the case of templates.
5460
5461 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5462
5463 * mips-tdep.c (mips_float_register_type): New function.
5464 (mips_double_register_type): New function.
5465 (mips_print_register): Use them.
5466 (do_fp_register_row): Likewise.
5467
5468 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5469
5470 * signals/signals.c (signals): Remove conditional compilation around
5471 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5472 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5473
5474 2002-05-09 Michael Snyder <msnyder@redhat.com>
5475
5476 * remote-rdp.c (remote_rdp_can_run): Remove.
5477
5478 2002-05-09 Tom Tromey <tromey@redhat.com>
5479
5480 * jv-valprint.c (java_val_print): Handle `char' as a special case
5481 of TYPE_CODE_INT.
5482
5483 2002-05-09 Michael Snyder <msnyder@redhat.com>
5484
5485 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5486 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5487 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5488 str r(0123),[sp,#nn].
5489 (arm_skip_prologue): Ditto. Also make disassembly
5490 order-independent by placing it in a loop.
5491
5492 2002-05-06 Michael Snyder <msnyder@redhat.com>
5493
5494 * stabsread.c (read_type): Add recognition for new attribute:
5495 "@V;" means that an array type is actually a vector.
5496 This is analogous to the vector flag that's been added to dwarf2.
5497
5498 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5499
5500 * i386-tdep.h (i386_abi): New enum.
5501 (struct gdbarch_tdep): Replace os_ident member with abi.
5502 (i386_gdbarch_register_os_abi): New prototype.
5503 * i386-tdep.c (i386_abi_names): New array.
5504 (process_note_abi_tag_sections): Removed.
5505 (process_note_sections): New function.
5506 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5507 (struct i386_abi_handler): New struct.
5508 (i386_abi_handler_list): New variable.
5509 (i386_gdbarch_register_os_abi): New function.
5510 (i386_gdbarch_init): Adapt for the changes given above.
5511
5512 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5513
5514 * gregset.h: Say "GNU/Linux".
5515
5516 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5517
5518 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5519 (build_gdbtypes): Build builtin_type_v2_float.
5520 (_initialize_gdbtypes): Register new builtin type.
5521
5522 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5523
5524 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5525 (clear_gdbarch_swap): New function.
5526 (initialize_non_multiarch): Call.
5527 (gdbarch_update_p): Before calling init(), swap out and clear the
5528 existing architecture.
5529 * gdbarch.c: Regenerate.
5530
5531 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5532
5533 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5534 alphanbsd-tdep.c.
5535
5536 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5537
5538 * sh-nbsd-nat.c: Rename to...
5539 * shnbsd-nat.c: ...this.
5540 * sh-nbsd-tdep.c: Rename to...
5541 * shnbsd-tdep.c: ...this.
5542 * sh-nbsd-tdep.h: Rename to...
5543 * shnbsd-tdep.h: ...this.
5544 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5545 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5546
5547 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5548
5549 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5550 concatenation for command help messages.
5551
5552 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5553
5554 * NEWS: Note new sh*-*-netbsdelf* configuration.
5555 * configure.host: Set gdb_host_cpu to sh for all sh*.
5556 (sh*-*-netbsdelf*): New host.
5557 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5558 (sh*-*-netbsdelf*): New target.
5559 * sh-nbsd-nat.c: New file.
5560 * sh-nbsd-tdep.c: New file.
5561 * sh-nbsd-tdep.h: New file.
5562 * config/sh/nbsd.mh: New file.
5563 * config/sh/nbsd.mt: New file.
5564 * config/sh/nm-nbsd.h: New file.
5565 * config/sh/tm-nbsd.h: New file.
5566
5567 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5568
5569 * sh-tdep.c (sh_osabi_names): Declare.
5570 (process_note_abi_tag_sections): New function.
5571 (get_elfosabi): Ditto.
5572 (sh_gdbarch_register_os_abi): Ditto.
5573 (sh_dump_tdep): Ditto.
5574 _initialize_sh_tdep): Use gdbarch_register to register
5575 sh_gdbarch_init and sh_dump_tdep.
5576 * config/sh/tm-sh.h (sh_osabi): Declare.
5577 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5578
5579 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5580
5581 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5582 (thumb_scan_prologue): Ditto.
5583 (arm_find_callers_reg): Ditto.
5584 (arm_frame_chain): Ditto.
5585 (arm_init_extra_frame_info): Ditto.
5586 (arm_frame_saved_pc): Ditto.
5587 (arm_pop_frame): Ditto.
5588 (arm_push_return_address): New function.
5589 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5590 call_dummy_location, call_dummy_breakpoint_offset_p,
5591 call_dummy_breakpoint_offset, call_dummy_p,
5592 call_dummy_stack_adjust_p, call_dummy_words,
5593 sizeof_call_dummy_words, call_dummy_start_offset,
5594 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5595 call_dummy_address, push_return_address and push_dummy_frame for
5596 generic dummy frames.
5597
5598 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5599
5600 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5601 size computation for alloca.
5602 (sh_fp_frame_init_saved_regs): Likewise.
5603
5604 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5605
5606 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5607 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5608 * arm-tdep.c (arm_store_return_value): Use them.
5609 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5610 * remote-rdp.c (remote_rdp_fetch_register): Use
5611 ARM_MAX_REGISTER_RAW_SIZE.
5612 (remote_rdp_store_register): Likewise.
5613
5614 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5615
5616 * dwarf2cfi.c: Code cleanup, removed unused variables,
5617 added default labels to switch {} statements.
5618 * x86-64-tdep.c: Ditto.
5619 * x86-64-linux-nat.c: Ditto.
5620
5621 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5622
5623 * solib.h: Protect against multiple inclusion.
5624
5625 2002-05-06 Jim Blandy <jimb@redhat.com>
5626
5627 Add first preprocessor macro-expansion files.
5628 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5629 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5630 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5631 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5632 (COMMON_OBS): Add macrotab.o, macroexp.o.
5633 (macroexp.o, macrotab.o): New rules.
5634
5635 Separate the job of reading the line number info statement program
5636 header (...expialidocious) out into its own function.
5637 * dwarf2read.c (struct line_head, struct filenames, struct
5638 directories): Replace with...
5639 (struct line_header): New structure, containing the full
5640 contents of the statement program header, including the
5641 include directory and file name tables.
5642 (read_file_scope): If we have line number info, instead of just
5643 calling dwarf_decode_lines to do all the work, call
5644 dwarf_decode_line_header first to get a `struct line_header'
5645 containing the data in the statement program header, and then
5646 pass that to dwarf_decode_lines, which will pick up where that
5647 left off. Be sure to clean up the `struct line_header' object.
5648 (dwarf_decode_line_header, free_line_header, add_include_dir,
5649 add_file_name): New functions.
5650 (dwarf_decode_lines): Move all the code to read the statement
5651 program header into dwarf_decode_line_header. Take the line
5652 header it built as the first argument, instead of the offset to
5653 the compilation unit's line number info. Use the new `struct
5654 line_header' type instead of the old structures. No need to do
5655 cleanups here now, since we don't allocate anything.
5656 (dwarf2_statement_list_fits_in_line_number_section,
5657 dwarf2_line_header_too_long): New complaints.
5658
5659 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5660
5661 * gdbtypes.c (init_vector_type): New function.
5662 (build_builtin_type_vec128): Simplify the representation of SIMD
5663 registers.
5664 (build_gdbtypes): Initialize new builtin vector types.
5665 (_initialize_gdbtypes): Register new vector types with gdbarch.
5666 (builtin_type_v4_float, builtin_type_v4_int32,
5667 builtin_type_v8_int16, builtin_type_v16_int8,
5668 builtin_type_v2_int32, builtin_type_v4_int16,
5669 builtin_type_v8_int8): New (renamed) SIMD types.
5670
5671 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5672
5673 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5674 (i387_fill_fxsave): Likewise.
5675
5676 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5677
5678 * alpha-tdep.c (alpha_extract_return_value): Don't use
5679 non-constant array size in prototype.
5680
5681 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5682
5683 From Brian Taylor <briant at model dot com>:
5684 * ui-out.c (ui_out_field_core_addr): Use the function
5685 longest_local_hex_string_custom'to format addresses > 32 bits
5686 wide.
5687
5688 * ui-out.c (ui_out_field_core_addr): Update comment.
5689
5690 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5691
5692 * stack.c (select_and_print_frame): Make static. Delete the
5693 parameter `level'.
5694 (func_command): Update call.
5695 (select_frame_command): Delete code computing the frame level.
5696 * frame.h (select_and_print_frame): Delete declaration.
5697
5698 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5699
5700 * sparc-tdep.c (sparc_get_saved_register): Comment why
5701 get_prev_frame call is safe.
5702
5703 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5704
5705 * frame.h (select_frame): Delete level parameter.
5706 * stack.c (select_frame): Update. Use frame_relative_level to
5707 obtain the frame's level.
5708 (select_and_print_frame): Update call.
5709 (select_frame_command): Ditto.
5710 (up_silently_base): Ditto.
5711 (down_silently_base): Ditto.
5712 * ocd.c (ocd_start_remote): Ditto.
5713 * remote-rdp.c (remote_rdp_open): Ditto.
5714 * remote-mips.c (mips_initialize): Ditto.
5715 (common_open): Ditto.
5716 * remote-e7000.c (e7000_start_remote): Ditto.
5717 * m3-nat.c (select_thread): Ditto.
5718 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5719 (child_get_current_exception_event): Ditto.
5720 * varobj.c (varobj_create): Ditto.
5721 (varobj_update): Ditto.
5722 (c_value_of_root): Ditto.
5723 * tracepoint.c (finish_tfind_command): Ditto.
5724 * corelow.c (core_open): Ditto.
5725 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5726 * thread.c (info_threads_command): Ditto.
5727 (switch_to_thread): Ditto.
5728 * infrun.c (normal_stop): Ditto.
5729 (restore_selected_frame): Ditto.
5730 (restore_inferior_status): Ditto.
5731 * breakpoint.c (insert_breakpoints): Ditto.
5732 (watchpoint_check): Ditto.
5733 (bpstat_stop_status): Ditto.
5734 (do_enable_breakpoint): Ditto.
5735 * blockframe.c (flush_cached_frames): Ditto.
5736 (reinit_frame_cache): Ditto.
5737
5738 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5739
5740 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5741 maintainer.
5742
5743 2002-05-04 Jim Blandy <jimb@redhat.com>
5744
5745 * gdbtypes.c (replace_type): Doc fix.
5746
5747 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5748
5749 * valprint.c (strcat_longest): Delete commented out function.
5750 Update copyright.
5751
5752 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5753
5754 * MAINTAINERS: Mark a29k as deleted.
5755 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5756 Move new configurations to the top.
5757 * configure.tgt: Remove a29k.
5758 * config/a29k/tm-vx29k.h: Delete.
5759 * config/a29k/vx29k.mt: Delete.
5760 * config/a29k/tm-a29k.h: Delete.
5761 * config/a29k/a29k-udi.mt: Delete.
5762 * config/a29k/a29k.mt: Delete.
5763 * a29k-tdep.c: Delete.
5764 * remote-udi.c: Delete.
5765 * remote-mm.c: Delete.
5766 * remote-eb.c: Delete.
5767 * remote-adapt.c: Delete.
5768 * Makefile.in: Remove obsolete code.
5769 * config/s390/s390x.mt: Ditto.
5770 * config/s390/s390.mt: Ditto.
5771 * config/sparc/sparclynx.mh: Ditto.
5772 * config/sparc/linux.mh: Ditto.
5773 * config/pa/hppaosf.mh: Ditto.
5774 * config/pa/hppabsd.mh: Ditto.
5775 * config/ns32k/nbsd.mt: Ditto.
5776 * config/mips/vr5000.mt: Ditto.
5777 * config/m68k/sun3os4.mh: Ditto.
5778 * config/m68k/nbsd.mt: Ditto.
5779 * config/m68k/m68klynx.mh: Ditto.
5780 * config/m32r/m32r.mt: Ditto.
5781 * config/i386/x86-64linux.mt: Ditto.
5782 * config/i386/nbsdelf.mt: Ditto.
5783 * config/i386/nbsd.mt: Ditto.
5784 * config/i386/i386lynx.mh: Ditto.
5785
5786 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5787
5788 * target.c (debug_print_register): New function. Handle oversize
5789 registers.
5790 (debug_to_fetch_registers): Call.
5791 (debug_to_store_registers): Call.
5792
5793 2002-05-03 Jim Blandy <jimb@redhat.com>
5794
5795 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5796 (read_type): Doc fix.
5797 * gdbtypes.c (replace_type): Doc fix.
5798
5799 * stabsread.c (multiply_defined_struct): New complaint.
5800 (read_struct_type): If the type we were passed isn't empty, or
5801 incomplete, don't read the new struct type into it; complain,
5802 and return the original type unchanged. Take a new `type_code'
5803 argument, which is the type code for the new type.
5804 (read_type): Rather than storing the type's type code here, pass
5805 it as an argument to read_struct_type, and let that take care of
5806 storing it. That way, we don't overwrite the original type code,
5807 so read_struct_type can use it to decide whether we're overwriting
5808 something we shouldn't.
5809 (complain_about_struct_wipeout): New function.
5810
5811 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5812
5813 * gdbarch.sh: Assert that gdbarch is non-NULL.
5814 * gdbarch.c: Regenerate.
5815
5816 2002-05-03 Jason Merrill <jason@redhat.com>
5817
5818 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5819 and return NULL.
5820
5821 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5822
5823 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5824 (x86_64_dwarf2gdb_regno_map_length),
5825 (x86_64_dwarf2_reg_to_regnum): Added.
5826 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5827 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5828 (_initialize_x86_64_tdep): Synced with the change above.
5829 (x86_64_skip_prologue): Reformulated message.
5830
5831 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5832
5833 * f-exp.y: Also use new prev_lexptr variable
5834 to improve error reporting. Based on Michael Snyder
5835 2002-04-24 dated patch to c-exp.y.
5836 * jv-exp.y: Likewise.
5837 * m2-exp.y: Likewise.
5838
5839 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5840
5841 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5842 we are dealing with vectors.
5843
5844 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5845
5846 * config/m68k/tm-nbsd.h: Obvious fix,
5847 correct machine name.
5848
5849 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5850
5851 * p-typeprint.c (pascal_type_print_base): Add support
5852 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5853
5854 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5855
5856 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5857 for fondamental pascal 'char' type.
5858
5859 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5860
5861 * p-lang.h (is_pascal_string_type): Declaration changed,
5862 new sixth argument of type char ** added.
5863 * p-lang.c (is_pascal_string_type): Implementation
5864 changed. Args length_pos, length_size, string_pos, char_size
5865 can now be NULL. New argument arrayname set to the field
5866 name of the char array. Return value set to char array
5867 field index plus one.
5868 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5869 is_pascal_string_type function.
5870
5871 2002-05-02 Andrew Cagney <cagney@redhat.com>
5872
5873 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5874 <cagney@redhat.com> change.
5875 * gdbarch.c: Regenerate.
5876
5877 2002-05-02 Andrew Cagney <cagney@redhat.com>
5878
5879 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5880 before probing for a new one. Detect errorenous gdbarch_init
5881 functions.
5882 * gdbarch.c: Regenerate.
5883
5884 2002-05-01 Andrew Cagney <cagney@redhat.com>
5885
5886 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5887 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5888 * config/v850/tm-v850.h: Ditto. Update copyright.
5889
5890 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5891
5892 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5893 current_gdbarch.
5894
5895 2002-04-30 Michael Snyder <msnyder@redhat.com>
5896
5897 * arm-tdep.c: Whitespace clean-ups.
5898 (arm_skip_prologue): Fix thinko; two lines
5899 should have been removed as part of 4/24 change.
5900
5901 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5902
5903 * rs6000-tdep.c: Added comment describing how fpscr register
5904 numbers were chosen.
5905
5906 2002-04-30 Michael Snyder <msnyder@redhat.com>
5907
5908 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5909
5910 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5911
5912 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5913 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5914 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5915
5916 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5917
5918 From Louis Hamilton <hamilton@redhat.com>:
5919 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5920 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5921 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5922 not bfd-private xcoff data, to determine wordsize.
5923 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5924
5925 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5926
5927 GDB 5.2 released from 5.2 branch.
5928
5929 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5930
5931 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5932 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5933 (x86_64_register_info_table): Added comments with register numbers.
5934
5935 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5936
5937 * rs6000-tdep.c (rs6000_extract_return_value,
5938 rs6000_store_return_value): Handle returning vectors.
5939 (rs6000_gdbarch_init): Use
5940 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5941 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5942 New function.
5943 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5944 vectors.
5945 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5946 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5947
5948 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5949
5950 * hpread.c (hpread_psymtab_to_symtab_1,
5951 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5952 with fprintf_unfiltered (gdb_stderr,...).
5953
5954 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5955
5956 * remote-array.c (printf_monitor, write_monitor,
5957 array_insert_breakpoint, array_remove_breakpoint ):
5958 Replace fprintf (stderr,...
5959 with fprintf_unfiltered (gdb_stderr,....
5960 * remote-es.c: Likewise.
5961 * remote-os9k.c: Likewise.
5962 * remote-st.c: Likewise.
5963
5964 2002-04-28 Andreas Schwab <schwab@suse.de>
5965
5966 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5967 linux-proc.o and gcore.o.
5968
5969 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5970
5971 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5972 code without frame pointers.
5973
5974 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5975
5976 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5977 ON_STACK is needed.
5978
5979 2002-04-26 Ben Elliston <bje@redhat.com>
5980
5981 * target.c (do_xfer_memory): Correct reference to the new option
5982 "trust-readonly-sections".
5983
5984 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5985
5986 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5987 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5988 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5989 vectors.
5990 (read_array_type): Record the fact that this array type is really a
5991 vector (i.e. are passed in by value).
5992
5993 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5994
5995 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5996 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5997 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5998 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5999 * alpha-linux-tdep.c: Include frame.h.
6000 (alpha_linux_sigcontext_addr): New function.
6001 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6002 alpha_linux_sigcontext_addr.
6003 * alpha-osf1-tdep.c: Include gdbcore.h.
6004 (alpha_osf1_sigcontext_addr): New function.
6005 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6006 alpha_osf1_sigcontext_addr.
6007 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6008 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6009
6010 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6011
6012 * stack.c (selected_frame_level):
6013 (select_frame): Do not set selected_frame_level.
6014 * frame.h (selected_frame_level): Delete declaration.
6015
6016 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6017
6018 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6019 convert_from_func_ptr-addr when AIX / PowerOpen.
6020
6021 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6022
6023 * valops.c (hand_function_call): Call
6024 generic_save_call_dummy_addr.
6025 * frame.h (generic_save_call_dummy_addr): Declare.
6026 * blockframe.c (struct dummy_frame): Add fields call_lo and
6027 call_hi.
6028 (generic_find_dummy_frame): Check for PC in range call_lo to
6029 call_hi instead of entry_point_address.
6030 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6031 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6032 (generic_save_call_dummy_addr): New function.
6033
6034 2002-04-24 David S. Miller <davem@redhat.com>
6035
6036 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6037 sparc_skip_prologue.
6038 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6039 information to find prologue when possible.
6040 (sparc_prologue_frameless_p): Call examine_prologue directly.
6041 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6042 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6043 second argument.
6044 (SKIP_PROLOGUE): Likewise.
6045
6046 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6047
6048 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6049 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6050 indicate that the condition it was testing is always true.
6051 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6052 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6053 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6054
6055 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6056
6057 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6058 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6059 tdep->jb_pc and tdep->jb_elt_size.
6060 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6061 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6062 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6063 * alpha-nat.c (get_longjmp_target): Remove.
6064 (JB_ELEMENT_SIZE): Ditto.
6065 (JB_PC): Ditto.
6066 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6067 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6068 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6069 to alpha_get_longjmp_target.
6070 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6071 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6072 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6073
6074 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6075
6076 * README: Update to GDB 5.2.
6077
6078 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6079
6080 * gdbarch.sh (LC_ALL): Set to `c'.
6081
6082 2002-04-25 Theodore A. Roth <troth@verinet.com>
6083
6084 * avr-tdep.c: Ran through gdb_indent.sh.
6085
6086 2002-04-25 Theodore A. Roth <troth@verinet.com>
6087
6088 * MAINTAINERS: Add myself as AVR maintainer.
6089 * NEWS: Note new target avr.
6090
6091 2002-04-25 Theodore A. Roth <troth@verinet.com>
6092
6093 * Makefile.in: Add support for AVR target.
6094 * configure.tgt: Add support for AVR target.
6095 * avr-tdep.c: New file
6096 * config/avr/avr.mt: New file.
6097
6098 2002-04-25 Theodore A. Roth <troth@verinet.com>
6099
6100 * MAINTAINERS: Add myself to write-after-approval.
6101
6102 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6103
6104 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6105 with fprintf_unfiltered (gdb_stderr,....
6106
6107 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6108
6109 Fix PR gdb/508.
6110 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6111
6112 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6113
6114 * p-exp.y: Also use new prev_lexptr variable
6115 to improve error reporting. Based on Michael Snyder
6116 2002-04-24 dated patch to c-exp.y.
6117
6118 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6119
6120 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6121 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6122 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6123 to 0.
6124 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6125 and struct value.
6126 (FUNCTION_START_OFFSET): Remove.
6127 (BREAKPOINT): Ditto.
6128
6129 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6130
6131 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6132 * NEWS: Ditto.
6133
6134 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6135
6136 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6137 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6138 alpha_linux_pc_in_sigtramp.
6139 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6140 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6141 alpha_osf1_pc_in_sigtramp.
6142 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6143 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6144 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6145 alphafbsd_pc_in_sigtramp.
6146 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6147 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6148 alphanbsd_pc_in_sigtramp.
6149 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6150 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6151
6152 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6153
6154 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6155
6156 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6159 alphanbsd-tdep.c.
6160 (alphanbsd-nat.o): New dependency list.
6161 (alphanbsd-tdep.o): Ditto.
6162 * NEWS: Note new native NetBSD/alpha configuration.
6163 * alphanbsd-nat.c: New file.
6164 * alphanbsd-tdep.c: Ditto.
6165 * configure.host (alpha*-*-netbsd*): New host.
6166 * configure.tgt (alpha*-*-netbsd*): New target.
6167 * config/alpha/nbsd.mh: New file.
6168 * config/alpha/nbsd.mt: Ditto.
6169 * config/alpha/nm-nbsd.h: Ditto.
6170 * config/alpha/tm-nbsd.h: Ditto.
6171
6172 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6173
6174 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6175 (alpha-osf1-tdep.o): New dependency list.
6176 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6177 and skip_sigtramp_frame members.
6178 * alpha-linux-tdep.c: Include gdbcore.h.
6179 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6180 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6181 * alpha-osf1-tdep.c: New file.
6182 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6183 alpha-osf1-dep.c.
6184 (alpha_frame_past_sigtramp_frame): New function.
6185 (alpha_dynamic_sigtramp_offset): Ditto.
6186 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6187 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6188 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6189 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6190 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6191 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6192 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6193 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6194 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6195 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6196 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6197 to find_solib_trampoline_target.
6198 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6199 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6200 (SKIP_TRAMPOLINE_CODE): Remove.
6201 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6202 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6203 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6204 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6205 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6206 (PROC_SIGTRAMP_MAGIC): Ditto.
6207 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6208 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6209 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6210 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6211 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6212
6213 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6214
6215 * NEWS: Note that Alpha targets are now multi-arch.
6216
6217 2002-04-24 Michael Snyder <msnyder@redhat.com>
6218
6219 * parser-defs.h (prev_lexptr): New external variable.
6220 * parse.c (parse_exp_1): Set prev_lexptr to null before
6221 calling the language-specific parser.
6222 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6223 (yyerror): Use prev_lexptr in error reporting.
6224
6225 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6226
6227 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6228 * gregset.h: If FILL_FPXREGSET is defined, provide
6229 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6230 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6231 is defined, call fill_fpxregset.
6232
6233 2002-04-24 Roland McGrath <roland@frob.com>
6234
6235 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6236 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6237 (supply_gregset, supply_fpregset): New functions.
6238
6239 * gnu-nat.c (gnu_find_memory_regions): New function.
6240 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6241 (gnu_xfer_memory): Add a cast.
6242
6243 2002-04-24 Michael Snyder <msnyder@redhat.com>
6244
6245 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6246 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6247 of argument regs ("str r(0123), [r11, #-nn"]).
6248 (arm_skip_prologue): Better handling for frameless functions.
6249 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6250 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6251
6252 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6253
6254 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6255 NUM_PSEUDO_REGS can be used.
6256
6257 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6258
6259 * arch-utils.h: Update copyright.
6260
6261 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6262 * gdbarch.h, gdbarch.c: Re-generate.
6263
6264 * inferior.h (IN_SIGTRAMP): Delete definition.
6265 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6266 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6267
6268 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6269 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6270 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6271 (find_proc_framesize): Ditto.
6272 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6273 (alpha_init_extra_frame_info): Ditto.
6274 * infrun.c (handle_inferior_event): Ditto.
6275 (handle_inferior_event): Ditto.
6276 (check_sigtramp2): Ditto.
6277 * blockframe.c (create_new_frame): Ditto.
6278 (get_prev_frame): Ditto.
6279 * ppc-linux-tdep.c: Update comments.
6280 * i386-linux-tdep.c: Update comments.
6281 * breakpoint.c (bpstat_what): Update comment.
6282
6283 2002-04-24 David S. Miller <davem@redhat.com>
6284
6285 * i960-tdep.c (register_in_window_p): New function.
6286 (i960_find_saved_register): Use it instead of
6287 REGISTER_IN_WINDOW_P.
6288 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6289
6290 * symtab.h (find_stab_function_addr): Kill extern.
6291 * minsyms.c (find_stab_function_addr): Remove from here...
6292 * dbxread.c: ... to here, and mark it static.
6293
6294 2002-04-20 David S. Miller <davem@redhat.com>
6295
6296 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6297 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6298
6299 2002-04-21 David S. Miller <davem@redhat.com>
6300
6301 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6302 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6303 (vx_write_register): Likewise.
6304
6305 2002-04-23 J. Brobecker <brobecker@gnat.com>
6306
6307 * source.c (is_regular_file): New function.
6308 (openp): Check wether file to open is a regular file
6309 to avoid opening directories.
6310
6311 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6312
6313 * findvar.c (extract_signed_integer): Cast printf argument
6314 to suppress format warning.
6315 (extract_unsigned_integer): Likewise.
6316 * infcmd.c (registers_info): Likewise.
6317 * top.c (get_prompt_1): Likewise.
6318 * valops.c (value_assign): Likewise.
6319 * valprint.c (print_decimal): Likewise.
6320
6321 2002-04-22 H.J. Lu (hjl@gnu.org)
6322
6323 * c-exp.y (typebase): Support
6324
6325 [long|long long|short] [signed|unsigned] [int|]
6326
6327 and
6328
6329 signed [long|long long|short] int
6330
6331 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6332
6333 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6334 and vax-tdep.h.
6335 * vax-tdep.h: New file.
6336 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6337 Make several routines static.
6338 (vax_get_saved_register): New function.
6339 (vax_gdbarch_init): New function.
6340 (_initialize_vax_tdep): Register vax_gdbarch_init.
6341 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6342 Remove macros now under the control of gdbarch.
6343
6344 2002-04-22 Michael Snyder <msnyder@redhat.com>
6345
6346 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6347 Some whitespace and coding standards tweaks.
6348
6349 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6350
6351 * vax-tdep.c: Include regcache.h.
6352 (vax_call_dummy_words): New.
6353 (sizeof_vax_call_dummy_words): New.
6354 (vax_fix_call_dummy): New function.
6355 (vax_saved_pc_after_call): Ditto.
6356 * config/vax/tm-vax.h: Don't include regcache.h.
6357 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6358 (CALL_DUMMY): Remove.
6359 (CALL_DUMMY_WORDS): Define.
6360 (SIZEOF_CALL_DUMMY_WORDS): Define.
6361 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6362
6363 2002-04-18 Michael Snyder <msnyder@redhat.com>
6364
6365 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6366
6367 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6368
6369 * vax-tdep.c (vax_frame_chain): New function.
6370 (vax_push_dummy_frame): Ditto.
6371 (vax_pop_frame): Ditto.
6372 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6373 (FRAMELESS_FUNCTION_INVOCATION): Use
6374 generic_frameless_function_invocation_not.
6375 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6376 (POP_FRAME): Use vax_pop_frame.
6377
6378 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6379
6380 * vax-tdep.c (vax_store_struct_return): New function.
6381 (vax_extract_return_value): Ditto.
6382 (vax_store_return_value): Ditto.
6383 (vax_extract_struct_value_address): Ditto.
6384 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6385 vax_store_struct_return.
6386 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6387 (STORE_RETURN_VALUE): Use vax_store_return_value.
6388 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6389
6390 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6391
6392 * vax-tdep.c (vax_frame_saved_pc): New function.
6393 (vax_frame_args_address_correct): Ditto.
6394 (vax_frame_args_address): Ditto.
6395 (vax_frame_locals_address): Ditto.
6396 (vax_frame_num_args): Move code to be in proximity to
6397 other frame-related functions.
6398 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6399 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6400 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6401 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6402 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6403
6404 2002-04-22 H.J. Lu (hjl@gnu.org)
6405
6406 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6407 includedir.
6408
6409 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6410
6411 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6412 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6413 (FRAME_INIT_SAVED_REGS): New macro.
6414
6415 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6416
6417 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6418
6419 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6420
6421 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6422 where needed.
6423 (fetch_osf_core_registers): Likewise.
6424 (supply_gregset): Likewise.
6425
6426 2002-04-22 J. Brobecker <brobecker@gnat.com>
6427
6428 * symfile.h (get_section_index): Define.
6429 * symfile.c (get_section_index): New function.
6430 * mdebugread.c (SC_IS_SBSS): New macro.
6431 (SC_IS_BSS): Return true for the scBss storage class only, as
6432 the scSBss storage class refers to the .sbss section.
6433 (parse_partial_symbols): Discard the symbols which associated
6434 section does not exist.
6435 Make sure to use the .sbss section index for symbols which
6436 storage class is scBss, rather than using the .bss section index.
6437
6438 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6439
6440 * vax-tdep.c: Update copyright years.
6441 (vax_register_name): New function.
6442 (vax_register_byte): Ditto.
6443 (vax_register_raw_size): Ditto.
6444 (vax_register_virtual_size): Ditto.
6445 (vax_register_virtual_type): Ditto.
6446 * config/vax/tm-vax.h: Update copyright years.
6447 (REGISTER_NAMES): Remove.
6448 (REGISTER_NAME): Define.
6449 (REGISTER_BYTE): Use vax_register_byte.
6450 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6451 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6452 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6453
6454 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6455
6456 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6457 declaration
6458 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6459
6460 2002-04-21 David S. Miller <davem@redhat.com>
6461
6462 * arch-utils.c (generic_prologue_frameless_p): Kill
6463 SKIP_PROLOGUE_FRAMELESS_P code.
6464 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6465 references.
6466 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6467 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6468 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6469 references.
6470 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6471 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6472 (sparc_gdbarch_init): Pass it to
6473 set_gdbarch_prologue_frameless_p.
6474
6475 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6476
6477 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6478 (alphabsd-nat.o): New dependency list.
6479
6480 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6481
6482 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6483 alphafbsd-tdep.c.
6484 (alpha-linux-tdep.o): New dependency list.
6485 (alphafbsd-tdep.o): Likewise.
6486
6487 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6488
6489 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6490 to here...
6491 * alpha-tdep.c: ...from here.
6492 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6493
6494 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6495
6496 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6497 prototype from here...
6498 * alpha-tdep.h: ...to here.
6499
6500 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6501
6502 * frame.h (selected_frame_level): Document as deprecated.
6503 (frame_relative_level): Declare.
6504 * stack.c (frame_relative_level): New function.
6505 (selected_frame_level): Document as deprecated.
6506 (select_frame): Do not set the selected_frame_level.
6507
6508 * stack.c (frame_info, record_selected_frame): Update.
6509 (frame_command, current_frame_command): Update.
6510 (up_silently_base, up_command, down_silently_base): Update.
6511 (down_command): Update.
6512 * inflow.c (kill_command): Update.
6513 * tracepoint.c (finish_tfind_command): Update.
6514 * corelow.c (core_open): Update.
6515 * thread.c (info_threads_command): Update.
6516 (do_captured_thread_select): Update.
6517 * infcmd.c (finish_command): Update.
6518 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6519
6520 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6521
6522 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6523
6524 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6525
6526 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6527 type const.
6528
6529 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6530
6531 * alphafbsd-tdep.c: Update copyright years. Include
6532 alpha-tdep.h.
6533 (alphafbsd_use_struct_convention): Make static.
6534 (alphafbsd_init_abi): New function.
6535 (_initialize_alphafbsd_tdep): New function.
6536 * config/alpha/tm-fbsd.h: Update copyright years.
6537 (USE_STRUCT_CONVENTION): Remove.
6538
6539 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6540
6541 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6542 an Alpha ABI variant.
6543 (alpha_abi_handler_list): Declare.
6544 (alpha_gdbarch_register_os_abi): New function.
6545 (alpha_gdbarch_init): Give registered ABI variant handlers a
6546 chance to tweak the gdbarch once we have set up defaults.
6547 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6548
6549 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6550
6551 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6552 to standard_coerce_float_to_double.
6553 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6554
6555 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6556
6557 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6558 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6559 from gdbarch_tdep rather than a constant.
6560 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6561 the default text address for all Alpha Unix ABIs.
6562 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6563 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6564
6565 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6566
6567 * alpha-tdep.h: New file. Includes several Alpha target constants
6568 taken from...
6569 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6570 let gdbarch deal with.
6571 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6572 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6573 to dependency list.
6574 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6575 Alpha target register names.
6576 * alphabsd-nat.c: Likewise.
6577 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6578 Alpha target register names. Make serveral routines static.
6579 (alpha_get_saved_register): New function.
6580 (alpha_abi_names): New.
6581 (process_note_abi_tag_sections): New function.
6582 (get_elfosabi): New function.
6583 (alpha_gdbarch_init): New function.
6584 (alpha_dump_tdep): New function.
6585 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6586
6587 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6588
6589 * frame.c (find_saved_register): Delete #ifdef
6590 HAVE_REGISTER_WINDOWS code.
6591 * config/sparc/tm-sparc.h: Update comments.
6592 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6593
6594 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6595
6596 * i960-tdep.c (i960_find_saved_register): New function.
6597 (i960_get_saved_register): New function.
6598 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6599 (i960_get_saved_register): Declare.
6600 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6601
6602 2002-04-20 David S. Miller <davem@redhat.com>
6603
6604 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6605
6606 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6607
6608 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6609 instead of NUM_PSEUDO_REGS.
6610
6611 2002-04-20 David S. Miller <davem@redhat.com>
6612
6613 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6614 GDB_MULTI_ARCH_PARTIAL
6615 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6616 define, let tm-sp64.h do it.
6617
6618 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6619
6620 * frame.c (find_saved_register): Avoid a NULL pointer
6621 dereference and actually walk the frame list.
6622
6623 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6624
6625 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6626 sorted in most most-recent-used order. Document.
6627 * gdbarch.h, gdbarch.c: Regenerate.
6628
6629 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6630
6631 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6632 instead of ->prev.
6633 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6634 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6635 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6636 instead of ->prev.
6637
6638 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6639
6640 Fix PR gdb/471.
6641 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6642 (build_builtin_type_vec128): Ditto.
6643 (append_composite_type_field): Fix calculation of type length in
6644 union case.
6645
6646 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6647
6648 * config/djgpp/README: Update.
6649
6650 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6651 compiler warnings.
6652
6653 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6654
6655 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6656 (alpha_setup_arbitrary_frame): ...to this.
6657 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6658 for alpha_setup_arbitrary_frame.
6659
6660 2002-04-18 Andrew Cagney <cagney@redhat.com>
6661
6662 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6663 * gdbarch.h, gdbarch.c: Regenerate.
6664
6665 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6666 * target.h (memory_breakpoint_from_pc): Update declaration.
6667 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6668
6669 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6670 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6671 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6672 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6673 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6674 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6675 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6676 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6677 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6678 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6679 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6680 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6681
6682 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6683 const pointer.
6684 * monitor.c (monitor_insert_breakpoint): Ditto.
6685 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6686
6687 * config/mcore/tm-mcore.h: Update copyright.
6688 * mem-break.c: Ditto.
6689 * xstormy16-tdep.c: Ditto.
6690
6691 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6692
6693 * p-exp.y: Add precedence rule for '^' token.
6694 This removes the shift/reduce conflicts.
6695 Remove the comment concerning these shift/reduce conflicts.
6696
6697 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6698
6699 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6700 (registers_powerpc_nofp): New register set for processors
6701 without floating point unit.
6702
6703 2002-04-18 David S. Miller <davem@redhat.com>
6704
6705 * MAINTAINERS: Add myself to write-after-approval.
6706
6707 2002-04-17 Michael Snyder <msnyder@redhat.com>
6708
6709 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6710
6711 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6712
6713 * rs6000-tdep.c (frame_initial_stack_address): Use
6714 frame_register_read to read the alloca_reg.
6715
6716 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6717
6718 * frame.c (find_saved_register): Find saved registers in the next
6719 not prev frame.
6720 Fix PR gdb/365.
6721
6722 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6723
6724 * gdbarch.sh (LANG): Set to ``c''.
6725
6726 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6727
6728 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6729
6730 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6731
6732 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6733 Update copyright.
6734
6735 * hpread.c (hpread_get_lntt): Add declaration.
6736 Also fix PR gdb/391.
6737
6738 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6739
6740 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6741 * aclocal.m4, configure: Re-generate.
6742 Fix PR gdb/391.
6743
6744 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6745
6746 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6747 instead of tm_print_insn.
6748
6749 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6750
6751 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6752
6753 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6754
6755 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6756 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6757 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6758
6759 2002-04-12 Don Howard <dhoward@redhat.com>
6760
6761 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6762 max_user_call_depth.
6763 (init_cmd_lists): Initialize the new value;
6764 * cli/cli-script.c (execute_user_command): Limit the call depth of
6765 user defined commands. This avoids a core-dump when user commands
6766 are infinitly recursive.
6767
6768 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6769
6770 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6771 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6772 from tdep struct instead of DEFAULT_LR_SAVE.
6773 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6774 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6775 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6776
6777 2002-04-12 Michael Snyder <msnyder@redhat.com>
6778
6779 * Remote.c: Spelling fix.
6780 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6781 If no symbol found for "sbrk", try "_sbrk".
6782 (make_output_phdrs): Use bfd_section_name.
6783 (gcore_copy_callback): Use bfd_section_name.
6784 * eval.c: Indentation fix-ups.
6785 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6786 in case it gets applied to an address that is already
6787 in the instruction space.
6788 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6789 * symfile.c: Fix indentation, long lines.
6790 * source.c: White space fix-up.
6791
6792 2002-04-12 Andrew Cagney <cagney@redhat.com>
6793
6794 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6795 * frame.c (frame_register_read): New function. Return non-zero on
6796 success.
6797 (read_relative_register_raw_bytes_for_frame): Delete.
6798 (read_relative_register_raw_bytes): Delete.
6799 * frame.h (frame_register_read): Declare.
6800 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6801 * sh-tdep.c: Ditto.
6802 * infcmd.c (do_registers_info): Ditto.
6803 * hppa-tdep.c: Ditto.
6804 * rs6000-tdep.c: Ditto.
6805 * h8500-tdep.c: Ditto.
6806 * mips-tdep.c: Ditto.
6807 * h8300-tdep.c: Ditto.
6808 * z8k-tdep.c: Ditto.
6809
6810 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6811
6812 From Jimi X <jimix@watson.ibm.com>:
6813 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6814 64-bit SysV ABI.
6815
6816 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6817
6818 From Jimi X <jimix@watson.ibm.com>:
6819 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6820 bfd info.
6821
6822 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6823
6824 From Jimi X <jimix@watson.ibm.com>:
6825 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6826 register sets for these processor variants.
6827
6828 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6829
6830 * regformats/reg-ppc.dat: Support FPSCR.
6831
6832 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6833
6834 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6835 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6836 Add fpscr as an invalid/unfetchable register.
6837 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6838 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6839 (fill_fpregset): Add support for register fpscr.
6840 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6841 (fill_gregset): Account for the fact that register ``mq'' might
6842 not exist.
6843 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6844 (registers_power): Add fpscr to register set at slot 71.
6845 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6846 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6847
6848 2002-04-11 Michael Snyder <msnyder@redhat.com>
6849
6850 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6851 * configure: Regenerate.
6852 * config.in: Regenerate.
6853 * acconfig.h: Add define for _SYSCALL32.
6854 * core-sol2.c: Remove #define _SYSCALL32.
6855 * solib-legacy.c: Remove #define _SYSCALL32.
6856
6857 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6858
6859 * stack.c (select_frame): Cleanup internal error message, do not
6860 use %p.
6861
6862 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6863
6864 * stack.c (select_frame): Check that selected_frame and the
6865 specified level are as expected.
6866 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6867 Update copyright.
6868 * frame.h (struct frame_info): Add field `level'. Update
6869 copyright.
6870 Work-in-progress PR gdb/464.
6871
6872 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6873
6874 * maint.c (maint_print_section_info): Rename print_section_info.
6875 (print_bfd_section_info, print_objfile_section_info): Update.
6876 * inferior.h (struct gdbarch): Add opaque declaration.
6877 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6878 * gdbarch.h: Regenerate.
6879
6880 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6881
6882 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6883 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6884 (kernel_u_size): Added.
6885 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6886 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6887
6888 2002-04-04 Jim Ingham <jingham@apple.com>
6889
6890 * valarith.c (find_size_for_pointer_math): New function, either returns
6891 the size for a pointer's target, returns 1 for void *, or errors for
6892 incomplete types.
6893 (value_add, value_sub): use find_size_for_pointer_math.
6894
6895 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6896
6897 * linux-low.c (linux_look_up_symbols): New hook.
6898 (linux_target_ops): Add linux_look_up_symbols.
6899 * remote-utils.c (decode_address): New function.
6900 (look_up_one_symbol): New function.
6901 * server.c (handle_query): Call target look_up_symbols hook.
6902 * server.h (look_up_one_symbol): Add prototype.
6903 * target.h (struct target_ops): Add look_up_symbols hook.
6904
6905 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6906
6907 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6908 override FP_REGNUM with frame->fp. Update copyright.
6909 * parse.c (num_std_regs, std_regs): Delete.
6910 (target_map_name_to_register): Do not search std_regs. Update
6911 function description.
6912 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6913 declarations. Update copyright.
6914 Fix PR gdb/251.
6915
6916 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6917
6918 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6919 after the last symbol in a block.
6920
6921 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6922
6923 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6924 is non zero as a found symbol.
6925
6926 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6927
6928 * findvar.c: Include "builtin-regs.h".
6929 (value_of_register): Call value_of_builtin_reg when applicable.
6930 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6931 (target_map_name_to_register): Call
6932 builtin_reg_map_name_to_regnum.
6933 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6934 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6935 (builtin_regs_h): Define.
6936 (builtin-regs.o): New target.
6937 (findvar.o): Add $(builtin_regs_h).
6938 * builtin-regs.c, builtin-regs.h: New files.
6939 * std-regs.c: New file.
6940 Partial fix for PR gdb/251.
6941
6942 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6943
6944 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6945 it's no longer required.
6946
6947 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6948
6949 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6950
6951 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6952
6953 From Jimi X <jimix@watson.ibm.com>:
6954 * rs6000-tdep.c (rs6000_software_single_step): Use
6955 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6956 and size. Use target_insert_breakpoint() and
6957 target_remove_breakpoint() to insert and remove breakpoints
6958 instead of explicit memory reads and writes.
6959
6960 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6961
6962 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6963 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6964 ELF_OBJECT_FORMAT ifdef.
6965
6966 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6967
6968 From Jimi X <jimix@watson.ibm.com>:
6969 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6970
6971 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6972
6973 From Jimi X <jimix@watson.ibm.com>:
6974 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6975 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6976
6977 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6978
6979 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6980 s/asprintf/xasprintf/.
6981 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6982
6983 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6984
6985 I believe Jeff Law denies responsability for this one:
6986 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6987 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6988 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6989 Work-around for PR gdb/366.
6990
6991 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6992
6993 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6994 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6995 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6996
6997 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6998
6999 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7000 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7001 information.
7002
7003 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7004
7005 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7006 maintainer.
7007
7008 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7009
7010 * README (Reporting Bugs in GDB): Document the bug web page as the
7011 prefered way of submitting bugs.
7012 Fix PR gdb/402.
7013
7014 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7015
7016 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7017 -1. Update comment.
7018 * gdbarch.h, gdbarch.c: Re-generate.
7019
7020 2002-04-07 Andreas Schwab <schwab@suse.de>
7021
7022 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7023 buffer to regcache_collect.
7024
7025 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7026
7027 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7028 * gdbarch.c, gdbarch.h: Re-generate.
7029
7030 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7031
7032 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7033 declaration. Fix -Werror.
7034
7035 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7036
7037 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7038 * gdbarch.c: Regenerate.
7039
7040 2002-04-05 Michael Snyder <msnyder@redhat.com>
7041
7042 * breakpoint.c (clear_command): Rewrite middle section to
7043 combine two loops with identical control conditions.
7044 Add a cleanup to eliminate a memory leak.
7045 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7046
7047 2002-04-05 H.J. Lu (hjl@gnu.org)
7048
7049 * solib-svr4.c (bkpt_names): Add "__start".
7050
7051 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7052
7053 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7054 as test for 64 bit target.
7055
7056 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7057
7058 * h8500-tdep.c (h8500_write_fp): Delete function.
7059 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7060 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7061 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7063 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7064 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7065 (s390_write_fp):
7066 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7067 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7068 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7069 (d10v_write_fp): Delete function.
7070 * inferior.h (write_fp, generic_target_write_fp): Delete
7071 declarations.
7072 * regcache.c (generic_target_write_fp): Delete function.
7073 (write_fp): Delete function.
7074 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7075 * gdbarch.h, gdbarch.c: Regenerate.
7076 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7077 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7078 (sparc64_write_fp): Delete declaration.
7079 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7080 (h8500_write_fp): Delete declaration.
7081
7082 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7083
7084 * sparc-tdep.c (sparc64_write_fp): Delete.
7085 (sparc_push_dummy_frame): Replace write_fp call with code to store
7086 the FP directly.
7087 (sparc_gdbarch_init): Do not initialize write_fp.
7088
7089 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7090
7091 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7092 clause.
7093
7094 2002-03-29 Jim Blandy <jimb@redhat.com>
7095
7096 * stack.c (get_selected_block): Add new argument `addr_in_block',
7097 used to return the exact code address we used to select the block,
7098 not just the block.
7099 * blockframe.c (get_frame_block, get_current_block): Same.
7100 * frame.h (get_frame_block, get_current_block,
7101 get_selected_block): Update declarations.
7102 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7103 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7104
7105 2002-04-05 Michael Snyder <msnyder@redhat.com>
7106
7107 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7108 warning message.
7109
7110 2002-04-05 J. Brobecker <brobecker@gnat.com>
7111
7112 * utils.c (xfullpath): New function.
7113 * defs.h (xfullpath): Add declaration.
7114 * source.c (openp): Use xfullpath in place of gdb_realpath to
7115 avoid resolving the basename part of filenames when the
7116 associated file is a symbolic link. This fixes a potential
7117 inconsistency between the filenames known to GDB and the
7118 filenames it prints in the annotations.
7119 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7120 to be able to match a filename with either the real filename, or
7121 the name of any symbolic link to this file.
7122 (lookup_partial_symtab): Ditto.
7123
7124 2002-04-04 Michael Snyder <msnyder@redhat.com>
7125
7126 * breakpoint.c: Add support for hardware breakpoints in overlays.
7127 (overlay_events_enabled): New state variable.
7128 (insert_breakpoints): Use overlay_events_enabled to decide
7129 whether to attempt to set a breakpoint at the overlay load addr.
7130 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7131 (remove_breakpoint): Use overlay_events_enabled to decide
7132 whether breakpoints need to be removed from overlay load addr.
7133 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7134 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7135 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7136 disable_overlay_breakpoints): Update overlay_events_enabled.
7137
7138 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7139
7140 * dwarf2read.c (struct function_range): New.
7141 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7142 (check_cu_functions): New.
7143 (read_file_scope): Initialize global function lists.
7144 Call dwarf_decode_line after processing children.
7145 (read_func_scope): Add to global function list.
7146 (dwarf_decode_lines): Call check_cu_functions everywhere
7147 record_line is called. Call record_line with a linenumber
7148 of 0 to mark sequence ends.
7149
7150 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7151
7152 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7153 change sync with glibc.
7154
7155 2002-04-03 Jim Blandy <jimb@redhat.com>
7156
7157 * configure.in: Call AC_C_INLINE.
7158 * configure: Regenerated.
7159
7160 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7161
7162 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7163 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7164
7165 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7166
7167 * NEWS: Mention gcore support on FreeBSD/i386.
7168
7169 * fbsd-proc.c: New file.
7170 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7171 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7172
7173 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7174 while statement.
7175
7176 2002-03-29 Jim Blandy <jimb@redhat.com>
7177
7178 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7179 unescaped newlines in string literals, but newer ones don't. So
7180 escape them.
7181
7182 2002-03-26 Michael Snyder <msnyder@redhat.com>
7183 Andrew Cagney <cagney@redhat.com>
7184
7185 * cli/cli-dump.c: New file. Dump memory to file,
7186 restore file to memory.
7187 * cli/cli-dump.h: New file.
7188 * Makefile.in: Add rules, dependencies for cli-dump.o.
7189 * NEWS: Mention new commands.
7190
7191 2002-03-28 Michael Snyder <msnyder@redhat.com>
7192
7193 * symfile.c (symbol_file_add): Move test for null symbols to later.
7194
7195 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7196
7197 From veksler at il.ibm.com:
7198 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7199 the xstrduped original path.
7200 Fix PR gdb/417.
7201
7202 2002-03-27 Michael Snyder <msnyder@redhat.com>
7203
7204 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7205 * infcmd.c (_initialize_infcmd): Ditto.
7206 * language.c (_initialize_language): Ditto.
7207 * symfile.c (_initialize_symfile): Ditto.
7208 * top.c (_init_main): Ditto.
7209 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7210
7211 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7212
7213 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7214 vector registers handling.
7215 (skip_prologue): Handle new AltiVec instructions. Fill in new
7216 fields of frame data.
7217 (frame_get_saved_regs): Fill in information for AltiVec registers.
7218
7219 2002-03-27 Jim Blandy <jimb@redhat.com>
7220
7221 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7222 a function; leave this macro here to invoke that function.
7223 (symbol_init_mangled_name): Declaration for that function.
7224 * symtab.c (symbol_init_mangled_name): New function.
7225
7226 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7227
7228 * valarith.c: Replace strerror with safe_strerror.
7229 * tracepoint.c: Ditto.
7230 * lin-lwp.c: Ditto.
7231 * go32-nat.c: Ditto.
7232 * inflow.c: Ditto.
7233 * gnu-nat.c: Ditto.
7234
7235 2002-03-27 Andreas Schwab <schwab@suse.de>
7236
7237 * event-top.c (command_line_handler): Remove useless if.
7238
7239 2002-03-27 Andreas Jaeger <aj@suse.de>
7240
7241 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7242 comment.
7243
7244 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7245
7246 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7247 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7248 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7249 (x86_64_linux_dr_get_status, supply_gregset),
7250 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7251 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7252 (x86_64_register_info_table): Add.
7253 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7254 (x86_64_register_raw_size, x86_64_register_virtual_type),
7255 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7256 general x86_64_register_info_table.
7257 (i386_gdbarch_init): gdbarch_register_bytes is now set
7258 dynamicaly during initialization.
7259 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7260 * gdbserver/linux-x86-64-low.c: Ditto.
7261
7262 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7263
7264 * gdbserver/server.c (main): Call target_signal_to_host_p
7265 and target_signal_to_host on signals received from the remote.
7266 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7267 target_signal_from_host on signals sent to the remote.
7268 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7269 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7270
7271 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7272
7273 * signals/signals.c: Include "server.h" in gdbserver build.
7274 (target_signal_from_name): Don't use STREQ.
7275 (_initialize_signals): Likewise. Don't include function in
7276 gdbserver build.
7277
7278 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7279
7280 * signals.c: Moved to...
7281 * signals/signals.c: Here.
7282 * Makefile (signals.o): Update.
7283
7284 2002-03-26 Jeff Law (law@redhat.com)
7285
7286 * somread.c (som_symtab_read): Remove some commented out code and
7287 updated related comments. Do not set the minimal symbol table to
7288 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7289 in a dynamic executable.
7290 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7291 where we are unable to find the minimal symbol for the given
7292 PC value.
7293
7294 2002-03-25 Jeff Law (law@redhat.com)
7295
7296 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7297
7298 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7299
7300 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7301
7302 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7303
7304 * command.h: Update copyright.
7305 (struct cmd_list_element): Replace definition with opaque
7306 declaration.
7307 (enum cmd_types): Document that it will eventually be moved to
7308 cli/cli-decode.h
7309 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7310 (MALLOCED_REPLACEMENT): Delete macro.
7311 * Makefile.in (cli_decode_h): Add $(command_h).
7312 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7313 * top.c: Include "cli/cli-decode.h".
7314 * completer.c: Include "cli/cli-decode.h".
7315 * maint.c: Include "cli/cli-decode.h".
7316 * cli/cli-decode.h: Include "command.h".
7317 (enum command_class): Delete.
7318 (enum cmd_types): Comment out.
7319 (enum cmd_auto_boolean): Delete.
7320 (enum var_types): Delete.
7321
7322 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7323
7324 * cli/cli-decode.c: Include "gdb_assert.h".
7325 (add_set_or_show_cmd): New static function.
7326 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7327 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7328 all fields, such as func, from the set command.
7329
7330 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7331
7332 * MAINTAINERS (sh-elf): Change warning flag to -w.
7333
7334 2002-03-23 Andrew Cagney <cagney@redhat.com>
7335
7336 * defs.h (error): Add printf format attribute.
7337 * thread-db.c (thread_from_lwp): Fix error format string.
7338 * stack.c (parse_frame_specification): Ditto.
7339 * cli/cli-decode.c (undef_cmd_error): Ditto.
7340 * scm-lang.c (scm_lookup_name): Ditto.
7341 * tracepoint.c (trace_error): Ditto.
7342 * remote-utils.c (usage): Ditto.
7343 * remote.c (compare_sections_command): Ditto.
7344 Fix PR gdb/328.
7345
7346 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7347
7348 * gdbtypes.c (append_composite_type_field): New function.
7349 (init_composite_type): New function.
7350 * gdbtypes.h (append_composite_type_field): Declare.
7351 (init_composite_type): Ditto.
7352
7353 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7354
7355 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7356 function.
7357 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7358 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7359 structure returning convention for SYSV ABI case, but not
7360 for GNU/Linux, FreeBSD, or NetBSD.
7361
7362 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7363
7364 * symtab.h (lookup_block_symbol): Add mangled_name argument
7365 to prototype.
7366
7367 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7368 with new mangled_name argument.
7369 * linespec.c (decode_line_1): Likewise.
7370 * valops (value_of_this): Likewise.
7371 * symtab.c (lookup_transparent_type): Likewise.
7372 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7373 (lookup_symbol): If we are given a mangled name, pass it down
7374 to lookup_symbol_aux.
7375 (lookup_block_symbol): If we are given a mangled name to check
7376 against, only return symbols which match it.
7377
7378 2002-03-22 Christopher Faylor <cgf@redhat.com>
7379
7380 * win32-nat.c (child_create_inferior): Check for proper shell to use
7381 here, in case the user changes it on the fly.
7382 (_initialize_inftarg): Remove shell path considerations.
7383
7384 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7385
7386 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7387 for gdbarch_max_register_raw_size and max_register_virtual_size.
7388 Adjust copyright year.
7389
7390 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7391
7392 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7393 in a function to cover the entire beginning of the function
7394 as well if it does not already.
7395
7396 2002-03-21 Tom Rix <trix@redhat.com>
7397
7398 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7399 (rs6000_ptrace64): Renamed from ptrace64.
7400
7401 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7402
7403 * gdbserver/remote-utils.c (remote_open): Don't call
7404 getprotobyname, we're all using TCP here so just use
7405 IPPROTO_TCP.
7406 * gdbserver/gdbreplay.c (remote_open): Ditto.
7407
7408 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7409
7410 * regcache.c (_initialize_regcache): No need to call
7411 build_regcache() at this time; it gets called whenever
7412 the gdbarch changes.
7413
7414 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7415
7416 * sparc-nat.c: Include sys/param.h where possible.
7417
7418 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7419
7420 Fix PR gdb/422.
7421 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7422 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7423 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7424 complex types.
7425 * stabsread.c (rs6000_builtin_type): Likewise.
7426 (read_sun_floating_type): Likewise.
7427
7428 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7429
7430 * stabsread.c (read_member_functions): Remove skip code for duplicate
7431 constructor/destructor methods. Use standard parsing for these
7432 methods and just do not chain them to the list of methods after
7433 parsing.
7434
7435 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7436
7437 * coffread.c: Remove redundant static declarations. Replace
7438 occurrences of `PTR' with `void *'.
7439 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7440 * top.h (quit_cover): Likewise.
7441 * defs.h (catch_errors): Likewise.
7442
7443 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7444
7445 * defs.h (XMALLOC): Define.
7446 * gdb-events.sh (XMALLOC): Delete macro.
7447 * gdb-events.c, gdb-events.h: Regenerate.
7448 * gdbarch.sh (XMALLOC): Delete macro.
7449 * gdbarch.c: Regenerate.
7450 * serial.c (XMALLOC): Delete macro.
7451 * ui-file.c (XMALLOC): Ditto.
7452 * ser-unix.h (XMALLOC): Ditto.
7453 * sh-tdep.c (XMALLOC): Ditto.
7454 * ui-out.c (XMALLOC): Ditto.
7455 * utils.c (XMALLOC): Ditto.
7456 * i386-tdep.c (XMALLOC): Ditto.
7457 * gdb-events.c (XMALLOC): Ditto.
7458 * d10v-tdep.c (XMALLOC): Ditto.
7459 * cli-out.c (XMALLOC): Ditto.
7460
7461 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7462 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7463 * ui-file.c, ui-out.c: Ditto.
7464
7465 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7466
7467 * command.h (struct cmd_list_element): Add field context.
7468 (set_cmd_context, get_cmd_context): Declare.
7469 * cli/cli-decode.h: Ditto.
7470 * cli/cli-decode.c (get_cmd_context): New function.
7471 (set_cmd_context): New function.
7472 (add_cmd): Initialize context.
7473 Part of fixing PR gdb/145 and PR gdb/146.
7474
7475 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7476
7477 * cli/cli-decode.c (cmd_type): New function.
7478 * command.h (cmd_type): Declare.
7479 * infrun.c (set_schedlock_func): Call function cmd_type.
7480 * kod.c (kod_set_os): Call cmd_type.
7481 * cris-tdep.c (cris_version_update): Use function cmd_type.
7482 (cris_mode_update, cris_abi_update): Ditto.
7483
7484 * command.h: (execute_cmd_post_hook): Declare.
7485 (execute_cmd_pre_hook): Declare.
7486 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7487 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7488 functions. Execute pre/post hook while ensuring that afterwords
7489 hook_in is cleared.
7490 * top.c (execute_command): Use execute_cmd_post_hook, and
7491 execute_cmd_pre_hook to execute pre/post commands.
7492 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7493 hook_stop_stub.
7494 (hook_stop_stub): Call execute_cmd_pre_hook.
7495
7496 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7497
7498 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7499 set'' and this leads to a core dump. Move xstrdup of
7500 operating_system to after check that it is not NULL.
7501
7502 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7503
7504 * kod.c (kod_set_os): Remove unnecessary check that
7505 ``command->type'' is set_cmd.
7506
7507 * valprint.c (set_input_radix): Use input_radix.
7508 (set_output_radix): Use output_radix.
7509 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7510 isn't reverted.
7511
7512 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7513
7514 * value.h (struct value): Delete field ``substring_addr''. Change
7515 aligner fields to force_doublest_align, force_longest_align,
7516 force_core_addr_align and force_pointer_aligh.
7517
7518 * value.h (struct value): Fix typo in above change.
7519
7520 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7521
7522 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7523 to fix internal_error from ``maintenance print architecture''.
7524
7525 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7526
7527 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7528 for gcc versions after gcc-2.8.1.
7529
7530 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7531
7532 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7533 for method resolution. Restore adjustment of ``this'' pointer after
7534 calling value_struct_elt, which was accidentally removed during the
7535 HP merge.
7536
7537 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7538
7539 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7540 value_of_register.
7541 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7542 get_saved_register.
7543 * value.h (value_of_register): Update.
7544
7545 2002-03-14 Richard Henderson <rth@redhat.com>
7546
7547 * configure.in: Detect declaration for canonicalize_file_name.
7548 * utils.c (canonicalize_file_name): Declare, if needed.
7549 (gdb_realpath): Prefer realpath if available and usable.
7550 * config.in, configure: Rebuild.
7551
7552 2002-03-14 Richard Henderson <rth@redhat.com>
7553
7554 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7555 a constant array bound.
7556
7557 * MAINTAINERS: Add myself to write-after-approval.
7558
7559 2002-03-14 Michael Snyder <msnyder@redhat.com>
7560
7561 * symfile.c (syms_from_objfile): Return immediately if no syms.
7562 (symbol_file_add): Return immediately if no syms.
7563 (find_sym_fns): Return immediately if no syms.
7564
7565 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7566
7567 * gdbserver/remote-util.c (remote_open): Print remote-side's
7568 IP address when remote debugging over the network.
7569
7570 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7571
7572 * config/sparc/fbsd.mh: Fix copyright.
7573 * config/sparc/fbsd.mt: Likewise.
7574
7575 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7576
7577 * MAINTAINERS: Fix typo in name of gdb warnings option.
7578 (x86-64): Fix formating so that this can be parsed by awk.
7579
7580 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7581
7582 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7583 * defs.h: Include "gdb/signals.h".
7584 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7585
7586 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7587
7588 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7589 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7590 from x86-64-tdep.h
7591
7592 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7593 Don Howard <dhoward@redhat.com>
7594
7595 * mips-tdep.c (ST0_FR): Define.
7596 (mips2_fp_compat): New function, temporarily disabled.
7597 (mips_read_fp_register_single): New function.
7598 (mips_read_fp_register_double): New function.
7599 (mips_print_register): Use them.
7600 (do_fp_register_row): Likewise.
7601
7602 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7603
7604 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7605 approval''.
7606
7607 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7608
7609 * stabsread.c (read_member_functions): Fix is_stub test for
7610 static member functions, improve comment.
7611
7612 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7613
7614 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7615 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7616 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7617 commands that set boolean values.
7618 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7619 (arm_rdi_resume): Always initialize PC.
7620 (arm_rdi_open): Don't use rslt as a boolean.
7621 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7622 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7623 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7624 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7625
7626 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7627
7628 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7629 * configure: Rebuilt.
7630
7631 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7632
7633 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7634 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7635
7636 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7637
7638 * cli/cli-decode.c (set_cmd_completer): New function.
7639 * command.h (set_cmd_completer): Declare.
7640 * cli/cli-decode.h (set_cmd_completer): Ditto.
7641
7642 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7643 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7644 * win32-nat.c (_initialize_inftarg): Ditto.
7645 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7646 * proc-api.c (_initialize_proc_api): Ditto.
7647 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7648 * source.c (_initialize_source): Ditto.
7649 * exec.c (_initialize_exec): Ditto.
7650 * solib.c (_initialize_solib): Ditto.
7651 * top.c (init_main): Ditto.
7652 * tracepoint.c (_initialize_tracepoint): Ditto.
7653 * symfile.c (_initialize_symfile): Ditto.
7654 * printcmd.c (_initialize_printcmd): Ditto.
7655 * infcmd.c (_initialize_infcmd): Ditto.
7656 * corefile.c (_initialize_core): Ditto.
7657
7658 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7659
7660 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7661
7662 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7663
7664 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7665
7666 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7667
7668 * NEWS: Update headings, 5.2 has branched.
7669
7670 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7671
7672 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7673 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7674 (register_addr, REGISTER_RAW_SIZE): Likewise.
7675 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7676 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7677
7678 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7679
7680 * MAINTAINERS (x86-64): Add myself.
7681 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7682 changed value_ptr -> struct value *
7683
7684 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7685
7686 * configure.host (sparc64-*-freebsd): Add.
7687 * configure.tgt: Likewise.
7688 * config/sparc/fbsd.mh: New file.
7689 * config/sparc/fbsd.mt: Likewise.
7690 * config/sparc/nm-fbsd.h: Likewise.
7691 * config/sparc/tm-fbsd.h: Likewise.
7692
7693 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7694
7695 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7696 regformats/reg-s390x.dat.
7697
7698 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7699
7700 * utils.c: Add FIXME explaining true/false problem.
7701
7702 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7703
7704 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7705
7706 2002-02-28 Michael Chastain <mec@shout.net>
7707
7708 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7709
7710 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7711
7712 * gdbserver/linux-s390-low.c: New file.
7713 * regformats/reg-s390.dat: New file.
7714 * regformats/reg-s390x.dat: New file.
7715 * gdbserver/configure.srv: Add S/390.
7716 * gdbserver/Makefile.in: Add S/390.
7717 * configure.tgt: Enable gdbserver for S/390.
7718
7719 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7720
7721 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7722 first line of the doc string for "info dos", except at the end of
7723 the sentence, since the short help stops at the first period.
7724
7725 2002-02-28 Jason Merrill <jason@redhat.com>
7726
7727 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7728
7729 2002-02-27 Fred Fish <fnf@redhat.com>
7730
7731 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7732 comment (dumy -> dummy).
7733
7734 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7735
7736 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7737
7738 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7739
7740 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7741
7742 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7743
7744 * gdbserver/acconfig.h: New file.
7745 * gdbserver/i387-fp.c: New file.
7746 * gdbserver/i387-fp.h: New file.
7747 * gdbserver/linux-x86-64.c: New file.
7748 * regformats/reg-x86-64.dat: New file.
7749 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7750 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7751 * gdbserver/configure.in: Add support for regsets.
7752 * gdbserver/config.in: Regenerate.
7753 * gdbserver/configure: Regenerate.
7754 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7755 * gdbserver/linux-low.h: New file.
7756 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7757 for regsets.
7758 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7759 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7760 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7761 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7762 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7763 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7764 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7765 "i387-fp.h". Add PTRACE_GETREGS and friends.
7766 * gdbserver/regcache.c (supply_register): New function.
7767 (supply_register_by_name): New function.
7768 (collect_register): New function.
7769 (collect_register_by_name): New function.
7770
7771 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7772
7773 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7774 (config.status): Add configure.srv dependency.
7775 (server_h): Add config.h dependency.
7776
7777 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7778
7779 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7780 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7781 * gdbserver/configure.srv: Change i386-*-linux* to use
7782 reg-i386-linux.o.
7783
7784 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7785
7786 * x86-64-tdep.c: Re-indent. Update copyright date.
7787
7788 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7789
7790 From Michal Ludvig <mludvig@suse.cz>:
7791 * x86-64-tdep.c (value.h): Delete.
7792 (gdb_assert.h): Include.
7793 (x86_64_register_convert_to_virtual,
7794 x86_64_register_convert_to_raw ): Add check which lets only
7795 floating-point values to be converted.
7796 (value_push): Delete.
7797 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7798 (i386_gdbarch_init): Number of register_bytes fixed.
7799
7800 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7801
7802 * MAINTAINERS: Add x86-64 target.
7803
7804 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7805
7806 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7807 * osfsolib.c (solib_map_sections): Ditto.
7808 * irix5-nat.c (solib_map_sections): Ditto.
7809 * corelow.c (gdb_check_format): Ditto.
7810 * symfile.c (symfile_bfd_open): Ditto.
7811 * solib.c (solib_map_sections): Ditto.
7812 Fix PR gdb/354.
7813
7814 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7815
7816 * remote.c (_initialize_remote): By default, disable ``e'' and
7817 ``E'' step out-of-range packets.
7818
7819 2002-02-26 Andreas Schwab <schwab@suse.de>
7820
7821 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7822 m68k_linux_frame_saved_pc.
7823 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7824 in_sigtramp.
7825 (SIGCONTEXT_PC_OFFSET): Remove.
7826 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7827 m68k_linux_sigtramp_saved_pc): New functions.
7828 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7829 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7830 (UCONTEXT_PC_OFFSET): Define.
7831 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7832 non-RT and RT signal trampolines.
7833
7834 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7835
7836 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7837 (TARGET_NBPG, STACK_END_ADDR): Delete
7838 (VARIABLES_INSIDE_BLOCK): Delete.
7839
7840 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7841
7842 * utils.c (perror_with_name): Make string parameter constant.
7843 (print_sys_errmsg): Ditto.
7844 (query): Ditto.
7845 * defs.h (perror_with_name): Update.
7846 (print_sys_errmsg): Update.
7847 (query): Update.
7848
7849 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7850
7851 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7852 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7853
7854 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7855
7856 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7857 if it already matches the current architecture from the exec file.
7858 Include arch-utils.h for gdbarch_info_init prototype.
7859 * Makefile.in (rs6000-nat.o): Update dependencies.
7860
7861 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7862
7863 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7864 list of exported variables.
7865
7866 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7867
7868 * gdbserver/configure.srv: New file.
7869 * gdbserver/configure.in: Use configure.srv instead
7870 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7871 from it.
7872 * gdbserver/configure: Regenerated.
7873 * gdbserver/terminal.h: New file.
7874 * gdbserver/Makefile.in: Update for configure changes. Remove
7875 more unneeded include paths.
7876
7877 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7878
7879 From wiz at danbala:
7880 * config/sparc/tm-sp64.h: Fix grammar and typos.
7881 Fix PR gdb/287.
7882
7883 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7884
7885 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7886 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7887 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7888 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7889 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7890 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7891 * s390-tdep.c: Ditto.
7892 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7893 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7894 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7895 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7896 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7897 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7898 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7899 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7900 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7901 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7902 Fix PR gdb/378.
7903
7904 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7905
7906 * lin-thread.c: Delete file.
7907 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7908 to gdb_proc_service.h.
7909 * configure: Re-generate.
7910
7911 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7912 * serial.c (serial_open): Delete check for "ocd".
7913 Fix PR gdb/349.
7914
7915 * Makefile.in (linux-thread.o): Delete target.
7916 * linux-thread.c: Delete file.
7917
7918 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7919 renamed SH files to be consistent.
7920
7921 * symtab.c (sort_search_symbols): Use xfree.
7922
7923 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * arm-linux-tdep.c (arm_linux_init_abi): Register
7926 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7927 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7928 definition with undef, since we don't want the sysvr4 definition.
7929 (SKIP_TRAMPOLINE_CODE): Likewise.
7930
7931 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7932
7933 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7934
7935 * configure.in: (AC_CHECK_FUNCS) Added test for
7936 canonicalize_file_name Regenerated.
7937 * config.in, configure: Regenerated.
7938 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7939 defined use canonicalize_file_name.
7940
7941 2002-02-23 Michael Chastain <mec@shout.net>
7942
7943 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7944
7945 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7946
7947 * README: Remove references to cygnus.com.
7948 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7949 dot com'' form. Remove references to cygnus.com and sourceware.
7950
7951 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7952
7953 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7954 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7955 1003.1-2001 no longer allows "head -1".
7956 * gdb/Makefile.in (version.c): Likewise.
7957 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7958 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7959 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7960
7961 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7962
7963 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7964 * command.h (cmd_cfunc_eq): Declare.
7965 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7966
7967 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7968 ``struct cmd_list_element *''.
7969 * cli/cli-cmds.c (is_complete_command): Update. Use
7970 cmd_cfunc_eq.
7971 * top.c (execute_command): Pass the command to
7972 is_complete_command.
7973 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7974
7975 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7976
7977 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7978 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7979 architecture defines.
7980 * s390-tdep.c (s390_gdbarch_init): Likewise.
7981
7982 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7983
7984 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7985 (arm_linux_push_arguments): Likewise.
7986 (arm_linux_init_abi): Register them. Also register linux-specific
7987 call_dummy_words.
7988 (find_minsym_and_objfile): Use strcmp, not STREQ.
7989 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7990 (arm_linux_call_dummy_words): Delete declaration.
7991 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7992 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7993 declarations.
7994 (LOWEST_PC): Delete.
7995
7996 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7997
7998 * maint.c (print_section_info): Do not prepend `0x' to filepos
7999 output, it will be handled by local_hex_string_custom.
8000
8001 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8002
8003 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8004 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8005 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8006
8007 2002-02-22 Jim Blandy <jimb@redhat.com>
8008
8009 Indicate that the bcache functions don't change the strings
8010 they're passed.
8011 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8012 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8013
8014 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8015
8016 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8017
8018 2002-02-21 Christopher Faylor <cgf@redhat.com>
8019
8020 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8021 find the complete path to a loaded DLL.
8022
8023 2002-02-21 Fred Fish <fnf@redhat.com>
8024
8025 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8026 that marks the end of the range of a function, enter a line number
8027 entry that has a line number of zero and a PC offset that matches
8028 the end of the function. This starts a range of PC's for which no
8029 line number information is known.
8030 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8031 PC's for which no line number info is found (line number is zero)
8032 then we didn't find any valid line information.
8033 * symtab.h: Document use of zero line number entry.
8034
8035 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8036
8037 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8038 (have_ptrace_getvrregs): Define for run time checks.
8039 (gdb_vrregset_t): New type for Altivec register handling.
8040 (fetch_register, store_register): Fetch/store altivec register
8041 when needed.
8042 (fetch_altivec_register, store_altivec_register): New functions.
8043 (supply_vrregset, fill_vrregset): New functions.
8044 (fetch_altivec_registers, store_altivec_registers): New functions.
8045 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8046 registers as well.
8047
8048 2002-02-21 Jiri Smid <smid@suse.cz>
8049
8050 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8051
8052 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8053
8054 * Makefile.in (armnbsd-nat.o): Update dependencies.
8055 * armnbsd-nat.c (supply_gregset): New function. Common code to
8056 supply the integer register set.
8057 (supply_fparegset): New function. Similar for FPA registers.
8058 (fetch_regs, fetch_fp_regs): Use them.
8059 (fetch_core_registers): Likewise.
8060 (fetch_elfcore_registers): New function.
8061 (arm_netbsd_elfcore_fns): New core-file type specification.
8062 (_initialize_arm_netbsd_nat): Register it.
8063
8064 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8065
8066 * armnbsd-nat.c: Include gdbcore.h.
8067 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8068 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8069 'void' to declaration, to shut up ARI.
8070 (fetch_core_registers): Make static. Rewrite using supply_register.
8071 (arm_netbsd_core_fns): New core-file type specification.
8072 (_initialize_arm_netbsd_nat): New function.
8073
8074 2002-02-21 Christopher Faylor <cgf@redhat.com>
8075
8076 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8077 value.
8078
8079 2002-02-20 Christopher Faylor <cgf@redhat.com>
8080
8081 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8082 fails.
8083
8084 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8085
8086 * jv-exp.y (parse_number): Change type of implicit longs
8087 to builtin_type_uint64.
8088
8089 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8090
8091 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8092 to be an integer instead of a `union wait'.
8093
8094 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8095
8096 * mips-linux-nat.c: Call the operating system GNU/Linux.
8097 * mips-linux-tdep.c: Likewise.
8098 * mips-tdep.c: Likewise.
8099
8100 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8101
8102 Fix PR gdb/265.
8103 * jv-exp.y (parse_number): Handle 64-bit integers.
8104
8105 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8106
8107 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8108 AC_STDC_HEADERS to AC_HEADER_STDC.
8109 * gdbserver/configure: Regenerated.
8110
8111 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8112
8113 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8114 is defined.
8115 * sparc-tdep.c (get_longjmp_target): Likewise.
8116
8117 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8118
8119 * News: Add news about ARM and Multi-arch. Mention the new target
8120 arm*-*-netbsd*.
8121
8122 2002-02-19 Jim Blandy <jimb@redhat.com>
8123
8124 * stabsread.c (error_type_complaint): Improve error message.
8125
8126 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8127
8128 * gdbserver/README: Update documentation.
8129 * gdbserver/configure.in: Update configury to match documentation.
8130 * gdbserver/Makefile.in: Likewise.
8131 * gdbserver/configure: Regenerated.
8132 * gdbserver/aclocal.m4: New file, generated by aclocal.
8133 * gdbserver/config.in: New file, generated by autoheader.
8134
8135 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8136
8137 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8138 armnbsd-nat.c.
8139
8140 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8141
8142 * arm-tdep.h (enum arm_float_model): New enum.
8143 (struct gdbarch_tdep): Add fp_model.
8144 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8145 up floating-point conversions until we know the floating-point model
8146 in use by the inferior. Don't complain about being unable to
8147 determine the ABI of the inferior when we don't have one.
8148 (arm_extract_return_value): Support different floating-point models.
8149 (arm_store_return_value): Likewise.
8150 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8151 ARM_FLOAT_SOFT.
8152 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8153
8154 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8155
8156 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8157 of ``current_gdbarch''.
8158
8159 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8160
8161 * armnbsd-nat.c : ANSIfy all function declarations.
8162 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8163 (fetch_inferior_registers): Re-implement in terms of above.
8164 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8165 (store_inferior_registers): Re-implement in terms of above.
8166
8167 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8168
8169 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8170 kernel.
8171 * arm-linux-tdep.c: Likewise.
8172 * config/arm/tm-linux.h: Likewise.
8173
8174 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8175
8176 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8177 * config/arm/nbsd.mt (TM_FILE): Delete.
8178 * config/arm/tm-nbsd.h: Delete.
8179
8180 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8181
8182 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8183 Initialize CALL_DUMMY_LENGTH.
8184
8185 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8186
8187 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8188 function.
8189 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8190 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8191 defines one thing and that is incorrect for this port.
8192 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8193
8194 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8195
8196 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8197
8198 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8199
8200 * win32-nat.c (display_selector): New function. Displays information
8201 about the information returned by GetThreadSelectorEntry API function.
8202 (display_selectors): New function. Displays the infomation of
8203 the selector given as argument, or of CS, DS ans FS selectors
8204 if no argument is given.
8205 ( _initialize_inftarg): Add "w32" as info prefix command.
8206 Add "info w32 selector" as command calling display_selectors.
8207
8208 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8209
8210 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8211 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8212 if not defined.
8213
8214 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8215
8216 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8217
8218 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8219
8220 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8221 (arm_fix_call_dummy): Call it.
8222 (arm_call_dummy_breakpoint_offset): Delete.
8223 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8224 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8225
8226 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8227
8228 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8229 Default to func_frame_chain_valid.
8230 * gdbarch.h, gdbarch.c: Re-generate.
8231 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8232
8233 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8234
8235 * ppc-linux-nat.c: Update copyright.
8236 (fetch_register, store_register): Add tid parameter, don't compute
8237 tid here.
8238 (fetch_ppc_registers, store_ppc_registers): Add tid
8239 parameter. Pass it along to callees.
8240 (fetch_inferior_registers, store_inferior_registers): Compute tid
8241 here, and pass it to calleed functions.
8242 (fill_gregset, supply_fpregset): Clean up formatting.
8243
8244 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8245
8246 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8247 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8248
8249 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8250
8251 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8252 * gdbarch.c gdbarch.h: Regenerate.
8253 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8254 function.
8255 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8256 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8257 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8258
8259 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8260 * arm-tdep.c (arm_get_longjmp_target): New function.
8261 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8262 this to a positive value register arm_get_longjmp_target as the
8263 longjmp handler.
8264 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8265 (arm_linux_init_abi): Set up longjmp description in tdep.
8266 * armnbsd-nat.c (get_longjmp_target): Delete.
8267 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8268 description in tdep.
8269 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8270 (get_longjmp_target): Delete declaration.
8271 (GET_LONGJMP_TARGET): Delete.
8272 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8273 (GET_LONGJMP_TARGET): Delete.
8274
8275 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8276
8277 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8278 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8279 of ``current_gdbarch''.
8280
8281 2002-02-17 Tom Tromey <tromey@redhat.com>
8282
8283 * cli/cli-cmds.c (compare_strings): New function.
8284 (complete_command): Only print each unique item once.
8285 * completer.h (complete_line): Declare.
8286 * completer.c (complete_line): New function.
8287 (line_completion_function): Use it.
8288
8289 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8290
8291 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8292 * gdbarch.h, gdbarch.c: Re-generate.
8293
8294 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8295
8296 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8297
8298 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8299
8300 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8301 * valops.c (value_arg_coerce): Don't take the address of a reference
8302 to convert an argument to a reference.
8303
8304 2002-02-15 Christopher Faylor <cgf@redhat.com>
8305
8306 * win32-nat.c (get_image_name): New function.
8307 (handle_load_dll): Use get_image_name function.
8308 (get_child_debug_event): Avoid registering debug events until possibly
8309 execed process is started.
8310 (child_create_inferior): Allow invocation via shell so that command
8311 line redirection, etc. works ok.
8312 (_initialize_inftarg): Add new command: "set shell" to control whether
8313 a shell is used to start a process.
8314
8315 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8316
8317 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8318 instead of find_register_by_number.
8319 (cannot_store_register): Likewise.
8320
8321 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8322
8323 * dwarf2read.c: Replace fprintf (stderr, ...) by
8324 fprintf_unfiltered (gdb_stderr, ...).
8325
8326 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8327
8328 * gdbserver/gdbserver.1: Document --attach.
8329
8330 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8331
8332 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8333 descriptions.
8334 * arm-tdep.c (arm_default_arm_le_breakpoint)
8335 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8336 (arm_default_thumb_be_breakpoint): New. Initialize them from
8337 traditional breakpoint defines.
8338 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8339 (arm_gdbarch_init): Initialize new breakpoint variables.
8340 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8341 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8342 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8343 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8344 code out to ...
8345 (arm_netbsd_init_abi_common): ... here; new function.
8346 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8347 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8348 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8349 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8350
8351 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8352
8353 * arm-tdep.h (enum arm_abi): New enum.
8354 (struct gdbarch_tdep): New structure.
8355 (LOWEST_PC): Provide a default.
8356 (arm_gdbarch_register_os_abi): Declare new function.
8357 * arm-tdep.c (arm_abi_names): New array.
8358 (process_note_abi_tag_sections): New function.
8359 (get_elfosabi): New function.
8360 (arm_gdbarch_register_os_abi): New function.
8361 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8362 support for that ABI has been built in, then call the appropriate
8363 configuration routine. Use gdbarch_num_regs() to get the number
8364 of registers.
8365 (arm_dump_tdep): New function.
8366 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8367 place-holder functions.
8368 (_initialize_arm_tdep): Register them.
8369 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8370
8371 * armnbsd-tdep.c: New file.
8372 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8373 * config/arm/nbsd.mt (TDEPFILES): Add it.
8374 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8375
8376 * armnbsd-nat.c: Include regcache.h.
8377 * Makefile.in (armnbsd-nat.o): Update dependency list.
8378
8379 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8380
8381 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8382
8383 * gdbserver/Makefile.in: Fix typos in target rules.
8384
8385 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8386
8387 Fix part of PR gdb/267.
8388 * linespec.c (find_methods): Handle constructors specially for now.
8389
8390 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8391
8392 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8393 handling.
8394 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8395 standard_coerce_float_to_double().
8396
8397 2002-02-14 Christopher Faylor <cgf@redhat.com>
8398
8399 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8400 GDBINIT_FILENAME.
8401
8402 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8403
8404 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8405 find_variant_by_name, because it confuses the multiarch
8406 framework. Return NULL if there isn't an architecture with the
8407 user supplied name, instead of forcing a different one without
8408 recording the change with the multiarch machinery.
8409 (find_variant_by_name): Delete.
8410
8411 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8412
8413 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8414 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8415
8416 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8417
8418 * stack.c (print_frame_info_base): When calling
8419 print_frame_info_listing_hook, set current_source_symtab.
8420
8421 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8422
8423 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8424 and remove unused $(INCLUDE_DIR).
8425 Add regcache.c to OBS.
8426 Add generated register protocol files to clean target.
8427 Update dependencies for new objects, obsolete old target code.
8428
8429 * gdbserver/linux-low.c: Remove all platform-specific code to
8430 new files. Remove various dead code. Update to use regcache
8431 functionality.
8432 * gdbserver/remote-utils.c (fromhex): Add return statement
8433 to quiet warning.
8434 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8435 constant.
8436 (input_interrupt): Add integer parameter to match prototype
8437 of a signal handler.
8438 (outreg): Use register_data ().
8439 (prepare_resume_reply): Use gdbserver_expedite_regs.
8440 * gdbserver/server.c (main): Dynamically allocate own_buf because
8441 PBUFSIZ is no longer constant. Use registers_to_string () and
8442 registers_from_string ().
8443 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8444 for error (), fatal (), and warning (). Update definition of
8445 PBUFSIZ to use regcache functionality. Add include guard.
8446 * gdbserver/utils.c (fatal): Add missing ``const''.
8447 (warning): New function.
8448
8449 * regformats/regdat.sh: Include "regcache.h" in generated files.
8450 Provide init_registers () function.
8451 * regformats/regdef.h: Add prototype for set_register_cache ().
8452 Add include guard.
8453
8454 * gdbserver/linux-arm-low.c: New file.
8455 * gdbserver/linux-i386-low.c: New file.
8456 * gdbserver/linux-ia64-low.c: New file.
8457 * gdbserver/linux-m68k-low.c: New file.
8458 * gdbserver/linux-mips-low.c: New file.
8459 * gdbserver/linux-ppc-low.c: New file.
8460 * gdbserver/linux-sh-low.c: New file.
8461
8462 * gdbserver/regcache.c: New file.
8463 * gdbserver/regcache.h: New file.
8464
8465 * gdbserver/low-linux.c: Removed obsolete file.
8466
8467 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8468
8469 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8470 * config/i386/linux.mt: Likewise.
8471 * config/ia64/linux.mt: Likewise.
8472 * config/m68k/linux.mh: Likewise.
8473 * config/powerpc/linux.mh: Likewise.
8474 * config/mips/linux.mt: Likewise.
8475
8476 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8477
8478 * config/i386/i386lynx.mh: Mark gdbserver variables
8479 as (currently) obsolete for this target.
8480 * config/i386/nbsd.mt: Likewise.
8481 * config/i386/nbsdelf.mt: Likewise.
8482 * config/m32r/m32r.mt: Likewise.
8483 * config/m68k/m68klynx.mh: Likewise.
8484 * config/m68k/nbsd.mt: Likewise.
8485 * config/m68k/sun3os4.mh: Likewise.
8486 * config/mips/vr5000.mt: Likewise.
8487 * config/ns32k/nbsd.mt: Likewise.
8488 * config/pa/hppabsd.mh: Likewise.
8489 * config/pa/hppaosf.mh: Likewise.
8490 * config/powerpc/nbsd.mt: Likewise.
8491 * config/rs6000/rs6000lynx.mh: Likewise.
8492 * config/s390/s390.mt: Likewise.
8493 * config/s390/s390x.mt: Likewise.
8494 * config/sparc/sparclynx.mh: Likewise.
8495 * config/sparc/sun4os4.mh: Likewise.
8496 * config/i386/x86-64linux.mt: Likewise.
8497 * config/sparc/linux.mh: Likewise.
8498
8499 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8500
8501 * configure.tgt: Configure gdbserver only for known working
8502 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8503 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8504 SUBDIRS if it is configured. Update comment for ${nativefile}.
8505 * configure: Regenerated.
8506
8507 2002-02-13 Michael Snyder <msnyder@redhat.com>
8508
8509 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8510
8511 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8512 (default_gcore_mach): Just return 0, work around a problem in bfd.
8513 (default_gcore_target): OK to return NULL if exec_bfd is null.
8514 (make_mem_sec): Use a cast, avoid a warning.
8515
8516 * procfs.c (find_memory_regions_callback): Use a cast instead of
8517 calling host_pointer_to_address (which complains if
8518 sizeof (host pointer) != sizeof (target pointer)).
8519 (procfs_make_note_section): Avoid overflow in psargs string.
8520
8521 * procfs.c (procfs_make_note_section): Make the default
8522 implementation return an error.
8523
8524 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8525
8526 * procfs.c (procfs_make_note_section): Provide a default definition
8527 (for alpha-dec-osf4.0f). Fix typos.
8528
8529 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8530
8531 * linux-proc.c: Add include of regcache.h.
8532 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8533
8534 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8535
8536 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8537 * memattr.c (create_mem_region): Disallow useless empty region.
8538 Regions are half-open intervals, so allow [A..B) [B..C) as
8539 non-overlapping.
8540
8541 2002-02-13 Michael Chastain <mec@shout.net>
8542
8543 * defs.h: Kill CONST_PTR.
8544 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8545 * c-lang.c (c_builtin_types): Likewise.
8546 * ch-lang.c (ch_builtin_types): Likewise.
8547 * f-lang.c (f_builtin_types): Likewise.
8548 * language.c (unknown_builtin_types): Likewise.
8549 * m2-lang.c (m2_builtin_types): Likewise.
8550 * p-lang.c (pascal_builtin_types): Likewise.
8551 * scm-lang.c (c_builtin_types): Likewise.
8552
8553 2002-02-13 Keith Seitz <keiths@redhat.com>
8554
8555 * arm-tdep.h (arm_get_next_pc): Add declaration.
8556
8557 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8558
8559 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8560 with other related struct-returning functions.
8561 (arm_extract_struct_value_address): New function.
8562 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8563 initialize float_format, double_format and long_double_format as
8564 appropriate to the endianness of the target.
8565 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8566 (arm_use_struct_convention): Delete declaration.
8567 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8568
8569 2002-02-13 Keith Seitz <keiths@redhat.com>
8570
8571 * defs.h (core_addr_to_string_nz): New function.
8572
8573 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8574
8575 Apply missing bits of 2002-01-15 patch.
8576 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8577 (fill_fpregset): Use i387_fill_fsave.
8578
8579 2002-02-12 Keith Seitz <keiths@redhat.com>
8580
8581 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8582 (core_addr_to_string_nz): New function.
8583
8584 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8585
8586 * arm-linux-nat.c: Really include arm-tdep.h.
8587 * config/arm/tm-linux.h (struct type, struct value): Declare.
8588
8589 2002-02-11 Michael Snyder <msnyder@redhat.com>
8590
8591 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8592 (gcore section): Ifdef for Solaris and Unixware only.
8593 (procfs_do_thread_registers): Unixware needs one lwpstatus
8594 per thread (not one prstatus or pstatus).
8595 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8596 not over all gdb threads. For unixware, call elfcore_write_pstatus
8597 once before iterating over threads.
8598
8599 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8600
8601 * arm-tdep.h: New file.
8602 * arm-tdep.c: Include arm-tdep.h.
8603 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8604 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8605 (arm_print_float_info, arm_register_type, convert_to_extended)
8606 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8607 (arm_extract_return_value, arm_register_name): Make static.
8608 (arm_software_single_step): Similarly. Fix types in declaration.
8609 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8610 (arm_store_return_value, arm_store_struct_return): New functions.
8611 (arm_gdbarch_init): Register the above functions. Also register
8612 call_dummy_start_offset, sizeof_call_dummy_words,
8613 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8614 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8615 max_register_virtual_size, register_size. Set up
8616 prologue_cache.saved_regs here, rather than ...
8617 (_initialize_arm_tdep): ... here.
8618 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8619 declarations.
8620 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8621 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8622 (arm_print_float_info, arm_register_type, convert_to_extended)
8623 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8624 (arm_extract_return_value, arm_register_name): Delete declarations.
8625 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8626 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8627 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8628 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8629 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8630 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8631 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8632 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8633 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8634 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8635 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8636 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8637 interface.
8638 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8639 * remote-rdi.c remote-rdp.c: Likewise.
8640 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8641 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8642 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8643 definition.
8644
8645 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8646 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8647 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8648 from non-ARM_ prefixed definitions.
8649 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8650 all uses of above.
8651 * remote-rdi.c remote-rdp.c: Likewise.
8652 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8653
8654 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8655
8656 * arm-tdep.c (arm_frameless_function_invocation)
8657 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8658 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8659 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8660 (arm_pop_frame, arm_get_next_pc): Make static.
8661 (arm_gdbarch_init): Register above in gdbarch structure.
8662 (arm_read_fp): Renamed from arm_target_read_fp.
8663 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8664 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8665 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8666 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8667 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8668 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8669 (arm_pc_is_thumb_dummy): Delete declarations.
8670 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8671 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8672 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8673 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8674
8675 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8676
8677 * symtab.c (compare_search_syms): New function.
8678 (sort_search_symbols): New function.
8679 (search_symbols): Sort symbols after searching rather than
8680 before.
8681
8682 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8683
8684 * NEWS: Linux -> GNU/Linux.
8685
8686 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8687
8688 * gdbarch.sh: For for level one methods, disallow a definition
8689 when partially multi-arched. Add comments explaining rationale.
8690 * gdbarch.h: Re-generate.
8691
8692 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8693
8694 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8695 multi-arch partial.
8696
8697 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8698
8699 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8700 field. Use diff -u.
8701 * gdbarch.c: Re-generate.
8702
8703 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8704
8705 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8706 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8707 partial.
8708
8709 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8710
8711 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8712 multi-arch partial.
8713 (PUSH_ARGUMENTS): Switch to using predefault.
8714 * gdbarch.c: Regenerate.
8715
8716 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8717
8718 * valops.c (PUSH_ARGUMENTS): Delete definition.
8719 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8720 partial. Default to default_push_arguments.
8721 * gdbarch.h, gdbarch.c: Regenerate.
8722
8723 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8724
8725 * defs.h (throw_exception): Rename return_to_top_level. Update
8726 comments.
8727 * utils.c (error_stream, internal_verror, quit): Ditto.
8728 * top.c (throw_exception, catcher): Ditto.
8729 * sparclet-rom.c (sparclet_load): Ditto.
8730 * remote.c (interrupt_query, minitelnet): Ditto.
8731 * remote-sds.c (interrupt_query): Ditto.
8732 * remote-mips.c (mips_error, mips_kill): Ditto.
8733 * ocd.c (interrupt_query): Ditto.
8734 * monitor.c (monitor_interrupt_query): Ditto.
8735 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8736 * target.h: Update comment.
8737
8738 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8739
8740 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8741
8742 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8743 default_double_format.
8744 * gdbarch.h, gdbarch.c: Re-generate.
8745 * findvar.c (floatformat_unknown): Delete variable definition.
8746 * doublest.h (floatformat_unknown): Delete variable declaration.
8747
8748 2002-02-09 Jim Blandy <jimb@redhat.com>
8749
8750 * stabsread.c (read_type): Add code to parse Sun's syntax for
8751 prototyped function types.
8752
8753 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8754
8755 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8756 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8757
8758 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8759
8760 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8761 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8762 now _initialize_xcoffsolib gets called again and overrides the
8763 commands from solib.c in a native configuration.
8764
8765 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8766
8767 * doublest.c (store_typed_floating): Don't try to return a value.
8768 Fixes PR gdb/290.
8769
8770 2002-02-08 Jim Blandy <jimb@redhat.com>
8771
8772 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8773 is prototyped and has no arguments, print its argument list as
8774 `(void)'.
8775
8776 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8777
8778 * MAINTAINERS (write-after-approval): Add myself.
8779 (paper-trail): I've escaped!
8780
8781 2002-02-08 Christopher Faylor <cgf@redhat.com>
8782
8783 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8784 changes.
8785 (_initialize_check_for_gdb_ini): Ditto.
8786
8787 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8788
8789 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8790 xaprintf -> xasprintf.
8791
8792 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8793
8794 * win32-nat.c: Remove use of printf and sprintf functions.
8795
8796 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8797
8798 * arm-tdep.c (arm_frame_chain_valid): Make static.
8799 (arm_push_arguments): Likewise.
8800 (arm_gdbarch_init): New function.
8801 (_initialize_arm_tdep): Call it.
8802 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8803 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8804 (FRAME_CHAIN_VALID): Delete.
8805 (arm_frame_chain_valid): Delete declaration.
8806 (PUSH_ARGUMENTS): Delete.
8807 (arm_push_arguments): Delete declaration.
8808 (CALL_DUMMY_P): Delete.
8809
8810 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8811 Corinna Vinschen <vinschen@redhat.com>
8812
8813 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8814 on builtin float types.
8815
8816 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8817
8818 * utils.c: Include <curses.h> before "bfd.h".
8819 * tui/tui-hooks.c: Likewise.
8820 * tui/tui.c: Likewise.
8821 * tui/tuiCommand.c: Likewise.
8822 * tui/tuiData.c: Likewise.
8823 * tui/tuiDataWin.c: Likewise.
8824 * tui/tuiDisassem.c: Likewise.
8825 * tui/tuiGeneralWin.c: Likewise.
8826 * tui/tuiIO.c: Likewise.
8827 * tui/tuiLayout.c: Likewise.
8828 * tui/tuiRegs.c: Likewise.
8829 * tui/tuiSource.c: Likewise.
8830 * tui/tuiSourceWin.c: Likewise.
8831 * tui/tuiStack.c: Likewise.
8832 * tui/tuiWin.c: Likewise.
8833
8834 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8835
8836 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8837 to include space for pseudoregs as well. Update loops accordingly.
8838 (sh_fp_frame_init_saved_regs): Ditto.
8839 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8840
8841 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8842
8843 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8844 Add Richard Earnshaw to Arm maintainers.
8845
8846 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8847
8848 * defs.h (warning_begin): Delete declaration.
8849
8850 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8851 Delete macro.
8852
8853 2002-02-07 Michael Snyder <msnyder@redhat.com>
8854
8855 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8856 Logic bug, remove misplaced else.
8857
8858 2002-02-07 Klee Dienes <klee@apple.com>
8859
8860 * fork-inferior.c (fork_inferior): Add '!' to the list of
8861 characters that need to be quoted when building a string for the
8862 shell. Quote '!' specifically with a backslash, since CSH chokes
8863 when trying to evaluate "str!str".
8864
8865 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8866
8867 * rdi-share/host.h: Only provide a typedef for bool if it is not
8868 defined.
8869
8870 2002-02-04 Michael Snyder <msnyder@redhat.com>
8871
8872 * breakpoint.h (enum bptype): Add new overlay event bp type.
8873 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8874
8875 * breakpoint.c (create_internal_breakpoint): New function.
8876 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8877 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8878 (create_thread_event_breakpoint): Ditto.
8879 (create_solib_event_breakpoint): Ditto.
8880 (create_overlay_event_breakpoint): New function.
8881 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8882 (update_breakpoints_after_exec): Delete and re-initialize
8883 overlay event breakpoints after an exec. Add FIXME comment
8884 about longjmp breakpoint.
8885 (print_it_typical): Ignore overlay event breakpoints.
8886 (print_one_breakpoint): Ditto.
8887 (mention): Ditto.
8888 (bpstat_what): Do not stop for overlay event breakpoints.
8889 (delete_breakpoint): Don't delete overlay event breakpoints.
8890 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8891 (breakpoint_re_set): Re-create overlay event breakpoint.
8892
8893 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8894 (overlay_manual_command): Disable overlay breakpoints.
8895 (overlay_off_command): Disable overlay breakpoints.
8896
8897 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8898
8899 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8900 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8901 to here from config/tm-arm.h.
8902 (coff_sym_is_thumb): Make static.
8903 (arm_elf_make_msymbol_special): New function.
8904 (arm_coff_make_msymbol_special): New function.
8905 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8906 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8907 (coff_sym_is_thumb): Delete declaration.
8908 (arm_elf_make_msymbol_special): Declare.
8909 (arm_coff_make_msymbol_special): Declare.
8910 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8911 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8912
8913 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8914
8915 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8916
8917 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8918
8919 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8920 * gdbarch.c gdbarch.h: Regenerate.
8921 * arch-utils.c (default_print_float_info): New function.
8922 * arch-utils.h (default_print_float_info): Prototype it.
8923 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8924 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8925 (PRINT_FLOAT_INFO): Document it.
8926
8927 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8928 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8929 (PRINT_FLOAT_INFO): Define.
8930
8931 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8932
8933 * win32-nat.c (_initialize_check_for_gdb_ini):
8934 Add typecast to sprintf argument to suppress a warning.
8935
8936 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8937
8938 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8939 to allow easier handling of pass state.
8940 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8941 that gives exception name and address.
8942 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8943 and set last_sig value to ourstatus->value.sig. Some missing
8944 exceptions added.
8945 (child_continue): Correctly report continue_status.
8946 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8947 TARGET_SIGNAL_0 (new default value).
8948 (child_resume): consider sig argument passed to decide if
8949 the exception should be passed to debuggee or not.
8950
8951 2002-02-05 Michael Snyder <msnyder@redhat.com>
8952
8953 * regcache.c (fetch_register): Call target_fetch_register
8954 only if we don't call FETCH_PSEUDO_REGISTER.
8955 (store_register): Call target_store_register only if we
8956 don't call STORE_PSEUDO_REGISTER.
8957
8958 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8959
8960 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8961 ELF_MAKE_MSYMBOL_SPECIAL.
8962 * gdbarch.c, gdbarch.h: Regenerate.
8963 * arch-utils.c (default_make_msymbol_special): New function.
8964 * arch-utils.h (default_make_msymbol_special): Export.
8965 * elfread.c (elf_symtab_read): Compile use of
8966 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8967 multiarched.
8968 * coffread.c (coff_symtab_read): Ditto, for
8969 COFF_MAKE_MSYMBOL_SPECIAL.
8970
8971 2002-02-05 Jim Blandy <jimb@redhat.com>
8972
8973 * solib-svr4.c (svr4_truncate_ptr): New function.
8974 (svr4_relocate_section_addresses): Do the address arithmetic with
8975 the appropriate truncation for target addresses, even when
8976 CORE_ADDR is larger than a target address.
8977
8978 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8979
8980 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8981 to (int *).
8982
8983 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8984
8985 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8986 code.
8987
8988 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8989
8990 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8991
8992 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8993
8994 * gdbserver/linux-low.c: Remove unused include files.
8995
8996 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8997
8998 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8999 (read_inferior_memory): Use it.
9000 (write_inferior_memory): Likewise.
9001
9002 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9003
9004 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9005 grubbing through sys_errlist.
9006
9007 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9008
9009 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9010
9011 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9012 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9013
9014 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9015
9016 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9017 (do_sfunc, set_cmd_sfunc): New functions.
9018
9019 * command.h (struct cmd_list_element): Add field func.
9020 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9021 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9022 * cli/cli-decode.h: Ditto.
9023
9024 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9025 (help_all, help_cmd_list): Ditto.
9026 (find_cmd, complete_on_cmdlist): Ditto.
9027 * top.c (execute_command): Ditto.
9028
9029 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9030 function.sfunc.
9031
9032 * infcmd.c (notice_args_read): Fix function signature.
9033
9034 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9035 * cli/cli-decode.c (add_set_cmd): Ditto.
9036 * utils.c (initialize_utils): Ditto.
9037 * maint.c (_initialize_maint_cmds): Ditto.
9038 * infrun.c (_initialize_infrun): Ditto.
9039 * demangle.c (_initialize_demangler): Ditto.
9040 * remote.c (add_packet_config_cmd): Ditto.
9041 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9042 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9043 * proc-api.c (_initialize_proc_api): Ditto.
9044 * kod.c (_initialize_kod): Ditto.
9045 * valprint.c (_initialize_valprint): Ditto.
9046 * top.c (init_main): Ditto.
9047 * infcmd.c (_initialize_infcmd): Ditto.
9048 * corefile.c (_initialize_core): Ditto.
9049 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9050 * arch-utils.c (initialize_current_architecture): Ditto.
9051 (_initialize_gdbarch_utils): Ditto.
9052 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9053
9054 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9055 * wince.c (_initialize_inftarg): Ditto.
9056 * symfile.c (_initialize_symfile): Ditto.
9057 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9058 * language.c (_initialize_language): Ditto.
9059 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9060
9061 2002-02-04 Michael Snyder <msnyder@redhat.com>
9062
9063 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9064
9065 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9066
9067 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9068 Add rules for building the register data files.
9069
9070 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * regformats/regdat.sh: Add braces to the definition of
9073 expedite_regs_${arch}.
9074
9075 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9076
9077 * regformats/regdef.h (struct reg): Add comment describing the
9078 requirements for offset and size fields.
9079
9080 2002-02-04 Andreas Schwab <schwab@suse.de>
9081
9082 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9083 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9084
9085 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9086
9087 * gdbarch.sh (copyright): Update years in generated header.
9088 (SMASH_TEXT_ADDRESS): Add rule.
9089 * gdbarch.h, gdbarch.c: Re-generate.
9090 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9091 * dbxread.c: Likewise.
9092 * dwarfread.c: Likewise.
9093 * elfread.c: Likewise.
9094 * somread.c: Likewise.
9095
9096 * arm-tdep.c (arm_smash_text_address): New function.
9097 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9098
9099 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9100
9101 Add support for hardware watchpoints on win32 native.
9102 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9103 CONTEXT_DEBUG_REGISTERS.
9104 (dr variable): New variable. Static array containing a local copy
9105 of debug registers.
9106 (debug_registers_changed): New variable. Reflects when debug registers
9107 are changed and need to be written to inferior.
9108 (debug_registers_used): New variable. Reflects when any debug register
9109 was set, used when new threads are created.
9110 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9111 i386-nat code.
9112 (thread_rec): Set dr array if id is the thread of current_event .
9113 (child_continue, child_resume): Change the debug registers for all
9114 threads if debug_registers_changed.
9115 (child_add_thread): Change the debug registers if debug_registers_used.
9116 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9117 Link nm.h to new nm-cygwin.h file.
9118 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9119 of hardware registers.
9120
9121 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9122
9123 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9124 Restore behavour broken by 2002-01-20 Andrew Cagney
9125 <ac131313@redhat.com> IEEE_FLOAT removal.
9126
9127 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9128
9129 * c-valprint.c (c_val_print): Pass a proper valaddr to
9130 cp_print_class_method.
9131 * valops.c (search_struct_method): If there is only one method
9132 and args is NULL, return that method.
9133
9134 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9135
9136 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9137 accessing tag_name directly.
9138
9139 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9140
9141 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9142 of accessing tag_name directly.
9143
9144 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9145
9146 PR gdb/280
9147 * gdbtypes.c (replace_type): New function.
9148 * gdbtypes.h (replace_type): Add prototype.
9149 * stabsread.c (read_type): Use replace_type.
9150
9151 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9152
9153 * Makefile.in (memattr.o): Add missing dependencies rule.
9154
9155 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9156
9157 * breakpoint.c (break_at_finish_command): Really export.
9158 (break_at_finish_at_depth_command): Ditto.
9159 (tbreak_at_finish_command): Ditto.
9160 * hppa-tdep.c: Include completer.h.
9161 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9162 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9163
9164 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9165
9166 * utils.c (do_write): New function.
9167 (error_stream): Rewrite combining the code from error_begin and
9168 verror.
9169 (verror): Rewrite using error_stream.
9170 (error_begin): Delete function.
9171
9172 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9173
9174 * utils.c (error_begin): Make static.
9175 * defs.h (error_begin): Delete declaration.
9176
9177 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9178 (decode_line_1): Use cplusplus_error instead of error_begin,
9179 cplusplus_hint and return_to_top_level.
9180 * coffread.c (coff_symfile_read): Use error instead of error_begin
9181 and return_to_top_level.
9182 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9183
9184 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9185
9186 * language.h (type_error, range_error): Make string parameter
9187 constant.
9188 * language.c (warning_pre_print): Delete extern declaration.
9189 * dwarfread.c (warning_pre_print): Ditto.
9190 * language.c (type_error, range_error): Rewrite to use verror and
9191 vwarning instead of warning_begin.
9192
9193 2002-02-01 Michael Snyder <msnyder@redhat.com>
9194
9195 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9196 (set_ignore_count): Move misplaced comment back where it belongs.
9197
9198 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9199
9200 * command.h (NO_FUNCTION): Delete macro.
9201 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9202 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9203 * tracepoint.c (_initialize_tracepoint): Ditto.
9204 * cli/cli-decode.c (add_set_cmd): Ditto.
9205 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9206
9207 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9208
9209 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9210 Update ``this'' pointer when calling virtual functions.
9211
9212 2002-02-01 Michael Snyder <msnyder@redhat.com>
9213
9214 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9215 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9216
9217 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9218
9219 * regformats/reg-arm.dat: New file.
9220 * regformats/reg-i386.dat: New file.
9221 * regformats/reg-ia64.dat: New file.
9222 * regformats/reg-m68k.dat: New file.
9223 * regformats/reg-mips.dat: New file.
9224 * regformats/reg-ppc.dat: New file.
9225 * regformats/reg-sh.dat: New file.
9226 * regformats/regdef.h: New file.
9227 * regformats/regdat.sh: New file.
9228
9229 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9230
9231 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9232 (arm_frame_args_address, arm_frame_locals_address): New functions.
9233 (arm_frame_num_args): New function.
9234 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9235 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9236 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9237
9238 2002-01-31 Michael Snyder <msnyder@redhat.com>
9239
9240 * breakpoint.c (break_at_finish_command): Export.
9241 (break_at_finish_at_depth_command): Export.
9242 (tbreak_at_finish_command): Export.
9243 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9244 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9245 "tbreak" commands, which are HPPA specific.
9246
9247 * printcmd.c (disassemble_command): Remove an ancient
9248 artifact of an old merge.
9249
9250 * symfile.h (enum overlay_debugging_state):
9251 Define enum constant values for overlay mode.
9252 * symfile.c (overlay_debugging): Use enums instead of literals.
9253 (overlay_is_mapped, overlay_auto_command,
9254 overlay_manual_command): Ditto.
9255
9256 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9257 breakpoint_here_p, breakpoint_inserted_here_p,
9258 breakpoint_thread_match, bpstat_stop_status,
9259 describe_other_breakpoints, check_duplicates, clear_command):
9260 Coding standard fixes.
9261
9262 * target.c (target_xfer_memory): Add spaces, coding standard.
9263 (do_xfer_memory): Add missing line to trust-readonly
9264 code: check bfd SEC_READONLY flag for section.
9265
9266 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9267
9268 * PROBLEMS: Fix typo, 5.1->5.1.1.
9269
9270 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9271
9272 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9273 data symbols, since we search based on textlow and texthigh.
9274 (find_pc_sect_symtab): Likewise.
9275
9276 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9277
9278 * defs.h (vwarning): Declare.
9279 * utils.c (vwarning): New function.
9280 (warning): Call vwarning.
9281 (warning_begin): Delete function.
9282
9283 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9284 the warning message.
9285 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9286 warning_begin.
9287
9288 2002-01-30 Michael Snyder <msnyder@redhat.com>
9289
9290 * NEWS: Mention "set trust-readonly-sections" command.
9291 Mention generate-core-file command.
9292
9293 2002-01-15 Michael Snyder <msnyder@redhat.com>
9294
9295 * target.c: New command, "set trust-readonly-sections on".
9296 (do_xfer_memory): Honor the suggestion to trust readonly sections
9297 by reading them from the object file instead of from the target.
9298 (initialize_targets): Register command "set trust-readonly-sections".
9299
9300 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9301
9302 * parse.c (target_map_name_to_register): Simplify, search regs and
9303 pseudo-regs using a single loop.
9304
9305 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9306
9307 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9308
9309 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9310
9311 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9312 * config/i386/i386v42mp.mh: Add i387-nat.o .
9313 * i386v4-nat.c: Include i387-nat.h.
9314 (supply_fpregset): Use i387_supply_fsave.
9315 (fill_fpregset): Use i387_fill_fsave.
9316
9317 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9318
9319 * arm-tdep.c (arm_call_dummy_words): Define.
9320 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9321 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9322 (CALL_DUMMY_WORDS): Define.
9323 (arm_call_dummy_words): Declare.
9324 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9325 (arm_linux_call_dummy_words): Declare.
9326
9327 2002-01-30 Andreas Schwab <schwab@suse.de>
9328
9329 * m68klinux-nat.c: Fix last change to use regcache_collect
9330 instead of referencing registers[] directly.
9331
9332 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9333
9334 * parse.c (target_map_name_to_register): Delete code wrapped in
9335 #ifdef REGISTER_NAME_ALIAS_HOOK.
9336
9337 2002-01-28 Michael Snyder <msnyder@redhat.com>
9338
9339 * regcache.c (legacy_read_register_gen): Need to be able to
9340 read pseudo-register as well as real register.
9341 (legacy_write_register_gen): Ditto.
9342
9343 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9344
9345 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9346 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9347 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9348 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9349 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9350 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9351 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9352 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9353 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9354 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9355 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9356 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9357 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9358 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9359 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9360 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9361 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9362 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9363 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9364 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9365
9366 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9367
9368 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9369 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9370 (initialize_current_architecture): Update target_byte_order using
9371 information from BFD.
9372 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9373 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9374
9375 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9376
9377 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9378 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9379
9380 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9381 #ifdef INVALID_FLOAT.
9382 * infcmd.c (do_registers_info): Ditto.
9383 * values.c (unpack_double): Ditto. Add comment.
9384
9385 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9386 already commented out.
9387
9388 2002-01-26 Andreas Schwab <schwab@suse.de>
9389
9390 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9391 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9392 registers and add support for PTRACE_GETREGS.
9393
9394 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9395
9396 GDB 5.1.1 released from 5.1 branch.
9397 * NEWS: Add 5.1.1 news.
9398 * README: Sync with 5.1 branch.
9399
9400 2002-01-23 Fred Fish <fnf@redhat.com>
9401
9402 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9403 stabstring on initial malloc. Reallocing will copy it for us,
9404 if necessary.
9405
9406 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9407
9408 * Makefile.in (hpread_h): Delete.
9409 (HFILES_NO_SRCDIR): Remove hpread.h.
9410 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9411 (hpread.o): Update dependencies.
9412 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9413
9414 * hp-psymtab-read.c: Remove file.
9415 * hp-symtab-read.c: Remove file.
9416 * hpread.h: Remove file.
9417
9418 * hpread.c: Merge all contents of hp-psymtab-read.c,
9419 hp-symtab-read.c and hpread.h into this file, as it was prior to
9420 January 1999.
9421
9422 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9423 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9424 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9425 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9426
9427 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9428
9429 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9430 fill_gregset): Call gdbarch_tdep() just once, assign result to
9431 variable and use that, instead of calling the function several
9432 times.
9433
9434 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9435
9436 * configure.host: Accept sparcv9 as alias for sparc64.
9437 * configure.tgt: Likewise.
9438
9439 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9440
9441 * solib-aix5.c (build_so_list_from_mapfile)
9442 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9443 arguments is not reversed.
9444 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9445 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9446
9447 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9448
9449 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9450 modified version of obsolete sh_fetch_pseudo_register.
9451 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9452 (sh4_register_read): New function.
9453 (sh_pseudo_register_write): New function. Renamed and modified
9454 version of obsolete sh_store_pseudo_register.
9455 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9456 (sh4_register_write): New function.
9457 (sh_gdbarch_init): Remove setting of gdbarch function
9458 fetch_pseudo_register and store_pseudo_register. Remove setting of
9459 register_convert_to_raw, register_convert_to_virtual,
9460 register_convertible.
9461 (sh_sh4_register_convertible): Delete. No longer needed. All is
9462 taken care by architecture specific functions
9463 register_read/register_write.
9464 (sh_sh4_register_convert_to_virtual): Make static.
9465 (sh_sh4_register_convert_to_raw): Ditto.
9466
9467 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9468
9469 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9470 (floatformat_is_nan, floatformat_mantissa): Ditto.
9471
9472 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9473 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9474 builtin_type_ieee_double_little,
9475 builtin_type_ieee_double_littlebyte_bigword,
9476 builtin_type_m68881_ext, builtin_type_i960_ext,
9477 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9478 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9479 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9480 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9481
9482 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9483
9484 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9485 parameter. Set frameless flag if it exists and depended of
9486 whether the scanned function is frameless or not.
9487 (xstormy16_skip_prologue): If function is frameless, return
9488 result of xstormy16_scan_prologue().
9489 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9490 call.
9491
9492 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9493
9494 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9495 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9496 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9497 sh_sh4_register_byte, sh_sh4_register_raw_size,
9498 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9499 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9500 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9501 sh_store_pseudo_register, sh_do_pseudo_register): Call
9502 gdbarch_tdep() just once, assign result to variable and use that,
9503 instead of calling the function several times.
9504
9505 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9506
9507 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9508 macros instead of LAST_FPU_CTRL_REGNUM.
9509 (store_register): Likewise.
9510
9511 2002-01-21 Jim Blandy <jimb@redhat.com>
9512
9513 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9514 is up-to-date before running the program, not just when a program
9515 exits.
9516
9517 2002-01-21 Fred Fish <fnf@redhat.com>
9518
9519 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9520 when we have found all instructions we are looking for.
9521
9522 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9523
9524 * arm-tdep.c (arm_register_name): New function.
9525 (arm_registers_names): Make static.
9526 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9527 (arm_register_name): Declare.
9528 (REGISTER_NAME): Use it.
9529
9530 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9531 Kevin Buettner <kevinb@redhat.com>
9532
9533 Convert arm targets to new FRAME interface.
9534 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9535 (arm_frame_find_save_regs): Delete.
9536 (arm_frame_init_saved_regs): New.
9537 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9538 Allocate extra_info as required. Convert all uses of fsr.regs
9539 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9540 to use extra_info.
9541 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9542 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9543 (check_prologue_cache, save_prologue_cache): Likewise.
9544 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9545 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9546 (FRAME_FIND_SAVED_REGS): Delete.
9547 (arm_frame_find_saved_regs): Delete prototype.
9548 (arm_frame_init_saved_regs): New prototype.
9549 (FRAME_INIT_SAVED_REGS): Define.
9550
9551 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9552
9553 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9554
9555 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9556
9557 From Jeff Law <law@redhat.com>:
9558 * infttrace.c: Include <sys/pstat.h>.
9559 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9560 exec file if the ttrace equivalent fails.
9561
9562 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9563
9564 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9565 (closeLogFile): Ditto.
9566
9567 2002-01-20 Michael Chastain <mec@shout.net>
9568
9569 * top.c (print_gdb_version): Bump copyright year to 2002.
9570
9571 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9572
9573 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9574 Zannoni and Eli Zaretskii.
9575
9576 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9577
9578 * buildsym.c: Update copyright years.
9579 * c-typeprint.c: Likewise.
9580 * dwarf2read.c: Likewise.
9581 * f-typeprint.c: Likewise.
9582 * gdbtypes.c: Likewise.
9583 * gdbtypes.h: Likewise.
9584 * hp-symtab-read.c: Likewise.
9585 * hpread.c: Likewise.
9586 * mdebugread.c: Likewise.
9587 * p-typeprint.c: Likewise.
9588
9589 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9590
9591 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9592 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9593 byte-order selectable.
9594 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9595 * arch-utils.c: Ditto.
9596 (set_endian): Ditto.
9597 (set_endian_from_file): Ditto.
9598 * gdbserver/low-sim.c (create_inferior): Ditto.
9599 * gdbarch.sh: Ditto.
9600 * gdbarch.h: Re-generate.
9601 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9602 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9603 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9604 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9605 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9606 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9607 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9608 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9609 macro definition.
9610 * config/mips/tm-wince.h: Remove #undef of macro
9611 TARGET_BYTE_ORDER_SELECTABLE.
9612 * config/sh/tm-wince.h: Ditto.
9613
9614 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9615
9616 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9617 member function fields. Add accessor macro
9618 TYPE_FN_FIELD_ARTIFICIAL.
9619 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9620 * c-typeprint.c (c_type_print_base): Skip artificial member
9621 functions.
9622
9623 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9624
9625 * f-typeprint.c: Delete unused function f_type_print_args.
9626 * p-typeprint.c: Delete unused function pascal_type_print_args.
9627
9628 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9629
9630 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9631 comment. Add ``artificial'' to ``union field_location''.
9632
9633 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9634
9635 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9636 * mdebugread.c (parse_symbol): Likewise.
9637 * stabsread.c (define_symbol): Likewise.
9638 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9639 initializing TYPE_FIELD_BITPOS to n (obsolete).
9640 (hpread_doc_function_type): Likewise.
9641 * hpread.c (hpread_function_type): Likewise.
9642
9643 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9644
9645 * configure.in (host_makefile_frag): Only require a host makefile
9646 fragment when a native build.
9647 * configure: Re-generate.
9648
9649 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9650
9651 * doublest.h (floatformat_from_type): Declare.
9652 * doublest.c (floatformat_from_type): New function.
9653 (convert_typed_floating): Use.
9654
9655 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9656 call to function floatformat_from_type.
9657
9658 * gdbarch.sh (IEEE_FLOAT): Delete.
9659 * gdbarch.h, gdbarch.c: Re-generate.
9660 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9661 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9662 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9663 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9664 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9665 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9666 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9667 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9668 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9669 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9670 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9671 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9672
9673 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9674 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9675 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9676 * sh-tdep.c (sh_gdbarch_init): Ditto.
9677 * mips-tdep.c (mips_gdbarch_init): Ditto.
9678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9679 * cris-tdep.c (cris_gdbarch_init): Ditto.
9680
9681 2002-01-20 Jiri Smid <smid@suse.cz>
9682
9683 * configure.host, configure.tgt: Support x86-64.
9684 * NEWS: Note new target x86-64.
9685
9686 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9687 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9688 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9689 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9690 x86-64-linux-nat.o): Fix dependencies.
9691
9692 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9693
9694 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9695 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9696 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9697 * config/sparc/xm-sun4os4.h: Delete file.
9698 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9699
9700 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9701
9702 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9703 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9704 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9705 * config/i386/i386lynx.mh (XM_FILE): Delete.
9706 * config/rs6000/xm-rs6000ly.h: Delete file.
9707 * config/sparc/xm-sparclynx.h: Delete file.
9708 * config/m68k/xm-m68klynx.h: Delete file.
9709 * config/i386/xm-i386lynx.h: Delete file.
9710 * config/xm-lynx.h: Delete file.
9711 * config/djgpp/fnchange.lst: Update.
9712
9713 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9714
9715 * alpha-tdep.c (alpha_register_byte): New function.
9716 (alpha_register_raw_size): Ditto.
9717 (alpha_register_virtual_size): Ditto.
9718 (alpha_skip_prologue_internal): Renamed from
9719 alpha_skip_prologue.
9720 (alpha_skip_prologue): New version that calls
9721 alpha_skip_prologue_internal.
9722 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9723 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9724 second argument from alpha_skip_prologue.
9725 (REGISTER_BYTE): Use alpha_register_byte.
9726 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9727 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9728 (FRAMELESS_FUNCTION_INVOCATION): Use
9729 generic_frameless_function_invocation_not.
9730 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9731 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9732
9733 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9734
9735 * config/mips/xm-news-mips.h: Delete file.
9736 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9737
9738 * config/m88k/xm-m88k.h: Delete file.
9739 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9740 * config/m88k/xm-delta88v4.h: Ditto.
9741 * config/m88k/xm-delta88.h: Ditto.
9742
9743 * config/alpha/xm-fbsd.h: Delete file.
9744 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9745
9746 * config/sparc/xm-sparc.h: Delete file.
9747 * Makefile.in (xm-sun4os4.h): Delete dependency.
9748 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9749 * config/sparc/xm-sun4os4.h: Ditto.
9750 * config/sparc/xm-linux.h: Ditto.
9751
9752 * config/i386/xm-windows.h: Delete file.
9753
9754 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9755
9756 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9757 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9758
9759 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9760
9761 * alpha-tdep.c (alpha_call_dummy_words): New.
9762 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9763 (CALL_DUMMY_P): Define.
9764 (CALL_DUMMY_WORDS): Define.
9765 (SIZEOF_CALL_DUMMY_WORDS): Define.
9766
9767 2002-01-19 Per Bothner <per@bothner.com>
9768
9769 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9770 isn't NULL, which can happen with some gcj-3.x-produced code.
9771
9772 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9773
9774 * alpha-tdep.c (alpha_register_virtual_type): New function.
9775 (alpha_init_frame_pc_first): Ditto.
9776 (alpha_fix_call_dummy): Ditto.
9777 (alpha_store_struct_return): Ditto.
9778 (alpha_extract_struct_value_address): Ditto.
9779 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9780 alpha_register_virtual_type.
9781 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9782 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9783 alpha_extract_struct_value_address.
9784 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9785 (INIT_FRAME_PC): Use init_frame_pc_noop.
9786 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9787
9788 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9789
9790 * i386gnu-nat.c: Include "i386-tdep.h".
9791 (fetch_fpregs): Simplify code dealing with uninitialized floating
9792 point states such that it doesn't require FP7_REGNUM.
9793
9794 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9795
9796 * alpha-tdep.c (frame_extra_info): New.
9797 (alpha_find_saved_regs): Make static. Use
9798 frame->extra_info.
9799 (alpha_frame_init_saved_regs): New function.
9800 (alpha_frame_saved_pc): Use frame->extra_info.
9801 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9802 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9803 (init_extra_frame_info): Rename to...
9804 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9805 (alpha_print_extra_frame_info): New function.
9806 (alpha_frame_locals_address): Ditto.
9807 (alpha_frame_args_address): Ditto.
9808 (alpha_pop_frame): Use frame->extra_info.
9809 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9810 alpha_frame_args_address.
9811 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9812 (alpha_find_saved_regs): Remove prototype.
9813 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9814 (EXTRA_FRAME_INFO): Remove.
9815 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9816 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9817
9818 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9819
9820 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9821 (alpha_cannot_fetch_register): Ditto.
9822 (alpha_cannot_store_register): Ditto.
9823 (alpha_register_convertible): Ditto.
9824 (alpha_use_struct_convention): Ditto.
9825 * config/alpha/tm-alpha.h: Update copyright years.
9826 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9827 (INNER_THAN): Use core_addr_lessthan.
9828 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9829 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9830 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9831 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9832 (FRAME_CHAIN): Remove unnecessary cast.
9833
9834 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9835
9836 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9837 obsolete.
9838
9839 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9840
9841 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9842 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9843 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9844 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9845 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9846 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9847 * x86-64-linux-nat.c: Ditto.
9848
9849 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9850
9851 * alpha-tdep.c (alpha_register_name): New function.
9852 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9853 (REGISTER_NAME): Define.
9854
9855 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9856
9857 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9858
9859 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9860
9861 * alpha-tdep.c: Update copyright years.
9862 (alpha_next_pc): New function.
9863 (alpha_software_single_step): Ditto.
9864 * config/alpha/tm-alpha.h: Add prototype for
9865 alpha_software_single_step.
9866
9867 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9868
9869 * alphabsd-nat.c: Update copyright years.
9870 (fill_gregset): Use regcache_collect.
9871 (fill_fpregset): Likewise.
9872 (fetch_inferior_registers): Only fetch integer registers
9873 if requested to do so.
9874 (store_inferior_registers): Only store integer registers
9875 if requested to do so.
9876
9877 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9878
9879 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9880 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9881 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9882 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9883 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9884 * config/arm/linux.mh (XDEPFILES): Delete.
9885 * config/arm/nbsd.mh (XDEPFILES): Delete.
9886 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9887 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9888 * config/i386/i386m3.mh (XDEPFILES): Delete.
9889 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9890 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9891 * config/i386/fbsd.mh (XDEPFILES): Delete.
9892 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9893 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9894 * config/i386/i386v4.mh (XDEPFILES): Delete.
9895 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9896 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9897 * config/i386/i386aix.mh (XDEPFILES): Delete.
9898 * config/i386/go32.mh (XDEPFILES): Delete.
9899 * config/i386/cygwin.mh (XDEPFILES): Delete.
9900 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9901 * config/i386/i386mach.mh (XDEPFILES): Delete.
9902 * config/i386/i386v32.mh (XDEPFILES): Delete.
9903 * config/i386/linux.mh (XDEPFILES): Delete.
9904 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9905 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9906 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9907 * config/i386/i386sco.mh (XDEPFILES): Delete.
9908 * config/i386/i386v.mh (XDEPFILES): Delete.
9909 * config/i386/nbsd.mh (XDEPFILES): Delete.
9910 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9911 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9912 * config/i386/symmetry.mh (XDEPFILES): Delete.
9913 * config/i386/obsd.mh (XDEPFILES): Delete.
9914 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9915 * config/ia64/linux.mh (XDEPFILES): Delete.
9916 * config/ia64/aix.mh (XDEPFILES): Delete.
9917 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9918 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9919 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9920 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9921 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9922 * config/m68k/linux.mh (XDEPFILES): Delete.
9923 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9924 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9925 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9926 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9927 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9928 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9929 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9930 * config/m88k/delta88.mh (XDEPFILES): Delete.
9931 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9932 * config/m88k/m88k.mh (XDEPFILES): Delete.
9933 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9934 * config/mips/linux.mh (XDEPFILES): Delete.
9935 * config/mips/irix6.mh (XDEPFILES): Delete.
9936 * config/mips/irix5.mh (XDEPFILES): Delete.
9937 * config/mips/irix4.mh (XDEPFILES): Delete.
9938 * config/mips/irix3.mh (XDEPFILES): Delete.
9939 * config/mips/decstation.mh (XDEPFILES): Delete.
9940 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9941 (NATDEPFILES): Move core-aout.o to here.
9942 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9943 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9944 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9945 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9946 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9947 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9948 * config/pa/hpux11.mh (XDEPFILES): Delete.
9949 * config/powerpc/aix.mh (XDEPFILES): Delete.
9950 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9951 * config/powerpc/linux.mh (XDEPFILES): Delete.
9952 * config/romp/rtbsd.mh: Rename XDEPFILES.
9953 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9954 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9955 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9956 * config/s390/s390.mh (XDEPFILES): Delete.
9957 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9958 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9959 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9960 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9961 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9962 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9963 * config/sparc/linux.mh (XDEPFILES): Delete.
9964 * config/vax/vaxult.mh (XDEPFILES): Delete.
9965 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9966 * Makefile.in (DEPFILES): Remove XDEPFILES.
9967
9968 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9969
9970 * utils.c (internal_verror): Fix comments, default is yes not no.
9971 Update queries to match. Default to quit and dump core.
9972
9973 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9974
9975 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9976 copyright.
9977 * defs.h, event-top.c, gdbcmd.h: Ditto.
9978 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9979 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9980 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9981 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9982 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9983 * mi/mi-main.c:Ditto.
9984
9985 * stack.c, symfile.c: Update copyright.
9986
9987 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9988
9989 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9990 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9991 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9992 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9993
9994 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9995
9996 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9997 * gdbserver/low-lynx.c (myattach): Likewise.
9998 * gdbserver/low-nbsd.c (myattach): Likewise.
9999 * gdbserver/low-sim.c (myattach): Likewise.
10000 * gdbserver/low-sparc.c (myattach): Likewise.
10001 * gdbserver/low-sun3.c (myattach): Likewise.
10002
10003 * gdbserver/low-linux.c (myattach): New function.
10004
10005 * gdbserver/server.c (attach_inferior): New function.
10006 (main): Handle "--attach".
10007
10008 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10009
10010 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10011 maintainer.
10012
10013 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10014
10015 * c-typeprint.c (is_type_conversion_operator): Add additional
10016 check for non-conversion operators.
10017
10018 2002-01-15 Michael Snyder <msnyder@redhat.com>
10019
10020 * linux-proc.c: Add "info proc" command, a la procfs.c.
10021 (read_mapping): New function, abstract and re-use code.
10022 (linux_find_memory_regions): Use new func read_mapping.
10023 (linux_info_proc_cmd): New function, implement "info proc".
10024 (_initialize_linux_proc): Add new command "info proc".
10025
10026 2002-01-15 Michael Snyder <msnyder@redhat.com>
10027
10028 * symfile.c (generic_load): Use bfd_map_over_sections method
10029 instead of manipulating bfd structure members directly.
10030 (add_section_size_callback): New function, bfd sections callback
10031 used by generic_load.
10032 (load_sections_callback): New function, bfd sections callback
10033 used by generic_load.
10034
10035 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10036
10037 [Based on work by Jim Blandy]
10038 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10039 (builtin_type_vec128): Export.
10040 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10041 types.
10042 (builtin_type_vec128): New builtin type for 128 bit vector
10043 registers.
10044 (build_gdbtypes): Initialize builtin_type_v16qi and
10045 builtin_type_v8hi. Create the vec128 register builtin type
10046 structure.
10047 (build_builtin_type_vec128): New function.
10048 (_initialize_gdbtypes): Register builtin_type_v16qi and
10049 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10050 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10051 AltiVec register to new builtin type.
10052
10053 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10054
10055 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10056 to make_cv_type.
10057
10058 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10059
10060 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10061 CLEAN_UP_REGISTER_VALUE.
10062 * regcache.c (supply_register): Update only call.
10063
10064 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10065
10066 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10067 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10068 a29k-*-vxworks* targets as obsolete.
10069
10070 2002-01-14 Michael Snyder <msnyder@redhat.com>
10071
10072 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10073 until we can resolve portability issues.
10074 * gregset.h: Remove references to fpxregs.
10075 * gcore.c (gcore_command): Initialize note_sec to NULL.
10076
10077 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10078
10079 * signals.c (target_signal_to_name): Rewrite. Only use
10080 signals[].name when in bounds and non-NULL.
10081
10082 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10083
10084 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10085 * signals.c (target_signal_to_name): Verify that SIG is within the
10086 bounds of the signals array.
10087
10088 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10089
10090 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10091
10092 2002-01-13 Keith Seitz <keiths@redhat.com>
10093
10094 * stack.c (print_frame_info_base): Print the frame's pc
10095 only if when print_frame_info_listing_hook is not defined.
10096
10097 2002-01-13 Keith Seitz <keiths@redhat.com>
10098
10099 * varobj.c (varobj_set_value): Make sure that there were no
10100 errors evaluating the object before attempting to set its
10101 value.
10102 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10103 so this offset adjustment is no longer necessary.
10104 (create_child): Don't set the error flag if the child is
10105 a CPLUS_FAKE_CHILD.
10106 (value_of_child): If value_fetch_lazy fails, return NULL
10107 so that callers will be notified that an error occurred.
10108 (c_value_of_variable): Delay check of variable's validity
10109 until later. We actually want all structs and unions to have
10110 the value "{...}".
10111 Do not return "???" for variables which could not be evaluated.
10112 This error condition must be returned to the caller so that it
10113 can get the error condition from gdb.
10114 (cplus_name_of_child): Adjust index for vptr before figuring
10115 out the name of the child.
10116 (cplus_value_of_child): If a child's (real) parent is not valid,
10117 don't even bother trying to give a value for it. Just return
10118 an error. Change all instances in this function.
10119 (cplus_type_of_child): If our parent is one of the "fake"
10120 parents, we need to get at the type of the real parent, and
10121 derive the child's true type using this information.
10122
10123 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10124
10125 From 2002-01-09 John Marshall <johnm@falch.net>:
10126 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10127 sources.redhat.com, and tweak some related URLs which had
10128 suffered from linkrot.
10129
10130 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10131
10132 From Jeff law:
10133 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10134 structures passed in registers.
10135
10136 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10137
10138 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10139 white space which prevented compilation. Reported by DSK
10140 <dsk@student.unsw.edu.au>.
10141
10142 2002-01-11 Michael Snyder <msnyder@redhat.com>
10143
10144 * symfile.c (build_section_addr_info_from_section_tab):
10145 Use bfd access method instead of manipulating bfd directly.
10146 (syms_from_objfile): Ditto.
10147 (simple_overlay_update_1): Ditto.
10148 (simple_overlay_update): Ditto.
10149 (generic_load): Ditto.
10150 (overlay_unmapped_address): FIXME comment, bfd access methods.
10151 (sections_overlap): FIXME comment, bfd access methods.
10152 (pc_in_mapped_range): FIXME comment, bfd access methods.
10153 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10154 (section_is_mapped): FIXME comment, bfd access methods.
10155 (section_is_overlay): FIXME comment, bfd access methods.
10156
10157 * symfile.c (generic_load): Whitespace and long line cleanups.
10158 Remove duplicate variable, change several local variables to
10159 more appropriate data types.
10160 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10161
10162 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10163
10164 From Peter Schauer:
10165 * language.c (longest_local_hex_string_custom): Use phex_nz to
10166 convert NUM to a hex string.
10167
10168 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10169
10170 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10171 the function.
10172 Update Copyright year.
10173
10174 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10175
10176 * language.c (longest_raw_hex_string): Delete unused function.
10177
10178 2002-01-11 Petr Sorfa <petrs@caldera.com>
10179
10180 * MAINTAINERS (write-after-approval): Add myself.
10181 * dwarf2read.c (read_tag_string_type): Handling of
10182 DW_AT_byte_size.
10183 (read_tag_string_type): FORTRAN fix to prevent propagation of
10184 first string size.
10185 (set_cu_language): Handling of DW_LANG_Fortran95
10186
10187 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10188
10189 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10190 GETPID(inferior_ptid).
10191 (store_inferior_registers): Likewise.
10192
10193 2002-01-10 Jason Merrill <jason@redhat.com>
10194
10195 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10196 Fix DW_OP_minus.
10197
10198 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10199
10200 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10201 and bfd/elf32-sh-nbsd.c.
10202
10203 2002-01-10 Michael Snyder <msnyder@redhat.com>
10204
10205 * NEWS: Mention --pid and corefile/proc-id behavior change.
10206
10207 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10208 * gcore.c: Include cli/cli-decode.h instead of command.h.
10209
10210 * main.c (captured_main): Add new command line option "--pid".
10211 If the second command line argument (following the symbol-file)
10212 begins with a digit, try to attach to it before trying to open
10213 it as a corefile.
10214 (print_gdb_help): Document the "--pid" argument.
10215
10216 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10217
10218 * completer.c (command_completer): New function.
10219
10220 * completer.h <command_completer>: Add prototype.
10221
10222 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10223 completer for the "help" command.
10224
10225 2002-01-09 Jason Merrill <jason@redhat.com>
10226
10227 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10228
10229 2002-01-09 Michael Snyder <msnyder@redhat.com>
10230
10231 * i386-linux-nat.c (fill_fpxregset): Make global.
10232 (store_fpxregset): Ditto.
10233
10234 * gregset.h (gdb_fpxregset_t): Define.
10235 (supply_fpxregset): Prototype.
10236 (fill_fpxregset): Prototype.
10237
10238 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10239
10240 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10241
10242 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10243 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10244 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10245
10246 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10247
10248 * MAINTAINERS: Update target maintainer rules so that any
10249 Maintainer can approve a tested patch for a maintenance-only
10250 target.
10251
10252 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10253
10254 * MAINTAINERS (write-after-approval): Add myself.
10255
10256 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10257 IN_SIGTRAMP.
10258
10259 2002-01-08 Michael Snyder <msnyder@redhat.com>
10260
10261 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10262 real name of the executable, rather than the /proc name.
10263
10264 2002-01-03 Michael Snyder <msnyder@redhat.com>
10265
10266 Implement a "generate-core-file" command in gdb, save target state.
10267 * gcore.c: New file. Implement new command 'generate-core-file'.
10268 Save a corefile image of the current state of the inferior.
10269 * linux-proc.c: Add linux-specific code for saving corefiles.
10270 * target.h (struct target_ops): Add new target vectors for saving
10271 corefiles; to_find_memory_regions and to_make_corefile_notes.
10272 (target_find_memory_regions): New macro.
10273 (target_make_corefile_notes): New macro.
10274 * target.c (update_current_target): Inherit new target methods.
10275 (dummy_find_memory_regions): New place-holder method.
10276 (dummy_make_corefile_notes): New place-holder method.
10277 (init_dummy_target): Initialize new dummy target vectors.
10278 * exec.c (exec_set_find_memory_regions): New function.
10279 Allow the exec_ops vector for memory regions to be taken over.
10280 (exec_make_note_section): New function, target vector method.
10281 * defs.h (exec_set_find_memory_regions): Export prototype.
10282 * procfs.c (proc_find_memory_regions): New function, corefile method.
10283 (procfs_make_note_section): New function, corefile method.
10284 (init_procfs_ops): Set new target vector pointers.
10285 (find_memory_regions_callback): New function.
10286 (procfs_do_thread_registers): New function.
10287 (procfs_corefile_thread_callback): New function.
10288 * sol-thread.c (sol_find_memory_regions): New function.
10289 (sol_make_note_section): New function.
10290 (init_sol_thread_ops): Initialize new target vectors.
10291 * inftarg.c (inftarg_set_find_memory_regions): New function.
10292 Allow to_find_memory_regions vector to be taken over.
10293 (inftarg_set_make_corefile_notes): New function.
10294 Allow to_make_corefile_notes vector to be taken over.
10295 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10296 interface layer if not target_has_execution (may be a corefile).
10297 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10298 * config/sparc/sun4sol2.mh: Ditto.
10299 * config/alpha/alpha-linux.mh: Ditto.
10300 * config/arm/linux.mh: Ditto.
10301 * config/i386/x86-64linux.mh: Ditto.
10302 * config/ia64/linux.mh: Ditto.
10303 * config/m68k/linux.mh: Ditto.
10304 * config/mips/linux.mh: Ditto.
10305 * config/powerpc/linux.mh: Ditto.
10306 * config/sparc/linux.mh: Ditto.
10307
10308 2002-01-07 Michael Snyder <msnyder@redhat.com>
10309
10310 * arm-linux-nat.c: Remove references to regcache.c internal data
10311 (registers[] and register_valid[]).
10312
10313 2002-01-07 Michael Snyder <msnyder@redhat.com>
10314
10315 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10316 so that attaching to a pid will automatically read the process's
10317 symbol file and shlibs.
10318 * Makefile.in: Add rule for linux-proc.o.
10319 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10320 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10321 * config/arm/linux.mh: Ditto.
10322 * config/i386/linux.mh: Ditto.
10323 * config/i386/x86-64linux.mh: Ditto.
10324 * config/ia64/linux.mh: Ditto.
10325 * config/m68k/linux.mh: Ditto.
10326 * config/mips/linux.mh: Ditto.
10327 * config/powerpc/linux.mh: Ditto.
10328 * config/sparc/linux.mh: Ditto.
10329
10330 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10331
10332 * win32-nat.c: Add i386-tdep.h dependency.
10333
10334 2002-01-07 Michael Snyder <msnyder@redhat.com>
10335
10336 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10337 instead of bfd_get_arch_size. Don't bail out just because
10338 there's no exec_bfd.
10339
10340 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10341 * p-valprint.c (pascal_object_print_value): Ditto.
10342 * somread.c (som_symtab_read): Ditto.
10343 * symfile.c (simple_free_overlay_region_table): Ditto.
10344 * valops.c (value_assign): Ditto.
10345
10346 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10347 use tilde_expand and strerror for opening save-tracepoints file.
10348
10349 * thread-db.c (thread_db_new_objfile): Indendation fix.
10350
10351 * infptrace.c (GDB_MAX_ALLOCA): New define.
10352 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10353 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10354 can be overridden with whatever value is appropriate to the host).
10355 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10356 alloca to allocate potentially large buffer.
10357 * rs6000-nat.c (child_xfer_memory): Ditto.
10358 * symm-nat.c (child_xfer_memory): Ditto.
10359 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10360
10361 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10362
10363 From Nick Clifton <nickc@redhat.com>
10364 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10365
10366 2002-01-07 Michael Snyder <msnyder@redhat.com>
10367
10368 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10369 Don't use exec_bfd if it's NULL.
10370
10371 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10372
10373 * valops.c (value_arg_coerce): Fix formatting.
10374
10375 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10376
10377 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10378 * gnu-nat.c: Ditto.
10379
10380 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10381
10382 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10383 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10384 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10385 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10386 z8k-coff have not been multi-arched. Update z8k-coff build
10387 status.
10388
10389 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10390
10391 * MAINTAINERS: Mark a29k target as obsolete.
10392 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10393 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10394 comments.
10395 * NEWS: Note that a29k targets are obsolete.
10396 * a29k-tdep.c: Mark as obsolete.
10397 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10398 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10399 a29k-*-vxworks* targets as obsolete.
10400 * remote-adapt.c: Obsolete.
10401 * remote-eb.c: Obsolete.
10402 * remote-mm.c: Obsolete.
10403 * remote-udi.c: Obsolete.
10404 * config/a29k/a29k-udi.mt: Obsolete.
10405 * config/a29k/a29k.mt: Obsolete.
10406 * config/a29k/tm-a29k.h: Obsolete.
10407 * config/a29k/tm-vx29k.h: Obsolete.
10408 * config/a29k/vx29k.mt: Obsolete.
10409
10410 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10411
10412 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10413 with BFD_ENDIAN_BIG.
10414
10415 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10416
10417 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10418 * configure, config.in: Re-generate.
10419 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10420 * defs.h: Do not include <endian.h>.
10421
10422 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10423
10424 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10425 * config.in: Regenerate.
10426 * configure.in: Update copyright years.
10427 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10428 * configure: Regenerate.
10429 * i386bsd-nat.c: Update copyright years.
10430 (fill_gregset): Use regcache_collect.
10431 (fetch_inferior_registers): Only fetch integer registers
10432 if requested to do so. Add support for XMM registers
10433 using PT_GETXMMREGS.
10434 (store_inferior_registers): Only store integer registers
10435 if requested to do so. Add support for XMM registers
10436 using PT_SETXMMREGS.
10437 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10438 (store_inferior_registers): Remove.
10439 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10440 (fetch_elfcore_registers): New function.
10441 (i386nbsd_elfcore_fns): New.
10442 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10443 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10444 i386bsd-nat.o.
10445 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10446 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10447 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10448 * config/i386/tm-nbsd.h: Update copyright years.
10449 (HAVE_SSE_REGS): Define.
10450 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10451 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10452 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10453 (SIGCONTEXT_PC_OFFSET): Remove.
10454 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10455
10456 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10457
10458 * configure.tgt: Remove powerpc-*-macos* target.
10459 * config/m68k/xm-mpw.h: Delete file.
10460 * config/xm-mpw.h: Delete file.
10461 * ser-mac.c: Delete file.
10462 * mpw-make.sed: Delete file.
10463 * mpw-config.in: Delete file.
10464 * mac-xdep.c: Delete file.
10465 * mac-gdb.r: Delete file.
10466 * mac-defs.h: Delete file.
10467 * mac-nat.c: Delete file.
10468 * config/powerpc/macos.mh: Delete file.
10469 * config/powerpc/macos.mt: Delete file.
10470 * config/powerpc/nm-macos.h: Delete file.
10471 * config/powerpc/tm-macos.h: Delete file.
10472 * source.c (openp, open_source_file): Remove obsolete code.
10473 * top.c (gdb_readline): Ditto.
10474 * utils.c (query): Ditto.
10475 * event-top.c (display_gdb_prompt): Ditto.
10476 * Makefile.in (ser-mac.o): Delete obsolete target.
10477 * NEWS: Update.
10478
10479 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10480
10481 * defs.h (BIG_ENDIAN): Delete macro definition.
10482 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10483 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10484 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10485 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10486 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10487 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10488 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10489 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10490 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10491 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10492 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10493 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10494 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10495 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10496 * gdbarch.c: Re-generate.
10497
10498 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10501 for core files.
10502
10503 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10504
10505 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10506
10507 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10508
10509 * value.h (value_ptr): Delete typedef.
10510
10511 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10512
10513 * i386nbsd-nat.c: Update copyright years.
10514 Include i386-tdep.h.
10515
10516 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10517
10518 * stabsread.c: Update copyright years.
10519
10520 From Debashis Mahata <debashis.mahata@wipro.com>:
10521 (read_struct_fields): Deal with Sun C compiler erroneous stab
10522 output for structs and unions.
10523 Fix PR gdb/269.
10524
10525 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10526
10527 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10528 prototype.
10529
10530 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10531
10532 * cp-abi.c: Fix whitespace.
10533 (baseclass_offset): New wrapper function.
10534 * cp-abi.h (baseclass_offset): Add prototype.
10535 (struct cp_abi_ops): Add baseclass_offset pointer.
10536
10537 * valops.c (vb_match): Move to...
10538 * gnu-v2-abi.c (vb_match): here.
10539 * valops.c (baseclass_offset): Move to...
10540 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10541
10542 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10543
10544 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10545 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10546 * hpacc-abi.c (init_hpacc_ops): Likewise.
10547
10548 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10549
10550 * valops.c (find_overload_match): Accept obj as a
10551 reference parameter. Update it before returning.
10552 * value.h (find_overload_match): Update prototype.
10553 * eval.c (evaluate_subexp_standard): Pass object to
10554 find_overload_match by reference.
10555
10556 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10557
10558 * valarith.c: Replace value_ptr with struct value pointer. Remove
10559 register attribute from value declarations.
10560 * valops.c: Ditto.
10561 * value.h: Ditto.
10562 * scm-lang.c (scm_lookup_name): Ditto.
10563
10564 2002-01-03 Michael Snyder <msnyder@redhat.com>
10565
10566 Abstract the functionality of iterating over mapped memory
10567 regions into a general purpose iterator function.
10568 * procfs.c (iterate_over_mappings): New function, general purpose
10569 iterator for memory sections.
10570 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10571 (solib_mappings_callback): New function, callback for above.
10572 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10573 (info_mappings_callback): New function, callback for above.
10574
10575 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10576
10577 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10578
10579 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10580 * i386-tdep.c: Include "elf-bfd.h".
10581 (process_note_abi_tag_sections): New function.
10582 (i386_gdbarch_init): Add code to recognize various OS/ABI
10583 combinations.
10584
10585 * maint.c (_initialize_maint_cmds): Add missing \ in
10586 string-literal.
10587
10588 For older changes see ChangeLog-2001
10589 \f
10590 Local Variables:
10591 mode: change-log
10592 left-margin: 8
10593 fill-column: 74
10594 version-control: never
10595 End: