* test commit
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
da12f4d8
JL
12002-09-10 Jeff Law <law@redhat.com>
2
3 * infttrace.c (child_resume): Simplify and rework to avoid
4 TT_PROC_CONTINUE.
5
d0aee0c4
FF
62002-09-09 Fred Fish <fnf@intrinsity.com>
7
8 * printcmd.c (print_scalar_formatted): "len" is the number of
9 target bytes, NOT the number of target bits.
10
7cb3ec5e
EZ
112002-09-09 Elena Zannoni <ezannoni@redhat.com>
12
13 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
14 * top.c (init_main): Set rl_terminal_name.
15
4dc81987
AS
162002-09-08 Aidan Skinner <aidan@velvet.net>
17
18 * ada-lang.c (ada_array_bound, ada_type_match,
19 _initialize_ada_language): Fix K&R definitions.
20 * ada-tasks.c (get_current_task): Fix K&R definitions.
21 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
22
842330b4
CF
232002-09-07 Christopher Faylor <cgf@redhat.com>
24
25 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
26 Add XP.
27
43156d82
MK
282002-09-06 Mark Kettenis <kettenis@gnu.org>
29
66da5fd8
MK
30 * i386-tdep.c (i386_register_virtual_type,
31 i386_register_convertible, i386_register_convert_to_virtual,
32 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
33 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
34 (i386_gdbarch_init): Fix comment. Add comments on calls that set
35 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
36 Don't set push_arguments twice.
37
4b218c18
MK
38 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
39 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
40 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
41 sigtramp_end to NULL.
42 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
43 defines.
44 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
45
4cc314d5
MK
46 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
47 whitespace.
48
43156d82
MK
49 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
50 * gdbarch.h, gdbarch.c: Re-generate.
51 * blockframe.c (find_pc_sect_partial_function): Convert to use
52 SIGTRAMP_START_P predicate.
53
6672060b
MS
542002-09-05 Michael Snyder <msnyder@redhat.com>
55
a90c3637
MS
56 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
57 generic_dummy_frame method and old method. Also distinguish
58 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 59 (arm_extract_return_value): Use new regcache method.
a90c3637 60
6672060b
MS
61 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
62 adjustment that doesn't conform to the ABI.
63 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
64 saved regcache, not from current regcache.
65
299ffc64
AC
662002-09-05 Andrew Cagney <ac131313@redhat.com>
67
68 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
69 * README: Update.
70
a3a2ee65
JT
712002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
72
73 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
74 if arm_apcs_32 is false.
75
2bc7eea9
AC
762002-09-04 Andrew Cagney <ac131313@redhat.com>
77
78 GDB 5.3 branch created.
79
8a55a7c5
TR
802002-09-03 Theodore A. Roth <troth@verinet.com>
81
82 * gdb/avr-tdep.c (avr_gdbarch_init): Use
83 generic_unwind_get_saved_register.
84
e26fb1d7
DC
852002-09-03 David Carlton <carlton@math.stanford.edu>
86
87 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
88 argument (PR gdb/653). Update call to smash_to_method_type.
89 (read_structure_scope): Update call to dwarf2_add_member_fn.
90
30d52491
ML
912002-09-03 Michal Ludvig <mludvig@suse.cz>
92
93 * x86-64-linux-tdep.c: Include gdb_string.h
94 * x86-64-linux-nat.c: Ditto.
95
06891d83
JT
962002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
97
98 * ada-exp.y (yyname, yyrule): Remap global variables that appear
99 when YYDEBUG is set to 1.
100 * c-exp.y: Likewise.
101 * f-exp.y: Likewise.
102 * jv-exp.y: Likewise.
103 * m2-exp.y: Likewise.
104 * p-exp.y: Likewise.
105
7d400e77
JT
1062002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
107
108 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
109 dependency list.
110 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
111 solib_svr4_fetch_link_map_offsets to
112 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
113 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
114 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
115 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
116 solib-svr4.o, and solib-legacy.o.
117 * config/i386/tm-nbsd.h: Include solib.h.
118
704a27c4
JT
1192002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
120
121 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
122 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
123 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
124 comment noting that this needs its own target configuration.
125 * config/i386/nbsd.mt: New file.
126 * config/i386/nbsdaout.mt: Remove.
127 * config/i386/nbsdelf.mt: Ditto.
128 * config/i386/tm-nbsdaout.h: Ditto.
129
d66198e1
JT
1302002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
131
132 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
133 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
134 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
135 tdep->sigtramp_end.
136 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
137 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
138 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
139
3cac699e
JT
1402002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
141
142 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
143 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
144 * i386-tdep.h (i386bsd_init_abi): New prototype.
145 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
146 function declaration.
147 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
148 for NetBSD-a.out or NetBSD-ELF.
149 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
150 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
151 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
152 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
153 and nbsd-tdep.h.
154 (i386nbsd_pc_in_sigtramp): New function.
155 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
156 i386nbsd_pc_in_sigtramp.
157 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
158 and i386nbsdelf_init_abi OS ABI handlers.
159 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
160 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
161
7010ca0a
MK
1622002-09-02 Mark Kettenis <kettenis@gnu.org>
163
164 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
165 registers if the target really has them.
166
6dd93b72
JT
1672002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
168
169 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
170 than nbsd-tdep.h.
171
2ca8ae21
JT
1722002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
173
174 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
175 list.
176 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
177 (alphanbsd_skip_sigtramp_frame): New functions.
178 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
179 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
180 to alphanbsd_sigcontext_addr.
181
3d9b49b0
JT
1822002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
183
184 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
185 list.
186 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
187 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
188 nbsd_pc_in_sigtramp.
189 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
190 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
191 * nbsd-tdep.c: Include gdb_string.h.
192 (nbsd_pc_in_sigtramp): New function.
193 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
194 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
195 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
196 ppcnbsd_pc_in_sigtramp.
197 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
198 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
199 shnbsd_pc_in_sigtramp.
200 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
201 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
202 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
203
c860120c
PM
2042002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
205
206 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
207 watchpoints to NULL.
208 (insert_breakpoints): set val field of watchpoints if NULL.
209
210
c7612d53
JB
2112002-08-29 Jim Blandy <jimb@redhat.com>
212
213 * symtab.c (lookup_symbol_aux): In the cases where we find a
214 minimal symbol of an appropriate name and use its address to
215 select a symtab to read and search, use `name' (as passed to us)
216 as the demangled name when searching the symtab's global and
217 static blocks, not the minsym's name.
218
66609862
KS
2192002-08-29 Keith Seitz <keiths@redhat.com>
220
221 * stack.c (print_frame_info_base): Always set current_source_symtab
222 and current_source_line.
223
151fefe2
JB
2242002-08-29 Donn Terry <donnte@microsoft.com>
225
226 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
227
bfb3754e
KS
2282002-08-28 Keith Seitz <keiths@redhat.com>
229
230 * stack.c (select_frame): Add FIXME concerning selected-frame
231 events.
232 (select_frame_command): Send selected-frame-level-changed
233 event notification, but only if the level actually changed.
234 (up_silently_base): Add selected-frame-level-changed event
235 notification.
236 (down_silently_base): Likewise.
237
e822a2a0
AC
2382002-08-28 Andrew Cagney <ac131313@redhat.com>
239
240 * Makefile.in: Update dependencies for all gdb/*.c files.
241
309367d4
TT
2422002-08-27 Tom Tromey <tromey@redhat.com>
243
244 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
245 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
246 Update dependencies.
247 * i387-tdep.c: Include gdb_string.h.
248 * osabi.c: Likewise.
249 * i386-linux-nat.c: Likewise.
250 * lin-lwp.c: Likewise.
251 * ax-gdb.c: Likewise.
252 * signals/signals.c: Likewise.
253 * jv-valprint.c: Likewise.
254 * p-lang.c: Likewise.
255 * c-valprint.c: Likewise.
256 * cp-abi.c: Likewise.
257
e1507482
EZ
2582002-08-27 Elena Zannoni <ezannoni@redhat.com>
259
260 * cli/cli-script.h (copy_command_lines): Export.
261 * breakpoint.c: Include cli/cli-script.h.
262 * Makefile.in (breakpoint.o): Update dependencies.
263
c6510018
MS
2642002-08-26 Michael Snyder <msnyder@redhat.com>
265
266 * breakpoint.c (insert_breakpoints): Protect all references
267 to 'process_warning'. Shorten long lines.
268
c2b8ed2c
MS
2692002-08-26 Joel Brobecker <brobecker@gnat.com>
270
271 * cli/cli-script.c (copy_command_lines): New function.
272 * defs.h (copy_command_lines): Export.
273 * testsuite/gdb.base/commands.exp: New tests for commands
274 attached to a temporary breakpoint, and for commands that
275 delete the breakpoint they are attached to.
276
2772002-08-26 Michael Snyder <msnyder@redhat.com>
278
279 * breakpoint.c (bpstat_stop_status): Instead of copying the
280 pointer to the breakpoint commands struct, make a new copy
281 of the struct and point to that.
282 (bpstat_clear): Free the commands struct.
283 (bpstat_clear_actions): Free the commands struct.
284 (bpstat_do_actions): Free the command actions. Also execute
285 the local cleanups, instead of deleting them.
286 (delete_breakpoint): Leave the commands field of the bpstat
287 chain alone -- it will be freed later.
288
64b84175
KB
2892002-08-26 Kevin Buettner <kevinb@redhat.com>
290
291 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
292 deleted in 2002-08-20 commit. This function is still used by
293 ppc-linux-nat.c.
294
55970da6
KS
2952002-08-26 Keith Seitz <keiths@redhat.com>
296
297 * gdb-events.sh: Add selected-frame-level-changed event.
298 * gdb-events.c: Regenerated.
299 * gdb-events.h: Regenerated.
300
a790ad35
SC
3012002-08-26 Stephane Carrez <stcarrez@nerim.fr>
302
303 Fix PR gdb/393:
304 * inflow.c (terminal_save_ours): New function to save terminal
305 settings.
306 * inferior.h (terminal_save_ours): Declare.
307 * target.c (debug_to_terminal_save_ours): New function.
308 (cleanup_target): Defaults to_terminal_save_ours.
309 (update_current_target): Inherit to_terminal_save_ours.
310 (setup_target_debug): Set to_terminal_save_ours.
311 * target.h (target_terminal_save_ours): New to save terminal settings.
312 (target_ops): New member to_terminal_save_ours.
313 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
314 * hpux-thread.c (init_hpux_thread_ops): Likewise.
315 * inftarg.c (init_child_ops): Likewise.
316 * m3-nat.c (init_m3_ops): Likewise.
317 * procfs.c (init_procfs_ops): Likewise.
318 * wince.c (init_child_ops): Likewise.
319 * win32-nat.c (init_child_ops): Likewise.
320 * sol-thread.c (init_sol_thread_ops): Likewise.
321
c00dcbe9
MK
3222002-08-26 Mark Kettenis <kettenis@gnu.org>
323
3d7f4f49
MK
324 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
325 use regcache_* functions.
326 (i386_gdbarch_init): Set store_return_value instead of
327 deprecated_store_return_value.
328
c00dcbe9
MK
329 * regcache.c (regcache_raw_write_signed,
330 regcache_raw_write_unsigned): New functions.
331 * regcache.h (regcache_raw_write_signed,
332 regcache_raw_write_unsigned): New prototypes.
333
0e0d15ca
AC
3342002-08-25 Andrew Cagney <ac131313@redhat.com>
335
336 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
337 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
338 source file dependencies. Cleanup corresponding generator rules.
339
d3b22ed5
AC
3402002-08-25 Andrew Cagney <ac131313@redhat.com>
341
342 * regcache.h (register_offset_hack): Declare.
343 (regcache_cooked_read_using_offset_hack): Declare.
344 (regcache_cooked_write_using_offset_hack): Declare.
345
346 * regcache.c (register_offset_hack): New function.
347 (regcache_cooked_read_using_offset_hack): New function.
348 (regcache_cooked_write_using_offset_hack): New function.
349 (regcache_dump): Check that the registers, according to their
350 offset, are packed hard against each other.
351 (cooked_xfer_using_offset_hack): New function.
352
bb425013
AC
3532002-08-25 Andrew Cagney <ac131313@redhat.com>
354
355 * regcache.c (struct regcache_descr): Add field register_type.
356 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
357 in as a parameter
358 (init_regcache_descr): Initialize register_type. Pass the descr
359 to init_legacy_regcache_descr. Use register_type instead of
360 REGISTER_VIRTUAL_TYPE.
361 (register_type): New function.
362 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
363 * regcache.h (register_type): Declare.
364
d0403e00
AC
3652002-08-25 Andrew Cagney <ac131313@redhat.com>
366
367 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
368 instead of deprecated_store_return_value. Fix fallout from
369 2002-08-23 Andrew Cagney <cagney@redhat.com>.
370
0ed04cce
AC
3712002-08-25 Andrew Cagney <ac131313@redhat.com>
372
373 * regcache.c (max_register_size): New function.
374 (init_legacy_regcache_descr): Ensure that max_register_size is
375 large enough for REGISTER_VIRTUAL_SIZE.
376 * regcache.h (max_register_size): Declare.
377
46d79c04
AC
3782002-08-24 Andrew Cagney <ac131313@redhat.com>
379
380 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
381 store_return_value.
382 (e500_extract_return_value): Change type of valbuf pointer to
383 void.
384
853c7bd0
MK
3852002-08-24 Mark Kettenis <kettenis@gnu.org>
386
cd87e769
MK
387 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
388 workaround.
389
853c7bd0
MK
390 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
391 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
392 long long) to prevent compiler warning on 64-bit systems.
393
ebba8386
AC
3942002-08-23 Andrew Cagney <cagney@redhat.com>
395
396 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
397 (DEPRECATED_STORE_RETURN_VALUE): New method.
398 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
399 * gdbarch.h, gdbarch.c: Re-generate.
400
401 * values.c (set_return_value): Pass current_regcache to
402 STORE_RETURN_VALUE.
403 * arch-utils.h (legacy_store_return_value): Declare.
404 * arch-utils.c (legacy_store_return_value): New function.
405 (legacy_extract_return_value): Update parameters.
406
407 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
408 STORE_RETURN_VALUE.
409 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
410 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
411 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
412 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
413 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
414 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
415 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
416 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
417 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
418 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
419
420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
421 * i386-tdep.c (i386_extract_return_value): Update.
422 * arch-utils.c (legacy_extract_return_value): Update.
423 * frv-tdep.c (frv_gdbarch_init): Update.
424 * cris-tdep.c (cris_gdbarch_init): Update.
425 * d10v-tdep.c (d10v_gdbarch_init): Update.
426 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
427 * m68k-tdep.c (m68k_gdbarch_init): Update.
428 * mcore-tdep.c (mcore_gdbarch_init): Update.
429 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
430 * s390-tdep.c (s390_gdbarch_init): Update.
431 * sparc-tdep.c (sparc_gdbarch_init): Update.
432 * sh-tdep.c (sh_gdbarch_init): Update.
433 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
434 * v850-tdep.c (v850_gdbarch_init): Update.
435 * avr-tdep.c (avr_gdbarch_init): Update.
436 * ia64-tdep.c (ia64_gdbarch_init): Update.
437 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
438 * vax-tdep.c (vax_gdbarch_init): Update.
439 * alpha-tdep.c (alpha_gdbarch_init): Update.
440 * arm-tdep.c (arm_gdbarch_init): Update.
441 * mips-tdep.c (mips_gdbarch_init): Update.
442 * i386-tdep.c (i386_gdbarch_init): Update.
443
5bd8c6d0
AC
4442002-08-23 Andrew Cagney <ac131313@redhat.com>
445
446 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
447 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
448
e73e1724
MK
4492002-08-24 Mark Kettenis <kettenis@gnu.org>
450
451 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
452 problems.
453
3e6564e1
JB
4542002-08-23 Joel Brobecker <brobecker@gnat.com>
455
456 * infrun.c (handle_inferior_event): Move a comment outside of a
457 function call, in order to avoid indent reformatting this part
458 of the code in an unreadable way.
459
81d0cc19
GS
4602002-08-23 Grace Sainsbury <graces@redhat.com>
461
462 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
463 when breakpoints fail. Move general breakpoint error messages to
464 insert_breakpoints.
465 * breakpoint.c (insert_breakpoints): Change warnings when
466 breakpoints are nto inserted to specify the type. Remove call to
467 memory_error when hardware breakpoints can't be inserted. Remove
468 multiple calls to warning so all messages are sent to the user at
469 once.
470 (delete_breakpoints): Make insert error messsages more explicit.
471
17574093
DJ
4722002-08-23 Daniel Jacobowitz <drow@mvista.com>
473
474 * ChangeLog: Move gdbserver entries after GDB 5.2 to
475 gdbserver/ChangeLog.
476
8acc2935
MK
4772002-08-23 Mark Kettenis <kettenis@gnu.org>
478
dfe01d39
MK
479 * i386-tdep.c: Include "objfiles.h".
480 (i386_svr4_init_abi): Set in_solib_call_trampoline and
481 skip_trampoline_code.
482 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
483 (CPLUS_MARKER): Define to '.'.
484
8acc2935
MK
485 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
486 member.
487 (linux_corefile_thread_callback): Increase args->num_notes.
488 (linux_make_note_section): Initialize thread_args.num_notes, and
489 use it to determine whether notes for any threads were created.
490
151fefe2 4912002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
492
493 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
494 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
495 and PCUNKILL.
496 (write_with_trace): Conditionalize out the switch branch handling
497 PCSHOLD if the corresponding macro is not defined. Likewise for
498 PRSABORT and PRSTOP.
499 This change will be needed by the Interix port.
500
e1507482
EZ
5012002-08-22 Elena Zannoni <ezannoni@redhat.com>
502
503 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
504 write_register wherever possible instead of manipulating the
505 register bytes directly.
506 Assign VALUE_CONTENTS to a variable and use that.
507 The GPR numbers are now dependent on the architecture.
508
96ff0de4
EZ
5092002-08-22 Elena Zannoni <ezannoni@redhat.com>
510
511 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
512 ev_offset fields.
513 (skip_prologue): Add support for BookE/e500 instructions.
514 (e500_extract_return_value): New function.
515 (frame_get_saved_regs): Add support for saving ev registers and
516 pseudo gpr's.
517 (e500_store_return_value): New function.
518 (rs6000_gdbarch_init): Move up default intializations of
519 deprecated_extract_return_value and store_return_value. Overwrite
520 init of store_return_value with e500 specific version.
521 Set extract_return_value for e500.
522
fbefca5b
EZ
5232002-08-22 Elena Zannoni <ezannoni@redhat.com>
524
525 * blockframe.c (generic_call_dummy_register_unwind): Use
526 regcache_cooked_read to catch cases in which the variable is
527 stored in a pseudo register.
528
4d210288
AC
5292002-08-22 Andrew Cagney <cagney@redhat.com>
530
531 * NEWS: Mention that the i960 has been made obsolete.
532 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
533 i960-tdep.c
534 (remote-nrom.o): Obsolete target.
535 (remote-nindy.o, i960-tdep.o): Ditto.
536 * remote-nrom.c: Make file obsolete.
537 * remote-nindy.c, remote-vx960.c: Ditto.
538 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
539 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
540 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
541 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
542 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
543 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
544 i960-*-vxworks* obsolete.
545 * MAINTAINERS: Note that the i960 is obsolete.
546
6c0c456d
CV
5472002-08-21 Corinna Vinschen <vinschen@redhat.com
548
549 * aix-thread.c (aix_thread_detach): Disable thread debugging on
550 detach to allow reinitialization.
551
9f9d12b3
AC
5522002-08-22 Andrew Cagney <ac131313@redhat.com>
553
554 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
555 attempt).
556
ebeb39fe
JB
5572002-08-22 Jim Blandy <jimb@redhat.com>
558
559 * coffread.c (coff_symfile_read): Don't try to read the line
560 number table from disk if the image file doesn't have a symbol
561 table; we'll never actually look at the info anyway, and Windows
562 ships DLL's with bogus file offsets for the line number data.
563
5bf1c677
EZ
5642002-08-21 Elena Zannoni <ezannoni@redhat.com>
565
566 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
567 an e500 executable.
568
71b8ef93
MS
5692002-08-21 Michael Snyder <msnyder@redhat.com>
570
571 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
572 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
573 (DEFAULT_MIPS_TYPE): Delete unused macro.
574 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
575 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 576
d174216d
JB
5772002-08-21 Jim Blandy <jimb@redhat.com>
578
579 * valops.c (value_cast): Simplify and correct logic for doing a
580 static cast from a pointer to a base class to a pointer to a
581 derived class.
582
0ab7a791
AC
5832002-08-21 Andrew Cagney <ac131313@redhat.com>
584
585 * infcmd.c (default_print_registers_info): Replace
586 do_registers_info.
587 (registers_info): Use gdbarch_print_registers_info instead of
588 DO_REGISTERS_INFO.
589 * inferior.h (default_print_registers_info): Replace
590 do_registers_info.
591 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
592 (DO_REGISTERS_INFO): Change to a predicate function.
593 * gdbarch.h, gdbarch.c: Regenerate.
594
e23792cc
KS
5952002-08-21 Keith Seitz <keiths@redhat.com>
596
597 * gdb-events.sh: Add target-changed event.
598 * gdb-events.c: Regenerated.
599 * gdb-events.c: Regenerated.
600 * valops.c (value_assign): Add target-changed event notification
601 to inlval_register, lval_memory, and lval_reg_frame_relative.
602
9fb14e79
JB
6032002-08-21 Joel Brobecker <brobecker@gnat.com>
604
605 * NEWS: Add an entry regarding the improvement of the next/step
606 operation on Alpha Tru64 multi-processor machines.
607
6d39a69f
AC
6082002-08-21 Andrew Cagney <ac131313@redhat.com>
609
72acd513
AC
610 * Makefile.in: Update dependencies for mi/ cli/ and tui/
611 directores.
342af04b 612 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
613 * Makefile.in (install-gdbtk): Move to install section.
614 (rdi-share/libangsd.a): Move to end of file.
615
fa5f27c7
AC
6162002-08-19 Andrew Cagney <ac131313@redhat.com>
617
618 * frame.c (frame_register_unwind): When a register, set addrp to
619 the register's byte.
620
5a89d8aa
MS
6212002-08-20 Michael Snyder <msnyder@redhat.com>
622
623 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
624 used locally, so move them from the target machine header to here.
625 (mips_set_processor_type, mips_register_name, mips32_next_pc,
626 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
627 Make static.
628 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
629
822e978b
AC
6302002-08-20 Andrew Cagney <cagney@redhat.com>
631
632 * NEWS: Mention that the Apollo line was made obsolete.
633 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
634 m68*-hp-hpux* obsolete.
635 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
636 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
637 * buildsym.c (make_blockvector): Make static.
638 * buildsym.h (make_blockvector): Make extern declaration obsolete.
639 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
640 (ALLDEPFILES): Remove dstread.c.
641 (dstread.o): Obsolete make rule.
642 * dstread.c: Makefile obsolete.
643 * dst.h: Ditto.
644 * config/m68k/hp300hpux.mt: Ditto.
645 * config/m68k/hp300hpux.mh: Ditto.
646 * config/m68k/hp300bsd.mt: Ditto.
647 * config/m68k/hp300bsd.mh: Ditto.
648 * config/m68k/apollo68b.mt: Ditto.
649 * config/m68k/apollo68v.mh: Ditto.
650 * config/m68k/apollo68b.mh: Ditto.
651
e41b17f0
MS
6522002-08-20 Michael Snyder <msnyder@redhat.com>
653
654 * mips-tdep.c (mips_in_return_stub): Make static.
655 (mips_gdbarch_init): Set in_solib_return_trampoline.
656 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
657
d50355b6
MS
6582002-08-20 Michael Snyder <msnyder@redhat.com>
659
660 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
661 * gdbarch.c, gdbarch.h: Regenerate.
662 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
663 Add.
664 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
665
757a7cc6
MS
6662002-08-20 Michael Snyder <msnyder@redhat.com>
667
668 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
669 (mips_gdbarch_init): Set skip_trampoline_code,
670 in_solib_call_trampoline.
671 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
672 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
673
c8001721
EZ
6742002-08-20 Elena Zannoni <ezannoni@redhat.com>
675
676 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
677
678 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
679 vector type for ev registers.
680 (e500_pseudo_register_read): New function.
681 (e500_pseudo_register_write): New function.
682 (e500_dwarf2_reg_to_regnum): New function.
683 (PPC_UISA_NOFP_SPRS): New macro.
684 (PPC_EV_REGS): New macro.
685 (PPC_GPRS_PSEUDO_REGS): New macro.
686 (registers_e500): New register set for e500.
687 (variants): Add e500 variant.
688 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
689 before setting architectural dependent variations. Initialize ev
690 registers numbers. Add case for e500 architecture. Set the
691 number of pseudo registers.
692
64366f1c
EZ
6932002-08-20 Elena Zannoni <ezannoni@redhat.com>
694
695 * rs6000-tdep.c: Clean up comments.
696
7e78f0ca
AC
6972002-08-20 Andrew Cagney <cagney@redhat.com>
698
699 * h8300-tdep.c: Re-indent file.
700
697f7479
JB
7012002-08-20 Jim Blandy <jimb@redhat.com>
702
703 * Makefile.in (LDFLAGS): Allow the configure script to establish a
704 default for this.
697f7479 705
e86ae29f
KS
7062002-08-20 Keith Seitz <keiths@redhat.com>
707
708 * breakpoints.c (watch_command_1): Use internal breakpoint
709 when setting a watchpoint_scope breakpoint.
710
216b504f
EZ
7112002-08-20 Elena Zannoni <ezannoni@redhat.com>
712
713 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
714 (build_builtin_type_vec64i): Ditto.
715 (build_builtin_type_vec128): Ditto.
716 (build_builtin_type_vec128i): Ditto.
717
f7ab6ec6
MS
7182002-08-19 Michael Snyder <msnyder@redhat.com>
719
720 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
721 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
722 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
723 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
724 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
725 CALL_DUMMY_ADDRESS): Delete.
726 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
727 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
728 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
729 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
730 push_return_address.
731 (mips_register_raw_size, mips_eabi_use_struct_convention,
732 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
733 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
734 mips_init_extra_frame_info, mips_eabi_push_arguments,
735 mips_n32n64_push_arguments, mips_push_return_address,
736 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
737 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
738
b5d1566e
MS
7392002-08-19 Michael Snyder <msnyder@redhat.com>
740
741 * mips-tdep.c (mips_frame_num_args): New function.
742 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
743 frame_saved_pc, frame_args_address, frame_locals_address,
744 frame_num_args, and frame_args_skip.
745 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
746 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
747 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
748 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
749
2f1488ce
MS
7502002-08-20 Michael Snyder <msnyder@redhat.com>
751
752 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
753 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
754 * mips-tdep.c (mips_store_struct_return): New function.
755 (mips_extract_struct_value_address): New function.
756 (mips_gdbarch_init): Set store_struct_return and
757 extract_struct_value_address.
758
41ff2da1
DC
7592002-08-20 David Carlton <carlton@math.stanford.edu>
760
761 * dwarf2read.c (dwarf2_build_psymtabs): Check that
762 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
763 (read_file_scope): Check that line_header is nonzero before
764 decoding macro information.
765
e5451d58
MK
7662002-08-20 Mark Kettenis <kettenis@gnu.org>
767
768 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
769 flag the general-purpose registers as floating-point on targets
770 that don't support the floating-point registers.
771
4a6daafa
EZ
7722002-08-20 Elena Zannoni <ezannoni@redhat.com>
773
774 * rs6000-tdep.c (altivec_register_p): Delete.
775 (rs6000_do_altivec_registers): Delete.
776 (rs6000_altivec_registers_info): Delete.
777 (rs6000_do_registers_info): Delete.
778 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
779 (rs6000_gdbarch_init): Remove setting of do_registers_info.
780
ab4327e0
EZ
7812002-08-20 Elena Zannoni <ezannoni@redhat.com>
782
783 * infcmd.c (do_registers_info): Print vector registers in hex
784 format only.
785 (print_vector_info): Check that printing registers
786 makes sense.
787 (print_float_info): Ditto.
788
cb1d2653
AC
7892002-08-20 Andrew Cagney <ac131313@redhat.com>
790
791 * mips-tdep.c (mips_gdbarch_init): Update.
792 (mips_o32_extract_return_value): Rewrite.
793 (mips_o32_store_return_value): Rewrite.
794 (mips_o32_xfer_return_value): New function.
795 (mips_xfer_register): Tweak debug print message. Allow for
796 buf_offset when dumping the value transfered.
797
dfc3d9b2
AC
7982002-08-20 Andrew Cagney <ac131313@redhat.com>
799
800 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
801 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
802 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
803 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
804 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
805
7807aa61
MS
8062002-08-14 Michael Snyder <msnyder@redhat.com>
807
808 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
809
489461e2
EZ
8102002-08-19 Elena Zannoni <ezannoni@redhat.com>
811
812 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
813 register.
814 (P): New macro to define a register as a pseudo register.
815 (R, R4, R8, R16, FR32, R64, R0): Updated.
816 (struct variant): Add new fields for number of pseudo registers
817 and number of total registers.
818 (tot_num_registers): New macro replacing....
819 (num_registers): ...deleted macro.
820 (num_registers): New function.
821 (num_pseudo_registers): New function.
822 (variants): Update all variants to intialize new fields correctly.
823 Postpone initialization of number of pseudo regs and real regs.
824 (init_variants): New function.
825 (rs6000_gdbarch_init): Initialize variants. Update calculation of
826 registers offsets.
827
fcaffe4c
DC
8282002-08-19 David Carlton <carlton@math.stanford.edu>
829
2c2738a0
DC
830 * valops.c (search_struct_field): Change error message to treat
831 return value of 0 from value_static_field as meaning that field is
832 optimized out.
833 (value_struct_elt_for_reference): Ditto.
834 * values.c (value_static_field): Treat an unresolved location the
835 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
836 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
837 enclosed. Fix PR gdb/574.
fcaffe4c
DC
838 * MAINTAINERS: Add self to Write After Approval list.
839
88658117
AC
8402002-08-19 Andrew Cagney <ac131313@redhat.com>
841
842 * mips-tdep.c (mips_xfer_register): New function.
843 (mips_n32n64_extract_return_value): Rewrite.
844 (mips_gdbarch_init): For N32 and N64, set extract_return_value
845 instead of deprecated_extract_return_value.
846
21283beb
EZ
8472002-08-19 Elena Zannoni <ezannoni@redhat.com>
848
849 * rs6000-tdep.c (TDEP): Delete macro.
850 (branch_dest): Replace use of TDEP macro with its body.
851 (rs6000_pop_frame): Ditto.
852 (rs6000_push_arguments): Ditto.
853 (rs6000_skip_trampoline_code): Ditto.
854 (rs6000_frame_saved_pc): Ditto.
855 (rs6000_frame_chain): Ditto.
856 (rs6000_register_name): Ditto.
857 (rs6000_register_byte): Ditto.
858 (rs6000_register_raw_size): Ditto.
859 (rs6000_register_virtual_type): Ditto.
860 (rs6000_register_convertible): Ditto.
861 (rs6000_convert_from_func_ptr_addr): Ditto.
862
bf072999
DJ
8632002-08-19 Daniel Jacobowitz <drow@mvista.com>
864
865 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
866 conditionally.
867 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
868 MIPS_LINUX_JB_ELEMENT_SIZE.
869 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
870 for MAX_REGISTER_RAW_SIZE arrays.
871 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
872 MIPS_LINUX_JB_ELEMENT_SIZE.
873
9b949a49
PM
8742002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
875
876 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
877
6d3e79c6
AS
8782002-08-19 Aidan Skinner <aidan@velvet.net>
879
880 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
881 ada-valprint.c ada-tasks.c.
882 (YYFILES): Add ada-exp.y.
883 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
884 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
885 (ada-exp.tab.o): New target.
886
06c0b04e
AC
8872002-08-18 Andrew Cagney <ac131313@redhat.com>
888
889 * regcache.c (regcache_xfer_part): New function.
890 (regcache_raw_read_part): New function.
891 (regcache_raw_write_part): New function.
892 (regcache_cooked_read_part): New function.
893 (regcache_cooked_write_part): New function.
894 * regcache.h (regcache_raw_read_part): Declare.
895 (regcache_raw_write_part): Declare.
896 (regcache_cooked_read_part): Declare.
897 (regcache_cooked_write_part): Declare.
898
92d1e331
DJ
8992002-08-18 Daniel Jacobowitz <drow@mvista.com>
900
901 * remote.c (remote_open_1): Add async_p.
902 (remote_async_open_1): Delete.
903 (open_remote_target): Delete.
904 (remote_open, extended_remote_open): Update calls to remote_open_1.
905 (remote_async_open, extended_remote_async_open): Call
906 remote_open_1 instead of remote_async_open_1.
907
247055de
MK
9082002-08-19 Mark Kettenis <kettenis@gnu.org>
909
910 * blockframe.c: Fix a few coding standard violations.
911
641eda39
MK
9122002-08-19 Mark Kettenis <kettenis@gnu.org>
913
0b717710
MK
914 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
915 here from ...
916 * config/i386/tm-i386sco5.h: ... here. File removed.
917 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
918
26d28e12 919 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
920 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
921 (TM_FILE): Set to tm-i386.h.
922 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
923 * config/i386/tm-i386v.h: Remove file.
924 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
925 instead of "i386/tm-i386v.h".
926 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
927 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
928 "i386/tm-i386v.h".
929 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
930 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
931 "i386/tm-i386.h".
932
d4e0bab4
MK
9332002-08-18 Mark Kettenis <kettenis@gnu.org>
934
935 * config/i386/nm-i386v.h: Add protection against
936 multiple-inclusion.
937 (i386_register_u_addr): Remove prototype.
938 (register_u_addr): New prototype.
939 (REGISTER_U_ADDR): Redefine accordingly.
940 * i386v-nat.c: Improve several comments.
941 (i386_register_u_addr): Change signature and rename to
942 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
943 ubase variable.
944
46cac009
AC
9452002-08-18 Andrew Cagney <ac131313@redhat.com>
946
947 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
948 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
949 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
950 deprecated_extract_return_value.
951 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
952 rename mips_o32o64_push_arguments.
953 (mips_gdbarch_init): Update.
954 (mips_extract_return_value): Delete.
955 (mips_o32_extract_return_value): Clone mips_extract_return_value.
956 (mips_o64_extract_return_value): Clone mips_extract_return_value.
957 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
958 (mips_n32n64_extract_return_value): Clone
959 mips_extract_return_value.
960 (mips_store_return_value): Delete.
961 (mips_o32_store_return_value): Clone mips_store_return_value.
962 (mips_o64_store_return_value): Clone mips_store_return_value.
963 (mips_eabi_store_return_value): Clone mips_store_return_value.
964 (mips_n32n64_store_return_value): Clone mips_store_return_value.
965
d2e4a39e
AS
9662002-08-18 Aidan Skinner <aidan@velvet.net>
967
0c30c098
AS
968 * ada-lang.c: Use gdb_string.h instead of <string.h>.
969 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
970
9712002-08-18 Aidan Skinner <aidan@velvet.net>
972
973 * ada-lang.c: Run through gdb_indent.sh.
974 * ada-lang.h: Run through gdb_indent.sh.
975 * ada-tasks.c: Run through gdb_indent.sh.
976 * ada-typeprint.c: Run through gdb_indent.sh.
977 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 978
01fc4e33
AC
9792002-08-18 Andrew Cagney <ac131313@redhat.com>
980
981 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
982 ABI.
983
d8ee244c
MK
9842002-08-18 Mark Kettenis <kettenis@gnu.org>
985
c38d8261
MK
986 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
987
222db64c
MK
988 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
989 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
990
c2848c82
MK
991 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
992 write_register_gen instead of write_register_bytes.
993
d8ee244c
MK
994 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
995 i[3456]-*-osf1mk* configurations have been made obsolete.
996 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
997 i[3456]86-*-osf1mk* hosts obsolete.
998 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
999 targets obsolete.
1000 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1001 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1002 config/i386/i386m3.mt, config/i386/nm-m3.h,
1003 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1004 config/i386/i386mk.mh, config/i386/i386mk.mt,
1005 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1006 obsolete.
1007 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1008 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1009 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1010
61d8d407
AC
10112002-08-18 Andrew Cagney <ac131313@redhat.com>
1012
1013 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1014 (hppa_value_returned_from_stack): Declare.
1015 (hppa_extract_return_value): Declare.
1016 * config/pa/hppa.mt: New file.
1017 * configure.tgt: Recognize hppa*-*-*.
1018 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1019
0c52bd59
MK
10202002-08-18 Mark Kettenis <kettenis@gnu.org>
1021
1022 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1023 comment.
1024
b5686e99
MK
10252002-08-17 Mark Kettenis <kettenis@gnu.org>
1026
1027 * top.c (gdb_rl_operate_and_get_next): Make sure
1028 operate-and-get-next functions correctly even when the history
1029 list is completely filled.
1030
c1bab85b
AC
10312002-08-18 Andrew Cagney <ac131313@redhat.com>
1032
1033 * MAINTAINERS (Target Instruction Set Architectures): Rename
1034 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1035 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1036 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1037 already listed under Host/Native.
1038
1039 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1040 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1041 mips*-*-*.
1042
32089c7c
AC
10432002-08-17 Andrew Cagney <ac131313@redhat.com>
1044
1045 * config/ia64/ia64.mt: New file.
1046 * config/alpha/alpha.mt: New file.
1047 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1048 ia64-linux-gnu. Mention that ia64-elf is broken.
1049 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1050
b4671f85
MK
10512002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1052
1053 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1054 generic_func_frame_valid instead of func_frame_valid.
1055
c8edd8b4
JB
10562002-08-16 Joel Brobecker <brobecker@gnat.com>
1057
1058 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1059 procfs appears to be broken when debugging on multi-processor
1060 machines. So enable software single stepping in order to avoid
1061 using the procfs interface to do next/step operations, using
1062 internal breakpoints instead.
1063
1064 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1065 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1066 make this pc address equal to the value it would have if the
1067 system stepping capability was used. Also set a new flag used
1068 to ensure that we don't readjust the PC one more time later.
1069
1070 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1071 address by DECR_PC_AFTER_BREAK when software single step is
1072 in use for this architecture, as this has already been taken
1073 care of in handle_inferior_event().
1074
238617f6
JB
10752002-08-16 Joel Brobecker <brobecker@gnat.com>
1076
1077 * infrun.c (handle_inferior_event): Minor reformatting, to make
1078 a rather long condition expression easier to read.
1079
541a7aac
AC
10802002-08-16 Andrew Cagney <ac131313@redhat.com>
1081
1082 * Makefile.in (gdbtk.o): Move to end of file.
1083 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1084 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1085 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1086 (gdbtk-wrapper.o, gdbres.o): Ditto.
1087
f92d4a7b
AC
10882002-08-16 Andrew Cagney <ac131313@redhat.com>
1089
1090 * Makefile.in (copying.o): Separate out compile rule.
1091 (hpux-thread.o, procfs.o, signals.o): Ditto.
1092 (v850ice.o, z8k-tdep.o): Ditto.
1093 (tui-file.o): Move to TUI section.
1094 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1095 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1096
1cce71eb
JB
10972002-08-16 Joel Brobecker <brobecker@gnat.com>
1098
1099 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1100 skip_trampoline_code, for better namespace-proofing.
1101
1102 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1103
0851f23d
JB
11042002-08-16 Joel Brobecker <brobecker@gnat.com>
1105
1106 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1107
f8d40ec8
JB
11082002-08-16 Joel Brobecker <brobecker@gnat.com>
1109
1110 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1111 signal, check whether we hit a breakpoint before checking for a
1112 single step breakpoint. Otherwise, GDB fails to notice that a
1113 breakpoint has been hit when stepping onto a breakpoint.
1114
63d022e0
KS
11152002-08-16 Keith Seitz <keiths@redhat.com>
1116
1117 * gdb-events.sh (clear_gdb_event_hooks): New function.
1118 * gdb-events.c: Regenerate.
1119 * gdb-events.h: Regenerate.
1120
6e31adb3
AC
11212002-08-16 Andrew Cagney <ac131313@redhat.com>
1122
1123 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1124 not_a_sw_breakpoint.
1125 * breakpoint.h (bpstat_stop_status): Add parameter names.
1126
c8189ed1
GS
11272002-08-16 Grace Sainsbury <graces@redhat.com>
1128
1129 * remote.c (remote_insert_hw_breakpoint)
1130 (remote_remove_hw_breakpoint): Fix calculation of length field
1131 for Z-packet.
1132
d05285fa
MS
11332002-08-15 Michael Snyder <msnyder@redhat.com>
1134
466d7106
MS
1135 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1136 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1137 (supply_fpregset): Ditto.
1138
d05285fa
MS
1139 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1140 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1141 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1142 (TARGET_READ_SP): Delete.
bf1f5b4c 1143 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1144 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1145 Delete.
1146 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1147 from macros to functions.
bf1f5b4c 1148
d05285fa
MS
1149 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1150 (mips_register_convertible, mips_register_convert_to_virtual,
1151 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1152 (mips_read_sp): New function.
1153 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1154 (mips_do_registers_info): Make static.
1155 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1156 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1157 (mips_register_convert_from_type, mips_register_convert_to_type):
1158 New functions.
1159 (mips_gdbarch_init): Set up function_start_offset,
1160 register_virtual_size, pc_in_sigtramp.
d05285fa 1161
e76f1f2e
AC
11622002-08-15 Andrew Cagney <ac131313@redhat.com>
1163
1164 * infcmd.c (vector_info): New function.
1165 (_initialize_infcmd): Add command "info vector".
1166 (print_vector_info): New function.
1167
1168 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1169 * gdbarch.h, gdbarch.c: Regenerate.
1170
4782dc19
AC
11712002-08-15 Andrew Cagney <ac131313@redhat.com>
1172
1173 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1174 ``print_all''. Only print vector registers when ``print_all''.
1175
23e3a7ac
AC
11762002-08-15 Andrew Cagney <ac131313@redhat.com>
1177
8e186fd6
AC
1178 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1179 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1180
23e3a7ac
AC
1181 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1182 Add `args' parameter.
1183 * gdbarch.h, gdbarch.c: Regenerate.
1184
1185 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1186
1187 * infcmd.c (float_info): Call print_float_info.
1188 (print_float_info): New function. By default, print the
1189 floating-point registers.
1190
1191 * arch-utils.h (default_print_float_info): Delete declaration.
1192 * arch-utils.c (default_print_float_info): Delete function.
1193
e0ca2bb9
MK
11942002-08-16 Mark Kettenis <kettenis@gnu.org>
1195
3f733acc
MK
1196 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1197 out define.
1198
7d8d2918
MK
1199 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1200 FRAME.
1201
1c7cc583
MK
1202 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1203 * configure.host: Make i[3456]86-*-aix host obsolete.
1204 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1205 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1206 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1207 config/i386/xm-i386aix.h: Make files obsolete.
1208 * i386aix-nat.c: Make file obsolete.
1209 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1210 (i386aix-nat.o): Make target obsolete.
1211
e0ca2bb9
MK
1212 * config/i386/nm-gnu.h: Removed.
1213 * config/i386/nm-i386gnu.h: New file.
1214 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1215 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1216 Moved here from ...
1217 * config/i386/tm-i386gnu.h: ... here. Removed.
1218 * config/i386/xm-i386gnu.h: Removed.
1219 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1220 (NAT_FILE): Set to nm-i386gnu.h.
1221 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1222 * i386-tdep.c: New file.
1223 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1224 (i386gnu-tdep.o): Specify dependencies.
1225
16057ec7 12262002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1227
6b99ee2e
MK
1228 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1229 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1230 Adjust a few comments to reflect reality a bit closer.
1231 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1232 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1233 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1234 target_insert_watchpoint, target_remove_watchpoint):
1235 Move defines to ...
1236 * config/i386/nm-i386sco5.h: ... here.
1237 (kernel_u_size): Add prototype. Improve a few comments and add
1238 protection against multiple inclusion.
1239
d9a6f65c
MK
1240 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1241 out define.
1242
047eff6a
MK
1243 * uw-thread.c (SP_ARG0): Define if not already defined.
1244 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1245
dcdb1290
MK
1246 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1247
5d2d0b2a
MK
1248 * config/i386/tm-i386.h: Don't include "regcache.h".
1249
61113f8b
MK
1250 * i387-tdep.h (i387_print_float_info): New prototype.
1251 * i387-tdep.c (print_i387_value, print_i387_ext,
1252 print_i387_status_word, print_i387_control_word): Add `struct
1253 ui_file *' argument and use it for output.
1254 (i387_print_float_info): Renamed from i387_float_info. Add
1255 `struct gdbarch *' and `struct ui_file *' arguments and use the
1256 latter for output.
1257 * i386-tdep.c: Include "i387-tdep.h".
1258 (i386_gdbarch_init): Set print_float_info.
1259 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1260 (FLOAT_INFO): Remove define.
1261
46e0f506
MS
12622002-08-13 Michael Snyder <msnyder@redhat.com>
1263
1264 * mips-tdep.c (mips_push_arguments): Rename to
1265 mips_eabi_push_arguments, and tune for EABI.
1266 (MIPS_REGS_HAVE_HOME_P): Delete.
1267 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1268 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1269 Delete references to mips_regs_have_home_p.
1270
409268de
KS
12712002-08-14 Keith Seitz <keiths@redhat.com>
1272
1273 * Makefile.in (install-gdbtk): Create insight plugin directory.
1274 Install plugins.tcl file.
1275
ffc6a242
KS
12762002-08-14 Keith Seitz <keiths@redhat.com>
1277
1278 * configure.in: Move SUBDIRS to near top of the file so that
1279 --enable options may add things to it.
1280 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1281 * configure: Regenerate.
1282
ebafbe83
MS
12832002-08-13 Michael Snyder <msnyder@redhat.com>
1284
1285 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1286 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1287 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1288
32f6f25d
AC
12892002-08-13 Andrew Cagney <ac131313@redhat.com>
1290
1291 * vax-tdep.c (vax_get_saved_register): Delete function.
1292 (vax_gdbarch_init): Update.
1293 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1294 (ns32k_gdbarch_init): Update.
1295 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1296 (alpha_gdbarch_init): Update.
1297
53826de9
AC
12982002-08-13 Andrew Cagney <cagney@redhat.com>
1299
1300 * regcache.c (init_regcache_descr): Overallocate the
1301 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1302 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1303 nr_raw_registers.
1304 (set_register_cached): Add range checking assertions. Use
1305 current_regcache.
1306
16057ec7 13072002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1308
1309 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1310 numbers for MMX registers.
1311
7b4c2dce
AC
13122002-08-13 Andrew Cagney <cagney@redhat.com>
1313
1314 * i386-tdep.c (i386_gdbarch_init): Use
1315 generic_unwind_get_saved_register.
1316
1e03ad20
KB
13172002-08-13 Kevin Buettner <kevinb@redhat.com>
1318
1319 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1320 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1321 target vector.
1322 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1323 Delete. Add comment regarding this now-deleted target method.
1324
548bcbec
SC
13252002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1326
1327 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1328 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1329 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1330 real PC and the page number (if it's within the memory bank window).
1331 (m68hc11_pseudo_register_write): Likewise when saving.
1332 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1333 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1334 (m68hc11_register_raw_size): And use 32-bit for it.
1335 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1336 16K memory bank is used by the prog; also use the virtual pc.
1337
7df11f59
SC
13382002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1339
1340 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1341 (m68hc11_gdbarch_init): Install it in gdbarch.
1342 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1343 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1344 (MSYMBOL_SIZE): New for documentation.
1345 (insn_return_kind): Enum to specify how a function returns.
1346 (frame_extra_info): Cleanup and record the return mode.
1347 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1348 register in address computation.
1349 (m68hc11_get_return_insn): New to obtain the return instruction used
1350 by the function.
1351 (m68hc11_frame_init_saved_regs): Take into account the return
1352 instruction used by the function for far and interrupt functions.
1353 (m68hc11_init_extra_frame_info): Take into account page register.
1354 (m68hc11_frame_args_address): Adjust according to the return mode.
1355 (show_regs): Print page register only when it's used.
1356
5706502a
SC
13572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1358
1359 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1360 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1361 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1362 registers.
1363 (m68hc11_register_raw_size): Likewise.
1364
28fc6740
AC
13652002-08-13 Andrew Cagney <cagney@redhat.com>
1366
1367 * i386-tdep.c (i386_register_name): Handle mmx registers.
1368 (mmx_regnum_p): New function.
1369 (i386_mmx_names): New array.
1370 (mmx_num_regs): New variable.
1371 (i386_pseudo_register_read): New function.
1372 (i386_pseudo_register_write): New function.
1373 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1374
1375 * regcache.c (regcache_raw_read_unsigned): New function.
1376 (regcache_raw_read_signed): New function.
1377 * regcache.h (regcache_raw_read_unsigned): Declare.
1378 (regcache_raw_read_signed): Declare.
1379
a378f419
AC
13802002-08-13 Andrew Cagney <cagney@redhat.com>
1381
1382 * regcache.c (regcache_raw_read_as_address): Delete function.
1383 (regcache_cooked_read_signed): New function.
1384 (regcache_cooked_read_unsigned): New function.
1385 * regcache.h (regcache_cooked_read_signed): Declare.
1386 (regcache_cooked_read_unsigned): Declare.
1387 (regcache_raw_read_as_address): Delete declaration.
1388
1389 * blockframe.c (generic_read_register_dummy): Use
1390 regcache_cooked_read_unsigned.
1391 * i386-tdep.c (i386_extract_struct_value_address): Use
1392 regcache_cooked_read_unsigned.
1393
81967506
SC
13942002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1395
1396 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1397 double sizes according to ELF ABI flags.
1398 (gdbarch_tdep): Record elf_flags.
1399
ffe1f3ee
SC
14002002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1401
1402 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1403 (m6812_prolog): They can appear in 68HC12 function prologue.
1404 (m68hc11_frame_chain): Cleanup.
1405
98216c5d
AC
14062002-08-12 Andrew Cagney <cagney@redhat.com>
1407
1408 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1409 declarations.
1410 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1411 (i386_linux_register_raw_size): Delete function.
1412 (i386_linux_init_abi): Update.
1413 * i386-tdep.c (i386_register_raw_size): Delete function.
1414 (i386_register_byte): Delete function.
1415 (i386_gdbarch_init): Update.
1416 (i386_register_size): Delete array.
1417 (i386_register_offset): Delete array.
1418
1419 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1420 (REGISTER_RAW_SIZE): Delete macro.
1421 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1422 (REGISTER_BYTE): Delete macro.
1423
3b19021e
AS
14242002-08-11 Aidan Skinner <aidan@velvet.net>
1425
1426 * ada-lang.c (ada_lookup_partial_symbol)
1427 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1428 prototype names so that grep ^func works properly.
1429
1430 * ada-lang.c (ada_array_element_type)
1431 (ada_lookup_partial_symbol): Fix typos in parameter list.
1432
1433 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1434 Fix prototype names so that grep ^func works properly.
1435
b063e7a2
AC
14362002-08-10 Andrew Cagney <cagney@redhat.com>
1437 Elena Zannoni <ezannoni@redhat.com>
1438 Martin M. Hunt <hunt@redhat.com>
1439
1440 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1441 (build_builtin_type_vec128i): Set the vector bit.
1442 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1443 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1444 (build_builtin_type_vec64): New function.
1445 (build_builtin_type_vec64i): New function.
1446 (build_gdbtypes): Initialize builtin_type_vec64 and
1447 builtin_type_vec64i.
1448
a7e3c2ad
AC
14492002-08-09 Andrew Cagney <cagney@redhat.com>
1450
1451 * regcache.c (regcache_dump): Compare the register offset
1452 with REGISTER_BYTE.
1453 * arch-utils.c (generic_register_byte): New function.
1454 * arch-utils.h (generic_register_byte): Declare.
1455 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1456 * gdbarch.h, gdbarch.c: Regenerate.
1457
af030b9a
AC
14582002-08-09 Andrew Cagney <cagney@redhat.com>
1459
1460 * regcache.c: Include "gdbcmd.h"
1461 (_initialize_regcache): Add commands "maintenance print
1462 registers", "maintenance print raw-registers" and "maintenance
1463 print cooked-registers".
1464 (enum regcache_dump_what): Define.
1465 (dump_endian_bytes): New function.
1466 (regcache_dump): New function.
1467 (regcache_print): New function.
1468 (maintenance_print_registers): New function.
1469 (maintenance_print_raw_registers): New function.
1470 (maintenance_print_cooked_registers): New function.
1471 * Makefile.in (regcache.o): Update dependencies.
1472
cb3d25d1
MS
14732002-08-09 Michael Snyder <msnyder@redhat.com>
1474
1475 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1476 (mips_push_arguments): Correct some comments. Use paddr_nz
1477 for printing addresses in debug output. Replace static
1478 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1479 (mips_n32n64_push_arguments): New function, cloned from
1480 mips_push_arguments and tuned for the n32/n64 ABI.
1481 (mips_push_register): Buffer needs dynamic allocation.
1482 (mips_print_register): Ditto.
1483 (do_gp_register_row): Ditto.
1484 (mips_store_return_value): Ditto.
1485 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1486
2163ab9d
DH
14872002-08-09 Don Howard <dhoward@redhat.com>
1488
1489 * memattr.c (mem_info_command): Print special case of upper bound
1490 as max CORE_ADDR + 1.
1491
b78bcb18
MS
14922002-08-08 Michael Snyder <msnyder@redhat.com>
1493
1494 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1495 returns structs by ref if they're too big to fit in two registers.
1496
ffabd70d
KB
14972002-08-09 Kevin Buettner <kevinb@redhat.com>
1498
1499 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1500 saved regs value.
1501 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1502 mips_find_saved_regs().
1503 (mips_pop_frame): Likewise.
1504
fbcdb4a3
KB
15052002-08-09 Kevin Buettner <kevinb@redhat.com>
1506
1507 * blockframe.c (frame_saved_regs_register_unwind): Revise
1508 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1509 frames are in use.
1510
3c3bea1c
GS
15112002-08-09 Grace Sainsbury <graces@redhat.com>
1512
1513 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1514 T-packets; the 'a' is not taken as a register number.
1515 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1516 (remote_stopped_data_address): New functions; add to target
1517 vector.
1518 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1519 prototypes to match other implementations of this
1520 function. replace integer argument with pointer -- the length
1521 field in the Z-packet is the length of what is pointed to or 1 if
1522 pointer is null. Add to target vector.
1523 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1524 target vector.
1525
1526 From Mark Salter:
1527 * remote.c (remote_wait): Add support to extract optional
1528 watchpoint information from T-packet. Ignore unrecognized
1529 optional info in T-packet.
1530 (remote_async_wait): Ditto.
1531
5d1d95de
CV
15322002-08-09 Corinna Vinschen <vinschen@redhat.com>
1533
1534 * cli/cli-dump.c: Change fopen modes to use binary open modes
1535 as defined in include/fopen-bin.h throughout.
1536
c86b5b38
MS
15372002-08-08 Michael Snyder <msnyder@redhat.com>
1538
1539 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1540
b30590dc
KB
15412002-08-08 Kevin Buettner <kevinb@redhat.com>
1542
1543 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1544 assertion failure by returning early after a warning.
1545
498868ed
KB
15462002-08-08 Kevin Buettner <kevinb@redhat.com>
1547
1548 * mips-tdep.c (mips_find_saved_regs): Make static.
1549 (mips_frame_init_saved_regs): New function.
1550 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1551 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1552 (mips_find_saved_regs): Delete declaration.
1553
b2dd6311
GS
15542002-08-08 Grace Sainsbury <graces@redhat.com>
1555
3c3bea1c
GS
1556 * remote.c (remote_wait, remote_async_wait): Change
1557 thread_num from int to ULONGEST.
1558 (unpack_varlen_hex): Change result parameter from
1559 int * to ULONGEST *.
b2dd6311 1560
ea47855f
AC
15612002-08-08 Andrew Cagney <ac131313@redhat.com>
1562
1563 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1564 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1565 powerpc*-*-*.
1566 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1567
69db8bae
AC
15682002-08-08 Andrew Cagney <cagney@redhat.com>
1569
1570 * gcore.c (override_derive_stack_segment): Delete variable.
1571 (preempt_derive_stack_segment): Delete function.
1572 (derive_stack_segment): Delete function.
1573 (default_derive_stack_segment): Renamed to derive_stack_segment.
1574 (override_derive_heap_segment): Delete variable.
1575 (preempt_derive_heap_segment): Delete function.
1576 (derive_heap_segment): Delete function.
1577 (default_derive_heap_segment): Rename to derive_heap_segment.
1578
cb811fe7
MS
15792002-08-06 Michael Snyder <msnyder@redhat.com>
1580
1581 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1582 * mips-tdep.c (mips_EABI_use_struct_convention,
1583 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1584 New functions. (mips_use_struct_convention): Delete.
1585 (mips_gdbarch_init): set use_gdbarch_convention.
1586
8b389c40
MS
15872002-08-06 Michael Snyder <msnyder@redhat.com>
1588
1589 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1590 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1591 mips_o32_reg_struct_has_addr): New functions.
1592 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1593
5c27f28a
AC
15942002-08-07 Andrew Cagney <ac131313@redhat.com>
1595
1596 * regcache.c (pseudo_register): Delete function.
1597 (fetch_register): Delete function.
1598 (store_register): Delete function.
1599 (regcache_raw_read, legacy_read_register_gen): Use
1600 target_fetch_registers instead of fetch_register.
1601 (legacy_write_register_gen, regcache_raw_write): Use
1602 target_store_register instead of store_register.
1603 (write_register_bytes): Ditto.
1604
1605 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1606 (STORE_PSEUDO_REGISTER): Delete.
1607 * gdbarch.h, gdbarch.c: Regenerate.
1608
5b331675
CV
16092002-08-06 Corinna Vinschen <vinschen@redhat.com>
1610
1611 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1612 write dump file binary.
1613
6acdf5c7
MS
16142002-08-05 Michael Snyder <msnyder@redhat.com>
1615
1616 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1617 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1618 (mips_gdbarch_init): Set N32 target to be mips64.
1619
b2f01c35
KB
16202002-08-06 Kevin Buettner <kevinb@redhat.com>
1621
1622 * frame.c (find_saved_register): Break out of loop once saved
1623 register address is found. Don't mention sparc in loop comment
1624 anymore.
1625
63db5580
KB
16262002-08-06 Kevin Buettner <kevinb@redhat.com>
1627
1628 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1629 mips_default_saved_regsize to 8.
1630
5e34e75e
AC
16312002-08-06 Andrew Cagney <ac131313@redhat.com>
1632
1633 * gcore.c: Do not include <sys/procfs.h>.
1634 * Makefile.in (gcore.o): Update dependencies.
1635
eb4c54a2
AC
16362002-08-06 Andrew Cagney <cagney@redhat.com>
1637
1638 * configure.tgt: Make arc-*-* obsolete.
1639 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1640 * MAINTAINERS: Make arc-elf obsolete.
1641 * arc-tdep.c: Make file obsolete.
1642 * config/arc/arc.mt: Ditto.
1643 * config/arc/tm-arc.h: Ditto.
1644
ced15480
TR
16452002-08-05 Theodore A. Roth <troth@verinet.com>
1646
c1bab85b 1647 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1648
b4743822
AC
16492002-08-05 Andrew Cagney <ac131313@redhat.com>
1650
1651 * mcore-tdep.c (mcore_gdbarch_init): Use
1652 generic_unwind_get_saved_register instead of
1653 generic_get_saved_register.
1654 * v850-tdep.c (v850_gdbarch_init): Ditto.
1655 * frv-tdep.c (frv_gdbarch_init): Ditto.
1656 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1657 * s390-tdep.c (s390_gdbarch_init): Ditto.
1658 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1659 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1660 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1661
3956d554
JB
16622002-08-05 Joel Brobecker <brobecker@gnat.com>
1663
1664 * objfiles.h: Add missing #include "symfile.h"
1665
1666 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1667
8249c0d6
AC
16682002-08-04 Andrew Cagney <ac131313@redhat.com>
1669
1670 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1671 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1672 of FIELD_BITSIZE.
1673
b9d14705
DJ
16742002-08-04 Daniel Jacobowitz <drow@mvista.com>
1675
1676 * NEWS: Cleanup and nitpick.
1677
dd73b9bb
AC
16782002-08-03 Andrew Cagney <ac131313@redhat.com>
1679
1680 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1681
043a27f8
AC
16822002-08-03 Andrew Cagney <ac131313@redhat.com>
1683
1684 * Makefile.in (gdbtk-bp.o): Update dependencies.
1685 (gdbtk-register.o): Ditto.
1686 (gdbtk-varobj.o): Ditto.
1687
46ce284d
AC
16882002-08-03 Andrew Cagney <cagney@redhat.com>
1689
1690 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1691 m68hc11_fetch_pseudo_register.
1692 (m68hc11_pseudo_register_write): Replace
1693 m68hc11_store_pseudo_register.
1694 (m68hc11_gdbarch_init): Update.
1695
b66d6d2e
AC
1696Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1697
1698 * gdbarch.sh: Include "gdb_string.h".
1699 * gdbarch.c: Regenerate.
1700
1701 * regcache.c: Include "gdb_string.h".
1702 * ax-general.c: Ditto.
1703 * varobj.c: Ditto.
1704 * std-regs.c: Ditto.
1705 * fbsd-proc.c: Ditto.
1706 * thread.c: Ditto.
1707
1708 * Makefile.in (regcache.o): Update dependencies.
1709 (thread.o, gdbarch.o): Ditto.
1710 (ax-general.o, gdbarch.o): Ditto.
1711 (varobj.o, std-regs.o): Ditto.
1712 (fbsd-proc.o): Specify dependencies.
1713
29e1842b
AC
17142002-08-02 Andrew Cagney <cagney@redhat.com>
1715
1716 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1717 regnum.
1718 (regcache_cooked_write): Ditto.
1719
68365089
AC
17202002-08-02 Andrew Cagney <ac131313@redhat.com>
1721
1722 * regcache.c (regcache_cooked_read): New function.
1723 (regcache_cooked_write): New function.
1724 (read_register_gen): Rewrite using regcache_cooked_read.
1725 (write_register_gen): Rewrite using regcache_cooked_write.
1726
1727 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1728 Declare.
1729
d8124050
AC
17302002-08-02 Andrew Cagney <cagney@redhat.com>
1731
1732 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1733 Replace the architecture methods register_read and register_write.
1734 * gdbarch.h, gdbarch.c: Regenerate.
1735 * regcache.c (init_regcache_descr): Update.
1736 (read_register_gen): Update.
1737 (write_register_gen): Update.
1738 (supply_register): Update comment.
1739
1740 * sh-tdep.c (sh_gdbarch_init): Update.
1741 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1742 `regcache' and `gdbarch' parameters. Make `buffer' a void
1743 pointer. Update code.
1744 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1745 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1746 void pointer. Update code.
1747 (sh64_register_write): Delete.
1748 (sh4_register_read): Delete.
1749 (sh64_register_read): Delete.
1750 (sh4_register_write): Delete.
1751 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1752 void pointer, `to' parameter a void pointer.
1753 (sh_sh64_register_convert_to_raw): Ditto.
1754
a6425924
KB
17552002-08-01 Kevin Buettner <kevinb@redhat.com>
1756
1757 * mips-tdep.c (mips_register_virtual_type): Use architecture
1758 invariant return values.
1759
ff5922b5
AC
17602002-08-01 Andrew Cagney <cagney@redhat.com>
1761
1762 * linux-proc.c: Include "gdb_string.h".
1763 * Makefile.in (linux-proc.o): Update dependency list.
1764
32a6503c
KB
17652002-08-01 Kevin Buettner <kevinb@redhat.com>
1766
1767 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1768 comment.
1769
ccaa32c7
GS
17702002-08-01 Grace Sainsbury <graces@redhat.com>
1771
1772 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1773 to_insert_watchpoint, to_remove_watchpoint,
1774 to_stopped_by_watchpoint, to_stopped_data_address,
1775 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1776 target vecctor. Define their corresponding macros so they call
1777 them.
1778
1779 * target.c: Add default and debug versions of for
1780 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1781 to_insert_watchpoint, to_remove_watchpoint,
1782 to_stopped_by_watchpoint, to_stopped_data_address,
1783 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1784
78fde5f8
KB
17852002-08-01 Kevin Buettner <kevinb@redhat.com>
1786
1787 * mips-tdep.c (mips_register_virtual_type): New function.
1788 (mips_gdbarch_init): Register mips_register_virtual_type()
1789 with gdbarch machinery.
1790 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1791 this file instead of tm-bigmips.h.
1792 (MIPS_REGSIZE): Delete this macro.
1793 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1794 multiarch version in mips-tdep.c will be found.
1795
db034ac5
AC
17962002-08-01 Andrew Cagney <cagney@redhat.com>
1797
1798 * NEWS: Menion that CHILL has been made obsolete.
1799
1800 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1801 * stabsread.c (read_range_type): Ditto.
1802 * gdbtypes.h: Ditto.
1803 * language.c (binop_type_check): Ditto.
1804 (binop_result_type): Ditto.
1805 (integral_type): Ditto.
1806 (character_type): Ditto.
1807 (string_type): Ditto.
1808 (boolean_type): Ditto.
1809 (structured_type): Ditto.
1810 (lang_bool_type): Ditto.
1811 (binop_type_check): Ditto.
1812 * language.h (_LANG_chill): Ditto.
1813 * dwarfread.c (set_cu_language): Ditto.
1814 * dwarfread.c (CHILL_PRODUCER): Ditto.
1815 * dwarfread.c (handle_producer): Ditto.
1816 * expression.h (enum exp_opcode): Ditto.
1817 * eval.c: Ditto for comments.
1818 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1819 * expprint.c (print_subexp): Ditto.
1820 (print_subexp): Ditto.
1821 * valops.c (value_cast): Ditto.
1822 (search_struct_field): Ditto.
1823 * value.h (COERCE_VARYING_ARRAY): Ditto.
1824 * symfile.c (init_filename_language_table): Ditto.
1825 (add_psymbol_with_dem_name_to_list): Ditto.
1826 * valarith.c (value_binop): Ditto.
1827 (value_neg): Ditto.
1828 * valops.c (value_slice): Ditto.
1829 * symtab.h (union language_specific): Ditto.
1830 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1831 (SYMBOL_DEMANGLED_NAME): Ditto.
1832 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1833 * defs.h (enum language): Ditto.
1834 * symtab.c (got_symtab): Ditto.
1835 * utils.c (fprintf_symbol_filtered): Ditto.
1836
1837 * ch-typeprint.c: Make file obsolete.
1838 * ch-valprint.c: Make file obsolete.
1839 * ch-lang.h: Make file obsolete.
1840 * ch-exp.c: Make file obsolete.
1841 * ch-lang.c: Make file obsolete.
1842
1843 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1844 CHILL_LIB.
1845 (TARGET_FLAGS_TO_PASS): Ditto.
1846 (CHILLFLAGS): Obsolete.
1847 (CHILL): Obsolete.
1848 (CHILL_FOR_TARGET): Obsolete.
1849 (CHILL_LIB): Obsolete.
1850 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1851 ch-valprint.c.
1852 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1853 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1854 ch-lang.o.
1855 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1856 targets.
1857
8aaf0b47
JB
18582002-07-31 Joel Brobecker <brobecker@gnat.com>
1859
1860 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1861 This does not change anything at the moment, but will be helpful
1862 later when full Ada support is integrated.
1863
f3a7b3a5
KB
18642002-07-31 Kevin Buettner <kevinb@redhat.com>
1865
1866 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1867 help message.
1868
fb850278
KB
18692002-07-31 Kevin Buettner <kevinb@redhat.com>
1870
1871 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1872 and save it in a local variable. Use variable in later test.
1873
e3bddbfa
KB
18742002-07-31 Kevin Buettner <kevinb@redhat.com>
1875
1876 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1877 test. (Thanks to Daniel Jacobowitz.)
1878
28d169de
KB
18792002-07-31 Kevin Buettner <kevinb@redhat.com>
1880
1881 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1882 (mips_abi_strings): Add "n64".
1883 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1884
7fe7e44e
KB
18852002-07-31 Kevin Buettner <kevinb@redhat.com>
1886
1887 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1888 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1889
c6caf090
KB
18902002-07-31 Kevin Buettner <kevinb@redhat.com>
1891
1892 * utils.c (host_pointer_to_address, address_to_host_pointer):
1893 Use gdb_assert() instead of explicit call to internal_error().
1894
c41669e0
KB
18952002-07-30 Kevin Buettner <kevinb@redhat.com>
1896
1897 * Makefile.in (rs6000-nat.o): Update dependencies.
1898
1899 From Nicholas Duffek:
1900 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1901 (aix-thread.o): New rule.
1902 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1903 * config/powerpc/aix432.mh: New file.
1904
2fda4977
DJ
19052002-07-30 Daniel Jacobowitz <drow@mvista.com>
1906
1907 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1908 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1909 (fetch_core_registers, ppc_linux_supply_gregset)
1910 (ppc_linux_supply_fpregset): New functions.
1911 (ppc_linux_regset_core_fns): New.
1912 (_initialize_ppc_linux_tdep): Call add_core_fns.
1913 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1914 and ppc_linux_supply_gregset.
1915 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1916 (supply_fpregset): Call ppc_linux_supply_fpregset.
1917 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1918 corelow.o.
1919 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1920
729051e6
DJ
19212002-07-30 Daniel Jacobowitz <drow@mvista.com>
1922
1923 * symtab.c (lookup_symbol): Demangle before lowercasing.
1924
5f8a3188
AC
19252002-07-30 Andrew Cagney <ac131313@redhat.com>
1926
1927 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1928 declaration.
1929 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1930 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1931 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1932 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1933 "gdb_string.h".
1934 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1935 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1936 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1937 (avr-tdep.o, mon960-rom.o): Ditto.
1938 (aout_stabs_gnu_h): Define.
1939 (symtab_h): Remove $(gdb_obstack_h).
1940
67f07146
JB
19412002-07-30 Jim Blandy <jimb@redhat.com>
1942
1943 Patch from David Carlton <carlton@math.stanford.edu>:
1944 * gdbinit.in: Move the `dir' commands that add GDB's own source
1945 directory to the search path to the end, so that the `gdb' source
1946 directory will be searched first.
1947
04ea0df1
AC
19482002-07-29 Andrew Cagney <ac131313@redhat.com>
1949
1950 * gdb_obstack.h: New file.
1951 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1952 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1953 * objfiles.h: Include "gdb_obstack.h".
1954 * Makefile.in (gdb_obstack_h): Define.
1955 (symtab_h): Add $(gdb_obstack_h).
1956 (objfiles_h): Add $(gdb_obstack_h).
1957
1958 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1959 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1960 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1961 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1962 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1963 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1964 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1965 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1966
1967 * Makefile.in (bcache.o): Update dependencies.
1968 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1969 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1970 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1971 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1972 (stabsread.o, symfile.o, symmisc.o): Ditto.
1973 (symtab.o, typeprint.o, macroexp.o): Ditto.
1974 (macrotab.o, mdebugread.o): Ditto.
1975 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1976 (coff_ecoff_h, aout_aout64_h): Define.
1977 (aout_stabs_gnu_h, libaout_h): Define.
1978
d138e37a
AC
19792002-07-29 Andrew Cagney <cagney@redhat.com>
1980
1981 * regcache.c (struct regcache_descr): Rename nr_registers to
1982 nr_cooked_registers. Revise comments describing the structure
1983 member fields.
1984 (init_regcache_descr): Update.
1985 (init_legacy_regcache_descr): Update.
1986 (read_register_gen, write_register_gen): When a cooked register in
1987 the raw register range, directly access the value from the raw
1988 register cache.
1989
460e6ec3
AC
19902002-07-29 Andrew Cagney <ac131313@redhat.com>
1991
1992 * z8k-tdep.c: Do not include "obstack.h".
1993 * h8300-tdep.c, h8500-tdep.c: Ditto.
1994 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1995 * valprint.c, v850-tdep.c: Ditto.
1996 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1997 * mn10200-tdep.c: Ditto.
1998
1999 * Makefile.in (z8k-tdep.o): Update dependencies.
2000 (m68hc11-tdep.o, valprint.o): Ditto.
2001 (v850-tdep.o, d10v-tdep.o): Ditto.
2002 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2003 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2004 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2005 (sh_opc_h, gdb_sim_sh_h): Define.
2006 (elf_sh_h, elf_bfd_h): Define.
2007 (opcode_m68hc11_h): Define.
2008 (OPCODES_SRC, OPCODES_DIR): define.
2009 (OPCODES): Use $(OPCODES_DIR).
2010 (gdb_sim_d10v_h): Rename sim_d10v_h.
2011 (gdb_sim_arm_h): Rename sim_arm_h.
2012
790c9cf0
KB
20132002-07-26 Kevin Buettner <kevinb@redhat.com>
2014
2015 * utils.c (host_pointer_to_address, address_to_host_pointer):
2016 Change internal_error() message to indicate function responsible
2017 for the error.
2018
9647fa49
KB
20192002-07-26 Kevin Buettner <kevinb@redhat.com>
2020
2021 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2022 calls to local_hex_string_custom().
2023
dabbe2c0
KB
20242002-07-26 Kevin Buettner <kevinb@redhat.com>
2025
2026 * irix5-nat.c: Move IRIX shared library support from here...
2027 * solib-irix.c: ...to here. Revised substantially to work with
2028 generic solib framework.
2029
b96d0a4e
KB
2030 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2031 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2032 * mips-irix-tdep.c: New file.
2033
313fb2f6
KB
2034 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2035 (mips-irix-tdep.o, solib-irix.o): New rules.
2036 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2037 solib-irix.o.
2038 * config/mips/irix6.mt (TDEPFILES): Likewise.
2039 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2040
ab2eaf26
KB
20412002-07-26 Kevin Buettner <kevinb@redhat.com>
2042
177e4768 2043 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2044 disabled (via ``#if 0'') includes.
2045
7244546a
KB
20462002-07-26 Kevin Buettner <kevinb@redhat.com>
2047
2048 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2049 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2050 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2051 Add support for the fpscr register.
2052 * rs6000-nat.c (regmap, fetch_inferior_registers)
2053 (store_inferior_registers, fetch_core_registers): Likewise.
2054
dd7be90a
KB
20552002-07-26 Kevin Buettner <kevinb@redhat.com>
2056
2057 * rs6000-nat.c (language.h): Include.
2058 (special_regs): Delete this array.
2059 (regmap): New function.
2060 (fetch_register, store_register): Use regmap() to map gdb
2061 register numbers to ptrace register numbers. Also, use
2062 outputs from regmap() to make decisions regarding type of
2063 ptrace() call to make. In particular, don't compare against
2064 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2065 (fetch_inferior_registers, store_inferior_registers): Where
2066 possible, obtain register numbers from tdep struct. Don't
2067 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2068 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2069 (LAST_UISA_SP_REGNUM): Delete.
2070
11bf77db
KB
20712002-07-25 Kevin Buettner <kevinb@redhat.com>
2072
2073 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2074 (fetch_registers, store_register, fetch_core_registers): Don't
2075 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2076 regcache_collect() as appropriate.
2077 (find_toc_address): Format hex address with local_hex_string().
2078
06afebeb
AC
20792002-07-25 Andrew Cagney <ac131313@redhat.com>
2080
2081 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2082 bfd/elf32-frv.c.
2083
8c554d79
TT
20842002-07-24 Tom Tromey <tromey@redhat.com>
2085
2086 * jv-exp.y: Marked all strings with _().
2087 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2088 internal_error.
2089 (MethodInvocation, CastExpression, parse_number, yyerror,
2090 java_type_from_name, push_expression_name, yylex): Typo fixes.
2091
e4c242d9
DJ
20922002-07-24 Daniel Jacobowitz <drow@mvista.com>
2093
2094 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2095 (tee_file_flush, tee_file_write, tee_file_fputs)
2096 (tee_file_isatty): New.
2097 * ui-file.h (tee_file_new): Add prototype.
2098
ebf56fd3
AS
20992002-07-24 Aidan Skinner <aidan@velvet.net>
2100
2101 * ada-lang.c: Change k&r style function definitions to prototyped
2102 form.
2103 * ada-typeprint.c: Change k&r style function definitions to prototyped
2104 form.
2105 * ada-valprint.c: Change k&r style function definitions to prototyped
2106 form.
2107
7fb623f7
AC
21082002-07-24 Andrew Cagney <cagney@redhat.com>
2109
2110 * README: Remove reference to remote-bug.
2111 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2112 remote-bug.c.
2113 (m88k-nat.o): Delete rule.
2114 (m88k-tdep.o): Delete rule.
2115 (remote-bug.o): Delete rule.
2116 * MAINTAINERS: Mark as obsolete.
2117 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2118 * m88k-tdep.c: Make file obsolete.
2119 * config/m88k/m88k.mh: Ditto.
2120 * config/m88k/delta88v4.mh: Ditto.
2121 * config/m88k/delta88v4.mt: Ditto.
2122 * config/m88k/delta88.mt: Ditto.
2123 * config/m88k/delta88.mh: Ditto.
2124 * remote-bug.c: Ditto.
2125 * config/m88k/tm-delta88.h: Ditto.
2126 * config/m88k/nm-delta88v4.h: Ditto.
2127 * config/m88k/xm-delta88.h: Ditto.
2128 * config/m88k/xm-dgux.h: Ditto.
2129 * config/m88k/tm-m88k.h: Ditto.
2130 * config/m88k/nm-m88k.h: Ditto.
2131 * config/m88k/tm-delta88v4.h: Ditto.
2132 * m88k-nat.c: Ditto.
2133 * cxux-nat.c: Ditto.
2134 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2135 and m88*-*-* obsolete.
2136 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2137 m88*-*-* obsolete.
2138
37611a2b
AC
21392002-07-24 Andrew Cagney <cagney@redhat.com>
2140
2141 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2142 constant. Same for local pointer variables.
2143 (extract_signed_integer): Ditto.
2144 * defs.h (extract_unsigned_integer): Update.
2145 (extract_signed_integer): Update.
2146
1aaa5f99
AC
21472002-07-24 Andrew Cagney <cagney@redhat.com>
2148
2149 * regcache.c (regcache_raw_write): Change buf parameter to a
2150 constant void pointer.
2151 (regcache_raw_read): Change buf parameter to a void pointer.
2152 (legacy_write_register_gen): Change myaddr parameter a constant
2153 void pointer.
2154 (supply_register): Change val parameter to a const void pointer.
2155 * regcache.h (regcache_raw_write): Update declaration.
2156 (regcache_raw_read): Update declaration.
2157 (supply_register): Update declaration.
2158
b4f5539f
TT
21592002-07-24 Tom Tromey <tromey@redhat.com>
2160
2161 * defs.h (gdb_readline_wrapper): Declare.
2162 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2163 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2164 * top.c (gdb_readline_wrapper): New function.
2165 (command_line_input): Use it.
2166
0818c12a
AC
21672002-07-24 Andrew Cagney <cagney@redhat.com>
2168
2169 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2170 regcache_read and regcache_write.
2171 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2172 * regcache.c: Update.
2173 * sh-tdep.c (sh64_push_arguments): Update comment.
2174 (sh_pseudo_register_read): Update.
2175 (sh_pseudo_register_write): Update.
2176 (sh4_register_read): Update.
2177 (sh4_register_write): Update.
2178 (sh64_pseudo_register_read): Update.
2179 (sh64_pseudo_register_write): Update.
2180 (sh64_register_read): Update.
2181 (sh64_register_write): Update.
2182 * i386-tdep.c (i386_extract_return_value): Update.
2183 (i386_extract_struct_value_address): Update.
2184 (i386_extract_return_value): Update.
2185 * blockframe.c (generic_read_register_dummy): Update.
2186 (generic_call_dummy_register_unwind): Update
2187 * infrun.c (write_inferior_status_register): Update.
2188
f7321c06
JB
21892002-07-23 Jim Blandy <jimb@redhat.com>
2190
2191 * parser-defs.h (expression_context_pc): Make this extern.
2192 (Thanks to Michael Snyder.)
2193
2037aebb
AC
21942002-07-23 Andrew Cagney <ac131313@redhat.com>
2195
2196 GDB 5.2.1 released from 5.2 branch.
2197 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2198 * README: Update to mention 5.2.1.
2199
66504d44
MS
22002002-07-23 Mark Salter <msalter@redhat.com>
2201
2202 * remote.c (remote_read_bytes): Fix check for error.
2203
27bae383
KB
22042002-07-22 Kevin Buettner <kevinb@redhat.com>
2205
2206 * aix-thread.c (language.h): Include.
2207 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2208 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2209 Print newlines at end of debug messages.
2210 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2211 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2212
22132002-07-22 Kevin Buettner <kevinb@redhat.com>
2214
2215 * aix-thread.c (ppc-tdep.h): Include.
2216 (special_register_p): New function.
2217 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2218 (store_regs_user_thread): Use register number information from
2219 gdbarch_tdep struct instead of hardcoded offsets relative to
2220 FIRST_UISA_SP_REGNUM.
2221 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2222 special_register_p() instead of using FPLAST_REGNUM and
2223 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2224 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2225 will be MQ's register number.
2226
22272002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2228
2229 * aix-thread.c (ops): Rename to aix_thread_ops.
2230 (base_ops): Rename to base_target.
2231 (ops_attach): Rename to aix_thread_attach.
2232 (ops_detach): Rename to aix_thread_detach.
2233 (ops_resume): Rename to aix_thread_detach.
2234 (ops_wait): Rename to aix_thread_wait.
2235 (ops_kill): Rename to aix_thread_kill.
2236 (init_ops): Rename to init_aix_thread_ops.
2237 (ops_fetch_register): Rename to aix_thread_fetch_register.
2238 (ops_store_register): Rename to aix_thread_store_register.
2239 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2240 (ops_thread_alive): Rename to aix_thread_thread_alive.
2241 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2242 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2243 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2244 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2245 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2246 (store_regs_lib): Rename to store_regs_user_thread.
2247 (store_regs_kern): Rename to store_regs_kernel_thread.
2248
27bae383 22492002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2250
2251 * aix-thread.c (ops_prepare_to_store): Eliminate.
2252 (init_ops): Don't initialize ops.prepare_to_store.
2253 (store_regs_kern): Pre-fetch register buffers from child,
2254 because some registers may not be in the cache. Copy
2255 regs from register cache only if they are cached.
2256 (store_regs_lib): Copy regs from register cache only
2257 if they are cached.
2258 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2259 fill_gprs64): Ditto.
2260
61c5da0b
KB
22612002-07-22 Kevin Buettner <kevinb@redhat.com>
2262
2263 * aix-thread.c (gdb_assert.h): Include.
2264 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2265 register sizes (from register cache) match size of buffer holding
2266 register data.
2267 (fill_sprs32): Change parameter types to match those in the ptrace()
2268 buffer.
2269 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2270 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2271
22722002-07-22 Michael Snyder <msnyder@redhat.com>
2273
2274 * aix-thread.c (supply_sprs64): Cosmetic change.
2275 (supply_sprs32): Cosmetic change.
2276 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2277 (fill_sprs64): Use regcache_collect instead of read_register.
2278 (store_regs_lib): Use regcache_collect instead of
2279 read_register. Use fill_sprs32 instead of fill_sprs64,
2280 if debugging a 32-bit architecture.
2281 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2282 out of the register cache, instead of passing a pointer into
2283 the register cache directly to ptrace. Use regcache_collect
2284 insteaad of read_register.
2285 (ops_prepare_to_store): Use target_read_registers instead
2286 of read_register_bytes.
2287
36479eb1
AS
22882002-07-20 Aidan Skinner <aidan@velvet.net>
2289
2290 * MAINTAINERS: Add self under write after approval.
2291
80ae6ee2
AS
22922002-07-20 Aidan Skinner <aidan@velvet.net>
2293
2294 * ada-tasks.c: Change k&r style function definitions to prototyped
2295 form.
2296
8a8ab2b9
AC
22972002-07-19 Andrew Cagney <ac131313@redhat.com>
2298
2299 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2300 * x86-64-tdep.c: Include "objfiles.h".
2301 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2302 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2303
fb16b900
ML
23042002-07-17 Michal Ludvig <michal@suse.cz>
2305
2306 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2307 (update_context): Initialise cfa variable.
2308
0fe7bf7b
MS
23092002-07-17 Michael Snyder <msnyder@redhat.com>
2310
2311 * aix-thread.c: Shorten some long lines.
2312 Bring comments into line with code spec.
2313
488f131b
JB
23142002-07-18 Joel Brobecker <brobecker@gnat.com>
2315
2316 * infrun.c: Re-indent using gdb_indent.sh.
2317
46c415d2
JB
23182002-07-18 Joel Brobecker <brobecker@gnat.com>
2319
2320 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2321 Leave the indentation temporarily untouched, to minimize the diffs.
2322
cdecafbe
EZ
23232002-07-18 Elena Zannoni <ezannoni@redhat.com>
2324
2325 * stabsread.c: Make os9k sections of the code obsolete,
2326 for real this time.
2327 * stabsread.h: Make os9k sections of the code obsolete.
2328
7b6aa020
ML
23292002-07-18 Michal Ludvig <mludvig@suse.cz>
2330
09ec9b38
ML
2331 * linux-low.c (regsets_store_inferior_registers): Add free()
2332 at the end of a loop to prevent memory leak.
2333 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2334 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2335 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2336 line a comment.
4894ac5d 2337 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2338
233282cd
JB
23392002-07-17 Jim Blandy <jimb@redhat.com>
2340
2341 * macrocmd.c (info_macro_command): Remove newline from error
2342 message.
2343
7b6aa020 23442002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2345
2346 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2347 (sh_gdbarch_init): Use it for sh-dsp.
2348
f7ef9339
KB
23492002-07-16 Kevin Buettner <kevinb@redhat.com>
2350
2351 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2352 64-bit DWARF2 format.
2353
8dd72958
JB
23542002-07-16 Joel Brobecker <brobecker@gnat.com>
2355
2356 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2357 <sys/proc.h> when not available.
2358
a99a9e1b
AC
23592002-07-16 Andrew Cagney <ac131313@redhat.com>
2360
2361 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2362 * stabsread.c: Make os9k sections of the code obsolete.
2363 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2364 * config/i386/i386os9k.mt: Make file obsolete.
2365 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2366 (COMMON_OBS): Remove os9kread.o
2367 (SFILES): Remove os9kread.c.
2368 (os9kread.o, remote-os9k.o): Make target obsolete.
2369 * remote-os9k.c: Make file obsolete.
2370 * os9kread.c: Make file obsolete.
2371 * Makefile.in
2372
7a3085c1
AC
23732002-07-16 Andrew Cagney <ac131313@redhat.com>
2374
2375 * NEWS: Mention that the FR30 has been made obsolete.
2376 * fr30-tdep.c: Make file obsolete.
2377 * config/fr30/tm-fr30.h: Ditto.
2378 * config/fr30/fr30.mt: Ditto.
2379 * configure.tgt: Make fr30-*-elf obsolete.
2380 * MAINTAINERS: Make fr30-elf obsolete.
2381
28a93f5a
PM
23822002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2383
2384 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2385 found is not inside a section.
2386
be006b8b
KB
23872002-07-15 Kevin Buettner <kevinb@redhat.com>
2388
2389 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2390 strerror().
2391 (pdc_realloc): Use xrealloc() instead of realloc().
2392
14fa3751
KB
23932002-07-15 Kevin Buettner <kevinb@redhat.com>
2394
2395 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2396 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2397 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2398 macros.
2399
42cc437f
KB
24002002-07-15 Kevin Buettner <kevinb@redhat.com>
2401
2402 * aix-thread.c (ptrace_check): Eliminate goto.
2403 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2404 problem.
2405
8e2c28d4
KB
24062002-07-15 Kevin Buettner <kevinb@redhat.com>
2407
2408 * aix-thread.c (gdbcmd.h): Include.
2409 (DEBUG, DBG, DBG2, dbg): Eliminate.
2410 (debug_aix_thread): New static global.
2411 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2412 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2413 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2414 invocations to DBG and DBG2 macros to test against
2415 ``debug_aix_thread'' and call fprintf_unfiltered().
2416 (_initialize_aix_thread): Add new command "set debug aix-thread".
2417
30413464
AC
24182002-07-15 Andrew Cagney <ac131313@redhat.com>
2419
2420 From Gerhard Tonn <TON@de.ibm.com>:
2421 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2422 instead of supply_register.
2423
7c43edc1
AC
24242002-07-15 Andrew Cagney <ac131313@redhat.com>
2425
2426 * dwarf2cfi.c: Include "gdb_assert.h".
2427 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2428 non-NULL.
2429 (update_context): Do not use __func__. Add missing ``break''.
2430 (update_context): Do not use __func__.
2431
9364a0ef
EZ
24322002-07-15 Elena Zannoni <ezannoni@redhat.com>
2433
2434 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2435 and its setting. Set gdbarch instruction printing functions
2436 directly. For non-rs6000 case use new function
2437 gdb_print_insn_powerpc.
2438 (gdb_print_insn_powerpc): New function.
2439
3fbeef0b
AC
24402002-07-13 Andrew Cagney <ac131313@redhat.com>
2441
92eb23c5 2442 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2443 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2444 * configure.tgt: Mark d30v-*-* as obsolete.
2445 * d30v-tdep.c: Mark file as obsolete.
2446 * config/d30v/d30v.mt: Ditto.
2447 * config/d30v/tm-d30v.h: Ditto.
2448
aacb1f0a
AS
24492002-07-13 Aidan Skinner <aidan@velvet.net>
2450
2451 * ada-tasks.c (add_task_entry): replace calls to
2452 malloc() with xmalloc
2453 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2454
2455 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2456 ada_finish_decode_line_1, all_sals_for_line
2457 ada_breakpoint_rewrite): replace calls to free() with xfree()
2458
c11d79f2
KB
24592002-07-12 Kevin Buettner <kevinb@redhat.com>
2460
2461 From Nicholas Duffek (with minor changes by Martin Hunt,
2462 Louis Hamilton, and Kevin Buettner):
2463 * aix-thread.c: New file.
2464
8e19ed76
PS
24652002-07-12 Petr Sorfa <petrs@caldera.com>
2466
2467 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2468 complaint for invalid attribute class or form.
2469 (read_func_scope): DW_AT_frame_base
2470 better handling of DW_AT_block*.
2471 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2472 better handling of DW_AT_block*.
2473 (read_common_block): DW_AT_location
2474 better handling of DW_AT_block*.
2475 (read_partial_die): DW_AT_location better handling
2476 of DW_AT_block*.
2477 (new_symbol): DW_AT_external better handling of
2478 DW_AT_block*. Proper initialization of variable
2479 "addr".
2480 (attr_form_is_block): New function that returns true
2481 if the attribute's form is of DW_FORM_block*.
2482
295401f7
DJ
24832002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2484
2485 * valops.c (find_method_list): Remove comment about
2486 removed STATIC_MEMFUNCP argument.
2487 (value_find_oload_method_list): Likewise.
2488
e42dc924
KB
24892002-07-12 Kevin Buettner <kevinb@redhat.com>
2490
2491 From Nicholas Duffek:
2492 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2493 target_new_objfile_hook.
2494
6904b546
KB
24952002-07-12 Kevin Buettner <kevinb@redhat.com>
2496
2497 From Nicholas Duffek:
2498 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2499 csect.
2500
53fe9346
AC
25012002-07-12 Andrew Cagney <cagney@redhat.com>
2502
2503 * MAINTAINERS: Mention --enable-sim-build-warnings.
2504 (m68hc11-elf): Disable sim build warnings.
2505 (m32r-elf): Mark as broken obsolete candidate.
2506 (x86_64-linux-gnu): Mark as buildable with -Werror.
2507 (arm-elf): Change -w to ``,'' which enables warnings but not
2508 -Werror.
2509
af5f3db6
AC
25102002-07-12 Andrew Cagney <ac131313@redhat.com>
2511
2512 * bcache.h: Update copyright.
2513 (struct bstring, struct bcache): Move definition to "bcache.c".
2514 Replaced by opaque declaration.
2515 (bcache_xfree): Replace free_bcache.
2516 (bcache_xmalloc, bcache_memory_used): Declare.
2517
2518 * bcache.c: Update copyright.
2519 (struct bstring, struct bcache): Moved to here from "bcache.h".
2520 Update comments.
2521 (bcache_xmalloc, bcache_memory_used): New functions.
2522 (bcache_xfree): Replace function free_bcache.
2523
2524 * Makefile.in (objfiles.o): Add $(bcache_h).
2525 (objfiles_h): Remove $(bcache_h).
2526 (symfile.o): Add $(bcache_h).
2527
2528 * symmisc.c: Update copyright.
2529 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2530 (print_objfile_statistics): Use bcache_memory_used.
2531
2532 * symfile.c: Include "bcache.h".
2533 (reread_symbols): Use bcache_xfree.
2534 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2535 (add_psymbol_to_list): Pass psymbol_cache by value.
2536 (add_psymbol_with_dem_name_to_list): Ditto.
2537
2538 * objfiles.h: Update copyright.
2539 (struct bcache): Declare opaque. Do not include "bcache.h".
2540 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2541 bcache'' pointers.
2542 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2543
2544 * objfiles.c: Include "bcache.h". Update copyright.
2545 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2546 macro_cache.
2547 (free_objfile): Use bcache_xfree.
2548
444199e7
GS
25492002-07-11 Grace Sainsbury <graces@redhat.com>
2550
2551 * monitor.c (monitor_fetch_register): Make name a constant.
2552 (monitor_store_register): Same.
2553
261397f8
DJ
25542002-07-11 Daniel Jacobowitz <drow@mvista.com>
2555
2556 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2557 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2558 (finish_block) For non-function blocks, hash the symbol table. For
2559 function blocks, mark the symbol table as unhashed.
2560 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2561 (msymbol_hash_iw): Likewise.
2562 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2563 value.
2564 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2565 (lookup_minimal_symbol): Likewise for both.
2566 * symtab.h (struct block): Add `hashtable' flag. Comment the
2567 hashtable.
2568 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2569 (ALL_BLOCK_SYMBOLS): Update.
2570 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2571 (struct symbol): Add `hash_next' pointer.
2572 * symtab.c (lookup_block_symbol): Search using the hash table when
2573 possible.
2574 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2575 (search_symbols, find_addr_symbol): Likewise.
2576
2577 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2578 (read_dst_symtab): Likewise.
2579 * jv-lang.c (get_java_class_symtab): Likewise.
2580 * mdebugread.c: Include "gdb_assert.h".
2581 (shrink_block): Assert that the block being modified is not hashed.
2582 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2583 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2584 symbols.
2585 (dump_symtab): Recognize hashed blocks.
2586 * printcmd.c (print_frame_args): Assert that function blocks do not
2587 have hashed symbol tables.
2588 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2589 (fill_in_ada_prototype, debug_print_block): Likewise.
2590 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2591
6f0eaa01
CV
25922002-07-11 Corinna Vinschen <vinschen@redhat.com>
2593
2594 * stack.c (print_frame): Use result of frame_address_in_block()
2595 instead of fi->pc when evaluating symbols.
2596 (backtrace_command_1): Ditto.
2597
a208b0cb
AC
25982002-07-11 Andrew Cagney <cagney@redhat.com>
2599
2600 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2601 Make static.
2602
2603 * arm-tdep.c (arm_register_name): Make return type constant.
2604
a6b6b089
AC
26052002-07-10 Andrew Cagney <ac131313@redhat.com>
2606
5ae5f592
AC
2607 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2608 prototype.
2609 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2610 * s390-tdep.c (s390_fp_regnum): Ditto.
2611 (s390_read_fp): Ditto.
2612 (s390_pop_frame): Ditto.
2613 (_initialize_s390_tdep): Ditto.
2614 * remote.c (get_remote_state): Ditto.
2615 * procfs.c (mappingflags): Ditto.
2616 * memattr.c (_initialize_mem): Ditto.
2617 * mcore-tdep.c (mcore_pop_frame): Ditto.
2618 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2619 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2620 * language.c (set_case_str): Ditto.
2621 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2622 * frv-tdep.c (new_variant): Ditto.
2623 (frv_stopped_data_address): Ditto.
2624 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2625 (context_alloc): Ditto.
2626 (frame_state_alloc): Ditto.
2627 (unwind_tmp_obstack_init): Ditto.
2628 (unwind_tmp_obstack_free): Ditto.
2629 (cfi_read_fp): Ditto.
2630 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2631 (cris_pop_frame): Ditto.
2632 * c-lang.c (scanning_macro_expansion): Ditto.
2633 (finished_macro_expansion): Ditto.
2634 (c_preprocess_and_parse): Ditto.
2635 * gdbarch.sh: Ditto.
2636 * gdbarch.h, gdbarch.c: Regenerate.
2637 * config/mn10200/tm-mn10200.h: Adjust indentation.
2638 * target.c: Adjust indentation.
2639 * symtab.h: Adjust indentation.
2640 * stabsread.h: Adjust indentation.
2641 * remote-es.c: Adjust indentation.
2642 * os9kread.c: Adjust indentation.
2643
26442002-07-10 Andrew Cagney <ac131313@redhat.com>
2645
a6b6b089
AC
2646 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2647 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2648
a1789893
GS
26492002-07-10 Grace Sainsbury <graces@redhat.com>
2650
2651 * NEWS: Mention m68k, mcore multi-arching.
2652 * MAINTAINERS: Change status of m68k, mcore to reflect
2653 multi-arching.
2654
02f0d45d
DJ
26552002-07-10 Daniel Jacobowitz <drow@mvista.com>
2656
2657 * valops.c (find_overload_match): Free oload_syms.
2658
f15f768e
JB
26592002-07-09 Joel Brobecker <brobecker@gnat.com>
2660
2661 Define HAVE_SYS_PROC_H if sys/proc.h exists
2662 * configure.in: Add check for sys/proc.h
2663 * config.in: Regenerate.
2664 * configure: Regenerate.
2665
902a7139
GS
26662002-07-09 Grace Sainsbury <graces@redhat.com>
2667
2668 * config/m68k/tm-m68k.h: Remove macros wrapped in
2669 #if !GDB_MULTI_ARCH.
2670
a534e424
AC
26712002-07-08 Andrew Cagney <ac131313@redhat.com>
2672
2673 * config.in, configure: Regenerate.
2674
9b94f7bf
MK
26752002-07-08 Mark Kettenis <kettenis@gnu.org>
2676
2677 * dwarf2cfi.c: Include "gcore.h".
2678 (execute_stack_op): Fix implementation of the
2679 DW_OP_deref and DW_OP_deref_size operators by letting do their
2680 lookup in the target.
2681
1d34db41
MK
26822002-07-07 Mark Kettenis <kettenis@gnu.org>
2683
2684 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2685 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2686 tdep->sc_sp_offset.
2687
79d5b63a
DJ
26882002-07-05 Daniel Jacobowitz <drow@mvista.com>
2689
2690 Fix PR gdb/595, gdb/602
2691 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2692 Don't call value_cast, just read the vtable pointer; update comments
2693 to match.
2694
3bb912e8
GS
26952002-07-05 Grace Sainsbury <graces@redhat.com>
2696
2697 * config/mcore/tm-mcore.h: Remove file.
2698 * config/mcore/mcore.mt: Remove definition of TM_FILE
2699 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2700
ca39387d
MK
27012002-07-05 Mark Kettenis <kettenis@gnu.org>
2702
2703 * i386bsd-tdep.c: Include "gdb_string.h".
2704
efdc1108
GS
27052002-07-04 Grace Sainsbury <graces@redhat.com>
2706
2707 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2708 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2709 mcore-tdep.
2710 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2711 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2712 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2713 (RETVAL_REGNUM): Move macros from tm-mcore.h
2714 (mcore_reg_struct_has_addr): New function.
2715 (mcore_gdbarch_init): Added initializations for the macros removed
2716 from tm-mcore.h.
2717
bb21884d
MK
27182002-07-04 Mark Kettenis <kettenis@gnu.org>
2719
2720 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2721 traditonal string branding within the ELF header.
2722
228c6d41
DJ
27232002-07-04 Daniel Jacobowitz <drow@mvista.com>
2724
2725 * symtab.c (remove_params): New function.
2726 (make_symbol_overload_list): Use it instead of cplus_demangle.
2727 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2728
2404952e
MK
27292002-07-04 Mark Kettenis <kettenis@gnu.org>
2730
e5e4acad
MK
2731 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2732
baadce09
MK
2733 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2734 New variables.
2735 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2736 and tdep->sigtramp_end.
2737 * i386obsd-nat.c: New file.
2738 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2739
2404952e
MK
2740 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2741 Don't call get_current_frame().
2742
9b4f1ba7
PM
27432002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2744
2745 * i386-nat.c (child_post_startup_inferior): New function
2746 calling i386_cleanup_dregs if
2747 I386_USE_GENERIC_WATCHPOINTS is defined.
2748 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2749 conditional to acknowledge that i386-nat.c has its
2750 own child_post_startup_inferior function.
2751
c0d1d883
MK
27522002-07-04 Mark Kettenis <kettenis@gnu.org>
2753
00f8375e
MK
2754 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2755 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2756 instead of MAX_REGISTER_RAW_SIZE.
2757 (i386_extract_return_value, i386_extract_struct_value_address):
2758 Convert to use regcache.
2759 (i386_gdbarch_init): Set max_register_raw_size and
2760 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2761 Set extract_return_value and extract_struct_value_address instead
2762 of their deprecated variants.
2763
c0d1d883
MK
2764 Convert i386 target to generic dummy frames.
2765 * i386-tdep.c: Include "symfile.h".
2766 (i386_frameless_signal_p): Consider a function to be frameless if
2767 the pc points at the first instruction of the function.
2768 (i386_frame_chain): Handle (generic) call dummies.
2769 (i386_frame_saved_pc): Likewise.
2770 (i386_frame_init_saved_regs): Remove code dealing with call
2771 dummies on the stack.
2772 (i386_push_dummy_frame): Removed.
2773 (i386_call_dummy_words): Removed.
2774 (i386_fix_call_dummy): Removed.
2775 (i386_push_return_address): New function.
2776 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2777 parameter, and don't call get_current_frame.
2778 (i386_pop_frame): New function.
2779 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2780 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2781 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2782 call_dummy_length to 0, set call_dummy_words to NULL, set
2783 sizeof_call_dummy_words to 0, set fix_call_dummy to
2784 generic_fix_call_dummy, set pc_in_call_dummy to
2785 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2786 generic_push_dummy_frame, set push_return_address to
2787 i386_push_return_address and set frame_chain_valid to
2788 generic_file_frame_chain_valid.
2789
049ee0e4
AC
27902002-07-03 Andrew Cagney <ac131313@redhat.com>
2791
2792 * gdbarch.sh (struct regcache): Add opaque declaration.
2793 (EXTRACT_RETURN_VALUE): New architecture method.
2794 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2795 * gdbarch.h, gdbarch.c: Regenerate.
2796 * arch-utils.c (legacy_extract_return_value): New function.
2797 * arch-utils.h (legacy_extract_return_value): Declare.
2798 * values.c (value_being_returned): Re-enable code handling
2799 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2800 deprecated_grub_regcache_for_registers call to block handling
2801 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2802 (EXTRACT_RETURN_VALUE): Do not define.
2803
4e0d9804
GS
28042002-07-03 Grace Sainsbury <graces@redhat.com>
2805
2806 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2807 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2808 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2809 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2810 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2811 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2812 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2813 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2814 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2815 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2816 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2817 argument so the function fits the prototype in the architecture
2818 vector.
2819 (mcore_pop_frame): Remove argument so the function fits the
2820 prototype. Use get_current_frame instead of the argument.
2821 (mcore_push_arguments): Change type of struct_return so the
2822 function can be used in the architecture vector.
2823 (mcore_store_struct_return): Add.
2824 (mcore_frame_init_saved_regs): Add.
2825 (mcore_gdbarch_init): Add function calls to replace the macros
2826 removed from tm-mcore.h
2827
36160dc4
AC
28282002-07-03 Andrew Cagney <ac131313@redhat.com>
2829
2830 * infcmd.c (print_return_value): Remove compatibility code calling
2831 deprecated_grub_regcache_for_registers.
2832
2833 * values.c: Include "regcache.h".
2834 (value_being_returned): Update. Use
2835 deprecated_grub_regcache_for_registers to extract the register
2836 buffer address.
2837 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2838 ``struct regcache''.
2839 * Makefile.in (values.o): Add dependency on $(regcache_h).
2840
2841 * inferior.h (run_stack_dummy): Change type of second parameter to
2842 a ``struct regcache''.
2843 * valops.c (hand_function_call): Change type of retbuf to ``struct
2844 regcache''. Allocate using regcache_xmalloc, clean using
2845 make_cleanup_regcache_xfree.
2846 * infcmd.c (run_stack_dummy): Update. Use
2847 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2848
2849 * regcache.c (do_regcache_xfree): New function.
2850 (make_cleanup_regcache_xfree): New function.
2851 * regcache.h (make_cleanup_regcache_xfree): Declare.
2852
e64d9b3d
MH
28532002-07-03 Martin M. Hunt <hunt@redhat.com>
2854
4dd79c29
MH
2855 * event-top.c (command_line_handler): Don't read past
2856 beginning of buffer.
e64d9b3d 2857
4dd79c29
MH
28582002-07-03 Martin M. Hunt <hunt@redhat.com>
2859
e64d9b3d
MH
2860 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2861 struct frame_id.
2862 (varobj_create): Store frame_id for root.
2863 (varobj_gen_name): Use xasprintf.
2864 (varobj_update): Save and restore frame using get_frame_id() and
2865 frame_find_by_id().
2866 (create_child): Use xasprintf.
2867 (new_root_variable): Initialize frame_id.
2868 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2869 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2870 to prevent memory leak.
2871
26e6c56a
AC
28722002-07-03 Andrew Cagney <ac131313@redhat.com>
2873
2874 * valops.c (hand_function_call): Move declaration of retbuf to
2875 start of function, allocate using malloc, add a cleanup but before
2876 the inf_status cleanup, cleanup the buffer. Rename local variable
2877 old_chain to inf_status_cleanup.
2878
f436dd25
MH
28792002-07-03 Martin M. Hunt <hunt@redhat.com>
2880
2881 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2882
2883 * cli/cli-decode.c (cmd_func_p): New function.
2884 (cmd_func): New function.
2885
2886 * command.h: Add cmd_func() and cmd_func_p().
2887
4cfe2084
GS
28882002-07-03 Grace Sainsbury <graces@redhat.com>
2889
2890 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2891 (REGISTER_SIZE): Remove.
2892 (MAX_REGISTER_RAW_SIZE): Remove.
2893 (REGISTER_VIRTUAL_TYPE): Remove.
2894 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2895 (REGISTER_NAME): Remove.
2896 (USE_GENERIC_DUMMY_FRAMES): Remove.
2897 (CALL_DUMMY): Remove.
2898 (CALL_DUMMY_START_OFFSET): Remove.
2899 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2900 (CALL_DUMMY_LOCATION): Remove.
2901 (FIX_CALL_DUMMY): Remove.
2902 (CALL_DUMMY_ADDRESS): Remove.
2903 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2904 (SAVE_DUMMY_FRAME_TOS): Remove.
2905 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2906 (mcore_register_virtual_type): New function.
2907 (mcore_register_byte): New function.
2908 (mcore_register_size): New function.
2909 (mcore_register_name): New function.
2910 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2911 macros removed from tm-mcore.h.
2912 (mcore_dump_tdep): Add.
2913 (_initialize_mcore_tdep): Add gdbarch_register call.
2914
4fd667e9
MK
29152002-07-03 Mark Kettenis <kettenis@gnu.org>
2916
2917 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2918 frameless_look_for_prologue, such that we actually call this
2919 function.
2920
42f99ac2
JB
29212002-07-02 Joel Brobecker <brobecker@gnat.com>
2922
2923 * frame.h (frame_address_in_block): New function.
2924
2925 * blockframe.c (frame_address_in_block): New function extracted
2926 from get_frame_block().
2927 (get_frame_block): Use frame_address_in_block().
2928 (block_innermost_frame): Use frame_address_in_block() to match
2929 the frame pc address against the block boundaries rather than
2930 the frame pc directly. This prevents a failure when a frame pc
2931 is actually a return-address pointing immediately after the end
2932 of the given block.
2933
103a1597 29342002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2935
2936 * MAINTAINERS: Add self under write after approval.
2937
29382002-07-02 Grace Sainsbury <graces@redhat.com>
2939
103a1597
GS
2940 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2941 used in architecture vector. The default is
2942 m68k_local_breakpoint_from_pc.
2943 (m68k_local_breakpoint_from_pc): Add.
2944 (enum): Add register numbers from tm-m68k.h.
2945 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2946 vector.
2947 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2948 GDB_MULTI_ARCH_PARTIAL.
2949 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2950 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2951 m68k-tdep.c.
2952 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2953 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2954 to enum in m68k-tdep.c
2955
7a5a0534
JB
29562002-07-02 Joel Brobecker <brobecker@gnat.com>
2957
2958 * solib-osf.c (open_map): Compute the list of shared libraries
2959 loaded by the inferior, rather than the list of libraries loaded
2960 by GDB itself. Otherwise, GDB ends up reading the symbols from
2961 the wrong shared libraries...
2962
6f558d74
MK
29632002-07-02 Mark Kettenis <kettenis@gnu.org>
2964
b7d15bf7
MK
2965 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2966 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2967 macros.
2968 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2969 Remove functions.
2970 (FRAMELESS_SIGNAL): Remove function.
2971 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2972 i386_linux_saved_pc_after_call): Removed.
2973 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2974 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2975 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2976
6bff26de
MK
2977 * i386-tdep.c (i386_frameless_signal_p): New function.
2978 (i386_frame_chain): Deal with frameless signals.
2979 (i386_sigtramp_saved_sp): New function.
2980 (i386_frame_saved_pc): Deal with frameless signals.
2981 (i386_saved_pc_after_call): Make sure the correct value is
2982 returned just after entry into a sigtramp.
2983 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2984 i386fbsd4_sc_sp_offset): New variables.
2985 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2986 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2987 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2988 similiar to what we already did for sc_pc_offset.
2989 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2990 tdep->sc_sp_offset.
2991
6f558d74
MK
2992 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2993
145564b7
ML
29942002-07-02 Michal Ludvig <mludvig@suse.cz>
2995
2996 * config/i386/tm-x86-64linux.h: New.
2997 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2998 definitions.
2999 * config/i386/nm-x86-64.h: Rename to ...
3000 * config/i386/nm-x86-64linux.h: ... this one.
3001 * config/i386/x86-64linux.mh: Reflect the above change.
3002
3a1e71e3
MK
30032002-07-01 Mark Kettenis <kettenis@gnu.org>
3004
21d0e8a4
MK
3005 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3006 with sigcontext_addr. Add sc_sp_offset.
3007 (i386bsd_sigtramp_saved_pc): Remove prototype.
3008 (i386bsd_sicontext_addr): Add prototype.
3009 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3010 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3011 (i386_svr4_sigtramp_saved_pc): Removed.
3012 (i386_svr4_sigcontext_addr): New function.
3013 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3014 Initialize tdep->sigcontext_addr instead. Initialize
3015 tdep->sc_pc_offset and tdep->sc_sp_offset.
3016 (i386_gdbarch_init): Likewise.
3017 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3018 any more.
3019 (i386bsd_sigtramp_saved_pc): Remove function.
3020 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3021 Initialize tdep->sigcontext_addr instead. Initialize
3022 tdep->sc_pc_offset.
3023 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3024 of tdep->sigtramp_saved_pc.
3025 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3026 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3027 instead.
3028
3a1e71e3
MK
3029 * i386-tdep.c (i386_frameless_function_invocation,
3030 i386_frame_num_args, i386_frame_init_saved_regs,
3031 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3032 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3033 i386_extract_return_value, i386_store_return_value,
3034 i386_extract_struct_value_address, i386_register_virtual_type,
3035 i386_register_convertible, i386_register_convert_to_virtual,
3036 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3037 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3038 static.
3039
52e9098c
MK
30402002-07-01 Mark Kettenis <kettenis@gnu.org>
3041
77b13a25
MK
3042 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3043
52e9098c
MK
3044 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3045 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3046 this macro. Include "value.h".
3047
1b372fff
AS
30482002-06-30 Aidan Skinner <aidan@velvet.net>
3049
3050 * ada-exp.tab.c: remove as it's a generated file
3051 * ada-lex.c: remove as it's a generated file
3052
9c5045b5
MK
30532002-06-30 Mark Kettenis <kettenis@gnu.org>
3054
4a93c5bb
MK
3055 * config/i386/tm-i386.h (struct frame_info, struct
3056 frame_saved_regs, struct value, struct type): Remove forward
3057 declarations.
3058
322d4fe0
MK
3059 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3060 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3061 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3062 (FILL_FPXREGSET): Define.
3063
fdd8263d
MK
3064 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3065
482e577b
MK
3066 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3067 i[3456]86-*-netbsd* case.
3068 * config/i386/tm-obsd.h: Removed.
3069 * config/i386/obsd.mt: Removed.
3070 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3071 core-aout.o.
3072 (MH_CFLAGS): Add -DYYDEBUG=0.
3073
6916549a
MK
3074 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3075 i386nbsd_sc_pc_offset on OpenBSD too.
3076
9c5045b5
MK
3077 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3078 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3079 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3080 define.
3081 * i386bsd-tdep.c: Include "arch-utils.h".
3082 (i386bsd_aout_in_solib_call_trampoline): New function.
3083 (i386bsd_init_abi): Set in_solib_call_trampoline to
3084 i386bsd_aout_in_solib_call_trampoline.
3085 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3086 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3087
aa84d1bb
AC
30882002-06-28 Andrew Cagney <ac131313@redhat.com>
3089
3090 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3091 (struct obstack, struct bcache): Add opaque declarations.
3092 * Makefile.in (macrotab_h): Update
3093
b4d83933
AC
30942002-06-28 Andrew Cagney <ac131313@redhat.com>
3095
3096 * blockframe.c (generic_find_dummy_frame): Change return type to
3097 ``struct regcache''.
3098 (struct dummy_frame): Replace field ``registers'' with regcache, a
3099 struct regcache object.
3100 (generic_find_dummy_frame): Update.
3101 (generic_push_dummy_frame): Update. Use regcache_xfree,
3102 regcache_xmalloc and regcache_cpy.
3103 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3104 regcache_xfree.
3105 (deprecated_generic_find_dummy_frame): Update.
3106 (generic_read_register_dummy): Update. Use
3107 regcache_read_as_address.
3108 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3109 (generic_get_saved_register): Update. Use regcache_read.
3110
08c0b5bc
AC
31112002-06-28 Andrew Cagney <ac131313@redhat.com>
3112
3113 * Makefile.in (objfiles_h): Add $(bcache_h).
3114 * objfiles.h: Include "bcache.h".
3115
3116 * Makefile.in (symtab_h): Remove $(bcache_h).
3117 * symtab.h: Do not include "bcache.h".
3118
1f89801a
AC
31192002-06-28 Andrew Cagney <ac131313@redhat.com>
3120
3121 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3122 generic_func_frame_chain_valid.
3123
b9644b58
DB
31242002-06-28 David O'Brien <obrien@FreeBSD.org>
3125
3126 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3127 * config/i386/tm-fbsd.h: Likewise.
3128
dd486634
AC
31292002-06-28 Andrew Cagney <ac131313@redhat.com>
3130
3131 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3132 generic_unwind_get_saved_register.
3133
0b434a00
AC
31342002-06-27 Andrew Cagney <ac131313@redhat.com>
3135
3136 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3137 * regcache.c (supply_register): Add missing argument to
3138 register_buffer call.
3139
f30e5a77
AC
31402002-06-27 Andrew Cagney <ac131313@redhat.com>
3141
3142 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3143 Solaris /bin/grep does not not like it. From Peter Schauer.
3144
9f064c95
TT
31452002-06-26 Tom Tromey <tromey@redhat.com>
3146
3147 * command.h (add_setshow_cmd): Declare.
3148 (add_setshow_cmd_full): Declare.
3149 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3150 returns void. Use add_setshow_cmd_full.
3151 (add_setshow_cmd_full): New function.
3152 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3153 (add_setshow_boolean_cmd): Likewise.
3154
099c7589
JT
31552002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3156
3157 * config/vax/tm-vax.h: Protect from multiple inclusion.
3158 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3159 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3160 * config/vax/tm-vaxbsd.h: ...here. New file.
3161 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3162
1d049c5e
JT
31632002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3164
3165 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3166 (BELIEVE_PCC_PROMOTION): Remove.
3167 (AP_REGNUM): Move to...
3168 * config/vax/nm-vax.h: ...here.
3169 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3170 (vax_breakpoint_from_pc): New function.
3171 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3172 and gdbarch_believe_pcc_promotion.
3173
4791e091
JT
31742002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3175
3176 * Makefile.in (vax_tdep_h): Define.
3177 (vax-tdep.o): Use $(vax_tdep_h).
3178 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3179 (vax_dump_tdep): New function.
3180 (_initialize_vax_tdep): Register vax_dump_tdep.
3181 * vax-tdep.h: Include osabi.h.
3182 (struct gdbarch_tdep): New.
3183
da130f98
AC
31842002-06-26 Andrew Cagney <cagney@redhat.com>
3185
3186 * frame.h (deprecated_generic_find_dummy_frame): Rename
3187 generic_find_dummy_frame.
3188 * blockframe.c (generic_find_dummy_frame): Make static.
3189 (deprecated_generic_find_dummy_frame): New function.
3190 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3191 generic_find_dummy_frame with deprecated_find_dummy_frame.
3192 (sh64_nofp_frame_init_saved_regs): Ditto.
3193 (sh_fp_frame_init_saved_regs): Ditto.
3194 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3195 (s390_frame_chain): Ditto.
3196 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3197
6300c360
GS
31982002-06-26 Grace Sainsbury <graces@redhat.com>
3199
3200 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3201 gdbarch vector are at the top.
3202 (NUM_REGS): Remove.
3203 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3204 (FRAME_ARGS_ADDRESS): Remove.
3205 (FRAME_LOCALS_ADDRESS): Remove.
3206 (FRAME_NUM_ARGS): Remove.
3207 (FRAME_ARGS_SKIP): Remove.
3208 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3209 (m68k_gdbarch_init): Add gdbarch initializations for macros
3210 undefined in tm-m68k.h
3211
1c617db8
GS
32122002-06-26 Grace Sainsbury <graces@redhat.com>
3213
3214 * monitor.h: Add the function regname to monitor_ops
3215 structure. This way NUM_REGS does not have to be a constant.
3216 * monitor.c (monitor_fetch_register): Added support for regname
3217 function. The function is called if the array regnames is NULL.
3218 (monitor_store_register): Same.
da130f98
AC
3219 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3220 regnames array.
1c617db8
GS
3221 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3222 cpu32bug_cmds.regname to point to new function.
3223 * abug-rom.c (abug_regname): Same as above.
3224 (init_abug_cmds): Same.
3225 * dbug-rom.c (dbug_regname): Same as above.
3226 (init_dbug_cmds): Same.
3227 * remote-est.c (est_regname): Same.
3228 (init_est_cmds): Same.
3229 * rom68k-rom.c (rom68k_regname): Same.
3230 (init_rom68k_cmds): Same.
3231
ea9365bb
TT
32322002-06-25 Tom Tromey <tromey@redhat.com>
3233
3234 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3235
72cec141
AC
32362002-06-25 Andrew Cagney <cagney@redhat.com>
3237
3238 * infrun.c (stop_registers): Change variable's type to ``struct
3239 regcache'''.
3240 (xmalloc_inferior_status): Delete function.
3241 (free_inferior_status): Delete function.
3242 (normal_stop): Use regcache_cpy.
3243 (struct inferior_status): Change type of fields ``stop_registers''
3244 and ``registers'' to ``struct regcache''.
3245 (write_inferior_status_register): Use regcache_write.
3246 (save_inferior_status): Instead of calling
3247 xmalloc_inferior_status, allocate the inf_status buffer directly.
3248 Use regcache_dup_no_passthrough and regcache_dup to save the
3249 buffers.
3250 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3251 Replace the stop_registers regcache instead of overriding it. Use
3252 regcache_xfree. Instead of calling free_inferior_status, xfree
3253 the buffer directly.
3254 (discard_inferior_status): Use regcache_xfree. Instead of calling
3255 free_inferior_status, xfree the buffer directly.
3256 (build_infrun): Use regcache_xmalloc.
3257 (_initialize_infrun): Delete redundant call to build_infrun.
3258
3259 * Makefile.in (infcmd.o): Add $(regcache_h).
3260
3261 * infcmd.c: Include "regcache.h".
3262 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3263 obtain the address of `stop_registers' register buffer.
3264 (print_return_value): Ditto.
3265
3266 * inferior.h (struct regcache): Add opaque declaration.
3267 (stop_registers): Change variable's declared type to ``struct
3268 regcache''.
3269
defc6f8c
TT
32702002-06-24 Tom Tromey <tromey@redhat.com>
3271
c0e624e7
TT
3272 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3273 * target.c (initialize_targets): Fixed typo in
3274 trust-readonly-sections `show' documentation.
3275
defc6f8c
TT
3276 * main.c: Marked all strings with _().
3277
2b236d82
DH
32782002-06-24 Don Howard <dhoward@redhat.com>
3279
3280 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3281 that means max CORE_ADDR+1.
3282 (lookup_mem_region): Ditto.
3283 (mem_info_command): Ditto.
3284
942dc0e9
GS
32852002-06-24 Grace Sainsbury <graces@redhat.com>
3286
3287 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3288 (REGISTER_BYTES_OK): Remove.
3289 (REGISTER_BYTES): Remove.
3290 (STORE_STRUCT_RETURN): Remove.
3291 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3292 (STORE_RETURN_VALUE): Remove.
3293 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3294 (FRAME_CHAIN): Remove.
3295 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3296 (FRAME_SAVED_PC): Remove.
3297 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3298 (m68k_store_struct_return): Add.
3299 (m68k_deprecated_extract_return_value): Add.
3300 (m68k_deprecated_extract_struct_value_address): Add.
3301 (m68k_store_return_value): Add.
3302 (m68k_frame_chain): Add.
3303 (m68k_frameless_function_invocation): Add.
3304 (m68k_frame_saved_pc): Add.
3305 (m68k_gdbarch_init): added set_gdbarch calls for new
3306 functions and deleted macros.
3307
03c30d4d
TT
33082002-06-23 Tom Tromey <tromey@redhat.com>
3309
3310 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3311 (ALLDEPFILES): Likewise.
3312 (udiheaders): Removed.
3313 (udip2soc.o): Likewise.
3314 (udi2go32.o): Likewise.
3315 (udr.o): Likewise.
3316 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3317
37e71372
AC
33182002-06-22 Andrew Cagney <ac131313@redhat.com>
3319
06a6ac57
AC
3320 * infrun.c (_initialize_infrun): Delete unnecessary call to
3321 build_infrun.
3322
37e71372
AC
3323 * regcache.h: Update comments describing the regcache_cpy family
3324 of functions.
3325 (regcache_save, regcache_restore): Delete declaration.
3326 (regcache_save_no_passthrough): Delete declaration.
3327 (regcache_restore_no_passthrough): Delete declaration.
3328 * regcache.c (regcache_save): Delete function.
3329 (regcache_save_no_passthrough): Delete function.
3330 (regcache_restore): Delete function.
3331 (regcache_restore_no_passthrough): Delete function.
3332
78f6d055
AC
33332002-06-21 Andrew Cagney <ac131313@redhat.com>
3334
3335 * config/m68k/tm-m68k.h: Fix typo.
3336 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3337 (m68k_frame_init_saved_regs): Declare.
3338
78b119cb
JB
33392002-06-21 Jim Blandy <jimb@redhat.com>
3340
3341 Remove some vestiges of Harris 88k support.
3342 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3343 register numbering quirk.
3344 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3345 odd symbols occurring in Harris 88k ELF targets.
3346
0fbb3da7
TT
33472002-06-21 Tom Tromey <tromey@redhat.com>
3348
3349 * gdb_locale.h: New file.
3350 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3351 (defs_h): Added gdb_locale.h.
3352 * configure, config.in: Rebuilt.
3353 * configure.in (PACKAGE): Define.
3354 * defs.h: Include gdb_locale.h.
3355 * main.c (captured_main): Call setlocale, bindtextdomain,
3356 textdomain.
3357
456f8b9d
DB
33582002-06-21 Dave Brolley <brolley@redhat.com>
3359
3360 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3361 * config/frv/frv.mt: New file.
3362 * config/frv/tm-frv.h: New file.
3363 * configure.tgt: Support frv-*-*.
3364 * Makefile.in (frv-tdep.o): New target.
3365 * frv-tdep.c: New file.
3366 * NEWS: Mention frv.
3367
cdd463f9
DB
33682002-06-21 Dave Brolley <brolley@redhat.com>
3369
3370 * MAINTAINERS: Add self to "Write After Approval" list.
3371
5d3ed2e3
GS
33722002-06-21 Grace Sainsbury <graces@redhat.com>
3373
3374 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3375 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3376 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3377 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3378 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3379
3380 * m68k-tdep.c: Include arch-utils.h
3381 (m68k_register_raw_size): Add.
3382 (m68k_register_virtual_size): Add.
3383 (m68k_register_virtual_type): Add.
3384 (m68k_register_name): Add.
3385 (m68k_stack_align): Add.
3386 (m68k_register_byte): Add.
3387 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3388 tm-m68k.h.
3389
7f8e7424
GS
33902002-06-21 Grace Sainsbury <graces@redhat.com>
3391
a2c6a6d5 3392 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3393 m68k_find_saved_regs.
3394 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3395 references to it with frame->saved_regs.
7f8e7424
GS
3396 (m68k_gdbarch_init): Added function calls to initialize the
3397 gdbarch structure.
a2c6a6d5
GS
3398 (m68k_fix_call_dummy): Add.
3399 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3400 (CALL_DUMMY): Remove.
3401 (CALL_DUMMY_LENGTH): Remove.
3402 (CALL_DUMMY_START_OFFSET): Remove.
3403 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3404 (FIX_CALL_DUMMY): Remove.
3405 (PUSH_DUMMY_FRAME): Remove.
3406 (POP_FRAME): Remove.
7f8e7424 3407
f461f5cf
PM
34082002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3409
3410 * parse.c (parse_fprintf): New function used to avoid calls to
3411 fprintf in bison parser generated debug code.
3412 * parser-defs.h: Declaration of new parse_fprintf function.
3413 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3414 Set YYDEBUG to 1 by default.
3415 Set YYFPRINTF as parse_fprintf.
3416
7f0c12ed
ML
34172002-06-21 Michal Ludvig <mludvig@suse.cz>
3418
3419 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3420 encoding anymore.
3421 (pointer_encoding, enum ptr_encoding): New.
3422 (execute_cfa_program): Take care about pointer encoding.
3423 (dwarf2_build_frame_info): Only call parse_frame_info for
3424 .debug_frame and .eh_frame.
3425 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3426 fixed augmentation handling, added relative addressing,
3427 ignore duplicate FDEs. Added comments.
19d833a2 3428 * dwarf2cfi.c: Reindented.
7f0c12ed 3429
87c4a039
EZ
34302002-06-20 Elena Zannoni <ezannoni@redhat.com>
3431
3432 * event-top.c (command_handler): Don't use space_at_cmd_start
3433 unless there is sbrk() on the host. Assign time and space data
3434 to union fields of the appropriate length.
3435
1cf877ad
ML
34362002-06-20 Michal Ludvig <mludvig@suse.cz>
3437
3438 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3439 x86_64_register_name. Return type changed to 'const char *'.
3440 (x86_64_register_name2nr): Rename to x86_64_register_number.
3441 (x86_64_gdbarch_init): Update to reflect the change.
3442 * x86-64-tdep.h: Ditto.
3443 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3444 (supply_fpregset): Ditto.
3445
3fadccb3
AC
34462002-06-19 Andrew Cagney <cagney@redhat.com>
3447
3448 * regcache.h: Update copyright.
3449 (struct regcache, struct gdbarch): Add opaque declarations.
3450 (current_regcache): Declare global variable.
3451 (regcache_read, regcache_write): Add gdbarch parameter.
3452 (regcache_save, regcache_save_no_passthrough)
3453 (regcache_restore, regcache_restore_no_passthrough)
3454 (regcache_dup, regcache_dup_no_passthrough)
3455 (regcache_cpy, regcache_cpy_no_passthrough)
3456 (deprecated_grub_regcache_for_registers)
3457 (deprecated_grub_regcache_for_register_valid)
3458 (regcache_valid_p): Add function declarations.
3459
3460 * regcache.c: Update copyright.
3461 (regcache_descr_handle): New global variable.
3462 (struct regcache_descr): Define.
3463 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3464 (regcache_descr, xfree_regcache_descr): New functions.
3465 (struct regcache): Define.
3466 (regcache_xmalloc, regcache_xfree): New functions.
3467 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3468 (regcache_dup, regcache_dup_no_passthrough): New functions.
3469 (regcache_valid_p, regcache_read_as_address): New functions.
3470 (deprecated_grub_regcache_for_registers): New function.
3471 (deprecated_grub_regcache_for_register_valid): New function.
3472 (current_regcache): New global variable.
3473 (register_buffer): Add regcache parameter. Update calls.
3474 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3475 (read_register_gen, write_register_gen): Update register_buffer
3476 call. Test for legacy_p instead of gdbarch_register_read_p or
3477 gdbarch_register_write_p.
3478 (regcache_collect): Update register_buffer call.
3479 (build_regcache): Rewrite. Use deprecated grub functions.
3480 (regcache_save, regcache_save_no_passthrough): New functions.
3481 (regcache_restore, regcache_restore_no_passthrough): New
3482 functions.
3483 (_initialize_regcache): Create the regcache_data_handle. Swap
3484 current_regcache global variable.
3485
3486 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3487 parameter to regcache_read and regcache_write calls.
3488 (sh4_register_read): Ditto.
3489 (sh64_pseudo_register_read): Ditto.
3490 (sh64_register_read): Ditto.
3491 (sh_pseudo_register_write): Ditto.
3492 (sh4_register_write): Ditto.
3493 (sh64_pseudo_register_write): Ditto.
3494 (sh64_register_write): Ditto.
3495
3496 * defs.h (XCALLOC): Define.
3497
152d9db6
GS
34982002-06-19 Grace Sainsbury <graces@redhat.com>
3499
3500 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3501 * m68k-tdep.c (m68k_gdbarch_init): Added.
3502 (m68k_dump_tdep): Added.
3503
170911c7
DJ
35042002-06-19 Daniel Jacobowitz <drow@mvista.com>
3505
3506 * ada-lang.c (fill_in_ada_prototype): Update comment.
3507
2e4ebe70
DJ
35082002-06-19 Daniel Jacobowitz <drow@mvista.com>
3509
3510 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3511 MIPS_ABI_LAST.
3512 (mips_abi_string, mips_abi_strings): New.
3513 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3514 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3515 tdep->mips_abi_string. Honor mips_abi_string. Default to
3516 O32 if no ABI is found.
3517 (mips_dump_tdep): Use mips_abi_strings.
3518 (mips_abi_update): New function.
3519 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3520 ``set mips abi'' and ``show mips abi''. Check the size of
3521 mips_abi_strings.
3522
16775908
AC
35232002-06-19 Andrew Cagney <cagney@redhat.com>
3524
3525 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3526 constant.
3527
5051bfa4 35282002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3529
5051bfa4
JB
3530 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3531 current frame using only the first stack size adjustment. All
3532 subsequent size adjustments are not considered to be part of
3533 the "static" part of the current frame.
3534 Compute the address of the saved registers relative to the
3535 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3536 in use in this frame.
3537
56468235
DH
35382002-06-18 Don Howard <dhoward@redhat.com>
3539
3540 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3541 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3542 suggesting this solution.
3543
0b624158
AC
35442002-06-18 Andrew Cagney <ac131313@redhat.com>
3545
3546 * config/romp/xm-rtbsd.h: Delete file.
3547 * config/romp/rtbsd.mh: Delete file.
3548
221ea385
KS
35492002-06-18 Keith Seitz <keiths@redhat.com>
3550
3551 * breakpoint.c (condition_command): Post breakpoint_modify
3552 when a condition is added to an existing breakpoint.
3553 (commands_command): Likewise for commands.
3554 (set_ignore_count): Likewise for ignore counts.
3555 If no tty, do not simply return, still need to send event
3556 notification.
3557 (ignore_command): Only print a newline if the command came
3558 from a tty.
3559 Don't call breakpoints_changed, since this is now properly
3560 handled by set_ignore_count.
3561
5402eed1
AC
35622002-06-18 Andrew Cagney <cagney@redhat.com>
3563
3564 * MAINTAINERS: Note that cris-elf target can be compiled with
3565 -Werror.
3566 * cris-tdep.c (cris_register_name): Make return type constant.
3567 (cris_breakpoint_from_pc): Ditto.
3568
cc22880b
ML
35692002-06-18 Michal Ludvig <mludvig@suse.cz>
3570
3571 * frame.h (struct frame_info): Change type of context to
3572 'struct context'.
3573
fa88f677
AC
35742002-06-17 Andrew Cagney <cagney@redhat.com>
3575
3576 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3577 pointer.
3578 * gdbarch.h, gdbarch.c: Regenerate.
3579 * config/mips/tm-mips.h (mips_register_name): Update.
3580 * i386-tdep.h (i386_register_name): Update.
3581 * mips-tdep.c (mips_register_name): Update
3582 * alpha-tdep.c (alpha_register_name): Update.
3583 * arch-utils.c (legacy_register_name): Update.
3584 * arch-utils.h (legacy_register_name): Update.
3585 * avr-tdep.c (avr_register_name): Update.
3586 * ia64-tdep.c (ia64_register_name): Update.
3587 * i386-tdep.c (i386_register_name): Update.
3588 * sparc-tdep.c (sparc32_register_name): Update.
3589 (sparc64_register_name): Update.
3590 (sparclite_register_name): Update.
3591 (sparclet_register_name): Update.
3592 * sh-tdep.c (sh_generic_register_name): Update.
3593 (sh_sh_register_name): Update.
3594 (sh_sh3_register_name): Update.
3595 (sh_sh3e_register_name): Update.
3596 (sh_sh_dsp_register_name): Update.
3597 (sh_sh3_dsp_register_name): Update.
3598 (sh_sh4_register_name): Update.
3599 (sh_sh64_register_name): Update.
3600 * s390-tdep.c (s390_register_name): Update.
3601 * rs6000-tdep.c (rs6000_register_name): Update.
3602 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3603 (ns32k_register_name_32382): Update.
3604 * d10v-tdep.c (d10v_ts2_register_name): Update.
3605 (d10v_ts3_register_name): Update.
3606 * xstormy16-tdep.c (xstormy16_register_name): Update.
3607 * vax-tdep.c (vax_register_name): Update.
3608 * v850-tdep.c (v850_register_name): Update.
3609 * m68hc11-tdep.c (m68hc11_register_name): Update.
3610 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3611 (am33_register_name): Update.
3612
ea1e7ef6
GS
36132002-06-17 Grace Sainsbury <graces@redhat.com>
3614
3615 * m68k-tdep.c: Reindented.
3616
9b02dd1b
AC
36172002-06-17 Andrew Cagney <ac131313@redhat.com>
3618
3619 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3620 list of predefined types.
3621
8758dec1
MK
36222002-06-16 Mark Kettenis <kettenis@gnu.org>
3623
b6197528
MK
3624 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3625 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3626 REGISTER_CONVERT_TO_RAW): Remove defines.
3627 (i386_register_virtual_type, i386_register_convertible,
3628 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3629 Remove prototypes.
3630 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3631 macros mentioned above.
3632
82b47e62
MK
3633 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3634 (i386lynx_saved_pc_after_call): Remove prototype.
3635 * i386ly-tdep.c: Include "i386-tdep.h".
3636 (i386lynx_saved_pc_after_call): Make static. Use
3637 read_memory_nobpt instead of read_memory. Use
3638 read_memory_unsigned_integer instead of read_memory_integer.
3639 (i386lynx_init_abi): New function.
3640 (i386lynx_coff_osabi_sniffer): New function.
3641 (_initialize_i386bsd_tdep): New function.
3642
8758dec1
MK
3643 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3644 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3645 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3646 (i386_fix_call_dummy): Remove prototype.
3647 * i386-tdep.c (i386_call_dummy_words): New variable.
3648 (i386_gdbarch_init): Adjust for removal of the
3649 macros mentioned above.
3650
e9e68a56
AC
36512002-06-15 Andrew Cagney <ac131313@redhat.com>
3652
3653 * command.h (add_setshow_auto_boolean_cmd): Replace
3654 add_set_auto_boolean_cmd.
3655 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3656 add_set_auto_boolean_cmd.
3657 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3658 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3659 mask-address'' command.
3660 (show_mask_address): Add cmd parameter.
3661 * remote.c (add_packet_config_cmd): Update. Change type of
3662 set_func and show_func to cmd_sfunc_ftype.
3663 (_initialize_remote): Update `set remote Z-packet'
3664 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3665 (show_remote_protocol_e_packet_cmd): Ditto.
3666 (show_remote_protocol_E_packet_cmd): Ditto.
3667 (show_remote_protocol_P_packet_cmd): Ditto.
3668 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3669 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3670 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3671 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3672 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3673 (show_remote_protocol_Z_packet_cmd): Ditto.
3674 (show_remote_protocol_binary_download_cmd): Ditto.
3675 (show_remote_cmd): Pass NULL to all of above.
3676
fc08ec52
MK
36772002-06-15 Mark Kettenis <kettenis@gnu.org>
3678
3679 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3680 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3681 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3682 POP_FRAME): Remove defines.
3683 (i386_push_arguments, i386_store_struct_return,
3684 i386_extract_return_value, i386_store_return_value,
3685 i386_extract_struct_value_address, i386_push_dummy_frame,
3686 i386_pop_frame): Renove prototypes.
3687 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3688 macros mentioned above.
3689
e707bbc2
AC
36902002-06-15 Andrew Cagney <ac131313@redhat.com>
3691
3692 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3693 add_set_boolean_cmd.
3694 (add_setshow_cmd): New function.
3695 * command.h (add_setshow_boolean_cmd): Replace
3696 add_set_boolean_cmd.
3697 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3698 and ``set rdiromatzero''.
3699 * maint.c (_initialize_maint_cmds): Update commented out code.
3700 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3701 * target.c (initialize_targets): Update `set
3702 trust-readonly-sections'.
3703 * remote.c (_initialize_remote): Update `set remotebreak'.
3704
42fdc8df
MK
37052002-06-15 Mark Kettenis <kettenis@gnu.org>
3706
93924b6b
MK
3707 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3708 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3709 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3710 fit into multi-arch framework.
3711 (i386_breakpoint_from_pc): New function.
3712 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3713 above.
3714
42fdc8df
MK
3715 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3716 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3717 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3718 (i386_frameless_function_invocation, i386_frame_num_args,
3719 i386_frame_init_saved_regs): Remove prototypes.
3720 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3721 macros mentioned above.
3722
9773a94b
AC
37232002-06-15 Andrew Cagney <ac131313@redhat.com>
3724
3725 * cli/cli-decode.c (set_cmd_cfunc): Update.
3726 (set_cmd_sfunc): Update.
3727 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3728 (set_cmd_sfunc, set_cmd_cfunc): Update.
3729 * cli/cli-decode.h: Update.
3730
6e157172
MK
37312002-06-15 Mark Kettenis <kettenis@gnu.org>
3732
3733 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3734 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3735
7f19b9a2
AC
37362002-06-15 Andrew Cagney <ac131313@redhat.com>
3737
3738 * defs.h (auto_boolean): Declare enum.
3739 * command.h (cmd_auto_boolean): Delete enum.
3740 * mips-tdep.c (mask_address_var): Update.
3741 (mips_mask_address_p): Update.
3742 (show_mask_address): Update.
3743 * remote.c (struct packet_config): Update.
3744 (update_packet_config): Update.
3745 (show_packet_config_cmd): Update.
3746 (packet_ok): Update.
3747 (add_packet_config_cmd): Update.
3748 (_initialize_remote):
3749 * command.h: Update.
3750 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3751 (do_setshow_command): Update.
3752 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3753 * cli/cli-decode.h: Update.
3754
1cf88de5
MK
37552002-06-15 Mark Kettenis <kettenis@gnu.org>
3756
22ba8cf2
MK
3757 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3758 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3759 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3760 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3761 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3762 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3763
762c5349
MK
3764 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3765 list of DJGPP COFF targets.
3766
091198bb
MK
3767 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3768 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3769 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3770 (FP0_REGNUM): Remove define.
3771 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3772 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3773 (i386_register_virtual_size): Remove protoype.
3774 * i386-tdep.c (i386_register_virtual_size): Removed.
3775 (i386_extract_return_value, i386_store_return_value): Use
3776 FP0_REGNUM instead of NUM_FREGS to determine whether the
3777 floating-point registers are available.
3778 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3779 Adjust for removal of macros mentioned above.
3780
37812002-06-15 Mark Kettenis <kettenis@gnu.org>
3782
fcc9bf01
MK
3783 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3784 comments.
3785 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3786 Remove prototypes.
3787 (supply_gregset, fill_gregset): Remove use of register keyword and
3788 remove declaration for regmap. Use I386_NUM_GREGS instead of
3789 NUM_REGS and NUM_FREGS.
3790 (FPREGSET_FSAVE_OFFSET): Remove.
3791 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3792 NUM_FREGS to determine whether the floating-point registers are
3793 available.
3794
65e78234
MK
3795 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3796 gnu_store_registers): Replace usage of NUM_GREGS with
3797 I386_NUM_GREGS.
3798
98df6387
MK
3799 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3800 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3801 usage of NUM_GREGS with I386_NUM_GREGS.
3802
099a9414
MK
3803 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3804
57976e88
MK
3805 * i386bsd-nat.c: Include "i386-tdep.h".
3806 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3807 I386_NUM_GREGS.
3808
b335f4a6
MK
3809 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3810 and associated comment. They no longer make any sense, since we
3811 don't use this file anymore on Linux.
3812
1cf88de5
MK
3813 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3814 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3815 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3816 elements in these arrays.
3817 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3818 MAX_NUM_REGS.
3819
daa66587
MK
38202002-06-15 Mark Kettenis <kettenis@gnu.org>
3821
3822 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3823 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3824
26e9b323
AC
38252002-06-14 Andrew Cagney <cagney@redhat.com>
3826
3827 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3828 EXTRACT_RETURN_VALUE.
3829 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3830 EXTRACT_STRUCT_VALUE_ADDRESS.
3831 * gdbarch.h, gdbarch.c: Regenerate.
3832
3833 * values.c (value_being_returned): Handle
3834 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3835 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3836
3837 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3838 * arm-tdep.c (arm_gdbarch_init): Update.
3839 * avr-tdep.c (avr_gdbarch_init): Update.
3840 * cris-tdep.c (cris_gdbarch_init): Update.
3841 * d10v-tdep.c (d10v_gdbarch_init): Update.
3842 * ia64-tdep.c (ia64_gdbarch_init): Update.
3843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3844 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3845 * s390-tdep.c (s390_gdbarch_init): Update.
3846 * sh-tdep.c (sh_gdbarch_init): Update.
3847 * s390-tdep.c (s390_gdbarch_init): Update.
3848 * sparc-tdep.c (sparc_gdbarch_init): Update.
3849 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3850 * v850-tdep.c (v850_gdbarch_init): Update.
3851 * vax-tdep.c (vax_gdbarch_init): Update.
3852 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3854
3855 * config/arc/tm-arc.h: Update.
3856 * config/d30v/tm-d30v.h: Update.
3857 * config/fr30/tm-fr30.h: Update.
3858 * config/h8300/tm-h8300.h: Update.
3859 * config/h8500/tm-h8500.h: Update.
3860 * config/i386/tm-i386.h: Update.
3861 * config/i386/tm-ptx.h: Update.
3862 * config/i386/tm-symmetry.h: Update.
3863 * config/i960/tm-i960.h: Update.
3864 * config/m32r/tm-m32r.h: Update.
3865 * config/m68k/tm-delta68.h: Update.
3866 * config/m68k/tm-linux.h: Update.
3867 * config/m68k/tm-m68k.h: Update.
3868 * config/m88k/tm-m88k.h: Update.
3869 * config/mcore/tm-mcore.h: Update.
3870 * config/mips/tm-mips.h: Update.
3871 * config/mn10200/tm-mn10200.h: Update.
3872 * config/pa/tm-hppa.h: Update.
3873 * config/pa/tm-hppa64.h: Update.
3874 * config/sparc/tm-sp64.h: Update.
3875 * config/sparc/tm-sparc.h: Update.
3876 * config/sparc/tm-sparclet.h: Update.
3877 * config/z8k/tm-z8k.h: Update.
3878
5179e78f
AC
38792002-06-14 Andrew Cagney <cagney@redhat.com>
3880
3881 * Makefile.in (i386_linux_tdep_h): Define.
3882 (i386_tdep_h, i387_tdep_h): Define.
3883 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3884 $(i386_tdep_h) and $(i387_tdep_h).
3885 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3886
8201327c
MK
38872002-06-14 Mark Kettenis <kettenis@gnu.org>
3888
edf393ac
MK
3889 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3890 Already covered by the default.
3891
896fb97d
MK
3892 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3893 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3894 (i386_gdbarch_init): Initialize long_double_format and long_double
3895 bit.
3896
8201327c
MK
3897 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3898 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3899 Move these to ...
3900 * config/i386/i386sol2.mh: ... here.
3901 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3902 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3903 (SIGCONTEXT_PC_OFFSET): Remove define.
3904 (IN_SIGTRAMP): Remove define.
3905 * i386-sol2-tdep.c: New file.
3906
3907 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3908 * config/i386/tm-i386nw.h: Removed.
3909
3910 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3911 USE_STRUCT_CONVENTION): Remove defines.
3912 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3913 (get_longjmp_target): Remove prototype.
3914 (IN_SIGTRAMP): Remove define.
3915 (i386bsd_in_sigtramp): Remove prototype.
3916 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3917 function. Update comment accordingly
3918 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3919 (FRAME_SAVED_PC): Remove define.
3920 (i386bsd_frame_saved_pc): Remove prototype.
3921 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3922 GET_LONGJMP_TARGET): Remove defines.
3923 (get_longjmp_target): Remove prototype.
3924 (IN_SIGTRAMP): Remove define.
3925 (i386bsd_in_sigtramp): Remove prototype.
3926 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3927 function. Update comment accordingly
3928 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3929 (FRAME_SAVED_PC): Remove define.
3930 (i386bsd_frame_saved_pc): Remove prototype.
3931 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3932 Remove prototype.
3933 (USE_STRUCT_CONVENTION): Remove prototype.
3934 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3935 declaration.
3936 (_initialize_i386bsd_nat): Revise logic to determine some
3937 constants at compile time when compiling a native GDB. Warn if
3938 things don't match up with what we expect.
3939 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3940 Remove variables.
3941 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3942 to use date stored in `struct gdbarch_tdep'.
3943 (i386bsd_sigcontext_offset): Remove varaible.
3944 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3945 stored in `struct gdbarch_tdep'.
3946 (i386bsd_frame_saved_pc): Make static.
3947 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3948 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3949 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3950 i386fbsd4_sc_pc_offset): New variables.
3951 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3952 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3953 functions.
3954 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3955 functions.
3956 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3957 Modify the value of i386fbsd_sigtramp_start and
3958 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3959 i386fbsd_sigtramp_end.
3960 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3961 function.
3962
3963 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3964 define to i386-linux-tdep.h.
3965 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3966 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3967 defines.
3968 (i386_linux_register_name, i386_linux_register_byte,
3969 i386_linux_register_raw_size): Remove prototypes.
3970 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3971 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3972 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3973 TARGET_WRITE_PC): Remove defines.
3974 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3975 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3976 i386_linux_write_pc): Remove prototypes.
3977 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3978 (get_longjmp_target): Remove prototype.
3979 * i386-linux-tdep.h: New file.
3980 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3981 * i386-linux-tdep.c: Include "i386-tdep.h" and
3982 "i386-linux-tdep.h".
3983 (i386_linux_register_name, i386_linux_register_byte,
3984 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3985 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3986 Make static.
3987 (i386_linux_init_abi): New function.
3988 (_initialize_i386_linux_tdep): New function.
3989
3990 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3991 (i386_saved_pc_after_call): Remove prototype.
3992 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3993 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3994 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3995 (i386_register_name, i386_stab_reg_to_regnum,
3996 i386_dwarf_reg_to_regnum): Remove prototypes.
3997 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3998 SIZEOF_SSE_REGS): Remove defines.
3999 (REGISTER_BYTES): Remove define.
4000 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4001 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4002 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4003 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4004 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4005 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4006 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4007 (get_longjmp_target): Remove prototype.
4008 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4009 (sigtramp_saved_pc): Remove define.
4010 (i386v4_sigtramp_saved_pc): Remove prototype.
4011 * config/i386/tm-go32.h (FRAME_CHAIN,
4012 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4013 (i386go32_frame_saved_pc): Remove prototype.
4014 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4015 (get_longjmp_target): Remove prototype.
4016 * i386-tdep.h: Include "osabi.h".
4017 (enum i386_abi): Removed.
4018 (enum struct_return): New enum.
4019 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4020 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4021 sc_pc_offset members.
4022 (i386_gdbarch_register_os_abi): Remove prototype.
4023 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4024 I386_SSE_NUM_REGS): New defines.
4025 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4026 I386_SSE_SIZEOF_REGS): New defines.
4027 (i386_register_name, i386_register_byte, i386_register_raw_size):
4028 New prototypes.
4029 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4030 (i386bsd_sigtramp_saved_pc): New prototype.
4031 * i386-tdep.c: Don't include "elf-bfd.h".
4032 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4033 i386_frame_chain, i386_saved_pc_after_call): Make static.
4034 (i386_frame_saved_pc): Rewrite to call architecture dependent
4035 function to deal with signal handlers. Make static.
4036 (i386go32_frame_saved_pc): Removed.
4037 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4038 Removed.
4039 (i386_get_longjmp_target): New function.
4040 (default_struct_convention, pcc_struct_convention,
4041 reg_struct_convention, valid_conventions, struct_convention): New
4042 variables.
4043 (i386_use_struct_convention): New function.
4044 (i386v4_sigtramp_saved_pc): Renamed to
4045 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4046 (i386_pc_in_sigtramp): New function.
4047 (i386_abi_names): Removed.
4048 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4049 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4050 Removed.
4051 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4052 i386_gdbarch_register_os_abi): Removed.
4053 (struct i386_abi_handler): Removed.
4054 (i386_abi_handler_list): Removed.
4055 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4056 functions.
4057 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4058 i386_nw_init_abi): New functions.
4059 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4060 Use set_gdbarch_xxx() calls instead of relying on macros for a
4061 number of calls.
4062 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4063 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4064 Register the various architecture variants defined in this file.
4065
ad2f7632
DJ
40662002-06-14 Daniel Jacobowitz <drow@mvista.com>
4067
4068 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4069 (struct main_type): Remove arg_types member. Update comments for
4070 struct field.
4071 (TYPE_ARG_TYPES): Remove.
4072 (TYPE_FN_FIELD_ARGS): Update.
4073 (smash_to_method_type): Update prototype.
4074
4075 * c-typeprint.c (cp_type_print_method_args): Take method type
4076 instead of argument list. Use new argument layout. Simplify.
4077 (c_type_print_args): Use new argument layout. Simplify.
4078 (c_type_print_base): Update call to cp_type_print_method_args.
4079 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4080 argument; use die->type instead. Update call to
4081 smash_to_method_type.
4082 (read_structure_scope): Update call to dwarf2_add_member_fn.
4083 * gdbtypes.c (allocate_stub_method): Update comment.
4084 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4085 Use new argument layout.
4086 (check_stub_method): Use new argument layout. Don't count
4087 void as an argument.
4088 (print_arg_types): Update comments. Use new argument layout.
4089 (recursive_dump_type): Don't print arg_types member.
4090 * hpread.c (hpread_read_struct_type): Use new argument layout.
4091 (fixup_class_method_type): Likewise.
4092 (hpread_type_lookup): Likewise.
4093 * stabsread.c (read_type): Update calls to read_args and
4094 smash_to_method_type.
4095 (read_args): Use new argument layout. Simplify.
4096 * valops.c (typecmp): Use new argument layout. Update parameters
4097 and comments. Simplify.
4098 (hand_function_call): Use new argument layout.
4099 (search_struct_method): Update call to typecmp.
4100 (find_overload_match): Use new argument layout.
4101
6da02953
DJ
41022002-06-13 Daniel Jacobowitz <drow@mvista.com>
4103
4104 * NEWS: Mention multithreaded debug support for gdbserver.
4105
519b2366
DJ
41062002-06-13 Daniel Jacobowitz <drow@mvista.com>
4107
4108 * MAINTAINERS: Mention NEWS.
4109
6c0d6680
DJ
41102002-06-13 Daniel Jacobowitz <drow@mvista.com>
4111
4112 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4113 (struct mips_objfile_private, compare_pdr_entries): New.
4114 (non_heuristic_proc_desc): Read the ".pdr" section if it
4115 is present.
4116
6529d2dd
AC
41172002-06-12 Andrew Cagney <ac131313@redhat.com>
4118
4119 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4120 (arm_debug): New static variable.
4121 (_initialize_arm_tdep): Add ``set debug arm'' command.
4122
26216b98
AC
41232002-06-12 Andrew Cagney <ac131313@redhat.com>
4124
4125 * Makefile.in (sim_arm_h): Define.
4126 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4127 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4128 (arm_register_sim_regno): New function, map an internal REGNUM
4129 onto a simulator register number.
4130 (arm_gdbarch_init): Set register_sim_regno.
4131
814b3ba0
AH
41322002-06-09 Aldy Hernandez <aldyh@redhat.com>
4133
4134 * MAINTAINERS: Add self.
4135
475b0867
JB
41362002-06-11 Jim Blandy <jimb@redhat.com>
4137
919d772c
JB
4138 * source.c (source_info): Mention whether the symtab has
4139 information about preprocessor macros.
4140
475b0867
JB
4141 Call the command `info macro', not `show macro'.
4142 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4143 Fix error message.
4144 (_initialize_macrocmd): Register `info_macro_command' in
4145 `infolist', not `showlist'.
4146
9e364162
DJ
41472002-06-11 Daniel Jacobowitz <drow@mvista.com>
4148
4149 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4150 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4151 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4152 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4153 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4154 unconditionally.
4155 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4156 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4157 (_initialize_mips_tdep): Remove dead code.
4158 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4159 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4160 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4161 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4162 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4163 MIPS_LAST_FP_ARG_REGNUM): Remove.
4164
23aa4c72
ML
41652002-06-11 Michal Ludvig <mludvig@suse.cz>
4166
4167 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4168 (unwind_tmp_obstack_free, parse_frame_info)
4169 (update_context, cfi_read_fp, cfi_write_fp)
4170 (cfi_frame_chain, cfi_init_extra_frame_info)
4171 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4172 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4173
70eb15a4
CV
41742002-06-11 Corinna Vinschen <vinschen@redhat.com>
4175
4176 * v850-tdep.c (v850_type_is_scalar): New function.
4177 (v850_use_struct_convention): Match current gcc implementation
4178 as close as possible.
4179 (v850_push_arguments): Fix stack_offset handling. Don't write
4180 struct_addr into register. This is done by v850_store_struct_return.
4181 (v850_extract_return_value): Care for structs.
4182 (v850_store_return_value): Ditto.
4183 (v850_store_struct_return): Actually write address.
4184
482a4d06
ML
41852002-06-11 Michal Ludvig <mludvig@suse.cz>
4186
4187 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4188 without debug information too.
4189
d855c300
AC
41902002-06-10 Andrew Cagney <ac131313@redhat.com>
4191
4192 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4193 Make multi-arch pure.
4194 * gdbarch.h, gdbarch.c: Re-generate.
4195 * arm-tdep.c (arm_print_float_info): Update.
4196 * arch-utils.h (default_print_float_info): Update.
4197 * arch-utils.c (default_print_float_info): Update.
4198 * infcmd.c (float_info): Update call.
4199
dd12a101
AC
42002002-06-10 Andrew Cagney <ac131313@redhat.com>
4201
4202 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4203 the front of the initialize list.
4204
101dcfbe
AC
42052002-06-10 Andrew Cagney <ac131313@redhat.com>
4206
4207 * infrun.c (struct inferior_status): Replace fields
4208 selected_frame_address and selected_level with field
4209 selected_frame_id.
4210 (save_inferior_status): Update. Use get_frame_id.
4211 (struct restore_selected_frame_args): Delete.
4212 (restore_selected_frame): Update. Use frame_find_by_id.
4213 (restore_inferior_status): Update.
4214
4215 * breakpoint.h (struct breakpoint): Change type of
4216 watchpoint_frame to frame_id.
4217 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4218 call to get_current_frame.
4219 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4220 get_current_frame.
4221 (watchpoint_check): Use frame_find_by_id.
4222
4223 * frame.h (record_selected_frame): Delete declaration.
4224 * stack.c (record_selected_frame): Delete function.
4225
4226 * frame.h (struct frame_id): Define.
4227 (get_frame_id): Declare.
4228 (frame_find_by_id): Declare.
4229 * frame.c (frame_find_by_id): New function.
4230 (get_frame_id): New function.
4231
304270b6
AV
42322002-06-10 Andrey Volkov <avolkov@transas.com>
4233
4234 * ser-e7kpc.c: Fix duplicated define and call of
4235 _initialize_ser_e7000pc
4236
2f2cf184
DJ
42372002-06-09 Daniel Jacobowitz <drow@mvista.com>
4238
4239 * signals/signals.c (target_signal_from_host): Fix #ifdef
4240 SIGRTMIN case.
4241 (do_target_signal_to_host): Likewise.
4242
caaa3122
DJ
42432002-06-09 Daniel Jacobowitz <drow@mvista.com>
4244
4245 * mips-tdep.c (mips_find_abi_section): New function.
4246 (mips_gdbarch_init): Call it.
4247
6ac5df3a
MK
42482002-06-09 Mark Kettenis <kettenis@gnu.org>
4249
4250 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4251 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4252 after Andrew's 2002-06-08 gdbarch change.
4253
82ea117a
MK
42542002-06-09 Mark Kettenis <kettenis@gnu.org>
4255
4256 * i386-linux-nat.c (suppy_gregset): Don't supply
4257 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4258 register cache.
4259 (fill_gregset): Don't fetch it under the same circumstances.
4260
3c25f8c7
AC
42612002-06-09 Andrew Cagney <cagney@redhat.com>
4262
4263 * Makefile.in (callback_h): Define.
4264 (remote_sim_h): Update path to remote-sim.h.
4265 (remote-rdp.o): Add $(callback_h).
4266 (remote-sim.o): Use $(callback_h).
4267 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4268 * remote-rdp.c: Include "gdb/callback.h".
4269
1029b7fa
MK
42702002-06-09 Mark Kettenis <kettenis@gnu.org>
4271
4272 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4273 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4274
616675d3
AC
42752002-06-08 Andrew Cagney <ac131313@redhat.com>
4276
a3efda28
AC
4277 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4278 * rdi-share/serpardr.c: Ditto.
4279 * rdi-share/unixcomm.c: Ditto.
4280 * rdi-share/serdrv.c: Ditto.
4281 * rdi-share/hostchan.h: Ditto.
4282 * rdi-share/hostchan.c: Ditto.
4283 * rdi-share/host.h: Ditto.
4284 * rdi-share/devsw.c: Ditto.
4285
c5f10366
AC
4286 * objfiles.h: Change type of obj_private to void pointer.
4287 * pa64solib.c: Update copyright. Don't include "assert.h", use
4288 strcmp instead of STREQ, use LONGEST, do not use PTR
4289 * somsolib.c: Ditto.
4290
616675d3
AC
4291 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4292 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4293 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4294
e4b415d9
AC
42952002-06-08 Andrew Cagney <ac131313@redhat.com>
4296
4297 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4298 (default_get_saved_register): Delete function.
4299 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4300 generic_unwind_get_saved_register.
4301 * gdbarch.h, gdbarch.c: Re-generate.
4302
ca0d0b52
AC
43032002-06-08 Andrew Cagney <ac131313@redhat.com>
4304
4305 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4306 generic_func_frame_chain_valid.
4307 * gdbarch.h, gdbarch.c: Re-generate.
4308 * blockframe.c (generic_func_frame_chain_valid): Only check
4309 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4310 passing FP to PC_IN_CALL_DUMMY.
4311 Fix PR gdb/360.
4312
76860b5f
AC
43132002-06-08 Andrew Cagney <ac131313@redhat.com>
4314
4315 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4316 (register_gdbarch_data): Initialize init_p.
4317 (gdbarch_data): Initialize data pointer using the init function.
4318 (init_gdbarch_data): Delete function.
4319 (gdbarch_update_p): Update.
4320 (initialize_non_multiarch): Update.
4321 (struct gdbarch): Add field initialized_p.
4322 * gdbarch.h, gdbarch.c: Re-generate.
4323
8dda9770
ML
43242002-06-07 Michal Ludvig <mludvig@suse.cz>
4325
4326 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4327 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4328 better do the things actually here.
4329 * x86-64-tdep.c (x86_64_register_name2nr): New.
4330 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4331 (x86_64_gdbarch_init): Respect the above change.
4332 * x86-64-tdep.h (x86_64_register_name2nr)
4333 (x86_64_register_nr2name): Add prototypes.
4334 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4335
3d79a47c
MS
43362002-06-06 Michael Snyder <msnyder@redhat.com>
4337
7bd91a28
MS
4338 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4339 Delete extra braces and re-indent.
4340 (d10v_store_return_value): Char return values
3d79a47c
MS
4341 must be shifted over by one byte in R0.
4342 (d10v_extract_return_value): Delete extra braces, re-indent.
4343
095a4c96
EZ
43442002-06-06 Elena Zannoni <ezannoni@redhat.com>
4345
4346 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4347 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4348 (d10v_integer_to_address): Rewrite.
4349 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4350 the d10v specific functions which take care of converting to the
4351 correct space.
4352
e8a77ca4
EZ
43532002-06-06 Elena Zannoni <ezannoni@redhat.com>
4354
4355 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4356 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4357
4f2e4a4f
AC
43582002-06-02 Andrew Cagney <ac131313@redhat.com>
4359
4360 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4361 includes.
4362 * config/tm-linux.h: Ditto.
4363 * config/alpha/tm-alphalinux.h: Ditto.
4364 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4365 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4366 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4367 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4368 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4369 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4370 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4371 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4372 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4373 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4374 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4375 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4376 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4377 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4378 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4379 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4380 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4381 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4382 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4383 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4384 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4385 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4386 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4387 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4388 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4389 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4390 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4391 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4392 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4393 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4394 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4395 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4396 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4397 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4398 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4399 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4400 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4401
ae2ab2ce
AS
44022002-05-04 Aidan Skinner <aidan@velvet.net>
4403
4404 * ada-exp.tab.c: New file
4405 * ada-exp.y: New file
4406 * ada-lang.c: New file
4407 * ada-lang.h: New file
4408 * ada-lex.c: New file
4409 * ada-lex.l: New file
4410 * ada-tasks.c: New file
4411 * ada-typeprint.c: New file
4412 * ada-valprint.c: New file
4413
0ddd0135
JT
44142002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4415
4416 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4417 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4418
750fbacc
JT
44192002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4420
4421 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4422 insetead of ppc-linux-tdep.o.
4423 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4424 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4425
df94e18a
AC
44262002-06-02 Andrew Cagney <ac131313@redhat.com>
4427
4428 2002-05-07 Christian Groessler <chris@groessler.org>
4429 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4430 bit register contents for little endian hosts.
4431
1a38ab75
AC
44322002-06-01 Andrew Cagney <ac131313@redhat.com>
4433
4434 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4435 any maintainer.
4436
8b1632ac
AC
44372002-06-01 Andrew Cagney <ac131313@redhat.com>
4438
4439 * gdbarch.h: Regenerate.
4440
627054c8
AC
44412002-06-01 Andrew Cagney <ac131313@redhat.com>
4442
4443 * MAINTAINERS: Add everyone to write-after-approval list.
4444
4f460812
AC
44452002-06-01 Andrew Cagney <ac131313@redhat.com>
4446
4447 * stack.c (frame_info): Use frame_register_unwind instead of
4448 saved_regs. Mention when the SP is on the stack or in a register.
4449
4450 * frame.h (frame_register_unwind_ftype): Define. Document.
4451 (struct frame_info): Add field register_unwind and
4452 register_unwind_cache.
4453 (frame_register_unwind): Declare.
4454 (generic_unwind_get_saved_register): Declare.
4455
4456 * frame.c (frame_register_unwind): New function.
4457 (generic_unwind_get_saved_register): New function.
4458
4459 * blockframe.c (generic_call_dummy_register_unwind): New function.
4460 (frame_saved_regs_register_unwind): New function.
4461 (set_unwind_by_pc): New function.
4462 (create_new_frame): New function.
4463 (get_prev_frame): New function.
4464
de888f76
AC
44652002-05-30 Andrew Cagney <ac131313@redhat.com>
4466
4467 * a29k-share/: Delete directory.
4468 * remote-vx29k.c: Delete file.
4469
2f2c3626
JT
44702002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4471
4472 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4473 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4474
9ce5c36a
JT
44752002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4476
4477 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4478 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4479 (sparc64nbsd-nat.o)
4480 (sparcnbsd-nat.o)
4481 (sparcnbsd-tdep.o): New dependency lists.
4482 * NEWS: Note new UltraSPARC NetBSD native configuration.
4483 * configure.host (sparc64-*-netbsd*): New host.
4484 * configure.tgt (sparc-*-netbsdelf*)
4485 (sparc-*-netbsd*): Set gdb_target to nbsd.
4486 (sparc64-*-netbsd*): New target.
4487 * sparc64nbsd-nat.c: New file.
4488 * sparcnbsd-nat.c: New file.
4489 * sparcnbsd-tdep.c: New file.
4490 * sparcnbsd-tdep.h: New file.
4491 * config/sparc/nbsd.mt: New file.
4492 * config/sparc/nbsd64.mh: New file.
4493 * config/sparc/nbsd64.mt: New file.
4494 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4495 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4496 (HOST_IPC): Remove.
4497 * config/sparc/nbsdaout.mt: Remove.
4498 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4499 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4500 (HOST_IPC): Remove.
4501 * config/sparc/nbsdelf.mt: Remove.
4502 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4503 sparc-nat.c compatiblity defines.
4504 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4505 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4506 * config/sparc/tm-nbsd64.h: New file.
4507 * config/sparc/tm-nbsdaout.h: Remove.
4508 * config/sparc/xm-nbsd.h: Remove.
4509
ef3cf062
JT
45102002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4511
4512 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4513 * sparc-tdep.c: Include osabi.h.
4514 (gdbarch_tdep): Add osabi member.
4515 (_initialize_sparc_tdep): Use gdbarch_register.
4516 (sparc_gdbarch_init): Use generic OS ABI framework.
4517 (sparc_dump_tdep): New function.
4518
ee8ff470
KB
45192002-05-30 Kevin Buettner <kevinb@redhat.com>
4520
4521 * corefile.c (do_captured_read_memory_integer): Return non-zero
4522 result.
4523 (safe_read_memory_integer): Copy result of memory read when
4524 status is non-zero. Also, add comments.
4525
7b112f9c
JT
45262002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4527
4528 * Makefile.in (ppc_tdep_h): Define.
4529 (ppc-linux-nat.o)
4530 (ppc-linux-tdep.o)
4531 (rs6000-tdep.o): Use $(ppc_tdep_h).
4532 (ppc-sysv-tdep.o)
4533 (ppcnbsd-nat.o)
4534 (ppcnbsd-tdep.o): New dependency lists.
4535 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4536 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4537 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4538 (ppc_sysv_abi_broken_use_struct_convention)
4539 (ppc_sysv_abi_use_struct_convention)
4540 (ppc_sysv_abi_push_arguments): Move to...
4541 * ppc-sysv-tdep.c: ...here.
4542 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4543 * rs6000-tdep.c (process_note_abi_tag_sections)
4544 (get_elfosabi): Remove.
4545 (rs6000_gdbarch_init): Use generic OS ABI framework.
4546 (rs6000_dump_tdep): New function.
4547 (_initialize_rs6000_tdep): Use gdbarch_register.
4548 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4549 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4550 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4551 of ppc-linux-tdep.o.
4552 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4553 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4554 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4555 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4556 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4557 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4558
480dd42a
JB
45592002-05-29 Jim Blandy <jimb@redhat.com>
4560
4561 * macroscope.c (default_macro_scope): Put `void' in empty argument
4562 list.
4563
4182591f
AC
45642002-05-29 Andrew Cagney <ac131313@redhat.com>
4565
4566 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4567 * arch-utils.c: Include "sim-regno.h".
4568 * gdbarch.sh: Don't include "sim-regno.h".
4569 * gdbarch.h, gdbarch.c: Regenerate.
4570 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4571 here.
4572 * arch-utils.h (legacy_register_sim_regno): To here.
4573 * remote-sim.c (legacy_register_sim_regno): Move function from
4574 here.
4575 * arch-utils.c (legacy_register_sim_regno): To here.
4576
8238d0bf
AC
45772002-05-28 Andrew Cagney <ac131313@redhat.com>
4578
4579 * sim-regno.h: New file.
4580 * Makefile.in (sim_regno_h): Define.
4581 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4582 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4583 (legacy_register_sim_regno): New function.
4584 (one2one_register_sim_regno): New function.
4585 (gdbsim_fetch_register): Rewrite.
4586 (gdbsim_store_register): Only store a register when
4587 REGISTER_SIM_REGNO is valid.
4588 * d10v-tdep.c: Include "sim-regno.h".
4589 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4590 (d10v_ts3_register_sim_regno): Ditto.
4591 * gdbarch.sh: Include "sim-regno.h".
4592 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4593 * gdbarch.h, gdbarch.c: Regenerate.
4594 * arch-utils.h (default_register_sim_regno): Delete declaration.
4595 * arch-utils.c (default_register_sim_regno): Delete function.
4596
485721b1
JT
45972002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4598
4599 * ppcnbsd-nat.c: Rewrite.
4600 * ppcnbsd-tdep.c: New file.
4601 * ppcnbsd-tdep.h: New file.
4602 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4603 solib.o, and solib-svr4.o.
4604 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4605 nbsd-tdep.o, and corelow.o.
4606
697f244d
AC
46072002-05-28 Andrew Cagney <ac131313@redhat.com>
4608
4609 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4610 `tr' and `sed'. Mention that `broken' targets are not expected to
4611 build.
4612
f08caad1 46132002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4614
4615 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4616 Let PC point right after the prologue before looking up symbols.
4617
3139facc
MH
46182002-05-27 Martin M. Hunt <hunt@redhat.com>
4619
4620 * i386-tdep.c (i386_register_virtual_type): Return
4621 builtin_type_vec128i for SSE registers.
4622
4623 * gdbtypes.h (builtin_type_vec128i): Declare.
4624
4625 * gdbtypes.c (build_builtin_type_vec128i): New function.
4626 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4627 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4628 (build_gdbtypes): Initialize new builtin vector types.
4629 (_initialize_gdbtypes): Register new vector types with gdbarch.
4630
6e3ba3b8
JT
46312002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4632
4633 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4634 since it has been multi-arch'd.
4635 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4636 Move Alpha and VAX multi-arch news entries to same section
4637 as other multi-arch news.
4638
93d5585d
JT
46392002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4640
4641 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4642 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4643 static. Rename some register numbers to put them in ns32k-tdep
4644 private namespace.
4645 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4646 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4647 functions.
4648 (_initialize_ns32k_tdep): Use gdbarch_register.
4649 * ns32k-tdep.h: New file.
4650 * ns32knbsd-tdep.c: New file.
4651 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4652 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4653 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4654 REGISTER_BYTES, REGISTER_BYTE): Remove.
4655 * config/ns32k/tm-ns32k.h: New file.
4656 * config/ns32k/tm-umax.h: Remove.
4657
efb2c70e
JT
46582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4659
4660 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4661 ns32k_store_struct_return, ns32k_extract_return_value,
4662 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4663 functions.
4664 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4665 ns32k_saved_pc_after_call.
4666 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4667 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4668 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4669 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4670 ns32k_extract_struct_value_address.
4671
7bcc927b
JT
46722002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4673
4674 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4675 ns32k_fix_call_dummy): New.
4676 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4677 ns32k_call_dummy_words.
4678 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4679 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4680 CALL_DUMMY_NARGS): Remove.
4681 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4682
78f9d765
JT
46832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4684
4685 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4686 ns32k_frame_saved_pc, ns32k_frame_args_address,
4687 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4688 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4689 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4690 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4691 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4692 (BREAKPOINT): Remove..
4693 (FRAME_CHAIN): Define as ns32k_frame_chain.
4694 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4695 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4696 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4697 (FRAME_FIND_SAVED_REGS): Remove.
4698 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4699 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4700 (POP_FRAME): Define as ns32k_pop_frame.
4701
f2c762e0
JT
47022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4703
4704 * ns32k-tdep.c (ns32k_register_byte_32082,
4705 ns32k_register_byte_32382, ns32k_register_raw_size,
4706 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4707 functions.
4708 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4709 ns32k_register_byte_32382.
4710 * config/ns32k/tm-umax.h: Update copyright years.
4711 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4712 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4713 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4714 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4715 (ns32k_get_enter_addr): Fix prototype.
4716
af137673
JT
47172002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4718
4719 * ns32k-tdep.c: Update copyright years.
4720 (ns32k_register_name_32082): New function.
4721 (ns32k_register_name_32382): Ditto.
4722 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4723 (REGISTER_NAME): Define as ns32k_register_name_32382.
4724 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4725 (REGISTER_NAME): Define as ns32k_register_name_32082.
4726
a8bc7b56
JB
47272002-05-24 Jim Blandy <jimb@redhat.com>
4728
4729 * dwarf2read.c (free_line_header): Use xfree, not free.
4730
83a45910
JT
47312002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4732
4733 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4734 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4735
0db71247
AC
47362002-05-23 Andrew Cagney <ac131313@redhat.com>
4737
4738 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4739
b9e5e4dd
AC
47402002-05-23 Andrew Cagney <ac131313@redhat.com>
4741
4742 From Ross Alexander at NEC Europe:
4743 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4744
de530e84
MS
47452002-05-23 Michael Snyder <msnyder@redhat.com>
4746
4747 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4748 for input, rather than parse_and_eval_address.
4749
b91b96f4
AC
47502002-05-23 Andrew Cagney <ac131313@redhat.com>
4751
4752 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4753 * Makefile.in (sim_d10v_h): Update definition.
4754
8b279e7a
AC
47552002-05-24 Andrew Cagney <cagney@redhat.com>
4756
4757 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4758 change `2002-05-22 Michael Snyder' below.
4759 (d10v_push_arguments): Ditto.
4760 (d10v_extract_return_value): Ditto.
4761
0a3d0425
JB
47622002-05-23 Jim Blandy <jimb@redhat.com>
4763
4764 * macrotab.c (check_for_redefinition): Don't complain if the new
4765 definition is the same as the previous one. Take more arguments
4766 to allow the comparison.
4767 (macro_define_object, macro_define_function): Pass more arguments
4768 to check_for_redefinition.
4769
78eac43e
MS
47702002-05-22 Michael Snyder <msnyder@redhat.com>
4771
4772 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4773 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4774 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4775 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4776 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4777 Add a temp variable to save a call (and a memory read).
4778 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4779 if possible (so that PC_IN_CALL_DUMMY will work).
4780
9bc1edb8
CV
47812002-05-22 Corinna Vinschen <vinschen@redhat.com>
4782
4783 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4784
005ef3d2
ML
47852002-05-22 Michal Ludvig <mludvig@suse.cz>
4786
4787 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4788 fde->cie_ptr.
4789 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4790 (dwarf2_build_frame_info): Add offset to fde->initial_location
4791 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4792 (execute_stack_op): Change type of 'result' from ULONGEST to
4793 CORE_ADDR.
005ef3d2 4794
fcf4f891
JT
47952002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4796
4797 * config/alpha/tm-nbsd.h: Include solib.h.
4798
cfef91e4
JT
47992002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4800
4801 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4802 assumptions about the host's byte order.
4803
9964235a
JT
48042002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4805
4806 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4807 to dependency list.
4808 * alphanbsd-tdep.c: Include solib-svr4.h.
4809 * shnbsd-tdep.c: Ditto.
4810
9eeef8ef
JT
48112002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4812
4813 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4814 nbsd-tdep.h to dependency list.
4815 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4816 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4817 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4818 nbsdaout.mh and nbsdelf.mh consistently.
4819 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4820 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4821 nbsdaout.mt and nbsdelf.mh consistently.
4822 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4823 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4824 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4825 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4826 a.out shared library stuff from here...
4827 * config/nm-nbsdaout.h: ...to here.
4828 * config/tm-nbsd.h: Remove.
4829 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4830 * config/arm/nbsd.mh: Remove.
4831 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4832 nbsd-tdep.o.
4833 * config/arm/nbsdaout.mh: New file.
4834 * config/arm/nbsdelf.mh: New file.
4835 * config/arm/nm-nbsdaout.h: New file.
4836 * config/i386/nbsd.mh: Remove.
4837 * config/i386/nbsd.mt: Remove.
4838 * config/i386/nbsdaout.mh: New file.
4839 * config/i386/nbsdaout.mt: New file.
4840 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4841 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4842 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4843 i386_register_u_addr): Remove.
4844 * config/i386/nm-nbsdaout.h: New file.
4845 * config/i386/nm-nbsdelf.h: Remove.
4846 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4847 (USE_STRUCT_CONVENTION): Remove.
4848 * config/i386/tm-nbsdaout.h: New file.
4849 * config/i386/tm-nbsdelf.h: Remove.
4850 * config/m68k/nbsd.mh: Remove.
4851 * config/m68k/nbsd.mt: Remove.
4852 * config/m68k/nbsdaout.mh: New file.
4853 * config/m68k/nbsdaout.mt: New file.
4854 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4855 * config/m68k/nm-nbsdaout.h: New file.
4856 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4857 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4858 * config/ns32k/nbsd.mh: Remove.
4859 * config/ns32k/nbsd.mt: Remove.
4860 * config/ns32k/nbsdaout.mh: New file.
4861 * config/ns32k/nbsdaout.mt: New file.
4862 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4863 * config/ns32k/nm-nbsdaout.h: New file.
4864 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4865 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4866 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4867 (SVR4_SHARED_LIBS): Remove.
4868 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4869 * config/sparc/nbsd.mh: Remove.
4870 * config/sparc/nbsd.mt: Remove.
4871 * config/sparc/nbsdaout.mh: New file.
4872 * config/sparc/nbsdaout.mt: New file.
4873 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4874 * config/sparc/nbsdelf.mt: New file.
4875 * config/sparc/nm-nbsdaout.h: New file.
4876 * config/sparc/nm-nbsdelf.h: Remove.
4877 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4878 * config/sparc/tm-nbsdaout.h: New file.
4879
257ce470
JT
48802002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4881
4882 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4883 mipsnbsd-tdep.c
4884 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4885
76a6d5fe
JT
48862002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4887
4888 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4889 shnbsd-nat.c.
4890 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4891
45888261
JT
48922002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4893
4894 * NEWS: Note new MIPS NetBSD native configuration.
4895 * configure.host (mips*-*-netbsd*): New host.
4896 * configure.tgt (mips*-*-netbsd*): New target.
4897 * mipsnbsd-nat.c: New file.
4898 * mipsnbsd-tdep.c: New file.
4899 * mipsnbsd-tdep.h: New file.
4900 * config/mips/nbsd.mh: New file.
4901 * config/mips/nbsd.mt: New file.
4902 * config/mips/nm-nbsd.h: New file.
4903 * config/mips/tm-nbsd.h: New file.
4904
70f80edf
JT
49052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4906
4907 * Makefile.in (SFILES): Add osabi.c.
4908 (COMMON_OBS): Add osabi.o.
4909 (osabi.o): New dependency list.
4910 * osabi.c: New file.
4911 * osabi.h: New file.
4912 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4913
4914 * Makefile.in (alpha_tdep_h): Define and use instead of
4915 alpha-tdep.h.
4916 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4917 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4918 Remove.
4919 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4920 * alpha-tdep.h: Include osabi.h.
4921 (alpha_abi): Remove.
4922 (gdbarch_tdep): Use generic OS ABI framework.
4923 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4924 gdbarch_register_osabi.
4925 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4926 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4927 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4928
4929 * Makefile.in (sh_tdep_h): Add osabi.h.
4930 * sh-tdep.h (sh_osabi): Remove.
4931 (gdbarch_tdep): Use generic OS ABI framework.
4932 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4933 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4934 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4935 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4936
4937 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4938 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4939 gdbarch_register_osabi.
4940 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4941 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4942 (get_elfosabi): Rename to...
4943 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4944 ABI framework support routines.
4945 (arm_gdbarch_init): Use generic OS ABI framework.
4946 (arm_dump_tdep): Likewise.
4947 (_initialize_arm_tdep): Likewise.
4948 * arm-tdep.h: Include osabi.h.
4949 (arm_abi): Remove.
4950 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4951 osabi member.
4952 (arm_gdbarch_register_os_abi): Remove prototype.
4953 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4954 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4955
4956 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4957 * mips-tdep.c: Include osabi.h.
4958 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4959 OS ABI framework.
4960
d194345b
KH
49612002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4962
4963 * h8300-tdep.c: Fix formatting.
4964
70c6b0d1
EZ
49652002-05-20 Elena Zannoni <ezannoni@redhat.com>
4966
4967 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4968 printing vector registers.
4969
165b8e33
AC
49702002-05-19 Andrew Cagney <ac131313@redhat.com>
4971
4972 From Fernando Nasser:
4973 * remote.c (remote_async_open_1): Re-throw the exception when the
4974 connection fails.
4975 (remote_cisco_open): Ditto.
4976 (remote_open_1): Ditto.
4977
36918e70
AC
49782002-05-19 Andrew Cagney <ac131313@redhat.com>
4979
4980 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4981 (remote_start_remote): Add uiout parameter. Pass through to
4982 remote_start_remote_dummy.
4983 (remote_open_1): Use catch_exception instead of catch_errors.
4984 (remote_async_open_1): Ditto.
4985 (remote_cisco_open): Ditto.
4986
ae44c0c4
AC
49872002-05-19 Andrew Cagney <ac131313@redhat.com>
4988
4989 * remote.c (remote_start_remote): Replace PTR with void pointer.
4990 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4991 static.
4992
8efe637d
AC
49932002-05-18 Andrew Cagney <ac131313@redhat.com>
4994
4995 * gdb_indent.sh: Allow the script to be run in the sim directory.
4996
2f1b5984
MK
49972002-05-18 Mark Kettenis <kettenis@gnu.org>
4998
f0f625e2
MK
4999 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5000 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5001
2f1b5984
MK
5002 * corelow.c (core_open): Only call set_gdbarch_from_file if
5003 exec_bfd is NULL.
5004
fc974602
AV
50052002-05-17 Andrey Volkov <avolkov@transas.com>
5006
5007 * h8300-tdep.c: Add support of EXR register
5008 * config/h8300/tm-h8300.h: Ditto.
5009
906709f4
AV
50102002-05-17 Andrey Volkov <avolkov@transas.com>
5011
5012 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5013
6e591d68
AV
50142002-05-17 Andrey Volkov <avolkov@transas.com>
5015
5016 * h8300-tdep.c: Change literal regnums to REGNO.
5017
84f0252a
JB
50182002-05-17 Jim Blandy <jimb@redhat.com>
5019
e0e9281e
JB
5020 * NEWS: Note addition of macro support.
5021
84f0252a
JB
5022 Expand preprocessor macros in C expressions.
5023 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5024 (scan_macro_expansion, scanning_macro_expansion,
5025 finished_macro_expansion): New function declarations.
5026 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5027 variable declarations.
5028 * parser-defs.h (expression_context_pc): New declaration.
5029 * parse.c (expression_context_pc): New variable.
5030 (parse_exp_1): Set expression_context_pc, as well as
5031 expression_context_block.
5032 * c-exp.y (yylex): If we're not already reading the result of a
5033 macro expansion, try to macro-expand the next token. When we're
5034 done scanning a macro expansion, switch back to the mainline text.
5035 Commas and `if's in a macro's expansion don't terminate the input.
5036 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5037 (macro_original_text, macro_expanded_text,
5038 expression_macro_lookup_func, expression_macro_lookup_baton): New
5039 variables.
5040 (scan_macro_expansion, scanning_macro_expansion,
5041 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5042 c_preprocess_and_parse): New functions.
5043 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5044 c_preprocess_and_parse, instead of c_parse.
5045 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5046 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5047
1c509ca8
JR
5048Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5049
5050 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5051 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5052 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5053
2250ee0c
CV
50542002-05-17 Corinna Vinschen <vinschen@redhat.com>
5055
5056 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5057
ab3b8126
JT
50582002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5059
5060 * Makefile.in (sh_tdep_h): Define and use.
5061 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5062 register enum): Move to...
5063 * * sh-tdep.h: ...here.
5064 * sh-tdep.c: Include sh-tdep.h.
5065 * sh3-rom.c: Likewise.
5066 * shnbsd-tdep.c: Likewise.
5067
ed9d4749
MS
50682002-05-16 Michael Snyder <msnyder@redhat.com>
5069
5070 * arm-tdep.c: Spelling fix in comment.
5071
2e276125
JB
50722002-05-16 Jim Blandy <jimb@redhat.com>
5073
6821892e
JB
5074 Add commands for manually expanding macros and showing their
5075 definitions.
5076 * macrocmd.c, macroscope.c, macroscope.h: New files.
5077 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5078 (macroscope_h): New variable.
5079 (HFILES_NO_SRCDIR): Add macroscope.h.
5080 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5081 (macroscope.o, macrocmd.o): New rules.
5082
2e276125
JB
5083 Teach the Dwarf 2 reader to read macro information.
5084 * dwarf2read.c: #include "macrotab.h".
5085 (dwarf_macinfo_buffer): New variable.
5086 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5087 dwarf_macinfo_size.
5088 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5089 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5090 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5091 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5092 dwarf2_macro_spaces_in_definition): New complaints.
5093 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5094 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5095 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5096 the partial symbol table.
5097 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5098 from what's recorded in the partial symbol table.
5099 (read_file_scope): If the compilation unit has a
5100 `DW_AT_macro_info' attribute, read its macro information.
5101 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5102
2f53fe6c
DJ
51032002-05-16 Daniel Jacobowitz <drow@mvista.com>
5104
5105 Fix PR gdb/546
5106 * ser-tcp.c: Don't include <netinet/udp.h>.
5107
2be99286
SC
51082002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5109
5110 * MAINTAINERS: Update my email address.
5111
c9af212b 51122002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5113
5114 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5115 include file of the same name.
5116
bf5f1a52
CV
51172002-05-16 Corinna Vinschen <vinschen@redhat.com>
5118
5119 * configure.tgt: Mark v850 as multi-arched.
5120 * config/v850/tm-v850.h: Remove file.
5121 * config/v850/v850.mt: Eliminate TM_FILE.
5122
435e042a
CV
51232002-05-16 Corinna Vinschen <vinschen@redhat.com>
5124
5125 * v850-tdep.c: Full multi-arch.
5126 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5127 Define GDB_MULTI_ARCH to 2.
5128
9819c6c8
PM
51292002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5130
5131 * p-exp.y (current_type): New static variable.
5132 Carries the type of the expression at the position that is parsed.
5133 (push_current_type, pop_current_type): Two new functions. Used
5134 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5135 (search_field): New static variable. Set to one after parsing a point
5136 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5137 (FIELDNAME): New token. After a point only a token belonging to
5138 current_type type definition is allowed.
5139 (all over token rules): reset and change current_type according
5140 to rules.
5141 (exp '[' rule): insert implicit array index field if
5142 exp is a pascal string type.
5143
3a06899a
CV
51442002-05-16 Corinna Vinschen <vinschen@redhat.com>
5145
5146 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5147 frame info. Use frame_info's saved_regs instead of matching member
5148 in extra_frame_info throughout.
5149 (v850_frame_init_saved_regs): New function.
5150 (v850_init_extra_frame_info): Move most functionality into
5151 v850_frame_init_saved_regs().
5152 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5153 (v850_frame_find_saved_regs): Remove declaration.
5154 (FRAME_FIND_SAVED_REGS): Remove definition.
5155 (v850_frame_init_saved_regs): Add declaration.
5156 (FRAME_INIT_SAVED_REGS): Add definition.
5157
6ed14b0e
CV
51582002-05-16 Corinna Vinschen <vinschen@redhat.com>
5159
5160 * v850-tdep.c: Begin multi-arch'ing v850.
5161 (v850_target_architecture_hook): Remove function.
5162 (v850_gdbarch_init): New function. Add code previously in
5163 v850_target_architecture_hook().
5164 (_initialize_v850_tdep): Don't set target_architecture_hook.
5165 Call register_gdbarch_init() instead.
5166
42725910
DJ
51672002-05-16 Daniel Jacobowitz <drow@mvista.com>
5168
5169 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5170 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5171 (fixup_class_method_type): Likewise.
5172
99d9066e
JB
51732002-05-15 Jim Blandy <jimb@redhat.com>
5174
5175 Add macro structures to GDB's symbol tables. Nobody puts anything
5176 in them yet.
5177 * symtab.h (struct symtab): New member: `macro_table'.
5178 * buildsym.h (pending_macros): New global variable.
5179 * buildsym.c: #include "macrotab.h".
5180 (buildsym_init): Initialize `pending_macros'.
5181 (end_symtab): If we found macro information while reading a CU's
5182 debugging info, do build a symtab structure for it. Make the
5183 symtab point to the macro information, and clear the
5184 `pending_macros' pointer which held it while we were reading the
5185 debug info.
5186 (really_free_pendings): Free any pending macro table.
5187 * objfiles.h (struct objfile): New member: `macro_cache'.
5188 * objfiles.c (allocate_objfile): Set allocate and free functions
5189 for the macro cache's objstack.
5190 (free_objfile): Empty the macro cache's obstack.
5191 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5192 set new allocate and free functions for it.
5193 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5194 free functions for the macro cache's objstack. (Why is this
5195 function building its own objfile?)
5196 * symmisc.c (print_objfile_statistics): Print statistics on the
5197 macro bcache.
5198 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5199
c899585b
RE
52002002-05-15 Richard Earnshaw <rearnsha@arm.com>
5201
5202 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5203 (REGISTER_U_ADDR): Delete definition.
5204 (arm_register_u_addr): Delete declaration.
5205
a6cdd8c5
RE
52062002-05-15 Richard Earnshaw <rearnsha@arm.com>
5207
5208 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5209 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5210
c97dcfc7
AC
52112002-05-14 Andrew Cagney <ac131313@redhat.com>
5212
5213 * regcache.c (register_valid): Revise comments refering to "Not
5214 available" and "unavailable".
5215 * frame.c (frame_register_read): Ditto.
5216 * findvar.c (value_of_register): Ditto.
5217
93021b7d
AC
52182002-05-15 Andrew Cagney <cagney@redhat.com>
5219
5220 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5221 (remote-sim.o): Update dependencies.
5222 (d10v-tdep.o): Specify dependencies.
5223 (sim_d10v_h): Define.
5224
a86bc61c
JB
52252002-05-14 Jim Blandy <jimb@redhat.com>
5226
5227 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5228 * macrotab.c (macro_lookup_inclusion, find_definition,
5229 new_macro_table): Same.
5230
5231 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5232 not `! strcmp ()'. This is a dubious improvement.
5233 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5234
5235 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5236 although it's not necessary, to avoid a warning.
5237
2fdde8f8
DJ
52382002-05-14 Daniel Jacobowitz <drow@mvista.com>
5239
5240 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5241 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5242 TYPE_INSTANCE_FLAGS.
5243 (struct main_type): New.
5244 (struct type): Move most members to struct main_type. Change
5245 cv_type and as_type to new type_chain member. Add instance_flags.
5246 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5247 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5248 (finish_cv_type): Remove prototype.
5249 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5250 Set TYPE_CHAIN.
5251 (alloc_type_instance): New function.
5252 (smash_type): New function.
5253 (make_pointer_type, make_reference_type, make_function_type)
5254 (smash_to_member_type, smash_to_method_type): Call smash_type.
5255 (make_qualified_type): New function.
5256 (make_type_with_address_space): Call make_qualified_type.
5257 (make_cv_type): Likewise.
5258 (finish_cv_type): Remove unnecessary function.
5259 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5260 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5261 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5262 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5263 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5264 * hpread.c (hpread_read_struct_type): Likewise.
5265 * stabsread.c (read_struct_type): Likewise.
5266
843fedf4
EZ
52672002-05-14 Elena Zannoni <ezannoni@redhat.com>
5268
5269 * configure.tgt: Add a catch all sh* target, for cases like
5270 sh[2,3,4]-elf and sh-hms.
5271
05a6c72c
KS
52722002-05-14 Keith Seitz <keiths@redhat.com>
5273
5274 * event-loop.c (create_file_handler): Don't do anything but
5275 update data when we are given a fd which we are already
5276 monitoring.
5277
5d085aaf
ML
52782002-05-14 Michal Ludvig <mludvig@suse.cz>
5279
5280 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5281 (update_context): Use __func__ in warnings.
5282
9db8d71f
DJ
52832002-05-14 Daniel Jacobowitz <drow@mvista.com>
5284
5285 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5286 and tcp_close to net_open and net_close.
5287 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5288 using UDP if requested. Don't try to disable Nagle on UDP
5289 sockets.
5290 * remote.c (remote_serial_open): New function. Warn about UDP.
5291 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5292
5dbc6baa
EZ
52932002-05-13 Elena Zannoni <ezannoni@redhat.com>
5294
5295 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5296
cc3023f7
EZ
52972002-05-13 Elena Zannoni <ezannoni@redhat.com>
5298
5299 * configure.tgt: Remove sh-hms target.
5300 * MAINTAINERS: Don't list sh-hms as a separate target.
5301
ec2bcbe7
JB
53022002-05-13 Jim Blandy <jimb@redhat.com>
5303
5304 Add first preprocessor macro-expansion files.
5305 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5306 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5307 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5308 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5309 (COMMON_OBS): Add macrotab.o, macroexp.o.
5310 (macroexp.o, macrotab.o): New rules.
5311
6d531722
AC
53122002-05-13 Andrew Cagney <ac131313@redhat.com>
5313
5314 * config/m88k/tm-m88k.h: Update copyright.
5315 (m88k_target_write_pc): Declare
5316 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5317 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5318 (SHIFT_INST_REGS): Update definition.
5319 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5320 using old definition of TARGET_WRITE_PC.
5321 * regcache.c (generic_target_write_pc): Delete code handling
5322 NNPC_REGNUM.
5323 * gdbarch.sh (NNPC_REGNUM): Delete.
5324 * gdbarch.h, gdbarch.c: Regenerate.
5325
3e3f2739
RE
53262002-05-13 Richard Earnshaw <rearnsha@arm.com>
5327
5328 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5329 builtin reg number.
5330
0004e5a2
DJ
53312002-05-13 Daniel Jacobowitz <drow@mvista.com>
5332
5333 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5334 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5335 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5336 access macros.
5337 * c-typeprint.c (cp_type_print_method_args): Likewise.
5338 (c_type_print_args): Likewise.
5339 * d10v-tdep.c (d10v_push_arguments): Likewise.
5340 (d10v_extract_return_value): Likewise.
5341 * expprint.c (print_subexp): Likewise.
5342 * gdbtypes.c (lookup_primitive_typename): Likewise.
5343 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5344 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5345 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5346 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5347 (TYPE_VECTOR): Likewise.
5348 * hpread.c (hpread_read_struct_type)
5349 (fix_static_member_physnames, fixup_class_method_type)
5350 (hpread_type_lookup): Likewise.
5351 * mdebugread.c (parse_symbol, parse_type): Likewise.
5352 * p-lang.c (is_pascal_string_type): Likewise.
5353 * valops.c (hand_function_call): Likewise.
5354 * x86-64-tdep.c (classify_argument): Likewise.
5355
5356 * hpread.c (hpread_read_function_type)
5357 (hpread_read_doc_function_type): Call replace_type.
5358 * dstread.c (create_new_type): Delete.
5359 (decode_dst_structure, process_dst_function): Call alloc_type.
5360 Use type access macros.
5361
dff95cc7
MK
53622002-05-12 Mark Kettenis <kettenis@gnu.org>
5363
5364 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5365 the're not supported by the current architecture.
5366 (i387_fill_fxsave): Likewise.
5367
bbcd32ad
FF
53682002-05-12 Fred Fish <fnf@redhat.com>
5369
5370 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5371 sect_index_xxx members to index the first slot in section_offsets
5372 if all of the section_offsets are zero.
5373
89cf4787
MK
53742002-05-12 Mark Kettenis <kettenis@gnu.org>
5375
5376 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5377 checked in with last change.
5378
1f77ffc5
MK
53792002-05-12 Mark Kettenis <kettenis@gnu.org>
5380
5381 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5382 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5383 config.sub.
5384
89b8b4a9
DJ
53852002-05-12 Daniel Jacobowitz <drow@mvista.com>
5386
5387 * Makefile.in: Update dependencies.
5388
14a5e767
AC
53892002-05-11 Andrew Cagney <ac131313@redhat.com>
5390
5391 * language.c (local_hex_string_custom): Simplify. Do not depend
5392 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5393
5394 * memattr.c (mem_info_command): Replace calls to
5395 longest_local_hex_string and longest_local_hex_string_custom.
5396 * buildsym.c (make_blockvector): Ditto.
5397 * solib.c (info_sharedlibrary_command): Ditto.
5398 * tracepoint.c (tracepoints_info): Ditto.
5399 * symtab.c (print_msymbol_info): Ditto.
5400
5401 * language.c (local_hex_string): Delete.
5402 (local_hex_string_custom): Delete.
5403 (longest_local_hex_string): Rename to local_hex_string.
5404 (longest_local_hex_string_custom): Rename to
5405 local_hex_string_custom.
5406 * language.h (local_hex_string): Change parameter type to LONGEST.
5407 (local_hex_string_custom): Ditto.
5408 (longest_local_hex_string): Delete declaration.
5409 (longest_local_hex_string_custom): Ditto.
5410
5411 * solib.c: Update copyright.
5412 * memattr.c: Update copyright.
5413
13d01224
AC
54142002-05-11 Andrew Cagney <ac131313@redhat.com>
5415
5416 * arch-utils.h (legacy_register_to_value): Declare.
5417 (legacy_value_to_register): Declare.
5418 (legacy_convert_register_p): Declare.
5419 * arch-utils.c (legacy_register_to_value): New function.
5420 (legacy_value_to_register): New function.
5421 (legacy_convert_register_p): New function.
5422
5423 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5424 (VALUE_TO_REGISTER): Define.
5425 (CONVERT_REGISTER_P): Define.
5426 * gdbarch.h, gdbarch.c: Regenerate.
5427
5428 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5429 VALUE_TO_REGISTER.
5430 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5431 CONVERT_REGISTER_P.
5432
4a1970e4
DJ
54332005-05-11 Daniel Jacobowitz <drow@mvista.com>
5434 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5435
5436 * Makefile.in: Update dependencies for valops.c.
5437 * valops.c: Include "gdb_assert.h".
5438 (typecmp): Skip THIS parameter to methods.
5439 (find_method_list): Remove static_memfuncp argument,
5440 update callers. Check for stub methods.
5441 (find_value_oload_method_list): Don't set *static_memfuncp.
5442 (find_overload_match): Don't check for stub methods. Assert
5443 that methods are not stubbed. Handle static methods.
5444 (value_find_oload_method_list): Remove static_memfuncp argument.
5445 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5446 to the argument list for static stub methods.
5447 * value.h (value_find_oload_method_list): Update prototype.
5448
b2e75d78
AC
54492002-05-11 Andrew Cagney <ac131313@redhat.com>
5450
5451 * arch-utils.h (generic_register_size): Declare.
5452 (generic_register_raw_size, generic_register_virtual_size): Delete
5453 declarations.
5454 * arch-utils.c (generic_register_raw_size): Delete.
5455 (generic_register_size): New function.
5456 (generic_register_virtual_size): Delete.
5457
5458 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5459 default generic_register_size.
5460 * gdbarch.h, gdbarch.c: Re-generate.
5461
5462 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5463 register_virtual_size.
5464 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5465 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5466
451fbdda
AC
54672002-05-11 Andrew Cagney <ac131313@redhat.com>
5468
5469 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5470 * gdbarch.h, gdbarch.c: Regenerate.
5471 * gnu-v3-abi.c: Update copyright.
5472 (vtable_address_point_offset): Update.
5473 (gnuv3_rtti_type): Update.
5474 (gnuv3_baseclass_offset): Update.
5475 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5476 (init_fetch_link_map_offsets): Update.
5477 * remote.c (get_remote_state): Update.
5478
6d2f5cea
DJ
54792002-05-11 Daniel Jacobowitz <drow@mvista.com>
5480
5481 * TODO: Remove value_headof/value_from_vtable_info comment.
5482 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5483 * values.c (value_headof, value_from_vtable_info): Delete.
5484 * value.h (value_from_vtable_info): Delete prototype.
5485
d2324da4
AC
54862002-05-11 Andrew Cagney <ac131313@redhat.com>
5487
5488 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5489 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5490 $(gdb_regex_h).
5491 (gdb_assert_h): Define.
5492 (gdb_wait_h): Define.
5493 (gdb_regex_h): Define.
5494
5c717440
DJ
54952002-05-11 Daniel Jacobowitz <drow@mvista.com>
5496
5497 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5498 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5499
6c7861b3
JT
55002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5501
5502 * nbsd-tdep.c: Fix comment.
5503
ea5bc2a6
JT
55042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5505
5506 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5507 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5508 (nbsd-tdep.o): New dependency list.
5509 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5510 nbsd-tdep.h.
5511 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5512 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5513 * nbsd-tdep.c: New file.
5514 * nbsd-tdep.h: New file.
5515 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5516 nbsd-tdep.h.
5517 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5518 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5519 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5520 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5521
b28da865
JT
55222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5523
5524 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5525 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5526 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5527 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5528 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5529 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5530
4b8ff1fa
JT
55312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5532
5533 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5534 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5535 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5536 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5537 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5538 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5539 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5540
dfe6eb1f
JT
55412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5542
5543 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5544 fetch_elfcore_registers to...
5545 * i386nbsd-tdep.c: ...here.
5546 (i386nbsd_use_struct_convention): Rename to...
5547 (i386nbsd_aout_use_struct_convention): ...this.
5548 (i386nbsd_supply_reg): New function.
5549 (i386nbsd_fill_reg): New function.
5550 (fetch_core_registers): Use i386nbsd_supply_reg.
5551 (fetch_elfcore_registers): Likewise.
5552 (_initialize_i386nbsd_tdep): New function.
5553 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5554 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5555 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5556 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5557 (i386nbsd_aout_use_struct_convention): ...this.
5558
20cb8cda
JT
55592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5560
5561 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5562 (store_inferior_registers): Use shnbsd_fill_reg.
5563 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5564 sh_nbsd_supply_register): Collapse into...
5565 (shnbsd_supply_reg): ...this.
5566 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5567 (shnbsd_fill_reg): ...this.
5568 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5569 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5570 (fetch_core_registers): Use shnbsd_supply_reg.
5571 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5572 (sh_nbsd_core_fns): Rename to...
5573 (shnbsd_core_fns): ...this.
5574 (sh_nbsd_elfcore_fns): Rename to...
5575 (shnbsd_elfcore_fns): ...this.
5576 (sh_nbsd_init_abi): Rename to...
5577 (shnbsd_init_abi): ...this.
5578 (_initialize_sh_nbsd_tdep): Rename to...
5579 (_initialize_shnbsd_tdep): ...this.
5580 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5581 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5582 sh_nbsd_fill_register): Remove prototypes.
5583 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5584
e750d25e
JT
55852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5586
5587 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5588 (i387-nat.o): Delete dependency list.
5589 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5590 (x86-64-linux-nat.o): Likewise.
5591 * i387-nat.c: Delete file, moving contents to...
5592 * i387-tdep.c: ...here.
5593 * i387-nat.h: Rename...
5594 * i387-tdep.h: ...to this.
5595 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5596 * i386-linux-nat.c: Likewise.
5597 * i386bsd-nat.c: Likewise.
5598 * i386gnu-nat.c: Likewise.
5599 * i386nbsd-nat.c: Likewise.
5600 * i386v4-nat.c: Likewise.
5601 * x86-64-linux-nat.c: Likewise.
5602 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5603 * config/i386/go32.mh (NATDEPFILES): Likewise.
5604 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5605 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5606 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5607 * config/i386/linux.mh (NATDEPFILES): Likewise.
5608 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5609 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5610 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5611 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5612
1aee598a
JT
56132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5614
5615 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5616 (alphanbsd-nat.o): Remove dependency list.
5617 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5618 * alphanbsd-nat.c: Delete. Contents moved to...
5619 * alphanbsd-tdep.c: ...here.
5620 (_initialize_alphanbsd_tdep): Register core functions.
5621 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5622
12bcb0fe
JT
56232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5624
5625 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5626 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5627 (alphanbsd-nat.o): Likewise.
5628 (alphabsd-tdep.o): New dependency list.
5629 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5630 (fill_gregset): Use alphabsd_fill_reg.
5631 (supply_fpregset): Use alphabsd_supply_fpreg.
5632 (fill_fpregset): Use alphabsd_fill_fpreg.
5633 (fetch_inferior_registers): Use struct reg and struct fpreg
5634 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5635 and alphabsd_supply_fpreg.
5636 (store_inferior_registers): Use struct reg and struct fpreg
5637 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5638 and alphabsd_fill_fpreg.
5639 * alphabsd-tdep.c: New file.
5640 * alphabsd-tdep.h: New file.
5641 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5642 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5643 alphabsd_supply_fpreg.
5644 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5645 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5646
361d1df0
EC
56472002-05-11 Eric Christopher <echristo@redhat.com>
5648
5649 * mips-tdep.c (mips_double_register_type): Fix thinko.
5650 (mips_single_register_type): Ditto.
5651 * MAINTAINERS: Add self.
5652
92dd7cee
MK
56532002-05-11 Mark Kettenis <kettenis@gnu.org>
5654
5655 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5656 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5657 right thing on architectures with different endianness and/or
5658 integer sizes.
5659
e27da16d
JT
56602002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5661
5662 From Christian Limpach <chris@Pin.LU>
5663 * configure.in: Change sed expression which comments out
5664 NATDEPFILES to also comment out continuation lines.
5665 * configure: Regenerate.
5666
ddde02bd
EZ
56672002-05-10 Elena Zannoni <ezannoni@redhat.com>
5668
5669 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5670 big patch.
5671
1c922164
EZ
56722002-05-10 Elena Zannoni <ezannoni@redhat.com>
5673
5674 * sh-tdep.c: Include correct file.
5675
283150cd
EZ
56762002-05-10 Elena Zannoni <ezannoni@redhat.com>
5677
5678 New support for sh64-elf (sh5) target.
5679
5680 * configure.tgt: For sh64-elf target, default to sh-elf.
5681
5682 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5683 (struct gdbarch_tdep): Add new fields for new registers and ABI
5684 info.
361d1df0 5685
283150cd
EZ
5686 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5687 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5688 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5689 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5690 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5691 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5692 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5693 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5694 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5695 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5696 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5697 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5698 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5699 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5700 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5701 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5702 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5703 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5704 sign_extend, sh64_nofp_frame_init_saved_regs,
5705 sh64_init_extra_frame_info, sh64_get_saved_register,
5706 sh64_extract_struct_value_address, sh64_pop_frame,
5707 sh64_push_arguments, sh64_extract_return_value,
5708 sh64_store_return_value, sh64_show_media_regs,
5709 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5710 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5711 sh_sh64_register_virtual_type,
5712 sh_sh64_register_convert_to_virtual,
5713 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5714 sh64_register_read, sh64_pseudo_register_write,
5715 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5716 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5717 sh64_do_pseudo_register, sh_compact_do_registers_info,
5718 sh64_do_registers_info, sh_gdbarch_init): New functions.
5719
3117ed25
EZ
57202002-05-10 Elena Zannoni <ezannoni@redhat.com>
5721
5722 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5723
2654e6d4
DJ
57242002-05-10 Daniel Jacobowitz <drow@mvista.com>
5725
5726 * linespec.c (decode_line_1): Check for a double quote after
5727 a filename correctly.
5728
9ab3e532
JB
57292002-05-10 Jim Blandy <jimb@redhat.com>
5730
5731 Properly track the size of the current objfile's .debug_line section.
5732 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5733 (DWARF_LINE_SIZE): New macro.
5734 (dwarf2_build_psymtabs_hard): Record the line section's size in
5735 the partial symbol table.
5736 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5737 symbol table.
5738
126fa72d
PS
57392002-05-10 Petr Sorfa <petrs@caldera.com>
5740
5741 * ia64-tdep.c: Handle breakpoints on L instruction type
5742 in MLX instruction bundle by moving the breakpoint to
5743 the third slot (X instruction type) as L holds only data.
5744
1f077a3e
KB
57452002-05-10 Kevin Buettner <kevinb@redhat.com>
5746
5747 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5748 (process_one_symbol): Complain about discarding local symbols
5749 due to a misplaced N_LBRAC entry.
5750
8120c9d5 57512002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5752
5753 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5754 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5755 decrease the depth we are at, in the case of templates.
361d1df0 5756
67b2c998
DJ
57572002-05-09 Daniel Jacobowitz <drow@mvista.com>
5758
5759 * mips-tdep.c (mips_float_register_type): New function.
5760 (mips_double_register_type): New function.
5761 (mips_print_register): Use them.
5762 (do_fp_register_row): Likewise.
5763
fd326606
DJ
57642002-05-09 Daniel Jacobowitz <drow@mvista.com>
5765
6609d9af 5766 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5767 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5768 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5769
bef35864
MS
57702002-05-09 Michael Snyder <msnyder@redhat.com>
5771
5772 * remote-rdp.c (remote_rdp_can_run): Remove.
5773
c55a3f73
TT
57742002-05-09 Tom Tromey <tromey@redhat.com>
5775
5776 * jv-valprint.c (java_val_print): Handle `char' as a special case
5777 of TYPE_CODE_INT.
5778
b8d5e71d
MS
57792002-05-09 Michael Snyder <msnyder@redhat.com>
5780
5781 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5782 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5783 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5784 str r(0123),[sp,#nn].
361d1df0 5785 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5786 order-independent by placing it in a loop.
5787
e2cd42dd
MS
57882002-05-06 Michael Snyder <msnyder@redhat.com>
5789
5790 * stabsread.c (read_type): Add recognition for new attribute:
5791 "@V;" means that an array type is actually a vector.
5792 This is analogous to the vector flag that's been added to dwarf2.
5793
3ce1502b
MK
57942002-05-09 Mark Kettenis <kettenis@gnu.org>
5795
5796 * i386-tdep.h (i386_abi): New enum.
5797 (struct gdbarch_tdep): Replace os_ident member with abi.
5798 (i386_gdbarch_register_os_abi): New prototype.
5799 * i386-tdep.c (i386_abi_names): New array.
5800 (process_note_abi_tag_sections): Removed.
5801 (process_note_sections): New function.
5802 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5803 (struct i386_abi_handler): New struct.
5804 (i386_abi_handler_list): New variable.
5805 (i386_gdbarch_register_os_abi): New function.
5806 (i386_gdbarch_init): Adapt for the changes given above.
5807
084c156a
DJ
58082002-05-08 Daniel Jacobowitz <drow@mvista.com>
5809
5810 * gregset.h: Say "GNU/Linux".
5811
6599f021
EZ
58122002-05-08 Elena Zannoni <ezannoni@redhat.com>
5813
5814 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5815 (build_gdbtypes): Build builtin_type_v2_float.
5816 (_initialize_gdbtypes): Register new builtin type.
5817
40af4b0c
AC
58182002-05-08 Andrew Cagney <ac131313@redhat.com>
5819
5820 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5821 (clear_gdbarch_swap): New function.
5822 (initialize_non_multiarch): Call.
5823 (gdbarch_update_p): Before calling init(), swap out and clear the
5824 existing architecture.
5825 * gdbarch.c: Regenerate.
5826
4fe84f46
JT
58272002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5828
5829 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5830 alphanbsd-tdep.c.
5831
4015edd1
JT
58322002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5833
5834 * sh-nbsd-nat.c: Rename to...
5835 * shnbsd-nat.c: ...this.
5836 * sh-nbsd-tdep.c: Rename to...
5837 * shnbsd-tdep.c: ...this.
5838 * sh-nbsd-tdep.h: Rename to...
5839 * shnbsd-tdep.h: ...this.
5840 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5841 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5842
0e2bd219
RE
58432002-05-08 Richard Earnshaw <rearnsha@arm.com>
5844
5845 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5846 concatenation for command help messages.
5847
13a38d45
JT
58482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5849
5850 * NEWS: Note new sh*-*-netbsdelf* configuration.
5851 * configure.host: Set gdb_host_cpu to sh for all sh*.
5852 (sh*-*-netbsdelf*): New host.
5853 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5854 (sh*-*-netbsdelf*): New target.
5855 * sh-nbsd-nat.c: New file.
5856 * sh-nbsd-tdep.c: New file.
5857 * sh-nbsd-tdep.h: New file.
5858 * config/sh/nbsd.mh: New file.
5859 * config/sh/nbsd.mt: New file.
5860 * config/sh/nm-nbsd.h: New file.
5861 * config/sh/tm-nbsd.h: New file.
5862
d658f924
JT
58632002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5864
5865 * sh-tdep.c (sh_osabi_names): Declare.
5866 (process_note_abi_tag_sections): New function.
5867 (get_elfosabi): Ditto.
5868 (sh_gdbarch_register_os_abi): Ditto.
5869 (sh_dump_tdep): Ditto.
5870 _initialize_sh_tdep): Use gdbarch_register to register
5871 sh_gdbarch_init and sh_dump_tdep.
5872 * config/sh/tm-sh.h (sh_osabi): Declare.
5873 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5874
848cfffb
AC
58752002-05-07 Andrew Cagney <ac131313@redhat.com>
5876
5877 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5878 (thumb_scan_prologue): Ditto.
5879 (arm_find_callers_reg): Ditto.
5880 (arm_frame_chain): Ditto.
5881 (arm_init_extra_frame_info): Ditto.
5882 (arm_frame_saved_pc): Ditto.
5883 (arm_pop_frame): Ditto.
5884 (arm_push_return_address): New function.
5885 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5886 call_dummy_location, call_dummy_breakpoint_offset_p,
5887 call_dummy_breakpoint_offset, call_dummy_p,
5888 call_dummy_stack_adjust_p, call_dummy_words,
5889 sizeof_call_dummy_words, call_dummy_start_offset,
5890 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5891 call_dummy_address, push_return_address and push_dummy_frame for
5892 generic dummy frames.
5893
e7d717c0
JT
58942002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5895
5896 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5897 size computation for alloca.
5898 (sh_fp_frame_init_saved_regs): Likewise.
5899
7bbcf283
RE
59002002-05-07 Richard Earnshaw <rearnsha@arm.com>
5901
5902 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5903 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5904 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5905 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5906 * remote-rdp.c (remote_rdp_fetch_register): Use
5907 ARM_MAX_REGISTER_RAW_SIZE.
5908 (remote_rdp_store_register): Likewise.
5909
4657573b
ML
59102002-05-07 Michal Ludvig <mludvig@suse.cz>
5911
361d1df0 5912 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5913 added default labels to switch {} statements.
5914 * x86-64-tdep.c: Ditto.
5915 * x86-64-linux-nat.c: Ditto.
5916
010f3b2f
JT
59172002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5918
5919 * solib.h: Protect against multiple inclusion.
5920
debd256d
JB
59212002-05-06 Jim Blandy <jimb@redhat.com>
5922
9ab3e532
JB
5923 Add first preprocessor macro-expansion files.
5924 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5925 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5926 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5927 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5928 (COMMON_OBS): Add macrotab.o, macroexp.o.
5929 (macroexp.o, macrotab.o): New rules.
5930
debd256d
JB
5931 Separate the job of reading the line number info statement program
5932 header (...expialidocious) out into its own function.
5933 * dwarf2read.c (struct line_head, struct filenames, struct
5934 directories): Replace with...
5935 (struct line_header): New structure, containing the full
5936 contents of the statement program header, including the
5937 include directory and file name tables.
5938 (read_file_scope): If we have line number info, instead of just
5939 calling dwarf_decode_lines to do all the work, call
5940 dwarf_decode_line_header first to get a `struct line_header'
5941 containing the data in the statement program header, and then
5942 pass that to dwarf_decode_lines, which will pick up where that
5943 left off. Be sure to clean up the `struct line_header' object.
5944 (dwarf_decode_line_header, free_line_header, add_include_dir,
5945 add_file_name): New functions.
5946 (dwarf_decode_lines): Move all the code to read the statement
5947 program header into dwarf_decode_line_header. Take the line
5948 header it built as the first argument, instead of the offset to
5949 the compilation unit's line number info. Use the new `struct
5950 line_header' type instead of the old structures. No need to do
5951 cleanups here now, since we don't allocate anything.
5952 (dwarf2_statement_list_fits_in_line_number_section,
5953 dwarf2_line_header_too_long): New complaints.
5954
ac3aafc7
EZ
59552002-05-06 Elena Zannoni <ezannoni@redhat.com>
5956
5957 * gdbtypes.c (init_vector_type): New function.
5958 (build_builtin_type_vec128): Simplify the representation of SIMD
5959 registers.
5960 (build_gdbtypes): Initialize new builtin vector types.
5961 (_initialize_gdbtypes): Register new vector types with gdbarch.
5962 (builtin_type_v4_float, builtin_type_v4_int32,
5963 builtin_type_v8_int16, builtin_type_v16_int8,
5964 builtin_type_v2_int32, builtin_type_v4_int16,
5965 builtin_type_v8_int8): New (renamed) SIMD types.
5966
13e49980
MK
59672002-05-06 Mark Kettenis <kettenis@gnu.org>
5968
5969 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5970 (i387_fill_fxsave): Likewise.
5971
997b20b8
AO
59722002-05-05 Alexandre Oliva <aoliva@redhat.com>
5973
5974 * alpha-tdep.c (alpha_extract_return_value): Don't use
5975 non-constant array size in prototype.
5976
535c96ce
AC
59772002-05-04 Andrew Cagney <ac131313@redhat.com>
5978
5979 From Brian Taylor <briant at model dot com>:
5980 * ui-out.c (ui_out_field_core_addr): Use the function
5981 longest_local_hex_string_custom'to format addresses > 32 bits
5982 wide.
5983
5984 * ui-out.c (ui_out_field_core_addr): Update comment.
5985
bedfa57b
AC
59862002-05-04 Andrew Cagney <ac131313@redhat.com>
5987
5988 * stack.c (select_and_print_frame): Make static. Delete the
5989 parameter `level'.
5990 (func_command): Update call.
5991 (select_frame_command): Delete code computing the frame level.
5992 * frame.h (select_and_print_frame): Delete declaration.
5993
f621c63e
AC
59942002-05-04 Andrew Cagney <ac131313@redhat.com>
5995
5996 * sparc-tdep.c (sparc_get_saved_register): Comment why
5997 get_prev_frame call is safe.
5998
0f7d239c
AC
59992002-05-04 Andrew Cagney <ac131313@redhat.com>
6000
6001 * frame.h (select_frame): Delete level parameter.
6002 * stack.c (select_frame): Update. Use frame_relative_level to
6003 obtain the frame's level.
6004 (select_and_print_frame): Update call.
6005 (select_frame_command): Ditto.
6006 (up_silently_base): Ditto.
6007 (down_silently_base): Ditto.
6008 * ocd.c (ocd_start_remote): Ditto.
6009 * remote-rdp.c (remote_rdp_open): Ditto.
6010 * remote-mips.c (mips_initialize): Ditto.
6011 (common_open): Ditto.
6012 * remote-e7000.c (e7000_start_remote): Ditto.
6013 * m3-nat.c (select_thread): Ditto.
6014 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6015 (child_get_current_exception_event): Ditto.
6016 * varobj.c (varobj_create): Ditto.
6017 (varobj_update): Ditto.
6018 (c_value_of_root): Ditto.
6019 * tracepoint.c (finish_tfind_command): Ditto.
6020 * corelow.c (core_open): Ditto.
6021 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6022 * thread.c (info_threads_command): Ditto.
6023 (switch_to_thread): Ditto.
6024 * infrun.c (normal_stop): Ditto.
6025 (restore_selected_frame): Ditto.
6026 (restore_inferior_status): Ditto.
6027 * breakpoint.c (insert_breakpoints): Ditto.
6028 (watchpoint_check): Ditto.
6029 (bpstat_stop_status): Ditto.
6030 (do_enable_breakpoint): Ditto.
6031 * blockframe.c (flush_cached_frames): Ditto.
6032 (reinit_frame_cache): Ditto.
6033
71d6c7b1
AC
60342002-05-04 Andrew Cagney <ac131313@redhat.com>
6035
6036 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6037 maintainer.
6038
cda6c68a
JB
60392002-05-04 Jim Blandy <jimb@redhat.com>
6040
6041 * gdbtypes.c (replace_type): Doc fix.
6042
5c1c87f0
AC
60432002-05-04 Andrew Cagney <ac131313@redhat.com>
6044
6045 * valprint.c (strcat_longest): Delete commented out function.
6046 Update copyright.
6047
cd9bfe15
AC
60482002-05-04 Andrew Cagney <ac131313@redhat.com>
6049
6050 * MAINTAINERS: Mark a29k as deleted.
6051 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6052 Move new configurations to the top.
6053 * configure.tgt: Remove a29k.
6054 * config/a29k/tm-vx29k.h: Delete.
6055 * config/a29k/vx29k.mt: Delete.
6056 * config/a29k/tm-a29k.h: Delete.
6057 * config/a29k/a29k-udi.mt: Delete.
6058 * config/a29k/a29k.mt: Delete.
6059 * a29k-tdep.c: Delete.
6060 * remote-udi.c: Delete.
6061 * remote-mm.c: Delete.
6062 * remote-eb.c: Delete.
6063 * remote-adapt.c: Delete.
6064 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6065 * config/s390/s390x.mt: Ditto.
6066 * config/s390/s390.mt: Ditto.
6067 * config/sparc/sparclynx.mh: Ditto.
6068 * config/sparc/linux.mh: Ditto.
6069 * config/pa/hppaosf.mh: Ditto.
6070 * config/pa/hppabsd.mh: Ditto.
6071 * config/ns32k/nbsd.mt: Ditto.
6072 * config/mips/vr5000.mt: Ditto.
6073 * config/m68k/sun3os4.mh: Ditto.
6074 * config/m68k/nbsd.mt: Ditto.
6075 * config/m68k/m68klynx.mh: Ditto.
6076 * config/m32r/m32r.mt: Ditto.
6077 * config/i386/x86-64linux.mt: Ditto.
6078 * config/i386/nbsdelf.mt: Ditto.
6079 * config/i386/nbsd.mt: Ditto.
6080 * config/i386/i386lynx.mh: Ditto.
6081
bf0c5130
AC
60822002-05-04 Andrew Cagney <ac131313@redhat.com>
6083
6084 * target.c (debug_print_register): New function. Handle oversize
6085 registers.
6086 (debug_to_fetch_registers): Call.
6087 (debug_to_store_registers): Call.
6088
2ae1c2d2
JB
60892002-05-03 Jim Blandy <jimb@redhat.com>
6090
13a393b0
JB
6091 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6092 (read_type): Doc fix.
6093 * gdbtypes.c (replace_type): Doc fix.
6094
2ae1c2d2
JB
6095 * stabsread.c (multiply_defined_struct): New complaint.
6096 (read_struct_type): If the type we were passed isn't empty, or
6097 incomplete, don't read the new struct type into it; complain,
6098 and return the original type unchanged. Take a new `type_code'
6099 argument, which is the type code for the new type.
6100 (read_type): Rather than storing the type's type code here, pass
6101 it as an argument to read_struct_type, and let that take care of
6102 storing it. That way, we don't overwrite the original type code,
6103 so read_struct_type can use it to decide whether we're overwriting
6104 something we shouldn't.
6105 (complain_about_struct_wipeout): New function.
6106
8de9bdc4
AC
61072002-05-03 Andrew Cagney <ac131313@redhat.com>
6108
6109 * gdbarch.sh: Assert that gdbarch is non-NULL.
6110 * gdbarch.c: Regenerate.
6111
f773fdbb
JM
61122002-05-03 Jason Merrill <jason@redhat.com>
6113
6114 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6115 and return NULL.
6116
0e04a514
ML
61172002-05-03 Michal Ludvig <mludvig@suse.cz>
6118
6119 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6120 (x86_64_dwarf2gdb_regno_map_length),
6121 (x86_64_dwarf2_reg_to_regnum): Added.
6122 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6123 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6124 (_initialize_x86_64_tdep): Synced with the change above.
6125 (x86_64_skip_prologue): Reformulated message.
6126
065432a8
PM
61272002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6128
6129 * f-exp.y: Also use new prev_lexptr variable
6130 to improve error reporting. Based on Michael Snyder
6131 2002-04-24 dated patch to c-exp.y.
6132 * jv-exp.y: Likewise.
6133 * m2-exp.y: Likewise.
6134
a3162708
EZ
61352002-05-02 Elena Zannoni <ezannoni@redhat.com>
6136
6137 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6138 we are dealing with vectors.
6139
03620c38
PM
61402002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6141
6142 * config/m68k/tm-nbsd.h: Obvious fix,
6143 correct machine name.
6144
6604db2e
PM
61452002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6146
6147 * p-typeprint.c (pascal_type_print_base): Add support
6148 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6149
0906b739
PM
61502002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6151
6152 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6153 for fondamental pascal 'char' type.
6154
e2625b33
PM
61552002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6156
6157 * p-lang.h (is_pascal_string_type): Declaration changed,
6158 new sixth argument of type char ** added.
361d1df0 6159 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6160 changed. Args length_pos, length_size, string_pos, char_size
6161 can now be NULL. New argument arrayname set to the field
6162 name of the char array. Return value set to char array
6163 field index plus one.
361d1df0 6164 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6165 is_pascal_string_type function.
6166
cf17c188
AC
61672002-05-02 Andrew Cagney <cagney@redhat.com>
6168
6169 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6170 <cagney@redhat.com> change.
6171 * gdbarch.c: Regenerate.
6172
52bca491
AC
61732002-05-02 Andrew Cagney <cagney@redhat.com>
6174
6175 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6176 before probing for a new one. Detect errorenous gdbarch_init
6177 functions.
6178 * gdbarch.c: Regenerate.
6179
d5e72505
AC
61802002-05-01 Andrew Cagney <cagney@redhat.com>
6181
6182 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6183 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6184 * config/v850/tm-v850.h: Ditto. Update copyright.
6185
af566d9f
AC
61862002-04-30 Andrew Cagney <ac131313@redhat.com>
6187
6188 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6189 current_gdbarch.
6190
880d85fa
MS
61912002-04-30 Michael Snyder <msnyder@redhat.com>
6192
94c30b78
MS
6193 * arm-tdep.c: Whitespace clean-ups.
6194 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6195 should have been removed as part of 4/24 change.
6196
6f5987a6
KB
61972002-04-30 Kevin Buettner <kevinb@redhat.com>
6198
6199 * rs6000-tdep.c: Added comment describing how fpscr register
6200 numbers were chosen.
6201
1a113c93
MS
62022002-04-30 Michael Snyder <msnyder@redhat.com>
6203
6204 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6205
9a6f53fe
EZ
62062002-04-29 Elena Zannoni <ezannoni@redhat.com>
6207
6208 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6209 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6210 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6211
11ed25ac
KB
62122002-04-29 Kevin Buettner <kevinb@redhat.com>
6213
6214 From Louis Hamilton <hamilton@redhat.com>:
6215 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6216 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6217 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6218 not bfd-private xcoff data, to determine wordsize.
6219 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6220
ae232405
AC
62212002-04-29 Andrew Cagney <ac131313@redhat.com>
6222
6223 GDB 5.2 released from 5.2 branch.
6224
91fd20f7
ML
62252002-04-29 Michal Ludvig <mludvig@suse.cz>
6226
6227 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6228 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6229 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6230
2dc5091b
EZ
62312002-04-29 Elena Zannoni <ezannoni@redhat.com>
6232
6233 * rs6000-tdep.c (rs6000_extract_return_value,
6234 rs6000_store_return_value): Handle returning vectors.
6235 (rs6000_gdbarch_init): Use
6236 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6237 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6238 New function.
6239 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6240 vectors.
6241 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6242 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6243
2b9848d8
PM
62442002-04-24 Pierre Muller <ics.u-strasbg.fr>
6245
6246 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6247 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6248 with fprintf_unfiltered (gdb_stderr,...).
6249
f8d17dc5
PM
62502002-04-24 Pierre Muller <ics.u-strasbg.fr>
6251
6252 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6253 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6254 Replace fprintf (stderr,...
6255 with fprintf_unfiltered (gdb_stderr,....
6256 * remote-es.c: Likewise.
6257 * remote-os9k.c: Likewise.
6258 * remote-st.c: Likewise.
6259
2f2f1ad1
AS
62602002-04-28 Andreas Schwab <schwab@suse.de>
6261
6262 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6263 linux-proc.o and gcore.o.
6264
b6779aa2
AC
62652002-04-26 Michal Ludvig <mludvig@suse.cz>
6266
6267 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6268 code without frame pointers.
6269
7e57f5f4
AC
62702002-04-26 Andrew Cagney <ac131313@redhat.com>
6271
6272 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6273 ON_STACK is needed.
6274
2ceb85d0
BE
62752002-04-26 Ben Elliston <bje@redhat.com>
6276
6277 * target.c (do_xfer_memory): Correct reference to the new option
6278 "trust-readonly-sections".
6279
f5f8a009
EZ
62802002-04-26 Elena Zannoni <ezannoni@redhat.com>
6281
6282 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6283 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6284 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6285 vectors.
6286 (read_array_type): Record the fact that this array type is really a
6287 vector (i.e. are passed in by value).
6288
5868c862
JT
62892002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6290
6291 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6292 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6293 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6294 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6295 * alpha-linux-tdep.c: Include frame.h.
6296 (alpha_linux_sigcontext_addr): New function.
6297 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6298 alpha_linux_sigcontext_addr.
6299 * alpha-osf1-tdep.c: Include gdbcore.h.
6300 (alpha_osf1_sigcontext_addr): New function.
6301 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6302 alpha_osf1_sigcontext_addr.
6303 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6304 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6305
bfb01f37
AC
63062002-04-26 Andrew Cagney <ac131313@redhat.com>
6307
361d1df0 6308 * stack.c (selected_frame_level):
bfb01f37
AC
6309 (select_frame): Do not set selected_frame_level.
6310 * frame.h (selected_frame_level): Delete declaration.
6311
15813d3f
AC
63122002-04-26 Andrew Cagney <ac131313@redhat.com>
6313
6314 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6315 convert_from_func_ptr-addr when AIX / PowerOpen.
6316
6096c27a
AC
63172002-04-25 Andrew Cagney <ac131313@redhat.com>
6318
6319 * valops.c (hand_function_call): Call
6320 generic_save_call_dummy_addr.
6321 * frame.h (generic_save_call_dummy_addr): Declare.
6322 * blockframe.c (struct dummy_frame): Add fields call_lo and
6323 call_hi.
6324 (generic_find_dummy_frame): Check for PC in range call_lo to
6325 call_hi instead of entry_point_address.
6326 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6327 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6328 (generic_save_call_dummy_addr): New function.
6329
f510d44e
DM
63302002-04-24 David S. Miller <davem@redhat.com>
6331
6332 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6333 sparc_skip_prologue.
6334 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6335 information to find prologue when possible.
6336 (sparc_prologue_frameless_p): Call examine_prologue directly.
6337 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6338 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6339 second argument.
6340 (SKIP_PROLOGUE): Likewise.
6341
15d72a92
JT
63422002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6343
6344 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6345 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6346 indicate that the condition it was testing is always true.
6347 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6348 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6349 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6350
accc6d1f
JT
63512002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6352
6353 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6354 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6355 tdep->jb_pc and tdep->jb_elt_size.
6356 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6357 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6358 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6359 * alpha-nat.c (get_longjmp_target): Remove.
6360 (JB_ELEMENT_SIZE): Ditto.
6361 (JB_PC): Ditto.
6362 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6363 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6364 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6365 to alpha_get_longjmp_target.
6366 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6367 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6368 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6369
1bfdc549
AC
63702002-04-25 Andrew Cagney <ac131313@redhat.com>
6371
6372 * README: Update to GDB 5.2.
6373
1bd316f0
AC
63742002-04-25 Andrew Cagney <ac131313@redhat.com>
6375
6376 * gdbarch.sh (LC_ALL): Set to `c'.
6377
2e5ff58c
TR
63782002-04-25 Theodore A. Roth <troth@verinet.com>
6379
6380 * avr-tdep.c: Ran through gdb_indent.sh.
6381
e33ce519
TR
63822002-04-25 Theodore A. Roth <troth@verinet.com>
6383
6384 * MAINTAINERS: Add myself as AVR maintainer.
6385 * NEWS: Note new target avr.
6386
8818c391
TR
63872002-04-25 Theodore A. Roth <troth@verinet.com>
6388
6389 * Makefile.in: Add support for AVR target.
6390 * configure.tgt: Add support for AVR target.
6391 * avr-tdep.c: New file
6392 * config/avr/avr.mt: New file.
6393
79509c2d
TR
63942002-04-25 Theodore A. Roth <troth@verinet.com>
6395
6396 * MAINTAINERS: Add myself to write-after-approval.
6397
dac8068e
PM
63982002-04-24 Pierre Muller <ics.u-strasbg.fr>
6399
6400 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6401 with fprintf_unfiltered (gdb_stderr,....
6402
25bf3106
PM
64032002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6404
6405 Fix PR gdb/508.
6406 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6407
24467a86
PM
64082002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6409
6410 * p-exp.y: Also use new prev_lexptr variable
6411 to improve error reporting. Based on Michael Snyder
6412 2002-04-24 dated patch to c-exp.y.
6413
95b80706
JT
64142002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6415
6416 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6417 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6418 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6419 to 0.
6420 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6421 and struct value.
6422 (FUNCTION_START_OFFSET): Remove.
6423 (BREAKPOINT): Ditto.
6424
e90cc612
JT
64252002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6426
6427 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6428 * NEWS: Ditto.
6429
6c72f9f9
JT
64302002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6431
6432 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6433 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6434 alpha_linux_pc_in_sigtramp.
6435 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6436 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6437 alpha_osf1_pc_in_sigtramp.
6438 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6439 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6440 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6441 alphafbsd_pc_in_sigtramp.
6442 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6443 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6444 alphanbsd_pc_in_sigtramp.
6445 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6446 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6447
5e4f3379
JT
64482002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6449
6450 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6451
da8ca43d
JT
64522002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6453
6454 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6455 alphanbsd-tdep.c.
6456 (alphanbsd-nat.o): New dependency list.
6457 (alphanbsd-tdep.o): Ditto.
6458 * NEWS: Note new native NetBSD/alpha configuration.
6459 * alphanbsd-nat.c: New file.
6460 * alphanbsd-tdep.c: Ditto.
6461 * configure.host (alpha*-*-netbsd*): New host.
6462 * configure.tgt (alpha*-*-netbsd*): New target.
6463 * config/alpha/nbsd.mh: New file.
6464 * config/alpha/nbsd.mt: Ditto.
6465 * config/alpha/nm-nbsd.h: Ditto.
6466 * config/alpha/tm-nbsd.h: Ditto.
6467
36a6271d
JT
64682002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6469
6470 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6471 (alpha-osf1-tdep.o): New dependency list.
6472 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6473 and skip_sigtramp_frame members.
6474 * alpha-linux-tdep.c: Include gdbcore.h.
6475 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6476 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6477 * alpha-osf1-tdep.c: New file.
6478 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6479 alpha-osf1-dep.c.
6480 (alpha_frame_past_sigtramp_frame): New function.
6481 (alpha_dynamic_sigtramp_offset): Ditto.
6482 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6483 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6484 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6485 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6486 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6487 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6488 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6489 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6490 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6491 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6492 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6493 to find_solib_trampoline_target.
6494 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6495 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6496 (SKIP_TRAMPOLINE_CODE): Remove.
6497 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6498 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6499 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6500 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6501 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6502 (PROC_SIGTRAMP_MAGIC): Ditto.
6503 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6504 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6505 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6506 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6507 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6508
2f4bc57b
JT
65092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6510
6511 * NEWS: Note that Alpha targets are now multi-arch.
6512
665132f9
MS
65132002-04-24 Michael Snyder <msnyder@redhat.com>
6514
6515 * parser-defs.h (prev_lexptr): New external variable.
6516 * parse.c (parse_exp_1): Set prev_lexptr to null before
6517 calling the language-specific parser.
6518 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6519 (yyerror): Use prev_lexptr in error reporting.
6520
32872fa7
DJ
65212002-04-24 Daniel Jacobowitz <drow@mvista.com>
6522
6523 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6524 * gregset.h: If FILL_FPXREGSET is defined, provide
6525 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6526 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6527 is defined, call fill_fpxregset.
6528
57e76fac
MS
65292002-04-24 Roland McGrath <roland@frob.com>
6530
6531 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6532 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6533 (supply_gregset, supply_fpregset): New functions.
6534
6535 * gnu-nat.c (gnu_find_memory_regions): New function.
6536 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6537 (gnu_xfer_memory): Add a cast.
6538
f43845b3
MS
65392002-04-24 Michael Snyder <msnyder@redhat.com>
6540
361d1df0 6541 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6542 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6543 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6544 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6545 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6546 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6547
a0abec03
AC
6548Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6549
6550 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6551 NUM_PSEUDO_REGS can be used.
6552
d7bd68ca
AC
65532002-04-24 Andrew Cagney <ac131313@redhat.com>
6554
6555 * arch-utils.h: Update copyright.
6556
6557 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6558 * gdbarch.h, gdbarch.c: Re-generate.
6559
6560 * inferior.h (IN_SIGTRAMP): Delete definition.
6561 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6562 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6563
6564 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6565 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6566 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6567 (find_proc_framesize): Ditto.
6568 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6569 (alpha_init_extra_frame_info): Ditto.
6570 * infrun.c (handle_inferior_event): Ditto.
6571 (handle_inferior_event): Ditto.
6572 (check_sigtramp2): Ditto.
6573 * blockframe.c (create_new_frame): Ditto.
6574 (get_prev_frame): Ditto.
6575 * ppc-linux-tdep.c: Update comments.
6576 * i386-linux-tdep.c: Update comments.
6577 * breakpoint.c (bpstat_what): Update comment.
6578
4867e41e
DM
65792002-04-24 David S. Miller <davem@redhat.com>
6580
21d83aa5
DM
6581 * i960-tdep.c (register_in_window_p): New function.
6582 (i960_find_saved_register): Use it instead of
6583 REGISTER_IN_WINDOW_P.
6584 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6585
4867e41e
DM
6586 * symtab.h (find_stab_function_addr): Kill extern.
6587 * minsyms.c (find_stab_function_addr): Remove from here...
6588 * dbxread.c: ... to here, and mark it static.
6589
69cdf6a2
DM
65902002-04-20 David S. Miller <davem@redhat.com>
6591
6592 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6593 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6594
5a595886
DM
65952002-04-21 David S. Miller <davem@redhat.com>
6596
6597 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6598 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6599 (vx_write_register): Likewise.
6600
1da1a192
JB
66012002-04-23 J. Brobecker <brobecker@gnat.com>
6602
6603 * source.c (is_regular_file): New function.
6604 (openp): Check wether file to open is a regular file
6605 to avoid opening directories.
6606
baa6f10b
JT
66072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6608
6609 * findvar.c (extract_signed_integer): Cast printf argument
6610 to suppress format warning.
6611 (extract_unsigned_integer): Likewise.
6612 * infcmd.c (registers_info): Likewise.
6613 * top.c (get_prompt_1): Likewise.
6614 * valops.c (value_assign): Likewise.
6615 * valprint.c (print_decimal): Likewise.
6616
b2c4da81
L
66172002-04-22 H.J. Lu (hjl@gnu.org)
6618
6619 * c-exp.y (typebase): Support
361d1df0 6620
b2c4da81
L
6621 [long|long long|short] [signed|unsigned] [int|]
6622
6623 and
6624
6625 signed [long|long long|short] int
6626
f267bd6a
JT
66272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6628
6629 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6630 and vax-tdep.h.
6631 * vax-tdep.h: New file.
6632 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6633 Make several routines static.
6634 (vax_get_saved_register): New function.
6635 (vax_gdbarch_init): New function.
6636 (_initialize_vax_tdep): Register vax_gdbarch_init.
6637 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6638 Remove macros now under the control of gdbarch.
6639
da3c6d4a
MS
66402002-04-22 Michael Snyder <msnyder@redhat.com>
6641
11d3b27d
MS
6642 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6643 Some whitespace and coding standards tweaks.
da3c6d4a 6644
a33f7558
JT
66452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6646
6647 * vax-tdep.c: Include regcache.h.
6648 (vax_call_dummy_words): New.
6649 (sizeof_vax_call_dummy_words): New.
6650 (vax_fix_call_dummy): New function.
6651 (vax_saved_pc_after_call): Ditto.
6652 * config/vax/tm-vax.h: Don't include regcache.h.
6653 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6654 (CALL_DUMMY): Remove.
6655 (CALL_DUMMY_WORDS): Define.
6656 (SIZEOF_CALL_DUMMY_WORDS): Define.
6657 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6658
47a73475
MS
66592002-04-18 Michael Snyder <msnyder@redhat.com>
6660
6661 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6662
52efde73
JT
66632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6664
6665 * vax-tdep.c (vax_frame_chain): New function.
6666 (vax_push_dummy_frame): Ditto.
6667 (vax_pop_frame): Ditto.
6668 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6669 (FRAMELESS_FUNCTION_INVOCATION): Use
6670 generic_frameless_function_invocation_not.
6671 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6672 (POP_FRAME): Use vax_pop_frame.
6673
ea74468c
JT
66742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6675
6676 * vax-tdep.c (vax_store_struct_return): New function.
6677 (vax_extract_return_value): Ditto.
6678 (vax_store_return_value): Ditto.
6679 (vax_extract_struct_value_address): Ditto.
6680 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6681 vax_store_struct_return.
6682 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6683 (STORE_RETURN_VALUE): Use vax_store_return_value.
6684 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6685
5516aa92
JT
66862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6687
6688 * vax-tdep.c (vax_frame_saved_pc): New function.
6689 (vax_frame_args_address_correct): Ditto.
6690 (vax_frame_args_address): Ditto.
6691 (vax_frame_locals_address): Ditto.
6692 (vax_frame_num_args): Move code to be in proximity to
6693 other frame-related functions.
6694 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6695 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6696 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6697 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6698 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6699
36af0b35
L
67002002-04-22 H.J. Lu (hjl@gnu.org)
6701
6702 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6703 includedir.
6704
ab62c900
JT
67052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6706
6707 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6708 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6709 (FRAME_INIT_SAVED_REGS): New macro.
6710
7232b100
JT
67112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6712
6713 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6714
b70d2aee
JT
67152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6716
6717 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6718 where needed.
6719 (fetch_osf_core_registers): Likewise.
6720 (supply_gregset): Likewise.
6721
a0e8a2d1 67222002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6723
a0e8a2d1
JB
6724 * symfile.h (get_section_index): Define.
6725 * symfile.c (get_section_index): New function.
6726 * mdebugread.c (SC_IS_SBSS): New macro.
6727 (SC_IS_BSS): Return true for the scBss storage class only, as
6728 the scSBss storage class refers to the .sbss section.
6729 (parse_partial_symbols): Discard the symbols which associated
6730 section does not exist.
6731 Make sure to use the .sbss section index for symbols which
6732 storage class is scBss, rather than using the .bss section index.
6733
51eb8b08
JT
67342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6735
6736 * vax-tdep.c: Update copyright years.
6737 (vax_register_name): New function.
6738 (vax_register_byte): Ditto.
6739 (vax_register_raw_size): Ditto.
6740 (vax_register_virtual_size): Ditto.
6741 (vax_register_virtual_type): Ditto.
6742 * config/vax/tm-vax.h: Update copyright years.
6743 (REGISTER_NAMES): Remove.
6744 (REGISTER_NAME): Define.
6745 (REGISTER_BYTE): Use vax_register_byte.
6746 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6747 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6748 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6749
6cc1c0a8
AC
67502002-04-21 Andrew Cagney <ac131313@redhat.com>
6751
6752 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6753 declaration
6754 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6755
9319a2fe
DM
67562002-04-21 David S. Miller <davem@redhat.com>
6757
6758 * arch-utils.c (generic_prologue_frameless_p): Kill
6759 SKIP_PROLOGUE_FRAMELESS_P code.
6760 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6761 references.
6762 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6763 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6764 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6765 references.
6766 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6767 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6768 (sparc_gdbarch_init): Pass it to
6769 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6770
e9ed6d01
JT
67712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6772
6773 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6774 (alphabsd-nat.o): New dependency list.
6775
36012033
JT
67762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6777
6778 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6779 alphafbsd-tdep.c.
6780 (alpha-linux-tdep.o): New dependency list.
6781 (alphafbsd-tdep.o): Likewise.
6782
3379287a
JT
67832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6784
6785 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6786 to here...
6787 * alpha-tdep.c: ...from here.
6788 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6789
4bcbd6cb
JT
67902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6791
6792 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6793 prototype from here...
6794 * alpha-tdep.h: ...to here.
6795
b31da25e
AC
67962002-04-21 Andrew Cagney <ac131313@redhat.com>
6797
6798 * frame.h (selected_frame_level): Document as deprecated.
6799 (frame_relative_level): Declare.
6800 * stack.c (frame_relative_level): New function.
6801 (selected_frame_level): Document as deprecated.
6802 (select_frame): Do not set the selected_frame_level.
6803
6804 * stack.c (frame_info, record_selected_frame): Update.
6805 (frame_command, current_frame_command): Update.
6806 (up_silently_base, up_command, down_silently_base): Update.
6807 (down_command): Update.
6808 * inflow.c (kill_command): Update.
6809 * tracepoint.c (finish_tfind_command): Update.
6810 * corelow.c (core_open): Update.
6811 * thread.c (info_threads_command): Update.
6812 (do_captured_thread_select): Update.
6813 * infcmd.c (finish_command): Update.
6814 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6815
9c1d6fe5
JT
68162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6817
6818 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6819
ab89facf
AC
68202002-04-21 Andrew Cagney <ac131313@redhat.com>
6821
6822 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6823 type const.
6824
82a4efa1
JT
68252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6826
6827 * alphafbsd-tdep.c: Update copyright years. Include
6828 alpha-tdep.h.
6829 (alphafbsd_use_struct_convention): Make static.
6830 (alphafbsd_init_abi): New function.
6831 (_initialize_alphafbsd_tdep): New function.
6832 * config/alpha/tm-fbsd.h: Update copyright years.
6833 (USE_STRUCT_CONVENTION): Remove.
6834
44dffaac
JT
68352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6836
6837 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6838 an Alpha ABI variant.
6839 (alpha_abi_handler_list): Declare.
6840 (alpha_gdbarch_register_os_abi): New function.
6841 (alpha_gdbarch_init): Give registered ABI variant handlers a
6842 chance to tweak the gdbarch once we have set up defaults.
6843 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6844
65585be4
JT
68452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6846
6847 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6848 to standard_coerce_float_to_double.
6849 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6850
d9b023cc
JT
68512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6852
6853 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6854 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6855 from gdbarch_tdep rather than a constant.
6856 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6857 the default text address for all Alpha Unix ABIs.
6858 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6859 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6860
dc129d82
JT
68612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6862
6863 * alpha-tdep.h: New file. Includes several Alpha target constants
6864 taken from...
6865 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6866 let gdbarch deal with.
6867 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6868 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6869 to dependency list.
6870 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6871 Alpha target register names.
6872 * alphabsd-nat.c: Likewise.
6873 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6874 Alpha target register names. Make serveral routines static.
6875 (alpha_get_saved_register): New function.
6876 (alpha_abi_names): New.
6877 (process_note_abi_tag_sections): New function.
6878 (get_elfosabi): New function.
6879 (alpha_gdbarch_init): New function.
6880 (alpha_dump_tdep): New function.
6881 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6882
d49d1e0a
AC
68832002-04-21 Andrew Cagney <ac131313@redhat.com>
6884
6885 * frame.c (find_saved_register): Delete #ifdef
6886 HAVE_REGISTER_WINDOWS code.
6887 * config/sparc/tm-sparc.h: Update comments.
6888 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6889
92e8c9ed
AC
68902002-04-21 Andrew Cagney <ac131313@redhat.com>
6891
6892 * i960-tdep.c (i960_find_saved_register): New function.
6893 (i960_get_saved_register): New function.
6894 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6895 (i960_get_saved_register): Declare.
6896 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6897
e1925118
DM
68982002-04-20 David S. Miller <davem@redhat.com>
6899
6900 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6901
29673b29
AC
69022002-04-20 Andrew Cagney <ac131313@redhat.com>
6903
6904 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6905 instead of NUM_PSEUDO_REGS.
6906
6c86dcd5
DM
69072002-04-20 David S. Miller <davem@redhat.com>
6908
6909 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6910 GDB_MULTI_ARCH_PARTIAL
6911 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6912 define, let tm-sp64.h do it.
6913
aa40ec90
JT
69142002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6915
6916 * frame.c (find_saved_register): Avoid a NULL pointer
6917 dereference and actually walk the frame list.
6918
0f79675b
AC
69192002-04-20 Andrew Cagney <ac131313@redhat.com>
6920
6921 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6922 sorted in most most-recent-used order. Document.
6923 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6924
f91305dd 69252002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6926
6927 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6928 instead of ->prev.
6929 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6930 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6931 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6932 instead of ->prev.
6933
73d322b1
EZ
69342002-04-19 Elena Zannoni <ezannoni@redhat.com>
6935
6936 Fix PR gdb/471.
6937 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6938 (build_builtin_type_vec128): Ditto.
6939 (append_composite_type_field): Fix calculation of type length in
6940 union case.
6941
ccd9a834
EZ
69422002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6943
6944 * config/djgpp/README: Update.
6945
6946 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6947 compiler warnings.
6948
a57f9e49
JT
69492002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6950
6951 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6952 (alpha_setup_arbitrary_frame): ...to this.
6953 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6954 for alpha_setup_arbitrary_frame.
6955
f4f9705a
AC
69562002-04-18 Andrew Cagney <cagney@redhat.com>
6957
6958 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6959 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6960
f4f9705a
AC
6961 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6962 * target.h (memory_breakpoint_from_pc): Update declaration.
6963 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6964
6965 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6966 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6967 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6968 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6969 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6970 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6971 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6972 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6973 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6974 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6975 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6976 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6977
6978 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6979 const pointer.
6980 * monitor.c (monitor_insert_breakpoint): Ditto.
6981 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6982
6983 * config/mcore/tm-mcore.h: Update copyright.
6984 * mem-break.c: Ditto.
6985 * xstormy16-tdep.c: Ditto.
6986
29f319b8
PM
69872002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6988
6989 * p-exp.y: Add precedence rule for '^' token.
6990 This removes the shift/reduce conflicts.
6991 Remove the comment concerning these shift/reduce conflicts.
6992
ebeac11a
EZ
69932002-04-18 Elena Zannoni <ezannoni@redhat.com>
6994
6995 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6996 (registers_powerpc_nofp): New register set for processors
6997 without floating point unit.
6998
27c31547
DM
69992002-04-18 David S. Miller <davem@redhat.com>
7000
7001 * MAINTAINERS: Add myself to write-after-approval.
7002
47a73475
MS
70032002-04-17 Michael Snyder <msnyder@redhat.com>
7004
7005 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7006
953836b2
AC
70072002-04-17 Andrew Cagney <ac131313@redhat.com>
7008
7009 * rs6000-tdep.c (frame_initial_stack_address): Use
7010 frame_register_read to read the alloca_reg.
7011
8b0d4340
AC
70122002-04-17 Andrew Cagney <ac131313@redhat.com>
7013
7014 * frame.c (find_saved_register): Find saved registers in the next
7015 not prev frame.
7016 Fix PR gdb/365.
7017
d8864532
AC
70182002-04-17 Andrew Cagney <ac131313@redhat.com>
7019
7020 * gdbarch.sh (LANG): Set to ``c''.
7021
36cc83a3 70222002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7023
36cc83a3 7024 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7025
2f4150cc 70262002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7027
7028 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7029 Update copyright.
7030
628703c6 7031 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7032 Also fix PR gdb/391.
361d1df0 7033
56157b4a
AC
70342002-04-14 Andrew Cagney <ac131313@redhat.com>
7035
7036 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7037 * aclocal.m4, configure: Re-generate.
7038 Fix PR gdb/391.
361d1df0 7039
6d1e3329
EZ
70402002-04-14 Elena Zannoni <ezannoni@redhat.com>
7041
7042 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7043 instead of tm_print_insn.
7044
cb06fa07
EZ
70452002-04-14 Elena Zannoni <ezannoni@redhat.com>
7046
7047 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7048
f208ba17
AC
70492002-04-14 Andrew Cagney <ac131313@redhat.com>
7050
7051 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7052 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7053 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7054
20f01a46
DH
70552002-04-12 Don Howard <dhoward@redhat.com>
7056
7057 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7058 max_user_call_depth.
7059 (init_cmd_lists): Initialize the new value;
7060 * cli/cli-script.c (execute_user_command): Limit the call depth of
7061 user defined commands. This avoids a core-dump when user commands
7062 are infinitly recursive.
7063
a88376a3
KB
70642002-04-12 Kevin Buettner <kevinb@redhat.com>
7065
7066 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7067 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7068 from tdep struct instead of DEFAULT_LR_SAVE.
7069 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7070 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7071 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7072
f2172603
MS
70732002-04-12 Michael Snyder <msnyder@redhat.com>
7074
694f61fb 7075 * Remote.c: Spelling fix.
20fe79c8
MS
7076 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7077 If no symbol found for "sbrk", try "_sbrk".
7078 (make_output_phdrs): Use bfd_section_name.
7079 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7080 * eval.c: Indentation fix-ups.
169a7369
MS
7081 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7082 in case it gets applied to an address that is already
7083 in the instruction space.
de74f71f
MS
7084 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7085 * symfile.c: Fix indentation, long lines.
f2172603
MS
7086 * source.c: White space fix-up.
7087
cda5a58a
AC
70882002-04-12 Andrew Cagney <cagney@redhat.com>
7089
7090 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7091 * frame.c (frame_register_read): New function. Return non-zero on
7092 success.
7093 (read_relative_register_raw_bytes_for_frame): Delete.
7094 (read_relative_register_raw_bytes): Delete.
7095 * frame.h (frame_register_read): Declare.
7096 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7097 * sh-tdep.c: Ditto.
7098 * infcmd.c (do_registers_info): Ditto.
7099 * hppa-tdep.c: Ditto.
7100 * rs6000-tdep.c: Ditto.
7101 * h8500-tdep.c: Ditto.
7102 * mips-tdep.c: Ditto.
7103 * h8300-tdep.c: Ditto.
7104 * z8k-tdep.c: Ditto.
7105
2ea5f656
KB
71062002-04-12 Kevin Buettner <kevinb@redhat.com>
7107
7108 From Jimi X <jimix@watson.ibm.com>:
7109 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7110 64-bit SysV ABI.
7111
27b15785
KB
71122002-04-12 Kevin Buettner <kevinb@redhat.com>
7113
7114 From Jimi X <jimix@watson.ibm.com>:
7115 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7116 bfd info.
7117
5d57ee30
KB
71182002-04-12 Kevin Buettner <kevinb@redhat.com>
7119
7120 From Jimi X <jimix@watson.ibm.com>:
7121 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7122 register sets for these processor variants.
7123
bc1e36ca
DJ
71242002-04-11 Daniel Jacobowitz <drow@mvista.com>
7125
bc1e36ca
DJ
7126 * regformats/reg-ppc.dat: Support FPSCR.
7127
e3f36dbd
KB
71282002-04-11 Kevin Buettner <kevinb@redhat.com>
7129
7130 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7131 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7132 Add fpscr as an invalid/unfetchable register.
7133 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7134 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7135 (fill_fpregset): Add support for register fpscr.
7136 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7137 (fill_gregset): Account for the fact that register ``mq'' might
7138 not exist.
7139 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7140 (registers_power): Add fpscr to register set at slot 71.
7141 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7142 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7143
943c9c25
MS
71442002-04-11 Michael Snyder <msnyder@redhat.com>
7145
7146 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7147 * configure: Regenerate.
7148 * config.in: Regenerate.
7149 * acconfig.h: Add define for _SYSCALL32.
7150 * core-sol2.c: Remove #define _SYSCALL32.
7151 * solib-legacy.c: Remove #define _SYSCALL32.
7152
d8c0a2e7
AC
71532002-04-10 Andrew Cagney <ac131313@redhat.com>
7154
7155 * stack.c (select_frame): Cleanup internal error message, do not
7156 use %p.
7157
7cc19214
AC
71582002-04-10 Andrew Cagney <ac131313@redhat.com>
7159
7160 * stack.c (select_frame): Check that selected_frame and the
7161 specified level are as expected.
7162 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7163 Update copyright.
7164 * frame.h (struct frame_info): Add field `level'. Update
7165 copyright.
7166 Work-in-progress PR gdb/464.
7167
67a2b77e
AC
71682002-04-10 Andrew Cagney <ac131313@redhat.com>
7169
7170 * maint.c (maint_print_section_info): Rename print_section_info.
7171 (print_bfd_section_info, print_objfile_section_info): Update.
7172 * inferior.h (struct gdbarch): Add opaque declaration.
7173 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7174 * gdbarch.h: Regenerate.
7175
8cfda98c
ML
71762002-04-10 Michal Ludvig <mludvig@suse.cz>
7177
7178 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7179 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7180 (kernel_u_size): Added.
7181 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7182 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7183
ca439ad2 71842002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7185
ca439ad2
JI
7186 * valarith.c (find_size_for_pointer_math): New function, either returns
7187 the size for a pointer's target, returns 1 for void *, or errors for
7188 incomplete types.
7189 (value_add, value_sub): use find_size_for_pointer_math.
7190
2f2893d9
DJ
71912002-04-09 Daniel Jacobowitz <drow@mvista.com>
7192
7193 * linux-low.c (linux_look_up_symbols): New hook.
7194 (linux_target_ops): Add linux_look_up_symbols.
7195 * remote-utils.c (decode_address): New function.
7196 (look_up_one_symbol): New function.
7197 * server.c (handle_query): Call target look_up_symbols hook.
7198 * server.h (look_up_one_symbol): Add prototype.
7199 * target.h (struct target_ops): Add look_up_symbols hook.
7200
96cb11df
AC
72012002-04-09 Andrew Cagney <ac131313@redhat.com>
7202
7203 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7204 override FP_REGNUM with frame->fp. Update copyright.
7205 * parse.c (num_std_regs, std_regs): Delete.
7206 (target_map_name_to_register): Do not search std_regs. Update
7207 function description.
7208 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7209 declarations. Update copyright.
7210 Fix PR gdb/251.
361d1df0 7211
97658e92
DJ
72122002-04-09 Daniel Jacobowitz <drow@mvista.com>
7213
7214 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7215 after the last symbol in a block.
7216
6044e3eb
PM
72172002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7218
7219 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7220 is non zero as a found symbol.
7221
0406ec40
AC
72222002-04-08 Andrew Cagney <ac131313@redhat.com>
7223
7224 * findvar.c: Include "builtin-regs.h".
7225 (value_of_register): Call value_of_builtin_reg when applicable.
7226 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7227 (target_map_name_to_register): Call
7228 builtin_reg_map_name_to_regnum.
7229 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7230 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7231 (builtin_regs_h): Define.
7232 (builtin-regs.o): New target.
7233 (findvar.o): Add $(builtin_regs_h).
7234 * builtin-regs.c, builtin-regs.h: New files.
7235 * std-regs.c: New file.
7236 Partial fix for PR gdb/251.
7237
56a6dfb9
KB
72382002-04-08 Kevin Buettner <kevinb@redhat.com>
7239
7240 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7241 it's no longer required.
7242
3a808432
AC
72432002-04-08 Andrew Cagney <ac131313@redhat.com>
7244
7245 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7246
7c40d541
KB
72472002-04-08 Kevin Buettner <kevinb@redhat.com>
7248
7249 From Jimi X <jimix@watson.ibm.com>:
7250 * rs6000-tdep.c (rs6000_software_single_step): Use
7251 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7252 and size. Use target_insert_breakpoint() and
7253 target_remove_breakpoint() to insert and remove breakpoints
7254 instead of explicit memory reads and writes.
7255
cc9836a8
KB
72562002-04-08 Kevin Buettner <kevinb@redhat.com>
7257
7258 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7259 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7260 ELF_OBJECT_FORMAT ifdef.
7261
7495d1dc
KB
72622002-04-08 Kevin Buettner <kevinb@redhat.com>
7263
7264 From Jimi X <jimix@watson.ibm.com>:
7265 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7266
4288e836
KB
72672002-04-08 Kevin Buettner <kevinb@redhat.com>
7268
7269 From Jimi X <jimix@watson.ibm.com>:
7270 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7271 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7272
a4e4e501
MK
72732002-04-07 Mark Kettenis <kettenis@gnu.org>
7274
7275 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7276 s/asprintf/xasprintf/.
7277 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7278
006defba
AC
72792002-04-07 Andrew Cagney <ac131313@redhat.com>
7280
7281 I believe Jeff Law denies responsability for this one:
7282 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7283 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7284 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7285 Work-around for PR gdb/366.
7286
7aa83cac
EZ
72872002-04-07 Elena Zannoni <ezannoni@redhat.com>
7288
7289 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7290 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7291 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7292
cf1fcca1
EZ
72932002-04-07 Elena Zannoni <ezannoni@redhat.com>
7294
7295 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7296 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7297 information.
7298
3f289e6f
AC
72992002-04-07 Andrew Cagney <ac131313@redhat.com>
7300
7301 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7302 maintainer.
7303
129188f6
AC
73042002-04-07 Andrew Cagney <ac131313@redhat.com>
7305
7306 * README (Reporting Bugs in GDB): Document the bug web page as the
7307 prefered way of submitting bugs.
7308 Fix PR gdb/402.
7309
1200cd6e
AC
73102002-04-06 Andrew Cagney <ac131313@redhat.com>
7311
7312 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7313 -1. Update comment.
7314 * gdbarch.h, gdbarch.c: Re-generate.
7315
2853c33c
AS
73162002-04-07 Andreas Schwab <schwab@suse.de>
7317
7318 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7319 buffer to regcache_collect.
7320
c2169756
AC
73212002-04-06 Andrew Cagney <ac131313@redhat.com>
7322
7323 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7324 * gdbarch.c, gdbarch.h: Re-generate.
7325
25f1b008
AC
73262002-04-06 Andrew Cagney <ac131313@redhat.com>
7327
7328 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7329 declaration. Fix -Werror.
7330
59263426
DJ
73312002-04-05 Daniel Jacobowitz <drow@mvista.com>
7332
7333 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7334 * gdbarch.c: Regenerate.
7335
f5db4da3
MS
73362002-04-05 Michael Snyder <msnyder@redhat.com>
7337
80f8a6eb
MS
7338 * breakpoint.c (clear_command): Rewrite middle section to
7339 combine two loops with identical control conditions.
7340 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7341 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7342
ad3dcc5c
L
73432002-04-05 H.J. Lu (hjl@gnu.org)
7344
7345 * solib-svr4.c (bkpt_names): Add "__start".
7346
f32e7a74
AC
73472002-04-04 Andrew Cagney <ac131313@redhat.com>
7348
7349 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7350 as test for 64 bit target.
7351
8227c0ff
AC
73522002-04-05 Andrew Cagney <ac131313@redhat.com>
7353
7354 * h8500-tdep.c (h8500_write_fp): Delete function.
7355 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7356 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7357 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7359 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7360 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7361 (s390_write_fp):
7362 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7363 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7364 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7365 (d10v_write_fp): Delete function.
7366 * inferior.h (write_fp, generic_target_write_fp): Delete
7367 declarations.
7368 * regcache.c (generic_target_write_fp): Delete function.
7369 (write_fp): Delete function.
7370 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7371 * gdbarch.h, gdbarch.c: Regenerate.
7372 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7373 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7374 (sparc64_write_fp): Delete declaration.
7375 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7376 (h8500_write_fp): Delete declaration.
7377
2757dd86
AC
73782002-04-04 Andrew Cagney <ac131313@redhat.com>
7379
7380 * sparc-tdep.c (sparc64_write_fp): Delete.
7381 (sparc_push_dummy_frame): Replace write_fp call with code to store
7382 the FP directly.
7383 (sparc_gdbarch_init): Do not initialize write_fp.
7384
c69255e1
KB
73852002-04-05 Kevin Buettner <kevinb@redhat.com>
7386
7387 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7388 clause.
7389
ae767bfb
JB
73902002-03-29 Jim Blandy <jimb@redhat.com>
7391
7392 * stack.c (get_selected_block): Add new argument `addr_in_block',
7393 used to return the exact code address we used to select the block,
7394 not just the block.
7395 * blockframe.c (get_frame_block, get_current_block): Same.
7396 * frame.h (get_frame_block, get_current_block,
7397 get_selected_block): Update declarations.
7398 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7399 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7400
84d2ac95
MS
74012002-04-05 Michael Snyder <msnyder@redhat.com>
7402
7403 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7404 warning message.
7405
596aa3bf
JB
74062002-04-05 J. Brobecker <brobecker@gnat.com>
7407
7408 * utils.c (xfullpath): New function.
7409 * defs.h (xfullpath): Add declaration.
7410 * source.c (openp): Use xfullpath in place of gdb_realpath to
7411 avoid resolving the basename part of filenames when the
7412 associated file is a symbolic link. This fixes a potential
7413 inconsistency between the filenames known to GDB and the
7414 filenames it prints in the annotations.
7415 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7416 to be able to match a filename with either the real filename, or
7417 the name of any symbolic link to this file.
7418 (lookup_partial_symtab): Ditto.
7419
c02f5703
MS
74202002-04-04 Michael Snyder <msnyder@redhat.com>
7421
7422 * breakpoint.c: Add support for hardware breakpoints in overlays.
7423 (overlay_events_enabled): New state variable.
7424 (insert_breakpoints): Use overlay_events_enabled to decide
7425 whether to attempt to set a breakpoint at the overlay load addr.
7426 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7427 (remove_breakpoint): Use overlay_events_enabled to decide
7428 whether breakpoints need to be removed from overlay load addr.
7429 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7430 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7431 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7432 disable_overlay_breakpoints): Update overlay_events_enabled.
7433
5fb290d7
DJ
74342002-04-04 Daniel Jacobowitz <drow@mvista.com>
7435
7436 * dwarf2read.c (struct function_range): New.
7437 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7438 (check_cu_functions): New.
7439 (read_file_scope): Initialize global function lists.
7440 Call dwarf_decode_line after processing children.
7441 (read_func_scope): Add to global function list.
7442 (dwarf_decode_lines): Call check_cu_functions everywhere
7443 record_line is called. Call record_line with a linenumber
7444 of 0 to mark sequence ends.
7445
7b3fabf0
ML
74462002-04-04 Michal Ludvig <mludvig@suse.cz>
7447
361d1df0 7448 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7449 change sync with glibc.
7450
bce58c09
JB
74512002-04-03 Jim Blandy <jimb@redhat.com>
7452
7453 * configure.in: Call AC_C_INLINE.
7454 * configure: Regenerated.
361d1df0 7455
2fccf04a
DJ
74562002-04-01 Daniel Jacobowitz <drow@mvista.com>
7457
7458 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7459 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7460
2d1bfe2e
MK
74612002-03-31 Mark Kettenis <kettenis@gnu.org>
7462
a5941fbf
MK
7463 * NEWS: Mention gcore support on FreeBSD/i386.
7464
a90cd31d
MK
7465 * fbsd-proc.c: New file.
7466 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7467 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7468
2d1bfe2e
MK
7469 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7470 while statement.
7471
9eb6e5a1
JB
74722002-03-29 Jim Blandy <jimb@redhat.com>
7473
7474 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7475 unescaped newlines in string literals, but newer ones don't. So
7476 escape them.
7477
f02df580
MS
74782002-03-26 Michael Snyder <msnyder@redhat.com>
7479 Andrew Cagney <cagney@redhat.com>
7480
361d1df0 7481 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7482 restore file to memory.
7483 * cli/cli-dump.h: New file.
7484 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7485 * NEWS: Mention new commands.
f02df580 7486
109f874e
MS
74872002-03-28 Michael Snyder <msnyder@redhat.com>
7488
7489 * symfile.c (symbol_file_add): Move test for null symbols to later.
7490
520f6ade
AC
74912002-03-27 Andrew Cagney <ac131313@redhat.com>
7492
7493 From veksler at il.ibm.com:
7494 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7495 the xstrduped original path.
7496 Fix PR gdb/417.
7497
d4654627
MS
74982002-03-27 Michael Snyder <msnyder@redhat.com>
7499
7500 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7501 * infcmd.c (_initialize_infcmd): Ditto.
7502 * language.c (_initialize_language): Ditto.
7503 * symfile.c (_initialize_symfile): Ditto.
7504 * top.c (_init_main): Ditto.
7505 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7506
6be8bc0c
EZ
75072002-03-27 Elena Zannoni <ezannoni@redhat.com>
7508
7509 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7510 vector registers handling.
7511 (skip_prologue): Handle new AltiVec instructions. Fill in new
7512 fields of frame data.
7513 (frame_get_saved_regs): Fill in information for AltiVec registers.
7514
12af6855
JB
75152002-03-27 Jim Blandy <jimb@redhat.com>
7516
7517 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7518 a function; leave this macro here to invoke that function.
7519 (symbol_init_mangled_name): Declaration for that function.
7520 * symtab.c (symbol_init_mangled_name): New function.
7521
dc672865
AC
75222002-03-27 Andrew Cagney <ac131313@redhat.com>
7523
7524 * valarith.c: Replace strerror with safe_strerror.
7525 * tracepoint.c: Ditto.
7526 * lin-lwp.c: Ditto.
7527 * go32-nat.c: Ditto.
7528 * inflow.c: Ditto.
7529 * gnu-nat.c: Ditto.
7530
d96429cd
AS
75312002-03-27 Andreas Schwab <schwab@suse.de>
7532
7533 * event-top.c (command_line_handler): Remove useless if.
7534
7e336ba1
AJ
75352002-03-27 Andreas Jaeger <aj@suse.de>
7536
7537 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7538 comment.
7539
de220d0f
ML
75402002-03-27 Michal Ludvig <mludvig@suse.cz>
7541
7542 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7543 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7544 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7545 (x86_64_linux_dr_get_status, supply_gregset),
7546 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7547 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7548 (x86_64_register_info_table): Add.
7549 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7550 (x86_64_register_raw_size, x86_64_register_virtual_type),
7551 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7552 general x86_64_register_info_table.
7553 (i386_gdbarch_init): gdbarch_register_bytes is now set
7554 dynamicaly during initialization.
7555 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7556 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7557
0e98d0a7
DJ
75582002-03-27 Daniel Jacobowitz <drow@mvista.com>
7559
7560 * gdbserver/server.c (main): Call target_signal_to_host_p
7561 and target_signal_to_host on signals received from the remote.
7562 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7563 target_signal_from_host on signals sent to the remote.
7564 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7565 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7566
3130066b
DJ
75672002-03-27 Daniel Jacobowitz <drow@mvista.com>
7568
7569 * signals/signals.c: Include "server.h" in gdbserver build.
7570 (target_signal_from_name): Don't use STREQ.
7571 (_initialize_signals): Likewise. Don't include function in
7572 gdbserver build.
7573
9aedf4f4
DJ
75742002-03-27 Daniel Jacobowitz <drow@mvista.com>
7575
7576 * signals.c: Moved to...
7577 * signals/signals.c: Here.
7e336ba1 7578 * Makefile (signals.o): Update.
9aedf4f4 7579
3fa41cdb
JL
75802002-03-26 Jeff Law (law@redhat.com)
7581
7582 * somread.c (som_symtab_read): Remove some commented out code and
7583 updated related comments. Do not set the minimal symbol table to
7584 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7585 in a dynamic executable.
7586 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7587 where we are unable to find the minimal symbol for the given
7588 PC value.
7589
ee677e8d
MS
75902002-03-25 Jeff Law (law@redhat.com)
7591
7592 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7593
e76e1718
ML
75942002-03-25 Michal Ludvig <mludvig@suse.cz>
7595
7596 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7597
18a642a1
AC
75982002-03-23 Andrew Cagney <ac131313@redhat.com>
7599
7600 * command.h: Update copyright.
7601 (struct cmd_list_element): Replace definition with opaque
7602 declaration.
7603 (enum cmd_types): Document that it will eventually be moved to
7604 cli/cli-decode.h
7605 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7606 (MALLOCED_REPLACEMENT): Delete macro.
7607 * Makefile.in (cli_decode_h): Add $(command_h).
7608 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7609 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7610 * completer.c: Include "cli/cli-decode.h".
7611 * maint.c: Include "cli/cli-decode.h".
7612 * cli/cli-decode.h: Include "command.h".
7613 (enum command_class): Delete.
7614 (enum cmd_types): Comment out.
7615 (enum cmd_auto_boolean): Delete.
7616 (enum var_types): Delete.
7617
b2875cc0
AC
76182002-03-23 Andrew Cagney <ac131313@redhat.com>
7619
7620 * cli/cli-decode.c: Include "gdb_assert.h".
7621 (add_set_or_show_cmd): New static function.
7622 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7623 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7624 all fields, such as func, from the set command.
7625
3b45974e
AC
76262002-03-23 Andrew Cagney <ac131313@redhat.com>
7627
7628 * MAINTAINERS (sh-elf): Change warning flag to -w.
7629
823ca731
AC
76302002-03-23 Andrew Cagney <cagney@redhat.com>
7631
7632 * defs.h (error): Add printf format attribute.
7633 * thread-db.c (thread_from_lwp): Fix error format string.
7634 * stack.c (parse_frame_specification): Ditto.
7635 * cli/cli-decode.c (undef_cmd_error): Ditto.
7636 * scm-lang.c (scm_lookup_name): Ditto.
7637 * tracepoint.c (trace_error): Ditto.
7638 * remote-utils.c (usage): Ditto.
7639 * remote.c (compare_sections_command): Ditto.
7640 Fix PR gdb/328.
7641
0e101458
AC
76422002-03-22 Andrew Cagney <ac131313@redhat.com>
7643
7644 * gdbtypes.c (append_composite_type_field): New function.
7645 (init_composite_type): New function.
7646 * gdbtypes.h (append_composite_type_field): Declare.
7647 (init_composite_type): Ditto.
7648
8e0662df
EZ
76492002-03-22 Elena Zannoni <ezannoni@redhat.com>
7650
7651 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7652 function.
8e0662df
EZ
7653 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7654 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7655 structure returning convention for SYSV ABI case, but not
7656 for GNU/Linux, FreeBSD, or NetBSD.
7657
3121eff0
DJ
76582002-03-22 Daniel Jacobowitz <drow@mvista.com>
7659
7660 * symtab.h (lookup_block_symbol): Add mangled_name argument
7661 to prototype.
7662
7663 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7664 with new mangled_name argument.
7665 * linespec.c (decode_line_1): Likewise.
7666 * valops (value_of_this): Likewise.
7667 * symtab.c (lookup_transparent_type): Likewise.
7668 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7669 (lookup_symbol): If we are given a mangled name, pass it down
7670 to lookup_symbol_aux.
7671 (lookup_block_symbol): If we are given a mangled name to check
7672 against, only return symbols which match it.
7673
349b409f
CF
76742002-03-22 Christopher Faylor <cgf@redhat.com>
7675
7676 * win32-nat.c (child_create_inferior): Check for proper shell to use
7677 here, in case the user changes it on the fly.
7678 (_initialize_inftarg): Remove shell path considerations.
7679
2a873819
EZ
76802002-03-21 Elena Zannoni <ezannoni@redhat.com>
7681
7682 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7683 for gdbarch_max_register_raw_size and max_register_virtual_size.
7684 Adjust copyright year.
7685
a1b9830c
DJ
76862002-03-21 Daniel Jacobowitz <drow@mvista.com>
7687
7688 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7689 in a function to cover the entire beginning of the function
7690 as well if it does not already.
7691
8b5790f2
TR
76922002-03-21 Tom Rix <trix@redhat.com>
7693
7694 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7695 (rs6000_ptrace64): Renamed from ptrace64.
7696
bdbe5747
MH
76972002-03-20 Martin M. Hunt <hunt@redhat.com>
7698
7699 * gdbserver/remote-utils.c (remote_open): Don't call
7700 getprotobyname, we're all using TCP here so just use
7701 IPPROTO_TCP.
7e336ba1 7702 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7703
77042002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7705
bdbe5747
MH
7706 * regcache.c (_initialize_regcache): No need to call
7707 build_regcache() at this time; it gets called whenever
7708 the gdbarch changes.
7709
7781cd62
DB
77102002-03-20 David O'Brien <obrien@FreeBSD.org>
7711
7712 * sparc-nat.c: Include sys/param.h where possible.
7713
f65ca430
DJ
77142002-03-20 Daniel Jacobowitz <drow@mvista.com>
7715
7716 Fix PR gdb/422.
7717 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7718 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7719 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7720 complex types.
7721 * stabsread.c (rs6000_builtin_type): Likewise.
7722 (read_sun_floating_type): Likewise.
7723
0c867556
PS
77242002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7725
7726 * stabsread.c (read_member_functions): Remove skip code for duplicate
7727 constructor/destructor methods. Use standard parsing for these
7728 methods and just do not chain them to the list of methods after
7729 parsing.
7730
12b9c64f
AO
77312002-03-19 Alexandre Oliva <aoliva@redhat.com>
7732
7733 * coffread.c: Remove redundant static declarations. Replace
7734 occurrences of `PTR' with `void *'.
7735 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7736 * top.h (quit_cover): Likewise.
7737 * defs.h (catch_errors): Likewise.
7738
349c5d5f
AC
77392002-03-18 Andrew Cagney <ac131313@redhat.com>
7740
7741 * defs.h (XMALLOC): Define.
7742 * gdb-events.sh (XMALLOC): Delete macro.
7743 * gdb-events.c, gdb-events.h: Regenerate.
7744 * gdbarch.sh (XMALLOC): Delete macro.
7745 * gdbarch.c: Regenerate.
7746 * serial.c (XMALLOC): Delete macro.
7747 * ui-file.c (XMALLOC): Ditto.
7748 * ser-unix.h (XMALLOC): Ditto.
7749 * sh-tdep.c (XMALLOC): Ditto.
7750 * ui-out.c (XMALLOC): Ditto.
7751 * utils.c (XMALLOC): Ditto.
7752 * i386-tdep.c (XMALLOC): Ditto.
7753 * gdb-events.c (XMALLOC): Ditto.
7754 * d10v-tdep.c (XMALLOC): Ditto.
7755 * cli-out.c (XMALLOC): Ditto.
7756
7757 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7758 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7759 * ui-file.c, ui-out.c: Ditto.
7760
7d0766f3
AC
77612002-03-18 Andrew Cagney <ac131313@redhat.com>
7762
7763 * command.h (struct cmd_list_element): Add field context.
7764 (set_cmd_context, get_cmd_context): Declare.
7765 * cli/cli-decode.h: Ditto.
7766 * cli/cli-decode.c (get_cmd_context): New function.
7767 (set_cmd_context): New function.
7768 (add_cmd): Initialize context.
7769 Part of fixing PR gdb/145 and PR gdb/146.
7770
5913bcb0
AC
77712002-03-17 Andrew Cagney <ac131313@redhat.com>
7772
1868c04e
AC
7773 * cli/cli-decode.c (cmd_type): New function.
7774 * command.h (cmd_type): Declare.
7775 * infrun.c (set_schedlock_func): Call function cmd_type.
7776 * kod.c (kod_set_os): Call cmd_type.
7777 * cris-tdep.c (cris_version_update): Use function cmd_type.
7778 (cris_mode_update, cris_abi_update): Ditto.
7779
5913bcb0
AC
7780 * command.h: (execute_cmd_post_hook): Declare.
7781 (execute_cmd_pre_hook): Declare.
7782 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7783 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7784 functions. Execute pre/post hook while ensuring that afterwords
7785 hook_in is cleared.
7786 * top.c (execute_command): Use execute_cmd_post_hook, and
7787 execute_cmd_pre_hook to execute pre/post commands.
7788 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7789 hook_stop_stub.
7790 (hook_stop_stub): Call execute_cmd_pre_hook.
7791
b51450c9
AC
77922002-03-17 Andrew Cagney <ac131313@redhat.com>
7793
7794 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7795 set'' and this leads to a core dump. Move xstrdup of
7796 operating_system to after check that it is not NULL.
7797
f66c9f11
AC
77982002-03-17 Andrew Cagney <ac131313@redhat.com>
7799
8e694ecf
AC
7800 * kod.c (kod_set_os): Remove unnecessary check that
7801 ``command->type'' is set_cmd.
7802
f66c9f11
AC
7803 * valprint.c (set_input_radix): Use input_radix.
7804 (set_output_radix): Use output_radix.
7805 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7806 isn't reverted.
7807
9d01611c
AC
78082002-03-16 Andrew Cagney <ac131313@redhat.com>
7809
7810 * value.h (struct value): Delete field ``substring_addr''. Change
7811 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7812 force_core_addr_align and force_pointer_aligh.
7813
7814 * value.h (struct value): Fix typo in above change.
9d01611c 7815
4156bb53
PS
78162002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7817
7818 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7819 to fix internal_error from ``maintenance print architecture''.
7820
0e5e3ea6
PS
78212002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7822
7823 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7824 for gcc versions after gcc-2.8.1.
7825
9b013045
PS
78262002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7827
7828 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7829 for method resolution. Restore adjustment of ``this'' pointer after
7830 calling value_struct_elt, which was accidentally removed during the
7831 HP merge.
7832
376c9600
AC
78332002-03-15 Andrew Cagney <ac131313@redhat.com>
7834
7835 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7836 value_of_register.
7837 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7838 get_saved_register.
7839 * value.h (value_of_register): Update.
7840
a4db0f07
RH
78412002-03-14 Richard Henderson <rth@redhat.com>
7842
7843 * configure.in: Detect declaration for canonicalize_file_name.
7844 * utils.c (canonicalize_file_name): Declare, if needed.
7845 (gdb_realpath): Prefer realpath if available and usable.
7846 * config.in, configure: Rebuild.
7847
96383835
RH
78482002-03-14 Richard Henderson <rth@redhat.com>
7849
7850 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7851 a constant array bound.
7852
7853 * MAINTAINERS: Add myself to write-after-approval.
7854
75245b24
MS
78552002-03-14 Michael Snyder <msnyder@redhat.com>
7856
7857 * symfile.c (syms_from_objfile): Return immediately if no syms.
7858 (symbol_file_add): Return immediately if no syms.
7859 (find_sym_fns): Return immediately if no syms.
7860
e641a1ca
ML
78612002-03-13 Michal Ludvig <mludvig@suse.cz>
7862
7863 * gdbserver/remote-util.c (remote_open): Print remote-side's
7864 IP address when remote debugging over the network.
7e336ba1 7865
df08bfec
DB
78662002-03-12 David O'Brien <obrien@FreeBSD.org>
7867
7868 * config/sparc/fbsd.mh: Fix copyright.
7869 * config/sparc/fbsd.mt: Likewise.
7870
9a57864f
RE
78712002-03-11 Richard Earnshaw <rearnsha@arm.com>
7872
7873 * MAINTAINERS: Fix typo in name of gdb warnings option.
7874 (x86-64): Fix formating so that this can be parsed by awk.
7875
dd7bf85e
DJ
78762002-03-10 Daniel Jacobowitz <drow@mvista.com>
7877
7878 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7879 * defs.h: Include "gdb/signals.h".
7880 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7881
33a0a2ac
ML
78822002-03-10 Michal Ludvig <mludvig@suse.cz>
7883
7884 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7885 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7886 from x86-64-tdep.h
7887
dd824b04
DJ
78882002-03-10 Daniel Jacobowitz <drow@mvista.com>
7889 Don Howard <dhoward@redhat.com>
7890
7891 * mips-tdep.c (ST0_FR): Define.
7892 (mips2_fp_compat): New function, temporarily disabled.
7893 (mips_read_fp_register_single): New function.
7894 (mips_read_fp_register_double): New function.
7895 (mips_print_register): Use them.
7896 (do_fp_register_row): Likewise.
7897
6a41ff59
AC
78982002-03-09 Andrew Cagney <ac131313@redhat.com>
7899
7900 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7901 approval''.
7902
4ea09c10
PS
79032002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7904
7905 * stabsread.c (read_member_functions): Fix is_stub test for
7906 static member functions, improve comment.
7907
6ccc741d
RE
79082002-03-07 Richard Earnshaw <rearnsha@arm.com>
7909
7910 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7911 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7912 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7913 commands that set boolean values.
7914 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7915 (arm_rdi_resume): Always initialize PC.
7916 (arm_rdi_open): Don't use rslt as a boolean.
7917 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7918 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7919 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7920 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7921
438013df
AO
79222002-03-06 Alexandre Oliva <aoliva@redhat.com>
7923
7924 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7925 * configure: Rebuilt.
7926
70ed8774
SC
79272002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7928
7929 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7930 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7931
5ba2abeb
AC
79322002-03-06 Andrew Cagney <ac131313@redhat.com>
7933
7934 * cli/cli-decode.c (set_cmd_completer): New function.
7935 * command.h (set_cmd_completer): Declare.
7936 * cli/cli-decode.h (set_cmd_completer): Ditto.
7937
7938 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7939 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7940 * win32-nat.c (_initialize_inftarg): Ditto.
7941 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7942 * proc-api.c (_initialize_proc_api): Ditto.
7943 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7944 * source.c (_initialize_source): Ditto.
7945 * exec.c (_initialize_exec): Ditto.
7946 * solib.c (_initialize_solib): Ditto.
7947 * top.c (init_main): Ditto.
7948 * tracepoint.c (_initialize_tracepoint): Ditto.
7949 * symfile.c (_initialize_symfile): Ditto.
7950 * printcmd.c (_initialize_printcmd): Ditto.
7951 * infcmd.c (_initialize_infcmd): Ditto.
7952 * corefile.c (_initialize_core): Ditto.
7953
f779ca99
AC
79542002-03-05 Andrew Cagney <ac131313@redhat.com>
7955
7956 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7957
01a3934b
AC
79582002-03-05 Andrew Cagney <ac131313@redhat.com>
7959
7960 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7961
37057839
AC
79622002-03-05 Andrew Cagney <ac131313@redhat.com>
7963
7964 * NEWS: Update headings, 5.2 has branched.
7965
c6ecbae5
DJ
79662002-03-04 Daniel Jacobowitz <drow@mvista.com>
7967
7968 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7969 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7970 (register_addr, REGISTER_RAW_SIZE): Likewise.
7971 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7972 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7973
e9f30c21
ML
79742002-03-03 Michal Ludvig <mludvig@suse.cz>
7975
7976 * MAINTAINERS (x86-64): Add myself.
7977 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7978 changed value_ptr -> struct value *
7979
54394ac3
DB
79802002-03-01 David O'Brien <obrien@FreeBSD.org>
7981
7982 * configure.host (sparc64-*-freebsd): Add.
7983 * configure.tgt: Likewise.
7984 * config/sparc/fbsd.mh: New file.
7985 * config/sparc/fbsd.mt: Likewise.
7986 * config/sparc/nm-fbsd.h: Likewise.
7987 * config/sparc/tm-fbsd.h: Likewise.
7988
bfe95955
DJ
79892002-03-01 Daniel Jacobowitz <drow@mvista.com>
7990
7991 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7992 regformats/reg-s390x.dat.
7993
f33c6cbf
AC
79942002-03-01 Andrew Cagney <ac131313@redhat.com>
7995
7996 * utils.c: Add FIXME explaining true/false problem.
7997
5ecaa7dd
AC
79982002-02-28 Andrew Cagney <ac131313@redhat.com>
7999
8000 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8001
2a251cc2
MC
80022002-02-28 Michael Chastain <mec@shout.net>
8003
8004 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8005
6a8031a3 80062002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8007
8008 * gdbserver/linux-s390-low.c: New file.
8009 * regformats/reg-s390.dat: New file.
8010 * regformats/reg-s390x.dat: New file.
8011 * gdbserver/configure.srv: Add S/390.
8012 * gdbserver/Makefile.in: Add S/390.
8013 * configure.tgt: Enable gdbserver for S/390.
8014
ac469903
EZ
80152002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8016
8017 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8018 first line of the doc string for "info dos", except at the end of
8019 the sentence, since the short help stops at the first period.
8020
985cb1a3
JM
80212002-02-28 Jason Merrill <jason@redhat.com>
8022
8023 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8024
c570663e
FF
80252002-02-27 Fred Fish <fnf@redhat.com>
8026
8027 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8028 comment (dumy -> dummy).
8029
43630227
PS
80302002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8031
8032 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8033
b84911e8
RB
80342002-02-27 Rodney Brown <rbrown64@csc.com.au>
8035
8036 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8037
58caa3dc
DJ
80382002-02-27 Daniel Jacobowitz <drow@mvista.com>
8039
8040 * gdbserver/acconfig.h: New file.
8041 * gdbserver/i387-fp.c: New file.
8042 * gdbserver/i387-fp.h: New file.
8043 * gdbserver/linux-x86-64.c: New file.
8044 * regformats/reg-x86-64.dat: New file.
8045 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8046 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8047 * gdbserver/configure.in: Add support for regsets.
8048 * gdbserver/config.in: Regenerate.
8049 * gdbserver/configure: Regenerate.
8050 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8051 * gdbserver/linux-low.h: New file.
8052 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8053 for regsets.
8054 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8055 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8056 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8057 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8058 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8059 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8060 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8061 "i387-fp.h". Add PTRACE_GETREGS and friends.
8062 * gdbserver/regcache.c (supply_register): New function.
8063 (supply_register_by_name): New function.
8064 (collect_register): New function.
8065 (collect_register_by_name): New function.
8066
93652174
DJ
80672002-02-27 Daniel Jacobowitz <drow@mvista.com>
8068
8069 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8070 (config.status): Add configure.srv dependency.
8071 (server_h): Add config.h dependency.
8072
a02e4a61
DJ
80732002-02-27 Daniel Jacobowitz <drow@mvista.com>
8074
8075 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8076 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8077 * gdbserver/configure.srv: Change i386-*-linux* to use
8078 reg-i386-linux.o.
8079
ce0eebec
AC
80802002-02-26 Andrew Cagney <ac131313@redhat.com>
8081
8082 * x86-64-tdep.c: Re-indent. Update copyright date.
8083
82dbc5f7
AC
80842002-02-26 Andrew Cagney <ac131313@redhat.com>
8085
8086 From Michal Ludvig <mludvig@suse.cz>:
8087 * x86-64-tdep.c (value.h): Delete.
8088 (gdb_assert.h): Include.
8089 (x86_64_register_convert_to_virtual,
8090 x86_64_register_convert_to_raw ): Add check which lets only
8091 floating-point values to be converted.
8092 (value_push): Delete.
8093 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8094 (i386_gdbarch_init): Number of register_bytes fixed.
8095
e4621584
AC
80962002-02-26 Andrew Cagney <ac131313@redhat.com>
8097
8098 * MAINTAINERS: Add x86-64 target.
8099
81a9a963
AC
81002002-02-26 Andrew Cagney <ac131313@redhat.com>
8101
8102 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8103 * osfsolib.c (solib_map_sections): Ditto.
8104 * irix5-nat.c (solib_map_sections): Ditto.
8105 * corelow.c (gdb_check_format): Ditto.
8106 * symfile.c (symfile_bfd_open): Ditto.
8107 * solib.c (solib_map_sections): Ditto.
8108 Fix PR gdb/354.
7e336ba1 8109
0f017ab9
AC
81102002-02-26 Andrew Cagney <ac131313@redhat.com>
8111
8112 * remote.c (_initialize_remote): By default, disable ``e'' and
8113 ``E'' step out-of-range packets.
8114
75738c29
AS
81152002-02-26 Andreas Schwab <schwab@suse.de>
8116
8117 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8118 m68k_linux_frame_saved_pc.
8119 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8120 in_sigtramp.
8121 (SIGCONTEXT_PC_OFFSET): Remove.
8122 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8123 m68k_linux_sigtramp_saved_pc): New functions.
8124 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8125 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8126 (UCONTEXT_PC_OFFSET): Define.
8127 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8128 non-RT and RT signal trampolines.
8129
7e8ed687
RE
81302002-02-26 Richard Earnshaw <rearnsha@arm.com>
8131
8132 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8133 (TARGET_NBPG, STACK_END_ADDR): Delete
8134 (VARIABLES_INSIDE_BLOCK): Delete.
8135
6972bc8b
AC
81362002-02-25 Andrew Cagney <ac131313@redhat.com>
8137
8138 * utils.c (perror_with_name): Make string parameter constant.
8139 (print_sys_errmsg): Ditto.
8140 (query): Ditto.
8141 * defs.h (perror_with_name): Update.
8142 (print_sys_errmsg): Update.
8143 (query): Update.
8144
aa32f823
DJ
81452002-02-25 Daniel Jacobowitz <drow@mvista.com>
8146
8147 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8148 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8149
19caaa45
PS
81502002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8151
8152 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8153 if it already matches the current architecture from the exec file.
8154 Include arch-utils.h for gdbarch_info_init prototype.
8155 * Makefile.in (rs6000-nat.o): Update dependencies.
8156
d951901f
EZ
81572002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8158
8159 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8160 list of exported variables.
8161
7ea81414
DJ
81622002-02-24 Daniel Jacobowitz <drow@mvista.com>
8163
8164 * gdbserver/configure.srv: New file.
8165 * gdbserver/configure.in: Use configure.srv instead
8166 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8167 from it.
8168 * gdbserver/configure: Regenerated.
8169 * gdbserver/terminal.h: New file.
8170 * gdbserver/Makefile.in: Update for configure changes. Remove
8171 more unneeded include paths.
8172
080fe24b
AC
81732002-02-24 Andrew Cagney <ac131313@redhat.com>
8174
8175 From wiz at danbala:
8176 * config/sparc/tm-sp64.h: Fix grammar and typos.
8177 Fix PR gdb/287.
8178
8605d56e
AC
81792002-02-24 Andrew Cagney <ac131313@redhat.com>
8180
8181 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8182 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8183 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8184 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8185 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8186 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8187 * s390-tdep.c: Ditto.
92362027
AC
8188 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8189 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8190 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8191 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8192 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8193 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8194 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8195 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8196 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8197 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8198 Fix PR gdb/378.
7e336ba1 8199
8ed32cc0
AC
82002002-02-23 Andrew Cagney <ac131313@redhat.com>
8201
a3007b6f
AC
8202 * lin-thread.c: Delete file.
8203 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8204 to gdb_proc_service.h.
8205 * configure: Re-generate.
8206
50a9e2f1
AC
8207 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8208 * serial.c (serial_open): Delete check for "ocd".
8209 Fix PR gdb/349.
8210
8b6e7932
AC
8211 * Makefile.in (linux-thread.o): Delete target.
8212 * linux-thread.c: Delete file.
8213
d155c46b
AC
8214 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8215 renamed SH files to be consistent.
8216
8ed32cc0
AC
8217 * symtab.c (sort_search_symbols): Use xfree.
8218
0e18d038
RE
82192002-02-23 Richard Earnshaw <rearnsha@arm.com>
8220
8221 * arm-linux-tdep.c (arm_linux_init_abi): Register
8222 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8223 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8224 definition with undef, since we don't want the sysvr4 definition.
8225 (SKIP_TRAMPOLINE_CODE): Likewise.
8226
27aac7ff
AC
82272002-02-23 Andrew Cagney <ac131313@redhat.com>
8228
8229 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8230
8231 * configure.in: (AC_CHECK_FUNCS) Added test for
8232 canonicalize_file_name Regenerated.
8233 * config.in, configure: Regenerated.
8234 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8235 defined use canonicalize_file_name.
7e336ba1 8236
65a6e0ee
MC
82372002-02-23 Michael Chastain <mec@shout.net>
8238
8239 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8240
47b95330
AC
82412002-02-23 Andrew Cagney <ac131313@redhat.com>
8242
8243 * README: Remove references to cygnus.com.
8244 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8245 dot com'' form. Remove references to cygnus.com and sourceware.
8246
696f451b
AC
82472002-02-23 Andrew Cagney <ac131313@redhat.com>
8248
8249 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8250 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8251 1003.1-2001 no longer allows "head -1".
8252 * gdb/Makefile.in (version.c): Likewise.
8253 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8254 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8255 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8256
bbaca940
AC
82572002-02-23 Andrew Cagney <ac131313@redhat.com>
8258
8259 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8260 * command.h (cmd_cfunc_eq): Declare.
8261 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8262
8263 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8264 ``struct cmd_list_element *''.
8265 * cli/cli-cmds.c (is_complete_command): Update. Use
8266 cmd_cfunc_eq.
8267 * top.c (execute_command): Pass the command to
8268 is_complete_command.
8269 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8270
b8b8b047
AC
82712002-02-23 Andrew Cagney <ac131313@redhat.com>
8272
8273 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8274 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8275 architecture defines.
8276 * s390-tdep.c (s390_gdbarch_init): Likewise.
8277
19d3fc80
RE
82782002-02-23 Richard Earnshaw <rearnsha@arm.com>
8279
8280 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8281 (arm_linux_push_arguments): Likewise.
8282 (arm_linux_init_abi): Register them. Also register linux-specific
8283 call_dummy_words.
8284 (find_minsym_and_objfile): Use strcmp, not STREQ.
8285 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8286 (arm_linux_call_dummy_words): Delete declaration.
8287 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8288 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8289 declarations.
8290 (LOWEST_PC): Delete.
8291
3ab13650
PS
82922002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8293
8294 * maint.c (print_section_info): Do not prepend `0x' to filepos
8295 output, it will be handled by local_hex_string_custom.
8296
19d3fc80 82972002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8298
8299 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8300 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8301 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8302
d85a5daf
JB
83032002-02-22 Jim Blandy <jimb@redhat.com>
8304
8305 Indicate that the bcache functions don't change the strings
8306 they're passed.
8307 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8308 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8309
eeb25b8a
PM
83102002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8311
8312 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8313
6badb179
CF
83142002-02-21 Christopher Faylor <cgf@redhat.com>
8315
8316 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8317 find the complete path to a loaded DLL.
8318
e8717518
FF
83192002-02-21 Fred Fish <fnf@redhat.com>
8320
8321 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8322 that marks the end of the range of a function, enter a line number
8323 entry that has a line number of zero and a PC offset that matches
8324 the end of the function. This starts a range of PC's for which no
8325 line number information is known.
8326 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8327 PC's for which no line number info is found (line number is zero)
8328 then we didn't find any valid line information.
8329 * symtab.h: Document use of zero line number entry.
8330
9abe5450
EZ
83312002-02-21 Elena Zannoni <ezannoni@redhat.com>
8332
8333 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8334 (have_ptrace_getvrregs): Define for run time checks.
8335 (gdb_vrregset_t): New type for Altivec register handling.
8336 (fetch_register, store_register): Fetch/store altivec register
8337 when needed.
8338 (fetch_altivec_register, store_altivec_register): New functions.
8339 (supply_vrregset, fill_vrregset): New functions.
8340 (fetch_altivec_registers, store_altivec_registers): New functions.
8341 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8342 registers as well.
8343
aaa38bb5
AJ
83442002-02-21 Jiri Smid <smid@suse.cz>
8345
8346 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8347
b34db576
RE
83482002-02-21 Richard Earnshaw <rearnsha@arm.com>
8349
8350 * Makefile.in (armnbsd-nat.o): Update dependencies.
8351 * armnbsd-nat.c (supply_gregset): New function. Common code to
8352 supply the integer register set.
8353 (supply_fparegset): New function. Similar for FPA registers.
8354 (fetch_regs, fetch_fp_regs): Use them.
8355 (fetch_core_registers): Likewise.
8356 (fetch_elfcore_registers): New function.
8357 (arm_netbsd_elfcore_fns): New core-file type specification.
8358 (_initialize_arm_netbsd_nat): Register it.
8359
3e56fc4b
RE
83602002-02-21 Richard Earnshaw <rearnsha@arm.com>
8361
8362 * armnbsd-nat.c: Include gdbcore.h.
8363 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8364 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8365 'void' to declaration, to shut up ARI.
8366 (fetch_core_registers): Make static. Rewrite using supply_register.
8367 (arm_netbsd_core_fns): New core-file type specification.
8368 (_initialize_arm_netbsd_nat): New function.
8369
097f6b0b
CF
83702002-02-21 Christopher Faylor <cgf@redhat.com>
8371
8372 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8373 value.
8374
c914e0cc
CF
83752002-02-20 Christopher Faylor <cgf@redhat.com>
8376
8377 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8378 fails.
8379
385fa495
DJ
83802002-02-20 Daniel Jacobowitz <drow@mvista.com>
8381
8382 * jv-exp.y (parse_number): Change type of implicit longs
8383 to builtin_type_uint64.
8384
e5f1222d
DJ
83852002-02-20 Daniel Jacobowitz <drow@mvista.com>
8386
8387 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8388 to be an integer instead of a `union wait'.
8389
75c9abc6
DJ
83902002-02-20 Daniel Jacobowitz <drow@mvista.com>
8391
8392 * mips-linux-nat.c: Call the operating system GNU/Linux.
8393 * mips-linux-tdep.c: Likewise.
8394 * mips-tdep.c: Likewise.
8395
551792a5
DJ
83962002-02-20 Daniel Jacobowitz <drow@mvista.com>
8397
8398 Fix PR gdb/265.
8399 * jv-exp.y (parse_number): Handle 64-bit integers.
8400
ee6e2b82
DJ
84012002-02-20 Daniel Jacobowitz <drow@mvista.com>
8402
8403 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8404 AC_STDC_HEADERS to AC_HEADER_STDC.
8405 * gdbserver/configure: Regenerated.
8406
a48442a0
RE
84072002-02-20 Richard Earnshaw <rearnsha@arm.com>
8408
8409 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8410 is defined.
8411 * sparc-tdep.c (get_longjmp_target): Likewise.
8412
fe419ffc
RE
84132002-02-20 Richard Earnshaw <rearnsha@arm.com>
8414
8415 * News: Add news about ARM and Multi-arch. Mention the new target
8416 arm*-*-netbsd*.
8417
5832ed7e
JB
84182002-02-19 Jim Blandy <jimb@redhat.com>
8419
8420 * stabsread.c (error_type_complaint): Improve error message.
8421
84563040
DJ
84222002-02-19 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * gdbserver/README: Update documentation.
8425 * gdbserver/configure.in: Update configury to match documentation.
8426 * gdbserver/Makefile.in: Likewise.
8427 * gdbserver/configure: Regenerated.
8428 * gdbserver/aclocal.m4: New file, generated by aclocal.
8429 * gdbserver/config.in: New file, generated by autoheader.
8430
375fd65b
RE
84312002-02-19 Richard Earnshaw <rearnsha@arm.com>
8432
8433 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8434 armnbsd-nat.c.
8435
08216dd7
RE
84362002-02-19 Richard Earnshaw <rearnsha@arm.com>
8437
8438 * arm-tdep.h (enum arm_float_model): New enum.
8439 (struct gdbarch_tdep): Add fp_model.
8440 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8441 up floating-point conversions until we know the floating-point model
8442 in use by the inferior. Don't complain about being unable to
8443 determine the ABI of the inferior when we don't have one.
8444 (arm_extract_return_value): Support different floating-point models.
8445 (arm_store_return_value): Likewise.
aaa38bb5 8446 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8447 ARM_FLOAT_SOFT.
8448 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8449
65d6d66a
PS
84502002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8451
8452 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8453 of ``current_gdbarch''.
8454
47221191
RE
84552002-02-19 Richard Earnshaw <rearnsha@arm.com>
8456
8457 * armnbsd-nat.c : ANSIfy all function declarations.
8458 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8459 (fetch_inferior_registers): Re-implement in terms of above.
8460 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8461 (store_inferior_registers): Re-implement in terms of above.
8462
fdf39c9a
RE
84632002-02-19 Richard Earnshaw <rearnsha@arm.com>
8464
aaa38bb5 8465 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8466 kernel.
8467 * arm-linux-tdep.c: Likewise.
8468 * config/arm/tm-linux.h: Likewise.
8469
93247f88
RE
84702002-02-19 Richard Earnshaw <rearnsha@arm.com>
8471
8472 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8473 * config/arm/nbsd.mt (TM_FILE): Delete.
8474 * config/arm/tm-nbsd.h: Delete.
8475
d7b486e7
RE
84762002-02-19 Richard Earnshaw <rearnsha@arm.com>
8477
8478 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8479 Initialize CALL_DUMMY_LENGTH.
8480
41d39a95
RE
84812002-02-19 Richard Earnshaw <rearnsha@arm.com>
8482
8483 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8484 function.
8485 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8486 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8487 defines one thing and that is incorrect for this port.
8488 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8489
e1195560
PM
84902002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8491
8492 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8493
c1748f97
PM
84942002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8495
8496 * win32-nat.c (display_selector): New function. Displays information
8497 about the information returned by GetThreadSelectorEntry API function.
8498 (display_selectors): New function. Displays the infomation of
8499 the selector given as argument, or of CS, DS ans FS selectors
8500 if no argument is given.
8501 ( _initialize_inftarg): Add "w32" as info prefix command.
8502 Add "info w32 selector" as command calling display_selectors.
8503
e41e6bbf
PM
85042002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8505
8506 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8507 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8508 if not defined.
8509
0d3a9f48
RE
85102002-02-18 Richard Earnshaw <rearnsha@arm.com>
8511
8512 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8513
3fb4b924
RE
85142002-02-18 Richard Earnshaw <rearnsha@arm.com>
8515
8516 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8517 (arm_fix_call_dummy): Call it.
8518 (arm_call_dummy_breakpoint_offset): Delete.
8519 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8520 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8521
7f55af32
AC
85222002-02-18 Andrew Cagney <ac131313@redhat.com>
8523
8524 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8525 Default to func_frame_chain_valid.
8526 * gdbarch.h, gdbarch.c: Re-generate.
8527 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8528
05f13b9c
EZ
85292002-02-18 Elena Zannoni <ezannoni@redhat.com>
8530
8531 * ppc-linux-nat.c: Update copyright.
8532 (fetch_register, store_register): Add tid parameter, don't compute
8533 tid here.
8534 (fetch_ppc_registers, store_ppc_registers): Add tid
8535 parameter. Pass it along to callees.
8536 (fetch_inferior_registers, store_inferior_registers): Compute tid
8537 here, and pass it to calleed functions.
8538 (fill_gregset, supply_fpregset): Clean up formatting.
8539
d7afb4c9
RE
85402002-02-18 Richard Earnshaw <rearnsha@arm.com>
8541
8542 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8543 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8544
9df628e0
RE
85452002-02-18 Richard Earnshaw <rearnsha@arm.com>
8546
8547 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8548 * gdbarch.c gdbarch.h: Regenerate.
8549 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8550 function.
8551 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8552 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8553 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8554
8555 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8556 * arm-tdep.c (arm_get_longjmp_target): New function.
8557 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8558 this to a positive value register arm_get_longjmp_target as the
8559 longjmp handler.
8560 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8561 (arm_linux_init_abi): Set up longjmp description in tdep.
8562 * armnbsd-nat.c (get_longjmp_target): Delete.
8563 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8564 description in tdep.
8565 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8566 (get_longjmp_target): Delete declaration.
8567 (GET_LONGJMP_TARGET): Delete.
8568 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8569 (GET_LONGJMP_TARGET): Delete.
8570
57bc8964
KB
85712002-02-17 Kevin Buettner <kevinb@redhat.com>
8572
8573 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8574 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8575 of ``current_gdbarch''.
8576
83d31a92
TT
85772002-02-17 Tom Tromey <tromey@redhat.com>
8578
8579 * cli/cli-cmds.c (compare_strings): New function.
8580 (complete_command): Only print each unique item once.
8581 * completer.h (complete_line): Declare.
8582 * completer.c (complete_line): New function.
8583 (line_completion_function): Use it.
8584
17ef5d92
AC
85852002-02-16 Andrew Cagney <ac131313@redhat.com>
8586
8587 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8588 * gdbarch.h, gdbarch.c: Re-generate.
8589
491b8946
DJ
85902002-02-16 Daniel Jacobowitz <drow@mvista.com>
8591
8592 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8593
85942002-02-16 Daniel Jacobowitz <drow@mvista.com>
8595
8596 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8597 * valops.c (value_arg_coerce): Don't take the address of a reference
8598 to convert an argument to a reference.
8599
dfe7f3ac
CF
86002002-02-15 Christopher Faylor <cgf@redhat.com>
8601
8602 * win32-nat.c (get_image_name): New function.
8603 (handle_load_dll): Use get_image_name function.
8604 (get_child_debug_event): Avoid registering debug events until possibly
8605 execed process is started.
8606 (child_create_inferior): Allow invocation via shell so that command
8607 line redirection, etc. works ok.
8608 (_initialize_inftarg): Add new command: "set shell" to control whether
8609 a shell is used to start a process.
8610
1d33e73a
DJ
86112002-02-15 Daniel Jacobowitz <drow@mvista.com>
8612
8613 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8614 instead of find_register_by_number.
8615 (cannot_store_register): Likewise.
8616
48cd0caa
PM
86172002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8618
aaa38bb5 8619 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8620 fprintf_unfiltered (gdb_stderr, ...).
8621
8656e7d8
DJ
86222002-02-15 Daniel Jacobowitz <drow@mvista.com>
8623
8624 * gdbserver/gdbserver.1: Document --attach.
8625
66e810cd
RE
86262002-02-15 Richard Earnshaw <rearnsha@arm.com>
8627
8628 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8629 descriptions.
8630 * arm-tdep.c (arm_default_arm_le_breakpoint)
8631 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8632 (arm_default_thumb_be_breakpoint): New. Initialize them from
8633 traditional breakpoint defines.
8634 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8635 (arm_gdbarch_init): Initialize new breakpoint variables.
8636 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8637 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8638 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8639 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8640 code out to ...
8641 (arm_netbsd_init_abi_common): ... here; new function.
8642 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8643 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8644 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8645 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8646
97e03143
RE
86472002-02-15 Richard Earnshaw <rearnsha@arm.com>
8648
8649 * arm-tdep.h (enum arm_abi): New enum.
8650 (struct gdbarch_tdep): New structure.
8651 (LOWEST_PC): Provide a default.
8652 (arm_gdbarch_register_os_abi): Declare new function.
8653 * arm-tdep.c (arm_abi_names): New array.
8654 (process_note_abi_tag_sections): New function.
8655 (get_elfosabi): New function.
8656 (arm_gdbarch_register_os_abi): New function.
8657 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8658 support for that ABI has been built in, then call the appropriate
8659 configuration routine. Use gdbarch_num_regs() to get the number
8660 of registers.
8661 (arm_dump_tdep): New function.
8662 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8663 place-holder functions.
8664 (_initialize_arm_tdep): Register them.
8665 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8666
8667 * armnbsd-tdep.c: New file.
8668 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8669 * config/arm/nbsd.mt (TDEPFILES): Add it.
8670 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8671
8672 * armnbsd-nat.c: Include regcache.h.
8673 * Makefile.in (armnbsd-nat.o): Update dependency list.
8674
8675 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8676
ad68be46
DJ
86772002-02-14 Daniel Jacobowitz <drow@mvista.com>
8678
8679 * gdbserver/Makefile.in: Fix typos in target rules.
8680
003d6d1d
DJ
86812002-02-14 Daniel Jacobowitz <drow@mvista.com>
8682
aaa38bb5 8683 Fix part of PR gdb/267.
003d6d1d
DJ
8684 * linespec.c (find_methods): Handle constructors specially for now.
8685
6b230f1b
CV
86862002-02-14 Corinna Vinschen <vinschen@redhat.com>
8687
8688 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8689 handling.
8690 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8691 standard_coerce_float_to_double().
8692
1ea98d12
CF
86932002-02-14 Christopher Faylor <cgf@redhat.com>
8694
8695 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8696 GDBINIT_FILENAME.
8697
dd47e6fd
EZ
86982002-02-14 Elena Zannoni <ezannoni@redhat.com>
8699
8700 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8701 find_variant_by_name, because it confuses the multiarch
8702 framework. Return NULL if there isn't an architecture with the
8703 user supplied name, instead of forcing a different one without
8704 recording the change with the multiarch machinery.
8705 (find_variant_by_name): Delete.
8706
d7e39b9e
PS
87072002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8708
8709 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8710 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8711
76e42a4f
MH
87122002-02-13 Martin M. Hunt <hunt@redhat.com>
8713
aaa38bb5 8714 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8715 print_frame_info_listing_hook, set current_source_symtab.
8716
0a30fbc4
DJ
87172002-02-14 Daniel Jacobowitz <drow@mvista.com>
8718
8719 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8720 and remove unused $(INCLUDE_DIR).
8721 Add regcache.c to OBS.
8722 Add generated register protocol files to clean target.
8723 Update dependencies for new objects, obsolete old target code.
8724
8725 * gdbserver/linux-low.c: Remove all platform-specific code to
8726 new files. Remove various dead code. Update to use regcache
8727 functionality.
8728 * gdbserver/remote-utils.c (fromhex): Add return statement
8729 to quiet warning.
8730 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8731 constant.
8732 (input_interrupt): Add integer parameter to match prototype
8733 of a signal handler.
8734 (outreg): Use register_data ().
8735 (prepare_resume_reply): Use gdbserver_expedite_regs.
8736 * gdbserver/server.c (main): Dynamically allocate own_buf because
8737 PBUFSIZ is no longer constant. Use registers_to_string () and
8738 registers_from_string ().
8739 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8740 for error (), fatal (), and warning (). Update definition of
8741 PBUFSIZ to use regcache functionality. Add include guard.
8742 * gdbserver/utils.c (fatal): Add missing ``const''.
8743 (warning): New function.
8744
8745 * regformats/regdat.sh: Include "regcache.h" in generated files.
8746 Provide init_registers () function.
8747 * regformats/regdef.h: Add prototype for set_register_cache ().
8748 Add include guard.
8749
8750 * gdbserver/linux-arm-low.c: New file.
8751 * gdbserver/linux-i386-low.c: New file.
8752 * gdbserver/linux-ia64-low.c: New file.
8753 * gdbserver/linux-m68k-low.c: New file.
8754 * gdbserver/linux-mips-low.c: New file.
8755 * gdbserver/linux-ppc-low.c: New file.
8756 * gdbserver/linux-sh-low.c: New file.
8757
8758 * gdbserver/regcache.c: New file.
8759 * gdbserver/regcache.h: New file.
8760
8761 * gdbserver/low-linux.c: Removed obsolete file.
8762
4cc841d0
DJ
87632002-02-14 Daniel Jacobowitz <drow@mvista.com>
8764
8765 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8766 * config/i386/linux.mt: Likewise.
8767 * config/ia64/linux.mt: Likewise.
8768 * config/m68k/linux.mh: Likewise.
8769 * config/powerpc/linux.mh: Likewise.
8770 * config/mips/linux.mt: Likewise.
8771
8772 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8773
8774 * config/i386/i386lynx.mh: Mark gdbserver variables
8775 as (currently) obsolete for this target.
8776 * config/i386/nbsd.mt: Likewise.
8777 * config/i386/nbsdelf.mt: Likewise.
8778 * config/m32r/m32r.mt: Likewise.
8779 * config/m68k/m68klynx.mh: Likewise.
8780 * config/m68k/nbsd.mt: Likewise.
8781 * config/m68k/sun3os4.mh: Likewise.
8782 * config/mips/vr5000.mt: Likewise.
8783 * config/ns32k/nbsd.mt: Likewise.
8784 * config/pa/hppabsd.mh: Likewise.
8785 * config/pa/hppaosf.mh: Likewise.
8786 * config/powerpc/nbsd.mt: Likewise.
8787 * config/rs6000/rs6000lynx.mh: Likewise.
8788 * config/s390/s390.mt: Likewise.
8789 * config/s390/s390x.mt: Likewise.
8790 * config/sparc/sparclynx.mh: Likewise.
8791 * config/sparc/sun4os4.mh: Likewise.
8792 * config/i386/x86-64linux.mt: Likewise.
8793 * config/sparc/linux.mh: Likewise.
8794
a85f51e7
DJ
87952002-02-14 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * configure.tgt: Configure gdbserver only for known working
8798 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8799 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8800 SUBDIRS if it is configured. Update comment for ${nativefile}.
8801 * configure: Regenerated.
8802
65554fef
MS
88032002-02-13 Michael Snyder <msnyder@redhat.com>
8804
670a52db
MS
8805 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8806
6dbdc4a3
MS
8807 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8808 (default_gcore_mach): Just return 0, work around a problem in bfd.
8809 (default_gcore_target): OK to return NULL if exec_bfd is null.
8810 (make_mem_sec): Use a cast, avoid a warning.
8811
8812 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8813 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8814 sizeof (host pointer) != sizeof (target pointer)).
8815 (procfs_make_note_section): Avoid overflow in psargs string.
8816
aaa38bb5 8817 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8818 implementation return an error.
8819
88202002-02-13 Rodney Brown <rbrown64@csc.com.au>
8821
8822 * procfs.c (procfs_make_note_section): Provide a default definition
8823 (for alpha-dec-osf4.0f). Fix typos.
8824
1e4d76e7
EZ
88252002-02-13 Elena Zannoni <ezannoni@redhat.com>
8826
8827 * linux-proc.c: Add include of regcache.h.
8828 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8829
b6d1a1d5
AC
88302002-02-13 Andrew Cagney <ac131313@redhat.com>
8831
8832 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8833 * memattr.c (create_mem_region): Disallow useless empty region.
8834 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8835 non-overlapping.
b6d1a1d5 8836
6c6ea35e
MC
88372002-02-13 Michael Chastain <mec@shout.net>
8838
8839 * defs.h: Kill CONST_PTR.
8840 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8841 * c-lang.c (c_builtin_types): Likewise.
8842 * ch-lang.c (ch_builtin_types): Likewise.
8843 * f-lang.c (f_builtin_types): Likewise.
8844 * language.c (unknown_builtin_types): Likewise.
8845 * m2-lang.c (m2_builtin_types): Likewise.
8846 * p-lang.c (pascal_builtin_types): Likewise.
8847 * scm-lang.c (c_builtin_types): Likewise.
8848
3e0b0f48
KS
88492002-02-13 Keith Seitz <keiths@redhat.com>
8850
8851 * arm-tdep.h (arm_get_next_pc): Add declaration.
8852
67255d04
RE
88532002-02-13 Richard Earnshaw <rearnsha@arm.com>
8854
8855 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8856 with other related struct-returning functions.
8857 (arm_extract_struct_value_address): New function.
8858 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8859 initialize float_format, double_format and long_double_format as
8860 appropriate to the endianness of the target.
8861 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8862 (arm_use_struct_convention): Delete declaration.
8863 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8864
079777f6
KS
88652002-02-13 Keith Seitz <keiths@redhat.com>
8866
8867 * defs.h (core_addr_to_string_nz): New function.
8868
34588f23
MK
88692002-02-13 Mark Kettenis <kettenis@gnu.org>
8870
8871 Apply missing bits of 2002-01-15 patch.
8872 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8873 (fill_fpregset): Use i387_fill_fsave.
8874
49b563f9
KS
88752002-02-12 Keith Seitz <keiths@redhat.com>
8876
49b563f9
KS
8877 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8878 (core_addr_to_string_nz): New function.
8879
aeb98c60
RE
88802002-02-11 Richard Earnshaw <rearnsha@arm.com>
8881
8882 * arm-linux-nat.c: Really include arm-tdep.h.
8883 * config/arm/tm-linux.h (struct type, struct value): Declare.
8884
65554fef
MS
88852002-02-11 Michael Snyder <msnyder@redhat.com>
8886
8887 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8888 (gcore section): Ifdef for Solaris and Unixware only.
8889 (procfs_do_thread_registers): Unixware needs one lwpstatus
8890 per thread (not one prstatus or pstatus).
8891 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8892 not over all gdb threads. For unixware, call elfcore_write_pstatus
8893 once before iterating over threads.
8894
34e8f22d
RE
88952002-02-11 Richard Earnshaw <rearnsha@arm.com>
8896
8897 * arm-tdep.h: New file.
8898 * arm-tdep.c: Include arm-tdep.h.
8899 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8900 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8901 (arm_print_float_info, arm_register_type, convert_to_extended)
8902 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8903 (arm_extract_return_value, arm_register_name): Make static.
8904 (arm_software_single_step): Similarly. Fix types in declaration.
8905 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8906 (arm_store_return_value, arm_store_struct_return): New functions.
8907 (arm_gdbarch_init): Register the above functions. Also register
8908 call_dummy_start_offset, sizeof_call_dummy_words,
8909 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8910 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8911 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8912 prologue_cache.saved_regs here, rather than ...
8913 (_initialize_arm_tdep): ... here.
8914 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8915 declarations.
8916 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8917 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8918 (arm_print_float_info, arm_register_type, convert_to_extended)
8919 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8920 (arm_extract_return_value, arm_register_name): Delete declarations.
8921 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8922 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8923 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8924 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8925 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8926 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8927 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8928 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8929 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8930 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8931 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8932 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8933 interface.
8934 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8935 * remote-rdi.c remote-rdp.c: Likewise.
8936 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8937 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8938 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8939 definition.
8940
8941 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8942 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8943 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8944 from non-ARM_ prefixed definitions.
8945 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8946 all uses of above.
8947 * remote-rdi.c remote-rdp.c: Likewise.
8948 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8949
148754e5
RE
89502002-02-11 Richard Earnshaw <rearnsha@arm.com>
8951
8952 * arm-tdep.c (arm_frameless_function_invocation)
8953 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8954 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8955 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8956 (arm_pop_frame, arm_get_next_pc): Make static.
8957 (arm_gdbarch_init): Register above in gdbarch structure.
8958 (arm_read_fp): Renamed from arm_target_read_fp.
8959 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8960 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8961 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8962 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8963 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8964 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8965 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8966 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8967 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8968 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8969 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8970
434d2d4f
DJ
89712002-02-10 Daniel Jacobowitz <drow@mvista.com>
8972
8973 * symtab.c (compare_search_syms): New function.
8974 (sort_search_symbols): New function.
8975 (search_symbols): Sort symbols after searching rather than
8976 before.
8977
55241689
AC
89782002-02-10 Andrew Cagney <ac131313@redhat.com>
8979
8980 * NEWS: Linux -> GNU/Linux.
8981
028c194b
AC
89822002-02-10 Andrew Cagney <ac131313@redhat.com>
8983
8984 * gdbarch.sh: For for level one methods, disallow a definition
8985 when partially multi-arched. Add comments explaining rationale.
8986 * gdbarch.h: Re-generate.
8987
6acf50cd
AC
89882002-02-10 Andrew Cagney <ac131313@redhat.com>
8989
8990 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8991 multi-arch partial.
aaa38bb5 8992
50248794
AC
89932002-02-10 Andrew Cagney <ac131313@redhat.com>
8994
8995 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8996 field. Use diff -u.
8997 * gdbarch.c: Re-generate.
8998
c30e0066
AC
89992002-02-10 Andrew Cagney <ac131313@redhat.com>
9000
9b56c5f3 9001 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9002 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9003 partial.
9004
6e6d6484
AC
90052002-02-10 Andrew Cagney <ac131313@redhat.com>
9006
9007 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9008 multi-arch partial.
9009 (PUSH_ARGUMENTS): Switch to using predefault.
9010 * gdbarch.c: Regenerate.
9011
c203844d
AC
90122002-02-10 Andrew Cagney <ac131313@redhat.com>
9013
9014 * valops.c (PUSH_ARGUMENTS): Delete definition.
9015 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9016 partial. Default to default_push_arguments.
9017 * gdbarch.h, gdbarch.c: Regenerate.
9018
b5a2688f
AC
90192002-02-09 Andrew Cagney <ac131313@redhat.com>
9020
9021 * defs.h (throw_exception): Rename return_to_top_level. Update
9022 comments.
9023 * utils.c (error_stream, internal_verror, quit): Ditto.
9024 * top.c (throw_exception, catcher): Ditto.
9025 * sparclet-rom.c (sparclet_load): Ditto.
9026 * remote.c (interrupt_query, minitelnet): Ditto.
9027 * remote-sds.c (interrupt_query): Ditto.
9028 * remote-mips.c (mips_error, mips_kill): Ditto.
9029 * ocd.c (interrupt_query): Ditto.
9030 * monitor.c (monitor_interrupt_query): Ditto.
9031 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9032 * target.h: Update comment.
aaa38bb5 9033
b5a2688f 9034 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9035
2fa5c1e0
AC
90362002-02-09 Andrew Cagney <ac131313@redhat.com>
9037
9038 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9039 default_double_format.
9040 * gdbarch.h, gdbarch.c: Re-generate.
9041 * findvar.c (floatformat_unknown): Delete variable definition.
9042 * doublest.h (floatformat_unknown): Delete variable declaration.
9043
da966255
JB
90442002-02-09 Jim Blandy <jimb@redhat.com>
9045
9046 * stabsread.c (read_type): Add code to parse Sun's syntax for
9047 prototyped function types.
9048
123a4891
AC
90492002-02-09 Andrew Cagney <ac131313@redhat.com>
9050
9051 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9052 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9053
fb39c8f3
PS
90542002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9055
9056 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9057 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9058 now _initialize_xcoffsolib gets called again and overrides the
9059 commands from solib.c in a native configuration.
9060
0b87a11d
MK
90612002-02-09 Mark Kettenis <kettenis@gnu.org>
9062
9063 * doublest.c (store_typed_floating): Don't try to return a value.
9064 Fixes PR gdb/290.
9065
bdc2fc72
JB
90662002-02-08 Jim Blandy <jimb@redhat.com>
9067
9068 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9069 is prototyped and has no arguments, print its argument list as
9070 `(void)'.
9071
da69bbcf
CD
90722002-02-08 Chris Demetriou <cgd@broadcom.com>
9073
9074 * MAINTAINERS (write-after-approval): Add myself.
9075 (paper-trail): I've escaped!
aaa38bb5 9076
b69571f5
CF
90772002-02-08 Christopher Faylor <cgf@redhat.com>
9078
9079 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9080 changes.
9081 (_initialize_check_for_gdb_ini): Ditto.
9082
f6871398
MH
90832002-02-08 Martin M. Hunt <hunt@redhat.com>
9084
9085 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9086 xaprintf -> xasprintf.
9087
4e52d31c
PM
90882002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9089
9090 * win32-nat.c: Remove use of printf and sprintf functions.
9091
39bbf761
RE
90922002-02-08 Richard Earnshaw <rearnsha@arm.com>
9093
9094 * arm-tdep.c (arm_frame_chain_valid): Make static.
9095 (arm_push_arguments): Likewise.
9096 (arm_gdbarch_init): New function.
9097 (_initialize_arm_tdep): Call it.
9098 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9099 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9100 (FRAME_CHAIN_VALID): Delete.
9101 (arm_frame_chain_valid): Delete declaration.
9102 (PUSH_ARGUMENTS): Delete.
9103 (arm_push_arguments): Delete declaration.
9104 (CALL_DUMMY_P): Delete.
9105
9c9532c9
CV
91062002-02-08 Andrew Cagney <ac131313@redhat.com>
9107 Corinna Vinschen <vinschen@redhat.com>
9108
9109 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9110 on builtin float types.
9111
4e8f7a8b
DJ
91122002-02-08 Daniel Jacobowitz <drow@mvista.com>
9113
9114 * utils.c: Include <curses.h> before "bfd.h".
9115 * tui/tui-hooks.c: Likewise.
9116 * tui/tui.c: Likewise.
9117 * tui/tuiCommand.c: Likewise.
9118 * tui/tuiData.c: Likewise.
9119 * tui/tuiDataWin.c: Likewise.
9120 * tui/tuiDisassem.c: Likewise.
9121 * tui/tuiGeneralWin.c: Likewise.
9122 * tui/tuiIO.c: Likewise.
9123 * tui/tuiLayout.c: Likewise.
9124 * tui/tuiRegs.c: Likewise.
9125 * tui/tuiSource.c: Likewise.
9126 * tui/tuiSourceWin.c: Likewise.
9127 * tui/tuiStack.c: Likewise.
9128 * tui/tuiWin.c: Likewise.
9129
cd4bffcf
EZ
91302002-02-07 Elena Zannoni <ezannoni@redhat.com>
9131
9132 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9133 to include space for pseudoregs as well. Update loops accordingly.
9134 (sh_fp_frame_init_saved_regs): Ditto.
9135 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9136
26806ce2
AC
91372002-02-07 Andrew Cagney <ac131313@redhat.com>
9138
9139 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9140 Add Richard Earnshaw to Arm maintainers.
9141
97fdab62
AC
91422002-02-07 Andrew Cagney <ac131313@redhat.com>
9143
a6b98203
AC
9144 * defs.h (warning_begin): Delete declaration.
9145
97fdab62
AC
9146 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9147 Delete macro.
9148
78b29b40
MS
91492002-02-07 Michael Snyder <msnyder@redhat.com>
9150
aaa38bb5 9151 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9152 Logic bug, remove misplaced else.
9153
d8849953
KD
91542002-02-07 Klee Dienes <klee@apple.com>
9155
9156 * fork-inferior.c (fork_inferior): Add '!' to the list of
9157 characters that need to be quoted when building a string for the
9158 shell. Quote '!' specifically with a backslash, since CSH chokes
9159 when trying to evaluate "str!str".
aaa38bb5 9160
095778a0
NC
91612002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9162
9163 * rdi-share/host.h: Only provide a typedef for bool if it is not
9164 defined.
9165
1900040c
MS
91662002-02-04 Michael Snyder <msnyder@redhat.com>
9167
9168 * breakpoint.h (enum bptype): Add new overlay event bp type.
9169 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9170
1900040c
MS
9171 * breakpoint.c (create_internal_breakpoint): New function.
9172 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9173 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9174 (create_thread_event_breakpoint): Ditto.
9175 (create_solib_event_breakpoint): Ditto.
9176 (create_overlay_event_breakpoint): New function.
9177 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9178 (update_breakpoints_after_exec): Delete and re-initialize
9179 overlay event breakpoints after an exec. Add FIXME comment
9180 about longjmp breakpoint.
9181 (print_it_typical): Ignore overlay event breakpoints.
9182 (print_one_breakpoint): Ditto.
9183 (mention): Ditto.
9184 (bpstat_what): Do not stop for overlay event breakpoints.
9185 (delete_breakpoint): Don't delete overlay event breakpoints.
9186 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9187 (breakpoint_re_set): Re-create overlay event breakpoint.
9188
9189 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9190 (overlay_manual_command): Disable overlay breakpoints.
9191 (overlay_off_command): Disable overlay breakpoints.
9192
082fc60d
RE
91932002-02-06 Richard Earnshaw <rearnsha@arm.com>
9194
9195 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9196 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9197 to here from config/tm-arm.h.
9198 (coff_sym_is_thumb): Make static.
9199 (arm_elf_make_msymbol_special): New function.
9200 (arm_coff_make_msymbol_special): New function.
9201 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9202 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9203 (coff_sym_is_thumb): Delete declaration.
9204 (arm_elf_make_msymbol_special): Declare.
9205 (arm_coff_make_msymbol_special): Declare.
9206 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9207 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9208
039c5766
RE
92092002-02-06 Richard Earnshaw <rearnsha@arm.com>
9210
9211 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9212
92132002-02-06 Richard Earnshaw <rearnsha@arm.com>
9214
9215 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9216 * gdbarch.c gdbarch.h: Regenerate.
9217 * arch-utils.c (default_print_float_info): New function.
9218 * arch-utils.h (default_print_float_info): Prototype it.
9219 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9220 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9221 (PRINT_FLOAT_INFO): Document it.
9222
9223 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9224 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9225 (PRINT_FLOAT_INFO): Define.
9226
58fa08f0
PM
92272002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9228
aaa38bb5 9229 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9230 Add typecast to sprintf argument to suppress a warning.
9231
7393af7c
PM
92322002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9233
58fa08f0 9234 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9235 to allow easier handling of pass state.
9236 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9237 that gives exception name and address.
9238 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9239 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9240 exceptions added.
aaa38bb5
AJ
9241 (child_continue): Correctly report continue_status.
9242 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9243 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9244 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9245 the exception should be passed to debuggee or not.
9246
6af4589c
MS
92472002-02-05 Michael Snyder <msnyder@redhat.com>
9248
9249 * regcache.c (fetch_register): Call target_fetch_register
9250 only if we don't call FETCH_PSEUDO_REGISTER.
9251 (store_register): Call target_store_register only if we
9252 don't call STORE_PSEUDO_REGISTER.
9253
a2cf933a
EZ
92542002-02-05 Elena Zannoni <ezannoni@redhat.com>
9255
9256 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9257 ELF_MAKE_MSYMBOL_SPECIAL.
9258 * gdbarch.c, gdbarch.h: Regenerate.
9259 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9260 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9261 * elfread.c (elf_symtab_read): Compile use of
9262 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9263 multiarched.
9264 * coffread.c (coff_symtab_read): Ditto, for
9265 COFF_MAKE_MSYMBOL_SPECIAL.
9266
6bb7be43
JB
92672002-02-05 Jim Blandy <jimb@redhat.com>
9268
9269 * solib-svr4.c (svr4_truncate_ptr): New function.
9270 (svr4_relocate_section_addresses): Do the address arithmetic with
9271 the appropriate truncation for target addresses, even when
9272 CORE_ADDR is larger than a target address.
9273
e18651ec
DJ
92742002-02-05 Daniel Jacobowitz <drow@mvista.com>
9275
9276 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9277 to (int *).
9278
6b2725be
DJ
92792002-02-05 Daniel Jacobowitz <drow@mvista.com>
9280
9281 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9282 code.
9283
fca9e603
DJ
92842002-02-05 Daniel Jacobowitz <drow@mvista.com>
9285
9286 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9287
6c537a52
DJ
92882002-02-05 Daniel Jacobowitz <drow@mvista.com>
9289
9290 * gdbserver/linux-low.c: Remove unused include files.
9291
d844cde6
DJ
92922002-02-05 Daniel Jacobowitz <drow@mvista.com>
9293
9294 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9295 (read_inferior_memory): Use it.
9296 (write_inferior_memory): Likewise.
9297
d07c63e7
DJ
92982002-02-05 Daniel Jacobowitz <drow@mvista.com>
9299
9300 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9301 grubbing through sys_errlist.
9302
da6d8c04
DJ
93032002-02-05 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9306
5b421780
PM
93072002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9308 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9309
9f60d481
AC
93102002-02-04 Andrew Cagney <ac131313@redhat.com>
9311
9312 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9313 (do_sfunc, set_cmd_sfunc): New functions.
9314
9315 * command.h (struct cmd_list_element): Add field func.
9316 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9317 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9318 * cli/cli-decode.h: Ditto.
9319
9320 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9321 (help_all, help_cmd_list): Ditto.
9322 (find_cmd, complete_on_cmdlist): Ditto.
9323 * top.c (execute_command): Ditto.
9324
9325 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9326 function.sfunc.
9327
9328 * infcmd.c (notice_args_read): Fix function signature.
9329
9330 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9331 * cli/cli-decode.c (add_set_cmd): Ditto.
9332 * utils.c (initialize_utils): Ditto.
9333 * maint.c (_initialize_maint_cmds): Ditto.
9334 * infrun.c (_initialize_infrun): Ditto.
9335 * demangle.c (_initialize_demangler): Ditto.
9336 * remote.c (add_packet_config_cmd): Ditto.
9337 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9338 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9339 * proc-api.c (_initialize_proc_api): Ditto.
9340 * kod.c (_initialize_kod): Ditto.
9341 * valprint.c (_initialize_valprint): Ditto.
9342 * top.c (init_main): Ditto.
9343 * infcmd.c (_initialize_infcmd): Ditto.
9344 * corefile.c (_initialize_core): Ditto.
9345 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9346 * arch-utils.c (initialize_current_architecture): Ditto.
9347 (_initialize_gdbarch_utils): Ditto.
9348 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9349
9350 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9351 * wince.c (_initialize_inftarg): Ditto.
9352 * symfile.c (_initialize_symfile): Ditto.
9353 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9354 * language.c (_initialize_language): Ditto.
9355 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9356
f9ba0717
MS
93572002-02-04 Michael Snyder <msnyder@redhat.com>
9358
9359 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9360
0c74b2a7
DJ
93612002-02-04 Daniel Jacobowitz <drow@mvista.com>
9362
9363 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9364 Add rules for building the register data files.
9365
c638789f
DJ
93662002-02-04 Daniel Jacobowitz <drow@mvista.com>
9367
9368 * regformats/regdat.sh: Add braces to the definition of
9369 expedite_regs_${arch}.
9370
db253027
DJ
93712002-02-04 Daniel Jacobowitz <drow@mvista.com>
9372
9373 * regformats/regdef.h (struct reg): Add comment describing the
9374 requirements for offset and size fields.
9375
206be19c
AS
93762002-02-04 Andreas Schwab <schwab@suse.de>
9377
9378 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9379 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9380
181c1381
RE
93812002-02-04 Richard Earnshaw <rearnsha@arm.com>
9382
9383 * gdbarch.sh (copyright): Update years in generated header.
9384 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9385 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9386 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9387 * dbxread.c: Likewise.
9388 * dwarfread.c: Likewise.
9389 * elfread.c: Likewise.
9390 * somread.c: Likewise.
9391
9392 * arm-tdep.c (arm_smash_text_address): New function.
9393 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9394
fa4ba8da
PM
93952002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9396
9397 Add support for hardware watchpoints on win32 native.
aaa38bb5 9398 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9399 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9400 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9401 of debug registers.
9402 (debug_registers_changed): New variable. Reflects when debug registers
9403 are changed and need to be written to inferior.
aaa38bb5 9404 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9405 was set, used when new threads are created.
9406 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9407 i386-nat code.
9408 (thread_rec): Set dr array if id is the thread of current_event .
9409 (child_continue, child_resume): Change the debug registers for all
9410 threads if debug_registers_changed.
9411 (child_add_thread): Change the debug registers if debug_registers_used.
9412 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9413 Link nm.h to new nm-cygwin.h file.
9414 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9415 of hardware registers.
9416
a73c86fb
AC
94172002-02-03 Andrew Cagney <ac131313@redhat.com>
9418
9419 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9420 Restore behavour broken by 2002-01-20 Andrew Cagney
9421 <ac131313@redhat.com> IEEE_FLOAT removal.
9422
acf5ed49
DJ
94232002-02-03 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * c-valprint.c (c_val_print): Pass a proper valaddr to
9426 cp_print_class_method.
9427 * valops.c (search_struct_method): If there is only one method
9428 and args is NULL, return that method.
9429
493d28d5
DJ
94302002-02-03 Daniel Jacobowitz <drow@mvista.com>
9431
9432 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9433 accessing tag_name directly.
9434
7495dfdb
DJ
94352002-02-03 Daniel Jacobowitz <drow@mvista.com>
9436
9437 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9438 of accessing tag_name directly.
9439
dd6bda65
DJ
94402002-02-03 Daniel Jacobowitz <drow@mvista.com>
9441
9442 PR gdb/280
9443 * gdbtypes.c (replace_type): New function.
9444 * gdbtypes.h (replace_type): Add prototype.
9445 * stabsread.c (read_type): Use replace_type.
9446
88fe217c
RE
94472002-02-03 Richard Earnshaw <rearnsha@arm.com>
9448
9449 * Makefile.in (memattr.o): Add missing dependencies rule.
9450
e5d66720
PS
94512002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9452
9453 * breakpoint.c (break_at_finish_command): Really export.
9454 (break_at_finish_at_depth_command): Ditto.
9455 (tbreak_at_finish_command): Ditto.
9456 * hppa-tdep.c: Include completer.h.
9457 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9458 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9459
fffee0be
AC
94602002-02-01 Andrew Cagney <ac131313@redhat.com>
9461
9462 * utils.c (do_write): New function.
9463 (error_stream): Rewrite combining the code from error_begin and
9464 verror.
9465 (verror): Rewrite using error_stream.
9466 (error_begin): Delete function.
9467
255e7dbf
AC
94682002-02-01 Andrew Cagney <ac131313@redhat.com>
9469
9470 * utils.c (error_begin): Make static.
9471 * defs.h (error_begin): Delete declaration.
9472
9473 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9474 (decode_line_1): Use cplusplus_error instead of error_begin,
9475 cplusplus_hint and return_to_top_level.
9476 * coffread.c (coff_symfile_read): Use error instead of error_begin
9477 and return_to_top_level.
9478 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9479
ddfe3c15
AC
94802002-02-01 Andrew Cagney <ac131313@redhat.com>
9481
9482 * language.h (type_error, range_error): Make string parameter
9483 constant.
9484 * language.c (warning_pre_print): Delete extern declaration.
9485 * dwarfread.c (warning_pre_print): Ditto.
9486 * language.c (type_error, range_error): Rewrite to use verror and
9487 vwarning instead of warning_begin.
9488
03ac34d5
MS
94892002-02-01 Michael Snyder <msnyder@redhat.com>
9490
261c4ca2
MS
9491 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9492 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9493
e00d1dc8
AC
94942002-02-01 Andrew Cagney <ac131313@redhat.com>
9495
9496 * command.h (NO_FUNCTION): Delete macro.
9497 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9498 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9499 * tracepoint.c (_initialize_tracepoint): Ditto.
9500 * cli/cli-decode.c (add_set_cmd): Ditto.
9501 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9502
76b79d6e
DJ
95032002-02-01 Daniel Jacobowitz <drow@mvista.com>
9504
9505 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9506 Update ``this'' pointer when calling virtual functions.
9507
799f9e91
MS
95082002-02-01 Michael Snyder <msnyder@redhat.com>
9509
c7bd442c 9510 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9511 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9512
3cf384d4
DJ
95132002-02-01 Daniel Jacobowitz <drow@mvista.com>
9514
9515 * regformats/reg-arm.dat: New file.
9516 * regformats/reg-i386.dat: New file.
9517 * regformats/reg-ia64.dat: New file.
9518 * regformats/reg-m68k.dat: New file.
9519 * regformats/reg-mips.dat: New file.
9520 * regformats/reg-ppc.dat: New file.
9521 * regformats/reg-sh.dat: New file.
9522 * regformats/regdef.h: New file.
9523 * regformats/regdat.sh: New file.
9524
0defa245
RE
95252002-02-01 Richard Earnshaw <reanrsha@arm.com>
9526
9527 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9528 (arm_frame_args_address, arm_frame_locals_address): New functions.
9529 (arm_frame_num_args): New function.
9530 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9531 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9532 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9533
405f26e6
MS
95342002-01-31 Michael Snyder <msnyder@redhat.com>
9535
502fd408
MS
9536 * breakpoint.c (break_at_finish_command): Export.
9537 (break_at_finish_at_depth_command): Export.
9538 (tbreak_at_finish_command): Export.
9539 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9540 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9541 "tbreak" commands, which are HPPA specific.
9542
7d35e135
MS
9543 * printcmd.c (disassemble_command): Remove an ancient
9544 artifact of an old merge.
9545
aaa38bb5 9546 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9547 Define enum constant values for overlay mode.
9548 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9549 (overlay_is_mapped, overlay_auto_command,
9550 overlay_manual_command): Ditto.
d874f1e2 9551
aaa38bb5
AJ
9552 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9553 breakpoint_here_p, breakpoint_inserted_here_p,
9554 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9555 describe_other_breakpoints, check_duplicates, clear_command):
9556 Coding standard fixes.
9557
8add0441 9558 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9559 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9560 code: check bfd SEC_READONLY flag for section.
9561
e351066e
AC
95622002-01-31 Andrew Cagney <ac131313@redhat.com>
9563
7d35e135 9564 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9565
8a48e967
DJ
95662002-01-30 Daniel Jacobowitz <drow@mvista.com>
9567
9568 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9569 data symbols, since we search based on textlow and texthigh.
9570 (find_pc_sect_symtab): Likewise.
9571
f5a96129
AC
95722002-01-30 Andrew Cagney <ac131313@redhat.com>
9573
9574 * defs.h (vwarning): Declare.
f5a96129
AC
9575 * utils.c (vwarning): New function.
9576 (warning): Call vwarning.
9577 (warning_begin): Delete function.
9578
9579 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9580 the warning message.
9581 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9582 warning_begin.
9583
cefd4ef5
MS
95842002-01-30 Michael Snyder <msnyder@redhat.com>
9585
1a703748
MS
9586 * NEWS: Mention "set trust-readonly-sections" command.
9587 Mention generate-core-file command.
cefd4ef5 9588
3a11626d
MS
95892002-01-15 Michael Snyder <msnyder@redhat.com>
9590
9591 * target.c: New command, "set trust-readonly-sections on".
9592 (do_xfer_memory): Honor the suggestion to trust readonly sections
9593 by reading them from the object file instead of from the target.
9594 (initialize_targets): Register command "set trust-readonly-sections".
9595
d1c7e53b
AC
95962002-01-29 Andrew Cagney <ac131313@redhat.com>
9597
9598 * parse.c (target_map_name_to_register): Simplify, search regs and
9599 pseudo-regs using a single loop.
9600
e2c9a72c
AC
96012002-01-30 Andrew Cagney <ac131313@redhat.com>
9602
9603 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9604
69824b4e
MK
96052002-01-15 Rodney Brown <rbrown64@csc.com.au>
9606
9607 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9608 * config/i386/i386v42mp.mh: Add i387-nat.o .
9609 * i386v4-nat.c: Include i387-nat.h.
9610 (supply_fpregset): Use i387_supply_fsave.
9611 (fill_fpregset): Use i387_fill_fsave.
9612
6eb69eab
RE
96132002-01-30 Richard Earnshaw <rearnsha@arm.com>
9614
9615 * arm-tdep.c (arm_call_dummy_words): Define.
9616 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9617 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9618 (CALL_DUMMY_WORDS): Define.
9619 (arm_call_dummy_words): Declare.
9620 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9621 (arm_linux_call_dummy_words): Declare.
9622
9852326a
AS
96232002-01-30 Andreas Schwab <schwab@suse.de>
9624
9625 * m68klinux-nat.c: Fix last change to use regcache_collect
9626 instead of referencing registers[] directly.
9627
977a3030
AC
96282002-01-29 Andrew Cagney <ac131313@redhat.com>
9629
9630 * parse.c (target_map_name_to_register): Delete code wrapped in
9631 #ifdef REGISTER_NAME_ALIAS_HOOK.
9632
2076c72b
MS
96332002-01-28 Michael Snyder <msnyder@redhat.com>
9634
9635 * regcache.c (legacy_read_register_gen): Need to be able to
9636 read pseudo-register as well as real register.
9637 (legacy_write_register_gen): Ditto.
9638
8fcc723b
AC
96392002-01-28 Andrew Cagney <ac131313@redhat.com>
9640
9641 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9642 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9643 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9644 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9645 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9646 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9647 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9648 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9649 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9650 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9651 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9652 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9653 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9654 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9655 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9656 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9657 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9658 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9659 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9660 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9661
afe64c1a
AC
96622002-01-28 Andrew Cagney <ac131313@redhat.com>
9663
9664 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9665 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9666 (initialize_current_architecture): Update target_byte_order using
9667 information from BFD.
aaa38bb5 9668 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9669 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9670
75bc7ddf
AC
96712002-01-28 Andrew Cagney <ac131313@redhat.com>
9672
9673 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9674 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9675
9676 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9677 #ifdef INVALID_FLOAT.
9678 * infcmd.c (do_registers_info): Ditto.
9679 * values.c (unpack_double): Ditto. Add comment.
9680
9681 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9682 already commented out.
9683
0280a90a
AS
96842002-01-26 Andreas Schwab <schwab@suse.de>
9685
9686 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9687 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9688 registers and add support for PTRACE_GETREGS.
9689
7072a954
AC
96902002-01-24 Andrew Cagney <ac131313@redhat.com>
9691
9692 GDB 5.1.1 released from 5.1 branch.
9693 * NEWS: Add 5.1.1 news.
9694 * README: Sync with 5.1 branch.
9695
86f902e0
FF
96962002-01-23 Fred Fish <fnf@redhat.com>
9697
9698 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9699 stabstring on initial malloc. Reallocing will copy it for us,
9700 if necessary.
9701
8af51c36
EZ
97022002-01-23 Elena Zannoni <ezannoni@redhat.com>
9703
aaa38bb5 9704 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9705 (HFILES_NO_SRCDIR): Remove hpread.h.
9706 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9707 (hpread.o): Update dependencies.
9708 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9709
9710 * hp-psymtab-read.c: Remove file.
9711 * hp-symtab-read.c: Remove file.
9712 * hpread.h: Remove file.
9713
9714 * hpread.c: Merge all contents of hp-psymtab-read.c,
9715 hp-symtab-read.c and hpread.h into this file, as it was prior to
9716 January 1999.
9717
9718 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9719 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9720 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9721 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9722
dc5cfeb6
EZ
97232002-01-23 Elena Zannoni <ezannoni@redhat.com>
9724
9725 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9726 fill_gregset): Call gdbarch_tdep() just once, assign result to
9727 variable and use that, instead of calling the function several
9728 times.
9729
ea87b71b
AO
97302002-01-24 Alexandre Oliva <aoliva@redhat.com>
9731
9732 * configure.host: Accept sparcv9 as alias for sparc64.
9733 * configure.tgt: Likewise.
9734
13fc0c2f
KB
97352002-01-22 Kevin Buettner <kevinb@redhat.com>
9736
9737 * solib-aix5.c (build_so_list_from_mapfile)
9738 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9739 arguments is not reversed.
9740 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9741 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9742
7bd872fe
EZ
97432002-01-22 Elena Zannoni <ezannoni@redhat.com>
9744
9745 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9746 modified version of obsolete sh_fetch_pseudo_register.
9747 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9748 (sh4_register_read): New function.
9749 (sh_pseudo_register_write): New function. Renamed and modified
9750 version of obsolete sh_store_pseudo_register.
9751 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9752 (sh4_register_write): New function.
9753 (sh_gdbarch_init): Remove setting of gdbarch function
9754 fetch_pseudo_register and store_pseudo_register. Remove setting of
9755 register_convert_to_raw, register_convert_to_virtual,
9756 register_convertible.
9757 (sh_sh4_register_convertible): Delete. No longer needed. All is
9758 taken care by architecture specific functions
9759 register_read/register_write.
9760 (sh_sh4_register_convert_to_virtual): Make static.
9761 (sh_sh4_register_convert_to_raw): Ditto.
9762
069e84fd
AC
97632002-01-22 Andrew Cagney <ac131313@redhat.com>
9764
9765 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9766 (floatformat_is_nan, floatformat_mantissa): Ditto.
9767
9768 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9769 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9770 builtin_type_ieee_double_little,
9771 builtin_type_ieee_double_littlebyte_bigword,
9772 builtin_type_m68881_ext, builtin_type_i960_ext,
9773 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9774 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9775 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9776 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9777
211a4f69
CV
97782002-01-22 Corinna Vinschen <vinschen@redhat.com>
9779
9780 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9781 parameter. Set frameless flag if it exists and depended of
9782 whether the scanned function is frameless or not.
9783 (xstormy16_skip_prologue): If function is frameless, return
9784 result of xstormy16_scan_prologue().
9785 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9786 call.
9787
f81353e4
EZ
97882002-01-21 Elena Zannoni <ezannoni@redhat.com>
9789
9790 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9791 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9792 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9793 sh_sh4_register_byte, sh_sh4_register_raw_size,
9794 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9795 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9796 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9797 sh_store_pseudo_register, sh_do_pseudo_register): Call
9798 gdbarch_tdep() just once, assign result to variable and use that,
9799 instead of calling the function several times.
9800
63c73a17
MK
98012002-01-20 Mark Kettenis <kettenis@gnu.org>
9802
9803 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9804 macros instead of LAST_FPU_CTRL_REGNUM.
9805 (store_register): Likewise.
9806
39ad761d
JB
98072002-01-21 Jim Blandy <jimb@redhat.com>
9808
9809 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9810 is up-to-date before running the program, not just when a program
9811 exits.
9812
3d74b771
FF
98132002-01-21 Fred Fish <fnf@redhat.com>
9814
9815 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9816 when we have found all instructions we are looking for.
9817
966fbf70
RE
98182002-01-21 Richard Earnshaw <rearnsha@arm.com>
9819
9820 * arm-tdep.c (arm_register_name): New function.
9821 (arm_registers_names): Make static.
9822 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9823 (arm_register_name): Declare.
9824 (REGISTER_NAME): Use it.
9825
c3b4394c
RE
98262002-01-21 Richard Earnshaw <rearnsha@arm.com>
9827 Kevin Buettner <kevinb@redhat.com>
9828
9829 Convert arm targets to new FRAME interface.
9830 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9831 (arm_frame_find_save_regs): Delete.
9832 (arm_frame_init_saved_regs): New.
9833 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9834 Allocate extra_info as required. Convert all uses of fsr.regs
9835 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9836 to use extra_info.
9837 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9838 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9839 (check_prologue_cache, save_prologue_cache): Likewise.
9840 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9841 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9842 (FRAME_FIND_SAVED_REGS): Delete.
9843 (arm_frame_find_saved_regs): Delete prototype.
9844 (arm_frame_init_saved_regs): New prototype.
9845 (FRAME_INIT_SAVED_REGS): Define.
9846
61d99182
AC
98472002-01-20 Andrew Cagney <ac131313@redhat.com>
9848
9849 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9850
6aaea291
AC
98512002-01-20 Andrew Cagney <ac131313@redhat.com>
9852
9853 From Jeff Law <law@redhat.com>:
9854 * infttrace.c: Include <sys/pstat.h>.
9855 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9856 exec file if the ttrace equivalent fails.
9857
15f698d2
AC
98582002-01-20 Andrew Cagney <ac131313@redhat.com>
9859
9860 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9861 (closeLogFile): Ditto.
9862
f86ddd7c
MC
98632002-01-20 Michael Chastain <mec@shout.net>
9864
9865 * top.c (print_gdb_version): Bump copyright year to 2002.
9866
904507ce
AC
98672002-01-20 Andrew Cagney <ac131313@redhat.com>
9868
9869 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9870 Zannoni and Eli Zaretskii.
9871
d7f0b9ce
DJ
98722002-01-20 Daniel Jacobowitz <drow@mvista.com>
9873
9874 * buildsym.c: Update copyright years.
9875 * c-typeprint.c: Likewise.
9876 * dwarf2read.c: Likewise.
9877 * f-typeprint.c: Likewise.
9878 * gdbtypes.c: Likewise.
9879 * gdbtypes.h: Likewise.
9880 * hp-symtab-read.c: Likewise.
9881 * hpread.c: Likewise.
9882 * mdebugread.c: Likewise.
9883 * p-typeprint.c: Likewise.
9884
3fd3d7d2
AC
98852002-01-20 Andrew Cagney <ac131313@redhat.com>
9886
9887 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9888 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9889 byte-order selectable.
9890 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9891 * arch-utils.c: Ditto.
9892 (set_endian): Ditto.
9893 (set_endian_from_file): Ditto.
9894 * gdbserver/low-sim.c (create_inferior): Ditto.
9895 * gdbarch.sh: Ditto.
9896 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9897 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9898 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9899 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9900 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9901 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9902 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9903 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9904 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9905 macro definition.
9906 * config/mips/tm-wince.h: Remove #undef of macro
9907 TARGET_BYTE_ORDER_SELECTABLE.
9908 * config/sh/tm-wince.h: Ditto.
9909
b02dede2
DJ
99102002-01-20 Daniel Jacobowitz <drow@mvista.com>
9911
9912 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9913 member function fields. Add accessor macro
9914 TYPE_FN_FIELD_ARTIFICIAL.
9915 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9916 * c-typeprint.c (c_type_print_base): Skip artificial member
9917 functions.
9918
c3643761
DJ
99192002-01-20 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * f-typeprint.c: Delete unused function f_type_print_args.
9922 * p-typeprint.c: Delete unused function pascal_type_print_args.
9923
8176bb6d
DJ
99242002-01-20 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9927 comment. Add ``artificial'' to ``union field_location''.
9928
9929 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9930
9931 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9932 * mdebugread.c (parse_symbol): Likewise.
9933 * stabsread.c (define_symbol): Likewise.
9934 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9935 initializing TYPE_FIELD_BITPOS to n (obsolete).
9936 (hpread_doc_function_type): Likewise.
9937 * hpread.c (hpread_function_type): Likewise.
9938
7fd60527
AC
99392002-01-20 Andrew Cagney <ac131313@redhat.com>
9940
9941 * configure.in (host_makefile_frag): Only require a host makefile
9942 fragment when a native build.
9943 * configure: Re-generate.
9944
c2f05ac9
AC
99452002-01-20 Andrew Cagney <ac131313@redhat.com>
9946
9947 * doublest.h (floatformat_from_type): Declare.
9948 * doublest.c (floatformat_from_type): New function.
9949 (convert_typed_floating): Use.
9950
9951 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9952 call to function floatformat_from_type.
9953
9954 * gdbarch.sh (IEEE_FLOAT): Delete.
9955 * gdbarch.h, gdbarch.c: Re-generate.
9956 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9957 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9958 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9959 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9960 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9961 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9962 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9963 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9964 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9965 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9966 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9967 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9968
9969 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9970 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9971 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9972 * sh-tdep.c (sh_gdbarch_init): Ditto.
9973 * mips-tdep.c (mips_gdbarch_init): Ditto.
9974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9975 * cris-tdep.c (cris_gdbarch_init): Ditto.
9976
abf22e64
AJ
99772002-01-20 Jiri Smid <smid@suse.cz>
9978
9979 * configure.host, configure.tgt: Support x86-64.
9980 * NEWS: Note new target x86-64.
9981
b7c4cbf8
AJ
9982 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9983 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9984 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9985 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9986 x86-64-linux-nat.o): Fix dependencies.
9987
82600034
AC
99882002-01-19 Andrew Cagney <ac131313@redhat.com>
9989
9990 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9991 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9992 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9993 * config/sparc/xm-sun4os4.h: Delete file.
9994 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9995
bbe5c628
AC
99962002-01-19 Andrew Cagney <ac131313@redhat.com>
9997
9998 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9999 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10000 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10001 * config/i386/i386lynx.mh (XM_FILE): Delete.
10002 * config/rs6000/xm-rs6000ly.h: Delete file.
10003 * config/sparc/xm-sparclynx.h: Delete file.
10004 * config/m68k/xm-m68klynx.h: Delete file.
10005 * config/i386/xm-i386lynx.h: Delete file.
10006 * config/xm-lynx.h: Delete file.
10007 * config/djgpp/fnchange.lst: Update.
10008
f8453e34
JT
100092002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10010
10011 * alpha-tdep.c (alpha_register_byte): New function.
10012 (alpha_register_raw_size): Ditto.
10013 (alpha_register_virtual_size): Ditto.
10014 (alpha_skip_prologue_internal): Renamed from
10015 alpha_skip_prologue.
10016 (alpha_skip_prologue): New version that calls
10017 alpha_skip_prologue_internal.
10018 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10019 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10020 second argument from alpha_skip_prologue.
10021 (REGISTER_BYTE): Use alpha_register_byte.
10022 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10023 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10024 (FRAMELESS_FUNCTION_INVOCATION): Use
10025 generic_frameless_function_invocation_not.
10026 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10027 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10028
52d9e613
AC
100292002-01-19 Andrew Cagney <ac131313@redhat.com>
10030
10031 * config/mips/xm-news-mips.h: Delete file.
10032 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10033
10034 * config/m88k/xm-m88k.h: Delete file.
10035 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10036 * config/m88k/xm-delta88v4.h: Ditto.
10037 * config/m88k/xm-delta88.h: Ditto.
10038
10039 * config/alpha/xm-fbsd.h: Delete file.
10040 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10041
10042 * config/sparc/xm-sparc.h: Delete file.
10043 * Makefile.in (xm-sun4os4.h): Delete dependency.
10044 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10045 * config/sparc/xm-sun4os4.h: Ditto.
10046 * config/sparc/xm-linux.h: Ditto.
10047
10048 * config/i386/xm-windows.h: Delete file.
10049
2d1b2124
AC
100502002-01-19 Andrew Cagney <ac131313@redhat.com>
10051
10052 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10053 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10054
ee1f65f0
JT
100552002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10056
10057 * alpha-tdep.c (alpha_call_dummy_words): New.
10058 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10059 (CALL_DUMMY_P): Define.
10060 (CALL_DUMMY_WORDS): Define.
10061 (SIZEOF_CALL_DUMMY_WORDS): Define.
10062
98081e55
PB
100632002-01-19 Per Bothner <per@bothner.com>
10064
10065 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10066 isn't NULL, which can happen with some gcj-3.x-produced code.
10067
0d056799
JT
100682002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10069
10070 * alpha-tdep.c (alpha_register_virtual_type): New function.
10071 (alpha_init_frame_pc_first): Ditto.
10072 (alpha_fix_call_dummy): Ditto.
10073 (alpha_store_struct_return): Ditto.
10074 (alpha_extract_struct_value_address): Ditto.
10075 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10076 alpha_register_virtual_type.
10077 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10078 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10079 alpha_extract_struct_value_address.
10080 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10081 (INIT_FRAME_PC): Use init_frame_pc_noop.
10082 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10083
4604bcad
MK
100842002-01-19 Mark Kettenis <kettenis@gnu.org>
10085
10086 * i386gnu-nat.c: Include "i386-tdep.h".
10087 (fetch_fpregs): Simplify code dealing with uninitialized floating
10088 point states such that it doesn't require FP7_REGNUM.
10089
140f9984
JT
100902002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10091
abf22e64
AJ
10092 * alpha-tdep.c (frame_extra_info): New.
10093 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10094 frame->extra_info.
10095 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10096 (alpha_frame_saved_pc): Use frame->extra_info.
10097 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10098 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10099 (init_extra_frame_info): Rename to...
10100 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10101 (alpha_print_extra_frame_info): New function.
140f9984
JT
10102 (alpha_frame_locals_address): Ditto.
10103 (alpha_frame_args_address): Ditto.
abf22e64 10104 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10105 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10106 alpha_frame_args_address.
abf22e64 10107 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10108 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10109 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10110 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10111 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10112 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10113
d734c450
JT
101142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10115
10116 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10117 (alpha_cannot_fetch_register): Ditto.
10118 (alpha_cannot_store_register): Ditto.
10119 (alpha_register_convertible): Ditto.
10120 (alpha_use_struct_convention): Ditto.
10121 * config/alpha/tm-alpha.h: Update copyright years.
10122 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10123 (INNER_THAN): Use core_addr_lessthan.
10124 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10125 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10126 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10127 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10128 (FRAME_CHAIN): Remove unnecessary cast.
10129
b4ceaee6
AC
101302002-01-18 Andrew Cagney <ac131313@redhat.com>
10131
10132 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10133 obsolete.
10134
0a65a603
AC
101352002-01-18 Andrew Cagney <ac131313@redhat.com>
10136
10137 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10138 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10139 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10140 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10141 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10142 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10143 * x86-64-linux-nat.c: Ditto.
10144
636a6dfc
JT
101452002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10146
abf22e64 10147 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10148 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10149 (REGISTER_NAME): Define.
10150
acceddb6
JT
101512002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10152
10153 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10154
ec32e4be
JT
101552002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10156
10157 * alpha-tdep.c: Update copyright years.
10158 (alpha_next_pc): New function.
10159 (alpha_software_single_step): Ditto.
10160 * config/alpha/tm-alpha.h: Add prototype for
10161 alpha_software_single_step.
10162
e771a871
JT
101632002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10164
10165 * alphabsd-nat.c: Update copyright years.
10166 (fill_gregset): Use regcache_collect.
10167 (fill_fpregset): Likewise.
10168 (fetch_inferior_registers): Only fetch integer registers
10169 if requested to do so.
10170 (store_inferior_registers): Only store integer registers
10171 if requested to do so.
10172
7708fa01
AC
101732002-01-17 Andrew Cagney <ac131313@redhat.com>
10174
10175 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10176 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10177 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10178 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10179 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10180 * config/arm/linux.mh (XDEPFILES): Delete.
10181 * config/arm/nbsd.mh (XDEPFILES): Delete.
10182 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10183 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10184 * config/i386/i386m3.mh (XDEPFILES): Delete.
10185 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10186 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10187 * config/i386/fbsd.mh (XDEPFILES): Delete.
10188 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10189 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10190 * config/i386/i386v4.mh (XDEPFILES): Delete.
10191 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10192 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10193 * config/i386/i386aix.mh (XDEPFILES): Delete.
10194 * config/i386/go32.mh (XDEPFILES): Delete.
10195 * config/i386/cygwin.mh (XDEPFILES): Delete.
10196 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10197 * config/i386/i386mach.mh (XDEPFILES): Delete.
10198 * config/i386/i386v32.mh (XDEPFILES): Delete.
10199 * config/i386/linux.mh (XDEPFILES): Delete.
10200 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10201 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10202 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10203 * config/i386/i386sco.mh (XDEPFILES): Delete.
10204 * config/i386/i386v.mh (XDEPFILES): Delete.
10205 * config/i386/nbsd.mh (XDEPFILES): Delete.
10206 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10207 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10208 * config/i386/symmetry.mh (XDEPFILES): Delete.
10209 * config/i386/obsd.mh (XDEPFILES): Delete.
10210 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10211 * config/ia64/linux.mh (XDEPFILES): Delete.
10212 * config/ia64/aix.mh (XDEPFILES): Delete.
10213 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10214 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10215 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10216 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10217 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10218 * config/m68k/linux.mh (XDEPFILES): Delete.
10219 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10220 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10221 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10222 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10223 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10224 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10225 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10226 * config/m88k/delta88.mh (XDEPFILES): Delete.
10227 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10228 * config/m88k/m88k.mh (XDEPFILES): Delete.
10229 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10230 * config/mips/linux.mh (XDEPFILES): Delete.
10231 * config/mips/irix6.mh (XDEPFILES): Delete.
10232 * config/mips/irix5.mh (XDEPFILES): Delete.
10233 * config/mips/irix4.mh (XDEPFILES): Delete.
10234 * config/mips/irix3.mh (XDEPFILES): Delete.
10235 * config/mips/decstation.mh (XDEPFILES): Delete.
10236 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10237 (NATDEPFILES): Move core-aout.o to here.
10238 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10239 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10240 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10241 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10242 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10243 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10244 * config/pa/hpux11.mh (XDEPFILES): Delete.
10245 * config/powerpc/aix.mh (XDEPFILES): Delete.
10246 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10247 * config/powerpc/linux.mh (XDEPFILES): Delete.
10248 * config/romp/rtbsd.mh: Rename XDEPFILES.
10249 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10250 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10251 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10252 * config/s390/s390.mh (XDEPFILES): Delete.
10253 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10254 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10255 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10256 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10257 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10258 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10259 * config/sparc/linux.mh (XDEPFILES): Delete.
10260 * config/vax/vaxult.mh (XDEPFILES): Delete.
10261 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10262 * Makefile.in (DEPFILES): Remove XDEPFILES.
10263
375fc983
AC
102642002-01-17 Andrew Cagney <ac131313@redhat.com>
10265
10266 * utils.c (internal_verror): Fix comments, default is yes not no.
10267 Update queries to match. Default to quit and dump core.
10268
8926118c
AC
102692002-01-17 Andrew Cagney <ac131313@redhat.com>
10270
10271 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10272 copyright.
10273 * defs.h, event-top.c, gdbcmd.h: Ditto.
10274 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10275 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10276 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10277 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10278 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10279 * mi/mi-main.c:Ditto.
10280
10281 * stack.c, symfile.c: Update copyright.
10282
45b7b345
DJ
102832002-01-17 Daniel Jacobowitz <drow@mvista.com>
10284
db728ff7
DJ
10285 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10286 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10287 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10288 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10289
db728ff7
DJ
102902002-01-17 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10293 * gdbserver/low-lynx.c (myattach): Likewise.
10294 * gdbserver/low-nbsd.c (myattach): Likewise.
10295 * gdbserver/low-sim.c (myattach): Likewise.
10296 * gdbserver/low-sparc.c (myattach): Likewise.
10297 * gdbserver/low-sun3.c (myattach): Likewise.
10298
10299 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10300
db728ff7 10301 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10302 (main): Handle "--attach".
10303
8de3c354
AC
103042002-01-16 Andrew Cagney <ac131313@redhat.com>
10305
10306 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10307 maintainer.
10308
b0129042
DJ
103092002-01-15 Daniel Jacobowitz <drow@mvista.com>
10310
10311 * c-typeprint.c (is_type_conversion_operator): Add additional
10312 check for non-conversion operators.
10313
ba8679fb 103142002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10315
10316 * linux-proc.c: Add "info proc" command, a la procfs.c.
10317 (read_mapping): New function, abstract and re-use code.
10318 (linux_find_memory_regions): Use new func read_mapping.
10319 (linux_info_proc_cmd): New function, implement "info proc".
10320 (_initialize_linux_proc): Add new command "info proc".
10321
e4f9b4d5
MS
103222002-01-15 Michael Snyder <msnyder@redhat.com>
10323
10324 * symfile.c (generic_load): Use bfd_map_over_sections method
10325 instead of manipulating bfd structure members directly.
10326 (add_section_size_callback): New function, bfd sections callback
10327 used by generic_load.
10328 (load_sections_callback): New function, bfd sections callback
10329 used by generic_load.
10330
08cf96df
EZ
103312002-01-15 Elena Zannoni <ezannoni@redhat.com>
10332
abf22e64 10333 [Based on work by Jim Blandy]
08cf96df
EZ
10334 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10335 (builtin_type_vec128): Export.
10336 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10337 types.
10338 (builtin_type_vec128): New builtin type for 128 bit vector
10339 registers.
10340 (build_gdbtypes): Initialize builtin_type_v16qi and
10341 builtin_type_v8hi. Create the vec128 register builtin type
10342 structure.
10343 (build_builtin_type_vec128): New function.
abf22e64 10344 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10345 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10346 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10347 AltiVec register to new builtin type.
10348
d7242108
DJ
103492001-01-15 Daniel Jacobowitz <drow@mvista.com>
10350
10351 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10352 to make_cv_type.
10353
4ee3352d
AC
103542002-01-14 Andrew Cagney <ac131313@redhat.com>
10355
10356 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10357 CLEAN_UP_REGISTER_VALUE.
10358 * regcache.c (supply_register): Update only call.
10359
f015b2e7
AC
103602002-01-14 Andrew Cagney <ac131313@redhat.com>
10361
10362 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10363 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10364 a29k-*-vxworks* targets as obsolete.
10365
356ae49d
MS
103662002-01-14 Michael Snyder <msnyder@redhat.com>
10367
10368 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10369 until we can resolve portability issues.
10370 * gregset.h: Remove references to fpxregs.
10371 * gcore.c (gcore_command): Initialize note_sec to NULL.
10372
ade8f45e
AC
103732002-01-13 Andrew Cagney <ac131313@redhat.com>
10374
10375 * signals.c (target_signal_to_name): Rewrite. Only use
10376 signals[].name when in bounds and non-NULL.
abf22e64 10377
89c49e7a
AC
103782002-01-13 Andrew Cagney <ac131313@redhat.com>
10379
10380 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10381 * signals.c (target_signal_to_name): Verify that SIG is within the
10382 bounds of the signals array.
10383
4daa9f9f
AC
103842002-01-13 Andrew Cagney <ac131313@redhat.com>
10385
10386 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10387
ba4bbdcb
KS
103882002-01-13 Keith Seitz <keiths@redhat.com>
10389
10390 * stack.c (print_frame_info_base): Print the frame's pc
10391 only if when print_frame_info_listing_hook is not defined.
10392
575bbeb6
KS
103932002-01-13 Keith Seitz <keiths@redhat.com>
10394
10395 * varobj.c (varobj_set_value): Make sure that there were no
10396 errors evaluating the object before attempting to set its
10397 value.
10398 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10399 so this offset adjustment is no longer necessary.
10400 (create_child): Don't set the error flag if the child is
10401 a CPLUS_FAKE_CHILD.
10402 (value_of_child): If value_fetch_lazy fails, return NULL
10403 so that callers will be notified that an error occurred.
10404 (c_value_of_variable): Delay check of variable's validity
10405 until later. We actually want all structs and unions to have
10406 the value "{...}".
10407 Do not return "???" for variables which could not be evaluated.
10408 This error condition must be returned to the caller so that it
10409 can get the error condition from gdb.
10410 (cplus_name_of_child): Adjust index for vptr before figuring
10411 out the name of the child.
10412 (cplus_value_of_child): If a child's (real) parent is not valid,
10413 don't even bother trying to give a value for it. Just return
10414 an error. Change all instances in this function.
10415 (cplus_type_of_child): If our parent is one of the "fake"
10416 parents, we need to get at the type of the real parent, and
10417 derive the child's true type using this information.
10418
b76898ab
AC
104192002-01-13 Andrew Cagney <ac131313@redhat.com>
10420
10421 From 2002-01-09 John Marshall <johnm@falch.net>:
10422 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10423 sources.redhat.com, and tweak some related URLs which had
10424 suffered from linkrot.
10425
b6649e88
AC
104262002-01-13 Andrew Cagney <ac131313@redhat.com>
10427
10428 From Jeff law:
10429 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10430 structures passed in registers.
10431
82cc5033
EZ
104322002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10433
10434 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10435 white space which prevented compilation. Reported by DSK
10436 <dsk@student.unsw.edu.au>.
10437
ba5f2f8a
MS
104382002-01-11 Michael Snyder <msnyder@redhat.com>
10439
fbd35540
MS
10440 * symfile.c (build_section_addr_info_from_section_tab):
10441 Use bfd access method instead of manipulating bfd directly.
10442 (syms_from_objfile): Ditto.
10443 (simple_overlay_update_1): Ditto.
10444 (simple_overlay_update): Ditto.
10445 (generic_load): Ditto.
10446 (overlay_unmapped_address): FIXME comment, bfd access methods.
10447 (sections_overlap): FIXME comment, bfd access methods.
10448 (pc_in_mapped_range): FIXME comment, bfd access methods.
10449 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10450 (section_is_mapped): FIXME comment, bfd access methods.
10451 (section_is_overlay): FIXME comment, bfd access methods.
10452
ba5f2f8a
MS
10453 * symfile.c (generic_load): Whitespace and long line cleanups.
10454 Remove duplicate variable, change several local variables to
10455 more appropriate data types.
10456 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10457
17df2af6
AC
104582002-01-12 Andrew Cagney <ac131313@redhat.com>
10459
10460 From Peter Schauer:
10461 * language.c (longest_local_hex_string_custom): Use phex_nz to
10462 convert NUM to a hex string.
10463
ec920329
EZ
104642002-01-12 Elena Zannoni <ezannoni@redhat.com>
10465
10466 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10467 the function.
538a76d6 10468 Update Copyright year.
ec920329 10469
3abd2e01
AC
104702002-01-12 Andrew Cagney <ac131313@redhat.com>
10471
10472 * language.c (longest_raw_hex_string): Delete unused function.
10473
b21b22e0
PS
104742002-01-11 Petr Sorfa <petrs@caldera.com>
10475
10476 * MAINTAINERS (write-after-approval): Add myself.
10477 * dwarf2read.c (read_tag_string_type): Handling of
10478 DW_AT_byte_size.
10479 (read_tag_string_type): FORTRAN fix to prevent propagation of
10480 first string size.
10481 (set_cu_language): Handling of DW_LANG_Fortran95
10482
747fe712
RE
104832002-01-11 Richard Earnshaw <rearnsha@arm.com>
10484
10485 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10486 GETPID(inferior_ptid).
10487 (store_inferior_registers): Likewise.
10488
f1bea926
JM
104892002-01-10 Jason Merrill <jason@redhat.com>
10490
10491 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10492 Fix DW_OP_minus.
10493
ae940673
AC
104942002-01-10 Andrew Cagney <ac131313@redhat.com>
10495
10496 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10497 and bfd/elf32-sh-nbsd.c.
10498
00546b04
MS
104992002-01-10 Michael Snyder <msnyder@redhat.com>
10500
352ed7b4
MS
10501 * NEWS: Mention --pid and corefile/proc-id behavior change.
10502
c18be923
MS
10503 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10504 * gcore.c: Include cli/cli-decode.h instead of command.h.
10505
00546b04
MS
10506 * main.c (captured_main): Add new command line option "--pid".
10507 If the second command line argument (following the symbol-file)
10508 begins with a digit, try to attach to it before trying to open
10509 it as a corefile.
10510 (print_gdb_help): Document the "--pid" argument.
10511
db60ec62
EZ
105122002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10513
10514 * completer.c (command_completer): New function.
10515
10516 * completer.h <command_completer>: Add prototype.
10517
10518 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10519 completer for the "help" command.
10520
39c22d1a
JM
105212002-01-09 Jason Merrill <jason@redhat.com>
10522
10523 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10524
c564377f
MS
105252002-01-09 Michael Snyder <msnyder@redhat.com>
10526
975aec09
MS
10527 * i386-linux-nat.c (fill_fpxregset): Make global.
10528 (store_fpxregset): Ditto.
10529
db4a10fa
MS
10530 * gregset.h (gdb_fpxregset_t): Define.
10531 (supply_fpxregset): Prototype.
10532 (fill_fpxregset): Prototype.
10533
c564377f
MS
10534 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10535
c3d45d70
RE
105362002-01-09 Richard Earnshaw <rearnsha@arm.com>
10537
10538 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10539 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10540 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10541
fcc87af1
AC
105422002-01-09 Andrew Cagney <ac131313@redhat.com>
10543
10544 * MAINTAINERS: Update target maintainer rules so that any
10545 Maintainer can approve a tested patch for a maintenance-only
10546 target.
10547
dd96c05b
RE
105482002-01-09 Richard Earnshaw <rearnsha@arm.com>
10549
d4297db9 10550 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10551
d4297db9 10552 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10553 IN_SIGTRAMP.
10554
145fdc6e
MS
105552002-01-08 Michael Snyder <msnyder@redhat.com>
10556
10557 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10558 real name of the executable, rather than the /proc name.
10559
be4d1333
MS
105602002-01-03 Michael Snyder <msnyder@redhat.com>
10561
10562 Implement a "generate-core-file" command in gdb, save target state.
10563 * gcore.c: New file. Implement new command 'generate-core-file'.
10564 Save a corefile image of the current state of the inferior.
10565 * linux-proc.c: Add linux-specific code for saving corefiles.
10566 * target.h (struct target_ops): Add new target vectors for saving
10567 corefiles; to_find_memory_regions and to_make_corefile_notes.
10568 (target_find_memory_regions): New macro.
10569 (target_make_corefile_notes): New macro.
10570 * target.c (update_current_target): Inherit new target methods.
10571 (dummy_find_memory_regions): New place-holder method.
10572 (dummy_make_corefile_notes): New place-holder method.
10573 (init_dummy_target): Initialize new dummy target vectors.
10574 * exec.c (exec_set_find_memory_regions): New function.
10575 Allow the exec_ops vector for memory regions to be taken over.
10576 (exec_make_note_section): New function, target vector method.
10577 * defs.h (exec_set_find_memory_regions): Export prototype.
10578 * procfs.c (proc_find_memory_regions): New function, corefile method.
10579 (procfs_make_note_section): New function, corefile method.
10580 (init_procfs_ops): Set new target vector pointers.
10581 (find_memory_regions_callback): New function.
10582 (procfs_do_thread_registers): New function.
10583 (procfs_corefile_thread_callback): New function.
10584 * sol-thread.c (sol_find_memory_regions): New function.
10585 (sol_make_note_section): New function.
10586 (init_sol_thread_ops): Initialize new target vectors.
10587 * inftarg.c (inftarg_set_find_memory_regions): New function.
10588 Allow to_find_memory_regions vector to be taken over.
10589 (inftarg_set_make_corefile_notes): New function.
10590 Allow to_make_corefile_notes vector to be taken over.
10591 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10592 interface layer if not target_has_execution (may be a corefile).
10593 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10594 * config/sparc/sun4sol2.mh: Ditto.
10595 * config/alpha/alpha-linux.mh: Ditto.
10596 * config/arm/linux.mh: Ditto.
10597 * config/i386/x86-64linux.mh: Ditto.
10598 * config/ia64/linux.mh: Ditto.
10599 * config/m68k/linux.mh: Ditto.
10600 * config/mips/linux.mh: Ditto.
10601 * config/powerpc/linux.mh: Ditto.
10602 * config/sparc/linux.mh: Ditto.
10603
c6b92abd
MS
106042002-01-07 Michael Snyder <msnyder@redhat.com>
10605
10606 * arm-linux-nat.c: Remove references to regcache.c internal data
10607 (registers[] and register_valid[]).
10608
4b09dc8c
MS
106092002-01-07 Michael Snyder <msnyder@redhat.com>
10610
abf22e64
AJ
10611 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10612 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10613 symbol file and shlibs.
10614 * Makefile.in: Add rule for linux-proc.o.
10615 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10616 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10617 * config/arm/linux.mh: Ditto.
10618 * config/i386/linux.mh: Ditto.
10619 * config/i386/x86-64linux.mh: Ditto.
10620 * config/ia64/linux.mh: Ditto.
10621 * config/m68k/linux.mh: Ditto.
10622 * config/mips/linux.mh: Ditto.
10623 * config/powerpc/linux.mh: Ditto.
10624 * config/sparc/linux.mh: Ditto.
10625
c25b74ac
PM
106262002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10627
10628 * win32-nat.c: Add i386-tdep.h dependency.
10629
94cd915f
MS
106302002-01-07 Michael Snyder <msnyder@redhat.com>
10631
c7cccb76
MS
10632 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10633 instead of bfd_get_arch_size. Don't bail out just because
10634 there's no exec_bfd.
abf22e64 10635
34c0bd93
MS
10636 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10637 * p-valprint.c (pascal_object_print_value): Ditto.
10638 * somread.c (som_symtab_read): Ditto.
10639 * symfile.c (simple_free_overlay_region_table): Ditto.
10640 * valops.c (value_assign): Ditto.
10641
21c1c920
MS
10642 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10643 use tilde_expand and strerror for opening save-tracepoints file.
10644
5bbd998e
MS
10645 * thread-db.c (thread_db_new_objfile): Indendation fix.
10646
94cd915f
MS
10647 * infptrace.c (GDB_MAX_ALLOCA): New define.
10648 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10649 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10650 can be overridden with whatever value is appropriate to the host).
10651 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10652 alloca to allocate potentially large buffer.
10653 * rs6000-nat.c (child_xfer_memory): Ditto.
10654 * symm-nat.c (child_xfer_memory): Ditto.
10655 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10656
494e8a93
JSC
106572002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10658
10659 From Nick Clifton <nickc@redhat.com>
10660 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10661
d0e1d48e
MS
106622002-01-07 Michael Snyder <msnyder@redhat.com>
10663
abf22e64 10664 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10665 Don't use exec_bfd if it's NULL.
10666
290b2c7a
MK
106672002-01-06 Mark Kettenis <kettenis@gnu.org>
10668
abf22e64 10669 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10670
aef21287
AC
106712002-01-06 Andrew Cagney <ac131313@redhat.com>
10672
10673 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10674 * gnu-nat.c: Ditto.
10675
30efa627
AC
106762002-01-06 Andrew Cagney <ac131313@redhat.com>
10677
10678 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10679 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10680 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10681 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10682 z8k-coff have not been multi-arched. Update z8k-coff build
10683 status.
10684
9b4ff276
AC
106852002-01-06 Andrew Cagney <ac131313@redhat.com>
10686
10687 * MAINTAINERS: Mark a29k target as obsolete.
10688 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10689 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10690 comments.
10691 * NEWS: Note that a29k targets are obsolete.
10692 * a29k-tdep.c: Mark as obsolete.
10693 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10694 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10695 a29k-*-vxworks* targets as obsolete.
10696 * remote-adapt.c: Obsolete.
10697 * remote-eb.c: Obsolete.
10698 * remote-mm.c: Obsolete.
10699 * remote-udi.c: Obsolete.
10700 * config/a29k/a29k-udi.mt: Obsolete.
10701 * config/a29k/a29k.mt: Obsolete.
10702 * config/a29k/tm-a29k.h: Obsolete.
10703 * config/a29k/tm-vx29k.h: Obsolete.
10704 * config/a29k/vx29k.mt: Obsolete.
10705
a9011d31
AC
107062002-01-05 Andrew Cagney <ac131313@redhat.com>
10707
10708 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10709 with BFD_ENDIAN_BIG.
10710
9299404e
AC
107112002-01-05 Andrew Cagney <ac131313@redhat.com>
10712
10713 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10714 * configure, config.in: Re-generate.
10715 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10716 * defs.h: Do not include <endian.h>.
10717
7e89e357
JT
107182002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10719
10720 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10721 * config.in: Regenerate.
10722 * configure.in: Update copyright years.
10723 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10724 * configure: Regenerate.
10725 * i386bsd-nat.c: Update copyright years.
10726 (fill_gregset): Use regcache_collect.
10727 (fetch_inferior_registers): Only fetch integer registers
10728 if requested to do so. Add support for XMM registers
10729 using PT_GETXMMREGS.
10730 (store_inferior_registers): Only store integer registers
10731 if requested to do so. Add support for XMM registers
10732 using PT_SETXMMREGS.
10733 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10734 (store_inferior_registers): Remove.
10735 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10736 (fetch_elfcore_registers): New function.
10737 (i386nbsd_elfcore_fns): New.
10738 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10739 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10740 i386bsd-nat.o.
10741 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10742 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10743 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10744 * config/i386/tm-nbsd.h: Update copyright years.
10745 (HAVE_SSE_REGS): Define.
10746 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10747 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10748 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10749 (SIGCONTEXT_PC_OFFSET): Remove.
10750 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10751
a752853e
AC
107522002-01-05 Andrew Cagney <ac131313@redhat.com>
10753
10754 * configure.tgt: Remove powerpc-*-macos* target.
10755 * config/m68k/xm-mpw.h: Delete file.
10756 * config/xm-mpw.h: Delete file.
10757 * ser-mac.c: Delete file.
10758 * mpw-make.sed: Delete file.
10759 * mpw-config.in: Delete file.
10760 * mac-xdep.c: Delete file.
10761 * mac-gdb.r: Delete file.
10762 * mac-defs.h: Delete file.
10763 * mac-nat.c: Delete file.
10764 * config/powerpc/macos.mh: Delete file.
10765 * config/powerpc/macos.mt: Delete file.
10766 * config/powerpc/nm-macos.h: Delete file.
10767 * config/powerpc/tm-macos.h: Delete file.
10768 * source.c (openp, open_source_file): Remove obsolete code.
10769 * top.c (gdb_readline): Ditto.
10770 * utils.c (query): Ditto.
10771 * event-top.c (display_gdb_prompt): Ditto.
10772 * Makefile.in (ser-mac.o): Delete obsolete target.
10773 * NEWS: Update.
10774
d7449b42
AC
107752002-01-04 Andrew Cagney <ac131313@redhat.com>
10776
10777 * defs.h (BIG_ENDIAN): Delete macro definition.
10778 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10779 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10780 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10781 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10782 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10783 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10784 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10785 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10786 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10787 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10788 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10789 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10790 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10791 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10792 * gdbarch.c: Re-generate.
10793
356374e8
DJ
107942002-01-04 Daniel Jacobowitz <drow@mvista.com>
10795
10796 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10797 for core files.
10798
a2b8f8f8
JT
107992002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10800
10801 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10802
12466af9
AC
108032002-01-04 Andrew Cagney <ac131313@redhat.com>
10804
10805 * value.h (value_ptr): Delete typedef.
10806
3549ab40
JT
108072002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10808
10809 * i386nbsd-nat.c: Update copyright years.
10810 Include i386-tdep.h.
10811
fedbd091
EZ
108122002-01-04 Elena Zannoni <ezannoni@redhat.com>
10813
10814 * stabsread.c: Update copyright years.
10815
10816 From Debashis Mahata <debashis.mahata@wipro.com>:
10817 (read_struct_fields): Deal with Sun C compiler erroneous stab
10818 output for structs and unions.
fec8b34f 10819 Fix PR gdb/269.
fedbd091 10820
eb43544b
DJ
108212002-01-04 Daniel Jacobowitz <drow@mvista.com>
10822
10823 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10824 prototype.
10825
1514d34e
DJ
108262002-01-04 Daniel Jacobowitz <drow@mvista.com>
10827
10828 * cp-abi.c: Fix whitespace.
10829 (baseclass_offset): New wrapper function.
10830 * cp-abi.h (baseclass_offset): Add prototype.
10831 (struct cp_abi_ops): Add baseclass_offset pointer.
10832
10833 * valops.c (vb_match): Move to...
10834 * gnu-v2-abi.c (vb_match): here.
10835 * valops.c (baseclass_offset): Move to...
10836 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10837
10838 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10839
10840 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10841 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10842 * hpacc-abi.c (init_hpacc_ops): Likewise.
10843
7f8c9282
DJ
108442002-01-04 Daniel Jacobowitz <drow@mvista.com>
10845
10846 * valops.c (find_overload_match): Accept obj as a
10847 reference parameter. Update it before returning.
10848 * value.h (find_overload_match): Update prototype.
10849 * eval.c (evaluate_subexp_standard): Pass object to
10850 find_overload_match by reference.
10851
f23631e4
AC
108522002-01-03 Andrew Cagney <ac131313@redhat.com>
10853
10854 * valarith.c: Replace value_ptr with struct value pointer. Remove
10855 register attribute from value declarations.
10856 * valops.c: Ditto.
10857 * value.h: Ditto.
10858 * scm-lang.c (scm_lookup_name): Ditto.
10859
79e10fab 108602002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10861
79e10fab
AC
10862 Abstract the functionality of iterating over mapped memory
10863 regions into a general purpose iterator function.
abf22e64 10864 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10865 iterator for memory sections.
10866 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10867 (solib_mappings_callback): New function, callback for above.
10868 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10869 (info_mappings_callback): New function, callback for above.
10870
10871 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10872
c5ad026a
MK
108732002-01-01 Mark Kettenis <kettenis@gnu.org>
10874
d2a7c97a
MK
10875 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10876 * i386-tdep.c: Include "elf-bfd.h".
10877 (process_note_abi_tag_sections): New function.
10878 (i386_gdbarch_init): Add code to recognize various OS/ABI
10879 combinations.
10880
c5ad026a
MK
10881 * maint.c (_initialize_maint_cmds): Add missing \ in
10882 string-literal.
10883
a1a5b71e 10884For older changes see ChangeLog-2001
c906108c
SS
10885\f
10886Local Variables:
10887mode: change-log
10888left-margin: 8
10889fill-column: 74
10890version-control: never
10891End:
This page took 0.775804 seconds and 4 git commands to generate.