* ld-sh/sh64/cmpct1.xd: Adjust for lack of abs section sym.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a3a2ee65
JT
12002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4 if arm_apcs_32 is false.
5
8a55a7c5
TR
62002-09-03 Theodore A. Roth <troth@verinet.com>
7
8 * gdb/avr-tdep.c (avr_gdbarch_init): Use
9 generic_unwind_get_saved_register.
10
e26fb1d7
DC
112002-09-03 David Carlton <carlton@math.stanford.edu>
12
13 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
14 argument (PR gdb/653). Update call to smash_to_method_type.
15 (read_structure_scope): Update call to dwarf2_add_member_fn.
16
30d52491
ML
172002-09-03 Michal Ludvig <mludvig@suse.cz>
18
19 * x86-64-linux-tdep.c: Include gdb_string.h
20 * x86-64-linux-nat.c: Ditto.
21
06891d83
JT
222002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
23
24 * ada-exp.y (yyname, yyrule): Remap global variables that appear
25 when YYDEBUG is set to 1.
26 * c-exp.y: Likewise.
27 * f-exp.y: Likewise.
28 * jv-exp.y: Likewise.
29 * m2-exp.y: Likewise.
30 * p-exp.y: Likewise.
31
7d400e77
JT
322002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
33
34 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
35 dependency list.
36 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
37 solib_svr4_fetch_link_map_offsets to
38 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
39 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
40 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
41 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
42 solib-svr4.o, and solib-legacy.o.
43 * config/i386/tm-nbsd.h: Include solib.h.
44
704a27c4
JT
452002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
46
47 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
48 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
49 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
50 comment noting that this needs its own target configuration.
51 * config/i386/nbsd.mt: New file.
52 * config/i386/nbsdaout.mt: Remove.
53 * config/i386/nbsdelf.mt: Ditto.
54 * config/i386/tm-nbsdaout.h: Ditto.
55
d66198e1
JT
562002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
57
58 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
59 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
60 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
61 tdep->sigtramp_end.
62 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
63 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
64 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
65
3cac699e
JT
662002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
67
68 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
69 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
70 * i386-tdep.h (i386bsd_init_abi): New prototype.
71 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
72 function declaration.
73 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
74 for NetBSD-a.out or NetBSD-ELF.
75 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
76 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
77 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
78 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
79 and nbsd-tdep.h.
80 (i386nbsd_pc_in_sigtramp): New function.
81 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
82 i386nbsd_pc_in_sigtramp.
83 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
84 and i386nbsdelf_init_abi OS ABI handlers.
85 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
86 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
87
7010ca0a
MK
882002-09-02 Mark Kettenis <kettenis@gnu.org>
89
90 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
91 registers if the target really has them.
92
6dd93b72
JT
932002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
94
95 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
96 than nbsd-tdep.h.
97
2ca8ae21
JT
982002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
99
100 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
101 list.
102 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
103 (alphanbsd_skip_sigtramp_frame): New functions.
104 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
105 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
106 to alphanbsd_sigcontext_addr.
107
3d9b49b0
JT
1082002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
109
110 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
111 list.
112 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
113 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
114 nbsd_pc_in_sigtramp.
115 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
116 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
117 * nbsd-tdep.c: Include gdb_string.h.
118 (nbsd_pc_in_sigtramp): New function.
119 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
120 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
121 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
122 ppcnbsd_pc_in_sigtramp.
123 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
124 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
125 shnbsd_pc_in_sigtramp.
126 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
127 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
128 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
129
c860120c
PM
1302002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
131
132 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
133 watchpoints to NULL.
134 (insert_breakpoints): set val field of watchpoints if NULL.
135
136
c7612d53
JB
1372002-08-29 Jim Blandy <jimb@redhat.com>
138
139 * symtab.c (lookup_symbol_aux): In the cases where we find a
140 minimal symbol of an appropriate name and use its address to
141 select a symtab to read and search, use `name' (as passed to us)
142 as the demangled name when searching the symtab's global and
143 static blocks, not the minsym's name.
144
66609862
KS
1452002-08-29 Keith Seitz <keiths@redhat.com>
146
147 * stack.c (print_frame_info_base): Always set current_source_symtab
148 and current_source_line.
149
151fefe2
JB
1502002-08-29 Donn Terry <donnte@microsoft.com>
151
152 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
153
bfb3754e
KS
1542002-08-28 Keith Seitz <keiths@redhat.com>
155
156 * stack.c (select_frame): Add FIXME concerning selected-frame
157 events.
158 (select_frame_command): Send selected-frame-level-changed
159 event notification, but only if the level actually changed.
160 (up_silently_base): Add selected-frame-level-changed event
161 notification.
162 (down_silently_base): Likewise.
163
e822a2a0
AC
1642002-08-28 Andrew Cagney <ac131313@redhat.com>
165
166 * Makefile.in: Update dependencies for all gdb/*.c files.
167
309367d4
TT
1682002-08-27 Tom Tromey <tromey@redhat.com>
169
170 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
171 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
172 Update dependencies.
173 * i387-tdep.c: Include gdb_string.h.
174 * osabi.c: Likewise.
175 * i386-linux-nat.c: Likewise.
176 * lin-lwp.c: Likewise.
177 * ax-gdb.c: Likewise.
178 * signals/signals.c: Likewise.
179 * jv-valprint.c: Likewise.
180 * p-lang.c: Likewise.
181 * c-valprint.c: Likewise.
182 * cp-abi.c: Likewise.
183
e1507482
EZ
1842002-08-27 Elena Zannoni <ezannoni@redhat.com>
185
186 * cli/cli-script.h (copy_command_lines): Export.
187 * breakpoint.c: Include cli/cli-script.h.
188 * Makefile.in (breakpoint.o): Update dependencies.
189
c2b8ed2c
MS
1902002-08-26 Joel Brobecker <brobecker@gnat.com>
191
192 * cli/cli-script.c (copy_command_lines): New function.
193 * defs.h (copy_command_lines): Export.
194 * testsuite/gdb.base/commands.exp: New tests for commands
195 attached to a temporary breakpoint, and for commands that
196 delete the breakpoint they are attached to.
197
1982002-08-26 Michael Snyder <msnyder@redhat.com>
199
200 * breakpoint.c (bpstat_stop_status): Instead of copying the
201 pointer to the breakpoint commands struct, make a new copy
202 of the struct and point to that.
203 (bpstat_clear): Free the commands struct.
204 (bpstat_clear_actions): Free the commands struct.
205 (bpstat_do_actions): Free the command actions. Also execute
206 the local cleanups, instead of deleting them.
207 (delete_breakpoint): Leave the commands field of the bpstat
208 chain alone -- it will be freed later.
209
64b84175
KB
2102002-08-26 Kevin Buettner <kevinb@redhat.com>
211
212 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
213 deleted in 2002-08-20 commit. This function is still used by
214 ppc-linux-nat.c.
215
55970da6
KS
2162002-08-26 Keith Seitz <keiths@redhat.com>
217
218 * gdb-events.sh: Add selected-frame-level-changed event.
219 * gdb-events.c: Regenerated.
220 * gdb-events.h: Regenerated.
221
a790ad35
SC
2222002-08-26 Stephane Carrez <stcarrez@nerim.fr>
223
224 Fix PR gdb/393:
225 * inflow.c (terminal_save_ours): New function to save terminal
226 settings.
227 * inferior.h (terminal_save_ours): Declare.
228 * target.c (debug_to_terminal_save_ours): New function.
229 (cleanup_target): Defaults to_terminal_save_ours.
230 (update_current_target): Inherit to_terminal_save_ours.
231 (setup_target_debug): Set to_terminal_save_ours.
232 * target.h (target_terminal_save_ours): New to save terminal settings.
233 (target_ops): New member to_terminal_save_ours.
234 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
235 * hpux-thread.c (init_hpux_thread_ops): Likewise.
236 * inftarg.c (init_child_ops): Likewise.
237 * m3-nat.c (init_m3_ops): Likewise.
238 * procfs.c (init_procfs_ops): Likewise.
239 * wince.c (init_child_ops): Likewise.
240 * win32-nat.c (init_child_ops): Likewise.
241 * sol-thread.c (init_sol_thread_ops): Likewise.
242
c00dcbe9
MK
2432002-08-26 Mark Kettenis <kettenis@gnu.org>
244
3d7f4f49
MK
245 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
246 use regcache_* functions.
247 (i386_gdbarch_init): Set store_return_value instead of
248 deprecated_store_return_value.
249
c00dcbe9
MK
250 * regcache.c (regcache_raw_write_signed,
251 regcache_raw_write_unsigned): New functions.
252 * regcache.h (regcache_raw_write_signed,
253 regcache_raw_write_unsigned): New prototypes.
254
0e0d15ca
AC
2552002-08-25 Andrew Cagney <ac131313@redhat.com>
256
257 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
258 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
259 source file dependencies. Cleanup corresponding generator rules.
260
d3b22ed5
AC
2612002-08-25 Andrew Cagney <ac131313@redhat.com>
262
263 * regcache.h (register_offset_hack): Declare.
264 (regcache_cooked_read_using_offset_hack): Declare.
265 (regcache_cooked_write_using_offset_hack): Declare.
266
267 * regcache.c (register_offset_hack): New function.
268 (regcache_cooked_read_using_offset_hack): New function.
269 (regcache_cooked_write_using_offset_hack): New function.
270 (regcache_dump): Check that the registers, according to their
271 offset, are packed hard against each other.
272 (cooked_xfer_using_offset_hack): New function.
273
bb425013
AC
2742002-08-25 Andrew Cagney <ac131313@redhat.com>
275
276 * regcache.c (struct regcache_descr): Add field register_type.
277 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
278 in as a parameter
279 (init_regcache_descr): Initialize register_type. Pass the descr
280 to init_legacy_regcache_descr. Use register_type instead of
281 REGISTER_VIRTUAL_TYPE.
282 (register_type): New function.
283 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
284 * regcache.h (register_type): Declare.
285
d0403e00
AC
2862002-08-25 Andrew Cagney <ac131313@redhat.com>
287
288 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
289 instead of deprecated_store_return_value. Fix fallout from
290 2002-08-23 Andrew Cagney <cagney@redhat.com>.
291
0ed04cce
AC
2922002-08-25 Andrew Cagney <ac131313@redhat.com>
293
294 * regcache.c (max_register_size): New function.
295 (init_legacy_regcache_descr): Ensure that max_register_size is
296 large enough for REGISTER_VIRTUAL_SIZE.
297 * regcache.h (max_register_size): Declare.
298
46d79c04
AC
2992002-08-24 Andrew Cagney <ac131313@redhat.com>
300
301 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
302 store_return_value.
303 (e500_extract_return_value): Change type of valbuf pointer to
304 void.
305
853c7bd0
MK
3062002-08-24 Mark Kettenis <kettenis@gnu.org>
307
cd87e769
MK
308 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
309 workaround.
310
853c7bd0
MK
311 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
312 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
313 long long) to prevent compiler warning on 64-bit systems.
314
ebba8386
AC
3152002-08-23 Andrew Cagney <cagney@redhat.com>
316
317 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
318 (DEPRECATED_STORE_RETURN_VALUE): New method.
319 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
320 * gdbarch.h, gdbarch.c: Re-generate.
321
322 * values.c (set_return_value): Pass current_regcache to
323 STORE_RETURN_VALUE.
324 * arch-utils.h (legacy_store_return_value): Declare.
325 * arch-utils.c (legacy_store_return_value): New function.
326 (legacy_extract_return_value): Update parameters.
327
328 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
329 STORE_RETURN_VALUE.
330 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
331 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
332 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
333 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
334 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
335 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
336 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
337 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
338 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
339 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
340
341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
342 * i386-tdep.c (i386_extract_return_value): Update.
343 * arch-utils.c (legacy_extract_return_value): Update.
344 * frv-tdep.c (frv_gdbarch_init): Update.
345 * cris-tdep.c (cris_gdbarch_init): Update.
346 * d10v-tdep.c (d10v_gdbarch_init): Update.
347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
348 * m68k-tdep.c (m68k_gdbarch_init): Update.
349 * mcore-tdep.c (mcore_gdbarch_init): Update.
350 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
351 * s390-tdep.c (s390_gdbarch_init): Update.
352 * sparc-tdep.c (sparc_gdbarch_init): Update.
353 * sh-tdep.c (sh_gdbarch_init): Update.
354 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
355 * v850-tdep.c (v850_gdbarch_init): Update.
356 * avr-tdep.c (avr_gdbarch_init): Update.
357 * ia64-tdep.c (ia64_gdbarch_init): Update.
358 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
359 * vax-tdep.c (vax_gdbarch_init): Update.
360 * alpha-tdep.c (alpha_gdbarch_init): Update.
361 * arm-tdep.c (arm_gdbarch_init): Update.
362 * mips-tdep.c (mips_gdbarch_init): Update.
363 * i386-tdep.c (i386_gdbarch_init): Update.
364
5bd8c6d0
AC
3652002-08-23 Andrew Cagney <ac131313@redhat.com>
366
367 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
368 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
369
e73e1724
MK
3702002-08-24 Mark Kettenis <kettenis@gnu.org>
371
372 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
373 problems.
374
3e6564e1
JB
3752002-08-23 Joel Brobecker <brobecker@gnat.com>
376
377 * infrun.c (handle_inferior_event): Move a comment outside of a
378 function call, in order to avoid indent reformatting this part
379 of the code in an unreadable way.
380
81d0cc19
GS
3812002-08-23 Grace Sainsbury <graces@redhat.com>
382
383 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
384 when breakpoints fail. Move general breakpoint error messages to
385 insert_breakpoints.
386 * breakpoint.c (insert_breakpoints): Change warnings when
387 breakpoints are nto inserted to specify the type. Remove call to
388 memory_error when hardware breakpoints can't be inserted. Remove
389 multiple calls to warning so all messages are sent to the user at
390 once.
391 (delete_breakpoints): Make insert error messsages more explicit.
392
17574093
DJ
3932002-08-23 Daniel Jacobowitz <drow@mvista.com>
394
395 * ChangeLog: Move gdbserver entries after GDB 5.2 to
396 gdbserver/ChangeLog.
397
8acc2935
MK
3982002-08-23 Mark Kettenis <kettenis@gnu.org>
399
dfe01d39
MK
400 * i386-tdep.c: Include "objfiles.h".
401 (i386_svr4_init_abi): Set in_solib_call_trampoline and
402 skip_trampoline_code.
403 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
404 (CPLUS_MARKER): Define to '.'.
405
8acc2935
MK
406 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
407 member.
408 (linux_corefile_thread_callback): Increase args->num_notes.
409 (linux_make_note_section): Initialize thread_args.num_notes, and
410 use it to determine whether notes for any threads were created.
411
151fefe2 4122002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
413
414 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
415 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
416 and PCUNKILL.
417 (write_with_trace): Conditionalize out the switch branch handling
418 PCSHOLD if the corresponding macro is not defined. Likewise for
419 PRSABORT and PRSTOP.
420 This change will be needed by the Interix port.
421
e1507482
EZ
4222002-08-22 Elena Zannoni <ezannoni@redhat.com>
423
424 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
425 write_register wherever possible instead of manipulating the
426 register bytes directly.
427 Assign VALUE_CONTENTS to a variable and use that.
428 The GPR numbers are now dependent on the architecture.
429
96ff0de4
EZ
4302002-08-22 Elena Zannoni <ezannoni@redhat.com>
431
432 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
433 ev_offset fields.
434 (skip_prologue): Add support for BookE/e500 instructions.
435 (e500_extract_return_value): New function.
436 (frame_get_saved_regs): Add support for saving ev registers and
437 pseudo gpr's.
438 (e500_store_return_value): New function.
439 (rs6000_gdbarch_init): Move up default intializations of
440 deprecated_extract_return_value and store_return_value. Overwrite
441 init of store_return_value with e500 specific version.
442 Set extract_return_value for e500.
443
fbefca5b
EZ
4442002-08-22 Elena Zannoni <ezannoni@redhat.com>
445
446 * blockframe.c (generic_call_dummy_register_unwind): Use
447 regcache_cooked_read to catch cases in which the variable is
448 stored in a pseudo register.
449
4d210288
AC
4502002-08-22 Andrew Cagney <cagney@redhat.com>
451
452 * NEWS: Mention that the i960 has been made obsolete.
453 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
454 i960-tdep.c
455 (remote-nrom.o): Obsolete target.
456 (remote-nindy.o, i960-tdep.o): Ditto.
457 * remote-nrom.c: Make file obsolete.
458 * remote-nindy.c, remote-vx960.c: Ditto.
459 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
460 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
461 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
462 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
463 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
464 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
465 i960-*-vxworks* obsolete.
466 * MAINTAINERS: Note that the i960 is obsolete.
467
6c0c456d
CV
4682002-08-21 Corinna Vinschen <vinschen@redhat.com
469
470 * aix-thread.c (aix_thread_detach): Disable thread debugging on
471 detach to allow reinitialization.
472
9f9d12b3
AC
4732002-08-22 Andrew Cagney <ac131313@redhat.com>
474
475 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
476 attempt).
477
ebeb39fe
JB
4782002-08-22 Jim Blandy <jimb@redhat.com>
479
480 * coffread.c (coff_symfile_read): Don't try to read the line
481 number table from disk if the image file doesn't have a symbol
482 table; we'll never actually look at the info anyway, and Windows
483 ships DLL's with bogus file offsets for the line number data.
484
5bf1c677
EZ
4852002-08-21 Elena Zannoni <ezannoni@redhat.com>
486
487 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
488 an e500 executable.
489
71b8ef93
MS
4902002-08-21 Michael Snyder <msnyder@redhat.com>
491
492 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
493 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
494 (DEFAULT_MIPS_TYPE): Delete unused macro.
495 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
496 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 497
d174216d
JB
4982002-08-21 Jim Blandy <jimb@redhat.com>
499
500 * valops.c (value_cast): Simplify and correct logic for doing a
501 static cast from a pointer to a base class to a pointer to a
502 derived class.
503
0ab7a791
AC
5042002-08-21 Andrew Cagney <ac131313@redhat.com>
505
506 * infcmd.c (default_print_registers_info): Replace
507 do_registers_info.
508 (registers_info): Use gdbarch_print_registers_info instead of
509 DO_REGISTERS_INFO.
510 * inferior.h (default_print_registers_info): Replace
511 do_registers_info.
512 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
513 (DO_REGISTERS_INFO): Change to a predicate function.
514 * gdbarch.h, gdbarch.c: Regenerate.
515
e23792cc
KS
5162002-08-21 Keith Seitz <keiths@redhat.com>
517
518 * gdb-events.sh: Add target-changed event.
519 * gdb-events.c: Regenerated.
520 * gdb-events.c: Regenerated.
521 * valops.c (value_assign): Add target-changed event notification
522 to inlval_register, lval_memory, and lval_reg_frame_relative.
523
9fb14e79
JB
5242002-08-21 Joel Brobecker <brobecker@gnat.com>
525
526 * NEWS: Add an entry regarding the improvement of the next/step
527 operation on Alpha Tru64 multi-processor machines.
528
6d39a69f
AC
5292002-08-21 Andrew Cagney <ac131313@redhat.com>
530
72acd513
AC
531 * Makefile.in: Update dependencies for mi/ cli/ and tui/
532 directores.
342af04b 533 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
534 * Makefile.in (install-gdbtk): Move to install section.
535 (rdi-share/libangsd.a): Move to end of file.
536
fa5f27c7
AC
5372002-08-19 Andrew Cagney <ac131313@redhat.com>
538
539 * frame.c (frame_register_unwind): When a register, set addrp to
540 the register's byte.
541
5a89d8aa
MS
5422002-08-20 Michael Snyder <msnyder@redhat.com>
543
544 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
545 used locally, so move them from the target machine header to here.
546 (mips_set_processor_type, mips_register_name, mips32_next_pc,
547 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
548 Make static.
549 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
550
822e978b
AC
5512002-08-20 Andrew Cagney <cagney@redhat.com>
552
553 * NEWS: Mention that the Apollo line was made obsolete.
554 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
555 m68*-hp-hpux* obsolete.
556 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
557 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
558 * buildsym.c (make_blockvector): Make static.
559 * buildsym.h (make_blockvector): Make extern declaration obsolete.
560 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
561 (ALLDEPFILES): Remove dstread.c.
562 (dstread.o): Obsolete make rule.
563 * dstread.c: Makefile obsolete.
564 * dst.h: Ditto.
565 * config/m68k/hp300hpux.mt: Ditto.
566 * config/m68k/hp300hpux.mh: Ditto.
567 * config/m68k/hp300bsd.mt: Ditto.
568 * config/m68k/hp300bsd.mh: Ditto.
569 * config/m68k/apollo68b.mt: Ditto.
570 * config/m68k/apollo68v.mh: Ditto.
571 * config/m68k/apollo68b.mh: Ditto.
572
e41b17f0
MS
5732002-08-20 Michael Snyder <msnyder@redhat.com>
574
575 * mips-tdep.c (mips_in_return_stub): Make static.
576 (mips_gdbarch_init): Set in_solib_return_trampoline.
577 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
578
d50355b6
MS
5792002-08-20 Michael Snyder <msnyder@redhat.com>
580
581 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
582 * gdbarch.c, gdbarch.h: Regenerate.
583 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
584 Add.
585 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
586
757a7cc6
MS
5872002-08-20 Michael Snyder <msnyder@redhat.com>
588
589 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
590 (mips_gdbarch_init): Set skip_trampoline_code,
591 in_solib_call_trampoline.
592 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
593 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
594
c8001721
EZ
5952002-08-20 Elena Zannoni <ezannoni@redhat.com>
596
597 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
598
599 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
600 vector type for ev registers.
601 (e500_pseudo_register_read): New function.
602 (e500_pseudo_register_write): New function.
603 (e500_dwarf2_reg_to_regnum): New function.
604 (PPC_UISA_NOFP_SPRS): New macro.
605 (PPC_EV_REGS): New macro.
606 (PPC_GPRS_PSEUDO_REGS): New macro.
607 (registers_e500): New register set for e500.
608 (variants): Add e500 variant.
609 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
610 before setting architectural dependent variations. Initialize ev
611 registers numbers. Add case for e500 architecture. Set the
612 number of pseudo registers.
613
64366f1c
EZ
6142002-08-20 Elena Zannoni <ezannoni@redhat.com>
615
616 * rs6000-tdep.c: Clean up comments.
617
7e78f0ca
AC
6182002-08-20 Andrew Cagney <cagney@redhat.com>
619
620 * h8300-tdep.c: Re-indent file.
621
697f7479
JB
6222002-08-20 Jim Blandy <jimb@redhat.com>
623
624 * Makefile.in (LDFLAGS): Allow the configure script to establish a
625 default for this.
697f7479 626
e86ae29f
KS
6272002-08-20 Keith Seitz <keiths@redhat.com>
628
629 * breakpoints.c (watch_command_1): Use internal breakpoint
630 when setting a watchpoint_scope breakpoint.
631
216b504f
EZ
6322002-08-20 Elena Zannoni <ezannoni@redhat.com>
633
634 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
635 (build_builtin_type_vec64i): Ditto.
636 (build_builtin_type_vec128): Ditto.
637 (build_builtin_type_vec128i): Ditto.
638
f7ab6ec6
MS
6392002-08-19 Michael Snyder <msnyder@redhat.com>
640
641 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
642 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
643 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
644 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
645 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
646 CALL_DUMMY_ADDRESS): Delete.
647 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
648 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
649 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
650 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
651 push_return_address.
652 (mips_register_raw_size, mips_eabi_use_struct_convention,
653 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
654 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
655 mips_init_extra_frame_info, mips_eabi_push_arguments,
656 mips_n32n64_push_arguments, mips_push_return_address,
657 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
658 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
659
b5d1566e
MS
6602002-08-19 Michael Snyder <msnyder@redhat.com>
661
662 * mips-tdep.c (mips_frame_num_args): New function.
663 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
664 frame_saved_pc, frame_args_address, frame_locals_address,
665 frame_num_args, and frame_args_skip.
666 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
667 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
668 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
669 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
670
2f1488ce
MS
6712002-08-20 Michael Snyder <msnyder@redhat.com>
672
673 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
674 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
675 * mips-tdep.c (mips_store_struct_return): New function.
676 (mips_extract_struct_value_address): New function.
677 (mips_gdbarch_init): Set store_struct_return and
678 extract_struct_value_address.
679
41ff2da1
DC
6802002-08-20 David Carlton <carlton@math.stanford.edu>
681
682 * dwarf2read.c (dwarf2_build_psymtabs): Check that
683 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
684 (read_file_scope): Check that line_header is nonzero before
685 decoding macro information.
686
e5451d58
MK
6872002-08-20 Mark Kettenis <kettenis@gnu.org>
688
689 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
690 flag the general-purpose registers as floating-point on targets
691 that don't support the floating-point registers.
692
4a6daafa
EZ
6932002-08-20 Elena Zannoni <ezannoni@redhat.com>
694
695 * rs6000-tdep.c (altivec_register_p): Delete.
696 (rs6000_do_altivec_registers): Delete.
697 (rs6000_altivec_registers_info): Delete.
698 (rs6000_do_registers_info): Delete.
699 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
700 (rs6000_gdbarch_init): Remove setting of do_registers_info.
701
ab4327e0
EZ
7022002-08-20 Elena Zannoni <ezannoni@redhat.com>
703
704 * infcmd.c (do_registers_info): Print vector registers in hex
705 format only.
706 (print_vector_info): Check that printing registers
707 makes sense.
708 (print_float_info): Ditto.
709
cb1d2653
AC
7102002-08-20 Andrew Cagney <ac131313@redhat.com>
711
712 * mips-tdep.c (mips_gdbarch_init): Update.
713 (mips_o32_extract_return_value): Rewrite.
714 (mips_o32_store_return_value): Rewrite.
715 (mips_o32_xfer_return_value): New function.
716 (mips_xfer_register): Tweak debug print message. Allow for
717 buf_offset when dumping the value transfered.
718
dfc3d9b2
AC
7192002-08-20 Andrew Cagney <ac131313@redhat.com>
720
721 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
722 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
723 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
724 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
725 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
726
7807aa61
MS
7272002-08-14 Michael Snyder <msnyder@redhat.com>
728
729 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
730
489461e2
EZ
7312002-08-19 Elena Zannoni <ezannoni@redhat.com>
732
733 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
734 register.
735 (P): New macro to define a register as a pseudo register.
736 (R, R4, R8, R16, FR32, R64, R0): Updated.
737 (struct variant): Add new fields for number of pseudo registers
738 and number of total registers.
739 (tot_num_registers): New macro replacing....
740 (num_registers): ...deleted macro.
741 (num_registers): New function.
742 (num_pseudo_registers): New function.
743 (variants): Update all variants to intialize new fields correctly.
744 Postpone initialization of number of pseudo regs and real regs.
745 (init_variants): New function.
746 (rs6000_gdbarch_init): Initialize variants. Update calculation of
747 registers offsets.
748
fcaffe4c
DC
7492002-08-19 David Carlton <carlton@math.stanford.edu>
750
2c2738a0
DC
751 * valops.c (search_struct_field): Change error message to treat
752 return value of 0 from value_static_field as meaning that field is
753 optimized out.
754 (value_struct_elt_for_reference): Ditto.
755 * values.c (value_static_field): Treat an unresolved location the
756 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
757 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
758 enclosed. Fix PR gdb/574.
fcaffe4c
DC
759 * MAINTAINERS: Add self to Write After Approval list.
760
88658117
AC
7612002-08-19 Andrew Cagney <ac131313@redhat.com>
762
763 * mips-tdep.c (mips_xfer_register): New function.
764 (mips_n32n64_extract_return_value): Rewrite.
765 (mips_gdbarch_init): For N32 and N64, set extract_return_value
766 instead of deprecated_extract_return_value.
767
21283beb
EZ
7682002-08-19 Elena Zannoni <ezannoni@redhat.com>
769
770 * rs6000-tdep.c (TDEP): Delete macro.
771 (branch_dest): Replace use of TDEP macro with its body.
772 (rs6000_pop_frame): Ditto.
773 (rs6000_push_arguments): Ditto.
774 (rs6000_skip_trampoline_code): Ditto.
775 (rs6000_frame_saved_pc): Ditto.
776 (rs6000_frame_chain): Ditto.
777 (rs6000_register_name): Ditto.
778 (rs6000_register_byte): Ditto.
779 (rs6000_register_raw_size): Ditto.
780 (rs6000_register_virtual_type): Ditto.
781 (rs6000_register_convertible): Ditto.
782 (rs6000_convert_from_func_ptr_addr): Ditto.
783
bf072999
DJ
7842002-08-19 Daniel Jacobowitz <drow@mvista.com>
785
786 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
787 conditionally.
788 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
789 MIPS_LINUX_JB_ELEMENT_SIZE.
790 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
791 for MAX_REGISTER_RAW_SIZE arrays.
792 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
793 MIPS_LINUX_JB_ELEMENT_SIZE.
794
9b949a49
PM
7952002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
796
797 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
798
6d3e79c6
AS
7992002-08-19 Aidan Skinner <aidan@velvet.net>
800
801 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
802 ada-valprint.c ada-tasks.c.
803 (YYFILES): Add ada-exp.y.
804 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
805 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
806 (ada-exp.tab.o): New target.
807
06c0b04e
AC
8082002-08-18 Andrew Cagney <ac131313@redhat.com>
809
810 * regcache.c (regcache_xfer_part): New function.
811 (regcache_raw_read_part): New function.
812 (regcache_raw_write_part): New function.
813 (regcache_cooked_read_part): New function.
814 (regcache_cooked_write_part): New function.
815 * regcache.h (regcache_raw_read_part): Declare.
816 (regcache_raw_write_part): Declare.
817 (regcache_cooked_read_part): Declare.
818 (regcache_cooked_write_part): Declare.
819
92d1e331
DJ
8202002-08-18 Daniel Jacobowitz <drow@mvista.com>
821
822 * remote.c (remote_open_1): Add async_p.
823 (remote_async_open_1): Delete.
824 (open_remote_target): Delete.
825 (remote_open, extended_remote_open): Update calls to remote_open_1.
826 (remote_async_open, extended_remote_async_open): Call
827 remote_open_1 instead of remote_async_open_1.
828
247055de
MK
8292002-08-19 Mark Kettenis <kettenis@gnu.org>
830
831 * blockframe.c: Fix a few coding standard violations.
832
641eda39
MK
8332002-08-19 Mark Kettenis <kettenis@gnu.org>
834
0b717710
MK
835 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
836 here from ...
837 * config/i386/tm-i386sco5.h: ... here. File removed.
838 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
839
26d28e12 840 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
841 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
842 (TM_FILE): Set to tm-i386.h.
843 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
844 * config/i386/tm-i386v.h: Remove file.
845 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
846 instead of "i386/tm-i386v.h".
847 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
848 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
849 "i386/tm-i386v.h".
850 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
851 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
852 "i386/tm-i386.h".
853
d4e0bab4
MK
8542002-08-18 Mark Kettenis <kettenis@gnu.org>
855
856 * config/i386/nm-i386v.h: Add protection against
857 multiple-inclusion.
858 (i386_register_u_addr): Remove prototype.
859 (register_u_addr): New prototype.
860 (REGISTER_U_ADDR): Redefine accordingly.
861 * i386v-nat.c: Improve several comments.
862 (i386_register_u_addr): Change signature and rename to
863 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
864 ubase variable.
865
46cac009
AC
8662002-08-18 Andrew Cagney <ac131313@redhat.com>
867
868 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
869 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
870 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
871 deprecated_extract_return_value.
872 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
873 rename mips_o32o64_push_arguments.
874 (mips_gdbarch_init): Update.
875 (mips_extract_return_value): Delete.
876 (mips_o32_extract_return_value): Clone mips_extract_return_value.
877 (mips_o64_extract_return_value): Clone mips_extract_return_value.
878 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
879 (mips_n32n64_extract_return_value): Clone
880 mips_extract_return_value.
881 (mips_store_return_value): Delete.
882 (mips_o32_store_return_value): Clone mips_store_return_value.
883 (mips_o64_store_return_value): Clone mips_store_return_value.
884 (mips_eabi_store_return_value): Clone mips_store_return_value.
885 (mips_n32n64_store_return_value): Clone mips_store_return_value.
886
d2e4a39e
AS
8872002-08-18 Aidan Skinner <aidan@velvet.net>
888
0c30c098
AS
889 * ada-lang.c: Use gdb_string.h instead of <string.h>.
890 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
891
8922002-08-18 Aidan Skinner <aidan@velvet.net>
893
894 * ada-lang.c: Run through gdb_indent.sh.
895 * ada-lang.h: Run through gdb_indent.sh.
896 * ada-tasks.c: Run through gdb_indent.sh.
897 * ada-typeprint.c: Run through gdb_indent.sh.
898 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 899
01fc4e33
AC
9002002-08-18 Andrew Cagney <ac131313@redhat.com>
901
902 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
903 ABI.
904
d8ee244c
MK
9052002-08-18 Mark Kettenis <kettenis@gnu.org>
906
c38d8261
MK
907 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
908
222db64c
MK
909 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
910 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
911
c2848c82
MK
912 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
913 write_register_gen instead of write_register_bytes.
914
d8ee244c
MK
915 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
916 i[3456]-*-osf1mk* configurations have been made obsolete.
917 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
918 i[3456]86-*-osf1mk* hosts obsolete.
919 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
920 targets obsolete.
921 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
922 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
923 config/i386/i386m3.mt, config/i386/nm-m3.h,
924 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
925 config/i386/i386mk.mh, config/i386/i386mk.mt,
926 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
927 obsolete.
928 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
929 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
930 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
931
61d8d407
AC
9322002-08-18 Andrew Cagney <ac131313@redhat.com>
933
934 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
935 (hppa_value_returned_from_stack): Declare.
936 (hppa_extract_return_value): Declare.
937 * config/pa/hppa.mt: New file.
938 * configure.tgt: Recognize hppa*-*-*.
939 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
940
0c52bd59
MK
9412002-08-18 Mark Kettenis <kettenis@gnu.org>
942
943 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
944 comment.
945
b5686e99
MK
9462002-08-17 Mark Kettenis <kettenis@gnu.org>
947
948 * top.c (gdb_rl_operate_and_get_next): Make sure
949 operate-and-get-next functions correctly even when the history
950 list is completely filled.
951
c1bab85b
AC
9522002-08-18 Andrew Cagney <ac131313@redhat.com>
953
954 * MAINTAINERS (Target Instruction Set Architectures): Rename
955 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
956 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
957 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
958 already listed under Host/Native.
959
960 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
961 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
962 mips*-*-*.
963
32089c7c
AC
9642002-08-17 Andrew Cagney <ac131313@redhat.com>
965
966 * config/ia64/ia64.mt: New file.
967 * config/alpha/alpha.mt: New file.
968 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
969 ia64-linux-gnu. Mention that ia64-elf is broken.
970 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
971
b4671f85
MK
9722002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
973
974 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
975 generic_func_frame_valid instead of func_frame_valid.
976
c8edd8b4
JB
9772002-08-16 Joel Brobecker <brobecker@gnat.com>
978
979 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
980 procfs appears to be broken when debugging on multi-processor
981 machines. So enable software single stepping in order to avoid
982 using the procfs interface to do next/step operations, using
983 internal breakpoints instead.
984
985 * infrun.c (handle_inferior_event): Readjust the stop_pc by
986 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
987 make this pc address equal to the value it would have if the
988 system stepping capability was used. Also set a new flag used
989 to ensure that we don't readjust the PC one more time later.
990
991 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
992 address by DECR_PC_AFTER_BREAK when software single step is
993 in use for this architecture, as this has already been taken
994 care of in handle_inferior_event().
995
238617f6
JB
9962002-08-16 Joel Brobecker <brobecker@gnat.com>
997
998 * infrun.c (handle_inferior_event): Minor reformatting, to make
999 a rather long condition expression easier to read.
1000
541a7aac
AC
10012002-08-16 Andrew Cagney <ac131313@redhat.com>
1002
1003 * Makefile.in (gdbtk.o): Move to end of file.
1004 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1005 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1006 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1007 (gdbtk-wrapper.o, gdbres.o): Ditto.
1008
f92d4a7b
AC
10092002-08-16 Andrew Cagney <ac131313@redhat.com>
1010
1011 * Makefile.in (copying.o): Separate out compile rule.
1012 (hpux-thread.o, procfs.o, signals.o): Ditto.
1013 (v850ice.o, z8k-tdep.o): Ditto.
1014 (tui-file.o): Move to TUI section.
1015 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1016 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1017
1cce71eb
JB
10182002-08-16 Joel Brobecker <brobecker@gnat.com>
1019
1020 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1021 skip_trampoline_code, for better namespace-proofing.
1022
1023 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1024
0851f23d
JB
10252002-08-16 Joel Brobecker <brobecker@gnat.com>
1026
1027 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1028
f8d40ec8
JB
10292002-08-16 Joel Brobecker <brobecker@gnat.com>
1030
1031 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1032 signal, check whether we hit a breakpoint before checking for a
1033 single step breakpoint. Otherwise, GDB fails to notice that a
1034 breakpoint has been hit when stepping onto a breakpoint.
1035
63d022e0
KS
10362002-08-16 Keith Seitz <keiths@redhat.com>
1037
1038 * gdb-events.sh (clear_gdb_event_hooks): New function.
1039 * gdb-events.c: Regenerate.
1040 * gdb-events.h: Regenerate.
1041
6e31adb3
AC
10422002-08-16 Andrew Cagney <ac131313@redhat.com>
1043
1044 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1045 not_a_sw_breakpoint.
1046 * breakpoint.h (bpstat_stop_status): Add parameter names.
1047
c8189ed1
GS
10482002-08-16 Grace Sainsbury <graces@redhat.com>
1049
1050 * remote.c (remote_insert_hw_breakpoint)
1051 (remote_remove_hw_breakpoint): Fix calculation of length field
1052 for Z-packet.
1053
d05285fa
MS
10542002-08-15 Michael Snyder <msnyder@redhat.com>
1055
466d7106
MS
1056 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1057 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1058 (supply_fpregset): Ditto.
1059
d05285fa
MS
1060 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1061 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1062 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1063 (TARGET_READ_SP): Delete.
bf1f5b4c 1064 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1065 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1066 Delete.
1067 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1068 from macros to functions.
bf1f5b4c 1069
d05285fa
MS
1070 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1071 (mips_register_convertible, mips_register_convert_to_virtual,
1072 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1073 (mips_read_sp): New function.
1074 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1075 (mips_do_registers_info): Make static.
1076 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1077 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1078 (mips_register_convert_from_type, mips_register_convert_to_type):
1079 New functions.
1080 (mips_gdbarch_init): Set up function_start_offset,
1081 register_virtual_size, pc_in_sigtramp.
d05285fa 1082
e76f1f2e
AC
10832002-08-15 Andrew Cagney <ac131313@redhat.com>
1084
1085 * infcmd.c (vector_info): New function.
1086 (_initialize_infcmd): Add command "info vector".
1087 (print_vector_info): New function.
1088
1089 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1090 * gdbarch.h, gdbarch.c: Regenerate.
1091
4782dc19
AC
10922002-08-15 Andrew Cagney <ac131313@redhat.com>
1093
1094 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1095 ``print_all''. Only print vector registers when ``print_all''.
1096
23e3a7ac
AC
10972002-08-15 Andrew Cagney <ac131313@redhat.com>
1098
8e186fd6
AC
1099 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1100 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1101
23e3a7ac
AC
1102 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1103 Add `args' parameter.
1104 * gdbarch.h, gdbarch.c: Regenerate.
1105
1106 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1107
1108 * infcmd.c (float_info): Call print_float_info.
1109 (print_float_info): New function. By default, print the
1110 floating-point registers.
1111
1112 * arch-utils.h (default_print_float_info): Delete declaration.
1113 * arch-utils.c (default_print_float_info): Delete function.
1114
e0ca2bb9
MK
11152002-08-16 Mark Kettenis <kettenis@gnu.org>
1116
3f733acc
MK
1117 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1118 out define.
1119
7d8d2918
MK
1120 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1121 FRAME.
1122
1c7cc583
MK
1123 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1124 * configure.host: Make i[3456]86-*-aix host obsolete.
1125 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1126 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1127 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1128 config/i386/xm-i386aix.h: Make files obsolete.
1129 * i386aix-nat.c: Make file obsolete.
1130 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1131 (i386aix-nat.o): Make target obsolete.
1132
e0ca2bb9
MK
1133 * config/i386/nm-gnu.h: Removed.
1134 * config/i386/nm-i386gnu.h: New file.
1135 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1136 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1137 Moved here from ...
1138 * config/i386/tm-i386gnu.h: ... here. Removed.
1139 * config/i386/xm-i386gnu.h: Removed.
1140 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1141 (NAT_FILE): Set to nm-i386gnu.h.
1142 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1143 * i386-tdep.c: New file.
1144 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1145 (i386gnu-tdep.o): Specify dependencies.
1146
16057ec7 11472002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1148
6b99ee2e
MK
1149 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1150 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1151 Adjust a few comments to reflect reality a bit closer.
1152 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1153 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1154 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1155 target_insert_watchpoint, target_remove_watchpoint):
1156 Move defines to ...
1157 * config/i386/nm-i386sco5.h: ... here.
1158 (kernel_u_size): Add prototype. Improve a few comments and add
1159 protection against multiple inclusion.
1160
d9a6f65c
MK
1161 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1162 out define.
1163
047eff6a
MK
1164 * uw-thread.c (SP_ARG0): Define if not already defined.
1165 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1166
dcdb1290
MK
1167 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1168
5d2d0b2a
MK
1169 * config/i386/tm-i386.h: Don't include "regcache.h".
1170
61113f8b
MK
1171 * i387-tdep.h (i387_print_float_info): New prototype.
1172 * i387-tdep.c (print_i387_value, print_i387_ext,
1173 print_i387_status_word, print_i387_control_word): Add `struct
1174 ui_file *' argument and use it for output.
1175 (i387_print_float_info): Renamed from i387_float_info. Add
1176 `struct gdbarch *' and `struct ui_file *' arguments and use the
1177 latter for output.
1178 * i386-tdep.c: Include "i387-tdep.h".
1179 (i386_gdbarch_init): Set print_float_info.
1180 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1181 (FLOAT_INFO): Remove define.
1182
46e0f506
MS
11832002-08-13 Michael Snyder <msnyder@redhat.com>
1184
1185 * mips-tdep.c (mips_push_arguments): Rename to
1186 mips_eabi_push_arguments, and tune for EABI.
1187 (MIPS_REGS_HAVE_HOME_P): Delete.
1188 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1189 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1190 Delete references to mips_regs_have_home_p.
1191
409268de
KS
11922002-08-14 Keith Seitz <keiths@redhat.com>
1193
1194 * Makefile.in (install-gdbtk): Create insight plugin directory.
1195 Install plugins.tcl file.
1196
ffc6a242
KS
11972002-08-14 Keith Seitz <keiths@redhat.com>
1198
1199 * configure.in: Move SUBDIRS to near top of the file so that
1200 --enable options may add things to it.
1201 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1202 * configure: Regenerate.
1203
ebafbe83
MS
12042002-08-13 Michael Snyder <msnyder@redhat.com>
1205
1206 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1207 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1208 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1209
32f6f25d
AC
12102002-08-13 Andrew Cagney <ac131313@redhat.com>
1211
1212 * vax-tdep.c (vax_get_saved_register): Delete function.
1213 (vax_gdbarch_init): Update.
1214 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1215 (ns32k_gdbarch_init): Update.
1216 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1217 (alpha_gdbarch_init): Update.
1218
53826de9
AC
12192002-08-13 Andrew Cagney <cagney@redhat.com>
1220
1221 * regcache.c (init_regcache_descr): Overallocate the
1222 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1223 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1224 nr_raw_registers.
1225 (set_register_cached): Add range checking assertions. Use
1226 current_regcache.
1227
16057ec7 12282002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1229
1230 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1231 numbers for MMX registers.
1232
7b4c2dce
AC
12332002-08-13 Andrew Cagney <cagney@redhat.com>
1234
1235 * i386-tdep.c (i386_gdbarch_init): Use
1236 generic_unwind_get_saved_register.
1237
1e03ad20
KB
12382002-08-13 Kevin Buettner <kevinb@redhat.com>
1239
1240 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1241 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1242 target vector.
1243 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1244 Delete. Add comment regarding this now-deleted target method.
1245
548bcbec
SC
12462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1247
1248 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1249 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1250 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1251 real PC and the page number (if it's within the memory bank window).
1252 (m68hc11_pseudo_register_write): Likewise when saving.
1253 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1254 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1255 (m68hc11_register_raw_size): And use 32-bit for it.
1256 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1257 16K memory bank is used by the prog; also use the virtual pc.
1258
7df11f59
SC
12592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1260
1261 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1262 (m68hc11_gdbarch_init): Install it in gdbarch.
1263 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1264 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1265 (MSYMBOL_SIZE): New for documentation.
1266 (insn_return_kind): Enum to specify how a function returns.
1267 (frame_extra_info): Cleanup and record the return mode.
1268 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1269 register in address computation.
1270 (m68hc11_get_return_insn): New to obtain the return instruction used
1271 by the function.
1272 (m68hc11_frame_init_saved_regs): Take into account the return
1273 instruction used by the function for far and interrupt functions.
1274 (m68hc11_init_extra_frame_info): Take into account page register.
1275 (m68hc11_frame_args_address): Adjust according to the return mode.
1276 (show_regs): Print page register only when it's used.
1277
5706502a
SC
12782002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1279
1280 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1281 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1282 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1283 registers.
1284 (m68hc11_register_raw_size): Likewise.
1285
28fc6740
AC
12862002-08-13 Andrew Cagney <cagney@redhat.com>
1287
1288 * i386-tdep.c (i386_register_name): Handle mmx registers.
1289 (mmx_regnum_p): New function.
1290 (i386_mmx_names): New array.
1291 (mmx_num_regs): New variable.
1292 (i386_pseudo_register_read): New function.
1293 (i386_pseudo_register_write): New function.
1294 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1295
1296 * regcache.c (regcache_raw_read_unsigned): New function.
1297 (regcache_raw_read_signed): New function.
1298 * regcache.h (regcache_raw_read_unsigned): Declare.
1299 (regcache_raw_read_signed): Declare.
1300
a378f419
AC
13012002-08-13 Andrew Cagney <cagney@redhat.com>
1302
1303 * regcache.c (regcache_raw_read_as_address): Delete function.
1304 (regcache_cooked_read_signed): New function.
1305 (regcache_cooked_read_unsigned): New function.
1306 * regcache.h (regcache_cooked_read_signed): Declare.
1307 (regcache_cooked_read_unsigned): Declare.
1308 (regcache_raw_read_as_address): Delete declaration.
1309
1310 * blockframe.c (generic_read_register_dummy): Use
1311 regcache_cooked_read_unsigned.
1312 * i386-tdep.c (i386_extract_struct_value_address): Use
1313 regcache_cooked_read_unsigned.
1314
81967506
SC
13152002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1316
1317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1318 double sizes according to ELF ABI flags.
1319 (gdbarch_tdep): Record elf_flags.
1320
ffe1f3ee
SC
13212002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1322
1323 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1324 (m6812_prolog): They can appear in 68HC12 function prologue.
1325 (m68hc11_frame_chain): Cleanup.
1326
98216c5d
AC
13272002-08-12 Andrew Cagney <cagney@redhat.com>
1328
1329 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1330 declarations.
1331 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1332 (i386_linux_register_raw_size): Delete function.
1333 (i386_linux_init_abi): Update.
1334 * i386-tdep.c (i386_register_raw_size): Delete function.
1335 (i386_register_byte): Delete function.
1336 (i386_gdbarch_init): Update.
1337 (i386_register_size): Delete array.
1338 (i386_register_offset): Delete array.
1339
1340 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1341 (REGISTER_RAW_SIZE): Delete macro.
1342 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1343 (REGISTER_BYTE): Delete macro.
1344
3b19021e
AS
13452002-08-11 Aidan Skinner <aidan@velvet.net>
1346
1347 * ada-lang.c (ada_lookup_partial_symbol)
1348 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1349 prototype names so that grep ^func works properly.
1350
1351 * ada-lang.c (ada_array_element_type)
1352 (ada_lookup_partial_symbol): Fix typos in parameter list.
1353
1354 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1355 Fix prototype names so that grep ^func works properly.
1356
b063e7a2
AC
13572002-08-10 Andrew Cagney <cagney@redhat.com>
1358 Elena Zannoni <ezannoni@redhat.com>
1359 Martin M. Hunt <hunt@redhat.com>
1360
1361 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1362 (build_builtin_type_vec128i): Set the vector bit.
1363 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1364 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1365 (build_builtin_type_vec64): New function.
1366 (build_builtin_type_vec64i): New function.
1367 (build_gdbtypes): Initialize builtin_type_vec64 and
1368 builtin_type_vec64i.
1369
a7e3c2ad
AC
13702002-08-09 Andrew Cagney <cagney@redhat.com>
1371
1372 * regcache.c (regcache_dump): Compare the register offset
1373 with REGISTER_BYTE.
1374 * arch-utils.c (generic_register_byte): New function.
1375 * arch-utils.h (generic_register_byte): Declare.
1376 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1377 * gdbarch.h, gdbarch.c: Regenerate.
1378
af030b9a
AC
13792002-08-09 Andrew Cagney <cagney@redhat.com>
1380
1381 * regcache.c: Include "gdbcmd.h"
1382 (_initialize_regcache): Add commands "maintenance print
1383 registers", "maintenance print raw-registers" and "maintenance
1384 print cooked-registers".
1385 (enum regcache_dump_what): Define.
1386 (dump_endian_bytes): New function.
1387 (regcache_dump): New function.
1388 (regcache_print): New function.
1389 (maintenance_print_registers): New function.
1390 (maintenance_print_raw_registers): New function.
1391 (maintenance_print_cooked_registers): New function.
1392 * Makefile.in (regcache.o): Update dependencies.
1393
cb3d25d1
MS
13942002-08-09 Michael Snyder <msnyder@redhat.com>
1395
1396 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1397 (mips_push_arguments): Correct some comments. Use paddr_nz
1398 for printing addresses in debug output. Replace static
1399 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1400 (mips_n32n64_push_arguments): New function, cloned from
1401 mips_push_arguments and tuned for the n32/n64 ABI.
1402 (mips_push_register): Buffer needs dynamic allocation.
1403 (mips_print_register): Ditto.
1404 (do_gp_register_row): Ditto.
1405 (mips_store_return_value): Ditto.
1406 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1407
2163ab9d
DH
14082002-08-09 Don Howard <dhoward@redhat.com>
1409
1410 * memattr.c (mem_info_command): Print special case of upper bound
1411 as max CORE_ADDR + 1.
1412
b78bcb18
MS
14132002-08-08 Michael Snyder <msnyder@redhat.com>
1414
1415 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1416 returns structs by ref if they're too big to fit in two registers.
1417
ffabd70d
KB
14182002-08-09 Kevin Buettner <kevinb@redhat.com>
1419
1420 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1421 saved regs value.
1422 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1423 mips_find_saved_regs().
1424 (mips_pop_frame): Likewise.
1425
fbcdb4a3
KB
14262002-08-09 Kevin Buettner <kevinb@redhat.com>
1427
1428 * blockframe.c (frame_saved_regs_register_unwind): Revise
1429 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1430 frames are in use.
1431
3c3bea1c
GS
14322002-08-09 Grace Sainsbury <graces@redhat.com>
1433
1434 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1435 T-packets; the 'a' is not taken as a register number.
1436 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1437 (remote_stopped_data_address): New functions; add to target
1438 vector.
1439 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1440 prototypes to match other implementations of this
1441 function. replace integer argument with pointer -- the length
1442 field in the Z-packet is the length of what is pointed to or 1 if
1443 pointer is null. Add to target vector.
1444 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1445 target vector.
1446
1447 From Mark Salter:
1448 * remote.c (remote_wait): Add support to extract optional
1449 watchpoint information from T-packet. Ignore unrecognized
1450 optional info in T-packet.
1451 (remote_async_wait): Ditto.
1452
5d1d95de
CV
14532002-08-09 Corinna Vinschen <vinschen@redhat.com>
1454
1455 * cli/cli-dump.c: Change fopen modes to use binary open modes
1456 as defined in include/fopen-bin.h throughout.
1457
c86b5b38
MS
14582002-08-08 Michael Snyder <msnyder@redhat.com>
1459
1460 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1461
b30590dc
KB
14622002-08-08 Kevin Buettner <kevinb@redhat.com>
1463
1464 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1465 assertion failure by returning early after a warning.
1466
498868ed
KB
14672002-08-08 Kevin Buettner <kevinb@redhat.com>
1468
1469 * mips-tdep.c (mips_find_saved_regs): Make static.
1470 (mips_frame_init_saved_regs): New function.
1471 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1472 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1473 (mips_find_saved_regs): Delete declaration.
1474
b2dd6311
GS
14752002-08-08 Grace Sainsbury <graces@redhat.com>
1476
3c3bea1c
GS
1477 * remote.c (remote_wait, remote_async_wait): Change
1478 thread_num from int to ULONGEST.
1479 (unpack_varlen_hex): Change result parameter from
1480 int * to ULONGEST *.
b2dd6311 1481
ea47855f
AC
14822002-08-08 Andrew Cagney <ac131313@redhat.com>
1483
1484 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1485 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1486 powerpc*-*-*.
1487 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1488
69db8bae
AC
14892002-08-08 Andrew Cagney <cagney@redhat.com>
1490
1491 * gcore.c (override_derive_stack_segment): Delete variable.
1492 (preempt_derive_stack_segment): Delete function.
1493 (derive_stack_segment): Delete function.
1494 (default_derive_stack_segment): Renamed to derive_stack_segment.
1495 (override_derive_heap_segment): Delete variable.
1496 (preempt_derive_heap_segment): Delete function.
1497 (derive_heap_segment): Delete function.
1498 (default_derive_heap_segment): Rename to derive_heap_segment.
1499
cb811fe7
MS
15002002-08-06 Michael Snyder <msnyder@redhat.com>
1501
1502 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1503 * mips-tdep.c (mips_EABI_use_struct_convention,
1504 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1505 New functions. (mips_use_struct_convention): Delete.
1506 (mips_gdbarch_init): set use_gdbarch_convention.
1507
8b389c40
MS
15082002-08-06 Michael Snyder <msnyder@redhat.com>
1509
1510 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1511 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1512 mips_o32_reg_struct_has_addr): New functions.
1513 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1514
5c27f28a
AC
15152002-08-07 Andrew Cagney <ac131313@redhat.com>
1516
1517 * regcache.c (pseudo_register): Delete function.
1518 (fetch_register): Delete function.
1519 (store_register): Delete function.
1520 (regcache_raw_read, legacy_read_register_gen): Use
1521 target_fetch_registers instead of fetch_register.
1522 (legacy_write_register_gen, regcache_raw_write): Use
1523 target_store_register instead of store_register.
1524 (write_register_bytes): Ditto.
1525
1526 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1527 (STORE_PSEUDO_REGISTER): Delete.
1528 * gdbarch.h, gdbarch.c: Regenerate.
1529
5b331675
CV
15302002-08-06 Corinna Vinschen <vinschen@redhat.com>
1531
1532 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1533 write dump file binary.
1534
6acdf5c7
MS
15352002-08-05 Michael Snyder <msnyder@redhat.com>
1536
1537 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1538 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1539 (mips_gdbarch_init): Set N32 target to be mips64.
1540
b2f01c35
KB
15412002-08-06 Kevin Buettner <kevinb@redhat.com>
1542
1543 * frame.c (find_saved_register): Break out of loop once saved
1544 register address is found. Don't mention sparc in loop comment
1545 anymore.
1546
63db5580
KB
15472002-08-06 Kevin Buettner <kevinb@redhat.com>
1548
1549 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1550 mips_default_saved_regsize to 8.
1551
5e34e75e
AC
15522002-08-06 Andrew Cagney <ac131313@redhat.com>
1553
1554 * gcore.c: Do not include <sys/procfs.h>.
1555 * Makefile.in (gcore.o): Update dependencies.
1556
eb4c54a2
AC
15572002-08-06 Andrew Cagney <cagney@redhat.com>
1558
1559 * configure.tgt: Make arc-*-* obsolete.
1560 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1561 * MAINTAINERS: Make arc-elf obsolete.
1562 * arc-tdep.c: Make file obsolete.
1563 * config/arc/arc.mt: Ditto.
1564 * config/arc/tm-arc.h: Ditto.
1565
ced15480
TR
15662002-08-05 Theodore A. Roth <troth@verinet.com>
1567
c1bab85b 1568 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1569
b4743822
AC
15702002-08-05 Andrew Cagney <ac131313@redhat.com>
1571
1572 * mcore-tdep.c (mcore_gdbarch_init): Use
1573 generic_unwind_get_saved_register instead of
1574 generic_get_saved_register.
1575 * v850-tdep.c (v850_gdbarch_init): Ditto.
1576 * frv-tdep.c (frv_gdbarch_init): Ditto.
1577 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1578 * s390-tdep.c (s390_gdbarch_init): Ditto.
1579 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1580 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1581 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1582
3956d554
JB
15832002-08-05 Joel Brobecker <brobecker@gnat.com>
1584
1585 * objfiles.h: Add missing #include "symfile.h"
1586
1587 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1588
8249c0d6
AC
15892002-08-04 Andrew Cagney <ac131313@redhat.com>
1590
1591 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1592 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1593 of FIELD_BITSIZE.
1594
b9d14705
DJ
15952002-08-04 Daniel Jacobowitz <drow@mvista.com>
1596
1597 * NEWS: Cleanup and nitpick.
1598
dd73b9bb
AC
15992002-08-03 Andrew Cagney <ac131313@redhat.com>
1600
1601 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1602
043a27f8
AC
16032002-08-03 Andrew Cagney <ac131313@redhat.com>
1604
1605 * Makefile.in (gdbtk-bp.o): Update dependencies.
1606 (gdbtk-register.o): Ditto.
1607 (gdbtk-varobj.o): Ditto.
1608
46ce284d
AC
16092002-08-03 Andrew Cagney <cagney@redhat.com>
1610
1611 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1612 m68hc11_fetch_pseudo_register.
1613 (m68hc11_pseudo_register_write): Replace
1614 m68hc11_store_pseudo_register.
1615 (m68hc11_gdbarch_init): Update.
1616
b66d6d2e
AC
1617Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1618
1619 * gdbarch.sh: Include "gdb_string.h".
1620 * gdbarch.c: Regenerate.
1621
1622 * regcache.c: Include "gdb_string.h".
1623 * ax-general.c: Ditto.
1624 * varobj.c: Ditto.
1625 * std-regs.c: Ditto.
1626 * fbsd-proc.c: Ditto.
1627 * thread.c: Ditto.
1628
1629 * Makefile.in (regcache.o): Update dependencies.
1630 (thread.o, gdbarch.o): Ditto.
1631 (ax-general.o, gdbarch.o): Ditto.
1632 (varobj.o, std-regs.o): Ditto.
1633 (fbsd-proc.o): Specify dependencies.
1634
29e1842b
AC
16352002-08-02 Andrew Cagney <cagney@redhat.com>
1636
1637 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1638 regnum.
1639 (regcache_cooked_write): Ditto.
1640
68365089
AC
16412002-08-02 Andrew Cagney <ac131313@redhat.com>
1642
1643 * regcache.c (regcache_cooked_read): New function.
1644 (regcache_cooked_write): New function.
1645 (read_register_gen): Rewrite using regcache_cooked_read.
1646 (write_register_gen): Rewrite using regcache_cooked_write.
1647
1648 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1649 Declare.
1650
d8124050
AC
16512002-08-02 Andrew Cagney <cagney@redhat.com>
1652
1653 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1654 Replace the architecture methods register_read and register_write.
1655 * gdbarch.h, gdbarch.c: Regenerate.
1656 * regcache.c (init_regcache_descr): Update.
1657 (read_register_gen): Update.
1658 (write_register_gen): Update.
1659 (supply_register): Update comment.
1660
1661 * sh-tdep.c (sh_gdbarch_init): Update.
1662 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1663 `regcache' and `gdbarch' parameters. Make `buffer' a void
1664 pointer. Update code.
1665 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1666 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1667 void pointer. Update code.
1668 (sh64_register_write): Delete.
1669 (sh4_register_read): Delete.
1670 (sh64_register_read): Delete.
1671 (sh4_register_write): Delete.
1672 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1673 void pointer, `to' parameter a void pointer.
1674 (sh_sh64_register_convert_to_raw): Ditto.
1675
a6425924
KB
16762002-08-01 Kevin Buettner <kevinb@redhat.com>
1677
1678 * mips-tdep.c (mips_register_virtual_type): Use architecture
1679 invariant return values.
1680
ff5922b5
AC
16812002-08-01 Andrew Cagney <cagney@redhat.com>
1682
1683 * linux-proc.c: Include "gdb_string.h".
1684 * Makefile.in (linux-proc.o): Update dependency list.
1685
32a6503c
KB
16862002-08-01 Kevin Buettner <kevinb@redhat.com>
1687
1688 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1689 comment.
1690
ccaa32c7
GS
16912002-08-01 Grace Sainsbury <graces@redhat.com>
1692
1693 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1694 to_insert_watchpoint, to_remove_watchpoint,
1695 to_stopped_by_watchpoint, to_stopped_data_address,
1696 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1697 target vecctor. Define their corresponding macros so they call
1698 them.
1699
1700 * target.c: Add default and debug versions of for
1701 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1702 to_insert_watchpoint, to_remove_watchpoint,
1703 to_stopped_by_watchpoint, to_stopped_data_address,
1704 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1705
78fde5f8
KB
17062002-08-01 Kevin Buettner <kevinb@redhat.com>
1707
1708 * mips-tdep.c (mips_register_virtual_type): New function.
1709 (mips_gdbarch_init): Register mips_register_virtual_type()
1710 with gdbarch machinery.
1711 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1712 this file instead of tm-bigmips.h.
1713 (MIPS_REGSIZE): Delete this macro.
1714 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1715 multiarch version in mips-tdep.c will be found.
1716
db034ac5
AC
17172002-08-01 Andrew Cagney <cagney@redhat.com>
1718
1719 * NEWS: Menion that CHILL has been made obsolete.
1720
1721 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1722 * stabsread.c (read_range_type): Ditto.
1723 * gdbtypes.h: Ditto.
1724 * language.c (binop_type_check): Ditto.
1725 (binop_result_type): Ditto.
1726 (integral_type): Ditto.
1727 (character_type): Ditto.
1728 (string_type): Ditto.
1729 (boolean_type): Ditto.
1730 (structured_type): Ditto.
1731 (lang_bool_type): Ditto.
1732 (binop_type_check): Ditto.
1733 * language.h (_LANG_chill): Ditto.
1734 * dwarfread.c (set_cu_language): Ditto.
1735 * dwarfread.c (CHILL_PRODUCER): Ditto.
1736 * dwarfread.c (handle_producer): Ditto.
1737 * expression.h (enum exp_opcode): Ditto.
1738 * eval.c: Ditto for comments.
1739 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1740 * expprint.c (print_subexp): Ditto.
1741 (print_subexp): Ditto.
1742 * valops.c (value_cast): Ditto.
1743 (search_struct_field): Ditto.
1744 * value.h (COERCE_VARYING_ARRAY): Ditto.
1745 * symfile.c (init_filename_language_table): Ditto.
1746 (add_psymbol_with_dem_name_to_list): Ditto.
1747 * valarith.c (value_binop): Ditto.
1748 (value_neg): Ditto.
1749 * valops.c (value_slice): Ditto.
1750 * symtab.h (union language_specific): Ditto.
1751 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1752 (SYMBOL_DEMANGLED_NAME): Ditto.
1753 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1754 * defs.h (enum language): Ditto.
1755 * symtab.c (got_symtab): Ditto.
1756 * utils.c (fprintf_symbol_filtered): Ditto.
1757
1758 * ch-typeprint.c: Make file obsolete.
1759 * ch-valprint.c: Make file obsolete.
1760 * ch-lang.h: Make file obsolete.
1761 * ch-exp.c: Make file obsolete.
1762 * ch-lang.c: Make file obsolete.
1763
1764 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1765 CHILL_LIB.
1766 (TARGET_FLAGS_TO_PASS): Ditto.
1767 (CHILLFLAGS): Obsolete.
1768 (CHILL): Obsolete.
1769 (CHILL_FOR_TARGET): Obsolete.
1770 (CHILL_LIB): Obsolete.
1771 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1772 ch-valprint.c.
1773 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1774 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1775 ch-lang.o.
1776 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1777 targets.
1778
8aaf0b47
JB
17792002-07-31 Joel Brobecker <brobecker@gnat.com>
1780
1781 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1782 This does not change anything at the moment, but will be helpful
1783 later when full Ada support is integrated.
1784
f3a7b3a5
KB
17852002-07-31 Kevin Buettner <kevinb@redhat.com>
1786
1787 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1788 help message.
1789
fb850278
KB
17902002-07-31 Kevin Buettner <kevinb@redhat.com>
1791
1792 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1793 and save it in a local variable. Use variable in later test.
1794
e3bddbfa
KB
17952002-07-31 Kevin Buettner <kevinb@redhat.com>
1796
1797 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1798 test. (Thanks to Daniel Jacobowitz.)
1799
28d169de
KB
18002002-07-31 Kevin Buettner <kevinb@redhat.com>
1801
1802 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1803 (mips_abi_strings): Add "n64".
1804 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1805
7fe7e44e
KB
18062002-07-31 Kevin Buettner <kevinb@redhat.com>
1807
1808 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1809 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1810
c6caf090
KB
18112002-07-31 Kevin Buettner <kevinb@redhat.com>
1812
1813 * utils.c (host_pointer_to_address, address_to_host_pointer):
1814 Use gdb_assert() instead of explicit call to internal_error().
1815
c41669e0
KB
18162002-07-30 Kevin Buettner <kevinb@redhat.com>
1817
1818 * Makefile.in (rs6000-nat.o): Update dependencies.
1819
1820 From Nicholas Duffek:
1821 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1822 (aix-thread.o): New rule.
1823 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1824 * config/powerpc/aix432.mh: New file.
1825
2fda4977
DJ
18262002-07-30 Daniel Jacobowitz <drow@mvista.com>
1827
1828 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1829 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1830 (fetch_core_registers, ppc_linux_supply_gregset)
1831 (ppc_linux_supply_fpregset): New functions.
1832 (ppc_linux_regset_core_fns): New.
1833 (_initialize_ppc_linux_tdep): Call add_core_fns.
1834 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1835 and ppc_linux_supply_gregset.
1836 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1837 (supply_fpregset): Call ppc_linux_supply_fpregset.
1838 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1839 corelow.o.
1840 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1841
729051e6
DJ
18422002-07-30 Daniel Jacobowitz <drow@mvista.com>
1843
1844 * symtab.c (lookup_symbol): Demangle before lowercasing.
1845
5f8a3188
AC
18462002-07-30 Andrew Cagney <ac131313@redhat.com>
1847
1848 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1849 declaration.
1850 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1851 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1852 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1853 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1854 "gdb_string.h".
1855 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1856 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1857 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1858 (avr-tdep.o, mon960-rom.o): Ditto.
1859 (aout_stabs_gnu_h): Define.
1860 (symtab_h): Remove $(gdb_obstack_h).
1861
67f07146
JB
18622002-07-30 Jim Blandy <jimb@redhat.com>
1863
1864 Patch from David Carlton <carlton@math.stanford.edu>:
1865 * gdbinit.in: Move the `dir' commands that add GDB's own source
1866 directory to the search path to the end, so that the `gdb' source
1867 directory will be searched first.
1868
04ea0df1
AC
18692002-07-29 Andrew Cagney <ac131313@redhat.com>
1870
1871 * gdb_obstack.h: New file.
1872 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1873 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1874 * objfiles.h: Include "gdb_obstack.h".
1875 * Makefile.in (gdb_obstack_h): Define.
1876 (symtab_h): Add $(gdb_obstack_h).
1877 (objfiles_h): Add $(gdb_obstack_h).
1878
1879 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1880 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1881 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1882 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1883 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1884 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1885 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1886 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1887
1888 * Makefile.in (bcache.o): Update dependencies.
1889 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1890 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1891 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1892 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1893 (stabsread.o, symfile.o, symmisc.o): Ditto.
1894 (symtab.o, typeprint.o, macroexp.o): Ditto.
1895 (macrotab.o, mdebugread.o): Ditto.
1896 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1897 (coff_ecoff_h, aout_aout64_h): Define.
1898 (aout_stabs_gnu_h, libaout_h): Define.
1899
d138e37a
AC
19002002-07-29 Andrew Cagney <cagney@redhat.com>
1901
1902 * regcache.c (struct regcache_descr): Rename nr_registers to
1903 nr_cooked_registers. Revise comments describing the structure
1904 member fields.
1905 (init_regcache_descr): Update.
1906 (init_legacy_regcache_descr): Update.
1907 (read_register_gen, write_register_gen): When a cooked register in
1908 the raw register range, directly access the value from the raw
1909 register cache.
1910
460e6ec3
AC
19112002-07-29 Andrew Cagney <ac131313@redhat.com>
1912
1913 * z8k-tdep.c: Do not include "obstack.h".
1914 * h8300-tdep.c, h8500-tdep.c: Ditto.
1915 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1916 * valprint.c, v850-tdep.c: Ditto.
1917 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1918 * mn10200-tdep.c: Ditto.
1919
1920 * Makefile.in (z8k-tdep.o): Update dependencies.
1921 (m68hc11-tdep.o, valprint.o): Ditto.
1922 (v850-tdep.o, d10v-tdep.o): Ditto.
1923 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1924 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1925 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1926 (sh_opc_h, gdb_sim_sh_h): Define.
1927 (elf_sh_h, elf_bfd_h): Define.
1928 (opcode_m68hc11_h): Define.
1929 (OPCODES_SRC, OPCODES_DIR): define.
1930 (OPCODES): Use $(OPCODES_DIR).
1931 (gdb_sim_d10v_h): Rename sim_d10v_h.
1932 (gdb_sim_arm_h): Rename sim_arm_h.
1933
790c9cf0
KB
19342002-07-26 Kevin Buettner <kevinb@redhat.com>
1935
1936 * utils.c (host_pointer_to_address, address_to_host_pointer):
1937 Change internal_error() message to indicate function responsible
1938 for the error.
1939
9647fa49
KB
19402002-07-26 Kevin Buettner <kevinb@redhat.com>
1941
1942 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1943 calls to local_hex_string_custom().
1944
dabbe2c0
KB
19452002-07-26 Kevin Buettner <kevinb@redhat.com>
1946
1947 * irix5-nat.c: Move IRIX shared library support from here...
1948 * solib-irix.c: ...to here. Revised substantially to work with
1949 generic solib framework.
1950
b96d0a4e
KB
1951 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1952 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1953 * mips-irix-tdep.c: New file.
1954
313fb2f6
KB
1955 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1956 (mips-irix-tdep.o, solib-irix.o): New rules.
1957 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1958 solib-irix.o.
1959 * config/mips/irix6.mt (TDEPFILES): Likewise.
1960 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1961
ab2eaf26
KB
19622002-07-26 Kevin Buettner <kevinb@redhat.com>
1963
177e4768 1964 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1965 disabled (via ``#if 0'') includes.
1966
7244546a
KB
19672002-07-26 Kevin Buettner <kevinb@redhat.com>
1968
1969 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1970 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1971 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1972 Add support for the fpscr register.
1973 * rs6000-nat.c (regmap, fetch_inferior_registers)
1974 (store_inferior_registers, fetch_core_registers): Likewise.
1975
dd7be90a
KB
19762002-07-26 Kevin Buettner <kevinb@redhat.com>
1977
1978 * rs6000-nat.c (language.h): Include.
1979 (special_regs): Delete this array.
1980 (regmap): New function.
1981 (fetch_register, store_register): Use regmap() to map gdb
1982 register numbers to ptrace register numbers. Also, use
1983 outputs from regmap() to make decisions regarding type of
1984 ptrace() call to make. In particular, don't compare against
1985 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1986 (fetch_inferior_registers, store_inferior_registers): Where
1987 possible, obtain register numbers from tdep struct. Don't
1988 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1989 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1990 (LAST_UISA_SP_REGNUM): Delete.
1991
11bf77db
KB
19922002-07-25 Kevin Buettner <kevinb@redhat.com>
1993
1994 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1995 (fetch_registers, store_register, fetch_core_registers): Don't
1996 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1997 regcache_collect() as appropriate.
1998 (find_toc_address): Format hex address with local_hex_string().
1999
06afebeb
AC
20002002-07-25 Andrew Cagney <ac131313@redhat.com>
2001
2002 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2003 bfd/elf32-frv.c.
2004
8c554d79
TT
20052002-07-24 Tom Tromey <tromey@redhat.com>
2006
2007 * jv-exp.y: Marked all strings with _().
2008 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2009 internal_error.
2010 (MethodInvocation, CastExpression, parse_number, yyerror,
2011 java_type_from_name, push_expression_name, yylex): Typo fixes.
2012
e4c242d9
DJ
20132002-07-24 Daniel Jacobowitz <drow@mvista.com>
2014
2015 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2016 (tee_file_flush, tee_file_write, tee_file_fputs)
2017 (tee_file_isatty): New.
2018 * ui-file.h (tee_file_new): Add prototype.
2019
ebf56fd3
AS
20202002-07-24 Aidan Skinner <aidan@velvet.net>
2021
2022 * ada-lang.c: Change k&r style function definitions to prototyped
2023 form.
2024 * ada-typeprint.c: Change k&r style function definitions to prototyped
2025 form.
2026 * ada-valprint.c: Change k&r style function definitions to prototyped
2027 form.
2028
7fb623f7
AC
20292002-07-24 Andrew Cagney <cagney@redhat.com>
2030
2031 * README: Remove reference to remote-bug.
2032 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2033 remote-bug.c.
2034 (m88k-nat.o): Delete rule.
2035 (m88k-tdep.o): Delete rule.
2036 (remote-bug.o): Delete rule.
2037 * MAINTAINERS: Mark as obsolete.
2038 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2039 * m88k-tdep.c: Make file obsolete.
2040 * config/m88k/m88k.mh: Ditto.
2041 * config/m88k/delta88v4.mh: Ditto.
2042 * config/m88k/delta88v4.mt: Ditto.
2043 * config/m88k/delta88.mt: Ditto.
2044 * config/m88k/delta88.mh: Ditto.
2045 * remote-bug.c: Ditto.
2046 * config/m88k/tm-delta88.h: Ditto.
2047 * config/m88k/nm-delta88v4.h: Ditto.
2048 * config/m88k/xm-delta88.h: Ditto.
2049 * config/m88k/xm-dgux.h: Ditto.
2050 * config/m88k/tm-m88k.h: Ditto.
2051 * config/m88k/nm-m88k.h: Ditto.
2052 * config/m88k/tm-delta88v4.h: Ditto.
2053 * m88k-nat.c: Ditto.
2054 * cxux-nat.c: Ditto.
2055 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2056 and m88*-*-* obsolete.
2057 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2058 m88*-*-* obsolete.
2059
37611a2b
AC
20602002-07-24 Andrew Cagney <cagney@redhat.com>
2061
2062 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2063 constant. Same for local pointer variables.
2064 (extract_signed_integer): Ditto.
2065 * defs.h (extract_unsigned_integer): Update.
2066 (extract_signed_integer): Update.
2067
1aaa5f99
AC
20682002-07-24 Andrew Cagney <cagney@redhat.com>
2069
2070 * regcache.c (regcache_raw_write): Change buf parameter to a
2071 constant void pointer.
2072 (regcache_raw_read): Change buf parameter to a void pointer.
2073 (legacy_write_register_gen): Change myaddr parameter a constant
2074 void pointer.
2075 (supply_register): Change val parameter to a const void pointer.
2076 * regcache.h (regcache_raw_write): Update declaration.
2077 (regcache_raw_read): Update declaration.
2078 (supply_register): Update declaration.
2079
b4f5539f
TT
20802002-07-24 Tom Tromey <tromey@redhat.com>
2081
2082 * defs.h (gdb_readline_wrapper): Declare.
2083 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2084 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2085 * top.c (gdb_readline_wrapper): New function.
2086 (command_line_input): Use it.
2087
0818c12a
AC
20882002-07-24 Andrew Cagney <cagney@redhat.com>
2089
2090 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2091 regcache_read and regcache_write.
2092 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2093 * regcache.c: Update.
2094 * sh-tdep.c (sh64_push_arguments): Update comment.
2095 (sh_pseudo_register_read): Update.
2096 (sh_pseudo_register_write): Update.
2097 (sh4_register_read): Update.
2098 (sh4_register_write): Update.
2099 (sh64_pseudo_register_read): Update.
2100 (sh64_pseudo_register_write): Update.
2101 (sh64_register_read): Update.
2102 (sh64_register_write): Update.
2103 * i386-tdep.c (i386_extract_return_value): Update.
2104 (i386_extract_struct_value_address): Update.
2105 (i386_extract_return_value): Update.
2106 * blockframe.c (generic_read_register_dummy): Update.
2107 (generic_call_dummy_register_unwind): Update
2108 * infrun.c (write_inferior_status_register): Update.
2109
f7321c06
JB
21102002-07-23 Jim Blandy <jimb@redhat.com>
2111
2112 * parser-defs.h (expression_context_pc): Make this extern.
2113 (Thanks to Michael Snyder.)
2114
2037aebb
AC
21152002-07-23 Andrew Cagney <ac131313@redhat.com>
2116
2117 GDB 5.2.1 released from 5.2 branch.
2118 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2119 * README: Update to mention 5.2.1.
2120
66504d44
MS
21212002-07-23 Mark Salter <msalter@redhat.com>
2122
2123 * remote.c (remote_read_bytes): Fix check for error.
2124
27bae383
KB
21252002-07-22 Kevin Buettner <kevinb@redhat.com>
2126
2127 * aix-thread.c (language.h): Include.
2128 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2129 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2130 Print newlines at end of debug messages.
2131 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2132 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2133
21342002-07-22 Kevin Buettner <kevinb@redhat.com>
2135
2136 * aix-thread.c (ppc-tdep.h): Include.
2137 (special_register_p): New function.
2138 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2139 (store_regs_user_thread): Use register number information from
2140 gdbarch_tdep struct instead of hardcoded offsets relative to
2141 FIRST_UISA_SP_REGNUM.
2142 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2143 special_register_p() instead of using FPLAST_REGNUM and
2144 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2145 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2146 will be MQ's register number.
2147
21482002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2149
2150 * aix-thread.c (ops): Rename to aix_thread_ops.
2151 (base_ops): Rename to base_target.
2152 (ops_attach): Rename to aix_thread_attach.
2153 (ops_detach): Rename to aix_thread_detach.
2154 (ops_resume): Rename to aix_thread_detach.
2155 (ops_wait): Rename to aix_thread_wait.
2156 (ops_kill): Rename to aix_thread_kill.
2157 (init_ops): Rename to init_aix_thread_ops.
2158 (ops_fetch_register): Rename to aix_thread_fetch_register.
2159 (ops_store_register): Rename to aix_thread_store_register.
2160 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2161 (ops_thread_alive): Rename to aix_thread_thread_alive.
2162 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2163 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2164 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2165 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2166 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2167 (store_regs_lib): Rename to store_regs_user_thread.
2168 (store_regs_kern): Rename to store_regs_kernel_thread.
2169
27bae383 21702002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2171
2172 * aix-thread.c (ops_prepare_to_store): Eliminate.
2173 (init_ops): Don't initialize ops.prepare_to_store.
2174 (store_regs_kern): Pre-fetch register buffers from child,
2175 because some registers may not be in the cache. Copy
2176 regs from register cache only if they are cached.
2177 (store_regs_lib): Copy regs from register cache only
2178 if they are cached.
2179 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2180 fill_gprs64): Ditto.
2181
61c5da0b
KB
21822002-07-22 Kevin Buettner <kevinb@redhat.com>
2183
2184 * aix-thread.c (gdb_assert.h): Include.
2185 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2186 register sizes (from register cache) match size of buffer holding
2187 register data.
2188 (fill_sprs32): Change parameter types to match those in the ptrace()
2189 buffer.
2190 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2191 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2192
21932002-07-22 Michael Snyder <msnyder@redhat.com>
2194
2195 * aix-thread.c (supply_sprs64): Cosmetic change.
2196 (supply_sprs32): Cosmetic change.
2197 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2198 (fill_sprs64): Use regcache_collect instead of read_register.
2199 (store_regs_lib): Use regcache_collect instead of
2200 read_register. Use fill_sprs32 instead of fill_sprs64,
2201 if debugging a 32-bit architecture.
2202 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2203 out of the register cache, instead of passing a pointer into
2204 the register cache directly to ptrace. Use regcache_collect
2205 insteaad of read_register.
2206 (ops_prepare_to_store): Use target_read_registers instead
2207 of read_register_bytes.
2208
36479eb1
AS
22092002-07-20 Aidan Skinner <aidan@velvet.net>
2210
2211 * MAINTAINERS: Add self under write after approval.
2212
80ae6ee2
AS
22132002-07-20 Aidan Skinner <aidan@velvet.net>
2214
2215 * ada-tasks.c: Change k&r style function definitions to prototyped
2216 form.
2217
8a8ab2b9
AC
22182002-07-19 Andrew Cagney <ac131313@redhat.com>
2219
2220 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2221 * x86-64-tdep.c: Include "objfiles.h".
2222 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2223 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2224
fb16b900
ML
22252002-07-17 Michal Ludvig <michal@suse.cz>
2226
2227 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2228 (update_context): Initialise cfa variable.
2229
0fe7bf7b
MS
22302002-07-17 Michael Snyder <msnyder@redhat.com>
2231
2232 * aix-thread.c: Shorten some long lines.
2233 Bring comments into line with code spec.
2234
488f131b
JB
22352002-07-18 Joel Brobecker <brobecker@gnat.com>
2236
2237 * infrun.c: Re-indent using gdb_indent.sh.
2238
46c415d2
JB
22392002-07-18 Joel Brobecker <brobecker@gnat.com>
2240
2241 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2242 Leave the indentation temporarily untouched, to minimize the diffs.
2243
cdecafbe
EZ
22442002-07-18 Elena Zannoni <ezannoni@redhat.com>
2245
2246 * stabsread.c: Make os9k sections of the code obsolete,
2247 for real this time.
2248 * stabsread.h: Make os9k sections of the code obsolete.
2249
7b6aa020
ML
22502002-07-18 Michal Ludvig <mludvig@suse.cz>
2251
09ec9b38
ML
2252 * linux-low.c (regsets_store_inferior_registers): Add free()
2253 at the end of a loop to prevent memory leak.
2254 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2255 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2256 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2257 line a comment.
4894ac5d 2258 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2259
233282cd
JB
22602002-07-17 Jim Blandy <jimb@redhat.com>
2261
2262 * macrocmd.c (info_macro_command): Remove newline from error
2263 message.
2264
7b6aa020 22652002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2266
2267 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2268 (sh_gdbarch_init): Use it for sh-dsp.
2269
f7ef9339
KB
22702002-07-16 Kevin Buettner <kevinb@redhat.com>
2271
2272 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2273 64-bit DWARF2 format.
2274
8dd72958
JB
22752002-07-16 Joel Brobecker <brobecker@gnat.com>
2276
2277 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2278 <sys/proc.h> when not available.
2279
a99a9e1b
AC
22802002-07-16 Andrew Cagney <ac131313@redhat.com>
2281
2282 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2283 * stabsread.c: Make os9k sections of the code obsolete.
2284 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2285 * config/i386/i386os9k.mt: Make file obsolete.
2286 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2287 (COMMON_OBS): Remove os9kread.o
2288 (SFILES): Remove os9kread.c.
2289 (os9kread.o, remote-os9k.o): Make target obsolete.
2290 * remote-os9k.c: Make file obsolete.
2291 * os9kread.c: Make file obsolete.
2292 * Makefile.in
2293
7a3085c1
AC
22942002-07-16 Andrew Cagney <ac131313@redhat.com>
2295
2296 * NEWS: Mention that the FR30 has been made obsolete.
2297 * fr30-tdep.c: Make file obsolete.
2298 * config/fr30/tm-fr30.h: Ditto.
2299 * config/fr30/fr30.mt: Ditto.
2300 * configure.tgt: Make fr30-*-elf obsolete.
2301 * MAINTAINERS: Make fr30-elf obsolete.
2302
28a93f5a
PM
23032002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2304
2305 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2306 found is not inside a section.
2307
be006b8b
KB
23082002-07-15 Kevin Buettner <kevinb@redhat.com>
2309
2310 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2311 strerror().
2312 (pdc_realloc): Use xrealloc() instead of realloc().
2313
14fa3751
KB
23142002-07-15 Kevin Buettner <kevinb@redhat.com>
2315
2316 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2317 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2318 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2319 macros.
2320
42cc437f
KB
23212002-07-15 Kevin Buettner <kevinb@redhat.com>
2322
2323 * aix-thread.c (ptrace_check): Eliminate goto.
2324 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2325 problem.
2326
8e2c28d4
KB
23272002-07-15 Kevin Buettner <kevinb@redhat.com>
2328
2329 * aix-thread.c (gdbcmd.h): Include.
2330 (DEBUG, DBG, DBG2, dbg): Eliminate.
2331 (debug_aix_thread): New static global.
2332 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2333 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2334 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2335 invocations to DBG and DBG2 macros to test against
2336 ``debug_aix_thread'' and call fprintf_unfiltered().
2337 (_initialize_aix_thread): Add new command "set debug aix-thread".
2338
30413464
AC
23392002-07-15 Andrew Cagney <ac131313@redhat.com>
2340
2341 From Gerhard Tonn <TON@de.ibm.com>:
2342 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2343 instead of supply_register.
2344
7c43edc1
AC
23452002-07-15 Andrew Cagney <ac131313@redhat.com>
2346
2347 * dwarf2cfi.c: Include "gdb_assert.h".
2348 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2349 non-NULL.
2350 (update_context): Do not use __func__. Add missing ``break''.
2351 (update_context): Do not use __func__.
2352
9364a0ef
EZ
23532002-07-15 Elena Zannoni <ezannoni@redhat.com>
2354
2355 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2356 and its setting. Set gdbarch instruction printing functions
2357 directly. For non-rs6000 case use new function
2358 gdb_print_insn_powerpc.
2359 (gdb_print_insn_powerpc): New function.
2360
3fbeef0b
AC
23612002-07-13 Andrew Cagney <ac131313@redhat.com>
2362
92eb23c5 2363 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2364 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2365 * configure.tgt: Mark d30v-*-* as obsolete.
2366 * d30v-tdep.c: Mark file as obsolete.
2367 * config/d30v/d30v.mt: Ditto.
2368 * config/d30v/tm-d30v.h: Ditto.
2369
aacb1f0a
AS
23702002-07-13 Aidan Skinner <aidan@velvet.net>
2371
2372 * ada-tasks.c (add_task_entry): replace calls to
2373 malloc() with xmalloc
2374 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2375
2376 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2377 ada_finish_decode_line_1, all_sals_for_line
2378 ada_breakpoint_rewrite): replace calls to free() with xfree()
2379
c11d79f2
KB
23802002-07-12 Kevin Buettner <kevinb@redhat.com>
2381
2382 From Nicholas Duffek (with minor changes by Martin Hunt,
2383 Louis Hamilton, and Kevin Buettner):
2384 * aix-thread.c: New file.
2385
8e19ed76
PS
23862002-07-12 Petr Sorfa <petrs@caldera.com>
2387
2388 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2389 complaint for invalid attribute class or form.
2390 (read_func_scope): DW_AT_frame_base
2391 better handling of DW_AT_block*.
2392 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2393 better handling of DW_AT_block*.
2394 (read_common_block): DW_AT_location
2395 better handling of DW_AT_block*.
2396 (read_partial_die): DW_AT_location better handling
2397 of DW_AT_block*.
2398 (new_symbol): DW_AT_external better handling of
2399 DW_AT_block*. Proper initialization of variable
2400 "addr".
2401 (attr_form_is_block): New function that returns true
2402 if the attribute's form is of DW_FORM_block*.
2403
295401f7
DJ
24042002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2405
2406 * valops.c (find_method_list): Remove comment about
2407 removed STATIC_MEMFUNCP argument.
2408 (value_find_oload_method_list): Likewise.
2409
e42dc924
KB
24102002-07-12 Kevin Buettner <kevinb@redhat.com>
2411
2412 From Nicholas Duffek:
2413 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2414 target_new_objfile_hook.
2415
6904b546
KB
24162002-07-12 Kevin Buettner <kevinb@redhat.com>
2417
2418 From Nicholas Duffek:
2419 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2420 csect.
2421
53fe9346
AC
24222002-07-12 Andrew Cagney <cagney@redhat.com>
2423
2424 * MAINTAINERS: Mention --enable-sim-build-warnings.
2425 (m68hc11-elf): Disable sim build warnings.
2426 (m32r-elf): Mark as broken obsolete candidate.
2427 (x86_64-linux-gnu): Mark as buildable with -Werror.
2428 (arm-elf): Change -w to ``,'' which enables warnings but not
2429 -Werror.
2430
af5f3db6
AC
24312002-07-12 Andrew Cagney <ac131313@redhat.com>
2432
2433 * bcache.h: Update copyright.
2434 (struct bstring, struct bcache): Move definition to "bcache.c".
2435 Replaced by opaque declaration.
2436 (bcache_xfree): Replace free_bcache.
2437 (bcache_xmalloc, bcache_memory_used): Declare.
2438
2439 * bcache.c: Update copyright.
2440 (struct bstring, struct bcache): Moved to here from "bcache.h".
2441 Update comments.
2442 (bcache_xmalloc, bcache_memory_used): New functions.
2443 (bcache_xfree): Replace function free_bcache.
2444
2445 * Makefile.in (objfiles.o): Add $(bcache_h).
2446 (objfiles_h): Remove $(bcache_h).
2447 (symfile.o): Add $(bcache_h).
2448
2449 * symmisc.c: Update copyright.
2450 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2451 (print_objfile_statistics): Use bcache_memory_used.
2452
2453 * symfile.c: Include "bcache.h".
2454 (reread_symbols): Use bcache_xfree.
2455 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2456 (add_psymbol_to_list): Pass psymbol_cache by value.
2457 (add_psymbol_with_dem_name_to_list): Ditto.
2458
2459 * objfiles.h: Update copyright.
2460 (struct bcache): Declare opaque. Do not include "bcache.h".
2461 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2462 bcache'' pointers.
2463 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2464
2465 * objfiles.c: Include "bcache.h". Update copyright.
2466 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2467 macro_cache.
2468 (free_objfile): Use bcache_xfree.
2469
444199e7
GS
24702002-07-11 Grace Sainsbury <graces@redhat.com>
2471
2472 * monitor.c (monitor_fetch_register): Make name a constant.
2473 (monitor_store_register): Same.
2474
261397f8
DJ
24752002-07-11 Daniel Jacobowitz <drow@mvista.com>
2476
2477 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2478 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2479 (finish_block) For non-function blocks, hash the symbol table. For
2480 function blocks, mark the symbol table as unhashed.
2481 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2482 (msymbol_hash_iw): Likewise.
2483 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2484 value.
2485 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2486 (lookup_minimal_symbol): Likewise for both.
2487 * symtab.h (struct block): Add `hashtable' flag. Comment the
2488 hashtable.
2489 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2490 (ALL_BLOCK_SYMBOLS): Update.
2491 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2492 (struct symbol): Add `hash_next' pointer.
2493 * symtab.c (lookup_block_symbol): Search using the hash table when
2494 possible.
2495 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2496 (search_symbols, find_addr_symbol): Likewise.
2497
2498 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2499 (read_dst_symtab): Likewise.
2500 * jv-lang.c (get_java_class_symtab): Likewise.
2501 * mdebugread.c: Include "gdb_assert.h".
2502 (shrink_block): Assert that the block being modified is not hashed.
2503 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2504 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2505 symbols.
2506 (dump_symtab): Recognize hashed blocks.
2507 * printcmd.c (print_frame_args): Assert that function blocks do not
2508 have hashed symbol tables.
2509 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2510 (fill_in_ada_prototype, debug_print_block): Likewise.
2511 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2512
6f0eaa01
CV
25132002-07-11 Corinna Vinschen <vinschen@redhat.com>
2514
2515 * stack.c (print_frame): Use result of frame_address_in_block()
2516 instead of fi->pc when evaluating symbols.
2517 (backtrace_command_1): Ditto.
2518
a208b0cb
AC
25192002-07-11 Andrew Cagney <cagney@redhat.com>
2520
2521 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2522 Make static.
2523
2524 * arm-tdep.c (arm_register_name): Make return type constant.
2525
a6b6b089
AC
25262002-07-10 Andrew Cagney <ac131313@redhat.com>
2527
5ae5f592
AC
2528 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2529 prototype.
2530 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2531 * s390-tdep.c (s390_fp_regnum): Ditto.
2532 (s390_read_fp): Ditto.
2533 (s390_pop_frame): Ditto.
2534 (_initialize_s390_tdep): Ditto.
2535 * remote.c (get_remote_state): Ditto.
2536 * procfs.c (mappingflags): Ditto.
2537 * memattr.c (_initialize_mem): Ditto.
2538 * mcore-tdep.c (mcore_pop_frame): Ditto.
2539 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2540 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2541 * language.c (set_case_str): Ditto.
2542 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2543 * frv-tdep.c (new_variant): Ditto.
2544 (frv_stopped_data_address): Ditto.
2545 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2546 (context_alloc): Ditto.
2547 (frame_state_alloc): Ditto.
2548 (unwind_tmp_obstack_init): Ditto.
2549 (unwind_tmp_obstack_free): Ditto.
2550 (cfi_read_fp): Ditto.
2551 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2552 (cris_pop_frame): Ditto.
2553 * c-lang.c (scanning_macro_expansion): Ditto.
2554 (finished_macro_expansion): Ditto.
2555 (c_preprocess_and_parse): Ditto.
2556 * gdbarch.sh: Ditto.
2557 * gdbarch.h, gdbarch.c: Regenerate.
2558 * config/mn10200/tm-mn10200.h: Adjust indentation.
2559 * target.c: Adjust indentation.
2560 * symtab.h: Adjust indentation.
2561 * stabsread.h: Adjust indentation.
2562 * remote-es.c: Adjust indentation.
2563 * os9kread.c: Adjust indentation.
2564
25652002-07-10 Andrew Cagney <ac131313@redhat.com>
2566
a6b6b089
AC
2567 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2568 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2569
a1789893
GS
25702002-07-10 Grace Sainsbury <graces@redhat.com>
2571
2572 * NEWS: Mention m68k, mcore multi-arching.
2573 * MAINTAINERS: Change status of m68k, mcore to reflect
2574 multi-arching.
2575
02f0d45d
DJ
25762002-07-10 Daniel Jacobowitz <drow@mvista.com>
2577
2578 * valops.c (find_overload_match): Free oload_syms.
2579
f15f768e
JB
25802002-07-09 Joel Brobecker <brobecker@gnat.com>
2581
2582 Define HAVE_SYS_PROC_H if sys/proc.h exists
2583 * configure.in: Add check for sys/proc.h
2584 * config.in: Regenerate.
2585 * configure: Regenerate.
2586
902a7139
GS
25872002-07-09 Grace Sainsbury <graces@redhat.com>
2588
2589 * config/m68k/tm-m68k.h: Remove macros wrapped in
2590 #if !GDB_MULTI_ARCH.
2591
a534e424
AC
25922002-07-08 Andrew Cagney <ac131313@redhat.com>
2593
2594 * config.in, configure: Regenerate.
2595
9b94f7bf
MK
25962002-07-08 Mark Kettenis <kettenis@gnu.org>
2597
2598 * dwarf2cfi.c: Include "gcore.h".
2599 (execute_stack_op): Fix implementation of the
2600 DW_OP_deref and DW_OP_deref_size operators by letting do their
2601 lookup in the target.
2602
1d34db41
MK
26032002-07-07 Mark Kettenis <kettenis@gnu.org>
2604
2605 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2606 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2607 tdep->sc_sp_offset.
2608
79d5b63a
DJ
26092002-07-05 Daniel Jacobowitz <drow@mvista.com>
2610
2611 Fix PR gdb/595, gdb/602
2612 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2613 Don't call value_cast, just read the vtable pointer; update comments
2614 to match.
2615
3bb912e8
GS
26162002-07-05 Grace Sainsbury <graces@redhat.com>
2617
2618 * config/mcore/tm-mcore.h: Remove file.
2619 * config/mcore/mcore.mt: Remove definition of TM_FILE
2620 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2621
ca39387d
MK
26222002-07-05 Mark Kettenis <kettenis@gnu.org>
2623
2624 * i386bsd-tdep.c: Include "gdb_string.h".
2625
efdc1108
GS
26262002-07-04 Grace Sainsbury <graces@redhat.com>
2627
2628 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2629 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2630 mcore-tdep.
2631 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2632 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2633 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2634 (RETVAL_REGNUM): Move macros from tm-mcore.h
2635 (mcore_reg_struct_has_addr): New function.
2636 (mcore_gdbarch_init): Added initializations for the macros removed
2637 from tm-mcore.h.
2638
bb21884d
MK
26392002-07-04 Mark Kettenis <kettenis@gnu.org>
2640
2641 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2642 traditonal string branding within the ELF header.
2643
228c6d41
DJ
26442002-07-04 Daniel Jacobowitz <drow@mvista.com>
2645
2646 * symtab.c (remove_params): New function.
2647 (make_symbol_overload_list): Use it instead of cplus_demangle.
2648 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2649
2404952e
MK
26502002-07-04 Mark Kettenis <kettenis@gnu.org>
2651
e5e4acad
MK
2652 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2653
baadce09
MK
2654 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2655 New variables.
2656 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2657 and tdep->sigtramp_end.
2658 * i386obsd-nat.c: New file.
2659 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2660
2404952e
MK
2661 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2662 Don't call get_current_frame().
2663
9b4f1ba7
PM
26642002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2665
2666 * i386-nat.c (child_post_startup_inferior): New function
2667 calling i386_cleanup_dregs if
2668 I386_USE_GENERIC_WATCHPOINTS is defined.
2669 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2670 conditional to acknowledge that i386-nat.c has its
2671 own child_post_startup_inferior function.
2672
c0d1d883
MK
26732002-07-04 Mark Kettenis <kettenis@gnu.org>
2674
00f8375e
MK
2675 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2676 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2677 instead of MAX_REGISTER_RAW_SIZE.
2678 (i386_extract_return_value, i386_extract_struct_value_address):
2679 Convert to use regcache.
2680 (i386_gdbarch_init): Set max_register_raw_size and
2681 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2682 Set extract_return_value and extract_struct_value_address instead
2683 of their deprecated variants.
2684
c0d1d883
MK
2685 Convert i386 target to generic dummy frames.
2686 * i386-tdep.c: Include "symfile.h".
2687 (i386_frameless_signal_p): Consider a function to be frameless if
2688 the pc points at the first instruction of the function.
2689 (i386_frame_chain): Handle (generic) call dummies.
2690 (i386_frame_saved_pc): Likewise.
2691 (i386_frame_init_saved_regs): Remove code dealing with call
2692 dummies on the stack.
2693 (i386_push_dummy_frame): Removed.
2694 (i386_call_dummy_words): Removed.
2695 (i386_fix_call_dummy): Removed.
2696 (i386_push_return_address): New function.
2697 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2698 parameter, and don't call get_current_frame.
2699 (i386_pop_frame): New function.
2700 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2701 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2702 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2703 call_dummy_length to 0, set call_dummy_words to NULL, set
2704 sizeof_call_dummy_words to 0, set fix_call_dummy to
2705 generic_fix_call_dummy, set pc_in_call_dummy to
2706 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2707 generic_push_dummy_frame, set push_return_address to
2708 i386_push_return_address and set frame_chain_valid to
2709 generic_file_frame_chain_valid.
2710
049ee0e4
AC
27112002-07-03 Andrew Cagney <ac131313@redhat.com>
2712
2713 * gdbarch.sh (struct regcache): Add opaque declaration.
2714 (EXTRACT_RETURN_VALUE): New architecture method.
2715 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2716 * gdbarch.h, gdbarch.c: Regenerate.
2717 * arch-utils.c (legacy_extract_return_value): New function.
2718 * arch-utils.h (legacy_extract_return_value): Declare.
2719 * values.c (value_being_returned): Re-enable code handling
2720 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2721 deprecated_grub_regcache_for_registers call to block handling
2722 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2723 (EXTRACT_RETURN_VALUE): Do not define.
2724
4e0d9804
GS
27252002-07-03 Grace Sainsbury <graces@redhat.com>
2726
2727 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2728 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2729 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2730 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2731 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2732 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2733 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2734 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2735 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2736 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2737 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2738 argument so the function fits the prototype in the architecture
2739 vector.
2740 (mcore_pop_frame): Remove argument so the function fits the
2741 prototype. Use get_current_frame instead of the argument.
2742 (mcore_push_arguments): Change type of struct_return so the
2743 function can be used in the architecture vector.
2744 (mcore_store_struct_return): Add.
2745 (mcore_frame_init_saved_regs): Add.
2746 (mcore_gdbarch_init): Add function calls to replace the macros
2747 removed from tm-mcore.h
2748
36160dc4
AC
27492002-07-03 Andrew Cagney <ac131313@redhat.com>
2750
2751 * infcmd.c (print_return_value): Remove compatibility code calling
2752 deprecated_grub_regcache_for_registers.
2753
2754 * values.c: Include "regcache.h".
2755 (value_being_returned): Update. Use
2756 deprecated_grub_regcache_for_registers to extract the register
2757 buffer address.
2758 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2759 ``struct regcache''.
2760 * Makefile.in (values.o): Add dependency on $(regcache_h).
2761
2762 * inferior.h (run_stack_dummy): Change type of second parameter to
2763 a ``struct regcache''.
2764 * valops.c (hand_function_call): Change type of retbuf to ``struct
2765 regcache''. Allocate using regcache_xmalloc, clean using
2766 make_cleanup_regcache_xfree.
2767 * infcmd.c (run_stack_dummy): Update. Use
2768 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2769
2770 * regcache.c (do_regcache_xfree): New function.
2771 (make_cleanup_regcache_xfree): New function.
2772 * regcache.h (make_cleanup_regcache_xfree): Declare.
2773
e64d9b3d
MH
27742002-07-03 Martin M. Hunt <hunt@redhat.com>
2775
4dd79c29
MH
2776 * event-top.c (command_line_handler): Don't read past
2777 beginning of buffer.
e64d9b3d 2778
4dd79c29
MH
27792002-07-03 Martin M. Hunt <hunt@redhat.com>
2780
e64d9b3d
MH
2781 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2782 struct frame_id.
2783 (varobj_create): Store frame_id for root.
2784 (varobj_gen_name): Use xasprintf.
2785 (varobj_update): Save and restore frame using get_frame_id() and
2786 frame_find_by_id().
2787 (create_child): Use xasprintf.
2788 (new_root_variable): Initialize frame_id.
2789 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2790 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2791 to prevent memory leak.
2792
26e6c56a
AC
27932002-07-03 Andrew Cagney <ac131313@redhat.com>
2794
2795 * valops.c (hand_function_call): Move declaration of retbuf to
2796 start of function, allocate using malloc, add a cleanup but before
2797 the inf_status cleanup, cleanup the buffer. Rename local variable
2798 old_chain to inf_status_cleanup.
2799
f436dd25
MH
28002002-07-03 Martin M. Hunt <hunt@redhat.com>
2801
2802 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2803
2804 * cli/cli-decode.c (cmd_func_p): New function.
2805 (cmd_func): New function.
2806
2807 * command.h: Add cmd_func() and cmd_func_p().
2808
4cfe2084
GS
28092002-07-03 Grace Sainsbury <graces@redhat.com>
2810
2811 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2812 (REGISTER_SIZE): Remove.
2813 (MAX_REGISTER_RAW_SIZE): Remove.
2814 (REGISTER_VIRTUAL_TYPE): Remove.
2815 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2816 (REGISTER_NAME): Remove.
2817 (USE_GENERIC_DUMMY_FRAMES): Remove.
2818 (CALL_DUMMY): Remove.
2819 (CALL_DUMMY_START_OFFSET): Remove.
2820 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2821 (CALL_DUMMY_LOCATION): Remove.
2822 (FIX_CALL_DUMMY): Remove.
2823 (CALL_DUMMY_ADDRESS): Remove.
2824 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2825 (SAVE_DUMMY_FRAME_TOS): Remove.
2826 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2827 (mcore_register_virtual_type): New function.
2828 (mcore_register_byte): New function.
2829 (mcore_register_size): New function.
2830 (mcore_register_name): New function.
2831 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2832 macros removed from tm-mcore.h.
2833 (mcore_dump_tdep): Add.
2834 (_initialize_mcore_tdep): Add gdbarch_register call.
2835
4fd667e9
MK
28362002-07-03 Mark Kettenis <kettenis@gnu.org>
2837
2838 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2839 frameless_look_for_prologue, such that we actually call this
2840 function.
2841
42f99ac2
JB
28422002-07-02 Joel Brobecker <brobecker@gnat.com>
2843
2844 * frame.h (frame_address_in_block): New function.
2845
2846 * blockframe.c (frame_address_in_block): New function extracted
2847 from get_frame_block().
2848 (get_frame_block): Use frame_address_in_block().
2849 (block_innermost_frame): Use frame_address_in_block() to match
2850 the frame pc address against the block boundaries rather than
2851 the frame pc directly. This prevents a failure when a frame pc
2852 is actually a return-address pointing immediately after the end
2853 of the given block.
2854
103a1597 28552002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2856
2857 * MAINTAINERS: Add self under write after approval.
2858
28592002-07-02 Grace Sainsbury <graces@redhat.com>
2860
103a1597
GS
2861 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2862 used in architecture vector. The default is
2863 m68k_local_breakpoint_from_pc.
2864 (m68k_local_breakpoint_from_pc): Add.
2865 (enum): Add register numbers from tm-m68k.h.
2866 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2867 vector.
2868 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2869 GDB_MULTI_ARCH_PARTIAL.
2870 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2871 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2872 m68k-tdep.c.
2873 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2874 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2875 to enum in m68k-tdep.c
2876
7a5a0534
JB
28772002-07-02 Joel Brobecker <brobecker@gnat.com>
2878
2879 * solib-osf.c (open_map): Compute the list of shared libraries
2880 loaded by the inferior, rather than the list of libraries loaded
2881 by GDB itself. Otherwise, GDB ends up reading the symbols from
2882 the wrong shared libraries...
2883
6f558d74
MK
28842002-07-02 Mark Kettenis <kettenis@gnu.org>
2885
b7d15bf7
MK
2886 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2887 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2888 macros.
2889 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2890 Remove functions.
2891 (FRAMELESS_SIGNAL): Remove function.
2892 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2893 i386_linux_saved_pc_after_call): Removed.
2894 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2895 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2896 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2897
6bff26de
MK
2898 * i386-tdep.c (i386_frameless_signal_p): New function.
2899 (i386_frame_chain): Deal with frameless signals.
2900 (i386_sigtramp_saved_sp): New function.
2901 (i386_frame_saved_pc): Deal with frameless signals.
2902 (i386_saved_pc_after_call): Make sure the correct value is
2903 returned just after entry into a sigtramp.
2904 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2905 i386fbsd4_sc_sp_offset): New variables.
2906 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2907 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2908 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2909 similiar to what we already did for sc_pc_offset.
2910 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2911 tdep->sc_sp_offset.
2912
6f558d74
MK
2913 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2914
145564b7
ML
29152002-07-02 Michal Ludvig <mludvig@suse.cz>
2916
2917 * config/i386/tm-x86-64linux.h: New.
2918 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2919 definitions.
2920 * config/i386/nm-x86-64.h: Rename to ...
2921 * config/i386/nm-x86-64linux.h: ... this one.
2922 * config/i386/x86-64linux.mh: Reflect the above change.
2923
3a1e71e3
MK
29242002-07-01 Mark Kettenis <kettenis@gnu.org>
2925
21d0e8a4
MK
2926 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2927 with sigcontext_addr. Add sc_sp_offset.
2928 (i386bsd_sigtramp_saved_pc): Remove prototype.
2929 (i386bsd_sicontext_addr): Add prototype.
2930 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2931 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2932 (i386_svr4_sigtramp_saved_pc): Removed.
2933 (i386_svr4_sigcontext_addr): New function.
2934 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2935 Initialize tdep->sigcontext_addr instead. Initialize
2936 tdep->sc_pc_offset and tdep->sc_sp_offset.
2937 (i386_gdbarch_init): Likewise.
2938 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2939 any more.
2940 (i386bsd_sigtramp_saved_pc): Remove function.
2941 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2942 Initialize tdep->sigcontext_addr instead. Initialize
2943 tdep->sc_pc_offset.
2944 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2945 of tdep->sigtramp_saved_pc.
2946 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2947 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2948 instead.
2949
3a1e71e3
MK
2950 * i386-tdep.c (i386_frameless_function_invocation,
2951 i386_frame_num_args, i386_frame_init_saved_regs,
2952 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2953 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2954 i386_extract_return_value, i386_store_return_value,
2955 i386_extract_struct_value_address, i386_register_virtual_type,
2956 i386_register_convertible, i386_register_convert_to_virtual,
2957 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2958 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2959 static.
2960
52e9098c
MK
29612002-07-01 Mark Kettenis <kettenis@gnu.org>
2962
77b13a25
MK
2963 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2964
52e9098c
MK
2965 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2966 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2967 this macro. Include "value.h".
2968
1b372fff
AS
29692002-06-30 Aidan Skinner <aidan@velvet.net>
2970
2971 * ada-exp.tab.c: remove as it's a generated file
2972 * ada-lex.c: remove as it's a generated file
2973
9c5045b5
MK
29742002-06-30 Mark Kettenis <kettenis@gnu.org>
2975
4a93c5bb
MK
2976 * config/i386/tm-i386.h (struct frame_info, struct
2977 frame_saved_regs, struct value, struct type): Remove forward
2978 declarations.
2979
322d4fe0
MK
2980 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2981 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2982 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2983 (FILL_FPXREGSET): Define.
2984
fdd8263d
MK
2985 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2986
482e577b
MK
2987 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2988 i[3456]86-*-netbsd* case.
2989 * config/i386/tm-obsd.h: Removed.
2990 * config/i386/obsd.mt: Removed.
2991 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2992 core-aout.o.
2993 (MH_CFLAGS): Add -DYYDEBUG=0.
2994
6916549a
MK
2995 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2996 i386nbsd_sc_pc_offset on OpenBSD too.
2997
9c5045b5
MK
2998 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2999 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3000 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3001 define.
3002 * i386bsd-tdep.c: Include "arch-utils.h".
3003 (i386bsd_aout_in_solib_call_trampoline): New function.
3004 (i386bsd_init_abi): Set in_solib_call_trampoline to
3005 i386bsd_aout_in_solib_call_trampoline.
3006 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3007 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3008
aa84d1bb
AC
30092002-06-28 Andrew Cagney <ac131313@redhat.com>
3010
3011 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3012 (struct obstack, struct bcache): Add opaque declarations.
3013 * Makefile.in (macrotab_h): Update
3014
b4d83933
AC
30152002-06-28 Andrew Cagney <ac131313@redhat.com>
3016
3017 * blockframe.c (generic_find_dummy_frame): Change return type to
3018 ``struct regcache''.
3019 (struct dummy_frame): Replace field ``registers'' with regcache, a
3020 struct regcache object.
3021 (generic_find_dummy_frame): Update.
3022 (generic_push_dummy_frame): Update. Use regcache_xfree,
3023 regcache_xmalloc and regcache_cpy.
3024 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3025 regcache_xfree.
3026 (deprecated_generic_find_dummy_frame): Update.
3027 (generic_read_register_dummy): Update. Use
3028 regcache_read_as_address.
3029 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3030 (generic_get_saved_register): Update. Use regcache_read.
3031
08c0b5bc
AC
30322002-06-28 Andrew Cagney <ac131313@redhat.com>
3033
3034 * Makefile.in (objfiles_h): Add $(bcache_h).
3035 * objfiles.h: Include "bcache.h".
3036
3037 * Makefile.in (symtab_h): Remove $(bcache_h).
3038 * symtab.h: Do not include "bcache.h".
3039
1f89801a
AC
30402002-06-28 Andrew Cagney <ac131313@redhat.com>
3041
3042 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3043 generic_func_frame_chain_valid.
3044
b9644b58
DB
30452002-06-28 David O'Brien <obrien@FreeBSD.org>
3046
3047 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3048 * config/i386/tm-fbsd.h: Likewise.
3049
dd486634
AC
30502002-06-28 Andrew Cagney <ac131313@redhat.com>
3051
3052 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3053 generic_unwind_get_saved_register.
3054
0b434a00
AC
30552002-06-27 Andrew Cagney <ac131313@redhat.com>
3056
3057 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3058 * regcache.c (supply_register): Add missing argument to
3059 register_buffer call.
3060
f30e5a77
AC
30612002-06-27 Andrew Cagney <ac131313@redhat.com>
3062
3063 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3064 Solaris /bin/grep does not not like it. From Peter Schauer.
3065
9f064c95
TT
30662002-06-26 Tom Tromey <tromey@redhat.com>
3067
3068 * command.h (add_setshow_cmd): Declare.
3069 (add_setshow_cmd_full): Declare.
3070 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3071 returns void. Use add_setshow_cmd_full.
3072 (add_setshow_cmd_full): New function.
3073 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3074 (add_setshow_boolean_cmd): Likewise.
3075
099c7589
JT
30762002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3077
3078 * config/vax/tm-vax.h: Protect from multiple inclusion.
3079 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3080 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3081 * config/vax/tm-vaxbsd.h: ...here. New file.
3082 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3083
1d049c5e
JT
30842002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3085
3086 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3087 (BELIEVE_PCC_PROMOTION): Remove.
3088 (AP_REGNUM): Move to...
3089 * config/vax/nm-vax.h: ...here.
3090 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3091 (vax_breakpoint_from_pc): New function.
3092 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3093 and gdbarch_believe_pcc_promotion.
3094
4791e091
JT
30952002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3096
3097 * Makefile.in (vax_tdep_h): Define.
3098 (vax-tdep.o): Use $(vax_tdep_h).
3099 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3100 (vax_dump_tdep): New function.
3101 (_initialize_vax_tdep): Register vax_dump_tdep.
3102 * vax-tdep.h: Include osabi.h.
3103 (struct gdbarch_tdep): New.
3104
da130f98
AC
31052002-06-26 Andrew Cagney <cagney@redhat.com>
3106
3107 * frame.h (deprecated_generic_find_dummy_frame): Rename
3108 generic_find_dummy_frame.
3109 * blockframe.c (generic_find_dummy_frame): Make static.
3110 (deprecated_generic_find_dummy_frame): New function.
3111 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3112 generic_find_dummy_frame with deprecated_find_dummy_frame.
3113 (sh64_nofp_frame_init_saved_regs): Ditto.
3114 (sh_fp_frame_init_saved_regs): Ditto.
3115 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3116 (s390_frame_chain): Ditto.
3117 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3118
6300c360
GS
31192002-06-26 Grace Sainsbury <graces@redhat.com>
3120
3121 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3122 gdbarch vector are at the top.
3123 (NUM_REGS): Remove.
3124 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3125 (FRAME_ARGS_ADDRESS): Remove.
3126 (FRAME_LOCALS_ADDRESS): Remove.
3127 (FRAME_NUM_ARGS): Remove.
3128 (FRAME_ARGS_SKIP): Remove.
3129 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3130 (m68k_gdbarch_init): Add gdbarch initializations for macros
3131 undefined in tm-m68k.h
3132
1c617db8
GS
31332002-06-26 Grace Sainsbury <graces@redhat.com>
3134
3135 * monitor.h: Add the function regname to monitor_ops
3136 structure. This way NUM_REGS does not have to be a constant.
3137 * monitor.c (monitor_fetch_register): Added support for regname
3138 function. The function is called if the array regnames is NULL.
3139 (monitor_store_register): Same.
da130f98
AC
3140 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3141 regnames array.
1c617db8
GS
3142 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3143 cpu32bug_cmds.regname to point to new function.
3144 * abug-rom.c (abug_regname): Same as above.
3145 (init_abug_cmds): Same.
3146 * dbug-rom.c (dbug_regname): Same as above.
3147 (init_dbug_cmds): Same.
3148 * remote-est.c (est_regname): Same.
3149 (init_est_cmds): Same.
3150 * rom68k-rom.c (rom68k_regname): Same.
3151 (init_rom68k_cmds): Same.
3152
ea9365bb
TT
31532002-06-25 Tom Tromey <tromey@redhat.com>
3154
3155 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3156
72cec141
AC
31572002-06-25 Andrew Cagney <cagney@redhat.com>
3158
3159 * infrun.c (stop_registers): Change variable's type to ``struct
3160 regcache'''.
3161 (xmalloc_inferior_status): Delete function.
3162 (free_inferior_status): Delete function.
3163 (normal_stop): Use regcache_cpy.
3164 (struct inferior_status): Change type of fields ``stop_registers''
3165 and ``registers'' to ``struct regcache''.
3166 (write_inferior_status_register): Use regcache_write.
3167 (save_inferior_status): Instead of calling
3168 xmalloc_inferior_status, allocate the inf_status buffer directly.
3169 Use regcache_dup_no_passthrough and regcache_dup to save the
3170 buffers.
3171 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3172 Replace the stop_registers regcache instead of overriding it. Use
3173 regcache_xfree. Instead of calling free_inferior_status, xfree
3174 the buffer directly.
3175 (discard_inferior_status): Use regcache_xfree. Instead of calling
3176 free_inferior_status, xfree the buffer directly.
3177 (build_infrun): Use regcache_xmalloc.
3178 (_initialize_infrun): Delete redundant call to build_infrun.
3179
3180 * Makefile.in (infcmd.o): Add $(regcache_h).
3181
3182 * infcmd.c: Include "regcache.h".
3183 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3184 obtain the address of `stop_registers' register buffer.
3185 (print_return_value): Ditto.
3186
3187 * inferior.h (struct regcache): Add opaque declaration.
3188 (stop_registers): Change variable's declared type to ``struct
3189 regcache''.
3190
defc6f8c
TT
31912002-06-24 Tom Tromey <tromey@redhat.com>
3192
c0e624e7
TT
3193 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3194 * target.c (initialize_targets): Fixed typo in
3195 trust-readonly-sections `show' documentation.
3196
defc6f8c
TT
3197 * main.c: Marked all strings with _().
3198
2b236d82
DH
31992002-06-24 Don Howard <dhoward@redhat.com>
3200
3201 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3202 that means max CORE_ADDR+1.
3203 (lookup_mem_region): Ditto.
3204 (mem_info_command): Ditto.
3205
942dc0e9
GS
32062002-06-24 Grace Sainsbury <graces@redhat.com>
3207
3208 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3209 (REGISTER_BYTES_OK): Remove.
3210 (REGISTER_BYTES): Remove.
3211 (STORE_STRUCT_RETURN): Remove.
3212 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3213 (STORE_RETURN_VALUE): Remove.
3214 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3215 (FRAME_CHAIN): Remove.
3216 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3217 (FRAME_SAVED_PC): Remove.
3218 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3219 (m68k_store_struct_return): Add.
3220 (m68k_deprecated_extract_return_value): Add.
3221 (m68k_deprecated_extract_struct_value_address): Add.
3222 (m68k_store_return_value): Add.
3223 (m68k_frame_chain): Add.
3224 (m68k_frameless_function_invocation): Add.
3225 (m68k_frame_saved_pc): Add.
3226 (m68k_gdbarch_init): added set_gdbarch calls for new
3227 functions and deleted macros.
3228
03c30d4d
TT
32292002-06-23 Tom Tromey <tromey@redhat.com>
3230
3231 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3232 (ALLDEPFILES): Likewise.
3233 (udiheaders): Removed.
3234 (udip2soc.o): Likewise.
3235 (udi2go32.o): Likewise.
3236 (udr.o): Likewise.
3237 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3238
37e71372
AC
32392002-06-22 Andrew Cagney <ac131313@redhat.com>
3240
06a6ac57
AC
3241 * infrun.c (_initialize_infrun): Delete unnecessary call to
3242 build_infrun.
3243
37e71372
AC
3244 * regcache.h: Update comments describing the regcache_cpy family
3245 of functions.
3246 (regcache_save, regcache_restore): Delete declaration.
3247 (regcache_save_no_passthrough): Delete declaration.
3248 (regcache_restore_no_passthrough): Delete declaration.
3249 * regcache.c (regcache_save): Delete function.
3250 (regcache_save_no_passthrough): Delete function.
3251 (regcache_restore): Delete function.
3252 (regcache_restore_no_passthrough): Delete function.
3253
78f6d055
AC
32542002-06-21 Andrew Cagney <ac131313@redhat.com>
3255
3256 * config/m68k/tm-m68k.h: Fix typo.
3257 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3258 (m68k_frame_init_saved_regs): Declare.
3259
78b119cb
JB
32602002-06-21 Jim Blandy <jimb@redhat.com>
3261
3262 Remove some vestiges of Harris 88k support.
3263 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3264 register numbering quirk.
3265 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3266 odd symbols occurring in Harris 88k ELF targets.
3267
0fbb3da7
TT
32682002-06-21 Tom Tromey <tromey@redhat.com>
3269
3270 * gdb_locale.h: New file.
3271 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3272 (defs_h): Added gdb_locale.h.
3273 * configure, config.in: Rebuilt.
3274 * configure.in (PACKAGE): Define.
3275 * defs.h: Include gdb_locale.h.
3276 * main.c (captured_main): Call setlocale, bindtextdomain,
3277 textdomain.
3278
456f8b9d
DB
32792002-06-21 Dave Brolley <brolley@redhat.com>
3280
3281 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3282 * config/frv/frv.mt: New file.
3283 * config/frv/tm-frv.h: New file.
3284 * configure.tgt: Support frv-*-*.
3285 * Makefile.in (frv-tdep.o): New target.
3286 * frv-tdep.c: New file.
3287 * NEWS: Mention frv.
3288
cdd463f9
DB
32892002-06-21 Dave Brolley <brolley@redhat.com>
3290
3291 * MAINTAINERS: Add self to "Write After Approval" list.
3292
5d3ed2e3
GS
32932002-06-21 Grace Sainsbury <graces@redhat.com>
3294
3295 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3296 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3297 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3298 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3299 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3300
3301 * m68k-tdep.c: Include arch-utils.h
3302 (m68k_register_raw_size): Add.
3303 (m68k_register_virtual_size): Add.
3304 (m68k_register_virtual_type): Add.
3305 (m68k_register_name): Add.
3306 (m68k_stack_align): Add.
3307 (m68k_register_byte): Add.
3308 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3309 tm-m68k.h.
3310
7f8e7424
GS
33112002-06-21 Grace Sainsbury <graces@redhat.com>
3312
a2c6a6d5 3313 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3314 m68k_find_saved_regs.
3315 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3316 references to it with frame->saved_regs.
7f8e7424
GS
3317 (m68k_gdbarch_init): Added function calls to initialize the
3318 gdbarch structure.
a2c6a6d5
GS
3319 (m68k_fix_call_dummy): Add.
3320 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3321 (CALL_DUMMY): Remove.
3322 (CALL_DUMMY_LENGTH): Remove.
3323 (CALL_DUMMY_START_OFFSET): Remove.
3324 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3325 (FIX_CALL_DUMMY): Remove.
3326 (PUSH_DUMMY_FRAME): Remove.
3327 (POP_FRAME): Remove.
7f8e7424 3328
f461f5cf
PM
33292002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3330
3331 * parse.c (parse_fprintf): New function used to avoid calls to
3332 fprintf in bison parser generated debug code.
3333 * parser-defs.h: Declaration of new parse_fprintf function.
3334 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3335 Set YYDEBUG to 1 by default.
3336 Set YYFPRINTF as parse_fprintf.
3337
7f0c12ed
ML
33382002-06-21 Michal Ludvig <mludvig@suse.cz>
3339
3340 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3341 encoding anymore.
3342 (pointer_encoding, enum ptr_encoding): New.
3343 (execute_cfa_program): Take care about pointer encoding.
3344 (dwarf2_build_frame_info): Only call parse_frame_info for
3345 .debug_frame and .eh_frame.
3346 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3347 fixed augmentation handling, added relative addressing,
3348 ignore duplicate FDEs. Added comments.
19d833a2 3349 * dwarf2cfi.c: Reindented.
7f0c12ed 3350
87c4a039
EZ
33512002-06-20 Elena Zannoni <ezannoni@redhat.com>
3352
3353 * event-top.c (command_handler): Don't use space_at_cmd_start
3354 unless there is sbrk() on the host. Assign time and space data
3355 to union fields of the appropriate length.
3356
1cf877ad
ML
33572002-06-20 Michal Ludvig <mludvig@suse.cz>
3358
3359 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3360 x86_64_register_name. Return type changed to 'const char *'.
3361 (x86_64_register_name2nr): Rename to x86_64_register_number.
3362 (x86_64_gdbarch_init): Update to reflect the change.
3363 * x86-64-tdep.h: Ditto.
3364 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3365 (supply_fpregset): Ditto.
3366
3fadccb3
AC
33672002-06-19 Andrew Cagney <cagney@redhat.com>
3368
3369 * regcache.h: Update copyright.
3370 (struct regcache, struct gdbarch): Add opaque declarations.
3371 (current_regcache): Declare global variable.
3372 (regcache_read, regcache_write): Add gdbarch parameter.
3373 (regcache_save, regcache_save_no_passthrough)
3374 (regcache_restore, regcache_restore_no_passthrough)
3375 (regcache_dup, regcache_dup_no_passthrough)
3376 (regcache_cpy, regcache_cpy_no_passthrough)
3377 (deprecated_grub_regcache_for_registers)
3378 (deprecated_grub_regcache_for_register_valid)
3379 (regcache_valid_p): Add function declarations.
3380
3381 * regcache.c: Update copyright.
3382 (regcache_descr_handle): New global variable.
3383 (struct regcache_descr): Define.
3384 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3385 (regcache_descr, xfree_regcache_descr): New functions.
3386 (struct regcache): Define.
3387 (regcache_xmalloc, regcache_xfree): New functions.
3388 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3389 (regcache_dup, regcache_dup_no_passthrough): New functions.
3390 (regcache_valid_p, regcache_read_as_address): New functions.
3391 (deprecated_grub_regcache_for_registers): New function.
3392 (deprecated_grub_regcache_for_register_valid): New function.
3393 (current_regcache): New global variable.
3394 (register_buffer): Add regcache parameter. Update calls.
3395 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3396 (read_register_gen, write_register_gen): Update register_buffer
3397 call. Test for legacy_p instead of gdbarch_register_read_p or
3398 gdbarch_register_write_p.
3399 (regcache_collect): Update register_buffer call.
3400 (build_regcache): Rewrite. Use deprecated grub functions.
3401 (regcache_save, regcache_save_no_passthrough): New functions.
3402 (regcache_restore, regcache_restore_no_passthrough): New
3403 functions.
3404 (_initialize_regcache): Create the regcache_data_handle. Swap
3405 current_regcache global variable.
3406
3407 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3408 parameter to regcache_read and regcache_write calls.
3409 (sh4_register_read): Ditto.
3410 (sh64_pseudo_register_read): Ditto.
3411 (sh64_register_read): Ditto.
3412 (sh_pseudo_register_write): Ditto.
3413 (sh4_register_write): Ditto.
3414 (sh64_pseudo_register_write): Ditto.
3415 (sh64_register_write): Ditto.
3416
3417 * defs.h (XCALLOC): Define.
3418
152d9db6
GS
34192002-06-19 Grace Sainsbury <graces@redhat.com>
3420
3421 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3422 * m68k-tdep.c (m68k_gdbarch_init): Added.
3423 (m68k_dump_tdep): Added.
3424
170911c7
DJ
34252002-06-19 Daniel Jacobowitz <drow@mvista.com>
3426
3427 * ada-lang.c (fill_in_ada_prototype): Update comment.
3428
2e4ebe70
DJ
34292002-06-19 Daniel Jacobowitz <drow@mvista.com>
3430
3431 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3432 MIPS_ABI_LAST.
3433 (mips_abi_string, mips_abi_strings): New.
3434 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3435 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3436 tdep->mips_abi_string. Honor mips_abi_string. Default to
3437 O32 if no ABI is found.
3438 (mips_dump_tdep): Use mips_abi_strings.
3439 (mips_abi_update): New function.
3440 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3441 ``set mips abi'' and ``show mips abi''. Check the size of
3442 mips_abi_strings.
3443
16775908
AC
34442002-06-19 Andrew Cagney <cagney@redhat.com>
3445
3446 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3447 constant.
3448
5051bfa4 34492002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3450
5051bfa4
JB
3451 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3452 current frame using only the first stack size adjustment. All
3453 subsequent size adjustments are not considered to be part of
3454 the "static" part of the current frame.
3455 Compute the address of the saved registers relative to the
3456 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3457 in use in this frame.
3458
56468235
DH
34592002-06-18 Don Howard <dhoward@redhat.com>
3460
3461 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3462 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3463 suggesting this solution.
3464
0b624158
AC
34652002-06-18 Andrew Cagney <ac131313@redhat.com>
3466
3467 * config/romp/xm-rtbsd.h: Delete file.
3468 * config/romp/rtbsd.mh: Delete file.
3469
221ea385
KS
34702002-06-18 Keith Seitz <keiths@redhat.com>
3471
3472 * breakpoint.c (condition_command): Post breakpoint_modify
3473 when a condition is added to an existing breakpoint.
3474 (commands_command): Likewise for commands.
3475 (set_ignore_count): Likewise for ignore counts.
3476 If no tty, do not simply return, still need to send event
3477 notification.
3478 (ignore_command): Only print a newline if the command came
3479 from a tty.
3480 Don't call breakpoints_changed, since this is now properly
3481 handled by set_ignore_count.
3482
5402eed1
AC
34832002-06-18 Andrew Cagney <cagney@redhat.com>
3484
3485 * MAINTAINERS: Note that cris-elf target can be compiled with
3486 -Werror.
3487 * cris-tdep.c (cris_register_name): Make return type constant.
3488 (cris_breakpoint_from_pc): Ditto.
3489
cc22880b
ML
34902002-06-18 Michal Ludvig <mludvig@suse.cz>
3491
3492 * frame.h (struct frame_info): Change type of context to
3493 'struct context'.
3494
fa88f677
AC
34952002-06-17 Andrew Cagney <cagney@redhat.com>
3496
3497 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3498 pointer.
3499 * gdbarch.h, gdbarch.c: Regenerate.
3500 * config/mips/tm-mips.h (mips_register_name): Update.
3501 * i386-tdep.h (i386_register_name): Update.
3502 * mips-tdep.c (mips_register_name): Update
3503 * alpha-tdep.c (alpha_register_name): Update.
3504 * arch-utils.c (legacy_register_name): Update.
3505 * arch-utils.h (legacy_register_name): Update.
3506 * avr-tdep.c (avr_register_name): Update.
3507 * ia64-tdep.c (ia64_register_name): Update.
3508 * i386-tdep.c (i386_register_name): Update.
3509 * sparc-tdep.c (sparc32_register_name): Update.
3510 (sparc64_register_name): Update.
3511 (sparclite_register_name): Update.
3512 (sparclet_register_name): Update.
3513 * sh-tdep.c (sh_generic_register_name): Update.
3514 (sh_sh_register_name): Update.
3515 (sh_sh3_register_name): Update.
3516 (sh_sh3e_register_name): Update.
3517 (sh_sh_dsp_register_name): Update.
3518 (sh_sh3_dsp_register_name): Update.
3519 (sh_sh4_register_name): Update.
3520 (sh_sh64_register_name): Update.
3521 * s390-tdep.c (s390_register_name): Update.
3522 * rs6000-tdep.c (rs6000_register_name): Update.
3523 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3524 (ns32k_register_name_32382): Update.
3525 * d10v-tdep.c (d10v_ts2_register_name): Update.
3526 (d10v_ts3_register_name): Update.
3527 * xstormy16-tdep.c (xstormy16_register_name): Update.
3528 * vax-tdep.c (vax_register_name): Update.
3529 * v850-tdep.c (v850_register_name): Update.
3530 * m68hc11-tdep.c (m68hc11_register_name): Update.
3531 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3532 (am33_register_name): Update.
3533
ea1e7ef6
GS
35342002-06-17 Grace Sainsbury <graces@redhat.com>
3535
3536 * m68k-tdep.c: Reindented.
3537
9b02dd1b
AC
35382002-06-17 Andrew Cagney <ac131313@redhat.com>
3539
3540 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3541 list of predefined types.
3542
8758dec1
MK
35432002-06-16 Mark Kettenis <kettenis@gnu.org>
3544
b6197528
MK
3545 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3546 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3547 REGISTER_CONVERT_TO_RAW): Remove defines.
3548 (i386_register_virtual_type, i386_register_convertible,
3549 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3550 Remove prototypes.
3551 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3552 macros mentioned above.
3553
82b47e62
MK
3554 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3555 (i386lynx_saved_pc_after_call): Remove prototype.
3556 * i386ly-tdep.c: Include "i386-tdep.h".
3557 (i386lynx_saved_pc_after_call): Make static. Use
3558 read_memory_nobpt instead of read_memory. Use
3559 read_memory_unsigned_integer instead of read_memory_integer.
3560 (i386lynx_init_abi): New function.
3561 (i386lynx_coff_osabi_sniffer): New function.
3562 (_initialize_i386bsd_tdep): New function.
3563
8758dec1
MK
3564 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3565 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3566 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3567 (i386_fix_call_dummy): Remove prototype.
3568 * i386-tdep.c (i386_call_dummy_words): New variable.
3569 (i386_gdbarch_init): Adjust for removal of the
3570 macros mentioned above.
3571
e9e68a56
AC
35722002-06-15 Andrew Cagney <ac131313@redhat.com>
3573
3574 * command.h (add_setshow_auto_boolean_cmd): Replace
3575 add_set_auto_boolean_cmd.
3576 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3577 add_set_auto_boolean_cmd.
3578 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3579 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3580 mask-address'' command.
3581 (show_mask_address): Add cmd parameter.
3582 * remote.c (add_packet_config_cmd): Update. Change type of
3583 set_func and show_func to cmd_sfunc_ftype.
3584 (_initialize_remote): Update `set remote Z-packet'
3585 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3586 (show_remote_protocol_e_packet_cmd): Ditto.
3587 (show_remote_protocol_E_packet_cmd): Ditto.
3588 (show_remote_protocol_P_packet_cmd): Ditto.
3589 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3590 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3591 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3592 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3593 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3594 (show_remote_protocol_Z_packet_cmd): Ditto.
3595 (show_remote_protocol_binary_download_cmd): Ditto.
3596 (show_remote_cmd): Pass NULL to all of above.
3597
fc08ec52
MK
35982002-06-15 Mark Kettenis <kettenis@gnu.org>
3599
3600 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3601 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3602 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3603 POP_FRAME): Remove defines.
3604 (i386_push_arguments, i386_store_struct_return,
3605 i386_extract_return_value, i386_store_return_value,
3606 i386_extract_struct_value_address, i386_push_dummy_frame,
3607 i386_pop_frame): Renove prototypes.
3608 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3609 macros mentioned above.
3610
e707bbc2
AC
36112002-06-15 Andrew Cagney <ac131313@redhat.com>
3612
3613 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3614 add_set_boolean_cmd.
3615 (add_setshow_cmd): New function.
3616 * command.h (add_setshow_boolean_cmd): Replace
3617 add_set_boolean_cmd.
3618 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3619 and ``set rdiromatzero''.
3620 * maint.c (_initialize_maint_cmds): Update commented out code.
3621 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3622 * target.c (initialize_targets): Update `set
3623 trust-readonly-sections'.
3624 * remote.c (_initialize_remote): Update `set remotebreak'.
3625
42fdc8df
MK
36262002-06-15 Mark Kettenis <kettenis@gnu.org>
3627
93924b6b
MK
3628 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3629 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3630 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3631 fit into multi-arch framework.
3632 (i386_breakpoint_from_pc): New function.
3633 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3634 above.
3635
42fdc8df
MK
3636 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3637 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3638 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3639 (i386_frameless_function_invocation, i386_frame_num_args,
3640 i386_frame_init_saved_regs): Remove prototypes.
3641 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3642 macros mentioned above.
3643
9773a94b
AC
36442002-06-15 Andrew Cagney <ac131313@redhat.com>
3645
3646 * cli/cli-decode.c (set_cmd_cfunc): Update.
3647 (set_cmd_sfunc): Update.
3648 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3649 (set_cmd_sfunc, set_cmd_cfunc): Update.
3650 * cli/cli-decode.h: Update.
3651
6e157172
MK
36522002-06-15 Mark Kettenis <kettenis@gnu.org>
3653
3654 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3655 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3656
7f19b9a2
AC
36572002-06-15 Andrew Cagney <ac131313@redhat.com>
3658
3659 * defs.h (auto_boolean): Declare enum.
3660 * command.h (cmd_auto_boolean): Delete enum.
3661 * mips-tdep.c (mask_address_var): Update.
3662 (mips_mask_address_p): Update.
3663 (show_mask_address): Update.
3664 * remote.c (struct packet_config): Update.
3665 (update_packet_config): Update.
3666 (show_packet_config_cmd): Update.
3667 (packet_ok): Update.
3668 (add_packet_config_cmd): Update.
3669 (_initialize_remote):
3670 * command.h: Update.
3671 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3672 (do_setshow_command): Update.
3673 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3674 * cli/cli-decode.h: Update.
3675
1cf88de5
MK
36762002-06-15 Mark Kettenis <kettenis@gnu.org>
3677
22ba8cf2
MK
3678 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3679 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3680 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3681 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3682 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3683 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3684
762c5349
MK
3685 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3686 list of DJGPP COFF targets.
3687
091198bb
MK
3688 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3689 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3690 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3691 (FP0_REGNUM): Remove define.
3692 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3693 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3694 (i386_register_virtual_size): Remove protoype.
3695 * i386-tdep.c (i386_register_virtual_size): Removed.
3696 (i386_extract_return_value, i386_store_return_value): Use
3697 FP0_REGNUM instead of NUM_FREGS to determine whether the
3698 floating-point registers are available.
3699 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3700 Adjust for removal of macros mentioned above.
3701
37022002-06-15 Mark Kettenis <kettenis@gnu.org>
3703
fcc9bf01
MK
3704 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3705 comments.
3706 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3707 Remove prototypes.
3708 (supply_gregset, fill_gregset): Remove use of register keyword and
3709 remove declaration for regmap. Use I386_NUM_GREGS instead of
3710 NUM_REGS and NUM_FREGS.
3711 (FPREGSET_FSAVE_OFFSET): Remove.
3712 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3713 NUM_FREGS to determine whether the floating-point registers are
3714 available.
3715
65e78234
MK
3716 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3717 gnu_store_registers): Replace usage of NUM_GREGS with
3718 I386_NUM_GREGS.
3719
98df6387
MK
3720 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3721 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3722 usage of NUM_GREGS with I386_NUM_GREGS.
3723
099a9414
MK
3724 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3725
57976e88
MK
3726 * i386bsd-nat.c: Include "i386-tdep.h".
3727 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3728 I386_NUM_GREGS.
3729
b335f4a6
MK
3730 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3731 and associated comment. They no longer make any sense, since we
3732 don't use this file anymore on Linux.
3733
1cf88de5
MK
3734 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3735 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3736 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3737 elements in these arrays.
3738 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3739 MAX_NUM_REGS.
3740
daa66587
MK
37412002-06-15 Mark Kettenis <kettenis@gnu.org>
3742
3743 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3744 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3745
26e9b323
AC
37462002-06-14 Andrew Cagney <cagney@redhat.com>
3747
3748 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3749 EXTRACT_RETURN_VALUE.
3750 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3751 EXTRACT_STRUCT_VALUE_ADDRESS.
3752 * gdbarch.h, gdbarch.c: Regenerate.
3753
3754 * values.c (value_being_returned): Handle
3755 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3756 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3757
3758 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3759 * arm-tdep.c (arm_gdbarch_init): Update.
3760 * avr-tdep.c (avr_gdbarch_init): Update.
3761 * cris-tdep.c (cris_gdbarch_init): Update.
3762 * d10v-tdep.c (d10v_gdbarch_init): Update.
3763 * ia64-tdep.c (ia64_gdbarch_init): Update.
3764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3765 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3766 * s390-tdep.c (s390_gdbarch_init): Update.
3767 * sh-tdep.c (sh_gdbarch_init): Update.
3768 * s390-tdep.c (s390_gdbarch_init): Update.
3769 * sparc-tdep.c (sparc_gdbarch_init): Update.
3770 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3771 * v850-tdep.c (v850_gdbarch_init): Update.
3772 * vax-tdep.c (vax_gdbarch_init): Update.
3773 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3774 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3775
3776 * config/arc/tm-arc.h: Update.
3777 * config/d30v/tm-d30v.h: Update.
3778 * config/fr30/tm-fr30.h: Update.
3779 * config/h8300/tm-h8300.h: Update.
3780 * config/h8500/tm-h8500.h: Update.
3781 * config/i386/tm-i386.h: Update.
3782 * config/i386/tm-ptx.h: Update.
3783 * config/i386/tm-symmetry.h: Update.
3784 * config/i960/tm-i960.h: Update.
3785 * config/m32r/tm-m32r.h: Update.
3786 * config/m68k/tm-delta68.h: Update.
3787 * config/m68k/tm-linux.h: Update.
3788 * config/m68k/tm-m68k.h: Update.
3789 * config/m88k/tm-m88k.h: Update.
3790 * config/mcore/tm-mcore.h: Update.
3791 * config/mips/tm-mips.h: Update.
3792 * config/mn10200/tm-mn10200.h: Update.
3793 * config/pa/tm-hppa.h: Update.
3794 * config/pa/tm-hppa64.h: Update.
3795 * config/sparc/tm-sp64.h: Update.
3796 * config/sparc/tm-sparc.h: Update.
3797 * config/sparc/tm-sparclet.h: Update.
3798 * config/z8k/tm-z8k.h: Update.
3799
5179e78f
AC
38002002-06-14 Andrew Cagney <cagney@redhat.com>
3801
3802 * Makefile.in (i386_linux_tdep_h): Define.
3803 (i386_tdep_h, i387_tdep_h): Define.
3804 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3805 $(i386_tdep_h) and $(i387_tdep_h).
3806 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3807
8201327c
MK
38082002-06-14 Mark Kettenis <kettenis@gnu.org>
3809
edf393ac
MK
3810 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3811 Already covered by the default.
3812
896fb97d
MK
3813 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3814 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3815 (i386_gdbarch_init): Initialize long_double_format and long_double
3816 bit.
3817
8201327c
MK
3818 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3819 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3820 Move these to ...
3821 * config/i386/i386sol2.mh: ... here.
3822 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3823 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3824 (SIGCONTEXT_PC_OFFSET): Remove define.
3825 (IN_SIGTRAMP): Remove define.
3826 * i386-sol2-tdep.c: New file.
3827
3828 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3829 * config/i386/tm-i386nw.h: Removed.
3830
3831 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3832 USE_STRUCT_CONVENTION): Remove defines.
3833 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3834 (get_longjmp_target): Remove prototype.
3835 (IN_SIGTRAMP): Remove define.
3836 (i386bsd_in_sigtramp): Remove prototype.
3837 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3838 function. Update comment accordingly
3839 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3840 (FRAME_SAVED_PC): Remove define.
3841 (i386bsd_frame_saved_pc): Remove prototype.
3842 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3843 GET_LONGJMP_TARGET): Remove defines.
3844 (get_longjmp_target): Remove prototype.
3845 (IN_SIGTRAMP): Remove define.
3846 (i386bsd_in_sigtramp): Remove prototype.
3847 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3848 function. Update comment accordingly
3849 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3850 (FRAME_SAVED_PC): Remove define.
3851 (i386bsd_frame_saved_pc): Remove prototype.
3852 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3853 Remove prototype.
3854 (USE_STRUCT_CONVENTION): Remove prototype.
3855 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3856 declaration.
3857 (_initialize_i386bsd_nat): Revise logic to determine some
3858 constants at compile time when compiling a native GDB. Warn if
3859 things don't match up with what we expect.
3860 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3861 Remove variables.
3862 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3863 to use date stored in `struct gdbarch_tdep'.
3864 (i386bsd_sigcontext_offset): Remove varaible.
3865 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3866 stored in `struct gdbarch_tdep'.
3867 (i386bsd_frame_saved_pc): Make static.
3868 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3869 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3870 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3871 i386fbsd4_sc_pc_offset): New variables.
3872 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3873 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3874 functions.
3875 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3876 functions.
3877 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3878 Modify the value of i386fbsd_sigtramp_start and
3879 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3880 i386fbsd_sigtramp_end.
3881 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3882 function.
3883
3884 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3885 define to i386-linux-tdep.h.
3886 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3887 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3888 defines.
3889 (i386_linux_register_name, i386_linux_register_byte,
3890 i386_linux_register_raw_size): Remove prototypes.
3891 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3892 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3893 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3894 TARGET_WRITE_PC): Remove defines.
3895 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3896 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3897 i386_linux_write_pc): Remove prototypes.
3898 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3899 (get_longjmp_target): Remove prototype.
3900 * i386-linux-tdep.h: New file.
3901 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3902 * i386-linux-tdep.c: Include "i386-tdep.h" and
3903 "i386-linux-tdep.h".
3904 (i386_linux_register_name, i386_linux_register_byte,
3905 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3906 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3907 Make static.
3908 (i386_linux_init_abi): New function.
3909 (_initialize_i386_linux_tdep): New function.
3910
3911 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3912 (i386_saved_pc_after_call): Remove prototype.
3913 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3914 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3915 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3916 (i386_register_name, i386_stab_reg_to_regnum,
3917 i386_dwarf_reg_to_regnum): Remove prototypes.
3918 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3919 SIZEOF_SSE_REGS): Remove defines.
3920 (REGISTER_BYTES): Remove define.
3921 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3922 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3923 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3924 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3925 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3926 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3927 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3928 (get_longjmp_target): Remove prototype.
3929 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3930 (sigtramp_saved_pc): Remove define.
3931 (i386v4_sigtramp_saved_pc): Remove prototype.
3932 * config/i386/tm-go32.h (FRAME_CHAIN,
3933 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3934 (i386go32_frame_saved_pc): Remove prototype.
3935 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3936 (get_longjmp_target): Remove prototype.
3937 * i386-tdep.h: Include "osabi.h".
3938 (enum i386_abi): Removed.
3939 (enum struct_return): New enum.
3940 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3941 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3942 sc_pc_offset members.
3943 (i386_gdbarch_register_os_abi): Remove prototype.
3944 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3945 I386_SSE_NUM_REGS): New defines.
3946 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3947 I386_SSE_SIZEOF_REGS): New defines.
3948 (i386_register_name, i386_register_byte, i386_register_raw_size):
3949 New prototypes.
3950 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3951 (i386bsd_sigtramp_saved_pc): New prototype.
3952 * i386-tdep.c: Don't include "elf-bfd.h".
3953 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3954 i386_frame_chain, i386_saved_pc_after_call): Make static.
3955 (i386_frame_saved_pc): Rewrite to call architecture dependent
3956 function to deal with signal handlers. Make static.
3957 (i386go32_frame_saved_pc): Removed.
3958 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3959 Removed.
3960 (i386_get_longjmp_target): New function.
3961 (default_struct_convention, pcc_struct_convention,
3962 reg_struct_convention, valid_conventions, struct_convention): New
3963 variables.
3964 (i386_use_struct_convention): New function.
3965 (i386v4_sigtramp_saved_pc): Renamed to
3966 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3967 (i386_pc_in_sigtramp): New function.
3968 (i386_abi_names): Removed.
3969 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3970 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3971 Removed.
3972 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3973 i386_gdbarch_register_os_abi): Removed.
3974 (struct i386_abi_handler): Removed.
3975 (i386_abi_handler_list): Removed.
3976 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3977 functions.
3978 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3979 i386_nw_init_abi): New functions.
3980 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3981 Use set_gdbarch_xxx() calls instead of relying on macros for a
3982 number of calls.
3983 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3984 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3985 Register the various architecture variants defined in this file.
3986
ad2f7632
DJ
39872002-06-14 Daniel Jacobowitz <drow@mvista.com>
3988
3989 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3990 (struct main_type): Remove arg_types member. Update comments for
3991 struct field.
3992 (TYPE_ARG_TYPES): Remove.
3993 (TYPE_FN_FIELD_ARGS): Update.
3994 (smash_to_method_type): Update prototype.
3995
3996 * c-typeprint.c (cp_type_print_method_args): Take method type
3997 instead of argument list. Use new argument layout. Simplify.
3998 (c_type_print_args): Use new argument layout. Simplify.
3999 (c_type_print_base): Update call to cp_type_print_method_args.
4000 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4001 argument; use die->type instead. Update call to
4002 smash_to_method_type.
4003 (read_structure_scope): Update call to dwarf2_add_member_fn.
4004 * gdbtypes.c (allocate_stub_method): Update comment.
4005 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4006 Use new argument layout.
4007 (check_stub_method): Use new argument layout. Don't count
4008 void as an argument.
4009 (print_arg_types): Update comments. Use new argument layout.
4010 (recursive_dump_type): Don't print arg_types member.
4011 * hpread.c (hpread_read_struct_type): Use new argument layout.
4012 (fixup_class_method_type): Likewise.
4013 (hpread_type_lookup): Likewise.
4014 * stabsread.c (read_type): Update calls to read_args and
4015 smash_to_method_type.
4016 (read_args): Use new argument layout. Simplify.
4017 * valops.c (typecmp): Use new argument layout. Update parameters
4018 and comments. Simplify.
4019 (hand_function_call): Use new argument layout.
4020 (search_struct_method): Update call to typecmp.
4021 (find_overload_match): Use new argument layout.
4022
6da02953
DJ
40232002-06-13 Daniel Jacobowitz <drow@mvista.com>
4024
4025 * NEWS: Mention multithreaded debug support for gdbserver.
4026
519b2366
DJ
40272002-06-13 Daniel Jacobowitz <drow@mvista.com>
4028
4029 * MAINTAINERS: Mention NEWS.
4030
6c0d6680
DJ
40312002-06-13 Daniel Jacobowitz <drow@mvista.com>
4032
4033 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4034 (struct mips_objfile_private, compare_pdr_entries): New.
4035 (non_heuristic_proc_desc): Read the ".pdr" section if it
4036 is present.
4037
6529d2dd
AC
40382002-06-12 Andrew Cagney <ac131313@redhat.com>
4039
4040 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4041 (arm_debug): New static variable.
4042 (_initialize_arm_tdep): Add ``set debug arm'' command.
4043
26216b98
AC
40442002-06-12 Andrew Cagney <ac131313@redhat.com>
4045
4046 * Makefile.in (sim_arm_h): Define.
4047 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4048 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4049 (arm_register_sim_regno): New function, map an internal REGNUM
4050 onto a simulator register number.
4051 (arm_gdbarch_init): Set register_sim_regno.
4052
814b3ba0
AH
40532002-06-09 Aldy Hernandez <aldyh@redhat.com>
4054
4055 * MAINTAINERS: Add self.
4056
475b0867
JB
40572002-06-11 Jim Blandy <jimb@redhat.com>
4058
919d772c
JB
4059 * source.c (source_info): Mention whether the symtab has
4060 information about preprocessor macros.
4061
475b0867
JB
4062 Call the command `info macro', not `show macro'.
4063 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4064 Fix error message.
4065 (_initialize_macrocmd): Register `info_macro_command' in
4066 `infolist', not `showlist'.
4067
9e364162
DJ
40682002-06-11 Daniel Jacobowitz <drow@mvista.com>
4069
4070 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4071 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4072 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4073 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4074 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4075 unconditionally.
4076 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4077 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4078 (_initialize_mips_tdep): Remove dead code.
4079 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4080 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4081 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4082 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4083 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4084 MIPS_LAST_FP_ARG_REGNUM): Remove.
4085
23aa4c72
ML
40862002-06-11 Michal Ludvig <mludvig@suse.cz>
4087
4088 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4089 (unwind_tmp_obstack_free, parse_frame_info)
4090 (update_context, cfi_read_fp, cfi_write_fp)
4091 (cfi_frame_chain, cfi_init_extra_frame_info)
4092 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4093 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4094
70eb15a4
CV
40952002-06-11 Corinna Vinschen <vinschen@redhat.com>
4096
4097 * v850-tdep.c (v850_type_is_scalar): New function.
4098 (v850_use_struct_convention): Match current gcc implementation
4099 as close as possible.
4100 (v850_push_arguments): Fix stack_offset handling. Don't write
4101 struct_addr into register. This is done by v850_store_struct_return.
4102 (v850_extract_return_value): Care for structs.
4103 (v850_store_return_value): Ditto.
4104 (v850_store_struct_return): Actually write address.
4105
482a4d06
ML
41062002-06-11 Michal Ludvig <mludvig@suse.cz>
4107
4108 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4109 without debug information too.
4110
d855c300
AC
41112002-06-10 Andrew Cagney <ac131313@redhat.com>
4112
4113 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4114 Make multi-arch pure.
4115 * gdbarch.h, gdbarch.c: Re-generate.
4116 * arm-tdep.c (arm_print_float_info): Update.
4117 * arch-utils.h (default_print_float_info): Update.
4118 * arch-utils.c (default_print_float_info): Update.
4119 * infcmd.c (float_info): Update call.
4120
dd12a101
AC
41212002-06-10 Andrew Cagney <ac131313@redhat.com>
4122
4123 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4124 the front of the initialize list.
4125
101dcfbe
AC
41262002-06-10 Andrew Cagney <ac131313@redhat.com>
4127
4128 * infrun.c (struct inferior_status): Replace fields
4129 selected_frame_address and selected_level with field
4130 selected_frame_id.
4131 (save_inferior_status): Update. Use get_frame_id.
4132 (struct restore_selected_frame_args): Delete.
4133 (restore_selected_frame): Update. Use frame_find_by_id.
4134 (restore_inferior_status): Update.
4135
4136 * breakpoint.h (struct breakpoint): Change type of
4137 watchpoint_frame to frame_id.
4138 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4139 call to get_current_frame.
4140 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4141 get_current_frame.
4142 (watchpoint_check): Use frame_find_by_id.
4143
4144 * frame.h (record_selected_frame): Delete declaration.
4145 * stack.c (record_selected_frame): Delete function.
4146
4147 * frame.h (struct frame_id): Define.
4148 (get_frame_id): Declare.
4149 (frame_find_by_id): Declare.
4150 * frame.c (frame_find_by_id): New function.
4151 (get_frame_id): New function.
4152
304270b6
AV
41532002-06-10 Andrey Volkov <avolkov@transas.com>
4154
4155 * ser-e7kpc.c: Fix duplicated define and call of
4156 _initialize_ser_e7000pc
4157
2f2cf184
DJ
41582002-06-09 Daniel Jacobowitz <drow@mvista.com>
4159
4160 * signals/signals.c (target_signal_from_host): Fix #ifdef
4161 SIGRTMIN case.
4162 (do_target_signal_to_host): Likewise.
4163
caaa3122
DJ
41642002-06-09 Daniel Jacobowitz <drow@mvista.com>
4165
4166 * mips-tdep.c (mips_find_abi_section): New function.
4167 (mips_gdbarch_init): Call it.
4168
6ac5df3a
MK
41692002-06-09 Mark Kettenis <kettenis@gnu.org>
4170
4171 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4172 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4173 after Andrew's 2002-06-08 gdbarch change.
4174
82ea117a
MK
41752002-06-09 Mark Kettenis <kettenis@gnu.org>
4176
4177 * i386-linux-nat.c (suppy_gregset): Don't supply
4178 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4179 register cache.
4180 (fill_gregset): Don't fetch it under the same circumstances.
4181
3c25f8c7
AC
41822002-06-09 Andrew Cagney <cagney@redhat.com>
4183
4184 * Makefile.in (callback_h): Define.
4185 (remote_sim_h): Update path to remote-sim.h.
4186 (remote-rdp.o): Add $(callback_h).
4187 (remote-sim.o): Use $(callback_h).
4188 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4189 * remote-rdp.c: Include "gdb/callback.h".
4190
1029b7fa
MK
41912002-06-09 Mark Kettenis <kettenis@gnu.org>
4192
4193 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4194 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4195
616675d3
AC
41962002-06-08 Andrew Cagney <ac131313@redhat.com>
4197
a3efda28
AC
4198 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4199 * rdi-share/serpardr.c: Ditto.
4200 * rdi-share/unixcomm.c: Ditto.
4201 * rdi-share/serdrv.c: Ditto.
4202 * rdi-share/hostchan.h: Ditto.
4203 * rdi-share/hostchan.c: Ditto.
4204 * rdi-share/host.h: Ditto.
4205 * rdi-share/devsw.c: Ditto.
4206
c5f10366
AC
4207 * objfiles.h: Change type of obj_private to void pointer.
4208 * pa64solib.c: Update copyright. Don't include "assert.h", use
4209 strcmp instead of STREQ, use LONGEST, do not use PTR
4210 * somsolib.c: Ditto.
4211
616675d3
AC
4212 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4213 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4214 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4215
e4b415d9
AC
42162002-06-08 Andrew Cagney <ac131313@redhat.com>
4217
4218 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4219 (default_get_saved_register): Delete function.
4220 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4221 generic_unwind_get_saved_register.
4222 * gdbarch.h, gdbarch.c: Re-generate.
4223
ca0d0b52
AC
42242002-06-08 Andrew Cagney <ac131313@redhat.com>
4225
4226 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4227 generic_func_frame_chain_valid.
4228 * gdbarch.h, gdbarch.c: Re-generate.
4229 * blockframe.c (generic_func_frame_chain_valid): Only check
4230 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4231 passing FP to PC_IN_CALL_DUMMY.
4232 Fix PR gdb/360.
4233
76860b5f
AC
42342002-06-08 Andrew Cagney <ac131313@redhat.com>
4235
4236 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4237 (register_gdbarch_data): Initialize init_p.
4238 (gdbarch_data): Initialize data pointer using the init function.
4239 (init_gdbarch_data): Delete function.
4240 (gdbarch_update_p): Update.
4241 (initialize_non_multiarch): Update.
4242 (struct gdbarch): Add field initialized_p.
4243 * gdbarch.h, gdbarch.c: Re-generate.
4244
8dda9770
ML
42452002-06-07 Michal Ludvig <mludvig@suse.cz>
4246
4247 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4248 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4249 better do the things actually here.
4250 * x86-64-tdep.c (x86_64_register_name2nr): New.
4251 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4252 (x86_64_gdbarch_init): Respect the above change.
4253 * x86-64-tdep.h (x86_64_register_name2nr)
4254 (x86_64_register_nr2name): Add prototypes.
4255 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4256
3d79a47c
MS
42572002-06-06 Michael Snyder <msnyder@redhat.com>
4258
7bd91a28
MS
4259 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4260 Delete extra braces and re-indent.
4261 (d10v_store_return_value): Char return values
3d79a47c
MS
4262 must be shifted over by one byte in R0.
4263 (d10v_extract_return_value): Delete extra braces, re-indent.
4264
095a4c96
EZ
42652002-06-06 Elena Zannoni <ezannoni@redhat.com>
4266
4267 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4268 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4269 (d10v_integer_to_address): Rewrite.
4270 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4271 the d10v specific functions which take care of converting to the
4272 correct space.
4273
e8a77ca4
EZ
42742002-06-06 Elena Zannoni <ezannoni@redhat.com>
4275
4276 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4277 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4278
4f2e4a4f
AC
42792002-06-02 Andrew Cagney <ac131313@redhat.com>
4280
4281 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4282 includes.
4283 * config/tm-linux.h: Ditto.
4284 * config/alpha/tm-alphalinux.h: Ditto.
4285 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4286 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4287 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4288 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4289 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4290 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4291 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4292 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4293 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4294 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4295 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4296 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4297 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4298 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4299 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4300 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4301 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4302 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4303 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4304 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4305 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4306 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4307 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4308 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4309 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4310 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4311 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4312 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4313 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4314 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4315 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4316 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4317 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4318 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4319 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4320 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4321 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4322
ae2ab2ce
AS
43232002-05-04 Aidan Skinner <aidan@velvet.net>
4324
4325 * ada-exp.tab.c: New file
4326 * ada-exp.y: New file
4327 * ada-lang.c: New file
4328 * ada-lang.h: New file
4329 * ada-lex.c: New file
4330 * ada-lex.l: New file
4331 * ada-tasks.c: New file
4332 * ada-typeprint.c: New file
4333 * ada-valprint.c: New file
4334
0ddd0135
JT
43352002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4336
4337 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4338 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4339
750fbacc
JT
43402002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4341
4342 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4343 insetead of ppc-linux-tdep.o.
4344 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4345 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4346
df94e18a
AC
43472002-06-02 Andrew Cagney <ac131313@redhat.com>
4348
4349 2002-05-07 Christian Groessler <chris@groessler.org>
4350 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4351 bit register contents for little endian hosts.
4352
1a38ab75
AC
43532002-06-01 Andrew Cagney <ac131313@redhat.com>
4354
4355 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4356 any maintainer.
4357
8b1632ac
AC
43582002-06-01 Andrew Cagney <ac131313@redhat.com>
4359
4360 * gdbarch.h: Regenerate.
4361
627054c8
AC
43622002-06-01 Andrew Cagney <ac131313@redhat.com>
4363
4364 * MAINTAINERS: Add everyone to write-after-approval list.
4365
4f460812
AC
43662002-06-01 Andrew Cagney <ac131313@redhat.com>
4367
4368 * stack.c (frame_info): Use frame_register_unwind instead of
4369 saved_regs. Mention when the SP is on the stack or in a register.
4370
4371 * frame.h (frame_register_unwind_ftype): Define. Document.
4372 (struct frame_info): Add field register_unwind and
4373 register_unwind_cache.
4374 (frame_register_unwind): Declare.
4375 (generic_unwind_get_saved_register): Declare.
4376
4377 * frame.c (frame_register_unwind): New function.
4378 (generic_unwind_get_saved_register): New function.
4379
4380 * blockframe.c (generic_call_dummy_register_unwind): New function.
4381 (frame_saved_regs_register_unwind): New function.
4382 (set_unwind_by_pc): New function.
4383 (create_new_frame): New function.
4384 (get_prev_frame): New function.
4385
de888f76
AC
43862002-05-30 Andrew Cagney <ac131313@redhat.com>
4387
4388 * a29k-share/: Delete directory.
4389 * remote-vx29k.c: Delete file.
4390
2f2c3626
JT
43912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4392
4393 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4394 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4395
9ce5c36a
JT
43962002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4397
4398 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4399 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4400 (sparc64nbsd-nat.o)
4401 (sparcnbsd-nat.o)
4402 (sparcnbsd-tdep.o): New dependency lists.
4403 * NEWS: Note new UltraSPARC NetBSD native configuration.
4404 * configure.host (sparc64-*-netbsd*): New host.
4405 * configure.tgt (sparc-*-netbsdelf*)
4406 (sparc-*-netbsd*): Set gdb_target to nbsd.
4407 (sparc64-*-netbsd*): New target.
4408 * sparc64nbsd-nat.c: New file.
4409 * sparcnbsd-nat.c: New file.
4410 * sparcnbsd-tdep.c: New file.
4411 * sparcnbsd-tdep.h: New file.
4412 * config/sparc/nbsd.mt: New file.
4413 * config/sparc/nbsd64.mh: New file.
4414 * config/sparc/nbsd64.mt: New file.
4415 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4416 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4417 (HOST_IPC): Remove.
4418 * config/sparc/nbsdaout.mt: Remove.
4419 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4420 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4421 (HOST_IPC): Remove.
4422 * config/sparc/nbsdelf.mt: Remove.
4423 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4424 sparc-nat.c compatiblity defines.
4425 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4426 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4427 * config/sparc/tm-nbsd64.h: New file.
4428 * config/sparc/tm-nbsdaout.h: Remove.
4429 * config/sparc/xm-nbsd.h: Remove.
4430
ef3cf062
JT
44312002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4432
4433 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4434 * sparc-tdep.c: Include osabi.h.
4435 (gdbarch_tdep): Add osabi member.
4436 (_initialize_sparc_tdep): Use gdbarch_register.
4437 (sparc_gdbarch_init): Use generic OS ABI framework.
4438 (sparc_dump_tdep): New function.
4439
ee8ff470
KB
44402002-05-30 Kevin Buettner <kevinb@redhat.com>
4441
4442 * corefile.c (do_captured_read_memory_integer): Return non-zero
4443 result.
4444 (safe_read_memory_integer): Copy result of memory read when
4445 status is non-zero. Also, add comments.
4446
7b112f9c
JT
44472002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4448
4449 * Makefile.in (ppc_tdep_h): Define.
4450 (ppc-linux-nat.o)
4451 (ppc-linux-tdep.o)
4452 (rs6000-tdep.o): Use $(ppc_tdep_h).
4453 (ppc-sysv-tdep.o)
4454 (ppcnbsd-nat.o)
4455 (ppcnbsd-tdep.o): New dependency lists.
4456 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4457 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4458 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4459 (ppc_sysv_abi_broken_use_struct_convention)
4460 (ppc_sysv_abi_use_struct_convention)
4461 (ppc_sysv_abi_push_arguments): Move to...
4462 * ppc-sysv-tdep.c: ...here.
4463 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4464 * rs6000-tdep.c (process_note_abi_tag_sections)
4465 (get_elfosabi): Remove.
4466 (rs6000_gdbarch_init): Use generic OS ABI framework.
4467 (rs6000_dump_tdep): New function.
4468 (_initialize_rs6000_tdep): Use gdbarch_register.
4469 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4470 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4471 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4472 of ppc-linux-tdep.o.
4473 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4474 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4475 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4476 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4477 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4478 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4479
480dd42a
JB
44802002-05-29 Jim Blandy <jimb@redhat.com>
4481
4482 * macroscope.c (default_macro_scope): Put `void' in empty argument
4483 list.
4484
4182591f
AC
44852002-05-29 Andrew Cagney <ac131313@redhat.com>
4486
4487 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4488 * arch-utils.c: Include "sim-regno.h".
4489 * gdbarch.sh: Don't include "sim-regno.h".
4490 * gdbarch.h, gdbarch.c: Regenerate.
4491 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4492 here.
4493 * arch-utils.h (legacy_register_sim_regno): To here.
4494 * remote-sim.c (legacy_register_sim_regno): Move function from
4495 here.
4496 * arch-utils.c (legacy_register_sim_regno): To here.
4497
8238d0bf
AC
44982002-05-28 Andrew Cagney <ac131313@redhat.com>
4499
4500 * sim-regno.h: New file.
4501 * Makefile.in (sim_regno_h): Define.
4502 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4503 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4504 (legacy_register_sim_regno): New function.
4505 (one2one_register_sim_regno): New function.
4506 (gdbsim_fetch_register): Rewrite.
4507 (gdbsim_store_register): Only store a register when
4508 REGISTER_SIM_REGNO is valid.
4509 * d10v-tdep.c: Include "sim-regno.h".
4510 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4511 (d10v_ts3_register_sim_regno): Ditto.
4512 * gdbarch.sh: Include "sim-regno.h".
4513 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4514 * gdbarch.h, gdbarch.c: Regenerate.
4515 * arch-utils.h (default_register_sim_regno): Delete declaration.
4516 * arch-utils.c (default_register_sim_regno): Delete function.
4517
485721b1
JT
45182002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4519
4520 * ppcnbsd-nat.c: Rewrite.
4521 * ppcnbsd-tdep.c: New file.
4522 * ppcnbsd-tdep.h: New file.
4523 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4524 solib.o, and solib-svr4.o.
4525 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4526 nbsd-tdep.o, and corelow.o.
4527
697f244d
AC
45282002-05-28 Andrew Cagney <ac131313@redhat.com>
4529
4530 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4531 `tr' and `sed'. Mention that `broken' targets are not expected to
4532 build.
4533
f08caad1 45342002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4535
4536 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4537 Let PC point right after the prologue before looking up symbols.
4538
3139facc
MH
45392002-05-27 Martin M. Hunt <hunt@redhat.com>
4540
4541 * i386-tdep.c (i386_register_virtual_type): Return
4542 builtin_type_vec128i for SSE registers.
4543
4544 * gdbtypes.h (builtin_type_vec128i): Declare.
4545
4546 * gdbtypes.c (build_builtin_type_vec128i): New function.
4547 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4548 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4549 (build_gdbtypes): Initialize new builtin vector types.
4550 (_initialize_gdbtypes): Register new vector types with gdbarch.
4551
6e3ba3b8
JT
45522002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4553
4554 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4555 since it has been multi-arch'd.
4556 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4557 Move Alpha and VAX multi-arch news entries to same section
4558 as other multi-arch news.
4559
93d5585d
JT
45602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4561
4562 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4563 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4564 static. Rename some register numbers to put them in ns32k-tdep
4565 private namespace.
4566 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4567 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4568 functions.
4569 (_initialize_ns32k_tdep): Use gdbarch_register.
4570 * ns32k-tdep.h: New file.
4571 * ns32knbsd-tdep.c: New file.
4572 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4573 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4574 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4575 REGISTER_BYTES, REGISTER_BYTE): Remove.
4576 * config/ns32k/tm-ns32k.h: New file.
4577 * config/ns32k/tm-umax.h: Remove.
4578
efb2c70e
JT
45792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4580
4581 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4582 ns32k_store_struct_return, ns32k_extract_return_value,
4583 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4584 functions.
4585 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4586 ns32k_saved_pc_after_call.
4587 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4588 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4589 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4590 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4591 ns32k_extract_struct_value_address.
4592
7bcc927b
JT
45932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4594
4595 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4596 ns32k_fix_call_dummy): New.
4597 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4598 ns32k_call_dummy_words.
4599 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4600 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4601 CALL_DUMMY_NARGS): Remove.
4602 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4603
78f9d765
JT
46042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4605
4606 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4607 ns32k_frame_saved_pc, ns32k_frame_args_address,
4608 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4609 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4610 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4611 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4612 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4613 (BREAKPOINT): Remove..
4614 (FRAME_CHAIN): Define as ns32k_frame_chain.
4615 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4616 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4617 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4618 (FRAME_FIND_SAVED_REGS): Remove.
4619 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4620 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4621 (POP_FRAME): Define as ns32k_pop_frame.
4622
f2c762e0
JT
46232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4624
4625 * ns32k-tdep.c (ns32k_register_byte_32082,
4626 ns32k_register_byte_32382, ns32k_register_raw_size,
4627 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4628 functions.
4629 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4630 ns32k_register_byte_32382.
4631 * config/ns32k/tm-umax.h: Update copyright years.
4632 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4633 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4634 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4635 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4636 (ns32k_get_enter_addr): Fix prototype.
4637
af137673
JT
46382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4639
4640 * ns32k-tdep.c: Update copyright years.
4641 (ns32k_register_name_32082): New function.
4642 (ns32k_register_name_32382): Ditto.
4643 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4644 (REGISTER_NAME): Define as ns32k_register_name_32382.
4645 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4646 (REGISTER_NAME): Define as ns32k_register_name_32082.
4647
a8bc7b56
JB
46482002-05-24 Jim Blandy <jimb@redhat.com>
4649
4650 * dwarf2read.c (free_line_header): Use xfree, not free.
4651
83a45910
JT
46522002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4653
4654 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4655 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4656
0db71247
AC
46572002-05-23 Andrew Cagney <ac131313@redhat.com>
4658
4659 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4660
b9e5e4dd
AC
46612002-05-23 Andrew Cagney <ac131313@redhat.com>
4662
4663 From Ross Alexander at NEC Europe:
4664 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4665
de530e84
MS
46662002-05-23 Michael Snyder <msnyder@redhat.com>
4667
4668 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4669 for input, rather than parse_and_eval_address.
4670
b91b96f4
AC
46712002-05-23 Andrew Cagney <ac131313@redhat.com>
4672
4673 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4674 * Makefile.in (sim_d10v_h): Update definition.
4675
8b279e7a
AC
46762002-05-24 Andrew Cagney <cagney@redhat.com>
4677
4678 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4679 change `2002-05-22 Michael Snyder' below.
4680 (d10v_push_arguments): Ditto.
4681 (d10v_extract_return_value): Ditto.
4682
0a3d0425
JB
46832002-05-23 Jim Blandy <jimb@redhat.com>
4684
4685 * macrotab.c (check_for_redefinition): Don't complain if the new
4686 definition is the same as the previous one. Take more arguments
4687 to allow the comparison.
4688 (macro_define_object, macro_define_function): Pass more arguments
4689 to check_for_redefinition.
4690
78eac43e
MS
46912002-05-22 Michael Snyder <msnyder@redhat.com>
4692
4693 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4694 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4695 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4696 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4697 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4698 Add a temp variable to save a call (and a memory read).
4699 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4700 if possible (so that PC_IN_CALL_DUMMY will work).
4701
9bc1edb8
CV
47022002-05-22 Corinna Vinschen <vinschen@redhat.com>
4703
4704 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4705
005ef3d2
ML
47062002-05-22 Michal Ludvig <mludvig@suse.cz>
4707
4708 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4709 fde->cie_ptr.
4710 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4711 (dwarf2_build_frame_info): Add offset to fde->initial_location
4712 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4713 (execute_stack_op): Change type of 'result' from ULONGEST to
4714 CORE_ADDR.
005ef3d2 4715
fcf4f891
JT
47162002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4717
4718 * config/alpha/tm-nbsd.h: Include solib.h.
4719
cfef91e4
JT
47202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4721
4722 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4723 assumptions about the host's byte order.
4724
9964235a
JT
47252002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4726
4727 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4728 to dependency list.
4729 * alphanbsd-tdep.c: Include solib-svr4.h.
4730 * shnbsd-tdep.c: Ditto.
4731
9eeef8ef
JT
47322002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4733
4734 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4735 nbsd-tdep.h to dependency list.
4736 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4737 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4738 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4739 nbsdaout.mh and nbsdelf.mh consistently.
4740 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4741 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4742 nbsdaout.mt and nbsdelf.mh consistently.
4743 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4744 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4745 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4746 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4747 a.out shared library stuff from here...
4748 * config/nm-nbsdaout.h: ...to here.
4749 * config/tm-nbsd.h: Remove.
4750 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4751 * config/arm/nbsd.mh: Remove.
4752 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4753 nbsd-tdep.o.
4754 * config/arm/nbsdaout.mh: New file.
4755 * config/arm/nbsdelf.mh: New file.
4756 * config/arm/nm-nbsdaout.h: New file.
4757 * config/i386/nbsd.mh: Remove.
4758 * config/i386/nbsd.mt: Remove.
4759 * config/i386/nbsdaout.mh: New file.
4760 * config/i386/nbsdaout.mt: New file.
4761 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4762 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4763 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4764 i386_register_u_addr): Remove.
4765 * config/i386/nm-nbsdaout.h: New file.
4766 * config/i386/nm-nbsdelf.h: Remove.
4767 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4768 (USE_STRUCT_CONVENTION): Remove.
4769 * config/i386/tm-nbsdaout.h: New file.
4770 * config/i386/tm-nbsdelf.h: Remove.
4771 * config/m68k/nbsd.mh: Remove.
4772 * config/m68k/nbsd.mt: Remove.
4773 * config/m68k/nbsdaout.mh: New file.
4774 * config/m68k/nbsdaout.mt: New file.
4775 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4776 * config/m68k/nm-nbsdaout.h: New file.
4777 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4778 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4779 * config/ns32k/nbsd.mh: Remove.
4780 * config/ns32k/nbsd.mt: Remove.
4781 * config/ns32k/nbsdaout.mh: New file.
4782 * config/ns32k/nbsdaout.mt: New file.
4783 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4784 * config/ns32k/nm-nbsdaout.h: New file.
4785 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4786 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4787 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4788 (SVR4_SHARED_LIBS): Remove.
4789 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4790 * config/sparc/nbsd.mh: Remove.
4791 * config/sparc/nbsd.mt: Remove.
4792 * config/sparc/nbsdaout.mh: New file.
4793 * config/sparc/nbsdaout.mt: New file.
4794 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4795 * config/sparc/nbsdelf.mt: New file.
4796 * config/sparc/nm-nbsdaout.h: New file.
4797 * config/sparc/nm-nbsdelf.h: Remove.
4798 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4799 * config/sparc/tm-nbsdaout.h: New file.
4800
257ce470
JT
48012002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4802
4803 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4804 mipsnbsd-tdep.c
4805 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4806
76a6d5fe
JT
48072002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4808
4809 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4810 shnbsd-nat.c.
4811 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4812
45888261
JT
48132002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4814
4815 * NEWS: Note new MIPS NetBSD native configuration.
4816 * configure.host (mips*-*-netbsd*): New host.
4817 * configure.tgt (mips*-*-netbsd*): New target.
4818 * mipsnbsd-nat.c: New file.
4819 * mipsnbsd-tdep.c: New file.
4820 * mipsnbsd-tdep.h: New file.
4821 * config/mips/nbsd.mh: New file.
4822 * config/mips/nbsd.mt: New file.
4823 * config/mips/nm-nbsd.h: New file.
4824 * config/mips/tm-nbsd.h: New file.
4825
70f80edf
JT
48262002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4827
4828 * Makefile.in (SFILES): Add osabi.c.
4829 (COMMON_OBS): Add osabi.o.
4830 (osabi.o): New dependency list.
4831 * osabi.c: New file.
4832 * osabi.h: New file.
4833 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4834
4835 * Makefile.in (alpha_tdep_h): Define and use instead of
4836 alpha-tdep.h.
4837 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4838 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4839 Remove.
4840 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4841 * alpha-tdep.h: Include osabi.h.
4842 (alpha_abi): Remove.
4843 (gdbarch_tdep): Use generic OS ABI framework.
4844 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4845 gdbarch_register_osabi.
4846 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4847 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4848 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4849
4850 * Makefile.in (sh_tdep_h): Add osabi.h.
4851 * sh-tdep.h (sh_osabi): Remove.
4852 (gdbarch_tdep): Use generic OS ABI framework.
4853 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4854 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4855 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4856 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4857
4858 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4859 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4860 gdbarch_register_osabi.
4861 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4862 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4863 (get_elfosabi): Rename to...
4864 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4865 ABI framework support routines.
4866 (arm_gdbarch_init): Use generic OS ABI framework.
4867 (arm_dump_tdep): Likewise.
4868 (_initialize_arm_tdep): Likewise.
4869 * arm-tdep.h: Include osabi.h.
4870 (arm_abi): Remove.
4871 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4872 osabi member.
4873 (arm_gdbarch_register_os_abi): Remove prototype.
4874 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4875 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4876
4877 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4878 * mips-tdep.c: Include osabi.h.
4879 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4880 OS ABI framework.
4881
d194345b
KH
48822002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4883
4884 * h8300-tdep.c: Fix formatting.
4885
70c6b0d1
EZ
48862002-05-20 Elena Zannoni <ezannoni@redhat.com>
4887
4888 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4889 printing vector registers.
4890
165b8e33
AC
48912002-05-19 Andrew Cagney <ac131313@redhat.com>
4892
4893 From Fernando Nasser:
4894 * remote.c (remote_async_open_1): Re-throw the exception when the
4895 connection fails.
4896 (remote_cisco_open): Ditto.
4897 (remote_open_1): Ditto.
4898
36918e70
AC
48992002-05-19 Andrew Cagney <ac131313@redhat.com>
4900
4901 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4902 (remote_start_remote): Add uiout parameter. Pass through to
4903 remote_start_remote_dummy.
4904 (remote_open_1): Use catch_exception instead of catch_errors.
4905 (remote_async_open_1): Ditto.
4906 (remote_cisco_open): Ditto.
4907
ae44c0c4
AC
49082002-05-19 Andrew Cagney <ac131313@redhat.com>
4909
4910 * remote.c (remote_start_remote): Replace PTR with void pointer.
4911 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4912 static.
4913
8efe637d
AC
49142002-05-18 Andrew Cagney <ac131313@redhat.com>
4915
4916 * gdb_indent.sh: Allow the script to be run in the sim directory.
4917
2f1b5984
MK
49182002-05-18 Mark Kettenis <kettenis@gnu.org>
4919
f0f625e2
MK
4920 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4921 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4922
2f1b5984
MK
4923 * corelow.c (core_open): Only call set_gdbarch_from_file if
4924 exec_bfd is NULL.
4925
fc974602
AV
49262002-05-17 Andrey Volkov <avolkov@transas.com>
4927
4928 * h8300-tdep.c: Add support of EXR register
4929 * config/h8300/tm-h8300.h: Ditto.
4930
906709f4
AV
49312002-05-17 Andrey Volkov <avolkov@transas.com>
4932
4933 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4934
6e591d68
AV
49352002-05-17 Andrey Volkov <avolkov@transas.com>
4936
4937 * h8300-tdep.c: Change literal regnums to REGNO.
4938
84f0252a
JB
49392002-05-17 Jim Blandy <jimb@redhat.com>
4940
e0e9281e
JB
4941 * NEWS: Note addition of macro support.
4942
84f0252a
JB
4943 Expand preprocessor macros in C expressions.
4944 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4945 (scan_macro_expansion, scanning_macro_expansion,
4946 finished_macro_expansion): New function declarations.
4947 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4948 variable declarations.
4949 * parser-defs.h (expression_context_pc): New declaration.
4950 * parse.c (expression_context_pc): New variable.
4951 (parse_exp_1): Set expression_context_pc, as well as
4952 expression_context_block.
4953 * c-exp.y (yylex): If we're not already reading the result of a
4954 macro expansion, try to macro-expand the next token. When we're
4955 done scanning a macro expansion, switch back to the mainline text.
4956 Commas and `if's in a macro's expansion don't terminate the input.
4957 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4958 (macro_original_text, macro_expanded_text,
4959 expression_macro_lookup_func, expression_macro_lookup_baton): New
4960 variables.
4961 (scan_macro_expansion, scanning_macro_expansion,
4962 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4963 c_preprocess_and_parse): New functions.
4964 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4965 c_preprocess_and_parse, instead of c_parse.
4966 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4967 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4968
1c509ca8
JR
4969Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4970
4971 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4972 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4973 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4974
2250ee0c
CV
49752002-05-17 Corinna Vinschen <vinschen@redhat.com>
4976
4977 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4978
ab3b8126
JT
49792002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4980
4981 * Makefile.in (sh_tdep_h): Define and use.
4982 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4983 register enum): Move to...
4984 * * sh-tdep.h: ...here.
4985 * sh-tdep.c: Include sh-tdep.h.
4986 * sh3-rom.c: Likewise.
4987 * shnbsd-tdep.c: Likewise.
4988
ed9d4749
MS
49892002-05-16 Michael Snyder <msnyder@redhat.com>
4990
4991 * arm-tdep.c: Spelling fix in comment.
4992
2e276125
JB
49932002-05-16 Jim Blandy <jimb@redhat.com>
4994
6821892e
JB
4995 Add commands for manually expanding macros and showing their
4996 definitions.
4997 * macrocmd.c, macroscope.c, macroscope.h: New files.
4998 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4999 (macroscope_h): New variable.
5000 (HFILES_NO_SRCDIR): Add macroscope.h.
5001 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5002 (macroscope.o, macrocmd.o): New rules.
5003
2e276125
JB
5004 Teach the Dwarf 2 reader to read macro information.
5005 * dwarf2read.c: #include "macrotab.h".
5006 (dwarf_macinfo_buffer): New variable.
5007 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5008 dwarf_macinfo_size.
5009 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5010 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5011 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5012 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5013 dwarf2_macro_spaces_in_definition): New complaints.
5014 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5015 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5016 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5017 the partial symbol table.
5018 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5019 from what's recorded in the partial symbol table.
5020 (read_file_scope): If the compilation unit has a
5021 `DW_AT_macro_info' attribute, read its macro information.
5022 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5023
2f53fe6c
DJ
50242002-05-16 Daniel Jacobowitz <drow@mvista.com>
5025
5026 Fix PR gdb/546
5027 * ser-tcp.c: Don't include <netinet/udp.h>.
5028
2be99286
SC
50292002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5030
5031 * MAINTAINERS: Update my email address.
5032
c9af212b 50332002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5034
5035 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5036 include file of the same name.
5037
bf5f1a52
CV
50382002-05-16 Corinna Vinschen <vinschen@redhat.com>
5039
5040 * configure.tgt: Mark v850 as multi-arched.
5041 * config/v850/tm-v850.h: Remove file.
5042 * config/v850/v850.mt: Eliminate TM_FILE.
5043
435e042a
CV
50442002-05-16 Corinna Vinschen <vinschen@redhat.com>
5045
5046 * v850-tdep.c: Full multi-arch.
5047 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5048 Define GDB_MULTI_ARCH to 2.
5049
9819c6c8
PM
50502002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5051
5052 * p-exp.y (current_type): New static variable.
5053 Carries the type of the expression at the position that is parsed.
5054 (push_current_type, pop_current_type): Two new functions. Used
5055 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5056 (search_field): New static variable. Set to one after parsing a point
5057 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5058 (FIELDNAME): New token. After a point only a token belonging to
5059 current_type type definition is allowed.
5060 (all over token rules): reset and change current_type according
5061 to rules.
5062 (exp '[' rule): insert implicit array index field if
5063 exp is a pascal string type.
5064
3a06899a
CV
50652002-05-16 Corinna Vinschen <vinschen@redhat.com>
5066
5067 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5068 frame info. Use frame_info's saved_regs instead of matching member
5069 in extra_frame_info throughout.
5070 (v850_frame_init_saved_regs): New function.
5071 (v850_init_extra_frame_info): Move most functionality into
5072 v850_frame_init_saved_regs().
5073 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5074 (v850_frame_find_saved_regs): Remove declaration.
5075 (FRAME_FIND_SAVED_REGS): Remove definition.
5076 (v850_frame_init_saved_regs): Add declaration.
5077 (FRAME_INIT_SAVED_REGS): Add definition.
5078
6ed14b0e
CV
50792002-05-16 Corinna Vinschen <vinschen@redhat.com>
5080
5081 * v850-tdep.c: Begin multi-arch'ing v850.
5082 (v850_target_architecture_hook): Remove function.
5083 (v850_gdbarch_init): New function. Add code previously in
5084 v850_target_architecture_hook().
5085 (_initialize_v850_tdep): Don't set target_architecture_hook.
5086 Call register_gdbarch_init() instead.
5087
42725910
DJ
50882002-05-16 Daniel Jacobowitz <drow@mvista.com>
5089
5090 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5091 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5092 (fixup_class_method_type): Likewise.
5093
99d9066e
JB
50942002-05-15 Jim Blandy <jimb@redhat.com>
5095
5096 Add macro structures to GDB's symbol tables. Nobody puts anything
5097 in them yet.
5098 * symtab.h (struct symtab): New member: `macro_table'.
5099 * buildsym.h (pending_macros): New global variable.
5100 * buildsym.c: #include "macrotab.h".
5101 (buildsym_init): Initialize `pending_macros'.
5102 (end_symtab): If we found macro information while reading a CU's
5103 debugging info, do build a symtab structure for it. Make the
5104 symtab point to the macro information, and clear the
5105 `pending_macros' pointer which held it while we were reading the
5106 debug info.
5107 (really_free_pendings): Free any pending macro table.
5108 * objfiles.h (struct objfile): New member: `macro_cache'.
5109 * objfiles.c (allocate_objfile): Set allocate and free functions
5110 for the macro cache's objstack.
5111 (free_objfile): Empty the macro cache's obstack.
5112 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5113 set new allocate and free functions for it.
5114 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5115 free functions for the macro cache's objstack. (Why is this
5116 function building its own objfile?)
5117 * symmisc.c (print_objfile_statistics): Print statistics on the
5118 macro bcache.
5119 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5120
c899585b
RE
51212002-05-15 Richard Earnshaw <rearnsha@arm.com>
5122
5123 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5124 (REGISTER_U_ADDR): Delete definition.
5125 (arm_register_u_addr): Delete declaration.
5126
a6cdd8c5
RE
51272002-05-15 Richard Earnshaw <rearnsha@arm.com>
5128
5129 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5130 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5131
c97dcfc7
AC
51322002-05-14 Andrew Cagney <ac131313@redhat.com>
5133
5134 * regcache.c (register_valid): Revise comments refering to "Not
5135 available" and "unavailable".
5136 * frame.c (frame_register_read): Ditto.
5137 * findvar.c (value_of_register): Ditto.
5138
93021b7d
AC
51392002-05-15 Andrew Cagney <cagney@redhat.com>
5140
5141 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5142 (remote-sim.o): Update dependencies.
5143 (d10v-tdep.o): Specify dependencies.
5144 (sim_d10v_h): Define.
5145
a86bc61c
JB
51462002-05-14 Jim Blandy <jimb@redhat.com>
5147
5148 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5149 * macrotab.c (macro_lookup_inclusion, find_definition,
5150 new_macro_table): Same.
5151
5152 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5153 not `! strcmp ()'. This is a dubious improvement.
5154 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5155
5156 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5157 although it's not necessary, to avoid a warning.
5158
2fdde8f8
DJ
51592002-05-14 Daniel Jacobowitz <drow@mvista.com>
5160
5161 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5162 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5163 TYPE_INSTANCE_FLAGS.
5164 (struct main_type): New.
5165 (struct type): Move most members to struct main_type. Change
5166 cv_type and as_type to new type_chain member. Add instance_flags.
5167 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5168 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5169 (finish_cv_type): Remove prototype.
5170 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5171 Set TYPE_CHAIN.
5172 (alloc_type_instance): New function.
5173 (smash_type): New function.
5174 (make_pointer_type, make_reference_type, make_function_type)
5175 (smash_to_member_type, smash_to_method_type): Call smash_type.
5176 (make_qualified_type): New function.
5177 (make_type_with_address_space): Call make_qualified_type.
5178 (make_cv_type): Likewise.
5179 (finish_cv_type): Remove unnecessary function.
5180 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5181 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5182 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5183 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5184 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5185 * hpread.c (hpread_read_struct_type): Likewise.
5186 * stabsread.c (read_struct_type): Likewise.
5187
843fedf4
EZ
51882002-05-14 Elena Zannoni <ezannoni@redhat.com>
5189
5190 * configure.tgt: Add a catch all sh* target, for cases like
5191 sh[2,3,4]-elf and sh-hms.
5192
05a6c72c
KS
51932002-05-14 Keith Seitz <keiths@redhat.com>
5194
5195 * event-loop.c (create_file_handler): Don't do anything but
5196 update data when we are given a fd which we are already
5197 monitoring.
5198
5d085aaf
ML
51992002-05-14 Michal Ludvig <mludvig@suse.cz>
5200
5201 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5202 (update_context): Use __func__ in warnings.
5203
9db8d71f
DJ
52042002-05-14 Daniel Jacobowitz <drow@mvista.com>
5205
5206 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5207 and tcp_close to net_open and net_close.
5208 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5209 using UDP if requested. Don't try to disable Nagle on UDP
5210 sockets.
5211 * remote.c (remote_serial_open): New function. Warn about UDP.
5212 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5213
5dbc6baa
EZ
52142002-05-13 Elena Zannoni <ezannoni@redhat.com>
5215
5216 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5217
cc3023f7
EZ
52182002-05-13 Elena Zannoni <ezannoni@redhat.com>
5219
5220 * configure.tgt: Remove sh-hms target.
5221 * MAINTAINERS: Don't list sh-hms as a separate target.
5222
ec2bcbe7
JB
52232002-05-13 Jim Blandy <jimb@redhat.com>
5224
5225 Add first preprocessor macro-expansion files.
5226 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5227 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5228 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5229 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5230 (COMMON_OBS): Add macrotab.o, macroexp.o.
5231 (macroexp.o, macrotab.o): New rules.
5232
6d531722
AC
52332002-05-13 Andrew Cagney <ac131313@redhat.com>
5234
5235 * config/m88k/tm-m88k.h: Update copyright.
5236 (m88k_target_write_pc): Declare
5237 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5238 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5239 (SHIFT_INST_REGS): Update definition.
5240 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5241 using old definition of TARGET_WRITE_PC.
5242 * regcache.c (generic_target_write_pc): Delete code handling
5243 NNPC_REGNUM.
5244 * gdbarch.sh (NNPC_REGNUM): Delete.
5245 * gdbarch.h, gdbarch.c: Regenerate.
5246
3e3f2739
RE
52472002-05-13 Richard Earnshaw <rearnsha@arm.com>
5248
5249 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5250 builtin reg number.
5251
0004e5a2
DJ
52522002-05-13 Daniel Jacobowitz <drow@mvista.com>
5253
5254 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5255 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5256 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5257 access macros.
5258 * c-typeprint.c (cp_type_print_method_args): Likewise.
5259 (c_type_print_args): Likewise.
5260 * d10v-tdep.c (d10v_push_arguments): Likewise.
5261 (d10v_extract_return_value): Likewise.
5262 * expprint.c (print_subexp): Likewise.
5263 * gdbtypes.c (lookup_primitive_typename): Likewise.
5264 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5265 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5266 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5267 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5268 (TYPE_VECTOR): Likewise.
5269 * hpread.c (hpread_read_struct_type)
5270 (fix_static_member_physnames, fixup_class_method_type)
5271 (hpread_type_lookup): Likewise.
5272 * mdebugread.c (parse_symbol, parse_type): Likewise.
5273 * p-lang.c (is_pascal_string_type): Likewise.
5274 * valops.c (hand_function_call): Likewise.
5275 * x86-64-tdep.c (classify_argument): Likewise.
5276
5277 * hpread.c (hpread_read_function_type)
5278 (hpread_read_doc_function_type): Call replace_type.
5279 * dstread.c (create_new_type): Delete.
5280 (decode_dst_structure, process_dst_function): Call alloc_type.
5281 Use type access macros.
5282
dff95cc7
MK
52832002-05-12 Mark Kettenis <kettenis@gnu.org>
5284
5285 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5286 the're not supported by the current architecture.
5287 (i387_fill_fxsave): Likewise.
5288
bbcd32ad
FF
52892002-05-12 Fred Fish <fnf@redhat.com>
5290
5291 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5292 sect_index_xxx members to index the first slot in section_offsets
5293 if all of the section_offsets are zero.
5294
89cf4787
MK
52952002-05-12 Mark Kettenis <kettenis@gnu.org>
5296
5297 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5298 checked in with last change.
5299
1f77ffc5
MK
53002002-05-12 Mark Kettenis <kettenis@gnu.org>
5301
5302 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5303 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5304 config.sub.
5305
89b8b4a9
DJ
53062002-05-12 Daniel Jacobowitz <drow@mvista.com>
5307
5308 * Makefile.in: Update dependencies.
5309
14a5e767
AC
53102002-05-11 Andrew Cagney <ac131313@redhat.com>
5311
5312 * language.c (local_hex_string_custom): Simplify. Do not depend
5313 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5314
5315 * memattr.c (mem_info_command): Replace calls to
5316 longest_local_hex_string and longest_local_hex_string_custom.
5317 * buildsym.c (make_blockvector): Ditto.
5318 * solib.c (info_sharedlibrary_command): Ditto.
5319 * tracepoint.c (tracepoints_info): Ditto.
5320 * symtab.c (print_msymbol_info): Ditto.
5321
5322 * language.c (local_hex_string): Delete.
5323 (local_hex_string_custom): Delete.
5324 (longest_local_hex_string): Rename to local_hex_string.
5325 (longest_local_hex_string_custom): Rename to
5326 local_hex_string_custom.
5327 * language.h (local_hex_string): Change parameter type to LONGEST.
5328 (local_hex_string_custom): Ditto.
5329 (longest_local_hex_string): Delete declaration.
5330 (longest_local_hex_string_custom): Ditto.
5331
5332 * solib.c: Update copyright.
5333 * memattr.c: Update copyright.
5334
13d01224
AC
53352002-05-11 Andrew Cagney <ac131313@redhat.com>
5336
5337 * arch-utils.h (legacy_register_to_value): Declare.
5338 (legacy_value_to_register): Declare.
5339 (legacy_convert_register_p): Declare.
5340 * arch-utils.c (legacy_register_to_value): New function.
5341 (legacy_value_to_register): New function.
5342 (legacy_convert_register_p): New function.
5343
5344 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5345 (VALUE_TO_REGISTER): Define.
5346 (CONVERT_REGISTER_P): Define.
5347 * gdbarch.h, gdbarch.c: Regenerate.
5348
5349 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5350 VALUE_TO_REGISTER.
5351 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5352 CONVERT_REGISTER_P.
5353
4a1970e4
DJ
53542005-05-11 Daniel Jacobowitz <drow@mvista.com>
5355 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5356
5357 * Makefile.in: Update dependencies for valops.c.
5358 * valops.c: Include "gdb_assert.h".
5359 (typecmp): Skip THIS parameter to methods.
5360 (find_method_list): Remove static_memfuncp argument,
5361 update callers. Check for stub methods.
5362 (find_value_oload_method_list): Don't set *static_memfuncp.
5363 (find_overload_match): Don't check for stub methods. Assert
5364 that methods are not stubbed. Handle static methods.
5365 (value_find_oload_method_list): Remove static_memfuncp argument.
5366 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5367 to the argument list for static stub methods.
5368 * value.h (value_find_oload_method_list): Update prototype.
5369
b2e75d78
AC
53702002-05-11 Andrew Cagney <ac131313@redhat.com>
5371
5372 * arch-utils.h (generic_register_size): Declare.
5373 (generic_register_raw_size, generic_register_virtual_size): Delete
5374 declarations.
5375 * arch-utils.c (generic_register_raw_size): Delete.
5376 (generic_register_size): New function.
5377 (generic_register_virtual_size): Delete.
5378
5379 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5380 default generic_register_size.
5381 * gdbarch.h, gdbarch.c: Re-generate.
5382
5383 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5384 register_virtual_size.
5385 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5386 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5387
451fbdda
AC
53882002-05-11 Andrew Cagney <ac131313@redhat.com>
5389
5390 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5391 * gdbarch.h, gdbarch.c: Regenerate.
5392 * gnu-v3-abi.c: Update copyright.
5393 (vtable_address_point_offset): Update.
5394 (gnuv3_rtti_type): Update.
5395 (gnuv3_baseclass_offset): Update.
5396 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5397 (init_fetch_link_map_offsets): Update.
5398 * remote.c (get_remote_state): Update.
5399
6d2f5cea
DJ
54002002-05-11 Daniel Jacobowitz <drow@mvista.com>
5401
5402 * TODO: Remove value_headof/value_from_vtable_info comment.
5403 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5404 * values.c (value_headof, value_from_vtable_info): Delete.
5405 * value.h (value_from_vtable_info): Delete prototype.
5406
d2324da4
AC
54072002-05-11 Andrew Cagney <ac131313@redhat.com>
5408
5409 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5410 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5411 $(gdb_regex_h).
5412 (gdb_assert_h): Define.
5413 (gdb_wait_h): Define.
5414 (gdb_regex_h): Define.
5415
5c717440
DJ
54162002-05-11 Daniel Jacobowitz <drow@mvista.com>
5417
5418 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5419 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5420
6c7861b3
JT
54212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5422
5423 * nbsd-tdep.c: Fix comment.
5424
ea5bc2a6
JT
54252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5426
5427 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5428 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5429 (nbsd-tdep.o): New dependency list.
5430 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5431 nbsd-tdep.h.
5432 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5433 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5434 * nbsd-tdep.c: New file.
5435 * nbsd-tdep.h: New file.
5436 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5437 nbsd-tdep.h.
5438 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5439 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5440 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5441 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5442
b28da865
JT
54432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5444
5445 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5446 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5447 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5448 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5449 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5450 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5451
4b8ff1fa
JT
54522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5453
5454 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5455 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5456 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5457 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5458 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5459 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5460 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5461
dfe6eb1f
JT
54622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5463
5464 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5465 fetch_elfcore_registers to...
5466 * i386nbsd-tdep.c: ...here.
5467 (i386nbsd_use_struct_convention): Rename to...
5468 (i386nbsd_aout_use_struct_convention): ...this.
5469 (i386nbsd_supply_reg): New function.
5470 (i386nbsd_fill_reg): New function.
5471 (fetch_core_registers): Use i386nbsd_supply_reg.
5472 (fetch_elfcore_registers): Likewise.
5473 (_initialize_i386nbsd_tdep): New function.
5474 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5475 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5476 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5477 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5478 (i386nbsd_aout_use_struct_convention): ...this.
5479
20cb8cda
JT
54802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5481
5482 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5483 (store_inferior_registers): Use shnbsd_fill_reg.
5484 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5485 sh_nbsd_supply_register): Collapse into...
5486 (shnbsd_supply_reg): ...this.
5487 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5488 (shnbsd_fill_reg): ...this.
5489 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5490 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5491 (fetch_core_registers): Use shnbsd_supply_reg.
5492 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5493 (sh_nbsd_core_fns): Rename to...
5494 (shnbsd_core_fns): ...this.
5495 (sh_nbsd_elfcore_fns): Rename to...
5496 (shnbsd_elfcore_fns): ...this.
5497 (sh_nbsd_init_abi): Rename to...
5498 (shnbsd_init_abi): ...this.
5499 (_initialize_sh_nbsd_tdep): Rename to...
5500 (_initialize_shnbsd_tdep): ...this.
5501 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5502 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5503 sh_nbsd_fill_register): Remove prototypes.
5504 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5505
e750d25e
JT
55062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5507
5508 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5509 (i387-nat.o): Delete dependency list.
5510 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5511 (x86-64-linux-nat.o): Likewise.
5512 * i387-nat.c: Delete file, moving contents to...
5513 * i387-tdep.c: ...here.
5514 * i387-nat.h: Rename...
5515 * i387-tdep.h: ...to this.
5516 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5517 * i386-linux-nat.c: Likewise.
5518 * i386bsd-nat.c: Likewise.
5519 * i386gnu-nat.c: Likewise.
5520 * i386nbsd-nat.c: Likewise.
5521 * i386v4-nat.c: Likewise.
5522 * x86-64-linux-nat.c: Likewise.
5523 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5524 * config/i386/go32.mh (NATDEPFILES): Likewise.
5525 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5526 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5527 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5528 * config/i386/linux.mh (NATDEPFILES): Likewise.
5529 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5530 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5531 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5532 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5533
1aee598a
JT
55342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5535
5536 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5537 (alphanbsd-nat.o): Remove dependency list.
5538 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5539 * alphanbsd-nat.c: Delete. Contents moved to...
5540 * alphanbsd-tdep.c: ...here.
5541 (_initialize_alphanbsd_tdep): Register core functions.
5542 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5543
12bcb0fe
JT
55442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5545
5546 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5547 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5548 (alphanbsd-nat.o): Likewise.
5549 (alphabsd-tdep.o): New dependency list.
5550 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5551 (fill_gregset): Use alphabsd_fill_reg.
5552 (supply_fpregset): Use alphabsd_supply_fpreg.
5553 (fill_fpregset): Use alphabsd_fill_fpreg.
5554 (fetch_inferior_registers): Use struct reg and struct fpreg
5555 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5556 and alphabsd_supply_fpreg.
5557 (store_inferior_registers): Use struct reg and struct fpreg
5558 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5559 and alphabsd_fill_fpreg.
5560 * alphabsd-tdep.c: New file.
5561 * alphabsd-tdep.h: New file.
5562 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5563 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5564 alphabsd_supply_fpreg.
5565 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5566 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5567
361d1df0
EC
55682002-05-11 Eric Christopher <echristo@redhat.com>
5569
5570 * mips-tdep.c (mips_double_register_type): Fix thinko.
5571 (mips_single_register_type): Ditto.
5572 * MAINTAINERS: Add self.
5573
92dd7cee
MK
55742002-05-11 Mark Kettenis <kettenis@gnu.org>
5575
5576 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5577 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5578 right thing on architectures with different endianness and/or
5579 integer sizes.
5580
e27da16d
JT
55812002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5582
5583 From Christian Limpach <chris@Pin.LU>
5584 * configure.in: Change sed expression which comments out
5585 NATDEPFILES to also comment out continuation lines.
5586 * configure: Regenerate.
5587
ddde02bd
EZ
55882002-05-10 Elena Zannoni <ezannoni@redhat.com>
5589
5590 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5591 big patch.
5592
1c922164
EZ
55932002-05-10 Elena Zannoni <ezannoni@redhat.com>
5594
5595 * sh-tdep.c: Include correct file.
5596
283150cd
EZ
55972002-05-10 Elena Zannoni <ezannoni@redhat.com>
5598
5599 New support for sh64-elf (sh5) target.
5600
5601 * configure.tgt: For sh64-elf target, default to sh-elf.
5602
5603 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5604 (struct gdbarch_tdep): Add new fields for new registers and ABI
5605 info.
361d1df0 5606
283150cd
EZ
5607 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5608 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5609 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5610 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5611 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5612 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5613 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5614 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5615 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5616 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5617 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5618 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5619 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5620 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5621 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5622 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5623 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5624 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5625 sign_extend, sh64_nofp_frame_init_saved_regs,
5626 sh64_init_extra_frame_info, sh64_get_saved_register,
5627 sh64_extract_struct_value_address, sh64_pop_frame,
5628 sh64_push_arguments, sh64_extract_return_value,
5629 sh64_store_return_value, sh64_show_media_regs,
5630 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5631 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5632 sh_sh64_register_virtual_type,
5633 sh_sh64_register_convert_to_virtual,
5634 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5635 sh64_register_read, sh64_pseudo_register_write,
5636 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5637 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5638 sh64_do_pseudo_register, sh_compact_do_registers_info,
5639 sh64_do_registers_info, sh_gdbarch_init): New functions.
5640
3117ed25
EZ
56412002-05-10 Elena Zannoni <ezannoni@redhat.com>
5642
5643 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5644
2654e6d4
DJ
56452002-05-10 Daniel Jacobowitz <drow@mvista.com>
5646
5647 * linespec.c (decode_line_1): Check for a double quote after
5648 a filename correctly.
5649
9ab3e532
JB
56502002-05-10 Jim Blandy <jimb@redhat.com>
5651
5652 Properly track the size of the current objfile's .debug_line section.
5653 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5654 (DWARF_LINE_SIZE): New macro.
5655 (dwarf2_build_psymtabs_hard): Record the line section's size in
5656 the partial symbol table.
5657 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5658 symbol table.
5659
126fa72d
PS
56602002-05-10 Petr Sorfa <petrs@caldera.com>
5661
5662 * ia64-tdep.c: Handle breakpoints on L instruction type
5663 in MLX instruction bundle by moving the breakpoint to
5664 the third slot (X instruction type) as L holds only data.
5665
1f077a3e
KB
56662002-05-10 Kevin Buettner <kevinb@redhat.com>
5667
5668 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5669 (process_one_symbol): Complain about discarding local symbols
5670 due to a misplaced N_LBRAC entry.
5671
8120c9d5 56722002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5673
5674 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5675 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5676 decrease the depth we are at, in the case of templates.
361d1df0 5677
67b2c998
DJ
56782002-05-09 Daniel Jacobowitz <drow@mvista.com>
5679
5680 * mips-tdep.c (mips_float_register_type): New function.
5681 (mips_double_register_type): New function.
5682 (mips_print_register): Use them.
5683 (do_fp_register_row): Likewise.
5684
fd326606
DJ
56852002-05-09 Daniel Jacobowitz <drow@mvista.com>
5686
6609d9af 5687 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5688 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5689 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5690
bef35864
MS
56912002-05-09 Michael Snyder <msnyder@redhat.com>
5692
5693 * remote-rdp.c (remote_rdp_can_run): Remove.
5694
c55a3f73
TT
56952002-05-09 Tom Tromey <tromey@redhat.com>
5696
5697 * jv-valprint.c (java_val_print): Handle `char' as a special case
5698 of TYPE_CODE_INT.
5699
b8d5e71d
MS
57002002-05-09 Michael Snyder <msnyder@redhat.com>
5701
5702 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5703 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5704 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5705 str r(0123),[sp,#nn].
361d1df0 5706 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5707 order-independent by placing it in a loop.
5708
e2cd42dd
MS
57092002-05-06 Michael Snyder <msnyder@redhat.com>
5710
5711 * stabsread.c (read_type): Add recognition for new attribute:
5712 "@V;" means that an array type is actually a vector.
5713 This is analogous to the vector flag that's been added to dwarf2.
5714
3ce1502b
MK
57152002-05-09 Mark Kettenis <kettenis@gnu.org>
5716
5717 * i386-tdep.h (i386_abi): New enum.
5718 (struct gdbarch_tdep): Replace os_ident member with abi.
5719 (i386_gdbarch_register_os_abi): New prototype.
5720 * i386-tdep.c (i386_abi_names): New array.
5721 (process_note_abi_tag_sections): Removed.
5722 (process_note_sections): New function.
5723 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5724 (struct i386_abi_handler): New struct.
5725 (i386_abi_handler_list): New variable.
5726 (i386_gdbarch_register_os_abi): New function.
5727 (i386_gdbarch_init): Adapt for the changes given above.
5728
084c156a
DJ
57292002-05-08 Daniel Jacobowitz <drow@mvista.com>
5730
5731 * gregset.h: Say "GNU/Linux".
5732
6599f021
EZ
57332002-05-08 Elena Zannoni <ezannoni@redhat.com>
5734
5735 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5736 (build_gdbtypes): Build builtin_type_v2_float.
5737 (_initialize_gdbtypes): Register new builtin type.
5738
40af4b0c
AC
57392002-05-08 Andrew Cagney <ac131313@redhat.com>
5740
5741 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5742 (clear_gdbarch_swap): New function.
5743 (initialize_non_multiarch): Call.
5744 (gdbarch_update_p): Before calling init(), swap out and clear the
5745 existing architecture.
5746 * gdbarch.c: Regenerate.
5747
4fe84f46
JT
57482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5749
5750 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5751 alphanbsd-tdep.c.
5752
4015edd1
JT
57532002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5754
5755 * sh-nbsd-nat.c: Rename to...
5756 * shnbsd-nat.c: ...this.
5757 * sh-nbsd-tdep.c: Rename to...
5758 * shnbsd-tdep.c: ...this.
5759 * sh-nbsd-tdep.h: Rename to...
5760 * shnbsd-tdep.h: ...this.
5761 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5762 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5763
0e2bd219
RE
57642002-05-08 Richard Earnshaw <rearnsha@arm.com>
5765
5766 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5767 concatenation for command help messages.
5768
13a38d45
JT
57692002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5770
5771 * NEWS: Note new sh*-*-netbsdelf* configuration.
5772 * configure.host: Set gdb_host_cpu to sh for all sh*.
5773 (sh*-*-netbsdelf*): New host.
5774 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5775 (sh*-*-netbsdelf*): New target.
5776 * sh-nbsd-nat.c: New file.
5777 * sh-nbsd-tdep.c: New file.
5778 * sh-nbsd-tdep.h: New file.
5779 * config/sh/nbsd.mh: New file.
5780 * config/sh/nbsd.mt: New file.
5781 * config/sh/nm-nbsd.h: New file.
5782 * config/sh/tm-nbsd.h: New file.
5783
d658f924
JT
57842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5785
5786 * sh-tdep.c (sh_osabi_names): Declare.
5787 (process_note_abi_tag_sections): New function.
5788 (get_elfosabi): Ditto.
5789 (sh_gdbarch_register_os_abi): Ditto.
5790 (sh_dump_tdep): Ditto.
5791 _initialize_sh_tdep): Use gdbarch_register to register
5792 sh_gdbarch_init and sh_dump_tdep.
5793 * config/sh/tm-sh.h (sh_osabi): Declare.
5794 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5795
848cfffb
AC
57962002-05-07 Andrew Cagney <ac131313@redhat.com>
5797
5798 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5799 (thumb_scan_prologue): Ditto.
5800 (arm_find_callers_reg): Ditto.
5801 (arm_frame_chain): Ditto.
5802 (arm_init_extra_frame_info): Ditto.
5803 (arm_frame_saved_pc): Ditto.
5804 (arm_pop_frame): Ditto.
5805 (arm_push_return_address): New function.
5806 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5807 call_dummy_location, call_dummy_breakpoint_offset_p,
5808 call_dummy_breakpoint_offset, call_dummy_p,
5809 call_dummy_stack_adjust_p, call_dummy_words,
5810 sizeof_call_dummy_words, call_dummy_start_offset,
5811 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5812 call_dummy_address, push_return_address and push_dummy_frame for
5813 generic dummy frames.
5814
e7d717c0
JT
58152002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5816
5817 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5818 size computation for alloca.
5819 (sh_fp_frame_init_saved_regs): Likewise.
5820
7bbcf283
RE
58212002-05-07 Richard Earnshaw <rearnsha@arm.com>
5822
5823 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5824 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5825 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5826 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5827 * remote-rdp.c (remote_rdp_fetch_register): Use
5828 ARM_MAX_REGISTER_RAW_SIZE.
5829 (remote_rdp_store_register): Likewise.
5830
4657573b
ML
58312002-05-07 Michal Ludvig <mludvig@suse.cz>
5832
361d1df0 5833 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5834 added default labels to switch {} statements.
5835 * x86-64-tdep.c: Ditto.
5836 * x86-64-linux-nat.c: Ditto.
5837
010f3b2f
JT
58382002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5839
5840 * solib.h: Protect against multiple inclusion.
5841
debd256d
JB
58422002-05-06 Jim Blandy <jimb@redhat.com>
5843
9ab3e532
JB
5844 Add first preprocessor macro-expansion files.
5845 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5846 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5847 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5848 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5849 (COMMON_OBS): Add macrotab.o, macroexp.o.
5850 (macroexp.o, macrotab.o): New rules.
5851
debd256d
JB
5852 Separate the job of reading the line number info statement program
5853 header (...expialidocious) out into its own function.
5854 * dwarf2read.c (struct line_head, struct filenames, struct
5855 directories): Replace with...
5856 (struct line_header): New structure, containing the full
5857 contents of the statement program header, including the
5858 include directory and file name tables.
5859 (read_file_scope): If we have line number info, instead of just
5860 calling dwarf_decode_lines to do all the work, call
5861 dwarf_decode_line_header first to get a `struct line_header'
5862 containing the data in the statement program header, and then
5863 pass that to dwarf_decode_lines, which will pick up where that
5864 left off. Be sure to clean up the `struct line_header' object.
5865 (dwarf_decode_line_header, free_line_header, add_include_dir,
5866 add_file_name): New functions.
5867 (dwarf_decode_lines): Move all the code to read the statement
5868 program header into dwarf_decode_line_header. Take the line
5869 header it built as the first argument, instead of the offset to
5870 the compilation unit's line number info. Use the new `struct
5871 line_header' type instead of the old structures. No need to do
5872 cleanups here now, since we don't allocate anything.
5873 (dwarf2_statement_list_fits_in_line_number_section,
5874 dwarf2_line_header_too_long): New complaints.
5875
ac3aafc7
EZ
58762002-05-06 Elena Zannoni <ezannoni@redhat.com>
5877
5878 * gdbtypes.c (init_vector_type): New function.
5879 (build_builtin_type_vec128): Simplify the representation of SIMD
5880 registers.
5881 (build_gdbtypes): Initialize new builtin vector types.
5882 (_initialize_gdbtypes): Register new vector types with gdbarch.
5883 (builtin_type_v4_float, builtin_type_v4_int32,
5884 builtin_type_v8_int16, builtin_type_v16_int8,
5885 builtin_type_v2_int32, builtin_type_v4_int16,
5886 builtin_type_v8_int8): New (renamed) SIMD types.
5887
13e49980
MK
58882002-05-06 Mark Kettenis <kettenis@gnu.org>
5889
5890 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5891 (i387_fill_fxsave): Likewise.
5892
997b20b8
AO
58932002-05-05 Alexandre Oliva <aoliva@redhat.com>
5894
5895 * alpha-tdep.c (alpha_extract_return_value): Don't use
5896 non-constant array size in prototype.
5897
535c96ce
AC
58982002-05-04 Andrew Cagney <ac131313@redhat.com>
5899
5900 From Brian Taylor <briant at model dot com>:
5901 * ui-out.c (ui_out_field_core_addr): Use the function
5902 longest_local_hex_string_custom'to format addresses > 32 bits
5903 wide.
5904
5905 * ui-out.c (ui_out_field_core_addr): Update comment.
5906
bedfa57b
AC
59072002-05-04 Andrew Cagney <ac131313@redhat.com>
5908
5909 * stack.c (select_and_print_frame): Make static. Delete the
5910 parameter `level'.
5911 (func_command): Update call.
5912 (select_frame_command): Delete code computing the frame level.
5913 * frame.h (select_and_print_frame): Delete declaration.
5914
f621c63e
AC
59152002-05-04 Andrew Cagney <ac131313@redhat.com>
5916
5917 * sparc-tdep.c (sparc_get_saved_register): Comment why
5918 get_prev_frame call is safe.
5919
0f7d239c
AC
59202002-05-04 Andrew Cagney <ac131313@redhat.com>
5921
5922 * frame.h (select_frame): Delete level parameter.
5923 * stack.c (select_frame): Update. Use frame_relative_level to
5924 obtain the frame's level.
5925 (select_and_print_frame): Update call.
5926 (select_frame_command): Ditto.
5927 (up_silently_base): Ditto.
5928 (down_silently_base): Ditto.
5929 * ocd.c (ocd_start_remote): Ditto.
5930 * remote-rdp.c (remote_rdp_open): Ditto.
5931 * remote-mips.c (mips_initialize): Ditto.
5932 (common_open): Ditto.
5933 * remote-e7000.c (e7000_start_remote): Ditto.
5934 * m3-nat.c (select_thread): Ditto.
5935 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5936 (child_get_current_exception_event): Ditto.
5937 * varobj.c (varobj_create): Ditto.
5938 (varobj_update): Ditto.
5939 (c_value_of_root): Ditto.
5940 * tracepoint.c (finish_tfind_command): Ditto.
5941 * corelow.c (core_open): Ditto.
5942 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5943 * thread.c (info_threads_command): Ditto.
5944 (switch_to_thread): Ditto.
5945 * infrun.c (normal_stop): Ditto.
5946 (restore_selected_frame): Ditto.
5947 (restore_inferior_status): Ditto.
5948 * breakpoint.c (insert_breakpoints): Ditto.
5949 (watchpoint_check): Ditto.
5950 (bpstat_stop_status): Ditto.
5951 (do_enable_breakpoint): Ditto.
5952 * blockframe.c (flush_cached_frames): Ditto.
5953 (reinit_frame_cache): Ditto.
5954
71d6c7b1
AC
59552002-05-04 Andrew Cagney <ac131313@redhat.com>
5956
5957 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5958 maintainer.
5959
cda6c68a
JB
59602002-05-04 Jim Blandy <jimb@redhat.com>
5961
5962 * gdbtypes.c (replace_type): Doc fix.
5963
5c1c87f0
AC
59642002-05-04 Andrew Cagney <ac131313@redhat.com>
5965
5966 * valprint.c (strcat_longest): Delete commented out function.
5967 Update copyright.
5968
cd9bfe15
AC
59692002-05-04 Andrew Cagney <ac131313@redhat.com>
5970
5971 * MAINTAINERS: Mark a29k as deleted.
5972 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5973 Move new configurations to the top.
5974 * configure.tgt: Remove a29k.
5975 * config/a29k/tm-vx29k.h: Delete.
5976 * config/a29k/vx29k.mt: Delete.
5977 * config/a29k/tm-a29k.h: Delete.
5978 * config/a29k/a29k-udi.mt: Delete.
5979 * config/a29k/a29k.mt: Delete.
5980 * a29k-tdep.c: Delete.
5981 * remote-udi.c: Delete.
5982 * remote-mm.c: Delete.
5983 * remote-eb.c: Delete.
5984 * remote-adapt.c: Delete.
5985 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
5986 * config/s390/s390x.mt: Ditto.
5987 * config/s390/s390.mt: Ditto.
5988 * config/sparc/sparclynx.mh: Ditto.
5989 * config/sparc/linux.mh: Ditto.
5990 * config/pa/hppaosf.mh: Ditto.
5991 * config/pa/hppabsd.mh: Ditto.
5992 * config/ns32k/nbsd.mt: Ditto.
5993 * config/mips/vr5000.mt: Ditto.
5994 * config/m68k/sun3os4.mh: Ditto.
5995 * config/m68k/nbsd.mt: Ditto.
5996 * config/m68k/m68klynx.mh: Ditto.
5997 * config/m32r/m32r.mt: Ditto.
5998 * config/i386/x86-64linux.mt: Ditto.
5999 * config/i386/nbsdelf.mt: Ditto.
6000 * config/i386/nbsd.mt: Ditto.
6001 * config/i386/i386lynx.mh: Ditto.
6002
bf0c5130
AC
60032002-05-04 Andrew Cagney <ac131313@redhat.com>
6004
6005 * target.c (debug_print_register): New function. Handle oversize
6006 registers.
6007 (debug_to_fetch_registers): Call.
6008 (debug_to_store_registers): Call.
6009
2ae1c2d2
JB
60102002-05-03 Jim Blandy <jimb@redhat.com>
6011
13a393b0
JB
6012 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6013 (read_type): Doc fix.
6014 * gdbtypes.c (replace_type): Doc fix.
6015
2ae1c2d2
JB
6016 * stabsread.c (multiply_defined_struct): New complaint.
6017 (read_struct_type): If the type we were passed isn't empty, or
6018 incomplete, don't read the new struct type into it; complain,
6019 and return the original type unchanged. Take a new `type_code'
6020 argument, which is the type code for the new type.
6021 (read_type): Rather than storing the type's type code here, pass
6022 it as an argument to read_struct_type, and let that take care of
6023 storing it. That way, we don't overwrite the original type code,
6024 so read_struct_type can use it to decide whether we're overwriting
6025 something we shouldn't.
6026 (complain_about_struct_wipeout): New function.
6027
8de9bdc4
AC
60282002-05-03 Andrew Cagney <ac131313@redhat.com>
6029
6030 * gdbarch.sh: Assert that gdbarch is non-NULL.
6031 * gdbarch.c: Regenerate.
6032
f773fdbb
JM
60332002-05-03 Jason Merrill <jason@redhat.com>
6034
6035 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6036 and return NULL.
6037
0e04a514
ML
60382002-05-03 Michal Ludvig <mludvig@suse.cz>
6039
6040 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6041 (x86_64_dwarf2gdb_regno_map_length),
6042 (x86_64_dwarf2_reg_to_regnum): Added.
6043 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6044 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6045 (_initialize_x86_64_tdep): Synced with the change above.
6046 (x86_64_skip_prologue): Reformulated message.
6047
065432a8
PM
60482002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6049
6050 * f-exp.y: Also use new prev_lexptr variable
6051 to improve error reporting. Based on Michael Snyder
6052 2002-04-24 dated patch to c-exp.y.
6053 * jv-exp.y: Likewise.
6054 * m2-exp.y: Likewise.
6055
a3162708
EZ
60562002-05-02 Elena Zannoni <ezannoni@redhat.com>
6057
6058 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6059 we are dealing with vectors.
6060
03620c38
PM
60612002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6062
6063 * config/m68k/tm-nbsd.h: Obvious fix,
6064 correct machine name.
6065
6604db2e
PM
60662002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6067
6068 * p-typeprint.c (pascal_type_print_base): Add support
6069 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6070
0906b739
PM
60712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6072
6073 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6074 for fondamental pascal 'char' type.
6075
e2625b33
PM
60762002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6077
6078 * p-lang.h (is_pascal_string_type): Declaration changed,
6079 new sixth argument of type char ** added.
361d1df0 6080 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6081 changed. Args length_pos, length_size, string_pos, char_size
6082 can now be NULL. New argument arrayname set to the field
6083 name of the char array. Return value set to char array
6084 field index plus one.
361d1df0 6085 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6086 is_pascal_string_type function.
6087
cf17c188
AC
60882002-05-02 Andrew Cagney <cagney@redhat.com>
6089
6090 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6091 <cagney@redhat.com> change.
6092 * gdbarch.c: Regenerate.
6093
52bca491
AC
60942002-05-02 Andrew Cagney <cagney@redhat.com>
6095
6096 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6097 before probing for a new one. Detect errorenous gdbarch_init
6098 functions.
6099 * gdbarch.c: Regenerate.
6100
d5e72505
AC
61012002-05-01 Andrew Cagney <cagney@redhat.com>
6102
6103 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6104 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6105 * config/v850/tm-v850.h: Ditto. Update copyright.
6106
af566d9f
AC
61072002-04-30 Andrew Cagney <ac131313@redhat.com>
6108
6109 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6110 current_gdbarch.
6111
880d85fa
MS
61122002-04-30 Michael Snyder <msnyder@redhat.com>
6113
94c30b78
MS
6114 * arm-tdep.c: Whitespace clean-ups.
6115 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6116 should have been removed as part of 4/24 change.
6117
6f5987a6
KB
61182002-04-30 Kevin Buettner <kevinb@redhat.com>
6119
6120 * rs6000-tdep.c: Added comment describing how fpscr register
6121 numbers were chosen.
6122
1a113c93
MS
61232002-04-30 Michael Snyder <msnyder@redhat.com>
6124
6125 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6126
9a6f53fe
EZ
61272002-04-29 Elena Zannoni <ezannoni@redhat.com>
6128
6129 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6130 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6131 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6132
11ed25ac
KB
61332002-04-29 Kevin Buettner <kevinb@redhat.com>
6134
6135 From Louis Hamilton <hamilton@redhat.com>:
6136 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6137 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6138 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6139 not bfd-private xcoff data, to determine wordsize.
6140 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6141
ae232405
AC
61422002-04-29 Andrew Cagney <ac131313@redhat.com>
6143
6144 GDB 5.2 released from 5.2 branch.
6145
91fd20f7
ML
61462002-04-29 Michal Ludvig <mludvig@suse.cz>
6147
6148 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6149 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6150 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6151
2dc5091b
EZ
61522002-04-29 Elena Zannoni <ezannoni@redhat.com>
6153
6154 * rs6000-tdep.c (rs6000_extract_return_value,
6155 rs6000_store_return_value): Handle returning vectors.
6156 (rs6000_gdbarch_init): Use
6157 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6158 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6159 New function.
6160 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6161 vectors.
6162 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6163 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6164
2b9848d8
PM
61652002-04-24 Pierre Muller <ics.u-strasbg.fr>
6166
6167 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6168 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6169 with fprintf_unfiltered (gdb_stderr,...).
6170
f8d17dc5
PM
61712002-04-24 Pierre Muller <ics.u-strasbg.fr>
6172
6173 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6174 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6175 Replace fprintf (stderr,...
6176 with fprintf_unfiltered (gdb_stderr,....
6177 * remote-es.c: Likewise.
6178 * remote-os9k.c: Likewise.
6179 * remote-st.c: Likewise.
6180
2f2f1ad1
AS
61812002-04-28 Andreas Schwab <schwab@suse.de>
6182
6183 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6184 linux-proc.o and gcore.o.
6185
b6779aa2
AC
61862002-04-26 Michal Ludvig <mludvig@suse.cz>
6187
6188 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6189 code without frame pointers.
6190
7e57f5f4
AC
61912002-04-26 Andrew Cagney <ac131313@redhat.com>
6192
6193 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6194 ON_STACK is needed.
6195
2ceb85d0
BE
61962002-04-26 Ben Elliston <bje@redhat.com>
6197
6198 * target.c (do_xfer_memory): Correct reference to the new option
6199 "trust-readonly-sections".
6200
f5f8a009
EZ
62012002-04-26 Elena Zannoni <ezannoni@redhat.com>
6202
6203 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6204 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6205 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6206 vectors.
6207 (read_array_type): Record the fact that this array type is really a
6208 vector (i.e. are passed in by value).
6209
5868c862
JT
62102002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6211
6212 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6213 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6214 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6215 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6216 * alpha-linux-tdep.c: Include frame.h.
6217 (alpha_linux_sigcontext_addr): New function.
6218 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6219 alpha_linux_sigcontext_addr.
6220 * alpha-osf1-tdep.c: Include gdbcore.h.
6221 (alpha_osf1_sigcontext_addr): New function.
6222 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6223 alpha_osf1_sigcontext_addr.
6224 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6225 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6226
bfb01f37
AC
62272002-04-26 Andrew Cagney <ac131313@redhat.com>
6228
361d1df0 6229 * stack.c (selected_frame_level):
bfb01f37
AC
6230 (select_frame): Do not set selected_frame_level.
6231 * frame.h (selected_frame_level): Delete declaration.
6232
15813d3f
AC
62332002-04-26 Andrew Cagney <ac131313@redhat.com>
6234
6235 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6236 convert_from_func_ptr-addr when AIX / PowerOpen.
6237
6096c27a
AC
62382002-04-25 Andrew Cagney <ac131313@redhat.com>
6239
6240 * valops.c (hand_function_call): Call
6241 generic_save_call_dummy_addr.
6242 * frame.h (generic_save_call_dummy_addr): Declare.
6243 * blockframe.c (struct dummy_frame): Add fields call_lo and
6244 call_hi.
6245 (generic_find_dummy_frame): Check for PC in range call_lo to
6246 call_hi instead of entry_point_address.
6247 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6248 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6249 (generic_save_call_dummy_addr): New function.
6250
f510d44e
DM
62512002-04-24 David S. Miller <davem@redhat.com>
6252
6253 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6254 sparc_skip_prologue.
6255 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6256 information to find prologue when possible.
6257 (sparc_prologue_frameless_p): Call examine_prologue directly.
6258 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6259 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6260 second argument.
6261 (SKIP_PROLOGUE): Likewise.
6262
15d72a92
JT
62632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6264
6265 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6266 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6267 indicate that the condition it was testing is always true.
6268 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6269 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6270 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6271
accc6d1f
JT
62722002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6273
6274 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6275 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6276 tdep->jb_pc and tdep->jb_elt_size.
6277 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6278 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6279 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6280 * alpha-nat.c (get_longjmp_target): Remove.
6281 (JB_ELEMENT_SIZE): Ditto.
6282 (JB_PC): Ditto.
6283 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6284 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6285 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6286 to alpha_get_longjmp_target.
6287 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6288 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6289 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6290
1bfdc549
AC
62912002-04-25 Andrew Cagney <ac131313@redhat.com>
6292
6293 * README: Update to GDB 5.2.
6294
1bd316f0
AC
62952002-04-25 Andrew Cagney <ac131313@redhat.com>
6296
6297 * gdbarch.sh (LC_ALL): Set to `c'.
6298
2e5ff58c
TR
62992002-04-25 Theodore A. Roth <troth@verinet.com>
6300
6301 * avr-tdep.c: Ran through gdb_indent.sh.
6302
e33ce519
TR
63032002-04-25 Theodore A. Roth <troth@verinet.com>
6304
6305 * MAINTAINERS: Add myself as AVR maintainer.
6306 * NEWS: Note new target avr.
6307
8818c391
TR
63082002-04-25 Theodore A. Roth <troth@verinet.com>
6309
6310 * Makefile.in: Add support for AVR target.
6311 * configure.tgt: Add support for AVR target.
6312 * avr-tdep.c: New file
6313 * config/avr/avr.mt: New file.
6314
79509c2d
TR
63152002-04-25 Theodore A. Roth <troth@verinet.com>
6316
6317 * MAINTAINERS: Add myself to write-after-approval.
6318
dac8068e
PM
63192002-04-24 Pierre Muller <ics.u-strasbg.fr>
6320
6321 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6322 with fprintf_unfiltered (gdb_stderr,....
6323
25bf3106
PM
63242002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6325
6326 Fix PR gdb/508.
6327 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6328
24467a86
PM
63292002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6330
6331 * p-exp.y: Also use new prev_lexptr variable
6332 to improve error reporting. Based on Michael Snyder
6333 2002-04-24 dated patch to c-exp.y.
6334
95b80706
JT
63352002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6336
6337 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6338 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6339 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6340 to 0.
6341 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6342 and struct value.
6343 (FUNCTION_START_OFFSET): Remove.
6344 (BREAKPOINT): Ditto.
6345
e90cc612
JT
63462002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6347
6348 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6349 * NEWS: Ditto.
6350
6c72f9f9
JT
63512002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6352
6353 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6354 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6355 alpha_linux_pc_in_sigtramp.
6356 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6357 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6358 alpha_osf1_pc_in_sigtramp.
6359 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6360 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6361 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6362 alphafbsd_pc_in_sigtramp.
6363 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6364 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6365 alphanbsd_pc_in_sigtramp.
6366 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6367 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6368
5e4f3379
JT
63692002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6370
6371 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6372
da8ca43d
JT
63732002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6374
6375 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6376 alphanbsd-tdep.c.
6377 (alphanbsd-nat.o): New dependency list.
6378 (alphanbsd-tdep.o): Ditto.
6379 * NEWS: Note new native NetBSD/alpha configuration.
6380 * alphanbsd-nat.c: New file.
6381 * alphanbsd-tdep.c: Ditto.
6382 * configure.host (alpha*-*-netbsd*): New host.
6383 * configure.tgt (alpha*-*-netbsd*): New target.
6384 * config/alpha/nbsd.mh: New file.
6385 * config/alpha/nbsd.mt: Ditto.
6386 * config/alpha/nm-nbsd.h: Ditto.
6387 * config/alpha/tm-nbsd.h: Ditto.
6388
36a6271d
JT
63892002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6390
6391 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6392 (alpha-osf1-tdep.o): New dependency list.
6393 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6394 and skip_sigtramp_frame members.
6395 * alpha-linux-tdep.c: Include gdbcore.h.
6396 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6397 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6398 * alpha-osf1-tdep.c: New file.
6399 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6400 alpha-osf1-dep.c.
6401 (alpha_frame_past_sigtramp_frame): New function.
6402 (alpha_dynamic_sigtramp_offset): Ditto.
6403 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6404 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6405 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6406 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6407 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6408 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6409 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6410 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6411 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6412 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6413 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6414 to find_solib_trampoline_target.
6415 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6416 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6417 (SKIP_TRAMPOLINE_CODE): Remove.
6418 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6419 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6420 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6421 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6422 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6423 (PROC_SIGTRAMP_MAGIC): Ditto.
6424 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6425 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6426 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6427 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6428 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6429
2f4bc57b
JT
64302002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6431
6432 * NEWS: Note that Alpha targets are now multi-arch.
6433
665132f9
MS
64342002-04-24 Michael Snyder <msnyder@redhat.com>
6435
6436 * parser-defs.h (prev_lexptr): New external variable.
6437 * parse.c (parse_exp_1): Set prev_lexptr to null before
6438 calling the language-specific parser.
6439 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6440 (yyerror): Use prev_lexptr in error reporting.
6441
32872fa7
DJ
64422002-04-24 Daniel Jacobowitz <drow@mvista.com>
6443
6444 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6445 * gregset.h: If FILL_FPXREGSET is defined, provide
6446 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6447 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6448 is defined, call fill_fpxregset.
6449
57e76fac
MS
64502002-04-24 Roland McGrath <roland@frob.com>
6451
6452 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6453 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6454 (supply_gregset, supply_fpregset): New functions.
6455
6456 * gnu-nat.c (gnu_find_memory_regions): New function.
6457 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6458 (gnu_xfer_memory): Add a cast.
6459
f43845b3
MS
64602002-04-24 Michael Snyder <msnyder@redhat.com>
6461
361d1df0 6462 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6463 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6464 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6465 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6466 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6467 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6468
a0abec03
AC
6469Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6470
6471 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6472 NUM_PSEUDO_REGS can be used.
6473
d7bd68ca
AC
64742002-04-24 Andrew Cagney <ac131313@redhat.com>
6475
6476 * arch-utils.h: Update copyright.
6477
6478 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6479 * gdbarch.h, gdbarch.c: Re-generate.
6480
6481 * inferior.h (IN_SIGTRAMP): Delete definition.
6482 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6483 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6484
6485 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6486 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6487 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6488 (find_proc_framesize): Ditto.
6489 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6490 (alpha_init_extra_frame_info): Ditto.
6491 * infrun.c (handle_inferior_event): Ditto.
6492 (handle_inferior_event): Ditto.
6493 (check_sigtramp2): Ditto.
6494 * blockframe.c (create_new_frame): Ditto.
6495 (get_prev_frame): Ditto.
6496 * ppc-linux-tdep.c: Update comments.
6497 * i386-linux-tdep.c: Update comments.
6498 * breakpoint.c (bpstat_what): Update comment.
6499
4867e41e
DM
65002002-04-24 David S. Miller <davem@redhat.com>
6501
21d83aa5
DM
6502 * i960-tdep.c (register_in_window_p): New function.
6503 (i960_find_saved_register): Use it instead of
6504 REGISTER_IN_WINDOW_P.
6505 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6506
4867e41e
DM
6507 * symtab.h (find_stab_function_addr): Kill extern.
6508 * minsyms.c (find_stab_function_addr): Remove from here...
6509 * dbxread.c: ... to here, and mark it static.
6510
69cdf6a2
DM
65112002-04-20 David S. Miller <davem@redhat.com>
6512
6513 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6514 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6515
5a595886
DM
65162002-04-21 David S. Miller <davem@redhat.com>
6517
6518 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6519 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6520 (vx_write_register): Likewise.
6521
1da1a192
JB
65222002-04-23 J. Brobecker <brobecker@gnat.com>
6523
6524 * source.c (is_regular_file): New function.
6525 (openp): Check wether file to open is a regular file
6526 to avoid opening directories.
6527
baa6f10b
JT
65282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6529
6530 * findvar.c (extract_signed_integer): Cast printf argument
6531 to suppress format warning.
6532 (extract_unsigned_integer): Likewise.
6533 * infcmd.c (registers_info): Likewise.
6534 * top.c (get_prompt_1): Likewise.
6535 * valops.c (value_assign): Likewise.
6536 * valprint.c (print_decimal): Likewise.
6537
b2c4da81
L
65382002-04-22 H.J. Lu (hjl@gnu.org)
6539
6540 * c-exp.y (typebase): Support
361d1df0 6541
b2c4da81
L
6542 [long|long long|short] [signed|unsigned] [int|]
6543
6544 and
6545
6546 signed [long|long long|short] int
6547
f267bd6a
JT
65482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6549
6550 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6551 and vax-tdep.h.
6552 * vax-tdep.h: New file.
6553 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6554 Make several routines static.
6555 (vax_get_saved_register): New function.
6556 (vax_gdbarch_init): New function.
6557 (_initialize_vax_tdep): Register vax_gdbarch_init.
6558 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6559 Remove macros now under the control of gdbarch.
6560
da3c6d4a
MS
65612002-04-22 Michael Snyder <msnyder@redhat.com>
6562
11d3b27d
MS
6563 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6564 Some whitespace and coding standards tweaks.
da3c6d4a 6565
a33f7558
JT
65662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6567
6568 * vax-tdep.c: Include regcache.h.
6569 (vax_call_dummy_words): New.
6570 (sizeof_vax_call_dummy_words): New.
6571 (vax_fix_call_dummy): New function.
6572 (vax_saved_pc_after_call): Ditto.
6573 * config/vax/tm-vax.h: Don't include regcache.h.
6574 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6575 (CALL_DUMMY): Remove.
6576 (CALL_DUMMY_WORDS): Define.
6577 (SIZEOF_CALL_DUMMY_WORDS): Define.
6578 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6579
47a73475
MS
65802002-04-18 Michael Snyder <msnyder@redhat.com>
6581
6582 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6583
52efde73
JT
65842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6585
6586 * vax-tdep.c (vax_frame_chain): New function.
6587 (vax_push_dummy_frame): Ditto.
6588 (vax_pop_frame): Ditto.
6589 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6590 (FRAMELESS_FUNCTION_INVOCATION): Use
6591 generic_frameless_function_invocation_not.
6592 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6593 (POP_FRAME): Use vax_pop_frame.
6594
ea74468c
JT
65952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6596
6597 * vax-tdep.c (vax_store_struct_return): New function.
6598 (vax_extract_return_value): Ditto.
6599 (vax_store_return_value): Ditto.
6600 (vax_extract_struct_value_address): Ditto.
6601 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6602 vax_store_struct_return.
6603 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6604 (STORE_RETURN_VALUE): Use vax_store_return_value.
6605 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6606
5516aa92
JT
66072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6608
6609 * vax-tdep.c (vax_frame_saved_pc): New function.
6610 (vax_frame_args_address_correct): Ditto.
6611 (vax_frame_args_address): Ditto.
6612 (vax_frame_locals_address): Ditto.
6613 (vax_frame_num_args): Move code to be in proximity to
6614 other frame-related functions.
6615 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6616 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6617 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6618 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6619 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6620
36af0b35
L
66212002-04-22 H.J. Lu (hjl@gnu.org)
6622
6623 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6624 includedir.
6625
ab62c900
JT
66262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6627
6628 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6629 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6630 (FRAME_INIT_SAVED_REGS): New macro.
6631
7232b100
JT
66322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6633
6634 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6635
b70d2aee
JT
66362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6637
6638 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6639 where needed.
6640 (fetch_osf_core_registers): Likewise.
6641 (supply_gregset): Likewise.
6642
a0e8a2d1 66432002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6644
a0e8a2d1
JB
6645 * symfile.h (get_section_index): Define.
6646 * symfile.c (get_section_index): New function.
6647 * mdebugread.c (SC_IS_SBSS): New macro.
6648 (SC_IS_BSS): Return true for the scBss storage class only, as
6649 the scSBss storage class refers to the .sbss section.
6650 (parse_partial_symbols): Discard the symbols which associated
6651 section does not exist.
6652 Make sure to use the .sbss section index for symbols which
6653 storage class is scBss, rather than using the .bss section index.
6654
51eb8b08
JT
66552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6656
6657 * vax-tdep.c: Update copyright years.
6658 (vax_register_name): New function.
6659 (vax_register_byte): Ditto.
6660 (vax_register_raw_size): Ditto.
6661 (vax_register_virtual_size): Ditto.
6662 (vax_register_virtual_type): Ditto.
6663 * config/vax/tm-vax.h: Update copyright years.
6664 (REGISTER_NAMES): Remove.
6665 (REGISTER_NAME): Define.
6666 (REGISTER_BYTE): Use vax_register_byte.
6667 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6668 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6669 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6670
6cc1c0a8
AC
66712002-04-21 Andrew Cagney <ac131313@redhat.com>
6672
6673 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6674 declaration
6675 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6676
9319a2fe
DM
66772002-04-21 David S. Miller <davem@redhat.com>
6678
6679 * arch-utils.c (generic_prologue_frameless_p): Kill
6680 SKIP_PROLOGUE_FRAMELESS_P code.
6681 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6682 references.
6683 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6684 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6685 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6686 references.
6687 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6688 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6689 (sparc_gdbarch_init): Pass it to
6690 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6691
e9ed6d01
JT
66922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6693
6694 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6695 (alphabsd-nat.o): New dependency list.
6696
36012033
JT
66972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6698
6699 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6700 alphafbsd-tdep.c.
6701 (alpha-linux-tdep.o): New dependency list.
6702 (alphafbsd-tdep.o): Likewise.
6703
3379287a
JT
67042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6705
6706 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6707 to here...
6708 * alpha-tdep.c: ...from here.
6709 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6710
4bcbd6cb
JT
67112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6712
6713 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6714 prototype from here...
6715 * alpha-tdep.h: ...to here.
6716
b31da25e
AC
67172002-04-21 Andrew Cagney <ac131313@redhat.com>
6718
6719 * frame.h (selected_frame_level): Document as deprecated.
6720 (frame_relative_level): Declare.
6721 * stack.c (frame_relative_level): New function.
6722 (selected_frame_level): Document as deprecated.
6723 (select_frame): Do not set the selected_frame_level.
6724
6725 * stack.c (frame_info, record_selected_frame): Update.
6726 (frame_command, current_frame_command): Update.
6727 (up_silently_base, up_command, down_silently_base): Update.
6728 (down_command): Update.
6729 * inflow.c (kill_command): Update.
6730 * tracepoint.c (finish_tfind_command): Update.
6731 * corelow.c (core_open): Update.
6732 * thread.c (info_threads_command): Update.
6733 (do_captured_thread_select): Update.
6734 * infcmd.c (finish_command): Update.
6735 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6736
9c1d6fe5
JT
67372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6738
6739 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6740
ab89facf
AC
67412002-04-21 Andrew Cagney <ac131313@redhat.com>
6742
6743 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6744 type const.
6745
82a4efa1
JT
67462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6747
6748 * alphafbsd-tdep.c: Update copyright years. Include
6749 alpha-tdep.h.
6750 (alphafbsd_use_struct_convention): Make static.
6751 (alphafbsd_init_abi): New function.
6752 (_initialize_alphafbsd_tdep): New function.
6753 * config/alpha/tm-fbsd.h: Update copyright years.
6754 (USE_STRUCT_CONVENTION): Remove.
6755
44dffaac
JT
67562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6757
6758 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6759 an Alpha ABI variant.
6760 (alpha_abi_handler_list): Declare.
6761 (alpha_gdbarch_register_os_abi): New function.
6762 (alpha_gdbarch_init): Give registered ABI variant handlers a
6763 chance to tweak the gdbarch once we have set up defaults.
6764 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6765
65585be4
JT
67662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6767
6768 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6769 to standard_coerce_float_to_double.
6770 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6771
d9b023cc
JT
67722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6773
6774 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6775 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6776 from gdbarch_tdep rather than a constant.
6777 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6778 the default text address for all Alpha Unix ABIs.
6779 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6780 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6781
dc129d82
JT
67822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6783
6784 * alpha-tdep.h: New file. Includes several Alpha target constants
6785 taken from...
6786 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6787 let gdbarch deal with.
6788 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6789 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6790 to dependency list.
6791 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6792 Alpha target register names.
6793 * alphabsd-nat.c: Likewise.
6794 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6795 Alpha target register names. Make serveral routines static.
6796 (alpha_get_saved_register): New function.
6797 (alpha_abi_names): New.
6798 (process_note_abi_tag_sections): New function.
6799 (get_elfosabi): New function.
6800 (alpha_gdbarch_init): New function.
6801 (alpha_dump_tdep): New function.
6802 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6803
d49d1e0a
AC
68042002-04-21 Andrew Cagney <ac131313@redhat.com>
6805
6806 * frame.c (find_saved_register): Delete #ifdef
6807 HAVE_REGISTER_WINDOWS code.
6808 * config/sparc/tm-sparc.h: Update comments.
6809 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6810
92e8c9ed
AC
68112002-04-21 Andrew Cagney <ac131313@redhat.com>
6812
6813 * i960-tdep.c (i960_find_saved_register): New function.
6814 (i960_get_saved_register): New function.
6815 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6816 (i960_get_saved_register): Declare.
6817 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6818
e1925118
DM
68192002-04-20 David S. Miller <davem@redhat.com>
6820
6821 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6822
29673b29
AC
68232002-04-20 Andrew Cagney <ac131313@redhat.com>
6824
6825 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6826 instead of NUM_PSEUDO_REGS.
6827
6c86dcd5
DM
68282002-04-20 David S. Miller <davem@redhat.com>
6829
6830 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6831 GDB_MULTI_ARCH_PARTIAL
6832 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6833 define, let tm-sp64.h do it.
6834
aa40ec90
JT
68352002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6836
6837 * frame.c (find_saved_register): Avoid a NULL pointer
6838 dereference and actually walk the frame list.
6839
0f79675b
AC
68402002-04-20 Andrew Cagney <ac131313@redhat.com>
6841
6842 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6843 sorted in most most-recent-used order. Document.
6844 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6845
f91305dd 68462002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6847
6848 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6849 instead of ->prev.
6850 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6851 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6852 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6853 instead of ->prev.
6854
73d322b1
EZ
68552002-04-19 Elena Zannoni <ezannoni@redhat.com>
6856
6857 Fix PR gdb/471.
6858 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6859 (build_builtin_type_vec128): Ditto.
6860 (append_composite_type_field): Fix calculation of type length in
6861 union case.
6862
ccd9a834
EZ
68632002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6864
6865 * config/djgpp/README: Update.
6866
6867 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6868 compiler warnings.
6869
a57f9e49
JT
68702002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6871
6872 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6873 (alpha_setup_arbitrary_frame): ...to this.
6874 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6875 for alpha_setup_arbitrary_frame.
6876
f4f9705a
AC
68772002-04-18 Andrew Cagney <cagney@redhat.com>
6878
6879 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6880 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6881
f4f9705a
AC
6882 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6883 * target.h (memory_breakpoint_from_pc): Update declaration.
6884 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6885
6886 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6887 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6888 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6889 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6890 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6891 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6892 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6893 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6894 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6895 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6896 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6897 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6898
6899 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6900 const pointer.
6901 * monitor.c (monitor_insert_breakpoint): Ditto.
6902 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6903
6904 * config/mcore/tm-mcore.h: Update copyright.
6905 * mem-break.c: Ditto.
6906 * xstormy16-tdep.c: Ditto.
6907
29f319b8
PM
69082002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6909
6910 * p-exp.y: Add precedence rule for '^' token.
6911 This removes the shift/reduce conflicts.
6912 Remove the comment concerning these shift/reduce conflicts.
6913
ebeac11a
EZ
69142002-04-18 Elena Zannoni <ezannoni@redhat.com>
6915
6916 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6917 (registers_powerpc_nofp): New register set for processors
6918 without floating point unit.
6919
27c31547
DM
69202002-04-18 David S. Miller <davem@redhat.com>
6921
6922 * MAINTAINERS: Add myself to write-after-approval.
6923
47a73475
MS
69242002-04-17 Michael Snyder <msnyder@redhat.com>
6925
6926 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6927
953836b2
AC
69282002-04-17 Andrew Cagney <ac131313@redhat.com>
6929
6930 * rs6000-tdep.c (frame_initial_stack_address): Use
6931 frame_register_read to read the alloca_reg.
6932
8b0d4340
AC
69332002-04-17 Andrew Cagney <ac131313@redhat.com>
6934
6935 * frame.c (find_saved_register): Find saved registers in the next
6936 not prev frame.
6937 Fix PR gdb/365.
6938
d8864532
AC
69392002-04-17 Andrew Cagney <ac131313@redhat.com>
6940
6941 * gdbarch.sh (LANG): Set to ``c''.
6942
36cc83a3 69432002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6944
36cc83a3 6945 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6946
2f4150cc 69472002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6948
6949 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6950 Update copyright.
6951
628703c6 6952 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6953 Also fix PR gdb/391.
361d1df0 6954
56157b4a
AC
69552002-04-14 Andrew Cagney <ac131313@redhat.com>
6956
6957 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6958 * aclocal.m4, configure: Re-generate.
6959 Fix PR gdb/391.
361d1df0 6960
6d1e3329
EZ
69612002-04-14 Elena Zannoni <ezannoni@redhat.com>
6962
6963 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6964 instead of tm_print_insn.
6965
cb06fa07
EZ
69662002-04-14 Elena Zannoni <ezannoni@redhat.com>
6967
6968 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6969
f208ba17
AC
69702002-04-14 Andrew Cagney <ac131313@redhat.com>
6971
6972 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6973 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6974 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6975
20f01a46
DH
69762002-04-12 Don Howard <dhoward@redhat.com>
6977
6978 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6979 max_user_call_depth.
6980 (init_cmd_lists): Initialize the new value;
6981 * cli/cli-script.c (execute_user_command): Limit the call depth of
6982 user defined commands. This avoids a core-dump when user commands
6983 are infinitly recursive.
6984
a88376a3
KB
69852002-04-12 Kevin Buettner <kevinb@redhat.com>
6986
6987 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6988 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6989 from tdep struct instead of DEFAULT_LR_SAVE.
6990 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6991 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6992 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6993
f2172603
MS
69942002-04-12 Michael Snyder <msnyder@redhat.com>
6995
694f61fb 6996 * Remote.c: Spelling fix.
20fe79c8
MS
6997 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6998 If no symbol found for "sbrk", try "_sbrk".
6999 (make_output_phdrs): Use bfd_section_name.
7000 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7001 * eval.c: Indentation fix-ups.
169a7369
MS
7002 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7003 in case it gets applied to an address that is already
7004 in the instruction space.
de74f71f
MS
7005 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7006 * symfile.c: Fix indentation, long lines.
f2172603
MS
7007 * source.c: White space fix-up.
7008
cda5a58a
AC
70092002-04-12 Andrew Cagney <cagney@redhat.com>
7010
7011 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7012 * frame.c (frame_register_read): New function. Return non-zero on
7013 success.
7014 (read_relative_register_raw_bytes_for_frame): Delete.
7015 (read_relative_register_raw_bytes): Delete.
7016 * frame.h (frame_register_read): Declare.
7017 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7018 * sh-tdep.c: Ditto.
7019 * infcmd.c (do_registers_info): Ditto.
7020 * hppa-tdep.c: Ditto.
7021 * rs6000-tdep.c: Ditto.
7022 * h8500-tdep.c: Ditto.
7023 * mips-tdep.c: Ditto.
7024 * h8300-tdep.c: Ditto.
7025 * z8k-tdep.c: Ditto.
7026
2ea5f656
KB
70272002-04-12 Kevin Buettner <kevinb@redhat.com>
7028
7029 From Jimi X <jimix@watson.ibm.com>:
7030 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7031 64-bit SysV ABI.
7032
27b15785
KB
70332002-04-12 Kevin Buettner <kevinb@redhat.com>
7034
7035 From Jimi X <jimix@watson.ibm.com>:
7036 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7037 bfd info.
7038
5d57ee30
KB
70392002-04-12 Kevin Buettner <kevinb@redhat.com>
7040
7041 From Jimi X <jimix@watson.ibm.com>:
7042 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7043 register sets for these processor variants.
7044
bc1e36ca
DJ
70452002-04-11 Daniel Jacobowitz <drow@mvista.com>
7046
bc1e36ca
DJ
7047 * regformats/reg-ppc.dat: Support FPSCR.
7048
e3f36dbd
KB
70492002-04-11 Kevin Buettner <kevinb@redhat.com>
7050
7051 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7052 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7053 Add fpscr as an invalid/unfetchable register.
7054 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7055 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7056 (fill_fpregset): Add support for register fpscr.
7057 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7058 (fill_gregset): Account for the fact that register ``mq'' might
7059 not exist.
7060 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7061 (registers_power): Add fpscr to register set at slot 71.
7062 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7063 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7064
943c9c25
MS
70652002-04-11 Michael Snyder <msnyder@redhat.com>
7066
7067 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7068 * configure: Regenerate.
7069 * config.in: Regenerate.
7070 * acconfig.h: Add define for _SYSCALL32.
7071 * core-sol2.c: Remove #define _SYSCALL32.
7072 * solib-legacy.c: Remove #define _SYSCALL32.
7073
d8c0a2e7
AC
70742002-04-10 Andrew Cagney <ac131313@redhat.com>
7075
7076 * stack.c (select_frame): Cleanup internal error message, do not
7077 use %p.
7078
7cc19214
AC
70792002-04-10 Andrew Cagney <ac131313@redhat.com>
7080
7081 * stack.c (select_frame): Check that selected_frame and the
7082 specified level are as expected.
7083 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7084 Update copyright.
7085 * frame.h (struct frame_info): Add field `level'. Update
7086 copyright.
7087 Work-in-progress PR gdb/464.
7088
67a2b77e
AC
70892002-04-10 Andrew Cagney <ac131313@redhat.com>
7090
7091 * maint.c (maint_print_section_info): Rename print_section_info.
7092 (print_bfd_section_info, print_objfile_section_info): Update.
7093 * inferior.h (struct gdbarch): Add opaque declaration.
7094 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7095 * gdbarch.h: Regenerate.
7096
8cfda98c
ML
70972002-04-10 Michal Ludvig <mludvig@suse.cz>
7098
7099 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7100 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7101 (kernel_u_size): Added.
7102 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7103 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7104
ca439ad2 71052002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7106
ca439ad2
JI
7107 * valarith.c (find_size_for_pointer_math): New function, either returns
7108 the size for a pointer's target, returns 1 for void *, or errors for
7109 incomplete types.
7110 (value_add, value_sub): use find_size_for_pointer_math.
7111
2f2893d9
DJ
71122002-04-09 Daniel Jacobowitz <drow@mvista.com>
7113
7114 * linux-low.c (linux_look_up_symbols): New hook.
7115 (linux_target_ops): Add linux_look_up_symbols.
7116 * remote-utils.c (decode_address): New function.
7117 (look_up_one_symbol): New function.
7118 * server.c (handle_query): Call target look_up_symbols hook.
7119 * server.h (look_up_one_symbol): Add prototype.
7120 * target.h (struct target_ops): Add look_up_symbols hook.
7121
96cb11df
AC
71222002-04-09 Andrew Cagney <ac131313@redhat.com>
7123
7124 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7125 override FP_REGNUM with frame->fp. Update copyright.
7126 * parse.c (num_std_regs, std_regs): Delete.
7127 (target_map_name_to_register): Do not search std_regs. Update
7128 function description.
7129 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7130 declarations. Update copyright.
7131 Fix PR gdb/251.
361d1df0 7132
97658e92
DJ
71332002-04-09 Daniel Jacobowitz <drow@mvista.com>
7134
7135 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7136 after the last symbol in a block.
7137
6044e3eb
PM
71382002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7139
7140 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7141 is non zero as a found symbol.
7142
0406ec40
AC
71432002-04-08 Andrew Cagney <ac131313@redhat.com>
7144
7145 * findvar.c: Include "builtin-regs.h".
7146 (value_of_register): Call value_of_builtin_reg when applicable.
7147 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7148 (target_map_name_to_register): Call
7149 builtin_reg_map_name_to_regnum.
7150 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7151 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7152 (builtin_regs_h): Define.
7153 (builtin-regs.o): New target.
7154 (findvar.o): Add $(builtin_regs_h).
7155 * builtin-regs.c, builtin-regs.h: New files.
7156 * std-regs.c: New file.
7157 Partial fix for PR gdb/251.
7158
56a6dfb9
KB
71592002-04-08 Kevin Buettner <kevinb@redhat.com>
7160
7161 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7162 it's no longer required.
7163
3a808432
AC
71642002-04-08 Andrew Cagney <ac131313@redhat.com>
7165
7166 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7167
7c40d541
KB
71682002-04-08 Kevin Buettner <kevinb@redhat.com>
7169
7170 From Jimi X <jimix@watson.ibm.com>:
7171 * rs6000-tdep.c (rs6000_software_single_step): Use
7172 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7173 and size. Use target_insert_breakpoint() and
7174 target_remove_breakpoint() to insert and remove breakpoints
7175 instead of explicit memory reads and writes.
7176
cc9836a8
KB
71772002-04-08 Kevin Buettner <kevinb@redhat.com>
7178
7179 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7180 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7181 ELF_OBJECT_FORMAT ifdef.
7182
7495d1dc
KB
71832002-04-08 Kevin Buettner <kevinb@redhat.com>
7184
7185 From Jimi X <jimix@watson.ibm.com>:
7186 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7187
4288e836
KB
71882002-04-08 Kevin Buettner <kevinb@redhat.com>
7189
7190 From Jimi X <jimix@watson.ibm.com>:
7191 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7192 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7193
a4e4e501
MK
71942002-04-07 Mark Kettenis <kettenis@gnu.org>
7195
7196 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7197 s/asprintf/xasprintf/.
7198 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7199
006defba
AC
72002002-04-07 Andrew Cagney <ac131313@redhat.com>
7201
7202 I believe Jeff Law denies responsability for this one:
7203 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7204 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7205 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7206 Work-around for PR gdb/366.
7207
7aa83cac
EZ
72082002-04-07 Elena Zannoni <ezannoni@redhat.com>
7209
7210 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7211 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7212 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7213
cf1fcca1
EZ
72142002-04-07 Elena Zannoni <ezannoni@redhat.com>
7215
7216 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7217 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7218 information.
7219
3f289e6f
AC
72202002-04-07 Andrew Cagney <ac131313@redhat.com>
7221
7222 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7223 maintainer.
7224
129188f6
AC
72252002-04-07 Andrew Cagney <ac131313@redhat.com>
7226
7227 * README (Reporting Bugs in GDB): Document the bug web page as the
7228 prefered way of submitting bugs.
7229 Fix PR gdb/402.
7230
1200cd6e
AC
72312002-04-06 Andrew Cagney <ac131313@redhat.com>
7232
7233 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7234 -1. Update comment.
7235 * gdbarch.h, gdbarch.c: Re-generate.
7236
2853c33c
AS
72372002-04-07 Andreas Schwab <schwab@suse.de>
7238
7239 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7240 buffer to regcache_collect.
7241
c2169756
AC
72422002-04-06 Andrew Cagney <ac131313@redhat.com>
7243
7244 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7245 * gdbarch.c, gdbarch.h: Re-generate.
7246
25f1b008
AC
72472002-04-06 Andrew Cagney <ac131313@redhat.com>
7248
7249 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7250 declaration. Fix -Werror.
7251
59263426
DJ
72522002-04-05 Daniel Jacobowitz <drow@mvista.com>
7253
7254 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7255 * gdbarch.c: Regenerate.
7256
f5db4da3
MS
72572002-04-05 Michael Snyder <msnyder@redhat.com>
7258
80f8a6eb
MS
7259 * breakpoint.c (clear_command): Rewrite middle section to
7260 combine two loops with identical control conditions.
7261 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7262 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7263
ad3dcc5c
L
72642002-04-05 H.J. Lu (hjl@gnu.org)
7265
7266 * solib-svr4.c (bkpt_names): Add "__start".
7267
f32e7a74
AC
72682002-04-04 Andrew Cagney <ac131313@redhat.com>
7269
7270 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7271 as test for 64 bit target.
7272
8227c0ff
AC
72732002-04-05 Andrew Cagney <ac131313@redhat.com>
7274
7275 * h8500-tdep.c (h8500_write_fp): Delete function.
7276 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7277 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7278 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7279 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7280 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7281 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7282 (s390_write_fp):
7283 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7284 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7285 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7286 (d10v_write_fp): Delete function.
7287 * inferior.h (write_fp, generic_target_write_fp): Delete
7288 declarations.
7289 * regcache.c (generic_target_write_fp): Delete function.
7290 (write_fp): Delete function.
7291 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7292 * gdbarch.h, gdbarch.c: Regenerate.
7293 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7294 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7295 (sparc64_write_fp): Delete declaration.
7296 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7297 (h8500_write_fp): Delete declaration.
7298
2757dd86
AC
72992002-04-04 Andrew Cagney <ac131313@redhat.com>
7300
7301 * sparc-tdep.c (sparc64_write_fp): Delete.
7302 (sparc_push_dummy_frame): Replace write_fp call with code to store
7303 the FP directly.
7304 (sparc_gdbarch_init): Do not initialize write_fp.
7305
c69255e1
KB
73062002-04-05 Kevin Buettner <kevinb@redhat.com>
7307
7308 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7309 clause.
7310
ae767bfb
JB
73112002-03-29 Jim Blandy <jimb@redhat.com>
7312
7313 * stack.c (get_selected_block): Add new argument `addr_in_block',
7314 used to return the exact code address we used to select the block,
7315 not just the block.
7316 * blockframe.c (get_frame_block, get_current_block): Same.
7317 * frame.h (get_frame_block, get_current_block,
7318 get_selected_block): Update declarations.
7319 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7320 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7321
84d2ac95
MS
73222002-04-05 Michael Snyder <msnyder@redhat.com>
7323
7324 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7325 warning message.
7326
596aa3bf
JB
73272002-04-05 J. Brobecker <brobecker@gnat.com>
7328
7329 * utils.c (xfullpath): New function.
7330 * defs.h (xfullpath): Add declaration.
7331 * source.c (openp): Use xfullpath in place of gdb_realpath to
7332 avoid resolving the basename part of filenames when the
7333 associated file is a symbolic link. This fixes a potential
7334 inconsistency between the filenames known to GDB and the
7335 filenames it prints in the annotations.
7336 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7337 to be able to match a filename with either the real filename, or
7338 the name of any symbolic link to this file.
7339 (lookup_partial_symtab): Ditto.
7340
c02f5703
MS
73412002-04-04 Michael Snyder <msnyder@redhat.com>
7342
7343 * breakpoint.c: Add support for hardware breakpoints in overlays.
7344 (overlay_events_enabled): New state variable.
7345 (insert_breakpoints): Use overlay_events_enabled to decide
7346 whether to attempt to set a breakpoint at the overlay load addr.
7347 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7348 (remove_breakpoint): Use overlay_events_enabled to decide
7349 whether breakpoints need to be removed from overlay load addr.
7350 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7351 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7352 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7353 disable_overlay_breakpoints): Update overlay_events_enabled.
7354
5fb290d7
DJ
73552002-04-04 Daniel Jacobowitz <drow@mvista.com>
7356
7357 * dwarf2read.c (struct function_range): New.
7358 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7359 (check_cu_functions): New.
7360 (read_file_scope): Initialize global function lists.
7361 Call dwarf_decode_line after processing children.
7362 (read_func_scope): Add to global function list.
7363 (dwarf_decode_lines): Call check_cu_functions everywhere
7364 record_line is called. Call record_line with a linenumber
7365 of 0 to mark sequence ends.
7366
7b3fabf0
ML
73672002-04-04 Michal Ludvig <mludvig@suse.cz>
7368
361d1df0 7369 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7370 change sync with glibc.
7371
bce58c09
JB
73722002-04-03 Jim Blandy <jimb@redhat.com>
7373
7374 * configure.in: Call AC_C_INLINE.
7375 * configure: Regenerated.
361d1df0 7376
2fccf04a
DJ
73772002-04-01 Daniel Jacobowitz <drow@mvista.com>
7378
7379 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7380 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7381
2d1bfe2e
MK
73822002-03-31 Mark Kettenis <kettenis@gnu.org>
7383
a5941fbf
MK
7384 * NEWS: Mention gcore support on FreeBSD/i386.
7385
a90cd31d
MK
7386 * fbsd-proc.c: New file.
7387 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7388 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7389
2d1bfe2e
MK
7390 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7391 while statement.
7392
9eb6e5a1
JB
73932002-03-29 Jim Blandy <jimb@redhat.com>
7394
7395 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7396 unescaped newlines in string literals, but newer ones don't. So
7397 escape them.
7398
f02df580
MS
73992002-03-26 Michael Snyder <msnyder@redhat.com>
7400 Andrew Cagney <cagney@redhat.com>
7401
361d1df0 7402 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7403 restore file to memory.
7404 * cli/cli-dump.h: New file.
7405 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7406 * NEWS: Mention new commands.
f02df580 7407
109f874e
MS
74082002-03-28 Michael Snyder <msnyder@redhat.com>
7409
7410 * symfile.c (symbol_file_add): Move test for null symbols to later.
7411
520f6ade
AC
74122002-03-27 Andrew Cagney <ac131313@redhat.com>
7413
7414 From veksler at il.ibm.com:
7415 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7416 the xstrduped original path.
7417 Fix PR gdb/417.
7418
d4654627
MS
74192002-03-27 Michael Snyder <msnyder@redhat.com>
7420
7421 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7422 * infcmd.c (_initialize_infcmd): Ditto.
7423 * language.c (_initialize_language): Ditto.
7424 * symfile.c (_initialize_symfile): Ditto.
7425 * top.c (_init_main): Ditto.
7426 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7427
6be8bc0c
EZ
74282002-03-27 Elena Zannoni <ezannoni@redhat.com>
7429
7430 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7431 vector registers handling.
7432 (skip_prologue): Handle new AltiVec instructions. Fill in new
7433 fields of frame data.
7434 (frame_get_saved_regs): Fill in information for AltiVec registers.
7435
12af6855
JB
74362002-03-27 Jim Blandy <jimb@redhat.com>
7437
7438 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7439 a function; leave this macro here to invoke that function.
7440 (symbol_init_mangled_name): Declaration for that function.
7441 * symtab.c (symbol_init_mangled_name): New function.
7442
dc672865
AC
74432002-03-27 Andrew Cagney <ac131313@redhat.com>
7444
7445 * valarith.c: Replace strerror with safe_strerror.
7446 * tracepoint.c: Ditto.
7447 * lin-lwp.c: Ditto.
7448 * go32-nat.c: Ditto.
7449 * inflow.c: Ditto.
7450 * gnu-nat.c: Ditto.
7451
d96429cd
AS
74522002-03-27 Andreas Schwab <schwab@suse.de>
7453
7454 * event-top.c (command_line_handler): Remove useless if.
7455
7e336ba1
AJ
74562002-03-27 Andreas Jaeger <aj@suse.de>
7457
7458 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7459 comment.
7460
de220d0f
ML
74612002-03-27 Michal Ludvig <mludvig@suse.cz>
7462
7463 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7464 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7465 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7466 (x86_64_linux_dr_get_status, supply_gregset),
7467 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7468 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7469 (x86_64_register_info_table): Add.
7470 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7471 (x86_64_register_raw_size, x86_64_register_virtual_type),
7472 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7473 general x86_64_register_info_table.
7474 (i386_gdbarch_init): gdbarch_register_bytes is now set
7475 dynamicaly during initialization.
7476 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7477 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7478
0e98d0a7
DJ
74792002-03-27 Daniel Jacobowitz <drow@mvista.com>
7480
7481 * gdbserver/server.c (main): Call target_signal_to_host_p
7482 and target_signal_to_host on signals received from the remote.
7483 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7484 target_signal_from_host on signals sent to the remote.
7485 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7486 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7487
3130066b
DJ
74882002-03-27 Daniel Jacobowitz <drow@mvista.com>
7489
7490 * signals/signals.c: Include "server.h" in gdbserver build.
7491 (target_signal_from_name): Don't use STREQ.
7492 (_initialize_signals): Likewise. Don't include function in
7493 gdbserver build.
7494
9aedf4f4
DJ
74952002-03-27 Daniel Jacobowitz <drow@mvista.com>
7496
7497 * signals.c: Moved to...
7498 * signals/signals.c: Here.
7e336ba1 7499 * Makefile (signals.o): Update.
9aedf4f4 7500
3fa41cdb
JL
75012002-03-26 Jeff Law (law@redhat.com)
7502
7503 * somread.c (som_symtab_read): Remove some commented out code and
7504 updated related comments. Do not set the minimal symbol table to
7505 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7506 in a dynamic executable.
7507 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7508 where we are unable to find the minimal symbol for the given
7509 PC value.
7510
ee677e8d
MS
75112002-03-25 Jeff Law (law@redhat.com)
7512
7513 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7514
e76e1718
ML
75152002-03-25 Michal Ludvig <mludvig@suse.cz>
7516
7517 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7518
18a642a1
AC
75192002-03-23 Andrew Cagney <ac131313@redhat.com>
7520
7521 * command.h: Update copyright.
7522 (struct cmd_list_element): Replace definition with opaque
7523 declaration.
7524 (enum cmd_types): Document that it will eventually be moved to
7525 cli/cli-decode.h
7526 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7527 (MALLOCED_REPLACEMENT): Delete macro.
7528 * Makefile.in (cli_decode_h): Add $(command_h).
7529 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7530 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7531 * completer.c: Include "cli/cli-decode.h".
7532 * maint.c: Include "cli/cli-decode.h".
7533 * cli/cli-decode.h: Include "command.h".
7534 (enum command_class): Delete.
7535 (enum cmd_types): Comment out.
7536 (enum cmd_auto_boolean): Delete.
7537 (enum var_types): Delete.
7538
b2875cc0
AC
75392002-03-23 Andrew Cagney <ac131313@redhat.com>
7540
7541 * cli/cli-decode.c: Include "gdb_assert.h".
7542 (add_set_or_show_cmd): New static function.
7543 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7544 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7545 all fields, such as func, from the set command.
7546
3b45974e
AC
75472002-03-23 Andrew Cagney <ac131313@redhat.com>
7548
7549 * MAINTAINERS (sh-elf): Change warning flag to -w.
7550
823ca731
AC
75512002-03-23 Andrew Cagney <cagney@redhat.com>
7552
7553 * defs.h (error): Add printf format attribute.
7554 * thread-db.c (thread_from_lwp): Fix error format string.
7555 * stack.c (parse_frame_specification): Ditto.
7556 * cli/cli-decode.c (undef_cmd_error): Ditto.
7557 * scm-lang.c (scm_lookup_name): Ditto.
7558 * tracepoint.c (trace_error): Ditto.
7559 * remote-utils.c (usage): Ditto.
7560 * remote.c (compare_sections_command): Ditto.
7561 Fix PR gdb/328.
7562
0e101458
AC
75632002-03-22 Andrew Cagney <ac131313@redhat.com>
7564
7565 * gdbtypes.c (append_composite_type_field): New function.
7566 (init_composite_type): New function.
7567 * gdbtypes.h (append_composite_type_field): Declare.
7568 (init_composite_type): Ditto.
7569
8e0662df
EZ
75702002-03-22 Elena Zannoni <ezannoni@redhat.com>
7571
7572 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7573 function.
8e0662df
EZ
7574 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7575 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7576 structure returning convention for SYSV ABI case, but not
7577 for GNU/Linux, FreeBSD, or NetBSD.
7578
3121eff0
DJ
75792002-03-22 Daniel Jacobowitz <drow@mvista.com>
7580
7581 * symtab.h (lookup_block_symbol): Add mangled_name argument
7582 to prototype.
7583
7584 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7585 with new mangled_name argument.
7586 * linespec.c (decode_line_1): Likewise.
7587 * valops (value_of_this): Likewise.
7588 * symtab.c (lookup_transparent_type): Likewise.
7589 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7590 (lookup_symbol): If we are given a mangled name, pass it down
7591 to lookup_symbol_aux.
7592 (lookup_block_symbol): If we are given a mangled name to check
7593 against, only return symbols which match it.
7594
349b409f
CF
75952002-03-22 Christopher Faylor <cgf@redhat.com>
7596
7597 * win32-nat.c (child_create_inferior): Check for proper shell to use
7598 here, in case the user changes it on the fly.
7599 (_initialize_inftarg): Remove shell path considerations.
7600
2a873819
EZ
76012002-03-21 Elena Zannoni <ezannoni@redhat.com>
7602
7603 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7604 for gdbarch_max_register_raw_size and max_register_virtual_size.
7605 Adjust copyright year.
7606
a1b9830c
DJ
76072002-03-21 Daniel Jacobowitz <drow@mvista.com>
7608
7609 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7610 in a function to cover the entire beginning of the function
7611 as well if it does not already.
7612
8b5790f2
TR
76132002-03-21 Tom Rix <trix@redhat.com>
7614
7615 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7616 (rs6000_ptrace64): Renamed from ptrace64.
7617
bdbe5747
MH
76182002-03-20 Martin M. Hunt <hunt@redhat.com>
7619
7620 * gdbserver/remote-utils.c (remote_open): Don't call
7621 getprotobyname, we're all using TCP here so just use
7622 IPPROTO_TCP.
7e336ba1 7623 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7624
76252002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7626
bdbe5747
MH
7627 * regcache.c (_initialize_regcache): No need to call
7628 build_regcache() at this time; it gets called whenever
7629 the gdbarch changes.
7630
7781cd62
DB
76312002-03-20 David O'Brien <obrien@FreeBSD.org>
7632
7633 * sparc-nat.c: Include sys/param.h where possible.
7634
f65ca430
DJ
76352002-03-20 Daniel Jacobowitz <drow@mvista.com>
7636
7637 Fix PR gdb/422.
7638 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7639 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7640 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7641 complex types.
7642 * stabsread.c (rs6000_builtin_type): Likewise.
7643 (read_sun_floating_type): Likewise.
7644
0c867556
PS
76452002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7646
7647 * stabsread.c (read_member_functions): Remove skip code for duplicate
7648 constructor/destructor methods. Use standard parsing for these
7649 methods and just do not chain them to the list of methods after
7650 parsing.
7651
12b9c64f
AO
76522002-03-19 Alexandre Oliva <aoliva@redhat.com>
7653
7654 * coffread.c: Remove redundant static declarations. Replace
7655 occurrences of `PTR' with `void *'.
7656 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7657 * top.h (quit_cover): Likewise.
7658 * defs.h (catch_errors): Likewise.
7659
349c5d5f
AC
76602002-03-18 Andrew Cagney <ac131313@redhat.com>
7661
7662 * defs.h (XMALLOC): Define.
7663 * gdb-events.sh (XMALLOC): Delete macro.
7664 * gdb-events.c, gdb-events.h: Regenerate.
7665 * gdbarch.sh (XMALLOC): Delete macro.
7666 * gdbarch.c: Regenerate.
7667 * serial.c (XMALLOC): Delete macro.
7668 * ui-file.c (XMALLOC): Ditto.
7669 * ser-unix.h (XMALLOC): Ditto.
7670 * sh-tdep.c (XMALLOC): Ditto.
7671 * ui-out.c (XMALLOC): Ditto.
7672 * utils.c (XMALLOC): Ditto.
7673 * i386-tdep.c (XMALLOC): Ditto.
7674 * gdb-events.c (XMALLOC): Ditto.
7675 * d10v-tdep.c (XMALLOC): Ditto.
7676 * cli-out.c (XMALLOC): Ditto.
7677
7678 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7679 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7680 * ui-file.c, ui-out.c: Ditto.
7681
7d0766f3
AC
76822002-03-18 Andrew Cagney <ac131313@redhat.com>
7683
7684 * command.h (struct cmd_list_element): Add field context.
7685 (set_cmd_context, get_cmd_context): Declare.
7686 * cli/cli-decode.h: Ditto.
7687 * cli/cli-decode.c (get_cmd_context): New function.
7688 (set_cmd_context): New function.
7689 (add_cmd): Initialize context.
7690 Part of fixing PR gdb/145 and PR gdb/146.
7691
5913bcb0
AC
76922002-03-17 Andrew Cagney <ac131313@redhat.com>
7693
1868c04e
AC
7694 * cli/cli-decode.c (cmd_type): New function.
7695 * command.h (cmd_type): Declare.
7696 * infrun.c (set_schedlock_func): Call function cmd_type.
7697 * kod.c (kod_set_os): Call cmd_type.
7698 * cris-tdep.c (cris_version_update): Use function cmd_type.
7699 (cris_mode_update, cris_abi_update): Ditto.
7700
5913bcb0
AC
7701 * command.h: (execute_cmd_post_hook): Declare.
7702 (execute_cmd_pre_hook): Declare.
7703 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7704 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7705 functions. Execute pre/post hook while ensuring that afterwords
7706 hook_in is cleared.
7707 * top.c (execute_command): Use execute_cmd_post_hook, and
7708 execute_cmd_pre_hook to execute pre/post commands.
7709 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7710 hook_stop_stub.
7711 (hook_stop_stub): Call execute_cmd_pre_hook.
7712
b51450c9
AC
77132002-03-17 Andrew Cagney <ac131313@redhat.com>
7714
7715 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7716 set'' and this leads to a core dump. Move xstrdup of
7717 operating_system to after check that it is not NULL.
7718
f66c9f11
AC
77192002-03-17 Andrew Cagney <ac131313@redhat.com>
7720
8e694ecf
AC
7721 * kod.c (kod_set_os): Remove unnecessary check that
7722 ``command->type'' is set_cmd.
7723
f66c9f11
AC
7724 * valprint.c (set_input_radix): Use input_radix.
7725 (set_output_radix): Use output_radix.
7726 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7727 isn't reverted.
7728
9d01611c
AC
77292002-03-16 Andrew Cagney <ac131313@redhat.com>
7730
7731 * value.h (struct value): Delete field ``substring_addr''. Change
7732 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7733 force_core_addr_align and force_pointer_aligh.
7734
7735 * value.h (struct value): Fix typo in above change.
9d01611c 7736
4156bb53
PS
77372002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7738
7739 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7740 to fix internal_error from ``maintenance print architecture''.
7741
0e5e3ea6
PS
77422002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7743
7744 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7745 for gcc versions after gcc-2.8.1.
7746
9b013045
PS
77472002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7748
7749 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7750 for method resolution. Restore adjustment of ``this'' pointer after
7751 calling value_struct_elt, which was accidentally removed during the
7752 HP merge.
7753
376c9600
AC
77542002-03-15 Andrew Cagney <ac131313@redhat.com>
7755
7756 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7757 value_of_register.
7758 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7759 get_saved_register.
7760 * value.h (value_of_register): Update.
7761
a4db0f07
RH
77622002-03-14 Richard Henderson <rth@redhat.com>
7763
7764 * configure.in: Detect declaration for canonicalize_file_name.
7765 * utils.c (canonicalize_file_name): Declare, if needed.
7766 (gdb_realpath): Prefer realpath if available and usable.
7767 * config.in, configure: Rebuild.
7768
96383835
RH
77692002-03-14 Richard Henderson <rth@redhat.com>
7770
7771 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7772 a constant array bound.
7773
7774 * MAINTAINERS: Add myself to write-after-approval.
7775
75245b24
MS
77762002-03-14 Michael Snyder <msnyder@redhat.com>
7777
7778 * symfile.c (syms_from_objfile): Return immediately if no syms.
7779 (symbol_file_add): Return immediately if no syms.
7780 (find_sym_fns): Return immediately if no syms.
7781
e641a1ca
ML
77822002-03-13 Michal Ludvig <mludvig@suse.cz>
7783
7784 * gdbserver/remote-util.c (remote_open): Print remote-side's
7785 IP address when remote debugging over the network.
7e336ba1 7786
df08bfec
DB
77872002-03-12 David O'Brien <obrien@FreeBSD.org>
7788
7789 * config/sparc/fbsd.mh: Fix copyright.
7790 * config/sparc/fbsd.mt: Likewise.
7791
9a57864f
RE
77922002-03-11 Richard Earnshaw <rearnsha@arm.com>
7793
7794 * MAINTAINERS: Fix typo in name of gdb warnings option.
7795 (x86-64): Fix formating so that this can be parsed by awk.
7796
dd7bf85e
DJ
77972002-03-10 Daniel Jacobowitz <drow@mvista.com>
7798
7799 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7800 * defs.h: Include "gdb/signals.h".
7801 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7802
33a0a2ac
ML
78032002-03-10 Michal Ludvig <mludvig@suse.cz>
7804
7805 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7806 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7807 from x86-64-tdep.h
7808
dd824b04
DJ
78092002-03-10 Daniel Jacobowitz <drow@mvista.com>
7810 Don Howard <dhoward@redhat.com>
7811
7812 * mips-tdep.c (ST0_FR): Define.
7813 (mips2_fp_compat): New function, temporarily disabled.
7814 (mips_read_fp_register_single): New function.
7815 (mips_read_fp_register_double): New function.
7816 (mips_print_register): Use them.
7817 (do_fp_register_row): Likewise.
7818
6a41ff59
AC
78192002-03-09 Andrew Cagney <ac131313@redhat.com>
7820
7821 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7822 approval''.
7823
4ea09c10
PS
78242002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7825
7826 * stabsread.c (read_member_functions): Fix is_stub test for
7827 static member functions, improve comment.
7828
6ccc741d
RE
78292002-03-07 Richard Earnshaw <rearnsha@arm.com>
7830
7831 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7832 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7833 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7834 commands that set boolean values.
7835 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7836 (arm_rdi_resume): Always initialize PC.
7837 (arm_rdi_open): Don't use rslt as a boolean.
7838 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7839 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7840 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7841 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7842
438013df
AO
78432002-03-06 Alexandre Oliva <aoliva@redhat.com>
7844
7845 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7846 * configure: Rebuilt.
7847
70ed8774
SC
78482002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7849
7850 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7851 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7852
5ba2abeb
AC
78532002-03-06 Andrew Cagney <ac131313@redhat.com>
7854
7855 * cli/cli-decode.c (set_cmd_completer): New function.
7856 * command.h (set_cmd_completer): Declare.
7857 * cli/cli-decode.h (set_cmd_completer): Ditto.
7858
7859 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7860 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7861 * win32-nat.c (_initialize_inftarg): Ditto.
7862 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7863 * proc-api.c (_initialize_proc_api): Ditto.
7864 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7865 * source.c (_initialize_source): Ditto.
7866 * exec.c (_initialize_exec): Ditto.
7867 * solib.c (_initialize_solib): Ditto.
7868 * top.c (init_main): Ditto.
7869 * tracepoint.c (_initialize_tracepoint): Ditto.
7870 * symfile.c (_initialize_symfile): Ditto.
7871 * printcmd.c (_initialize_printcmd): Ditto.
7872 * infcmd.c (_initialize_infcmd): Ditto.
7873 * corefile.c (_initialize_core): Ditto.
7874
f779ca99
AC
78752002-03-05 Andrew Cagney <ac131313@redhat.com>
7876
7877 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7878
01a3934b
AC
78792002-03-05 Andrew Cagney <ac131313@redhat.com>
7880
7881 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7882
37057839
AC
78832002-03-05 Andrew Cagney <ac131313@redhat.com>
7884
7885 * NEWS: Update headings, 5.2 has branched.
7886
c6ecbae5
DJ
78872002-03-04 Daniel Jacobowitz <drow@mvista.com>
7888
7889 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7890 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7891 (register_addr, REGISTER_RAW_SIZE): Likewise.
7892 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7893 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7894
e9f30c21
ML
78952002-03-03 Michal Ludvig <mludvig@suse.cz>
7896
7897 * MAINTAINERS (x86-64): Add myself.
7898 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7899 changed value_ptr -> struct value *
7900
54394ac3
DB
79012002-03-01 David O'Brien <obrien@FreeBSD.org>
7902
7903 * configure.host (sparc64-*-freebsd): Add.
7904 * configure.tgt: Likewise.
7905 * config/sparc/fbsd.mh: New file.
7906 * config/sparc/fbsd.mt: Likewise.
7907 * config/sparc/nm-fbsd.h: Likewise.
7908 * config/sparc/tm-fbsd.h: Likewise.
7909
bfe95955
DJ
79102002-03-01 Daniel Jacobowitz <drow@mvista.com>
7911
7912 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7913 regformats/reg-s390x.dat.
7914
f33c6cbf
AC
79152002-03-01 Andrew Cagney <ac131313@redhat.com>
7916
7917 * utils.c: Add FIXME explaining true/false problem.
7918
5ecaa7dd
AC
79192002-02-28 Andrew Cagney <ac131313@redhat.com>
7920
7921 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7922
2a251cc2
MC
79232002-02-28 Michael Chastain <mec@shout.net>
7924
7925 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7926
6a8031a3 79272002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7928
7929 * gdbserver/linux-s390-low.c: New file.
7930 * regformats/reg-s390.dat: New file.
7931 * regformats/reg-s390x.dat: New file.
7932 * gdbserver/configure.srv: Add S/390.
7933 * gdbserver/Makefile.in: Add S/390.
7934 * configure.tgt: Enable gdbserver for S/390.
7935
ac469903
EZ
79362002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7937
7938 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7939 first line of the doc string for "info dos", except at the end of
7940 the sentence, since the short help stops at the first period.
7941
985cb1a3
JM
79422002-02-28 Jason Merrill <jason@redhat.com>
7943
7944 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7945
c570663e
FF
79462002-02-27 Fred Fish <fnf@redhat.com>
7947
7948 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7949 comment (dumy -> dummy).
7950
43630227
PS
79512002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7952
7953 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7954
b84911e8
RB
79552002-02-27 Rodney Brown <rbrown64@csc.com.au>
7956
7957 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7958
58caa3dc
DJ
79592002-02-27 Daniel Jacobowitz <drow@mvista.com>
7960
7961 * gdbserver/acconfig.h: New file.
7962 * gdbserver/i387-fp.c: New file.
7963 * gdbserver/i387-fp.h: New file.
7964 * gdbserver/linux-x86-64.c: New file.
7965 * regformats/reg-x86-64.dat: New file.
7966 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7967 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7968 * gdbserver/configure.in: Add support for regsets.
7969 * gdbserver/config.in: Regenerate.
7970 * gdbserver/configure: Regenerate.
7971 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7972 * gdbserver/linux-low.h: New file.
7973 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7974 for regsets.
7975 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7976 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7977 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7978 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7979 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7980 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7981 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7982 "i387-fp.h". Add PTRACE_GETREGS and friends.
7983 * gdbserver/regcache.c (supply_register): New function.
7984 (supply_register_by_name): New function.
7985 (collect_register): New function.
7986 (collect_register_by_name): New function.
7987
93652174
DJ
79882002-02-27 Daniel Jacobowitz <drow@mvista.com>
7989
7990 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7991 (config.status): Add configure.srv dependency.
7992 (server_h): Add config.h dependency.
7993
a02e4a61
DJ
79942002-02-27 Daniel Jacobowitz <drow@mvista.com>
7995
7996 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7997 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7998 * gdbserver/configure.srv: Change i386-*-linux* to use
7999 reg-i386-linux.o.
8000
ce0eebec
AC
80012002-02-26 Andrew Cagney <ac131313@redhat.com>
8002
8003 * x86-64-tdep.c: Re-indent. Update copyright date.
8004
82dbc5f7
AC
80052002-02-26 Andrew Cagney <ac131313@redhat.com>
8006
8007 From Michal Ludvig <mludvig@suse.cz>:
8008 * x86-64-tdep.c (value.h): Delete.
8009 (gdb_assert.h): Include.
8010 (x86_64_register_convert_to_virtual,
8011 x86_64_register_convert_to_raw ): Add check which lets only
8012 floating-point values to be converted.
8013 (value_push): Delete.
8014 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8015 (i386_gdbarch_init): Number of register_bytes fixed.
8016
e4621584
AC
80172002-02-26 Andrew Cagney <ac131313@redhat.com>
8018
8019 * MAINTAINERS: Add x86-64 target.
8020
81a9a963
AC
80212002-02-26 Andrew Cagney <ac131313@redhat.com>
8022
8023 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8024 * osfsolib.c (solib_map_sections): Ditto.
8025 * irix5-nat.c (solib_map_sections): Ditto.
8026 * corelow.c (gdb_check_format): Ditto.
8027 * symfile.c (symfile_bfd_open): Ditto.
8028 * solib.c (solib_map_sections): Ditto.
8029 Fix PR gdb/354.
7e336ba1 8030
0f017ab9
AC
80312002-02-26 Andrew Cagney <ac131313@redhat.com>
8032
8033 * remote.c (_initialize_remote): By default, disable ``e'' and
8034 ``E'' step out-of-range packets.
8035
75738c29
AS
80362002-02-26 Andreas Schwab <schwab@suse.de>
8037
8038 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8039 m68k_linux_frame_saved_pc.
8040 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8041 in_sigtramp.
8042 (SIGCONTEXT_PC_OFFSET): Remove.
8043 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8044 m68k_linux_sigtramp_saved_pc): New functions.
8045 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8046 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8047 (UCONTEXT_PC_OFFSET): Define.
8048 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8049 non-RT and RT signal trampolines.
8050
7e8ed687
RE
80512002-02-26 Richard Earnshaw <rearnsha@arm.com>
8052
8053 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8054 (TARGET_NBPG, STACK_END_ADDR): Delete
8055 (VARIABLES_INSIDE_BLOCK): Delete.
8056
6972bc8b
AC
80572002-02-25 Andrew Cagney <ac131313@redhat.com>
8058
8059 * utils.c (perror_with_name): Make string parameter constant.
8060 (print_sys_errmsg): Ditto.
8061 (query): Ditto.
8062 * defs.h (perror_with_name): Update.
8063 (print_sys_errmsg): Update.
8064 (query): Update.
8065
aa32f823
DJ
80662002-02-25 Daniel Jacobowitz <drow@mvista.com>
8067
8068 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8069 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8070
19caaa45
PS
80712002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8072
8073 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8074 if it already matches the current architecture from the exec file.
8075 Include arch-utils.h for gdbarch_info_init prototype.
8076 * Makefile.in (rs6000-nat.o): Update dependencies.
8077
d951901f
EZ
80782002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8079
8080 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8081 list of exported variables.
8082
7ea81414
DJ
80832002-02-24 Daniel Jacobowitz <drow@mvista.com>
8084
8085 * gdbserver/configure.srv: New file.
8086 * gdbserver/configure.in: Use configure.srv instead
8087 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8088 from it.
8089 * gdbserver/configure: Regenerated.
8090 * gdbserver/terminal.h: New file.
8091 * gdbserver/Makefile.in: Update for configure changes. Remove
8092 more unneeded include paths.
8093
080fe24b
AC
80942002-02-24 Andrew Cagney <ac131313@redhat.com>
8095
8096 From wiz at danbala:
8097 * config/sparc/tm-sp64.h: Fix grammar and typos.
8098 Fix PR gdb/287.
8099
8605d56e
AC
81002002-02-24 Andrew Cagney <ac131313@redhat.com>
8101
8102 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8103 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8104 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8105 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8106 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8107 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8108 * s390-tdep.c: Ditto.
92362027
AC
8109 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8110 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8111 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8112 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8113 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8114 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8115 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8116 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8117 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8118 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8119 Fix PR gdb/378.
7e336ba1 8120
8ed32cc0
AC
81212002-02-23 Andrew Cagney <ac131313@redhat.com>
8122
a3007b6f
AC
8123 * lin-thread.c: Delete file.
8124 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8125 to gdb_proc_service.h.
8126 * configure: Re-generate.
8127
50a9e2f1
AC
8128 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8129 * serial.c (serial_open): Delete check for "ocd".
8130 Fix PR gdb/349.
8131
8b6e7932
AC
8132 * Makefile.in (linux-thread.o): Delete target.
8133 * linux-thread.c: Delete file.
8134
d155c46b
AC
8135 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8136 renamed SH files to be consistent.
8137
8ed32cc0
AC
8138 * symtab.c (sort_search_symbols): Use xfree.
8139
0e18d038
RE
81402002-02-23 Richard Earnshaw <rearnsha@arm.com>
8141
8142 * arm-linux-tdep.c (arm_linux_init_abi): Register
8143 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8144 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8145 definition with undef, since we don't want the sysvr4 definition.
8146 (SKIP_TRAMPOLINE_CODE): Likewise.
8147
27aac7ff
AC
81482002-02-23 Andrew Cagney <ac131313@redhat.com>
8149
8150 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8151
8152 * configure.in: (AC_CHECK_FUNCS) Added test for
8153 canonicalize_file_name Regenerated.
8154 * config.in, configure: Regenerated.
8155 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8156 defined use canonicalize_file_name.
7e336ba1 8157
65a6e0ee
MC
81582002-02-23 Michael Chastain <mec@shout.net>
8159
8160 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8161
47b95330
AC
81622002-02-23 Andrew Cagney <ac131313@redhat.com>
8163
8164 * README: Remove references to cygnus.com.
8165 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8166 dot com'' form. Remove references to cygnus.com and sourceware.
8167
696f451b
AC
81682002-02-23 Andrew Cagney <ac131313@redhat.com>
8169
8170 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8171 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8172 1003.1-2001 no longer allows "head -1".
8173 * gdb/Makefile.in (version.c): Likewise.
8174 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8175 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8176 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8177
bbaca940
AC
81782002-02-23 Andrew Cagney <ac131313@redhat.com>
8179
8180 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8181 * command.h (cmd_cfunc_eq): Declare.
8182 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8183
8184 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8185 ``struct cmd_list_element *''.
8186 * cli/cli-cmds.c (is_complete_command): Update. Use
8187 cmd_cfunc_eq.
8188 * top.c (execute_command): Pass the command to
8189 is_complete_command.
8190 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8191
b8b8b047
AC
81922002-02-23 Andrew Cagney <ac131313@redhat.com>
8193
8194 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8195 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8196 architecture defines.
8197 * s390-tdep.c (s390_gdbarch_init): Likewise.
8198
19d3fc80
RE
81992002-02-23 Richard Earnshaw <rearnsha@arm.com>
8200
8201 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8202 (arm_linux_push_arguments): Likewise.
8203 (arm_linux_init_abi): Register them. Also register linux-specific
8204 call_dummy_words.
8205 (find_minsym_and_objfile): Use strcmp, not STREQ.
8206 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8207 (arm_linux_call_dummy_words): Delete declaration.
8208 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8209 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8210 declarations.
8211 (LOWEST_PC): Delete.
8212
3ab13650
PS
82132002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8214
8215 * maint.c (print_section_info): Do not prepend `0x' to filepos
8216 output, it will be handled by local_hex_string_custom.
8217
19d3fc80 82182002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8219
8220 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8221 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8222 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8223
d85a5daf
JB
82242002-02-22 Jim Blandy <jimb@redhat.com>
8225
8226 Indicate that the bcache functions don't change the strings
8227 they're passed.
8228 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8229 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8230
eeb25b8a
PM
82312002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8232
8233 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8234
6badb179
CF
82352002-02-21 Christopher Faylor <cgf@redhat.com>
8236
8237 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8238 find the complete path to a loaded DLL.
8239
e8717518
FF
82402002-02-21 Fred Fish <fnf@redhat.com>
8241
8242 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8243 that marks the end of the range of a function, enter a line number
8244 entry that has a line number of zero and a PC offset that matches
8245 the end of the function. This starts a range of PC's for which no
8246 line number information is known.
8247 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8248 PC's for which no line number info is found (line number is zero)
8249 then we didn't find any valid line information.
8250 * symtab.h: Document use of zero line number entry.
8251
9abe5450
EZ
82522002-02-21 Elena Zannoni <ezannoni@redhat.com>
8253
8254 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8255 (have_ptrace_getvrregs): Define for run time checks.
8256 (gdb_vrregset_t): New type for Altivec register handling.
8257 (fetch_register, store_register): Fetch/store altivec register
8258 when needed.
8259 (fetch_altivec_register, store_altivec_register): New functions.
8260 (supply_vrregset, fill_vrregset): New functions.
8261 (fetch_altivec_registers, store_altivec_registers): New functions.
8262 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8263 registers as well.
8264
aaa38bb5
AJ
82652002-02-21 Jiri Smid <smid@suse.cz>
8266
8267 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8268
b34db576
RE
82692002-02-21 Richard Earnshaw <rearnsha@arm.com>
8270
8271 * Makefile.in (armnbsd-nat.o): Update dependencies.
8272 * armnbsd-nat.c (supply_gregset): New function. Common code to
8273 supply the integer register set.
8274 (supply_fparegset): New function. Similar for FPA registers.
8275 (fetch_regs, fetch_fp_regs): Use them.
8276 (fetch_core_registers): Likewise.
8277 (fetch_elfcore_registers): New function.
8278 (arm_netbsd_elfcore_fns): New core-file type specification.
8279 (_initialize_arm_netbsd_nat): Register it.
8280
3e56fc4b
RE
82812002-02-21 Richard Earnshaw <rearnsha@arm.com>
8282
8283 * armnbsd-nat.c: Include gdbcore.h.
8284 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8285 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8286 'void' to declaration, to shut up ARI.
8287 (fetch_core_registers): Make static. Rewrite using supply_register.
8288 (arm_netbsd_core_fns): New core-file type specification.
8289 (_initialize_arm_netbsd_nat): New function.
8290
097f6b0b
CF
82912002-02-21 Christopher Faylor <cgf@redhat.com>
8292
8293 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8294 value.
8295
c914e0cc
CF
82962002-02-20 Christopher Faylor <cgf@redhat.com>
8297
8298 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8299 fails.
8300
385fa495
DJ
83012002-02-20 Daniel Jacobowitz <drow@mvista.com>
8302
8303 * jv-exp.y (parse_number): Change type of implicit longs
8304 to builtin_type_uint64.
8305
e5f1222d
DJ
83062002-02-20 Daniel Jacobowitz <drow@mvista.com>
8307
8308 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8309 to be an integer instead of a `union wait'.
8310
75c9abc6
DJ
83112002-02-20 Daniel Jacobowitz <drow@mvista.com>
8312
8313 * mips-linux-nat.c: Call the operating system GNU/Linux.
8314 * mips-linux-tdep.c: Likewise.
8315 * mips-tdep.c: Likewise.
8316
551792a5
DJ
83172002-02-20 Daniel Jacobowitz <drow@mvista.com>
8318
8319 Fix PR gdb/265.
8320 * jv-exp.y (parse_number): Handle 64-bit integers.
8321
ee6e2b82
DJ
83222002-02-20 Daniel Jacobowitz <drow@mvista.com>
8323
8324 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8325 AC_STDC_HEADERS to AC_HEADER_STDC.
8326 * gdbserver/configure: Regenerated.
8327
a48442a0
RE
83282002-02-20 Richard Earnshaw <rearnsha@arm.com>
8329
8330 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8331 is defined.
8332 * sparc-tdep.c (get_longjmp_target): Likewise.
8333
fe419ffc
RE
83342002-02-20 Richard Earnshaw <rearnsha@arm.com>
8335
8336 * News: Add news about ARM and Multi-arch. Mention the new target
8337 arm*-*-netbsd*.
8338
5832ed7e
JB
83392002-02-19 Jim Blandy <jimb@redhat.com>
8340
8341 * stabsread.c (error_type_complaint): Improve error message.
8342
84563040
DJ
83432002-02-19 Daniel Jacobowitz <drow@mvista.com>
8344
8345 * gdbserver/README: Update documentation.
8346 * gdbserver/configure.in: Update configury to match documentation.
8347 * gdbserver/Makefile.in: Likewise.
8348 * gdbserver/configure: Regenerated.
8349 * gdbserver/aclocal.m4: New file, generated by aclocal.
8350 * gdbserver/config.in: New file, generated by autoheader.
8351
375fd65b
RE
83522002-02-19 Richard Earnshaw <rearnsha@arm.com>
8353
8354 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8355 armnbsd-nat.c.
8356
08216dd7
RE
83572002-02-19 Richard Earnshaw <rearnsha@arm.com>
8358
8359 * arm-tdep.h (enum arm_float_model): New enum.
8360 (struct gdbarch_tdep): Add fp_model.
8361 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8362 up floating-point conversions until we know the floating-point model
8363 in use by the inferior. Don't complain about being unable to
8364 determine the ABI of the inferior when we don't have one.
8365 (arm_extract_return_value): Support different floating-point models.
8366 (arm_store_return_value): Likewise.
aaa38bb5 8367 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8368 ARM_FLOAT_SOFT.
8369 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8370
65d6d66a
PS
83712002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8372
8373 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8374 of ``current_gdbarch''.
8375
47221191
RE
83762002-02-19 Richard Earnshaw <rearnsha@arm.com>
8377
8378 * armnbsd-nat.c : ANSIfy all function declarations.
8379 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8380 (fetch_inferior_registers): Re-implement in terms of above.
8381 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8382 (store_inferior_registers): Re-implement in terms of above.
8383
fdf39c9a
RE
83842002-02-19 Richard Earnshaw <rearnsha@arm.com>
8385
aaa38bb5 8386 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8387 kernel.
8388 * arm-linux-tdep.c: Likewise.
8389 * config/arm/tm-linux.h: Likewise.
8390
93247f88
RE
83912002-02-19 Richard Earnshaw <rearnsha@arm.com>
8392
8393 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8394 * config/arm/nbsd.mt (TM_FILE): Delete.
8395 * config/arm/tm-nbsd.h: Delete.
8396
d7b486e7
RE
83972002-02-19 Richard Earnshaw <rearnsha@arm.com>
8398
8399 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8400 Initialize CALL_DUMMY_LENGTH.
8401
41d39a95
RE
84022002-02-19 Richard Earnshaw <rearnsha@arm.com>
8403
8404 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8405 function.
8406 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8407 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8408 defines one thing and that is incorrect for this port.
8409 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8410
e1195560
PM
84112002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8412
8413 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8414
c1748f97
PM
84152002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8416
8417 * win32-nat.c (display_selector): New function. Displays information
8418 about the information returned by GetThreadSelectorEntry API function.
8419 (display_selectors): New function. Displays the infomation of
8420 the selector given as argument, or of CS, DS ans FS selectors
8421 if no argument is given.
8422 ( _initialize_inftarg): Add "w32" as info prefix command.
8423 Add "info w32 selector" as command calling display_selectors.
8424
e41e6bbf
PM
84252002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8426
8427 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8428 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8429 if not defined.
8430
0d3a9f48
RE
84312002-02-18 Richard Earnshaw <rearnsha@arm.com>
8432
8433 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8434
3fb4b924
RE
84352002-02-18 Richard Earnshaw <rearnsha@arm.com>
8436
8437 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8438 (arm_fix_call_dummy): Call it.
8439 (arm_call_dummy_breakpoint_offset): Delete.
8440 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8441 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8442
7f55af32
AC
84432002-02-18 Andrew Cagney <ac131313@redhat.com>
8444
8445 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8446 Default to func_frame_chain_valid.
8447 * gdbarch.h, gdbarch.c: Re-generate.
8448 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8449
05f13b9c
EZ
84502002-02-18 Elena Zannoni <ezannoni@redhat.com>
8451
8452 * ppc-linux-nat.c: Update copyright.
8453 (fetch_register, store_register): Add tid parameter, don't compute
8454 tid here.
8455 (fetch_ppc_registers, store_ppc_registers): Add tid
8456 parameter. Pass it along to callees.
8457 (fetch_inferior_registers, store_inferior_registers): Compute tid
8458 here, and pass it to calleed functions.
8459 (fill_gregset, supply_fpregset): Clean up formatting.
8460
d7afb4c9
RE
84612002-02-18 Richard Earnshaw <rearnsha@arm.com>
8462
8463 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8464 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8465
9df628e0
RE
84662002-02-18 Richard Earnshaw <rearnsha@arm.com>
8467
8468 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8469 * gdbarch.c gdbarch.h: Regenerate.
8470 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8471 function.
8472 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8473 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8474 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8475
8476 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8477 * arm-tdep.c (arm_get_longjmp_target): New function.
8478 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8479 this to a positive value register arm_get_longjmp_target as the
8480 longjmp handler.
8481 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8482 (arm_linux_init_abi): Set up longjmp description in tdep.
8483 * armnbsd-nat.c (get_longjmp_target): Delete.
8484 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8485 description in tdep.
8486 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8487 (get_longjmp_target): Delete declaration.
8488 (GET_LONGJMP_TARGET): Delete.
8489 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8490 (GET_LONGJMP_TARGET): Delete.
8491
57bc8964
KB
84922002-02-17 Kevin Buettner <kevinb@redhat.com>
8493
8494 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8495 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8496 of ``current_gdbarch''.
8497
83d31a92
TT
84982002-02-17 Tom Tromey <tromey@redhat.com>
8499
8500 * cli/cli-cmds.c (compare_strings): New function.
8501 (complete_command): Only print each unique item once.
8502 * completer.h (complete_line): Declare.
8503 * completer.c (complete_line): New function.
8504 (line_completion_function): Use it.
8505
17ef5d92
AC
85062002-02-16 Andrew Cagney <ac131313@redhat.com>
8507
8508 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8509 * gdbarch.h, gdbarch.c: Re-generate.
8510
491b8946
DJ
85112002-02-16 Daniel Jacobowitz <drow@mvista.com>
8512
8513 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8514
85152002-02-16 Daniel Jacobowitz <drow@mvista.com>
8516
8517 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8518 * valops.c (value_arg_coerce): Don't take the address of a reference
8519 to convert an argument to a reference.
8520
dfe7f3ac
CF
85212002-02-15 Christopher Faylor <cgf@redhat.com>
8522
8523 * win32-nat.c (get_image_name): New function.
8524 (handle_load_dll): Use get_image_name function.
8525 (get_child_debug_event): Avoid registering debug events until possibly
8526 execed process is started.
8527 (child_create_inferior): Allow invocation via shell so that command
8528 line redirection, etc. works ok.
8529 (_initialize_inftarg): Add new command: "set shell" to control whether
8530 a shell is used to start a process.
8531
1d33e73a
DJ
85322002-02-15 Daniel Jacobowitz <drow@mvista.com>
8533
8534 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8535 instead of find_register_by_number.
8536 (cannot_store_register): Likewise.
8537
48cd0caa
PM
85382002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8539
aaa38bb5 8540 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8541 fprintf_unfiltered (gdb_stderr, ...).
8542
8656e7d8
DJ
85432002-02-15 Daniel Jacobowitz <drow@mvista.com>
8544
8545 * gdbserver/gdbserver.1: Document --attach.
8546
66e810cd
RE
85472002-02-15 Richard Earnshaw <rearnsha@arm.com>
8548
8549 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8550 descriptions.
8551 * arm-tdep.c (arm_default_arm_le_breakpoint)
8552 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8553 (arm_default_thumb_be_breakpoint): New. Initialize them from
8554 traditional breakpoint defines.
8555 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8556 (arm_gdbarch_init): Initialize new breakpoint variables.
8557 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8558 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8559 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8560 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8561 code out to ...
8562 (arm_netbsd_init_abi_common): ... here; new function.
8563 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8564 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8565 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8566 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8567
97e03143
RE
85682002-02-15 Richard Earnshaw <rearnsha@arm.com>
8569
8570 * arm-tdep.h (enum arm_abi): New enum.
8571 (struct gdbarch_tdep): New structure.
8572 (LOWEST_PC): Provide a default.
8573 (arm_gdbarch_register_os_abi): Declare new function.
8574 * arm-tdep.c (arm_abi_names): New array.
8575 (process_note_abi_tag_sections): New function.
8576 (get_elfosabi): New function.
8577 (arm_gdbarch_register_os_abi): New function.
8578 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8579 support for that ABI has been built in, then call the appropriate
8580 configuration routine. Use gdbarch_num_regs() to get the number
8581 of registers.
8582 (arm_dump_tdep): New function.
8583 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8584 place-holder functions.
8585 (_initialize_arm_tdep): Register them.
8586 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8587
8588 * armnbsd-tdep.c: New file.
8589 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8590 * config/arm/nbsd.mt (TDEPFILES): Add it.
8591 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8592
8593 * armnbsd-nat.c: Include regcache.h.
8594 * Makefile.in (armnbsd-nat.o): Update dependency list.
8595
8596 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8597
ad68be46
DJ
85982002-02-14 Daniel Jacobowitz <drow@mvista.com>
8599
8600 * gdbserver/Makefile.in: Fix typos in target rules.
8601
003d6d1d
DJ
86022002-02-14 Daniel Jacobowitz <drow@mvista.com>
8603
aaa38bb5 8604 Fix part of PR gdb/267.
003d6d1d
DJ
8605 * linespec.c (find_methods): Handle constructors specially for now.
8606
6b230f1b
CV
86072002-02-14 Corinna Vinschen <vinschen@redhat.com>
8608
8609 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8610 handling.
8611 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8612 standard_coerce_float_to_double().
8613
1ea98d12
CF
86142002-02-14 Christopher Faylor <cgf@redhat.com>
8615
8616 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8617 GDBINIT_FILENAME.
8618
dd47e6fd
EZ
86192002-02-14 Elena Zannoni <ezannoni@redhat.com>
8620
8621 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8622 find_variant_by_name, because it confuses the multiarch
8623 framework. Return NULL if there isn't an architecture with the
8624 user supplied name, instead of forcing a different one without
8625 recording the change with the multiarch machinery.
8626 (find_variant_by_name): Delete.
8627
d7e39b9e
PS
86282002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8629
8630 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8631 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8632
76e42a4f
MH
86332002-02-13 Martin M. Hunt <hunt@redhat.com>
8634
aaa38bb5 8635 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8636 print_frame_info_listing_hook, set current_source_symtab.
8637
0a30fbc4
DJ
86382002-02-14 Daniel Jacobowitz <drow@mvista.com>
8639
8640 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8641 and remove unused $(INCLUDE_DIR).
8642 Add regcache.c to OBS.
8643 Add generated register protocol files to clean target.
8644 Update dependencies for new objects, obsolete old target code.
8645
8646 * gdbserver/linux-low.c: Remove all platform-specific code to
8647 new files. Remove various dead code. Update to use regcache
8648 functionality.
8649 * gdbserver/remote-utils.c (fromhex): Add return statement
8650 to quiet warning.
8651 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8652 constant.
8653 (input_interrupt): Add integer parameter to match prototype
8654 of a signal handler.
8655 (outreg): Use register_data ().
8656 (prepare_resume_reply): Use gdbserver_expedite_regs.
8657 * gdbserver/server.c (main): Dynamically allocate own_buf because
8658 PBUFSIZ is no longer constant. Use registers_to_string () and
8659 registers_from_string ().
8660 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8661 for error (), fatal (), and warning (). Update definition of
8662 PBUFSIZ to use regcache functionality. Add include guard.
8663 * gdbserver/utils.c (fatal): Add missing ``const''.
8664 (warning): New function.
8665
8666 * regformats/regdat.sh: Include "regcache.h" in generated files.
8667 Provide init_registers () function.
8668 * regformats/regdef.h: Add prototype for set_register_cache ().
8669 Add include guard.
8670
8671 * gdbserver/linux-arm-low.c: New file.
8672 * gdbserver/linux-i386-low.c: New file.
8673 * gdbserver/linux-ia64-low.c: New file.
8674 * gdbserver/linux-m68k-low.c: New file.
8675 * gdbserver/linux-mips-low.c: New file.
8676 * gdbserver/linux-ppc-low.c: New file.
8677 * gdbserver/linux-sh-low.c: New file.
8678
8679 * gdbserver/regcache.c: New file.
8680 * gdbserver/regcache.h: New file.
8681
8682 * gdbserver/low-linux.c: Removed obsolete file.
8683
4cc841d0
DJ
86842002-02-14 Daniel Jacobowitz <drow@mvista.com>
8685
8686 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8687 * config/i386/linux.mt: Likewise.
8688 * config/ia64/linux.mt: Likewise.
8689 * config/m68k/linux.mh: Likewise.
8690 * config/powerpc/linux.mh: Likewise.
8691 * config/mips/linux.mt: Likewise.
8692
8693 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8694
8695 * config/i386/i386lynx.mh: Mark gdbserver variables
8696 as (currently) obsolete for this target.
8697 * config/i386/nbsd.mt: Likewise.
8698 * config/i386/nbsdelf.mt: Likewise.
8699 * config/m32r/m32r.mt: Likewise.
8700 * config/m68k/m68klynx.mh: Likewise.
8701 * config/m68k/nbsd.mt: Likewise.
8702 * config/m68k/sun3os4.mh: Likewise.
8703 * config/mips/vr5000.mt: Likewise.
8704 * config/ns32k/nbsd.mt: Likewise.
8705 * config/pa/hppabsd.mh: Likewise.
8706 * config/pa/hppaosf.mh: Likewise.
8707 * config/powerpc/nbsd.mt: Likewise.
8708 * config/rs6000/rs6000lynx.mh: Likewise.
8709 * config/s390/s390.mt: Likewise.
8710 * config/s390/s390x.mt: Likewise.
8711 * config/sparc/sparclynx.mh: Likewise.
8712 * config/sparc/sun4os4.mh: Likewise.
8713 * config/i386/x86-64linux.mt: Likewise.
8714 * config/sparc/linux.mh: Likewise.
8715
a85f51e7
DJ
87162002-02-14 Daniel Jacobowitz <drow@mvista.com>
8717
8718 * configure.tgt: Configure gdbserver only for known working
8719 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8720 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8721 SUBDIRS if it is configured. Update comment for ${nativefile}.
8722 * configure: Regenerated.
8723
65554fef
MS
87242002-02-13 Michael Snyder <msnyder@redhat.com>
8725
670a52db
MS
8726 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8727
6dbdc4a3
MS
8728 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8729 (default_gcore_mach): Just return 0, work around a problem in bfd.
8730 (default_gcore_target): OK to return NULL if exec_bfd is null.
8731 (make_mem_sec): Use a cast, avoid a warning.
8732
8733 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8734 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8735 sizeof (host pointer) != sizeof (target pointer)).
8736 (procfs_make_note_section): Avoid overflow in psargs string.
8737
aaa38bb5 8738 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8739 implementation return an error.
8740
87412002-02-13 Rodney Brown <rbrown64@csc.com.au>
8742
8743 * procfs.c (procfs_make_note_section): Provide a default definition
8744 (for alpha-dec-osf4.0f). Fix typos.
8745
1e4d76e7
EZ
87462002-02-13 Elena Zannoni <ezannoni@redhat.com>
8747
8748 * linux-proc.c: Add include of regcache.h.
8749 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8750
b6d1a1d5
AC
87512002-02-13 Andrew Cagney <ac131313@redhat.com>
8752
8753 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8754 * memattr.c (create_mem_region): Disallow useless empty region.
8755 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8756 non-overlapping.
b6d1a1d5 8757
6c6ea35e
MC
87582002-02-13 Michael Chastain <mec@shout.net>
8759
8760 * defs.h: Kill CONST_PTR.
8761 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8762 * c-lang.c (c_builtin_types): Likewise.
8763 * ch-lang.c (ch_builtin_types): Likewise.
8764 * f-lang.c (f_builtin_types): Likewise.
8765 * language.c (unknown_builtin_types): Likewise.
8766 * m2-lang.c (m2_builtin_types): Likewise.
8767 * p-lang.c (pascal_builtin_types): Likewise.
8768 * scm-lang.c (c_builtin_types): Likewise.
8769
3e0b0f48
KS
87702002-02-13 Keith Seitz <keiths@redhat.com>
8771
8772 * arm-tdep.h (arm_get_next_pc): Add declaration.
8773
67255d04
RE
87742002-02-13 Richard Earnshaw <rearnsha@arm.com>
8775
8776 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8777 with other related struct-returning functions.
8778 (arm_extract_struct_value_address): New function.
8779 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8780 initialize float_format, double_format and long_double_format as
8781 appropriate to the endianness of the target.
8782 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8783 (arm_use_struct_convention): Delete declaration.
8784 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8785
079777f6
KS
87862002-02-13 Keith Seitz <keiths@redhat.com>
8787
8788 * defs.h (core_addr_to_string_nz): New function.
8789
34588f23
MK
87902002-02-13 Mark Kettenis <kettenis@gnu.org>
8791
8792 Apply missing bits of 2002-01-15 patch.
8793 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8794 (fill_fpregset): Use i387_fill_fsave.
8795
49b563f9
KS
87962002-02-12 Keith Seitz <keiths@redhat.com>
8797
49b563f9
KS
8798 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8799 (core_addr_to_string_nz): New function.
8800
aeb98c60
RE
88012002-02-11 Richard Earnshaw <rearnsha@arm.com>
8802
8803 * arm-linux-nat.c: Really include arm-tdep.h.
8804 * config/arm/tm-linux.h (struct type, struct value): Declare.
8805
65554fef
MS
88062002-02-11 Michael Snyder <msnyder@redhat.com>
8807
8808 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8809 (gcore section): Ifdef for Solaris and Unixware only.
8810 (procfs_do_thread_registers): Unixware needs one lwpstatus
8811 per thread (not one prstatus or pstatus).
8812 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8813 not over all gdb threads. For unixware, call elfcore_write_pstatus
8814 once before iterating over threads.
8815
34e8f22d
RE
88162002-02-11 Richard Earnshaw <rearnsha@arm.com>
8817
8818 * arm-tdep.h: New file.
8819 * arm-tdep.c: Include arm-tdep.h.
8820 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8821 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8822 (arm_print_float_info, arm_register_type, convert_to_extended)
8823 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8824 (arm_extract_return_value, arm_register_name): Make static.
8825 (arm_software_single_step): Similarly. Fix types in declaration.
8826 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8827 (arm_store_return_value, arm_store_struct_return): New functions.
8828 (arm_gdbarch_init): Register the above functions. Also register
8829 call_dummy_start_offset, sizeof_call_dummy_words,
8830 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8831 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8832 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8833 prologue_cache.saved_regs here, rather than ...
8834 (_initialize_arm_tdep): ... here.
8835 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8836 declarations.
8837 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8838 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8839 (arm_print_float_info, arm_register_type, convert_to_extended)
8840 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8841 (arm_extract_return_value, arm_register_name): Delete declarations.
8842 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8843 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8844 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8845 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8846 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8847 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8848 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8849 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8850 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8851 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8852 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8853 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8854 interface.
8855 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8856 * remote-rdi.c remote-rdp.c: Likewise.
8857 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8858 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8859 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8860 definition.
8861
8862 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8863 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8864 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8865 from non-ARM_ prefixed definitions.
8866 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8867 all uses of above.
8868 * remote-rdi.c remote-rdp.c: Likewise.
8869 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8870
148754e5
RE
88712002-02-11 Richard Earnshaw <rearnsha@arm.com>
8872
8873 * arm-tdep.c (arm_frameless_function_invocation)
8874 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8875 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8876 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8877 (arm_pop_frame, arm_get_next_pc): Make static.
8878 (arm_gdbarch_init): Register above in gdbarch structure.
8879 (arm_read_fp): Renamed from arm_target_read_fp.
8880 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8881 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8882 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8883 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8884 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8885 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8886 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8887 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8888 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8889 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8890 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8891
434d2d4f
DJ
88922002-02-10 Daniel Jacobowitz <drow@mvista.com>
8893
8894 * symtab.c (compare_search_syms): New function.
8895 (sort_search_symbols): New function.
8896 (search_symbols): Sort symbols after searching rather than
8897 before.
8898
55241689
AC
88992002-02-10 Andrew Cagney <ac131313@redhat.com>
8900
8901 * NEWS: Linux -> GNU/Linux.
8902
028c194b
AC
89032002-02-10 Andrew Cagney <ac131313@redhat.com>
8904
8905 * gdbarch.sh: For for level one methods, disallow a definition
8906 when partially multi-arched. Add comments explaining rationale.
8907 * gdbarch.h: Re-generate.
8908
6acf50cd
AC
89092002-02-10 Andrew Cagney <ac131313@redhat.com>
8910
8911 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8912 multi-arch partial.
aaa38bb5 8913
50248794
AC
89142002-02-10 Andrew Cagney <ac131313@redhat.com>
8915
8916 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8917 field. Use diff -u.
8918 * gdbarch.c: Re-generate.
8919
c30e0066
AC
89202002-02-10 Andrew Cagney <ac131313@redhat.com>
8921
9b56c5f3 8922 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8923 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8924 partial.
8925
6e6d6484
AC
89262002-02-10 Andrew Cagney <ac131313@redhat.com>
8927
8928 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8929 multi-arch partial.
8930 (PUSH_ARGUMENTS): Switch to using predefault.
8931 * gdbarch.c: Regenerate.
8932
c203844d
AC
89332002-02-10 Andrew Cagney <ac131313@redhat.com>
8934
8935 * valops.c (PUSH_ARGUMENTS): Delete definition.
8936 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8937 partial. Default to default_push_arguments.
8938 * gdbarch.h, gdbarch.c: Regenerate.
8939
b5a2688f
AC
89402002-02-09 Andrew Cagney <ac131313@redhat.com>
8941
8942 * defs.h (throw_exception): Rename return_to_top_level. Update
8943 comments.
8944 * utils.c (error_stream, internal_verror, quit): Ditto.
8945 * top.c (throw_exception, catcher): Ditto.
8946 * sparclet-rom.c (sparclet_load): Ditto.
8947 * remote.c (interrupt_query, minitelnet): Ditto.
8948 * remote-sds.c (interrupt_query): Ditto.
8949 * remote-mips.c (mips_error, mips_kill): Ditto.
8950 * ocd.c (interrupt_query): Ditto.
8951 * monitor.c (monitor_interrupt_query): Ditto.
8952 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8953 * target.h: Update comment.
aaa38bb5 8954
b5a2688f 8955 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8956
2fa5c1e0
AC
89572002-02-09 Andrew Cagney <ac131313@redhat.com>
8958
8959 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8960 default_double_format.
8961 * gdbarch.h, gdbarch.c: Re-generate.
8962 * findvar.c (floatformat_unknown): Delete variable definition.
8963 * doublest.h (floatformat_unknown): Delete variable declaration.
8964
da966255
JB
89652002-02-09 Jim Blandy <jimb@redhat.com>
8966
8967 * stabsread.c (read_type): Add code to parse Sun's syntax for
8968 prototyped function types.
8969
123a4891
AC
89702002-02-09 Andrew Cagney <ac131313@redhat.com>
8971
8972 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8973 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8974
fb39c8f3
PS
89752002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8976
8977 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8978 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8979 now _initialize_xcoffsolib gets called again and overrides the
8980 commands from solib.c in a native configuration.
8981
0b87a11d
MK
89822002-02-09 Mark Kettenis <kettenis@gnu.org>
8983
8984 * doublest.c (store_typed_floating): Don't try to return a value.
8985 Fixes PR gdb/290.
8986
bdc2fc72
JB
89872002-02-08 Jim Blandy <jimb@redhat.com>
8988
8989 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8990 is prototyped and has no arguments, print its argument list as
8991 `(void)'.
8992
da69bbcf
CD
89932002-02-08 Chris Demetriou <cgd@broadcom.com>
8994
8995 * MAINTAINERS (write-after-approval): Add myself.
8996 (paper-trail): I've escaped!
aaa38bb5 8997
b69571f5
CF
89982002-02-08 Christopher Faylor <cgf@redhat.com>
8999
9000 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9001 changes.
9002 (_initialize_check_for_gdb_ini): Ditto.
9003
f6871398
MH
90042002-02-08 Martin M. Hunt <hunt@redhat.com>
9005
9006 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9007 xaprintf -> xasprintf.
9008
4e52d31c
PM
90092002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9010
9011 * win32-nat.c: Remove use of printf and sprintf functions.
9012
39bbf761
RE
90132002-02-08 Richard Earnshaw <rearnsha@arm.com>
9014
9015 * arm-tdep.c (arm_frame_chain_valid): Make static.
9016 (arm_push_arguments): Likewise.
9017 (arm_gdbarch_init): New function.
9018 (_initialize_arm_tdep): Call it.
9019 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9020 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9021 (FRAME_CHAIN_VALID): Delete.
9022 (arm_frame_chain_valid): Delete declaration.
9023 (PUSH_ARGUMENTS): Delete.
9024 (arm_push_arguments): Delete declaration.
9025 (CALL_DUMMY_P): Delete.
9026
9c9532c9
CV
90272002-02-08 Andrew Cagney <ac131313@redhat.com>
9028 Corinna Vinschen <vinschen@redhat.com>
9029
9030 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9031 on builtin float types.
9032
4e8f7a8b
DJ
90332002-02-08 Daniel Jacobowitz <drow@mvista.com>
9034
9035 * utils.c: Include <curses.h> before "bfd.h".
9036 * tui/tui-hooks.c: Likewise.
9037 * tui/tui.c: Likewise.
9038 * tui/tuiCommand.c: Likewise.
9039 * tui/tuiData.c: Likewise.
9040 * tui/tuiDataWin.c: Likewise.
9041 * tui/tuiDisassem.c: Likewise.
9042 * tui/tuiGeneralWin.c: Likewise.
9043 * tui/tuiIO.c: Likewise.
9044 * tui/tuiLayout.c: Likewise.
9045 * tui/tuiRegs.c: Likewise.
9046 * tui/tuiSource.c: Likewise.
9047 * tui/tuiSourceWin.c: Likewise.
9048 * tui/tuiStack.c: Likewise.
9049 * tui/tuiWin.c: Likewise.
9050
cd4bffcf
EZ
90512002-02-07 Elena Zannoni <ezannoni@redhat.com>
9052
9053 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9054 to include space for pseudoregs as well. Update loops accordingly.
9055 (sh_fp_frame_init_saved_regs): Ditto.
9056 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9057
26806ce2
AC
90582002-02-07 Andrew Cagney <ac131313@redhat.com>
9059
9060 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9061 Add Richard Earnshaw to Arm maintainers.
9062
97fdab62
AC
90632002-02-07 Andrew Cagney <ac131313@redhat.com>
9064
a6b98203
AC
9065 * defs.h (warning_begin): Delete declaration.
9066
97fdab62
AC
9067 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9068 Delete macro.
9069
78b29b40
MS
90702002-02-07 Michael Snyder <msnyder@redhat.com>
9071
aaa38bb5 9072 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9073 Logic bug, remove misplaced else.
9074
d8849953
KD
90752002-02-07 Klee Dienes <klee@apple.com>
9076
9077 * fork-inferior.c (fork_inferior): Add '!' to the list of
9078 characters that need to be quoted when building a string for the
9079 shell. Quote '!' specifically with a backslash, since CSH chokes
9080 when trying to evaluate "str!str".
aaa38bb5 9081
095778a0
NC
90822002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9083
9084 * rdi-share/host.h: Only provide a typedef for bool if it is not
9085 defined.
9086
1900040c
MS
90872002-02-04 Michael Snyder <msnyder@redhat.com>
9088
9089 * breakpoint.h (enum bptype): Add new overlay event bp type.
9090 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9091
1900040c
MS
9092 * breakpoint.c (create_internal_breakpoint): New function.
9093 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9094 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9095 (create_thread_event_breakpoint): Ditto.
9096 (create_solib_event_breakpoint): Ditto.
9097 (create_overlay_event_breakpoint): New function.
9098 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9099 (update_breakpoints_after_exec): Delete and re-initialize
9100 overlay event breakpoints after an exec. Add FIXME comment
9101 about longjmp breakpoint.
9102 (print_it_typical): Ignore overlay event breakpoints.
9103 (print_one_breakpoint): Ditto.
9104 (mention): Ditto.
9105 (bpstat_what): Do not stop for overlay event breakpoints.
9106 (delete_breakpoint): Don't delete overlay event breakpoints.
9107 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9108 (breakpoint_re_set): Re-create overlay event breakpoint.
9109
9110 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9111 (overlay_manual_command): Disable overlay breakpoints.
9112 (overlay_off_command): Disable overlay breakpoints.
9113
082fc60d
RE
91142002-02-06 Richard Earnshaw <rearnsha@arm.com>
9115
9116 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9117 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9118 to here from config/tm-arm.h.
9119 (coff_sym_is_thumb): Make static.
9120 (arm_elf_make_msymbol_special): New function.
9121 (arm_coff_make_msymbol_special): New function.
9122 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9123 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9124 (coff_sym_is_thumb): Delete declaration.
9125 (arm_elf_make_msymbol_special): Declare.
9126 (arm_coff_make_msymbol_special): Declare.
9127 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9128 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9129
039c5766
RE
91302002-02-06 Richard Earnshaw <rearnsha@arm.com>
9131
9132 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9133
91342002-02-06 Richard Earnshaw <rearnsha@arm.com>
9135
9136 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9137 * gdbarch.c gdbarch.h: Regenerate.
9138 * arch-utils.c (default_print_float_info): New function.
9139 * arch-utils.h (default_print_float_info): Prototype it.
9140 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9141 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9142 (PRINT_FLOAT_INFO): Document it.
9143
9144 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9145 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9146 (PRINT_FLOAT_INFO): Define.
9147
58fa08f0
PM
91482002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9149
aaa38bb5 9150 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9151 Add typecast to sprintf argument to suppress a warning.
9152
7393af7c
PM
91532002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9154
58fa08f0 9155 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9156 to allow easier handling of pass state.
9157 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9158 that gives exception name and address.
9159 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9160 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9161 exceptions added.
aaa38bb5
AJ
9162 (child_continue): Correctly report continue_status.
9163 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9164 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9165 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9166 the exception should be passed to debuggee or not.
9167
6af4589c
MS
91682002-02-05 Michael Snyder <msnyder@redhat.com>
9169
9170 * regcache.c (fetch_register): Call target_fetch_register
9171 only if we don't call FETCH_PSEUDO_REGISTER.
9172 (store_register): Call target_store_register only if we
9173 don't call STORE_PSEUDO_REGISTER.
9174
a2cf933a
EZ
91752002-02-05 Elena Zannoni <ezannoni@redhat.com>
9176
9177 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9178 ELF_MAKE_MSYMBOL_SPECIAL.
9179 * gdbarch.c, gdbarch.h: Regenerate.
9180 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9181 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9182 * elfread.c (elf_symtab_read): Compile use of
9183 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9184 multiarched.
9185 * coffread.c (coff_symtab_read): Ditto, for
9186 COFF_MAKE_MSYMBOL_SPECIAL.
9187
6bb7be43
JB
91882002-02-05 Jim Blandy <jimb@redhat.com>
9189
9190 * solib-svr4.c (svr4_truncate_ptr): New function.
9191 (svr4_relocate_section_addresses): Do the address arithmetic with
9192 the appropriate truncation for target addresses, even when
9193 CORE_ADDR is larger than a target address.
9194
e18651ec
DJ
91952002-02-05 Daniel Jacobowitz <drow@mvista.com>
9196
9197 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9198 to (int *).
9199
6b2725be
DJ
92002002-02-05 Daniel Jacobowitz <drow@mvista.com>
9201
9202 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9203 code.
9204
fca9e603
DJ
92052002-02-05 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9208
6c537a52
DJ
92092002-02-05 Daniel Jacobowitz <drow@mvista.com>
9210
9211 * gdbserver/linux-low.c: Remove unused include files.
9212
d844cde6
DJ
92132002-02-05 Daniel Jacobowitz <drow@mvista.com>
9214
9215 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9216 (read_inferior_memory): Use it.
9217 (write_inferior_memory): Likewise.
9218
d07c63e7
DJ
92192002-02-05 Daniel Jacobowitz <drow@mvista.com>
9220
9221 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9222 grubbing through sys_errlist.
9223
da6d8c04
DJ
92242002-02-05 Daniel Jacobowitz <drow@mvista.com>
9225
9226 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9227
5b421780
PM
92282002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9229 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9230
9f60d481
AC
92312002-02-04 Andrew Cagney <ac131313@redhat.com>
9232
9233 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9234 (do_sfunc, set_cmd_sfunc): New functions.
9235
9236 * command.h (struct cmd_list_element): Add field func.
9237 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9238 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9239 * cli/cli-decode.h: Ditto.
9240
9241 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9242 (help_all, help_cmd_list): Ditto.
9243 (find_cmd, complete_on_cmdlist): Ditto.
9244 * top.c (execute_command): Ditto.
9245
9246 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9247 function.sfunc.
9248
9249 * infcmd.c (notice_args_read): Fix function signature.
9250
9251 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9252 * cli/cli-decode.c (add_set_cmd): Ditto.
9253 * utils.c (initialize_utils): Ditto.
9254 * maint.c (_initialize_maint_cmds): Ditto.
9255 * infrun.c (_initialize_infrun): Ditto.
9256 * demangle.c (_initialize_demangler): Ditto.
9257 * remote.c (add_packet_config_cmd): Ditto.
9258 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9259 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9260 * proc-api.c (_initialize_proc_api): Ditto.
9261 * kod.c (_initialize_kod): Ditto.
9262 * valprint.c (_initialize_valprint): Ditto.
9263 * top.c (init_main): Ditto.
9264 * infcmd.c (_initialize_infcmd): Ditto.
9265 * corefile.c (_initialize_core): Ditto.
9266 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9267 * arch-utils.c (initialize_current_architecture): Ditto.
9268 (_initialize_gdbarch_utils): Ditto.
9269 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9270
9271 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9272 * wince.c (_initialize_inftarg): Ditto.
9273 * symfile.c (_initialize_symfile): Ditto.
9274 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9275 * language.c (_initialize_language): Ditto.
9276 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9277
f9ba0717
MS
92782002-02-04 Michael Snyder <msnyder@redhat.com>
9279
9280 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9281
0c74b2a7
DJ
92822002-02-04 Daniel Jacobowitz <drow@mvista.com>
9283
9284 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9285 Add rules for building the register data files.
9286
c638789f
DJ
92872002-02-04 Daniel Jacobowitz <drow@mvista.com>
9288
9289 * regformats/regdat.sh: Add braces to the definition of
9290 expedite_regs_${arch}.
9291
db253027
DJ
92922002-02-04 Daniel Jacobowitz <drow@mvista.com>
9293
9294 * regformats/regdef.h (struct reg): Add comment describing the
9295 requirements for offset and size fields.
9296
206be19c
AS
92972002-02-04 Andreas Schwab <schwab@suse.de>
9298
9299 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9300 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9301
181c1381
RE
93022002-02-04 Richard Earnshaw <rearnsha@arm.com>
9303
9304 * gdbarch.sh (copyright): Update years in generated header.
9305 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9306 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9307 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9308 * dbxread.c: Likewise.
9309 * dwarfread.c: Likewise.
9310 * elfread.c: Likewise.
9311 * somread.c: Likewise.
9312
9313 * arm-tdep.c (arm_smash_text_address): New function.
9314 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9315
fa4ba8da
PM
93162002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9317
9318 Add support for hardware watchpoints on win32 native.
aaa38bb5 9319 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9320 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9321 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9322 of debug registers.
9323 (debug_registers_changed): New variable. Reflects when debug registers
9324 are changed and need to be written to inferior.
aaa38bb5 9325 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9326 was set, used when new threads are created.
9327 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9328 i386-nat code.
9329 (thread_rec): Set dr array if id is the thread of current_event .
9330 (child_continue, child_resume): Change the debug registers for all
9331 threads if debug_registers_changed.
9332 (child_add_thread): Change the debug registers if debug_registers_used.
9333 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9334 Link nm.h to new nm-cygwin.h file.
9335 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9336 of hardware registers.
9337
a73c86fb
AC
93382002-02-03 Andrew Cagney <ac131313@redhat.com>
9339
9340 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9341 Restore behavour broken by 2002-01-20 Andrew Cagney
9342 <ac131313@redhat.com> IEEE_FLOAT removal.
9343
acf5ed49
DJ
93442002-02-03 Daniel Jacobowitz <drow@mvista.com>
9345
9346 * c-valprint.c (c_val_print): Pass a proper valaddr to
9347 cp_print_class_method.
9348 * valops.c (search_struct_method): If there is only one method
9349 and args is NULL, return that method.
9350
493d28d5
DJ
93512002-02-03 Daniel Jacobowitz <drow@mvista.com>
9352
9353 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9354 accessing tag_name directly.
9355
7495dfdb
DJ
93562002-02-03 Daniel Jacobowitz <drow@mvista.com>
9357
9358 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9359 of accessing tag_name directly.
9360
dd6bda65
DJ
93612002-02-03 Daniel Jacobowitz <drow@mvista.com>
9362
9363 PR gdb/280
9364 * gdbtypes.c (replace_type): New function.
9365 * gdbtypes.h (replace_type): Add prototype.
9366 * stabsread.c (read_type): Use replace_type.
9367
88fe217c
RE
93682002-02-03 Richard Earnshaw <rearnsha@arm.com>
9369
9370 * Makefile.in (memattr.o): Add missing dependencies rule.
9371
e5d66720
PS
93722002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9373
9374 * breakpoint.c (break_at_finish_command): Really export.
9375 (break_at_finish_at_depth_command): Ditto.
9376 (tbreak_at_finish_command): Ditto.
9377 * hppa-tdep.c: Include completer.h.
9378 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9379 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9380
fffee0be
AC
93812002-02-01 Andrew Cagney <ac131313@redhat.com>
9382
9383 * utils.c (do_write): New function.
9384 (error_stream): Rewrite combining the code from error_begin and
9385 verror.
9386 (verror): Rewrite using error_stream.
9387 (error_begin): Delete function.
9388
255e7dbf
AC
93892002-02-01 Andrew Cagney <ac131313@redhat.com>
9390
9391 * utils.c (error_begin): Make static.
9392 * defs.h (error_begin): Delete declaration.
9393
9394 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9395 (decode_line_1): Use cplusplus_error instead of error_begin,
9396 cplusplus_hint and return_to_top_level.
9397 * coffread.c (coff_symfile_read): Use error instead of error_begin
9398 and return_to_top_level.
9399 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9400
ddfe3c15
AC
94012002-02-01 Andrew Cagney <ac131313@redhat.com>
9402
9403 * language.h (type_error, range_error): Make string parameter
9404 constant.
9405 * language.c (warning_pre_print): Delete extern declaration.
9406 * dwarfread.c (warning_pre_print): Ditto.
9407 * language.c (type_error, range_error): Rewrite to use verror and
9408 vwarning instead of warning_begin.
9409
03ac34d5
MS
94102002-02-01 Michael Snyder <msnyder@redhat.com>
9411
261c4ca2
MS
9412 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9413 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9414
e00d1dc8
AC
94152002-02-01 Andrew Cagney <ac131313@redhat.com>
9416
9417 * command.h (NO_FUNCTION): Delete macro.
9418 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9419 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9420 * tracepoint.c (_initialize_tracepoint): Ditto.
9421 * cli/cli-decode.c (add_set_cmd): Ditto.
9422 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9423
76b79d6e
DJ
94242002-02-01 Daniel Jacobowitz <drow@mvista.com>
9425
9426 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9427 Update ``this'' pointer when calling virtual functions.
9428
799f9e91
MS
94292002-02-01 Michael Snyder <msnyder@redhat.com>
9430
c7bd442c 9431 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9432 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9433
3cf384d4
DJ
94342002-02-01 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * regformats/reg-arm.dat: New file.
9437 * regformats/reg-i386.dat: New file.
9438 * regformats/reg-ia64.dat: New file.
9439 * regformats/reg-m68k.dat: New file.
9440 * regformats/reg-mips.dat: New file.
9441 * regformats/reg-ppc.dat: New file.
9442 * regformats/reg-sh.dat: New file.
9443 * regformats/regdef.h: New file.
9444 * regformats/regdat.sh: New file.
9445
0defa245
RE
94462002-02-01 Richard Earnshaw <reanrsha@arm.com>
9447
9448 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9449 (arm_frame_args_address, arm_frame_locals_address): New functions.
9450 (arm_frame_num_args): New function.
9451 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9452 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9453 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9454
405f26e6
MS
94552002-01-31 Michael Snyder <msnyder@redhat.com>
9456
502fd408
MS
9457 * breakpoint.c (break_at_finish_command): Export.
9458 (break_at_finish_at_depth_command): Export.
9459 (tbreak_at_finish_command): Export.
9460 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9461 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9462 "tbreak" commands, which are HPPA specific.
9463
7d35e135
MS
9464 * printcmd.c (disassemble_command): Remove an ancient
9465 artifact of an old merge.
9466
aaa38bb5 9467 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9468 Define enum constant values for overlay mode.
9469 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9470 (overlay_is_mapped, overlay_auto_command,
9471 overlay_manual_command): Ditto.
d874f1e2 9472
aaa38bb5
AJ
9473 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9474 breakpoint_here_p, breakpoint_inserted_here_p,
9475 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9476 describe_other_breakpoints, check_duplicates, clear_command):
9477 Coding standard fixes.
9478
8add0441 9479 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9480 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9481 code: check bfd SEC_READONLY flag for section.
9482
e351066e
AC
94832002-01-31 Andrew Cagney <ac131313@redhat.com>
9484
7d35e135 9485 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9486
8a48e967
DJ
94872002-01-30 Daniel Jacobowitz <drow@mvista.com>
9488
9489 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9490 data symbols, since we search based on textlow and texthigh.
9491 (find_pc_sect_symtab): Likewise.
9492
f5a96129
AC
94932002-01-30 Andrew Cagney <ac131313@redhat.com>
9494
9495 * defs.h (vwarning): Declare.
f5a96129
AC
9496 * utils.c (vwarning): New function.
9497 (warning): Call vwarning.
9498 (warning_begin): Delete function.
9499
9500 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9501 the warning message.
9502 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9503 warning_begin.
9504
cefd4ef5
MS
95052002-01-30 Michael Snyder <msnyder@redhat.com>
9506
1a703748
MS
9507 * NEWS: Mention "set trust-readonly-sections" command.
9508 Mention generate-core-file command.
cefd4ef5 9509
3a11626d
MS
95102002-01-15 Michael Snyder <msnyder@redhat.com>
9511
9512 * target.c: New command, "set trust-readonly-sections on".
9513 (do_xfer_memory): Honor the suggestion to trust readonly sections
9514 by reading them from the object file instead of from the target.
9515 (initialize_targets): Register command "set trust-readonly-sections".
9516
d1c7e53b
AC
95172002-01-29 Andrew Cagney <ac131313@redhat.com>
9518
9519 * parse.c (target_map_name_to_register): Simplify, search regs and
9520 pseudo-regs using a single loop.
9521
e2c9a72c
AC
95222002-01-30 Andrew Cagney <ac131313@redhat.com>
9523
9524 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9525
69824b4e
MK
95262002-01-15 Rodney Brown <rbrown64@csc.com.au>
9527
9528 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9529 * config/i386/i386v42mp.mh: Add i387-nat.o .
9530 * i386v4-nat.c: Include i387-nat.h.
9531 (supply_fpregset): Use i387_supply_fsave.
9532 (fill_fpregset): Use i387_fill_fsave.
9533
6eb69eab
RE
95342002-01-30 Richard Earnshaw <rearnsha@arm.com>
9535
9536 * arm-tdep.c (arm_call_dummy_words): Define.
9537 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9538 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9539 (CALL_DUMMY_WORDS): Define.
9540 (arm_call_dummy_words): Declare.
9541 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9542 (arm_linux_call_dummy_words): Declare.
9543
9852326a
AS
95442002-01-30 Andreas Schwab <schwab@suse.de>
9545
9546 * m68klinux-nat.c: Fix last change to use regcache_collect
9547 instead of referencing registers[] directly.
9548
977a3030
AC
95492002-01-29 Andrew Cagney <ac131313@redhat.com>
9550
9551 * parse.c (target_map_name_to_register): Delete code wrapped in
9552 #ifdef REGISTER_NAME_ALIAS_HOOK.
9553
2076c72b
MS
95542002-01-28 Michael Snyder <msnyder@redhat.com>
9555
9556 * regcache.c (legacy_read_register_gen): Need to be able to
9557 read pseudo-register as well as real register.
9558 (legacy_write_register_gen): Ditto.
9559
8fcc723b
AC
95602002-01-28 Andrew Cagney <ac131313@redhat.com>
9561
9562 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9563 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9564 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9565 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9566 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9567 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9568 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9569 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9570 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9571 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9572 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9573 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9574 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9575 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9576 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9577 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9578 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9579 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9580 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9581 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9582
afe64c1a
AC
95832002-01-28 Andrew Cagney <ac131313@redhat.com>
9584
9585 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9586 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9587 (initialize_current_architecture): Update target_byte_order using
9588 information from BFD.
aaa38bb5 9589 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9590 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9591
75bc7ddf
AC
95922002-01-28 Andrew Cagney <ac131313@redhat.com>
9593
9594 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9595 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9596
9597 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9598 #ifdef INVALID_FLOAT.
9599 * infcmd.c (do_registers_info): Ditto.
9600 * values.c (unpack_double): Ditto. Add comment.
9601
9602 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9603 already commented out.
9604
0280a90a
AS
96052002-01-26 Andreas Schwab <schwab@suse.de>
9606
9607 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9608 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9609 registers and add support for PTRACE_GETREGS.
9610
7072a954
AC
96112002-01-24 Andrew Cagney <ac131313@redhat.com>
9612
9613 GDB 5.1.1 released from 5.1 branch.
9614 * NEWS: Add 5.1.1 news.
9615 * README: Sync with 5.1 branch.
9616
86f902e0
FF
96172002-01-23 Fred Fish <fnf@redhat.com>
9618
9619 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9620 stabstring on initial malloc. Reallocing will copy it for us,
9621 if necessary.
9622
8af51c36
EZ
96232002-01-23 Elena Zannoni <ezannoni@redhat.com>
9624
aaa38bb5 9625 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9626 (HFILES_NO_SRCDIR): Remove hpread.h.
9627 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9628 (hpread.o): Update dependencies.
9629 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9630
9631 * hp-psymtab-read.c: Remove file.
9632 * hp-symtab-read.c: Remove file.
9633 * hpread.h: Remove file.
9634
9635 * hpread.c: Merge all contents of hp-psymtab-read.c,
9636 hp-symtab-read.c and hpread.h into this file, as it was prior to
9637 January 1999.
9638
9639 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9640 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9641 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9642 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9643
dc5cfeb6
EZ
96442002-01-23 Elena Zannoni <ezannoni@redhat.com>
9645
9646 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9647 fill_gregset): Call gdbarch_tdep() just once, assign result to
9648 variable and use that, instead of calling the function several
9649 times.
9650
ea87b71b
AO
96512002-01-24 Alexandre Oliva <aoliva@redhat.com>
9652
9653 * configure.host: Accept sparcv9 as alias for sparc64.
9654 * configure.tgt: Likewise.
9655
13fc0c2f
KB
96562002-01-22 Kevin Buettner <kevinb@redhat.com>
9657
9658 * solib-aix5.c (build_so_list_from_mapfile)
9659 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9660 arguments is not reversed.
9661 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9662 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9663
7bd872fe
EZ
96642002-01-22 Elena Zannoni <ezannoni@redhat.com>
9665
9666 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9667 modified version of obsolete sh_fetch_pseudo_register.
9668 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9669 (sh4_register_read): New function.
9670 (sh_pseudo_register_write): New function. Renamed and modified
9671 version of obsolete sh_store_pseudo_register.
9672 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9673 (sh4_register_write): New function.
9674 (sh_gdbarch_init): Remove setting of gdbarch function
9675 fetch_pseudo_register and store_pseudo_register. Remove setting of
9676 register_convert_to_raw, register_convert_to_virtual,
9677 register_convertible.
9678 (sh_sh4_register_convertible): Delete. No longer needed. All is
9679 taken care by architecture specific functions
9680 register_read/register_write.
9681 (sh_sh4_register_convert_to_virtual): Make static.
9682 (sh_sh4_register_convert_to_raw): Ditto.
9683
069e84fd
AC
96842002-01-22 Andrew Cagney <ac131313@redhat.com>
9685
9686 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9687 (floatformat_is_nan, floatformat_mantissa): Ditto.
9688
9689 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9690 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9691 builtin_type_ieee_double_little,
9692 builtin_type_ieee_double_littlebyte_bigword,
9693 builtin_type_m68881_ext, builtin_type_i960_ext,
9694 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9695 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9696 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9697 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9698
211a4f69
CV
96992002-01-22 Corinna Vinschen <vinschen@redhat.com>
9700
9701 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9702 parameter. Set frameless flag if it exists and depended of
9703 whether the scanned function is frameless or not.
9704 (xstormy16_skip_prologue): If function is frameless, return
9705 result of xstormy16_scan_prologue().
9706 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9707 call.
9708
f81353e4
EZ
97092002-01-21 Elena Zannoni <ezannoni@redhat.com>
9710
9711 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9712 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9713 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9714 sh_sh4_register_byte, sh_sh4_register_raw_size,
9715 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9716 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9717 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9718 sh_store_pseudo_register, sh_do_pseudo_register): Call
9719 gdbarch_tdep() just once, assign result to variable and use that,
9720 instead of calling the function several times.
9721
63c73a17
MK
97222002-01-20 Mark Kettenis <kettenis@gnu.org>
9723
9724 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9725 macros instead of LAST_FPU_CTRL_REGNUM.
9726 (store_register): Likewise.
9727
39ad761d
JB
97282002-01-21 Jim Blandy <jimb@redhat.com>
9729
9730 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9731 is up-to-date before running the program, not just when a program
9732 exits.
9733
3d74b771
FF
97342002-01-21 Fred Fish <fnf@redhat.com>
9735
9736 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9737 when we have found all instructions we are looking for.
9738
966fbf70
RE
97392002-01-21 Richard Earnshaw <rearnsha@arm.com>
9740
9741 * arm-tdep.c (arm_register_name): New function.
9742 (arm_registers_names): Make static.
9743 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9744 (arm_register_name): Declare.
9745 (REGISTER_NAME): Use it.
9746
c3b4394c
RE
97472002-01-21 Richard Earnshaw <rearnsha@arm.com>
9748 Kevin Buettner <kevinb@redhat.com>
9749
9750 Convert arm targets to new FRAME interface.
9751 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9752 (arm_frame_find_save_regs): Delete.
9753 (arm_frame_init_saved_regs): New.
9754 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9755 Allocate extra_info as required. Convert all uses of fsr.regs
9756 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9757 to use extra_info.
9758 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9759 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9760 (check_prologue_cache, save_prologue_cache): Likewise.
9761 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9762 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9763 (FRAME_FIND_SAVED_REGS): Delete.
9764 (arm_frame_find_saved_regs): Delete prototype.
9765 (arm_frame_init_saved_regs): New prototype.
9766 (FRAME_INIT_SAVED_REGS): Define.
9767
61d99182
AC
97682002-01-20 Andrew Cagney <ac131313@redhat.com>
9769
9770 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9771
6aaea291
AC
97722002-01-20 Andrew Cagney <ac131313@redhat.com>
9773
9774 From Jeff Law <law@redhat.com>:
9775 * infttrace.c: Include <sys/pstat.h>.
9776 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9777 exec file if the ttrace equivalent fails.
9778
15f698d2
AC
97792002-01-20 Andrew Cagney <ac131313@redhat.com>
9780
9781 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9782 (closeLogFile): Ditto.
9783
f86ddd7c
MC
97842002-01-20 Michael Chastain <mec@shout.net>
9785
9786 * top.c (print_gdb_version): Bump copyright year to 2002.
9787
904507ce
AC
97882002-01-20 Andrew Cagney <ac131313@redhat.com>
9789
9790 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9791 Zannoni and Eli Zaretskii.
9792
d7f0b9ce
DJ
97932002-01-20 Daniel Jacobowitz <drow@mvista.com>
9794
9795 * buildsym.c: Update copyright years.
9796 * c-typeprint.c: Likewise.
9797 * dwarf2read.c: Likewise.
9798 * f-typeprint.c: Likewise.
9799 * gdbtypes.c: Likewise.
9800 * gdbtypes.h: Likewise.
9801 * hp-symtab-read.c: Likewise.
9802 * hpread.c: Likewise.
9803 * mdebugread.c: Likewise.
9804 * p-typeprint.c: Likewise.
9805
3fd3d7d2
AC
98062002-01-20 Andrew Cagney <ac131313@redhat.com>
9807
9808 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9809 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9810 byte-order selectable.
9811 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9812 * arch-utils.c: Ditto.
9813 (set_endian): Ditto.
9814 (set_endian_from_file): Ditto.
9815 * gdbserver/low-sim.c (create_inferior): Ditto.
9816 * gdbarch.sh: Ditto.
9817 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9818 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9819 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9820 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9821 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9822 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9823 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9824 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9825 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9826 macro definition.
9827 * config/mips/tm-wince.h: Remove #undef of macro
9828 TARGET_BYTE_ORDER_SELECTABLE.
9829 * config/sh/tm-wince.h: Ditto.
9830
b02dede2
DJ
98312002-01-20 Daniel Jacobowitz <drow@mvista.com>
9832
9833 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9834 member function fields. Add accessor macro
9835 TYPE_FN_FIELD_ARTIFICIAL.
9836 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9837 * c-typeprint.c (c_type_print_base): Skip artificial member
9838 functions.
9839
c3643761
DJ
98402002-01-20 Daniel Jacobowitz <drow@mvista.com>
9841
9842 * f-typeprint.c: Delete unused function f_type_print_args.
9843 * p-typeprint.c: Delete unused function pascal_type_print_args.
9844
8176bb6d
DJ
98452002-01-20 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9848 comment. Add ``artificial'' to ``union field_location''.
9849
9850 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9851
9852 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9853 * mdebugread.c (parse_symbol): Likewise.
9854 * stabsread.c (define_symbol): Likewise.
9855 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9856 initializing TYPE_FIELD_BITPOS to n (obsolete).
9857 (hpread_doc_function_type): Likewise.
9858 * hpread.c (hpread_function_type): Likewise.
9859
7fd60527
AC
98602002-01-20 Andrew Cagney <ac131313@redhat.com>
9861
9862 * configure.in (host_makefile_frag): Only require a host makefile
9863 fragment when a native build.
9864 * configure: Re-generate.
9865
c2f05ac9
AC
98662002-01-20 Andrew Cagney <ac131313@redhat.com>
9867
9868 * doublest.h (floatformat_from_type): Declare.
9869 * doublest.c (floatformat_from_type): New function.
9870 (convert_typed_floating): Use.
9871
9872 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9873 call to function floatformat_from_type.
9874
9875 * gdbarch.sh (IEEE_FLOAT): Delete.
9876 * gdbarch.h, gdbarch.c: Re-generate.
9877 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9878 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9879 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9880 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9881 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9882 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9883 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9884 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9885 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9886 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9887 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9888 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9889
9890 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9891 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9892 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9893 * sh-tdep.c (sh_gdbarch_init): Ditto.
9894 * mips-tdep.c (mips_gdbarch_init): Ditto.
9895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9896 * cris-tdep.c (cris_gdbarch_init): Ditto.
9897
abf22e64
AJ
98982002-01-20 Jiri Smid <smid@suse.cz>
9899
9900 * configure.host, configure.tgt: Support x86-64.
9901 * NEWS: Note new target x86-64.
9902
b7c4cbf8
AJ
9903 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9904 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9905 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9906 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9907 x86-64-linux-nat.o): Fix dependencies.
9908
82600034
AC
99092002-01-19 Andrew Cagney <ac131313@redhat.com>
9910
9911 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9912 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9913 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9914 * config/sparc/xm-sun4os4.h: Delete file.
9915 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9916
bbe5c628
AC
99172002-01-19 Andrew Cagney <ac131313@redhat.com>
9918
9919 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9920 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9921 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9922 * config/i386/i386lynx.mh (XM_FILE): Delete.
9923 * config/rs6000/xm-rs6000ly.h: Delete file.
9924 * config/sparc/xm-sparclynx.h: Delete file.
9925 * config/m68k/xm-m68klynx.h: Delete file.
9926 * config/i386/xm-i386lynx.h: Delete file.
9927 * config/xm-lynx.h: Delete file.
9928 * config/djgpp/fnchange.lst: Update.
9929
f8453e34
JT
99302002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9931
9932 * alpha-tdep.c (alpha_register_byte): New function.
9933 (alpha_register_raw_size): Ditto.
9934 (alpha_register_virtual_size): Ditto.
9935 (alpha_skip_prologue_internal): Renamed from
9936 alpha_skip_prologue.
9937 (alpha_skip_prologue): New version that calls
9938 alpha_skip_prologue_internal.
9939 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9940 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9941 second argument from alpha_skip_prologue.
9942 (REGISTER_BYTE): Use alpha_register_byte.
9943 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9944 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9945 (FRAMELESS_FUNCTION_INVOCATION): Use
9946 generic_frameless_function_invocation_not.
9947 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9948 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9949
52d9e613
AC
99502002-01-19 Andrew Cagney <ac131313@redhat.com>
9951
9952 * config/mips/xm-news-mips.h: Delete file.
9953 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9954
9955 * config/m88k/xm-m88k.h: Delete file.
9956 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9957 * config/m88k/xm-delta88v4.h: Ditto.
9958 * config/m88k/xm-delta88.h: Ditto.
9959
9960 * config/alpha/xm-fbsd.h: Delete file.
9961 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9962
9963 * config/sparc/xm-sparc.h: Delete file.
9964 * Makefile.in (xm-sun4os4.h): Delete dependency.
9965 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9966 * config/sparc/xm-sun4os4.h: Ditto.
9967 * config/sparc/xm-linux.h: Ditto.
9968
9969 * config/i386/xm-windows.h: Delete file.
9970
2d1b2124
AC
99712002-01-19 Andrew Cagney <ac131313@redhat.com>
9972
9973 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9974 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9975
ee1f65f0
JT
99762002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9977
9978 * alpha-tdep.c (alpha_call_dummy_words): New.
9979 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9980 (CALL_DUMMY_P): Define.
9981 (CALL_DUMMY_WORDS): Define.
9982 (SIZEOF_CALL_DUMMY_WORDS): Define.
9983
98081e55
PB
99842002-01-19 Per Bothner <per@bothner.com>
9985
9986 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9987 isn't NULL, which can happen with some gcj-3.x-produced code.
9988
0d056799
JT
99892002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9990
9991 * alpha-tdep.c (alpha_register_virtual_type): New function.
9992 (alpha_init_frame_pc_first): Ditto.
9993 (alpha_fix_call_dummy): Ditto.
9994 (alpha_store_struct_return): Ditto.
9995 (alpha_extract_struct_value_address): Ditto.
9996 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9997 alpha_register_virtual_type.
9998 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9999 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10000 alpha_extract_struct_value_address.
10001 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10002 (INIT_FRAME_PC): Use init_frame_pc_noop.
10003 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10004
4604bcad
MK
100052002-01-19 Mark Kettenis <kettenis@gnu.org>
10006
10007 * i386gnu-nat.c: Include "i386-tdep.h".
10008 (fetch_fpregs): Simplify code dealing with uninitialized floating
10009 point states such that it doesn't require FP7_REGNUM.
10010
140f9984
JT
100112002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10012
abf22e64
AJ
10013 * alpha-tdep.c (frame_extra_info): New.
10014 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10015 frame->extra_info.
10016 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10017 (alpha_frame_saved_pc): Use frame->extra_info.
10018 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10019 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10020 (init_extra_frame_info): Rename to...
10021 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10022 (alpha_print_extra_frame_info): New function.
140f9984
JT
10023 (alpha_frame_locals_address): Ditto.
10024 (alpha_frame_args_address): Ditto.
abf22e64 10025 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10026 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10027 alpha_frame_args_address.
abf22e64 10028 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10029 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10030 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10031 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10032 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10033 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10034
d734c450
JT
100352002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10036
10037 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10038 (alpha_cannot_fetch_register): Ditto.
10039 (alpha_cannot_store_register): Ditto.
10040 (alpha_register_convertible): Ditto.
10041 (alpha_use_struct_convention): Ditto.
10042 * config/alpha/tm-alpha.h: Update copyright years.
10043 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10044 (INNER_THAN): Use core_addr_lessthan.
10045 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10046 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10047 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10048 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10049 (FRAME_CHAIN): Remove unnecessary cast.
10050
b4ceaee6
AC
100512002-01-18 Andrew Cagney <ac131313@redhat.com>
10052
10053 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10054 obsolete.
10055
0a65a603
AC
100562002-01-18 Andrew Cagney <ac131313@redhat.com>
10057
10058 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10059 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10060 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10061 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10062 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10063 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10064 * x86-64-linux-nat.c: Ditto.
10065
636a6dfc
JT
100662002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10067
abf22e64 10068 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10069 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10070 (REGISTER_NAME): Define.
10071
acceddb6
JT
100722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10073
10074 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10075
ec32e4be
JT
100762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10077
10078 * alpha-tdep.c: Update copyright years.
10079 (alpha_next_pc): New function.
10080 (alpha_software_single_step): Ditto.
10081 * config/alpha/tm-alpha.h: Add prototype for
10082 alpha_software_single_step.
10083
e771a871
JT
100842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10085
10086 * alphabsd-nat.c: Update copyright years.
10087 (fill_gregset): Use regcache_collect.
10088 (fill_fpregset): Likewise.
10089 (fetch_inferior_registers): Only fetch integer registers
10090 if requested to do so.
10091 (store_inferior_registers): Only store integer registers
10092 if requested to do so.
10093
7708fa01
AC
100942002-01-17 Andrew Cagney <ac131313@redhat.com>
10095
10096 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10097 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10098 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10099 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10100 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10101 * config/arm/linux.mh (XDEPFILES): Delete.
10102 * config/arm/nbsd.mh (XDEPFILES): Delete.
10103 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10104 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10105 * config/i386/i386m3.mh (XDEPFILES): Delete.
10106 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10107 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10108 * config/i386/fbsd.mh (XDEPFILES): Delete.
10109 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10110 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10111 * config/i386/i386v4.mh (XDEPFILES): Delete.
10112 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10113 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10114 * config/i386/i386aix.mh (XDEPFILES): Delete.
10115 * config/i386/go32.mh (XDEPFILES): Delete.
10116 * config/i386/cygwin.mh (XDEPFILES): Delete.
10117 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10118 * config/i386/i386mach.mh (XDEPFILES): Delete.
10119 * config/i386/i386v32.mh (XDEPFILES): Delete.
10120 * config/i386/linux.mh (XDEPFILES): Delete.
10121 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10122 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10123 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10124 * config/i386/i386sco.mh (XDEPFILES): Delete.
10125 * config/i386/i386v.mh (XDEPFILES): Delete.
10126 * config/i386/nbsd.mh (XDEPFILES): Delete.
10127 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10128 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10129 * config/i386/symmetry.mh (XDEPFILES): Delete.
10130 * config/i386/obsd.mh (XDEPFILES): Delete.
10131 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10132 * config/ia64/linux.mh (XDEPFILES): Delete.
10133 * config/ia64/aix.mh (XDEPFILES): Delete.
10134 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10135 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10136 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10137 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10138 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10139 * config/m68k/linux.mh (XDEPFILES): Delete.
10140 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10141 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10142 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10143 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10144 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10145 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10146 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10147 * config/m88k/delta88.mh (XDEPFILES): Delete.
10148 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10149 * config/m88k/m88k.mh (XDEPFILES): Delete.
10150 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10151 * config/mips/linux.mh (XDEPFILES): Delete.
10152 * config/mips/irix6.mh (XDEPFILES): Delete.
10153 * config/mips/irix5.mh (XDEPFILES): Delete.
10154 * config/mips/irix4.mh (XDEPFILES): Delete.
10155 * config/mips/irix3.mh (XDEPFILES): Delete.
10156 * config/mips/decstation.mh (XDEPFILES): Delete.
10157 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10158 (NATDEPFILES): Move core-aout.o to here.
10159 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10160 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10161 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10162 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10163 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10164 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10165 * config/pa/hpux11.mh (XDEPFILES): Delete.
10166 * config/powerpc/aix.mh (XDEPFILES): Delete.
10167 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10168 * config/powerpc/linux.mh (XDEPFILES): Delete.
10169 * config/romp/rtbsd.mh: Rename XDEPFILES.
10170 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10171 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10172 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10173 * config/s390/s390.mh (XDEPFILES): Delete.
10174 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10175 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10176 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10177 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10178 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10179 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10180 * config/sparc/linux.mh (XDEPFILES): Delete.
10181 * config/vax/vaxult.mh (XDEPFILES): Delete.
10182 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10183 * Makefile.in (DEPFILES): Remove XDEPFILES.
10184
375fc983
AC
101852002-01-17 Andrew Cagney <ac131313@redhat.com>
10186
10187 * utils.c (internal_verror): Fix comments, default is yes not no.
10188 Update queries to match. Default to quit and dump core.
10189
8926118c
AC
101902002-01-17 Andrew Cagney <ac131313@redhat.com>
10191
10192 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10193 copyright.
10194 * defs.h, event-top.c, gdbcmd.h: Ditto.
10195 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10196 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10197 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10198 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10199 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10200 * mi/mi-main.c:Ditto.
10201
10202 * stack.c, symfile.c: Update copyright.
10203
45b7b345
DJ
102042002-01-17 Daniel Jacobowitz <drow@mvista.com>
10205
db728ff7
DJ
10206 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10207 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10208 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10209 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10210
db728ff7
DJ
102112002-01-17 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10214 * gdbserver/low-lynx.c (myattach): Likewise.
10215 * gdbserver/low-nbsd.c (myattach): Likewise.
10216 * gdbserver/low-sim.c (myattach): Likewise.
10217 * gdbserver/low-sparc.c (myattach): Likewise.
10218 * gdbserver/low-sun3.c (myattach): Likewise.
10219
10220 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10221
db728ff7 10222 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10223 (main): Handle "--attach".
10224
8de3c354
AC
102252002-01-16 Andrew Cagney <ac131313@redhat.com>
10226
10227 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10228 maintainer.
10229
b0129042
DJ
102302002-01-15 Daniel Jacobowitz <drow@mvista.com>
10231
10232 * c-typeprint.c (is_type_conversion_operator): Add additional
10233 check for non-conversion operators.
10234
ba8679fb 102352002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10236
10237 * linux-proc.c: Add "info proc" command, a la procfs.c.
10238 (read_mapping): New function, abstract and re-use code.
10239 (linux_find_memory_regions): Use new func read_mapping.
10240 (linux_info_proc_cmd): New function, implement "info proc".
10241 (_initialize_linux_proc): Add new command "info proc".
10242
e4f9b4d5
MS
102432002-01-15 Michael Snyder <msnyder@redhat.com>
10244
10245 * symfile.c (generic_load): Use bfd_map_over_sections method
10246 instead of manipulating bfd structure members directly.
10247 (add_section_size_callback): New function, bfd sections callback
10248 used by generic_load.
10249 (load_sections_callback): New function, bfd sections callback
10250 used by generic_load.
10251
08cf96df
EZ
102522002-01-15 Elena Zannoni <ezannoni@redhat.com>
10253
abf22e64 10254 [Based on work by Jim Blandy]
08cf96df
EZ
10255 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10256 (builtin_type_vec128): Export.
10257 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10258 types.
10259 (builtin_type_vec128): New builtin type for 128 bit vector
10260 registers.
10261 (build_gdbtypes): Initialize builtin_type_v16qi and
10262 builtin_type_v8hi. Create the vec128 register builtin type
10263 structure.
10264 (build_builtin_type_vec128): New function.
abf22e64 10265 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10266 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10267 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10268 AltiVec register to new builtin type.
10269
d7242108
DJ
102702001-01-15 Daniel Jacobowitz <drow@mvista.com>
10271
10272 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10273 to make_cv_type.
10274
4ee3352d
AC
102752002-01-14 Andrew Cagney <ac131313@redhat.com>
10276
10277 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10278 CLEAN_UP_REGISTER_VALUE.
10279 * regcache.c (supply_register): Update only call.
10280
f015b2e7
AC
102812002-01-14 Andrew Cagney <ac131313@redhat.com>
10282
10283 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10284 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10285 a29k-*-vxworks* targets as obsolete.
10286
356ae49d
MS
102872002-01-14 Michael Snyder <msnyder@redhat.com>
10288
10289 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10290 until we can resolve portability issues.
10291 * gregset.h: Remove references to fpxregs.
10292 * gcore.c (gcore_command): Initialize note_sec to NULL.
10293
ade8f45e
AC
102942002-01-13 Andrew Cagney <ac131313@redhat.com>
10295
10296 * signals.c (target_signal_to_name): Rewrite. Only use
10297 signals[].name when in bounds and non-NULL.
abf22e64 10298
89c49e7a
AC
102992002-01-13 Andrew Cagney <ac131313@redhat.com>
10300
10301 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10302 * signals.c (target_signal_to_name): Verify that SIG is within the
10303 bounds of the signals array.
10304
4daa9f9f
AC
103052002-01-13 Andrew Cagney <ac131313@redhat.com>
10306
10307 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10308
ba4bbdcb
KS
103092002-01-13 Keith Seitz <keiths@redhat.com>
10310
10311 * stack.c (print_frame_info_base): Print the frame's pc
10312 only if when print_frame_info_listing_hook is not defined.
10313
575bbeb6
KS
103142002-01-13 Keith Seitz <keiths@redhat.com>
10315
10316 * varobj.c (varobj_set_value): Make sure that there were no
10317 errors evaluating the object before attempting to set its
10318 value.
10319 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10320 so this offset adjustment is no longer necessary.
10321 (create_child): Don't set the error flag if the child is
10322 a CPLUS_FAKE_CHILD.
10323 (value_of_child): If value_fetch_lazy fails, return NULL
10324 so that callers will be notified that an error occurred.
10325 (c_value_of_variable): Delay check of variable's validity
10326 until later. We actually want all structs and unions to have
10327 the value "{...}".
10328 Do not return "???" for variables which could not be evaluated.
10329 This error condition must be returned to the caller so that it
10330 can get the error condition from gdb.
10331 (cplus_name_of_child): Adjust index for vptr before figuring
10332 out the name of the child.
10333 (cplus_value_of_child): If a child's (real) parent is not valid,
10334 don't even bother trying to give a value for it. Just return
10335 an error. Change all instances in this function.
10336 (cplus_type_of_child): If our parent is one of the "fake"
10337 parents, we need to get at the type of the real parent, and
10338 derive the child's true type using this information.
10339
b76898ab
AC
103402002-01-13 Andrew Cagney <ac131313@redhat.com>
10341
10342 From 2002-01-09 John Marshall <johnm@falch.net>:
10343 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10344 sources.redhat.com, and tweak some related URLs which had
10345 suffered from linkrot.
10346
b6649e88
AC
103472002-01-13 Andrew Cagney <ac131313@redhat.com>
10348
10349 From Jeff law:
10350 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10351 structures passed in registers.
10352
82cc5033
EZ
103532002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10354
10355 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10356 white space which prevented compilation. Reported by DSK
10357 <dsk@student.unsw.edu.au>.
10358
ba5f2f8a
MS
103592002-01-11 Michael Snyder <msnyder@redhat.com>
10360
fbd35540
MS
10361 * symfile.c (build_section_addr_info_from_section_tab):
10362 Use bfd access method instead of manipulating bfd directly.
10363 (syms_from_objfile): Ditto.
10364 (simple_overlay_update_1): Ditto.
10365 (simple_overlay_update): Ditto.
10366 (generic_load): Ditto.
10367 (overlay_unmapped_address): FIXME comment, bfd access methods.
10368 (sections_overlap): FIXME comment, bfd access methods.
10369 (pc_in_mapped_range): FIXME comment, bfd access methods.
10370 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10371 (section_is_mapped): FIXME comment, bfd access methods.
10372 (section_is_overlay): FIXME comment, bfd access methods.
10373
ba5f2f8a
MS
10374 * symfile.c (generic_load): Whitespace and long line cleanups.
10375 Remove duplicate variable, change several local variables to
10376 more appropriate data types.
10377 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10378
17df2af6
AC
103792002-01-12 Andrew Cagney <ac131313@redhat.com>
10380
10381 From Peter Schauer:
10382 * language.c (longest_local_hex_string_custom): Use phex_nz to
10383 convert NUM to a hex string.
10384
ec920329
EZ
103852002-01-12 Elena Zannoni <ezannoni@redhat.com>
10386
10387 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10388 the function.
538a76d6 10389 Update Copyright year.
ec920329 10390
3abd2e01
AC
103912002-01-12 Andrew Cagney <ac131313@redhat.com>
10392
10393 * language.c (longest_raw_hex_string): Delete unused function.
10394
b21b22e0
PS
103952002-01-11 Petr Sorfa <petrs@caldera.com>
10396
10397 * MAINTAINERS (write-after-approval): Add myself.
10398 * dwarf2read.c (read_tag_string_type): Handling of
10399 DW_AT_byte_size.
10400 (read_tag_string_type): FORTRAN fix to prevent propagation of
10401 first string size.
10402 (set_cu_language): Handling of DW_LANG_Fortran95
10403
747fe712
RE
104042002-01-11 Richard Earnshaw <rearnsha@arm.com>
10405
10406 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10407 GETPID(inferior_ptid).
10408 (store_inferior_registers): Likewise.
10409
f1bea926
JM
104102002-01-10 Jason Merrill <jason@redhat.com>
10411
10412 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10413 Fix DW_OP_minus.
10414
ae940673
AC
104152002-01-10 Andrew Cagney <ac131313@redhat.com>
10416
10417 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10418 and bfd/elf32-sh-nbsd.c.
10419
00546b04
MS
104202002-01-10 Michael Snyder <msnyder@redhat.com>
10421
352ed7b4
MS
10422 * NEWS: Mention --pid and corefile/proc-id behavior change.
10423
c18be923
MS
10424 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10425 * gcore.c: Include cli/cli-decode.h instead of command.h.
10426
00546b04
MS
10427 * main.c (captured_main): Add new command line option "--pid".
10428 If the second command line argument (following the symbol-file)
10429 begins with a digit, try to attach to it before trying to open
10430 it as a corefile.
10431 (print_gdb_help): Document the "--pid" argument.
10432
db60ec62
EZ
104332002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10434
10435 * completer.c (command_completer): New function.
10436
10437 * completer.h <command_completer>: Add prototype.
10438
10439 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10440 completer for the "help" command.
10441
39c22d1a
JM
104422002-01-09 Jason Merrill <jason@redhat.com>
10443
10444 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10445
c564377f
MS
104462002-01-09 Michael Snyder <msnyder@redhat.com>
10447
975aec09
MS
10448 * i386-linux-nat.c (fill_fpxregset): Make global.
10449 (store_fpxregset): Ditto.
10450
db4a10fa
MS
10451 * gregset.h (gdb_fpxregset_t): Define.
10452 (supply_fpxregset): Prototype.
10453 (fill_fpxregset): Prototype.
10454
c564377f
MS
10455 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10456
c3d45d70
RE
104572002-01-09 Richard Earnshaw <rearnsha@arm.com>
10458
10459 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10460 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10461 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10462
fcc87af1
AC
104632002-01-09 Andrew Cagney <ac131313@redhat.com>
10464
10465 * MAINTAINERS: Update target maintainer rules so that any
10466 Maintainer can approve a tested patch for a maintenance-only
10467 target.
10468
dd96c05b
RE
104692002-01-09 Richard Earnshaw <rearnsha@arm.com>
10470
d4297db9 10471 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10472
d4297db9 10473 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10474 IN_SIGTRAMP.
10475
145fdc6e
MS
104762002-01-08 Michael Snyder <msnyder@redhat.com>
10477
10478 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10479 real name of the executable, rather than the /proc name.
10480
be4d1333
MS
104812002-01-03 Michael Snyder <msnyder@redhat.com>
10482
10483 Implement a "generate-core-file" command in gdb, save target state.
10484 * gcore.c: New file. Implement new command 'generate-core-file'.
10485 Save a corefile image of the current state of the inferior.
10486 * linux-proc.c: Add linux-specific code for saving corefiles.
10487 * target.h (struct target_ops): Add new target vectors for saving
10488 corefiles; to_find_memory_regions and to_make_corefile_notes.
10489 (target_find_memory_regions): New macro.
10490 (target_make_corefile_notes): New macro.
10491 * target.c (update_current_target): Inherit new target methods.
10492 (dummy_find_memory_regions): New place-holder method.
10493 (dummy_make_corefile_notes): New place-holder method.
10494 (init_dummy_target): Initialize new dummy target vectors.
10495 * exec.c (exec_set_find_memory_regions): New function.
10496 Allow the exec_ops vector for memory regions to be taken over.
10497 (exec_make_note_section): New function, target vector method.
10498 * defs.h (exec_set_find_memory_regions): Export prototype.
10499 * procfs.c (proc_find_memory_regions): New function, corefile method.
10500 (procfs_make_note_section): New function, corefile method.
10501 (init_procfs_ops): Set new target vector pointers.
10502 (find_memory_regions_callback): New function.
10503 (procfs_do_thread_registers): New function.
10504 (procfs_corefile_thread_callback): New function.
10505 * sol-thread.c (sol_find_memory_regions): New function.
10506 (sol_make_note_section): New function.
10507 (init_sol_thread_ops): Initialize new target vectors.
10508 * inftarg.c (inftarg_set_find_memory_regions): New function.
10509 Allow to_find_memory_regions vector to be taken over.
10510 (inftarg_set_make_corefile_notes): New function.
10511 Allow to_make_corefile_notes vector to be taken over.
10512 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10513 interface layer if not target_has_execution (may be a corefile).
10514 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10515 * config/sparc/sun4sol2.mh: Ditto.
10516 * config/alpha/alpha-linux.mh: Ditto.
10517 * config/arm/linux.mh: Ditto.
10518 * config/i386/x86-64linux.mh: Ditto.
10519 * config/ia64/linux.mh: Ditto.
10520 * config/m68k/linux.mh: Ditto.
10521 * config/mips/linux.mh: Ditto.
10522 * config/powerpc/linux.mh: Ditto.
10523 * config/sparc/linux.mh: Ditto.
10524
c6b92abd
MS
105252002-01-07 Michael Snyder <msnyder@redhat.com>
10526
10527 * arm-linux-nat.c: Remove references to regcache.c internal data
10528 (registers[] and register_valid[]).
10529
4b09dc8c
MS
105302002-01-07 Michael Snyder <msnyder@redhat.com>
10531
abf22e64
AJ
10532 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10533 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10534 symbol file and shlibs.
10535 * Makefile.in: Add rule for linux-proc.o.
10536 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10537 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10538 * config/arm/linux.mh: Ditto.
10539 * config/i386/linux.mh: Ditto.
10540 * config/i386/x86-64linux.mh: Ditto.
10541 * config/ia64/linux.mh: Ditto.
10542 * config/m68k/linux.mh: Ditto.
10543 * config/mips/linux.mh: Ditto.
10544 * config/powerpc/linux.mh: Ditto.
10545 * config/sparc/linux.mh: Ditto.
10546
c25b74ac
PM
105472002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10548
10549 * win32-nat.c: Add i386-tdep.h dependency.
10550
94cd915f
MS
105512002-01-07 Michael Snyder <msnyder@redhat.com>
10552
c7cccb76
MS
10553 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10554 instead of bfd_get_arch_size. Don't bail out just because
10555 there's no exec_bfd.
abf22e64 10556
34c0bd93
MS
10557 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10558 * p-valprint.c (pascal_object_print_value): Ditto.
10559 * somread.c (som_symtab_read): Ditto.
10560 * symfile.c (simple_free_overlay_region_table): Ditto.
10561 * valops.c (value_assign): Ditto.
10562
21c1c920
MS
10563 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10564 use tilde_expand and strerror for opening save-tracepoints file.
10565
5bbd998e
MS
10566 * thread-db.c (thread_db_new_objfile): Indendation fix.
10567
94cd915f
MS
10568 * infptrace.c (GDB_MAX_ALLOCA): New define.
10569 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10570 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10571 can be overridden with whatever value is appropriate to the host).
10572 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10573 alloca to allocate potentially large buffer.
10574 * rs6000-nat.c (child_xfer_memory): Ditto.
10575 * symm-nat.c (child_xfer_memory): Ditto.
10576 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10577
494e8a93
JSC
105782002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10579
10580 From Nick Clifton <nickc@redhat.com>
10581 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10582
d0e1d48e
MS
105832002-01-07 Michael Snyder <msnyder@redhat.com>
10584
abf22e64 10585 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10586 Don't use exec_bfd if it's NULL.
10587
290b2c7a
MK
105882002-01-06 Mark Kettenis <kettenis@gnu.org>
10589
abf22e64 10590 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10591
aef21287
AC
105922002-01-06 Andrew Cagney <ac131313@redhat.com>
10593
10594 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10595 * gnu-nat.c: Ditto.
10596
30efa627
AC
105972002-01-06 Andrew Cagney <ac131313@redhat.com>
10598
10599 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10600 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10601 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10602 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10603 z8k-coff have not been multi-arched. Update z8k-coff build
10604 status.
10605
9b4ff276
AC
106062002-01-06 Andrew Cagney <ac131313@redhat.com>
10607
10608 * MAINTAINERS: Mark a29k target as obsolete.
10609 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10610 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10611 comments.
10612 * NEWS: Note that a29k targets are obsolete.
10613 * a29k-tdep.c: Mark as obsolete.
10614 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10615 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10616 a29k-*-vxworks* targets as obsolete.
10617 * remote-adapt.c: Obsolete.
10618 * remote-eb.c: Obsolete.
10619 * remote-mm.c: Obsolete.
10620 * remote-udi.c: Obsolete.
10621 * config/a29k/a29k-udi.mt: Obsolete.
10622 * config/a29k/a29k.mt: Obsolete.
10623 * config/a29k/tm-a29k.h: Obsolete.
10624 * config/a29k/tm-vx29k.h: Obsolete.
10625 * config/a29k/vx29k.mt: Obsolete.
10626
a9011d31
AC
106272002-01-05 Andrew Cagney <ac131313@redhat.com>
10628
10629 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10630 with BFD_ENDIAN_BIG.
10631
9299404e
AC
106322002-01-05 Andrew Cagney <ac131313@redhat.com>
10633
10634 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10635 * configure, config.in: Re-generate.
10636 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10637 * defs.h: Do not include <endian.h>.
10638
7e89e357
JT
106392002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10640
10641 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10642 * config.in: Regenerate.
10643 * configure.in: Update copyright years.
10644 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10645 * configure: Regenerate.
10646 * i386bsd-nat.c: Update copyright years.
10647 (fill_gregset): Use regcache_collect.
10648 (fetch_inferior_registers): Only fetch integer registers
10649 if requested to do so. Add support for XMM registers
10650 using PT_GETXMMREGS.
10651 (store_inferior_registers): Only store integer registers
10652 if requested to do so. Add support for XMM registers
10653 using PT_SETXMMREGS.
10654 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10655 (store_inferior_registers): Remove.
10656 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10657 (fetch_elfcore_registers): New function.
10658 (i386nbsd_elfcore_fns): New.
10659 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10660 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10661 i386bsd-nat.o.
10662 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10663 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10664 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10665 * config/i386/tm-nbsd.h: Update copyright years.
10666 (HAVE_SSE_REGS): Define.
10667 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10668 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10669 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10670 (SIGCONTEXT_PC_OFFSET): Remove.
10671 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10672
a752853e
AC
106732002-01-05 Andrew Cagney <ac131313@redhat.com>
10674
10675 * configure.tgt: Remove powerpc-*-macos* target.
10676 * config/m68k/xm-mpw.h: Delete file.
10677 * config/xm-mpw.h: Delete file.
10678 * ser-mac.c: Delete file.
10679 * mpw-make.sed: Delete file.
10680 * mpw-config.in: Delete file.
10681 * mac-xdep.c: Delete file.
10682 * mac-gdb.r: Delete file.
10683 * mac-defs.h: Delete file.
10684 * mac-nat.c: Delete file.
10685 * config/powerpc/macos.mh: Delete file.
10686 * config/powerpc/macos.mt: Delete file.
10687 * config/powerpc/nm-macos.h: Delete file.
10688 * config/powerpc/tm-macos.h: Delete file.
10689 * source.c (openp, open_source_file): Remove obsolete code.
10690 * top.c (gdb_readline): Ditto.
10691 * utils.c (query): Ditto.
10692 * event-top.c (display_gdb_prompt): Ditto.
10693 * Makefile.in (ser-mac.o): Delete obsolete target.
10694 * NEWS: Update.
10695
d7449b42
AC
106962002-01-04 Andrew Cagney <ac131313@redhat.com>
10697
10698 * defs.h (BIG_ENDIAN): Delete macro definition.
10699 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10700 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10701 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10702 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10703 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10704 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10705 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10706 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10707 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10708 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10709 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10710 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10711 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10712 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10713 * gdbarch.c: Re-generate.
10714
356374e8
DJ
107152002-01-04 Daniel Jacobowitz <drow@mvista.com>
10716
10717 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10718 for core files.
10719
a2b8f8f8
JT
107202002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10721
10722 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10723
12466af9
AC
107242002-01-04 Andrew Cagney <ac131313@redhat.com>
10725
10726 * value.h (value_ptr): Delete typedef.
10727
3549ab40
JT
107282002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10729
10730 * i386nbsd-nat.c: Update copyright years.
10731 Include i386-tdep.h.
10732
fedbd091
EZ
107332002-01-04 Elena Zannoni <ezannoni@redhat.com>
10734
10735 * stabsread.c: Update copyright years.
10736
10737 From Debashis Mahata <debashis.mahata@wipro.com>:
10738 (read_struct_fields): Deal with Sun C compiler erroneous stab
10739 output for structs and unions.
fec8b34f 10740 Fix PR gdb/269.
fedbd091 10741
eb43544b
DJ
107422002-01-04 Daniel Jacobowitz <drow@mvista.com>
10743
10744 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10745 prototype.
10746
1514d34e
DJ
107472002-01-04 Daniel Jacobowitz <drow@mvista.com>
10748
10749 * cp-abi.c: Fix whitespace.
10750 (baseclass_offset): New wrapper function.
10751 * cp-abi.h (baseclass_offset): Add prototype.
10752 (struct cp_abi_ops): Add baseclass_offset pointer.
10753
10754 * valops.c (vb_match): Move to...
10755 * gnu-v2-abi.c (vb_match): here.
10756 * valops.c (baseclass_offset): Move to...
10757 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10758
10759 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10760
10761 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10762 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10763 * hpacc-abi.c (init_hpacc_ops): Likewise.
10764
7f8c9282
DJ
107652002-01-04 Daniel Jacobowitz <drow@mvista.com>
10766
10767 * valops.c (find_overload_match): Accept obj as a
10768 reference parameter. Update it before returning.
10769 * value.h (find_overload_match): Update prototype.
10770 * eval.c (evaluate_subexp_standard): Pass object to
10771 find_overload_match by reference.
10772
f23631e4
AC
107732002-01-03 Andrew Cagney <ac131313@redhat.com>
10774
10775 * valarith.c: Replace value_ptr with struct value pointer. Remove
10776 register attribute from value declarations.
10777 * valops.c: Ditto.
10778 * value.h: Ditto.
10779 * scm-lang.c (scm_lookup_name): Ditto.
10780
79e10fab 107812002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10782
79e10fab
AC
10783 Abstract the functionality of iterating over mapped memory
10784 regions into a general purpose iterator function.
abf22e64 10785 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10786 iterator for memory sections.
10787 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10788 (solib_mappings_callback): New function, callback for above.
10789 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10790 (info_mappings_callback): New function, callback for above.
10791
10792 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10793
c5ad026a
MK
107942002-01-01 Mark Kettenis <kettenis@gnu.org>
10795
d2a7c97a
MK
10796 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10797 * i386-tdep.c: Include "elf-bfd.h".
10798 (process_note_abi_tag_sections): New function.
10799 (i386_gdbarch_init): Add code to recognize various OS/ABI
10800 combinations.
10801
c5ad026a
MK
10802 * maint.c (_initialize_maint_cmds): Add missing \ in
10803 string-literal.
10804
a1a5b71e 10805For older changes see ChangeLog-2001
c906108c
SS
10806\f
10807Local Variables:
10808mode: change-log
10809left-margin: 8
10810fill-column: 74
10811version-control: never
10812End:
This page took 0.938072 seconds and 4 git commands to generate.