Import chnages from master config repository.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ecd1107e
AM
12002-09-12 Alan Modra <amodra@bigpond.net.au>
2
3 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4 mach constants.
5 * MAINTAINERS: Add myself to write after approval list.
6
e64f66d1
JB
72002-09-11 J. Brobecker <brobecker@gnat.com>
8
9 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
10
f9395794
JB
112002-09-11 J. Brobecker <brobecker@gnat.com>
12
13 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
14 Interix.
15
1a303dec
MS
162002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
17
18 * procfs.c (do_detach): Clear current signal, not just fault.
19 Corrects problem with breakpoint trap signal leaking to detached
20 process on Tru64.
21
c0219d42
MS
222002-09-10 Michael Snyder <msnyder@redhat.com>
23
24 * buildsym.c (finish_block): Protect against null pointer.
25
9d84ac84
AC
262002-09-10 Andrew Cagney <cagney@redhat.com>
27
28 * infcmd.c (default_print_registers_info): Send all output to
29 ``file'' instead of ``gdb_stdout''.
30
77d8f2b4
MS
312002-09-10 Michael Snyder <msnyder@redhat.com>
32
33 * mips-tdep.c (mips_extract_struct_value_address): Make val a
34 LONGEST, and use signed register read (addresses are sign-
35 extended for mips).
36
99656a61
SC
372002-09-10 Stephane Carrez <stcarrez@nerim.fr>
38
39 * event-loop.c (gdb_do_one_event): Make public.
40 * event-loop.h (gdb_do_one_event): Declare.
41
da12f4d8
JL
422002-09-10 Jeff Law <law@redhat.com>
43
44 * infttrace.c (child_resume): Simplify and rework to avoid
45 TT_PROC_CONTINUE.
46
d0aee0c4
FF
472002-09-09 Fred Fish <fnf@intrinsity.com>
48
49 * printcmd.c (print_scalar_formatted): "len" is the number of
50 target bytes, NOT the number of target bits.
51
7cb3ec5e
EZ
522002-09-09 Elena Zannoni <ezannoni@redhat.com>
53
54 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
55 * top.c (init_main): Set rl_terminal_name.
56
4dc81987
AS
572002-09-08 Aidan Skinner <aidan@velvet.net>
58
59 * ada-lang.c (ada_array_bound, ada_type_match,
60 _initialize_ada_language): Fix K&R definitions.
61 * ada-tasks.c (get_current_task): Fix K&R definitions.
62 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
63
842330b4
CF
642002-09-07 Christopher Faylor <cgf@redhat.com>
65
66 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
67 Add XP.
68
43156d82
MK
692002-09-06 Mark Kettenis <kettenis@gnu.org>
70
66da5fd8
MK
71 * i386-tdep.c (i386_register_virtual_type,
72 i386_register_convertible, i386_register_convert_to_virtual,
73 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
74 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
75 (i386_gdbarch_init): Fix comment. Add comments on calls that set
76 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
77 Don't set push_arguments twice.
78
4b218c18
MK
79 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
80 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
81 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
82 sigtramp_end to NULL.
83 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
84 defines.
85 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
86
4cc314d5
MK
87 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
88 whitespace.
89
43156d82
MK
90 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
91 * gdbarch.h, gdbarch.c: Re-generate.
92 * blockframe.c (find_pc_sect_partial_function): Convert to use
93 SIGTRAMP_START_P predicate.
94
6672060b
MS
952002-09-05 Michael Snyder <msnyder@redhat.com>
96
a90c3637
MS
97 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
98 generic_dummy_frame method and old method. Also distinguish
99 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 100 (arm_extract_return_value): Use new regcache method.
a90c3637 101
6672060b
MS
102 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
103 adjustment that doesn't conform to the ABI.
104 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
105 saved regcache, not from current regcache.
106
299ffc64
AC
1072002-09-05 Andrew Cagney <ac131313@redhat.com>
108
109 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
110 * README: Update.
111
a3a2ee65
JT
1122002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
113
114 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
115 if arm_apcs_32 is false.
116
2bc7eea9
AC
1172002-09-04 Andrew Cagney <ac131313@redhat.com>
118
119 GDB 5.3 branch created.
120
8a55a7c5
TR
1212002-09-03 Theodore A. Roth <troth@verinet.com>
122
123 * gdb/avr-tdep.c (avr_gdbarch_init): Use
124 generic_unwind_get_saved_register.
125
e26fb1d7
DC
1262002-09-03 David Carlton <carlton@math.stanford.edu>
127
128 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
129 argument (PR gdb/653). Update call to smash_to_method_type.
130 (read_structure_scope): Update call to dwarf2_add_member_fn.
131
30d52491
ML
1322002-09-03 Michal Ludvig <mludvig@suse.cz>
133
134 * x86-64-linux-tdep.c: Include gdb_string.h
135 * x86-64-linux-nat.c: Ditto.
136
06891d83
JT
1372002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
138
139 * ada-exp.y (yyname, yyrule): Remap global variables that appear
140 when YYDEBUG is set to 1.
141 * c-exp.y: Likewise.
142 * f-exp.y: Likewise.
143 * jv-exp.y: Likewise.
144 * m2-exp.y: Likewise.
145 * p-exp.y: Likewise.
146
7d400e77
JT
1472002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
148
149 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
150 dependency list.
151 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
152 solib_svr4_fetch_link_map_offsets to
153 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
154 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
155 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
156 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
157 solib-svr4.o, and solib-legacy.o.
158 * config/i386/tm-nbsd.h: Include solib.h.
159
704a27c4
JT
1602002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
161
162 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
163 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
164 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
165 comment noting that this needs its own target configuration.
166 * config/i386/nbsd.mt: New file.
167 * config/i386/nbsdaout.mt: Remove.
168 * config/i386/nbsdelf.mt: Ditto.
169 * config/i386/tm-nbsdaout.h: Ditto.
170
d66198e1
JT
1712002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
172
173 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
174 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
175 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
176 tdep->sigtramp_end.
177 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
178 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
179 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
180
3cac699e
JT
1812002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
182
183 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
184 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
185 * i386-tdep.h (i386bsd_init_abi): New prototype.
186 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
187 function declaration.
188 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
189 for NetBSD-a.out or NetBSD-ELF.
190 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
191 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
192 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
193 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
194 and nbsd-tdep.h.
195 (i386nbsd_pc_in_sigtramp): New function.
196 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
197 i386nbsd_pc_in_sigtramp.
198 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
199 and i386nbsdelf_init_abi OS ABI handlers.
200 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
201 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
202
7010ca0a
MK
2032002-09-02 Mark Kettenis <kettenis@gnu.org>
204
205 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
206 registers if the target really has them.
207
6dd93b72
JT
2082002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
209
210 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
211 than nbsd-tdep.h.
212
2ca8ae21
JT
2132002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
214
215 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
216 list.
217 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
218 (alphanbsd_skip_sigtramp_frame): New functions.
219 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
220 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
221 to alphanbsd_sigcontext_addr.
222
3d9b49b0
JT
2232002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
224
225 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
226 list.
227 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
228 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
229 nbsd_pc_in_sigtramp.
230 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
231 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
232 * nbsd-tdep.c: Include gdb_string.h.
233 (nbsd_pc_in_sigtramp): New function.
234 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
235 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
236 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
237 ppcnbsd_pc_in_sigtramp.
238 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
239 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
240 shnbsd_pc_in_sigtramp.
241 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
242 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
243 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
244
c860120c
PM
2452002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
246
247 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
248 watchpoints to NULL.
249 (insert_breakpoints): set val field of watchpoints if NULL.
250
251
c7612d53
JB
2522002-08-29 Jim Blandy <jimb@redhat.com>
253
254 * symtab.c (lookup_symbol_aux): In the cases where we find a
255 minimal symbol of an appropriate name and use its address to
256 select a symtab to read and search, use `name' (as passed to us)
257 as the demangled name when searching the symtab's global and
258 static blocks, not the minsym's name.
259
66609862
KS
2602002-08-29 Keith Seitz <keiths@redhat.com>
261
262 * stack.c (print_frame_info_base): Always set current_source_symtab
263 and current_source_line.
264
151fefe2
JB
2652002-08-29 Donn Terry <donnte@microsoft.com>
266
267 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
268
bfb3754e
KS
2692002-08-28 Keith Seitz <keiths@redhat.com>
270
271 * stack.c (select_frame): Add FIXME concerning selected-frame
272 events.
273 (select_frame_command): Send selected-frame-level-changed
274 event notification, but only if the level actually changed.
275 (up_silently_base): Add selected-frame-level-changed event
276 notification.
277 (down_silently_base): Likewise.
278
e822a2a0
AC
2792002-08-28 Andrew Cagney <ac131313@redhat.com>
280
281 * Makefile.in: Update dependencies for all gdb/*.c files.
282
309367d4
TT
2832002-08-27 Tom Tromey <tromey@redhat.com>
284
285 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
286 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
287 Update dependencies.
288 * i387-tdep.c: Include gdb_string.h.
289 * osabi.c: Likewise.
290 * i386-linux-nat.c: Likewise.
291 * lin-lwp.c: Likewise.
292 * ax-gdb.c: Likewise.
293 * signals/signals.c: Likewise.
294 * jv-valprint.c: Likewise.
295 * p-lang.c: Likewise.
296 * c-valprint.c: Likewise.
297 * cp-abi.c: Likewise.
298
e1507482
EZ
2992002-08-27 Elena Zannoni <ezannoni@redhat.com>
300
301 * cli/cli-script.h (copy_command_lines): Export.
302 * breakpoint.c: Include cli/cli-script.h.
303 * Makefile.in (breakpoint.o): Update dependencies.
304
c6510018
MS
3052002-08-26 Michael Snyder <msnyder@redhat.com>
306
307 * breakpoint.c (insert_breakpoints): Protect all references
308 to 'process_warning'. Shorten long lines.
309
c2b8ed2c
MS
3102002-08-26 Joel Brobecker <brobecker@gnat.com>
311
312 * cli/cli-script.c (copy_command_lines): New function.
313 * defs.h (copy_command_lines): Export.
314 * testsuite/gdb.base/commands.exp: New tests for commands
315 attached to a temporary breakpoint, and for commands that
316 delete the breakpoint they are attached to.
317
3182002-08-26 Michael Snyder <msnyder@redhat.com>
319
320 * breakpoint.c (bpstat_stop_status): Instead of copying the
321 pointer to the breakpoint commands struct, make a new copy
322 of the struct and point to that.
323 (bpstat_clear): Free the commands struct.
324 (bpstat_clear_actions): Free the commands struct.
325 (bpstat_do_actions): Free the command actions. Also execute
326 the local cleanups, instead of deleting them.
327 (delete_breakpoint): Leave the commands field of the bpstat
328 chain alone -- it will be freed later.
329
64b84175
KB
3302002-08-26 Kevin Buettner <kevinb@redhat.com>
331
332 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
333 deleted in 2002-08-20 commit. This function is still used by
334 ppc-linux-nat.c.
335
55970da6
KS
3362002-08-26 Keith Seitz <keiths@redhat.com>
337
338 * gdb-events.sh: Add selected-frame-level-changed event.
339 * gdb-events.c: Regenerated.
340 * gdb-events.h: Regenerated.
341
a790ad35
SC
3422002-08-26 Stephane Carrez <stcarrez@nerim.fr>
343
344 Fix PR gdb/393:
345 * inflow.c (terminal_save_ours): New function to save terminal
346 settings.
347 * inferior.h (terminal_save_ours): Declare.
348 * target.c (debug_to_terminal_save_ours): New function.
349 (cleanup_target): Defaults to_terminal_save_ours.
350 (update_current_target): Inherit to_terminal_save_ours.
351 (setup_target_debug): Set to_terminal_save_ours.
352 * target.h (target_terminal_save_ours): New to save terminal settings.
353 (target_ops): New member to_terminal_save_ours.
354 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
355 * hpux-thread.c (init_hpux_thread_ops): Likewise.
356 * inftarg.c (init_child_ops): Likewise.
357 * m3-nat.c (init_m3_ops): Likewise.
358 * procfs.c (init_procfs_ops): Likewise.
359 * wince.c (init_child_ops): Likewise.
360 * win32-nat.c (init_child_ops): Likewise.
361 * sol-thread.c (init_sol_thread_ops): Likewise.
362
c00dcbe9
MK
3632002-08-26 Mark Kettenis <kettenis@gnu.org>
364
3d7f4f49
MK
365 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
366 use regcache_* functions.
367 (i386_gdbarch_init): Set store_return_value instead of
368 deprecated_store_return_value.
369
c00dcbe9
MK
370 * regcache.c (regcache_raw_write_signed,
371 regcache_raw_write_unsigned): New functions.
372 * regcache.h (regcache_raw_write_signed,
373 regcache_raw_write_unsigned): New prototypes.
374
0e0d15ca
AC
3752002-08-25 Andrew Cagney <ac131313@redhat.com>
376
377 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
378 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
379 source file dependencies. Cleanup corresponding generator rules.
380
d3b22ed5
AC
3812002-08-25 Andrew Cagney <ac131313@redhat.com>
382
383 * regcache.h (register_offset_hack): Declare.
384 (regcache_cooked_read_using_offset_hack): Declare.
385 (regcache_cooked_write_using_offset_hack): Declare.
386
387 * regcache.c (register_offset_hack): New function.
388 (regcache_cooked_read_using_offset_hack): New function.
389 (regcache_cooked_write_using_offset_hack): New function.
390 (regcache_dump): Check that the registers, according to their
391 offset, are packed hard against each other.
392 (cooked_xfer_using_offset_hack): New function.
393
bb425013
AC
3942002-08-25 Andrew Cagney <ac131313@redhat.com>
395
396 * regcache.c (struct regcache_descr): Add field register_type.
397 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
398 in as a parameter
399 (init_regcache_descr): Initialize register_type. Pass the descr
400 to init_legacy_regcache_descr. Use register_type instead of
401 REGISTER_VIRTUAL_TYPE.
402 (register_type): New function.
403 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
404 * regcache.h (register_type): Declare.
405
d0403e00
AC
4062002-08-25 Andrew Cagney <ac131313@redhat.com>
407
408 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
409 instead of deprecated_store_return_value. Fix fallout from
410 2002-08-23 Andrew Cagney <cagney@redhat.com>.
411
0ed04cce
AC
4122002-08-25 Andrew Cagney <ac131313@redhat.com>
413
414 * regcache.c (max_register_size): New function.
415 (init_legacy_regcache_descr): Ensure that max_register_size is
416 large enough for REGISTER_VIRTUAL_SIZE.
417 * regcache.h (max_register_size): Declare.
418
46d79c04
AC
4192002-08-24 Andrew Cagney <ac131313@redhat.com>
420
421 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
422 store_return_value.
423 (e500_extract_return_value): Change type of valbuf pointer to
424 void.
425
853c7bd0
MK
4262002-08-24 Mark Kettenis <kettenis@gnu.org>
427
cd87e769
MK
428 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
429 workaround.
430
853c7bd0
MK
431 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
432 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
433 long long) to prevent compiler warning on 64-bit systems.
434
ebba8386
AC
4352002-08-23 Andrew Cagney <cagney@redhat.com>
436
437 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
438 (DEPRECATED_STORE_RETURN_VALUE): New method.
439 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
440 * gdbarch.h, gdbarch.c: Re-generate.
441
442 * values.c (set_return_value): Pass current_regcache to
443 STORE_RETURN_VALUE.
444 * arch-utils.h (legacy_store_return_value): Declare.
445 * arch-utils.c (legacy_store_return_value): New function.
446 (legacy_extract_return_value): Update parameters.
447
448 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
449 STORE_RETURN_VALUE.
450 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
451 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
452 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
453 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
454 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
455 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
456 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
457 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
458 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
459 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
460
461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
462 * i386-tdep.c (i386_extract_return_value): Update.
463 * arch-utils.c (legacy_extract_return_value): Update.
464 * frv-tdep.c (frv_gdbarch_init): Update.
465 * cris-tdep.c (cris_gdbarch_init): Update.
466 * d10v-tdep.c (d10v_gdbarch_init): Update.
467 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
468 * m68k-tdep.c (m68k_gdbarch_init): Update.
469 * mcore-tdep.c (mcore_gdbarch_init): Update.
470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
471 * s390-tdep.c (s390_gdbarch_init): Update.
472 * sparc-tdep.c (sparc_gdbarch_init): Update.
473 * sh-tdep.c (sh_gdbarch_init): Update.
474 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
475 * v850-tdep.c (v850_gdbarch_init): Update.
476 * avr-tdep.c (avr_gdbarch_init): Update.
477 * ia64-tdep.c (ia64_gdbarch_init): Update.
478 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
479 * vax-tdep.c (vax_gdbarch_init): Update.
480 * alpha-tdep.c (alpha_gdbarch_init): Update.
481 * arm-tdep.c (arm_gdbarch_init): Update.
482 * mips-tdep.c (mips_gdbarch_init): Update.
483 * i386-tdep.c (i386_gdbarch_init): Update.
484
5bd8c6d0
AC
4852002-08-23 Andrew Cagney <ac131313@redhat.com>
486
487 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
488 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
489
e73e1724
MK
4902002-08-24 Mark Kettenis <kettenis@gnu.org>
491
492 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
493 problems.
494
3e6564e1
JB
4952002-08-23 Joel Brobecker <brobecker@gnat.com>
496
497 * infrun.c (handle_inferior_event): Move a comment outside of a
498 function call, in order to avoid indent reformatting this part
499 of the code in an unreadable way.
500
81d0cc19
GS
5012002-08-23 Grace Sainsbury <graces@redhat.com>
502
503 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
504 when breakpoints fail. Move general breakpoint error messages to
505 insert_breakpoints.
506 * breakpoint.c (insert_breakpoints): Change warnings when
507 breakpoints are nto inserted to specify the type. Remove call to
508 memory_error when hardware breakpoints can't be inserted. Remove
509 multiple calls to warning so all messages are sent to the user at
510 once.
511 (delete_breakpoints): Make insert error messsages more explicit.
512
17574093
DJ
5132002-08-23 Daniel Jacobowitz <drow@mvista.com>
514
515 * ChangeLog: Move gdbserver entries after GDB 5.2 to
516 gdbserver/ChangeLog.
517
8acc2935
MK
5182002-08-23 Mark Kettenis <kettenis@gnu.org>
519
dfe01d39
MK
520 * i386-tdep.c: Include "objfiles.h".
521 (i386_svr4_init_abi): Set in_solib_call_trampoline and
522 skip_trampoline_code.
523 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
524 (CPLUS_MARKER): Define to '.'.
525
8acc2935
MK
526 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
527 member.
528 (linux_corefile_thread_callback): Increase args->num_notes.
529 (linux_make_note_section): Initialize thread_args.num_notes, and
530 use it to determine whether notes for any threads were created.
531
151fefe2 5322002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
533
534 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
535 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
536 and PCUNKILL.
537 (write_with_trace): Conditionalize out the switch branch handling
538 PCSHOLD if the corresponding macro is not defined. Likewise for
539 PRSABORT and PRSTOP.
540 This change will be needed by the Interix port.
541
e1507482
EZ
5422002-08-22 Elena Zannoni <ezannoni@redhat.com>
543
544 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
545 write_register wherever possible instead of manipulating the
546 register bytes directly.
547 Assign VALUE_CONTENTS to a variable and use that.
548 The GPR numbers are now dependent on the architecture.
549
96ff0de4
EZ
5502002-08-22 Elena Zannoni <ezannoni@redhat.com>
551
552 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
553 ev_offset fields.
554 (skip_prologue): Add support for BookE/e500 instructions.
555 (e500_extract_return_value): New function.
556 (frame_get_saved_regs): Add support for saving ev registers and
557 pseudo gpr's.
558 (e500_store_return_value): New function.
559 (rs6000_gdbarch_init): Move up default intializations of
560 deprecated_extract_return_value and store_return_value. Overwrite
561 init of store_return_value with e500 specific version.
562 Set extract_return_value for e500.
563
fbefca5b
EZ
5642002-08-22 Elena Zannoni <ezannoni@redhat.com>
565
566 * blockframe.c (generic_call_dummy_register_unwind): Use
567 regcache_cooked_read to catch cases in which the variable is
568 stored in a pseudo register.
569
4d210288
AC
5702002-08-22 Andrew Cagney <cagney@redhat.com>
571
572 * NEWS: Mention that the i960 has been made obsolete.
573 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
574 i960-tdep.c
575 (remote-nrom.o): Obsolete target.
576 (remote-nindy.o, i960-tdep.o): Ditto.
577 * remote-nrom.c: Make file obsolete.
578 * remote-nindy.c, remote-vx960.c: Ditto.
579 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
580 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
581 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
582 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
583 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
584 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
585 i960-*-vxworks* obsolete.
586 * MAINTAINERS: Note that the i960 is obsolete.
587
6c0c456d
CV
5882002-08-21 Corinna Vinschen <vinschen@redhat.com
589
590 * aix-thread.c (aix_thread_detach): Disable thread debugging on
591 detach to allow reinitialization.
592
9f9d12b3
AC
5932002-08-22 Andrew Cagney <ac131313@redhat.com>
594
595 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
596 attempt).
597
ebeb39fe
JB
5982002-08-22 Jim Blandy <jimb@redhat.com>
599
600 * coffread.c (coff_symfile_read): Don't try to read the line
601 number table from disk if the image file doesn't have a symbol
602 table; we'll never actually look at the info anyway, and Windows
603 ships DLL's with bogus file offsets for the line number data.
604
5bf1c677
EZ
6052002-08-21 Elena Zannoni <ezannoni@redhat.com>
606
607 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
608 an e500 executable.
609
71b8ef93
MS
6102002-08-21 Michael Snyder <msnyder@redhat.com>
611
612 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
613 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
614 (DEFAULT_MIPS_TYPE): Delete unused macro.
615 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
616 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 617
d174216d
JB
6182002-08-21 Jim Blandy <jimb@redhat.com>
619
620 * valops.c (value_cast): Simplify and correct logic for doing a
621 static cast from a pointer to a base class to a pointer to a
622 derived class.
623
0ab7a791
AC
6242002-08-21 Andrew Cagney <ac131313@redhat.com>
625
626 * infcmd.c (default_print_registers_info): Replace
627 do_registers_info.
628 (registers_info): Use gdbarch_print_registers_info instead of
629 DO_REGISTERS_INFO.
630 * inferior.h (default_print_registers_info): Replace
631 do_registers_info.
632 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
633 (DO_REGISTERS_INFO): Change to a predicate function.
634 * gdbarch.h, gdbarch.c: Regenerate.
635
e23792cc
KS
6362002-08-21 Keith Seitz <keiths@redhat.com>
637
638 * gdb-events.sh: Add target-changed event.
639 * gdb-events.c: Regenerated.
640 * gdb-events.c: Regenerated.
641 * valops.c (value_assign): Add target-changed event notification
642 to inlval_register, lval_memory, and lval_reg_frame_relative.
643
9fb14e79
JB
6442002-08-21 Joel Brobecker <brobecker@gnat.com>
645
646 * NEWS: Add an entry regarding the improvement of the next/step
647 operation on Alpha Tru64 multi-processor machines.
648
6d39a69f
AC
6492002-08-21 Andrew Cagney <ac131313@redhat.com>
650
72acd513
AC
651 * Makefile.in: Update dependencies for mi/ cli/ and tui/
652 directores.
342af04b 653 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
654 * Makefile.in (install-gdbtk): Move to install section.
655 (rdi-share/libangsd.a): Move to end of file.
656
fa5f27c7
AC
6572002-08-19 Andrew Cagney <ac131313@redhat.com>
658
659 * frame.c (frame_register_unwind): When a register, set addrp to
660 the register's byte.
661
5a89d8aa
MS
6622002-08-20 Michael Snyder <msnyder@redhat.com>
663
664 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
665 used locally, so move them from the target machine header to here.
666 (mips_set_processor_type, mips_register_name, mips32_next_pc,
667 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
668 Make static.
669 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
670
822e978b
AC
6712002-08-20 Andrew Cagney <cagney@redhat.com>
672
673 * NEWS: Mention that the Apollo line was made obsolete.
674 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
675 m68*-hp-hpux* obsolete.
676 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
677 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
678 * buildsym.c (make_blockvector): Make static.
679 * buildsym.h (make_blockvector): Make extern declaration obsolete.
680 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
681 (ALLDEPFILES): Remove dstread.c.
682 (dstread.o): Obsolete make rule.
683 * dstread.c: Makefile obsolete.
684 * dst.h: Ditto.
685 * config/m68k/hp300hpux.mt: Ditto.
686 * config/m68k/hp300hpux.mh: Ditto.
687 * config/m68k/hp300bsd.mt: Ditto.
688 * config/m68k/hp300bsd.mh: Ditto.
689 * config/m68k/apollo68b.mt: Ditto.
690 * config/m68k/apollo68v.mh: Ditto.
691 * config/m68k/apollo68b.mh: Ditto.
692
e41b17f0
MS
6932002-08-20 Michael Snyder <msnyder@redhat.com>
694
695 * mips-tdep.c (mips_in_return_stub): Make static.
696 (mips_gdbarch_init): Set in_solib_return_trampoline.
697 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
698
d50355b6
MS
6992002-08-20 Michael Snyder <msnyder@redhat.com>
700
701 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
702 * gdbarch.c, gdbarch.h: Regenerate.
703 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
704 Add.
705 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
706
757a7cc6
MS
7072002-08-20 Michael Snyder <msnyder@redhat.com>
708
709 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
710 (mips_gdbarch_init): Set skip_trampoline_code,
711 in_solib_call_trampoline.
712 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
713 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
714
c8001721
EZ
7152002-08-20 Elena Zannoni <ezannoni@redhat.com>
716
717 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
718
719 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
720 vector type for ev registers.
721 (e500_pseudo_register_read): New function.
722 (e500_pseudo_register_write): New function.
723 (e500_dwarf2_reg_to_regnum): New function.
724 (PPC_UISA_NOFP_SPRS): New macro.
725 (PPC_EV_REGS): New macro.
726 (PPC_GPRS_PSEUDO_REGS): New macro.
727 (registers_e500): New register set for e500.
728 (variants): Add e500 variant.
729 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
730 before setting architectural dependent variations. Initialize ev
731 registers numbers. Add case for e500 architecture. Set the
732 number of pseudo registers.
733
64366f1c
EZ
7342002-08-20 Elena Zannoni <ezannoni@redhat.com>
735
736 * rs6000-tdep.c: Clean up comments.
737
7e78f0ca
AC
7382002-08-20 Andrew Cagney <cagney@redhat.com>
739
740 * h8300-tdep.c: Re-indent file.
741
697f7479
JB
7422002-08-20 Jim Blandy <jimb@redhat.com>
743
744 * Makefile.in (LDFLAGS): Allow the configure script to establish a
745 default for this.
697f7479 746
e86ae29f
KS
7472002-08-20 Keith Seitz <keiths@redhat.com>
748
749 * breakpoints.c (watch_command_1): Use internal breakpoint
750 when setting a watchpoint_scope breakpoint.
751
216b504f
EZ
7522002-08-20 Elena Zannoni <ezannoni@redhat.com>
753
754 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
755 (build_builtin_type_vec64i): Ditto.
756 (build_builtin_type_vec128): Ditto.
757 (build_builtin_type_vec128i): Ditto.
758
f7ab6ec6
MS
7592002-08-19 Michael Snyder <msnyder@redhat.com>
760
761 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
762 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
763 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
764 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
765 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
766 CALL_DUMMY_ADDRESS): Delete.
767 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
768 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
769 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
770 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
771 push_return_address.
772 (mips_register_raw_size, mips_eabi_use_struct_convention,
773 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
774 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
775 mips_init_extra_frame_info, mips_eabi_push_arguments,
776 mips_n32n64_push_arguments, mips_push_return_address,
777 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
778 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
779
b5d1566e
MS
7802002-08-19 Michael Snyder <msnyder@redhat.com>
781
782 * mips-tdep.c (mips_frame_num_args): New function.
783 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
784 frame_saved_pc, frame_args_address, frame_locals_address,
785 frame_num_args, and frame_args_skip.
786 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
787 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
788 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
789 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
790
2f1488ce
MS
7912002-08-20 Michael Snyder <msnyder@redhat.com>
792
793 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
794 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
795 * mips-tdep.c (mips_store_struct_return): New function.
796 (mips_extract_struct_value_address): New function.
797 (mips_gdbarch_init): Set store_struct_return and
798 extract_struct_value_address.
799
41ff2da1
DC
8002002-08-20 David Carlton <carlton@math.stanford.edu>
801
802 * dwarf2read.c (dwarf2_build_psymtabs): Check that
803 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
804 (read_file_scope): Check that line_header is nonzero before
805 decoding macro information.
806
e5451d58
MK
8072002-08-20 Mark Kettenis <kettenis@gnu.org>
808
809 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
810 flag the general-purpose registers as floating-point on targets
811 that don't support the floating-point registers.
812
4a6daafa
EZ
8132002-08-20 Elena Zannoni <ezannoni@redhat.com>
814
815 * rs6000-tdep.c (altivec_register_p): Delete.
816 (rs6000_do_altivec_registers): Delete.
817 (rs6000_altivec_registers_info): Delete.
818 (rs6000_do_registers_info): Delete.
819 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
820 (rs6000_gdbarch_init): Remove setting of do_registers_info.
821
ab4327e0
EZ
8222002-08-20 Elena Zannoni <ezannoni@redhat.com>
823
824 * infcmd.c (do_registers_info): Print vector registers in hex
825 format only.
826 (print_vector_info): Check that printing registers
827 makes sense.
828 (print_float_info): Ditto.
829
cb1d2653
AC
8302002-08-20 Andrew Cagney <ac131313@redhat.com>
831
832 * mips-tdep.c (mips_gdbarch_init): Update.
833 (mips_o32_extract_return_value): Rewrite.
834 (mips_o32_store_return_value): Rewrite.
835 (mips_o32_xfer_return_value): New function.
836 (mips_xfer_register): Tweak debug print message. Allow for
837 buf_offset when dumping the value transfered.
838
dfc3d9b2
AC
8392002-08-20 Andrew Cagney <ac131313@redhat.com>
840
841 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
842 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
843 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
844 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
845 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
846
7807aa61
MS
8472002-08-14 Michael Snyder <msnyder@redhat.com>
848
849 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
850
489461e2
EZ
8512002-08-19 Elena Zannoni <ezannoni@redhat.com>
852
853 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
854 register.
855 (P): New macro to define a register as a pseudo register.
856 (R, R4, R8, R16, FR32, R64, R0): Updated.
857 (struct variant): Add new fields for number of pseudo registers
858 and number of total registers.
859 (tot_num_registers): New macro replacing....
860 (num_registers): ...deleted macro.
861 (num_registers): New function.
862 (num_pseudo_registers): New function.
863 (variants): Update all variants to intialize new fields correctly.
864 Postpone initialization of number of pseudo regs and real regs.
865 (init_variants): New function.
866 (rs6000_gdbarch_init): Initialize variants. Update calculation of
867 registers offsets.
868
fcaffe4c
DC
8692002-08-19 David Carlton <carlton@math.stanford.edu>
870
2c2738a0
DC
871 * valops.c (search_struct_field): Change error message to treat
872 return value of 0 from value_static_field as meaning that field is
873 optimized out.
874 (value_struct_elt_for_reference): Ditto.
875 * values.c (value_static_field): Treat an unresolved location the
876 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
877 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
878 enclosed. Fix PR gdb/574.
fcaffe4c
DC
879 * MAINTAINERS: Add self to Write After Approval list.
880
88658117
AC
8812002-08-19 Andrew Cagney <ac131313@redhat.com>
882
883 * mips-tdep.c (mips_xfer_register): New function.
884 (mips_n32n64_extract_return_value): Rewrite.
885 (mips_gdbarch_init): For N32 and N64, set extract_return_value
886 instead of deprecated_extract_return_value.
887
21283beb
EZ
8882002-08-19 Elena Zannoni <ezannoni@redhat.com>
889
890 * rs6000-tdep.c (TDEP): Delete macro.
891 (branch_dest): Replace use of TDEP macro with its body.
892 (rs6000_pop_frame): Ditto.
893 (rs6000_push_arguments): Ditto.
894 (rs6000_skip_trampoline_code): Ditto.
895 (rs6000_frame_saved_pc): Ditto.
896 (rs6000_frame_chain): Ditto.
897 (rs6000_register_name): Ditto.
898 (rs6000_register_byte): Ditto.
899 (rs6000_register_raw_size): Ditto.
900 (rs6000_register_virtual_type): Ditto.
901 (rs6000_register_convertible): Ditto.
902 (rs6000_convert_from_func_ptr_addr): Ditto.
903
bf072999
DJ
9042002-08-19 Daniel Jacobowitz <drow@mvista.com>
905
906 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
907 conditionally.
908 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
909 MIPS_LINUX_JB_ELEMENT_SIZE.
910 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
911 for MAX_REGISTER_RAW_SIZE arrays.
912 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
913 MIPS_LINUX_JB_ELEMENT_SIZE.
914
9b949a49
PM
9152002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
916
917 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
918
6d3e79c6
AS
9192002-08-19 Aidan Skinner <aidan@velvet.net>
920
921 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
922 ada-valprint.c ada-tasks.c.
923 (YYFILES): Add ada-exp.y.
924 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
925 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
926 (ada-exp.tab.o): New target.
927
06c0b04e
AC
9282002-08-18 Andrew Cagney <ac131313@redhat.com>
929
930 * regcache.c (regcache_xfer_part): New function.
931 (regcache_raw_read_part): New function.
932 (regcache_raw_write_part): New function.
933 (regcache_cooked_read_part): New function.
934 (regcache_cooked_write_part): New function.
935 * regcache.h (regcache_raw_read_part): Declare.
936 (regcache_raw_write_part): Declare.
937 (regcache_cooked_read_part): Declare.
938 (regcache_cooked_write_part): Declare.
939
92d1e331
DJ
9402002-08-18 Daniel Jacobowitz <drow@mvista.com>
941
942 * remote.c (remote_open_1): Add async_p.
943 (remote_async_open_1): Delete.
944 (open_remote_target): Delete.
945 (remote_open, extended_remote_open): Update calls to remote_open_1.
946 (remote_async_open, extended_remote_async_open): Call
947 remote_open_1 instead of remote_async_open_1.
948
247055de
MK
9492002-08-19 Mark Kettenis <kettenis@gnu.org>
950
951 * blockframe.c: Fix a few coding standard violations.
952
641eda39
MK
9532002-08-19 Mark Kettenis <kettenis@gnu.org>
954
0b717710
MK
955 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
956 here from ...
957 * config/i386/tm-i386sco5.h: ... here. File removed.
958 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
959
26d28e12 960 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
961 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
962 (TM_FILE): Set to tm-i386.h.
963 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
964 * config/i386/tm-i386v.h: Remove file.
965 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
966 instead of "i386/tm-i386v.h".
967 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
968 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
969 "i386/tm-i386v.h".
970 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
971 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
972 "i386/tm-i386.h".
973
d4e0bab4
MK
9742002-08-18 Mark Kettenis <kettenis@gnu.org>
975
976 * config/i386/nm-i386v.h: Add protection against
977 multiple-inclusion.
978 (i386_register_u_addr): Remove prototype.
979 (register_u_addr): New prototype.
980 (REGISTER_U_ADDR): Redefine accordingly.
981 * i386v-nat.c: Improve several comments.
982 (i386_register_u_addr): Change signature and rename to
983 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
984 ubase variable.
985
46cac009
AC
9862002-08-18 Andrew Cagney <ac131313@redhat.com>
987
988 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
989 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
990 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
991 deprecated_extract_return_value.
992 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
993 rename mips_o32o64_push_arguments.
994 (mips_gdbarch_init): Update.
995 (mips_extract_return_value): Delete.
996 (mips_o32_extract_return_value): Clone mips_extract_return_value.
997 (mips_o64_extract_return_value): Clone mips_extract_return_value.
998 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
999 (mips_n32n64_extract_return_value): Clone
1000 mips_extract_return_value.
1001 (mips_store_return_value): Delete.
1002 (mips_o32_store_return_value): Clone mips_store_return_value.
1003 (mips_o64_store_return_value): Clone mips_store_return_value.
1004 (mips_eabi_store_return_value): Clone mips_store_return_value.
1005 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1006
d2e4a39e
AS
10072002-08-18 Aidan Skinner <aidan@velvet.net>
1008
0c30c098
AS
1009 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1010 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1011
10122002-08-18 Aidan Skinner <aidan@velvet.net>
1013
1014 * ada-lang.c: Run through gdb_indent.sh.
1015 * ada-lang.h: Run through gdb_indent.sh.
1016 * ada-tasks.c: Run through gdb_indent.sh.
1017 * ada-typeprint.c: Run through gdb_indent.sh.
1018 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1019
01fc4e33
AC
10202002-08-18 Andrew Cagney <ac131313@redhat.com>
1021
1022 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1023 ABI.
1024
d8ee244c
MK
10252002-08-18 Mark Kettenis <kettenis@gnu.org>
1026
c38d8261
MK
1027 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1028
222db64c
MK
1029 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1030 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1031
c2848c82
MK
1032 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1033 write_register_gen instead of write_register_bytes.
1034
d8ee244c
MK
1035 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1036 i[3456]-*-osf1mk* configurations have been made obsolete.
1037 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1038 i[3456]86-*-osf1mk* hosts obsolete.
1039 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1040 targets obsolete.
1041 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1042 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1043 config/i386/i386m3.mt, config/i386/nm-m3.h,
1044 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1045 config/i386/i386mk.mh, config/i386/i386mk.mt,
1046 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1047 obsolete.
1048 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1049 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1050 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1051
61d8d407
AC
10522002-08-18 Andrew Cagney <ac131313@redhat.com>
1053
1054 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1055 (hppa_value_returned_from_stack): Declare.
1056 (hppa_extract_return_value): Declare.
1057 * config/pa/hppa.mt: New file.
1058 * configure.tgt: Recognize hppa*-*-*.
1059 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1060
0c52bd59
MK
10612002-08-18 Mark Kettenis <kettenis@gnu.org>
1062
1063 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1064 comment.
1065
b5686e99
MK
10662002-08-17 Mark Kettenis <kettenis@gnu.org>
1067
1068 * top.c (gdb_rl_operate_and_get_next): Make sure
1069 operate-and-get-next functions correctly even when the history
1070 list is completely filled.
1071
c1bab85b
AC
10722002-08-18 Andrew Cagney <ac131313@redhat.com>
1073
1074 * MAINTAINERS (Target Instruction Set Architectures): Rename
1075 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1076 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1077 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1078 already listed under Host/Native.
1079
1080 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1081 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1082 mips*-*-*.
1083
32089c7c
AC
10842002-08-17 Andrew Cagney <ac131313@redhat.com>
1085
1086 * config/ia64/ia64.mt: New file.
1087 * config/alpha/alpha.mt: New file.
1088 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1089 ia64-linux-gnu. Mention that ia64-elf is broken.
1090 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1091
b4671f85
MK
10922002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1093
1094 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1095 generic_func_frame_valid instead of func_frame_valid.
1096
c8edd8b4
JB
10972002-08-16 Joel Brobecker <brobecker@gnat.com>
1098
1099 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1100 procfs appears to be broken when debugging on multi-processor
1101 machines. So enable software single stepping in order to avoid
1102 using the procfs interface to do next/step operations, using
1103 internal breakpoints instead.
1104
1105 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1106 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1107 make this pc address equal to the value it would have if the
1108 system stepping capability was used. Also set a new flag used
1109 to ensure that we don't readjust the PC one more time later.
1110
1111 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1112 address by DECR_PC_AFTER_BREAK when software single step is
1113 in use for this architecture, as this has already been taken
1114 care of in handle_inferior_event().
1115
238617f6
JB
11162002-08-16 Joel Brobecker <brobecker@gnat.com>
1117
1118 * infrun.c (handle_inferior_event): Minor reformatting, to make
1119 a rather long condition expression easier to read.
1120
541a7aac
AC
11212002-08-16 Andrew Cagney <ac131313@redhat.com>
1122
1123 * Makefile.in (gdbtk.o): Move to end of file.
1124 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1125 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1126 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1127 (gdbtk-wrapper.o, gdbres.o): Ditto.
1128
f92d4a7b
AC
11292002-08-16 Andrew Cagney <ac131313@redhat.com>
1130
1131 * Makefile.in (copying.o): Separate out compile rule.
1132 (hpux-thread.o, procfs.o, signals.o): Ditto.
1133 (v850ice.o, z8k-tdep.o): Ditto.
1134 (tui-file.o): Move to TUI section.
1135 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1136 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1137
1cce71eb
JB
11382002-08-16 Joel Brobecker <brobecker@gnat.com>
1139
1140 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1141 skip_trampoline_code, for better namespace-proofing.
1142
1143 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1144
0851f23d
JB
11452002-08-16 Joel Brobecker <brobecker@gnat.com>
1146
1147 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1148
f8d40ec8
JB
11492002-08-16 Joel Brobecker <brobecker@gnat.com>
1150
1151 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1152 signal, check whether we hit a breakpoint before checking for a
1153 single step breakpoint. Otherwise, GDB fails to notice that a
1154 breakpoint has been hit when stepping onto a breakpoint.
1155
63d022e0
KS
11562002-08-16 Keith Seitz <keiths@redhat.com>
1157
1158 * gdb-events.sh (clear_gdb_event_hooks): New function.
1159 * gdb-events.c: Regenerate.
1160 * gdb-events.h: Regenerate.
1161
6e31adb3
AC
11622002-08-16 Andrew Cagney <ac131313@redhat.com>
1163
1164 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1165 not_a_sw_breakpoint.
1166 * breakpoint.h (bpstat_stop_status): Add parameter names.
1167
c8189ed1
GS
11682002-08-16 Grace Sainsbury <graces@redhat.com>
1169
1170 * remote.c (remote_insert_hw_breakpoint)
1171 (remote_remove_hw_breakpoint): Fix calculation of length field
1172 for Z-packet.
1173
d05285fa
MS
11742002-08-15 Michael Snyder <msnyder@redhat.com>
1175
466d7106
MS
1176 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1177 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1178 (supply_fpregset): Ditto.
1179
d05285fa
MS
1180 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1181 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1182 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1183 (TARGET_READ_SP): Delete.
bf1f5b4c 1184 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1185 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1186 Delete.
1187 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1188 from macros to functions.
bf1f5b4c 1189
d05285fa
MS
1190 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1191 (mips_register_convertible, mips_register_convert_to_virtual,
1192 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1193 (mips_read_sp): New function.
1194 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1195 (mips_do_registers_info): Make static.
1196 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1197 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1198 (mips_register_convert_from_type, mips_register_convert_to_type):
1199 New functions.
1200 (mips_gdbarch_init): Set up function_start_offset,
1201 register_virtual_size, pc_in_sigtramp.
d05285fa 1202
e76f1f2e
AC
12032002-08-15 Andrew Cagney <ac131313@redhat.com>
1204
1205 * infcmd.c (vector_info): New function.
1206 (_initialize_infcmd): Add command "info vector".
1207 (print_vector_info): New function.
1208
1209 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1210 * gdbarch.h, gdbarch.c: Regenerate.
1211
4782dc19
AC
12122002-08-15 Andrew Cagney <ac131313@redhat.com>
1213
1214 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1215 ``print_all''. Only print vector registers when ``print_all''.
1216
23e3a7ac
AC
12172002-08-15 Andrew Cagney <ac131313@redhat.com>
1218
8e186fd6
AC
1219 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1220 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1221
23e3a7ac
AC
1222 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1223 Add `args' parameter.
1224 * gdbarch.h, gdbarch.c: Regenerate.
1225
1226 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1227
1228 * infcmd.c (float_info): Call print_float_info.
1229 (print_float_info): New function. By default, print the
1230 floating-point registers.
1231
1232 * arch-utils.h (default_print_float_info): Delete declaration.
1233 * arch-utils.c (default_print_float_info): Delete function.
1234
e0ca2bb9
MK
12352002-08-16 Mark Kettenis <kettenis@gnu.org>
1236
3f733acc
MK
1237 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1238 out define.
1239
7d8d2918
MK
1240 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1241 FRAME.
1242
1c7cc583
MK
1243 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1244 * configure.host: Make i[3456]86-*-aix host obsolete.
1245 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1246 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1247 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1248 config/i386/xm-i386aix.h: Make files obsolete.
1249 * i386aix-nat.c: Make file obsolete.
1250 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1251 (i386aix-nat.o): Make target obsolete.
1252
e0ca2bb9
MK
1253 * config/i386/nm-gnu.h: Removed.
1254 * config/i386/nm-i386gnu.h: New file.
1255 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1256 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1257 Moved here from ...
1258 * config/i386/tm-i386gnu.h: ... here. Removed.
1259 * config/i386/xm-i386gnu.h: Removed.
1260 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1261 (NAT_FILE): Set to nm-i386gnu.h.
1262 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1263 * i386-tdep.c: New file.
1264 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1265 (i386gnu-tdep.o): Specify dependencies.
1266
16057ec7 12672002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1268
6b99ee2e
MK
1269 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1270 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1271 Adjust a few comments to reflect reality a bit closer.
1272 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1273 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1274 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1275 target_insert_watchpoint, target_remove_watchpoint):
1276 Move defines to ...
1277 * config/i386/nm-i386sco5.h: ... here.
1278 (kernel_u_size): Add prototype. Improve a few comments and add
1279 protection against multiple inclusion.
1280
d9a6f65c
MK
1281 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1282 out define.
1283
047eff6a
MK
1284 * uw-thread.c (SP_ARG0): Define if not already defined.
1285 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1286
dcdb1290
MK
1287 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1288
5d2d0b2a
MK
1289 * config/i386/tm-i386.h: Don't include "regcache.h".
1290
61113f8b
MK
1291 * i387-tdep.h (i387_print_float_info): New prototype.
1292 * i387-tdep.c (print_i387_value, print_i387_ext,
1293 print_i387_status_word, print_i387_control_word): Add `struct
1294 ui_file *' argument and use it for output.
1295 (i387_print_float_info): Renamed from i387_float_info. Add
1296 `struct gdbarch *' and `struct ui_file *' arguments and use the
1297 latter for output.
1298 * i386-tdep.c: Include "i387-tdep.h".
1299 (i386_gdbarch_init): Set print_float_info.
1300 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1301 (FLOAT_INFO): Remove define.
1302
46e0f506
MS
13032002-08-13 Michael Snyder <msnyder@redhat.com>
1304
1305 * mips-tdep.c (mips_push_arguments): Rename to
1306 mips_eabi_push_arguments, and tune for EABI.
1307 (MIPS_REGS_HAVE_HOME_P): Delete.
1308 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1309 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1310 Delete references to mips_regs_have_home_p.
1311
409268de
KS
13122002-08-14 Keith Seitz <keiths@redhat.com>
1313
1314 * Makefile.in (install-gdbtk): Create insight plugin directory.
1315 Install plugins.tcl file.
1316
ffc6a242
KS
13172002-08-14 Keith Seitz <keiths@redhat.com>
1318
1319 * configure.in: Move SUBDIRS to near top of the file so that
1320 --enable options may add things to it.
1321 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1322 * configure: Regenerate.
1323
ebafbe83
MS
13242002-08-13 Michael Snyder <msnyder@redhat.com>
1325
1326 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1327 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1328 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1329
32f6f25d
AC
13302002-08-13 Andrew Cagney <ac131313@redhat.com>
1331
1332 * vax-tdep.c (vax_get_saved_register): Delete function.
1333 (vax_gdbarch_init): Update.
1334 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1335 (ns32k_gdbarch_init): Update.
1336 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1337 (alpha_gdbarch_init): Update.
1338
53826de9
AC
13392002-08-13 Andrew Cagney <cagney@redhat.com>
1340
1341 * regcache.c (init_regcache_descr): Overallocate the
1342 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1343 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1344 nr_raw_registers.
1345 (set_register_cached): Add range checking assertions. Use
1346 current_regcache.
1347
16057ec7 13482002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1349
1350 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1351 numbers for MMX registers.
1352
7b4c2dce
AC
13532002-08-13 Andrew Cagney <cagney@redhat.com>
1354
1355 * i386-tdep.c (i386_gdbarch_init): Use
1356 generic_unwind_get_saved_register.
1357
1e03ad20
KB
13582002-08-13 Kevin Buettner <kevinb@redhat.com>
1359
1360 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1361 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1362 target vector.
1363 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1364 Delete. Add comment regarding this now-deleted target method.
1365
548bcbec
SC
13662002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1367
1368 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1369 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1370 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1371 real PC and the page number (if it's within the memory bank window).
1372 (m68hc11_pseudo_register_write): Likewise when saving.
1373 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1374 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1375 (m68hc11_register_raw_size): And use 32-bit for it.
1376 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1377 16K memory bank is used by the prog; also use the virtual pc.
1378
7df11f59
SC
13792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1380
1381 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1382 (m68hc11_gdbarch_init): Install it in gdbarch.
1383 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1384 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1385 (MSYMBOL_SIZE): New for documentation.
1386 (insn_return_kind): Enum to specify how a function returns.
1387 (frame_extra_info): Cleanup and record the return mode.
1388 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1389 register in address computation.
1390 (m68hc11_get_return_insn): New to obtain the return instruction used
1391 by the function.
1392 (m68hc11_frame_init_saved_regs): Take into account the return
1393 instruction used by the function for far and interrupt functions.
1394 (m68hc11_init_extra_frame_info): Take into account page register.
1395 (m68hc11_frame_args_address): Adjust according to the return mode.
1396 (show_regs): Print page register only when it's used.
1397
5706502a
SC
13982002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1399
1400 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1401 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1402 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1403 registers.
1404 (m68hc11_register_raw_size): Likewise.
1405
28fc6740
AC
14062002-08-13 Andrew Cagney <cagney@redhat.com>
1407
1408 * i386-tdep.c (i386_register_name): Handle mmx registers.
1409 (mmx_regnum_p): New function.
1410 (i386_mmx_names): New array.
1411 (mmx_num_regs): New variable.
1412 (i386_pseudo_register_read): New function.
1413 (i386_pseudo_register_write): New function.
1414 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1415
1416 * regcache.c (regcache_raw_read_unsigned): New function.
1417 (regcache_raw_read_signed): New function.
1418 * regcache.h (regcache_raw_read_unsigned): Declare.
1419 (regcache_raw_read_signed): Declare.
1420
a378f419
AC
14212002-08-13 Andrew Cagney <cagney@redhat.com>
1422
1423 * regcache.c (regcache_raw_read_as_address): Delete function.
1424 (regcache_cooked_read_signed): New function.
1425 (regcache_cooked_read_unsigned): New function.
1426 * regcache.h (regcache_cooked_read_signed): Declare.
1427 (regcache_cooked_read_unsigned): Declare.
1428 (regcache_raw_read_as_address): Delete declaration.
1429
1430 * blockframe.c (generic_read_register_dummy): Use
1431 regcache_cooked_read_unsigned.
1432 * i386-tdep.c (i386_extract_struct_value_address): Use
1433 regcache_cooked_read_unsigned.
1434
81967506
SC
14352002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1436
1437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1438 double sizes according to ELF ABI flags.
1439 (gdbarch_tdep): Record elf_flags.
1440
ffe1f3ee
SC
14412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1442
1443 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1444 (m6812_prolog): They can appear in 68HC12 function prologue.
1445 (m68hc11_frame_chain): Cleanup.
1446
98216c5d
AC
14472002-08-12 Andrew Cagney <cagney@redhat.com>
1448
1449 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1450 declarations.
1451 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1452 (i386_linux_register_raw_size): Delete function.
1453 (i386_linux_init_abi): Update.
1454 * i386-tdep.c (i386_register_raw_size): Delete function.
1455 (i386_register_byte): Delete function.
1456 (i386_gdbarch_init): Update.
1457 (i386_register_size): Delete array.
1458 (i386_register_offset): Delete array.
1459
1460 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1461 (REGISTER_RAW_SIZE): Delete macro.
1462 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1463 (REGISTER_BYTE): Delete macro.
1464
3b19021e
AS
14652002-08-11 Aidan Skinner <aidan@velvet.net>
1466
1467 * ada-lang.c (ada_lookup_partial_symbol)
1468 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1469 prototype names so that grep ^func works properly.
1470
1471 * ada-lang.c (ada_array_element_type)
1472 (ada_lookup_partial_symbol): Fix typos in parameter list.
1473
1474 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1475 Fix prototype names so that grep ^func works properly.
1476
b063e7a2
AC
14772002-08-10 Andrew Cagney <cagney@redhat.com>
1478 Elena Zannoni <ezannoni@redhat.com>
1479 Martin M. Hunt <hunt@redhat.com>
1480
1481 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1482 (build_builtin_type_vec128i): Set the vector bit.
1483 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1484 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1485 (build_builtin_type_vec64): New function.
1486 (build_builtin_type_vec64i): New function.
1487 (build_gdbtypes): Initialize builtin_type_vec64 and
1488 builtin_type_vec64i.
1489
a7e3c2ad
AC
14902002-08-09 Andrew Cagney <cagney@redhat.com>
1491
1492 * regcache.c (regcache_dump): Compare the register offset
1493 with REGISTER_BYTE.
1494 * arch-utils.c (generic_register_byte): New function.
1495 * arch-utils.h (generic_register_byte): Declare.
1496 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1497 * gdbarch.h, gdbarch.c: Regenerate.
1498
af030b9a
AC
14992002-08-09 Andrew Cagney <cagney@redhat.com>
1500
1501 * regcache.c: Include "gdbcmd.h"
1502 (_initialize_regcache): Add commands "maintenance print
1503 registers", "maintenance print raw-registers" and "maintenance
1504 print cooked-registers".
1505 (enum regcache_dump_what): Define.
1506 (dump_endian_bytes): New function.
1507 (regcache_dump): New function.
1508 (regcache_print): New function.
1509 (maintenance_print_registers): New function.
1510 (maintenance_print_raw_registers): New function.
1511 (maintenance_print_cooked_registers): New function.
1512 * Makefile.in (regcache.o): Update dependencies.
1513
cb3d25d1
MS
15142002-08-09 Michael Snyder <msnyder@redhat.com>
1515
1516 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1517 (mips_push_arguments): Correct some comments. Use paddr_nz
1518 for printing addresses in debug output. Replace static
1519 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1520 (mips_n32n64_push_arguments): New function, cloned from
1521 mips_push_arguments and tuned for the n32/n64 ABI.
1522 (mips_push_register): Buffer needs dynamic allocation.
1523 (mips_print_register): Ditto.
1524 (do_gp_register_row): Ditto.
1525 (mips_store_return_value): Ditto.
1526 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1527
2163ab9d
DH
15282002-08-09 Don Howard <dhoward@redhat.com>
1529
1530 * memattr.c (mem_info_command): Print special case of upper bound
1531 as max CORE_ADDR + 1.
1532
b78bcb18
MS
15332002-08-08 Michael Snyder <msnyder@redhat.com>
1534
1535 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1536 returns structs by ref if they're too big to fit in two registers.
1537
ffabd70d
KB
15382002-08-09 Kevin Buettner <kevinb@redhat.com>
1539
1540 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1541 saved regs value.
1542 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1543 mips_find_saved_regs().
1544 (mips_pop_frame): Likewise.
1545
fbcdb4a3
KB
15462002-08-09 Kevin Buettner <kevinb@redhat.com>
1547
1548 * blockframe.c (frame_saved_regs_register_unwind): Revise
1549 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1550 frames are in use.
1551
3c3bea1c
GS
15522002-08-09 Grace Sainsbury <graces@redhat.com>
1553
1554 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1555 T-packets; the 'a' is not taken as a register number.
1556 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1557 (remote_stopped_data_address): New functions; add to target
1558 vector.
1559 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1560 prototypes to match other implementations of this
1561 function. replace integer argument with pointer -- the length
1562 field in the Z-packet is the length of what is pointed to or 1 if
1563 pointer is null. Add to target vector.
1564 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1565 target vector.
1566
1567 From Mark Salter:
1568 * remote.c (remote_wait): Add support to extract optional
1569 watchpoint information from T-packet. Ignore unrecognized
1570 optional info in T-packet.
1571 (remote_async_wait): Ditto.
1572
5d1d95de
CV
15732002-08-09 Corinna Vinschen <vinschen@redhat.com>
1574
1575 * cli/cli-dump.c: Change fopen modes to use binary open modes
1576 as defined in include/fopen-bin.h throughout.
1577
c86b5b38
MS
15782002-08-08 Michael Snyder <msnyder@redhat.com>
1579
1580 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1581
b30590dc
KB
15822002-08-08 Kevin Buettner <kevinb@redhat.com>
1583
1584 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1585 assertion failure by returning early after a warning.
1586
498868ed
KB
15872002-08-08 Kevin Buettner <kevinb@redhat.com>
1588
1589 * mips-tdep.c (mips_find_saved_regs): Make static.
1590 (mips_frame_init_saved_regs): New function.
1591 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1592 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1593 (mips_find_saved_regs): Delete declaration.
1594
b2dd6311
GS
15952002-08-08 Grace Sainsbury <graces@redhat.com>
1596
3c3bea1c
GS
1597 * remote.c (remote_wait, remote_async_wait): Change
1598 thread_num from int to ULONGEST.
1599 (unpack_varlen_hex): Change result parameter from
1600 int * to ULONGEST *.
b2dd6311 1601
ea47855f
AC
16022002-08-08 Andrew Cagney <ac131313@redhat.com>
1603
1604 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1605 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1606 powerpc*-*-*.
1607 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1608
69db8bae
AC
16092002-08-08 Andrew Cagney <cagney@redhat.com>
1610
1611 * gcore.c (override_derive_stack_segment): Delete variable.
1612 (preempt_derive_stack_segment): Delete function.
1613 (derive_stack_segment): Delete function.
1614 (default_derive_stack_segment): Renamed to derive_stack_segment.
1615 (override_derive_heap_segment): Delete variable.
1616 (preempt_derive_heap_segment): Delete function.
1617 (derive_heap_segment): Delete function.
1618 (default_derive_heap_segment): Rename to derive_heap_segment.
1619
cb811fe7
MS
16202002-08-06 Michael Snyder <msnyder@redhat.com>
1621
1622 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1623 * mips-tdep.c (mips_EABI_use_struct_convention,
1624 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1625 New functions. (mips_use_struct_convention): Delete.
1626 (mips_gdbarch_init): set use_gdbarch_convention.
1627
8b389c40
MS
16282002-08-06 Michael Snyder <msnyder@redhat.com>
1629
1630 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1631 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1632 mips_o32_reg_struct_has_addr): New functions.
1633 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1634
5c27f28a
AC
16352002-08-07 Andrew Cagney <ac131313@redhat.com>
1636
1637 * regcache.c (pseudo_register): Delete function.
1638 (fetch_register): Delete function.
1639 (store_register): Delete function.
1640 (regcache_raw_read, legacy_read_register_gen): Use
1641 target_fetch_registers instead of fetch_register.
1642 (legacy_write_register_gen, regcache_raw_write): Use
1643 target_store_register instead of store_register.
1644 (write_register_bytes): Ditto.
1645
1646 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1647 (STORE_PSEUDO_REGISTER): Delete.
1648 * gdbarch.h, gdbarch.c: Regenerate.
1649
5b331675
CV
16502002-08-06 Corinna Vinschen <vinschen@redhat.com>
1651
1652 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1653 write dump file binary.
1654
6acdf5c7
MS
16552002-08-05 Michael Snyder <msnyder@redhat.com>
1656
1657 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1658 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1659 (mips_gdbarch_init): Set N32 target to be mips64.
1660
b2f01c35
KB
16612002-08-06 Kevin Buettner <kevinb@redhat.com>
1662
1663 * frame.c (find_saved_register): Break out of loop once saved
1664 register address is found. Don't mention sparc in loop comment
1665 anymore.
1666
63db5580
KB
16672002-08-06 Kevin Buettner <kevinb@redhat.com>
1668
1669 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1670 mips_default_saved_regsize to 8.
1671
5e34e75e
AC
16722002-08-06 Andrew Cagney <ac131313@redhat.com>
1673
1674 * gcore.c: Do not include <sys/procfs.h>.
1675 * Makefile.in (gcore.o): Update dependencies.
1676
eb4c54a2
AC
16772002-08-06 Andrew Cagney <cagney@redhat.com>
1678
1679 * configure.tgt: Make arc-*-* obsolete.
1680 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1681 * MAINTAINERS: Make arc-elf obsolete.
1682 * arc-tdep.c: Make file obsolete.
1683 * config/arc/arc.mt: Ditto.
1684 * config/arc/tm-arc.h: Ditto.
1685
ced15480
TR
16862002-08-05 Theodore A. Roth <troth@verinet.com>
1687
c1bab85b 1688 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1689
b4743822
AC
16902002-08-05 Andrew Cagney <ac131313@redhat.com>
1691
1692 * mcore-tdep.c (mcore_gdbarch_init): Use
1693 generic_unwind_get_saved_register instead of
1694 generic_get_saved_register.
1695 * v850-tdep.c (v850_gdbarch_init): Ditto.
1696 * frv-tdep.c (frv_gdbarch_init): Ditto.
1697 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1698 * s390-tdep.c (s390_gdbarch_init): Ditto.
1699 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1700 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1701 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1702
3956d554
JB
17032002-08-05 Joel Brobecker <brobecker@gnat.com>
1704
1705 * objfiles.h: Add missing #include "symfile.h"
1706
1707 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1708
8249c0d6
AC
17092002-08-04 Andrew Cagney <ac131313@redhat.com>
1710
1711 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1712 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1713 of FIELD_BITSIZE.
1714
b9d14705
DJ
17152002-08-04 Daniel Jacobowitz <drow@mvista.com>
1716
1717 * NEWS: Cleanup and nitpick.
1718
dd73b9bb
AC
17192002-08-03 Andrew Cagney <ac131313@redhat.com>
1720
1721 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1722
043a27f8
AC
17232002-08-03 Andrew Cagney <ac131313@redhat.com>
1724
1725 * Makefile.in (gdbtk-bp.o): Update dependencies.
1726 (gdbtk-register.o): Ditto.
1727 (gdbtk-varobj.o): Ditto.
1728
46ce284d
AC
17292002-08-03 Andrew Cagney <cagney@redhat.com>
1730
1731 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1732 m68hc11_fetch_pseudo_register.
1733 (m68hc11_pseudo_register_write): Replace
1734 m68hc11_store_pseudo_register.
1735 (m68hc11_gdbarch_init): Update.
1736
b66d6d2e
AC
1737Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1738
1739 * gdbarch.sh: Include "gdb_string.h".
1740 * gdbarch.c: Regenerate.
1741
1742 * regcache.c: Include "gdb_string.h".
1743 * ax-general.c: Ditto.
1744 * varobj.c: Ditto.
1745 * std-regs.c: Ditto.
1746 * fbsd-proc.c: Ditto.
1747 * thread.c: Ditto.
1748
1749 * Makefile.in (regcache.o): Update dependencies.
1750 (thread.o, gdbarch.o): Ditto.
1751 (ax-general.o, gdbarch.o): Ditto.
1752 (varobj.o, std-regs.o): Ditto.
1753 (fbsd-proc.o): Specify dependencies.
1754
29e1842b
AC
17552002-08-02 Andrew Cagney <cagney@redhat.com>
1756
1757 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1758 regnum.
1759 (regcache_cooked_write): Ditto.
1760
68365089
AC
17612002-08-02 Andrew Cagney <ac131313@redhat.com>
1762
1763 * regcache.c (regcache_cooked_read): New function.
1764 (regcache_cooked_write): New function.
1765 (read_register_gen): Rewrite using regcache_cooked_read.
1766 (write_register_gen): Rewrite using regcache_cooked_write.
1767
1768 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1769 Declare.
1770
d8124050
AC
17712002-08-02 Andrew Cagney <cagney@redhat.com>
1772
1773 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1774 Replace the architecture methods register_read and register_write.
1775 * gdbarch.h, gdbarch.c: Regenerate.
1776 * regcache.c (init_regcache_descr): Update.
1777 (read_register_gen): Update.
1778 (write_register_gen): Update.
1779 (supply_register): Update comment.
1780
1781 * sh-tdep.c (sh_gdbarch_init): Update.
1782 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1783 `regcache' and `gdbarch' parameters. Make `buffer' a void
1784 pointer. Update code.
1785 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1786 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1787 void pointer. Update code.
1788 (sh64_register_write): Delete.
1789 (sh4_register_read): Delete.
1790 (sh64_register_read): Delete.
1791 (sh4_register_write): Delete.
1792 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1793 void pointer, `to' parameter a void pointer.
1794 (sh_sh64_register_convert_to_raw): Ditto.
1795
a6425924
KB
17962002-08-01 Kevin Buettner <kevinb@redhat.com>
1797
1798 * mips-tdep.c (mips_register_virtual_type): Use architecture
1799 invariant return values.
1800
ff5922b5
AC
18012002-08-01 Andrew Cagney <cagney@redhat.com>
1802
1803 * linux-proc.c: Include "gdb_string.h".
1804 * Makefile.in (linux-proc.o): Update dependency list.
1805
32a6503c
KB
18062002-08-01 Kevin Buettner <kevinb@redhat.com>
1807
1808 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1809 comment.
1810
ccaa32c7
GS
18112002-08-01 Grace Sainsbury <graces@redhat.com>
1812
1813 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1814 to_insert_watchpoint, to_remove_watchpoint,
1815 to_stopped_by_watchpoint, to_stopped_data_address,
1816 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1817 target vecctor. Define their corresponding macros so they call
1818 them.
1819
1820 * target.c: Add default and debug versions of for
1821 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1822 to_insert_watchpoint, to_remove_watchpoint,
1823 to_stopped_by_watchpoint, to_stopped_data_address,
1824 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1825
78fde5f8
KB
18262002-08-01 Kevin Buettner <kevinb@redhat.com>
1827
1828 * mips-tdep.c (mips_register_virtual_type): New function.
1829 (mips_gdbarch_init): Register mips_register_virtual_type()
1830 with gdbarch machinery.
1831 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1832 this file instead of tm-bigmips.h.
1833 (MIPS_REGSIZE): Delete this macro.
1834 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1835 multiarch version in mips-tdep.c will be found.
1836
db034ac5
AC
18372002-08-01 Andrew Cagney <cagney@redhat.com>
1838
1839 * NEWS: Menion that CHILL has been made obsolete.
1840
1841 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1842 * stabsread.c (read_range_type): Ditto.
1843 * gdbtypes.h: Ditto.
1844 * language.c (binop_type_check): Ditto.
1845 (binop_result_type): Ditto.
1846 (integral_type): Ditto.
1847 (character_type): Ditto.
1848 (string_type): Ditto.
1849 (boolean_type): Ditto.
1850 (structured_type): Ditto.
1851 (lang_bool_type): Ditto.
1852 (binop_type_check): Ditto.
1853 * language.h (_LANG_chill): Ditto.
1854 * dwarfread.c (set_cu_language): Ditto.
1855 * dwarfread.c (CHILL_PRODUCER): Ditto.
1856 * dwarfread.c (handle_producer): Ditto.
1857 * expression.h (enum exp_opcode): Ditto.
1858 * eval.c: Ditto for comments.
1859 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1860 * expprint.c (print_subexp): Ditto.
1861 (print_subexp): Ditto.
1862 * valops.c (value_cast): Ditto.
1863 (search_struct_field): Ditto.
1864 * value.h (COERCE_VARYING_ARRAY): Ditto.
1865 * symfile.c (init_filename_language_table): Ditto.
1866 (add_psymbol_with_dem_name_to_list): Ditto.
1867 * valarith.c (value_binop): Ditto.
1868 (value_neg): Ditto.
1869 * valops.c (value_slice): Ditto.
1870 * symtab.h (union language_specific): Ditto.
1871 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1872 (SYMBOL_DEMANGLED_NAME): Ditto.
1873 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1874 * defs.h (enum language): Ditto.
1875 * symtab.c (got_symtab): Ditto.
1876 * utils.c (fprintf_symbol_filtered): Ditto.
1877
1878 * ch-typeprint.c: Make file obsolete.
1879 * ch-valprint.c: Make file obsolete.
1880 * ch-lang.h: Make file obsolete.
1881 * ch-exp.c: Make file obsolete.
1882 * ch-lang.c: Make file obsolete.
1883
1884 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1885 CHILL_LIB.
1886 (TARGET_FLAGS_TO_PASS): Ditto.
1887 (CHILLFLAGS): Obsolete.
1888 (CHILL): Obsolete.
1889 (CHILL_FOR_TARGET): Obsolete.
1890 (CHILL_LIB): Obsolete.
1891 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1892 ch-valprint.c.
1893 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1894 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1895 ch-lang.o.
1896 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1897 targets.
1898
8aaf0b47
JB
18992002-07-31 Joel Brobecker <brobecker@gnat.com>
1900
1901 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1902 This does not change anything at the moment, but will be helpful
1903 later when full Ada support is integrated.
1904
f3a7b3a5
KB
19052002-07-31 Kevin Buettner <kevinb@redhat.com>
1906
1907 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1908 help message.
1909
fb850278
KB
19102002-07-31 Kevin Buettner <kevinb@redhat.com>
1911
1912 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1913 and save it in a local variable. Use variable in later test.
1914
e3bddbfa
KB
19152002-07-31 Kevin Buettner <kevinb@redhat.com>
1916
1917 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1918 test. (Thanks to Daniel Jacobowitz.)
1919
28d169de
KB
19202002-07-31 Kevin Buettner <kevinb@redhat.com>
1921
1922 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1923 (mips_abi_strings): Add "n64".
1924 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1925
7fe7e44e
KB
19262002-07-31 Kevin Buettner <kevinb@redhat.com>
1927
1928 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1929 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1930
c6caf090
KB
19312002-07-31 Kevin Buettner <kevinb@redhat.com>
1932
1933 * utils.c (host_pointer_to_address, address_to_host_pointer):
1934 Use gdb_assert() instead of explicit call to internal_error().
1935
c41669e0
KB
19362002-07-30 Kevin Buettner <kevinb@redhat.com>
1937
1938 * Makefile.in (rs6000-nat.o): Update dependencies.
1939
1940 From Nicholas Duffek:
1941 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1942 (aix-thread.o): New rule.
1943 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1944 * config/powerpc/aix432.mh: New file.
1945
2fda4977
DJ
19462002-07-30 Daniel Jacobowitz <drow@mvista.com>
1947
1948 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1949 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1950 (fetch_core_registers, ppc_linux_supply_gregset)
1951 (ppc_linux_supply_fpregset): New functions.
1952 (ppc_linux_regset_core_fns): New.
1953 (_initialize_ppc_linux_tdep): Call add_core_fns.
1954 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1955 and ppc_linux_supply_gregset.
1956 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1957 (supply_fpregset): Call ppc_linux_supply_fpregset.
1958 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1959 corelow.o.
1960 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1961
729051e6
DJ
19622002-07-30 Daniel Jacobowitz <drow@mvista.com>
1963
1964 * symtab.c (lookup_symbol): Demangle before lowercasing.
1965
5f8a3188
AC
19662002-07-30 Andrew Cagney <ac131313@redhat.com>
1967
1968 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1969 declaration.
1970 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1971 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1972 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1973 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1974 "gdb_string.h".
1975 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1976 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1977 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1978 (avr-tdep.o, mon960-rom.o): Ditto.
1979 (aout_stabs_gnu_h): Define.
1980 (symtab_h): Remove $(gdb_obstack_h).
1981
67f07146
JB
19822002-07-30 Jim Blandy <jimb@redhat.com>
1983
1984 Patch from David Carlton <carlton@math.stanford.edu>:
1985 * gdbinit.in: Move the `dir' commands that add GDB's own source
1986 directory to the search path to the end, so that the `gdb' source
1987 directory will be searched first.
1988
04ea0df1
AC
19892002-07-29 Andrew Cagney <ac131313@redhat.com>
1990
1991 * gdb_obstack.h: New file.
1992 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1993 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1994 * objfiles.h: Include "gdb_obstack.h".
1995 * Makefile.in (gdb_obstack_h): Define.
1996 (symtab_h): Add $(gdb_obstack_h).
1997 (objfiles_h): Add $(gdb_obstack_h).
1998
1999 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2000 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2001 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2002 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2003 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2004 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2005 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2006 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2007
2008 * Makefile.in (bcache.o): Update dependencies.
2009 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2010 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2011 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2012 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2013 (stabsread.o, symfile.o, symmisc.o): Ditto.
2014 (symtab.o, typeprint.o, macroexp.o): Ditto.
2015 (macrotab.o, mdebugread.o): Ditto.
2016 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2017 (coff_ecoff_h, aout_aout64_h): Define.
2018 (aout_stabs_gnu_h, libaout_h): Define.
2019
d138e37a
AC
20202002-07-29 Andrew Cagney <cagney@redhat.com>
2021
2022 * regcache.c (struct regcache_descr): Rename nr_registers to
2023 nr_cooked_registers. Revise comments describing the structure
2024 member fields.
2025 (init_regcache_descr): Update.
2026 (init_legacy_regcache_descr): Update.
2027 (read_register_gen, write_register_gen): When a cooked register in
2028 the raw register range, directly access the value from the raw
2029 register cache.
2030
460e6ec3
AC
20312002-07-29 Andrew Cagney <ac131313@redhat.com>
2032
2033 * z8k-tdep.c: Do not include "obstack.h".
2034 * h8300-tdep.c, h8500-tdep.c: Ditto.
2035 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2036 * valprint.c, v850-tdep.c: Ditto.
2037 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2038 * mn10200-tdep.c: Ditto.
2039
2040 * Makefile.in (z8k-tdep.o): Update dependencies.
2041 (m68hc11-tdep.o, valprint.o): Ditto.
2042 (v850-tdep.o, d10v-tdep.o): Ditto.
2043 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2044 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2045 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2046 (sh_opc_h, gdb_sim_sh_h): Define.
2047 (elf_sh_h, elf_bfd_h): Define.
2048 (opcode_m68hc11_h): Define.
2049 (OPCODES_SRC, OPCODES_DIR): define.
2050 (OPCODES): Use $(OPCODES_DIR).
2051 (gdb_sim_d10v_h): Rename sim_d10v_h.
2052 (gdb_sim_arm_h): Rename sim_arm_h.
2053
790c9cf0
KB
20542002-07-26 Kevin Buettner <kevinb@redhat.com>
2055
2056 * utils.c (host_pointer_to_address, address_to_host_pointer):
2057 Change internal_error() message to indicate function responsible
2058 for the error.
2059
9647fa49
KB
20602002-07-26 Kevin Buettner <kevinb@redhat.com>
2061
2062 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2063 calls to local_hex_string_custom().
2064
dabbe2c0
KB
20652002-07-26 Kevin Buettner <kevinb@redhat.com>
2066
2067 * irix5-nat.c: Move IRIX shared library support from here...
2068 * solib-irix.c: ...to here. Revised substantially to work with
2069 generic solib framework.
2070
b96d0a4e
KB
2071 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2072 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2073 * mips-irix-tdep.c: New file.
2074
313fb2f6
KB
2075 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2076 (mips-irix-tdep.o, solib-irix.o): New rules.
2077 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2078 solib-irix.o.
2079 * config/mips/irix6.mt (TDEPFILES): Likewise.
2080 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2081
ab2eaf26
KB
20822002-07-26 Kevin Buettner <kevinb@redhat.com>
2083
177e4768 2084 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2085 disabled (via ``#if 0'') includes.
2086
7244546a
KB
20872002-07-26 Kevin Buettner <kevinb@redhat.com>
2088
2089 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2090 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2091 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2092 Add support for the fpscr register.
2093 * rs6000-nat.c (regmap, fetch_inferior_registers)
2094 (store_inferior_registers, fetch_core_registers): Likewise.
2095
dd7be90a
KB
20962002-07-26 Kevin Buettner <kevinb@redhat.com>
2097
2098 * rs6000-nat.c (language.h): Include.
2099 (special_regs): Delete this array.
2100 (regmap): New function.
2101 (fetch_register, store_register): Use regmap() to map gdb
2102 register numbers to ptrace register numbers. Also, use
2103 outputs from regmap() to make decisions regarding type of
2104 ptrace() call to make. In particular, don't compare against
2105 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2106 (fetch_inferior_registers, store_inferior_registers): Where
2107 possible, obtain register numbers from tdep struct. Don't
2108 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2109 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2110 (LAST_UISA_SP_REGNUM): Delete.
2111
11bf77db
KB
21122002-07-25 Kevin Buettner <kevinb@redhat.com>
2113
2114 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2115 (fetch_registers, store_register, fetch_core_registers): Don't
2116 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2117 regcache_collect() as appropriate.
2118 (find_toc_address): Format hex address with local_hex_string().
2119
06afebeb
AC
21202002-07-25 Andrew Cagney <ac131313@redhat.com>
2121
2122 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2123 bfd/elf32-frv.c.
2124
8c554d79
TT
21252002-07-24 Tom Tromey <tromey@redhat.com>
2126
2127 * jv-exp.y: Marked all strings with _().
2128 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2129 internal_error.
2130 (MethodInvocation, CastExpression, parse_number, yyerror,
2131 java_type_from_name, push_expression_name, yylex): Typo fixes.
2132
e4c242d9
DJ
21332002-07-24 Daniel Jacobowitz <drow@mvista.com>
2134
2135 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2136 (tee_file_flush, tee_file_write, tee_file_fputs)
2137 (tee_file_isatty): New.
2138 * ui-file.h (tee_file_new): Add prototype.
2139
ebf56fd3
AS
21402002-07-24 Aidan Skinner <aidan@velvet.net>
2141
2142 * ada-lang.c: Change k&r style function definitions to prototyped
2143 form.
2144 * ada-typeprint.c: Change k&r style function definitions to prototyped
2145 form.
2146 * ada-valprint.c: Change k&r style function definitions to prototyped
2147 form.
2148
7fb623f7
AC
21492002-07-24 Andrew Cagney <cagney@redhat.com>
2150
2151 * README: Remove reference to remote-bug.
2152 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2153 remote-bug.c.
2154 (m88k-nat.o): Delete rule.
2155 (m88k-tdep.o): Delete rule.
2156 (remote-bug.o): Delete rule.
2157 * MAINTAINERS: Mark as obsolete.
2158 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2159 * m88k-tdep.c: Make file obsolete.
2160 * config/m88k/m88k.mh: Ditto.
2161 * config/m88k/delta88v4.mh: Ditto.
2162 * config/m88k/delta88v4.mt: Ditto.
2163 * config/m88k/delta88.mt: Ditto.
2164 * config/m88k/delta88.mh: Ditto.
2165 * remote-bug.c: Ditto.
2166 * config/m88k/tm-delta88.h: Ditto.
2167 * config/m88k/nm-delta88v4.h: Ditto.
2168 * config/m88k/xm-delta88.h: Ditto.
2169 * config/m88k/xm-dgux.h: Ditto.
2170 * config/m88k/tm-m88k.h: Ditto.
2171 * config/m88k/nm-m88k.h: Ditto.
2172 * config/m88k/tm-delta88v4.h: Ditto.
2173 * m88k-nat.c: Ditto.
2174 * cxux-nat.c: Ditto.
2175 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2176 and m88*-*-* obsolete.
2177 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2178 m88*-*-* obsolete.
2179
37611a2b
AC
21802002-07-24 Andrew Cagney <cagney@redhat.com>
2181
2182 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2183 constant. Same for local pointer variables.
2184 (extract_signed_integer): Ditto.
2185 * defs.h (extract_unsigned_integer): Update.
2186 (extract_signed_integer): Update.
2187
1aaa5f99
AC
21882002-07-24 Andrew Cagney <cagney@redhat.com>
2189
2190 * regcache.c (regcache_raw_write): Change buf parameter to a
2191 constant void pointer.
2192 (regcache_raw_read): Change buf parameter to a void pointer.
2193 (legacy_write_register_gen): Change myaddr parameter a constant
2194 void pointer.
2195 (supply_register): Change val parameter to a const void pointer.
2196 * regcache.h (regcache_raw_write): Update declaration.
2197 (regcache_raw_read): Update declaration.
2198 (supply_register): Update declaration.
2199
b4f5539f
TT
22002002-07-24 Tom Tromey <tromey@redhat.com>
2201
2202 * defs.h (gdb_readline_wrapper): Declare.
2203 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2204 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2205 * top.c (gdb_readline_wrapper): New function.
2206 (command_line_input): Use it.
2207
0818c12a
AC
22082002-07-24 Andrew Cagney <cagney@redhat.com>
2209
2210 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2211 regcache_read and regcache_write.
2212 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2213 * regcache.c: Update.
2214 * sh-tdep.c (sh64_push_arguments): Update comment.
2215 (sh_pseudo_register_read): Update.
2216 (sh_pseudo_register_write): Update.
2217 (sh4_register_read): Update.
2218 (sh4_register_write): Update.
2219 (sh64_pseudo_register_read): Update.
2220 (sh64_pseudo_register_write): Update.
2221 (sh64_register_read): Update.
2222 (sh64_register_write): Update.
2223 * i386-tdep.c (i386_extract_return_value): Update.
2224 (i386_extract_struct_value_address): Update.
2225 (i386_extract_return_value): Update.
2226 * blockframe.c (generic_read_register_dummy): Update.
2227 (generic_call_dummy_register_unwind): Update
2228 * infrun.c (write_inferior_status_register): Update.
2229
f7321c06
JB
22302002-07-23 Jim Blandy <jimb@redhat.com>
2231
2232 * parser-defs.h (expression_context_pc): Make this extern.
2233 (Thanks to Michael Snyder.)
2234
2037aebb
AC
22352002-07-23 Andrew Cagney <ac131313@redhat.com>
2236
2237 GDB 5.2.1 released from 5.2 branch.
2238 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2239 * README: Update to mention 5.2.1.
2240
66504d44
MS
22412002-07-23 Mark Salter <msalter@redhat.com>
2242
2243 * remote.c (remote_read_bytes): Fix check for error.
2244
27bae383
KB
22452002-07-22 Kevin Buettner <kevinb@redhat.com>
2246
2247 * aix-thread.c (language.h): Include.
2248 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2249 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2250 Print newlines at end of debug messages.
2251 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2252 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2253
22542002-07-22 Kevin Buettner <kevinb@redhat.com>
2255
2256 * aix-thread.c (ppc-tdep.h): Include.
2257 (special_register_p): New function.
2258 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2259 (store_regs_user_thread): Use register number information from
2260 gdbarch_tdep struct instead of hardcoded offsets relative to
2261 FIRST_UISA_SP_REGNUM.
2262 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2263 special_register_p() instead of using FPLAST_REGNUM and
2264 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2265 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2266 will be MQ's register number.
2267
22682002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2269
2270 * aix-thread.c (ops): Rename to aix_thread_ops.
2271 (base_ops): Rename to base_target.
2272 (ops_attach): Rename to aix_thread_attach.
2273 (ops_detach): Rename to aix_thread_detach.
2274 (ops_resume): Rename to aix_thread_detach.
2275 (ops_wait): Rename to aix_thread_wait.
2276 (ops_kill): Rename to aix_thread_kill.
2277 (init_ops): Rename to init_aix_thread_ops.
2278 (ops_fetch_register): Rename to aix_thread_fetch_register.
2279 (ops_store_register): Rename to aix_thread_store_register.
2280 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2281 (ops_thread_alive): Rename to aix_thread_thread_alive.
2282 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2283 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2284 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2285 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2286 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2287 (store_regs_lib): Rename to store_regs_user_thread.
2288 (store_regs_kern): Rename to store_regs_kernel_thread.
2289
27bae383 22902002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2291
2292 * aix-thread.c (ops_prepare_to_store): Eliminate.
2293 (init_ops): Don't initialize ops.prepare_to_store.
2294 (store_regs_kern): Pre-fetch register buffers from child,
2295 because some registers may not be in the cache. Copy
2296 regs from register cache only if they are cached.
2297 (store_regs_lib): Copy regs from register cache only
2298 if they are cached.
2299 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2300 fill_gprs64): Ditto.
2301
61c5da0b
KB
23022002-07-22 Kevin Buettner <kevinb@redhat.com>
2303
2304 * aix-thread.c (gdb_assert.h): Include.
2305 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2306 register sizes (from register cache) match size of buffer holding
2307 register data.
2308 (fill_sprs32): Change parameter types to match those in the ptrace()
2309 buffer.
2310 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2311 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2312
23132002-07-22 Michael Snyder <msnyder@redhat.com>
2314
2315 * aix-thread.c (supply_sprs64): Cosmetic change.
2316 (supply_sprs32): Cosmetic change.
2317 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2318 (fill_sprs64): Use regcache_collect instead of read_register.
2319 (store_regs_lib): Use regcache_collect instead of
2320 read_register. Use fill_sprs32 instead of fill_sprs64,
2321 if debugging a 32-bit architecture.
2322 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2323 out of the register cache, instead of passing a pointer into
2324 the register cache directly to ptrace. Use regcache_collect
2325 insteaad of read_register.
2326 (ops_prepare_to_store): Use target_read_registers instead
2327 of read_register_bytes.
2328
36479eb1
AS
23292002-07-20 Aidan Skinner <aidan@velvet.net>
2330
2331 * MAINTAINERS: Add self under write after approval.
2332
80ae6ee2
AS
23332002-07-20 Aidan Skinner <aidan@velvet.net>
2334
2335 * ada-tasks.c: Change k&r style function definitions to prototyped
2336 form.
2337
8a8ab2b9
AC
23382002-07-19 Andrew Cagney <ac131313@redhat.com>
2339
2340 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2341 * x86-64-tdep.c: Include "objfiles.h".
2342 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2343 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2344
fb16b900
ML
23452002-07-17 Michal Ludvig <michal@suse.cz>
2346
2347 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2348 (update_context): Initialise cfa variable.
2349
0fe7bf7b
MS
23502002-07-17 Michael Snyder <msnyder@redhat.com>
2351
2352 * aix-thread.c: Shorten some long lines.
2353 Bring comments into line with code spec.
2354
488f131b
JB
23552002-07-18 Joel Brobecker <brobecker@gnat.com>
2356
2357 * infrun.c: Re-indent using gdb_indent.sh.
2358
46c415d2
JB
23592002-07-18 Joel Brobecker <brobecker@gnat.com>
2360
2361 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2362 Leave the indentation temporarily untouched, to minimize the diffs.
2363
cdecafbe
EZ
23642002-07-18 Elena Zannoni <ezannoni@redhat.com>
2365
2366 * stabsread.c: Make os9k sections of the code obsolete,
2367 for real this time.
2368 * stabsread.h: Make os9k sections of the code obsolete.
2369
7b6aa020
ML
23702002-07-18 Michal Ludvig <mludvig@suse.cz>
2371
09ec9b38
ML
2372 * linux-low.c (regsets_store_inferior_registers): Add free()
2373 at the end of a loop to prevent memory leak.
2374 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2375 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2376 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2377 line a comment.
4894ac5d 2378 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2379
233282cd
JB
23802002-07-17 Jim Blandy <jimb@redhat.com>
2381
2382 * macrocmd.c (info_macro_command): Remove newline from error
2383 message.
2384
7b6aa020 23852002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2386
2387 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2388 (sh_gdbarch_init): Use it for sh-dsp.
2389
f7ef9339
KB
23902002-07-16 Kevin Buettner <kevinb@redhat.com>
2391
2392 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2393 64-bit DWARF2 format.
2394
8dd72958
JB
23952002-07-16 Joel Brobecker <brobecker@gnat.com>
2396
2397 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2398 <sys/proc.h> when not available.
2399
a99a9e1b
AC
24002002-07-16 Andrew Cagney <ac131313@redhat.com>
2401
2402 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2403 * stabsread.c: Make os9k sections of the code obsolete.
2404 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2405 * config/i386/i386os9k.mt: Make file obsolete.
2406 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2407 (COMMON_OBS): Remove os9kread.o
2408 (SFILES): Remove os9kread.c.
2409 (os9kread.o, remote-os9k.o): Make target obsolete.
2410 * remote-os9k.c: Make file obsolete.
2411 * os9kread.c: Make file obsolete.
2412 * Makefile.in
2413
7a3085c1
AC
24142002-07-16 Andrew Cagney <ac131313@redhat.com>
2415
2416 * NEWS: Mention that the FR30 has been made obsolete.
2417 * fr30-tdep.c: Make file obsolete.
2418 * config/fr30/tm-fr30.h: Ditto.
2419 * config/fr30/fr30.mt: Ditto.
2420 * configure.tgt: Make fr30-*-elf obsolete.
2421 * MAINTAINERS: Make fr30-elf obsolete.
2422
28a93f5a
PM
24232002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2424
2425 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2426 found is not inside a section.
2427
be006b8b
KB
24282002-07-15 Kevin Buettner <kevinb@redhat.com>
2429
2430 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2431 strerror().
2432 (pdc_realloc): Use xrealloc() instead of realloc().
2433
14fa3751
KB
24342002-07-15 Kevin Buettner <kevinb@redhat.com>
2435
2436 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2437 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2438 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2439 macros.
2440
42cc437f
KB
24412002-07-15 Kevin Buettner <kevinb@redhat.com>
2442
2443 * aix-thread.c (ptrace_check): Eliminate goto.
2444 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2445 problem.
2446
8e2c28d4
KB
24472002-07-15 Kevin Buettner <kevinb@redhat.com>
2448
2449 * aix-thread.c (gdbcmd.h): Include.
2450 (DEBUG, DBG, DBG2, dbg): Eliminate.
2451 (debug_aix_thread): New static global.
2452 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2453 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2454 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2455 invocations to DBG and DBG2 macros to test against
2456 ``debug_aix_thread'' and call fprintf_unfiltered().
2457 (_initialize_aix_thread): Add new command "set debug aix-thread".
2458
30413464
AC
24592002-07-15 Andrew Cagney <ac131313@redhat.com>
2460
2461 From Gerhard Tonn <TON@de.ibm.com>:
2462 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2463 instead of supply_register.
2464
7c43edc1
AC
24652002-07-15 Andrew Cagney <ac131313@redhat.com>
2466
2467 * dwarf2cfi.c: Include "gdb_assert.h".
2468 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2469 non-NULL.
2470 (update_context): Do not use __func__. Add missing ``break''.
2471 (update_context): Do not use __func__.
2472
9364a0ef
EZ
24732002-07-15 Elena Zannoni <ezannoni@redhat.com>
2474
2475 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2476 and its setting. Set gdbarch instruction printing functions
2477 directly. For non-rs6000 case use new function
2478 gdb_print_insn_powerpc.
2479 (gdb_print_insn_powerpc): New function.
2480
3fbeef0b
AC
24812002-07-13 Andrew Cagney <ac131313@redhat.com>
2482
92eb23c5 2483 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2484 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2485 * configure.tgt: Mark d30v-*-* as obsolete.
2486 * d30v-tdep.c: Mark file as obsolete.
2487 * config/d30v/d30v.mt: Ditto.
2488 * config/d30v/tm-d30v.h: Ditto.
2489
aacb1f0a
AS
24902002-07-13 Aidan Skinner <aidan@velvet.net>
2491
2492 * ada-tasks.c (add_task_entry): replace calls to
2493 malloc() with xmalloc
2494 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2495
2496 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2497 ada_finish_decode_line_1, all_sals_for_line
2498 ada_breakpoint_rewrite): replace calls to free() with xfree()
2499
c11d79f2
KB
25002002-07-12 Kevin Buettner <kevinb@redhat.com>
2501
2502 From Nicholas Duffek (with minor changes by Martin Hunt,
2503 Louis Hamilton, and Kevin Buettner):
2504 * aix-thread.c: New file.
2505
8e19ed76
PS
25062002-07-12 Petr Sorfa <petrs@caldera.com>
2507
2508 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2509 complaint for invalid attribute class or form.
2510 (read_func_scope): DW_AT_frame_base
2511 better handling of DW_AT_block*.
2512 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2513 better handling of DW_AT_block*.
2514 (read_common_block): DW_AT_location
2515 better handling of DW_AT_block*.
2516 (read_partial_die): DW_AT_location better handling
2517 of DW_AT_block*.
2518 (new_symbol): DW_AT_external better handling of
2519 DW_AT_block*. Proper initialization of variable
2520 "addr".
2521 (attr_form_is_block): New function that returns true
2522 if the attribute's form is of DW_FORM_block*.
2523
295401f7
DJ
25242002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2525
2526 * valops.c (find_method_list): Remove comment about
2527 removed STATIC_MEMFUNCP argument.
2528 (value_find_oload_method_list): Likewise.
2529
e42dc924
KB
25302002-07-12 Kevin Buettner <kevinb@redhat.com>
2531
2532 From Nicholas Duffek:
2533 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2534 target_new_objfile_hook.
2535
6904b546
KB
25362002-07-12 Kevin Buettner <kevinb@redhat.com>
2537
2538 From Nicholas Duffek:
2539 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2540 csect.
2541
53fe9346
AC
25422002-07-12 Andrew Cagney <cagney@redhat.com>
2543
2544 * MAINTAINERS: Mention --enable-sim-build-warnings.
2545 (m68hc11-elf): Disable sim build warnings.
2546 (m32r-elf): Mark as broken obsolete candidate.
2547 (x86_64-linux-gnu): Mark as buildable with -Werror.
2548 (arm-elf): Change -w to ``,'' which enables warnings but not
2549 -Werror.
2550
af5f3db6
AC
25512002-07-12 Andrew Cagney <ac131313@redhat.com>
2552
2553 * bcache.h: Update copyright.
2554 (struct bstring, struct bcache): Move definition to "bcache.c".
2555 Replaced by opaque declaration.
2556 (bcache_xfree): Replace free_bcache.
2557 (bcache_xmalloc, bcache_memory_used): Declare.
2558
2559 * bcache.c: Update copyright.
2560 (struct bstring, struct bcache): Moved to here from "bcache.h".
2561 Update comments.
2562 (bcache_xmalloc, bcache_memory_used): New functions.
2563 (bcache_xfree): Replace function free_bcache.
2564
2565 * Makefile.in (objfiles.o): Add $(bcache_h).
2566 (objfiles_h): Remove $(bcache_h).
2567 (symfile.o): Add $(bcache_h).
2568
2569 * symmisc.c: Update copyright.
2570 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2571 (print_objfile_statistics): Use bcache_memory_used.
2572
2573 * symfile.c: Include "bcache.h".
2574 (reread_symbols): Use bcache_xfree.
2575 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2576 (add_psymbol_to_list): Pass psymbol_cache by value.
2577 (add_psymbol_with_dem_name_to_list): Ditto.
2578
2579 * objfiles.h: Update copyright.
2580 (struct bcache): Declare opaque. Do not include "bcache.h".
2581 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2582 bcache'' pointers.
2583 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2584
2585 * objfiles.c: Include "bcache.h". Update copyright.
2586 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2587 macro_cache.
2588 (free_objfile): Use bcache_xfree.
2589
444199e7
GS
25902002-07-11 Grace Sainsbury <graces@redhat.com>
2591
2592 * monitor.c (monitor_fetch_register): Make name a constant.
2593 (monitor_store_register): Same.
2594
261397f8
DJ
25952002-07-11 Daniel Jacobowitz <drow@mvista.com>
2596
2597 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2598 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2599 (finish_block) For non-function blocks, hash the symbol table. For
2600 function blocks, mark the symbol table as unhashed.
2601 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2602 (msymbol_hash_iw): Likewise.
2603 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2604 value.
2605 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2606 (lookup_minimal_symbol): Likewise for both.
2607 * symtab.h (struct block): Add `hashtable' flag. Comment the
2608 hashtable.
2609 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2610 (ALL_BLOCK_SYMBOLS): Update.
2611 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2612 (struct symbol): Add `hash_next' pointer.
2613 * symtab.c (lookup_block_symbol): Search using the hash table when
2614 possible.
2615 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2616 (search_symbols, find_addr_symbol): Likewise.
2617
2618 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2619 (read_dst_symtab): Likewise.
2620 * jv-lang.c (get_java_class_symtab): Likewise.
2621 * mdebugread.c: Include "gdb_assert.h".
2622 (shrink_block): Assert that the block being modified is not hashed.
2623 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2624 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2625 symbols.
2626 (dump_symtab): Recognize hashed blocks.
2627 * printcmd.c (print_frame_args): Assert that function blocks do not
2628 have hashed symbol tables.
2629 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2630 (fill_in_ada_prototype, debug_print_block): Likewise.
2631 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2632
6f0eaa01
CV
26332002-07-11 Corinna Vinschen <vinschen@redhat.com>
2634
2635 * stack.c (print_frame): Use result of frame_address_in_block()
2636 instead of fi->pc when evaluating symbols.
2637 (backtrace_command_1): Ditto.
2638
a208b0cb
AC
26392002-07-11 Andrew Cagney <cagney@redhat.com>
2640
2641 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2642 Make static.
2643
2644 * arm-tdep.c (arm_register_name): Make return type constant.
2645
a6b6b089
AC
26462002-07-10 Andrew Cagney <ac131313@redhat.com>
2647
5ae5f592
AC
2648 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2649 prototype.
2650 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2651 * s390-tdep.c (s390_fp_regnum): Ditto.
2652 (s390_read_fp): Ditto.
2653 (s390_pop_frame): Ditto.
2654 (_initialize_s390_tdep): Ditto.
2655 * remote.c (get_remote_state): Ditto.
2656 * procfs.c (mappingflags): Ditto.
2657 * memattr.c (_initialize_mem): Ditto.
2658 * mcore-tdep.c (mcore_pop_frame): Ditto.
2659 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2660 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2661 * language.c (set_case_str): Ditto.
2662 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2663 * frv-tdep.c (new_variant): Ditto.
2664 (frv_stopped_data_address): Ditto.
2665 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2666 (context_alloc): Ditto.
2667 (frame_state_alloc): Ditto.
2668 (unwind_tmp_obstack_init): Ditto.
2669 (unwind_tmp_obstack_free): Ditto.
2670 (cfi_read_fp): Ditto.
2671 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2672 (cris_pop_frame): Ditto.
2673 * c-lang.c (scanning_macro_expansion): Ditto.
2674 (finished_macro_expansion): Ditto.
2675 (c_preprocess_and_parse): Ditto.
2676 * gdbarch.sh: Ditto.
2677 * gdbarch.h, gdbarch.c: Regenerate.
2678 * config/mn10200/tm-mn10200.h: Adjust indentation.
2679 * target.c: Adjust indentation.
2680 * symtab.h: Adjust indentation.
2681 * stabsread.h: Adjust indentation.
2682 * remote-es.c: Adjust indentation.
2683 * os9kread.c: Adjust indentation.
2684
26852002-07-10 Andrew Cagney <ac131313@redhat.com>
2686
a6b6b089
AC
2687 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2688 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2689
a1789893
GS
26902002-07-10 Grace Sainsbury <graces@redhat.com>
2691
2692 * NEWS: Mention m68k, mcore multi-arching.
2693 * MAINTAINERS: Change status of m68k, mcore to reflect
2694 multi-arching.
2695
02f0d45d
DJ
26962002-07-10 Daniel Jacobowitz <drow@mvista.com>
2697
2698 * valops.c (find_overload_match): Free oload_syms.
2699
f15f768e
JB
27002002-07-09 Joel Brobecker <brobecker@gnat.com>
2701
2702 Define HAVE_SYS_PROC_H if sys/proc.h exists
2703 * configure.in: Add check for sys/proc.h
2704 * config.in: Regenerate.
2705 * configure: Regenerate.
2706
902a7139
GS
27072002-07-09 Grace Sainsbury <graces@redhat.com>
2708
2709 * config/m68k/tm-m68k.h: Remove macros wrapped in
2710 #if !GDB_MULTI_ARCH.
2711
a534e424
AC
27122002-07-08 Andrew Cagney <ac131313@redhat.com>
2713
2714 * config.in, configure: Regenerate.
2715
9b94f7bf
MK
27162002-07-08 Mark Kettenis <kettenis@gnu.org>
2717
2718 * dwarf2cfi.c: Include "gcore.h".
2719 (execute_stack_op): Fix implementation of the
2720 DW_OP_deref and DW_OP_deref_size operators by letting do their
2721 lookup in the target.
2722
1d34db41
MK
27232002-07-07 Mark Kettenis <kettenis@gnu.org>
2724
2725 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2726 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2727 tdep->sc_sp_offset.
2728
79d5b63a
DJ
27292002-07-05 Daniel Jacobowitz <drow@mvista.com>
2730
2731 Fix PR gdb/595, gdb/602
2732 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2733 Don't call value_cast, just read the vtable pointer; update comments
2734 to match.
2735
3bb912e8
GS
27362002-07-05 Grace Sainsbury <graces@redhat.com>
2737
2738 * config/mcore/tm-mcore.h: Remove file.
2739 * config/mcore/mcore.mt: Remove definition of TM_FILE
2740 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2741
ca39387d
MK
27422002-07-05 Mark Kettenis <kettenis@gnu.org>
2743
2744 * i386bsd-tdep.c: Include "gdb_string.h".
2745
efdc1108
GS
27462002-07-04 Grace Sainsbury <graces@redhat.com>
2747
2748 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2749 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2750 mcore-tdep.
2751 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2752 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2753 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2754 (RETVAL_REGNUM): Move macros from tm-mcore.h
2755 (mcore_reg_struct_has_addr): New function.
2756 (mcore_gdbarch_init): Added initializations for the macros removed
2757 from tm-mcore.h.
2758
bb21884d
MK
27592002-07-04 Mark Kettenis <kettenis@gnu.org>
2760
2761 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2762 traditonal string branding within the ELF header.
2763
228c6d41
DJ
27642002-07-04 Daniel Jacobowitz <drow@mvista.com>
2765
2766 * symtab.c (remove_params): New function.
2767 (make_symbol_overload_list): Use it instead of cplus_demangle.
2768 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2769
2404952e
MK
27702002-07-04 Mark Kettenis <kettenis@gnu.org>
2771
e5e4acad
MK
2772 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2773
baadce09
MK
2774 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2775 New variables.
2776 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2777 and tdep->sigtramp_end.
2778 * i386obsd-nat.c: New file.
2779 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2780
2404952e
MK
2781 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2782 Don't call get_current_frame().
2783
9b4f1ba7
PM
27842002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2785
2786 * i386-nat.c (child_post_startup_inferior): New function
2787 calling i386_cleanup_dregs if
2788 I386_USE_GENERIC_WATCHPOINTS is defined.
2789 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2790 conditional to acknowledge that i386-nat.c has its
2791 own child_post_startup_inferior function.
2792
c0d1d883
MK
27932002-07-04 Mark Kettenis <kettenis@gnu.org>
2794
00f8375e
MK
2795 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2796 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2797 instead of MAX_REGISTER_RAW_SIZE.
2798 (i386_extract_return_value, i386_extract_struct_value_address):
2799 Convert to use regcache.
2800 (i386_gdbarch_init): Set max_register_raw_size and
2801 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2802 Set extract_return_value and extract_struct_value_address instead
2803 of their deprecated variants.
2804
c0d1d883
MK
2805 Convert i386 target to generic dummy frames.
2806 * i386-tdep.c: Include "symfile.h".
2807 (i386_frameless_signal_p): Consider a function to be frameless if
2808 the pc points at the first instruction of the function.
2809 (i386_frame_chain): Handle (generic) call dummies.
2810 (i386_frame_saved_pc): Likewise.
2811 (i386_frame_init_saved_regs): Remove code dealing with call
2812 dummies on the stack.
2813 (i386_push_dummy_frame): Removed.
2814 (i386_call_dummy_words): Removed.
2815 (i386_fix_call_dummy): Removed.
2816 (i386_push_return_address): New function.
2817 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2818 parameter, and don't call get_current_frame.
2819 (i386_pop_frame): New function.
2820 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2821 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2822 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2823 call_dummy_length to 0, set call_dummy_words to NULL, set
2824 sizeof_call_dummy_words to 0, set fix_call_dummy to
2825 generic_fix_call_dummy, set pc_in_call_dummy to
2826 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2827 generic_push_dummy_frame, set push_return_address to
2828 i386_push_return_address and set frame_chain_valid to
2829 generic_file_frame_chain_valid.
2830
049ee0e4
AC
28312002-07-03 Andrew Cagney <ac131313@redhat.com>
2832
2833 * gdbarch.sh (struct regcache): Add opaque declaration.
2834 (EXTRACT_RETURN_VALUE): New architecture method.
2835 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2836 * gdbarch.h, gdbarch.c: Regenerate.
2837 * arch-utils.c (legacy_extract_return_value): New function.
2838 * arch-utils.h (legacy_extract_return_value): Declare.
2839 * values.c (value_being_returned): Re-enable code handling
2840 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2841 deprecated_grub_regcache_for_registers call to block handling
2842 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2843 (EXTRACT_RETURN_VALUE): Do not define.
2844
4e0d9804
GS
28452002-07-03 Grace Sainsbury <graces@redhat.com>
2846
2847 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2848 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2849 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2850 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2851 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2852 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2853 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2854 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2855 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2856 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2857 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2858 argument so the function fits the prototype in the architecture
2859 vector.
2860 (mcore_pop_frame): Remove argument so the function fits the
2861 prototype. Use get_current_frame instead of the argument.
2862 (mcore_push_arguments): Change type of struct_return so the
2863 function can be used in the architecture vector.
2864 (mcore_store_struct_return): Add.
2865 (mcore_frame_init_saved_regs): Add.
2866 (mcore_gdbarch_init): Add function calls to replace the macros
2867 removed from tm-mcore.h
2868
36160dc4
AC
28692002-07-03 Andrew Cagney <ac131313@redhat.com>
2870
2871 * infcmd.c (print_return_value): Remove compatibility code calling
2872 deprecated_grub_regcache_for_registers.
2873
2874 * values.c: Include "regcache.h".
2875 (value_being_returned): Update. Use
2876 deprecated_grub_regcache_for_registers to extract the register
2877 buffer address.
2878 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2879 ``struct regcache''.
2880 * Makefile.in (values.o): Add dependency on $(regcache_h).
2881
2882 * inferior.h (run_stack_dummy): Change type of second parameter to
2883 a ``struct regcache''.
2884 * valops.c (hand_function_call): Change type of retbuf to ``struct
2885 regcache''. Allocate using regcache_xmalloc, clean using
2886 make_cleanup_regcache_xfree.
2887 * infcmd.c (run_stack_dummy): Update. Use
2888 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2889
2890 * regcache.c (do_regcache_xfree): New function.
2891 (make_cleanup_regcache_xfree): New function.
2892 * regcache.h (make_cleanup_regcache_xfree): Declare.
2893
e64d9b3d
MH
28942002-07-03 Martin M. Hunt <hunt@redhat.com>
2895
4dd79c29
MH
2896 * event-top.c (command_line_handler): Don't read past
2897 beginning of buffer.
e64d9b3d 2898
4dd79c29
MH
28992002-07-03 Martin M. Hunt <hunt@redhat.com>
2900
e64d9b3d
MH
2901 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2902 struct frame_id.
2903 (varobj_create): Store frame_id for root.
2904 (varobj_gen_name): Use xasprintf.
2905 (varobj_update): Save and restore frame using get_frame_id() and
2906 frame_find_by_id().
2907 (create_child): Use xasprintf.
2908 (new_root_variable): Initialize frame_id.
2909 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2910 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2911 to prevent memory leak.
2912
26e6c56a
AC
29132002-07-03 Andrew Cagney <ac131313@redhat.com>
2914
2915 * valops.c (hand_function_call): Move declaration of retbuf to
2916 start of function, allocate using malloc, add a cleanup but before
2917 the inf_status cleanup, cleanup the buffer. Rename local variable
2918 old_chain to inf_status_cleanup.
2919
f436dd25
MH
29202002-07-03 Martin M. Hunt <hunt@redhat.com>
2921
2922 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2923
2924 * cli/cli-decode.c (cmd_func_p): New function.
2925 (cmd_func): New function.
2926
2927 * command.h: Add cmd_func() and cmd_func_p().
2928
4cfe2084
GS
29292002-07-03 Grace Sainsbury <graces@redhat.com>
2930
2931 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2932 (REGISTER_SIZE): Remove.
2933 (MAX_REGISTER_RAW_SIZE): Remove.
2934 (REGISTER_VIRTUAL_TYPE): Remove.
2935 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2936 (REGISTER_NAME): Remove.
2937 (USE_GENERIC_DUMMY_FRAMES): Remove.
2938 (CALL_DUMMY): Remove.
2939 (CALL_DUMMY_START_OFFSET): Remove.
2940 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2941 (CALL_DUMMY_LOCATION): Remove.
2942 (FIX_CALL_DUMMY): Remove.
2943 (CALL_DUMMY_ADDRESS): Remove.
2944 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2945 (SAVE_DUMMY_FRAME_TOS): Remove.
2946 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2947 (mcore_register_virtual_type): New function.
2948 (mcore_register_byte): New function.
2949 (mcore_register_size): New function.
2950 (mcore_register_name): New function.
2951 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2952 macros removed from tm-mcore.h.
2953 (mcore_dump_tdep): Add.
2954 (_initialize_mcore_tdep): Add gdbarch_register call.
2955
4fd667e9
MK
29562002-07-03 Mark Kettenis <kettenis@gnu.org>
2957
2958 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2959 frameless_look_for_prologue, such that we actually call this
2960 function.
2961
42f99ac2
JB
29622002-07-02 Joel Brobecker <brobecker@gnat.com>
2963
2964 * frame.h (frame_address_in_block): New function.
2965
2966 * blockframe.c (frame_address_in_block): New function extracted
2967 from get_frame_block().
2968 (get_frame_block): Use frame_address_in_block().
2969 (block_innermost_frame): Use frame_address_in_block() to match
2970 the frame pc address against the block boundaries rather than
2971 the frame pc directly. This prevents a failure when a frame pc
2972 is actually a return-address pointing immediately after the end
2973 of the given block.
2974
103a1597 29752002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2976
2977 * MAINTAINERS: Add self under write after approval.
2978
29792002-07-02 Grace Sainsbury <graces@redhat.com>
2980
103a1597
GS
2981 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2982 used in architecture vector. The default is
2983 m68k_local_breakpoint_from_pc.
2984 (m68k_local_breakpoint_from_pc): Add.
2985 (enum): Add register numbers from tm-m68k.h.
2986 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2987 vector.
2988 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2989 GDB_MULTI_ARCH_PARTIAL.
2990 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2991 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2992 m68k-tdep.c.
2993 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2994 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2995 to enum in m68k-tdep.c
2996
7a5a0534
JB
29972002-07-02 Joel Brobecker <brobecker@gnat.com>
2998
2999 * solib-osf.c (open_map): Compute the list of shared libraries
3000 loaded by the inferior, rather than the list of libraries loaded
3001 by GDB itself. Otherwise, GDB ends up reading the symbols from
3002 the wrong shared libraries...
3003
6f558d74
MK
30042002-07-02 Mark Kettenis <kettenis@gnu.org>
3005
b7d15bf7
MK
3006 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3007 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3008 macros.
3009 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3010 Remove functions.
3011 (FRAMELESS_SIGNAL): Remove function.
3012 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3013 i386_linux_saved_pc_after_call): Removed.
3014 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3015 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3016 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3017
6bff26de
MK
3018 * i386-tdep.c (i386_frameless_signal_p): New function.
3019 (i386_frame_chain): Deal with frameless signals.
3020 (i386_sigtramp_saved_sp): New function.
3021 (i386_frame_saved_pc): Deal with frameless signals.
3022 (i386_saved_pc_after_call): Make sure the correct value is
3023 returned just after entry into a sigtramp.
3024 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3025 i386fbsd4_sc_sp_offset): New variables.
3026 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3027 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3028 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3029 similiar to what we already did for sc_pc_offset.
3030 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3031 tdep->sc_sp_offset.
3032
6f558d74
MK
3033 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3034
145564b7
ML
30352002-07-02 Michal Ludvig <mludvig@suse.cz>
3036
3037 * config/i386/tm-x86-64linux.h: New.
3038 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3039 definitions.
3040 * config/i386/nm-x86-64.h: Rename to ...
3041 * config/i386/nm-x86-64linux.h: ... this one.
3042 * config/i386/x86-64linux.mh: Reflect the above change.
3043
3a1e71e3
MK
30442002-07-01 Mark Kettenis <kettenis@gnu.org>
3045
21d0e8a4
MK
3046 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3047 with sigcontext_addr. Add sc_sp_offset.
3048 (i386bsd_sigtramp_saved_pc): Remove prototype.
3049 (i386bsd_sicontext_addr): Add prototype.
3050 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3051 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3052 (i386_svr4_sigtramp_saved_pc): Removed.
3053 (i386_svr4_sigcontext_addr): New function.
3054 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3055 Initialize tdep->sigcontext_addr instead. Initialize
3056 tdep->sc_pc_offset and tdep->sc_sp_offset.
3057 (i386_gdbarch_init): Likewise.
3058 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3059 any more.
3060 (i386bsd_sigtramp_saved_pc): Remove function.
3061 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3062 Initialize tdep->sigcontext_addr instead. Initialize
3063 tdep->sc_pc_offset.
3064 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3065 of tdep->sigtramp_saved_pc.
3066 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3067 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3068 instead.
3069
3a1e71e3
MK
3070 * i386-tdep.c (i386_frameless_function_invocation,
3071 i386_frame_num_args, i386_frame_init_saved_regs,
3072 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3073 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3074 i386_extract_return_value, i386_store_return_value,
3075 i386_extract_struct_value_address, i386_register_virtual_type,
3076 i386_register_convertible, i386_register_convert_to_virtual,
3077 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3078 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3079 static.
3080
52e9098c
MK
30812002-07-01 Mark Kettenis <kettenis@gnu.org>
3082
77b13a25
MK
3083 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3084
52e9098c
MK
3085 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3086 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3087 this macro. Include "value.h".
3088
1b372fff
AS
30892002-06-30 Aidan Skinner <aidan@velvet.net>
3090
3091 * ada-exp.tab.c: remove as it's a generated file
3092 * ada-lex.c: remove as it's a generated file
3093
9c5045b5
MK
30942002-06-30 Mark Kettenis <kettenis@gnu.org>
3095
4a93c5bb
MK
3096 * config/i386/tm-i386.h (struct frame_info, struct
3097 frame_saved_regs, struct value, struct type): Remove forward
3098 declarations.
3099
322d4fe0
MK
3100 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3101 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3102 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3103 (FILL_FPXREGSET): Define.
3104
fdd8263d
MK
3105 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3106
482e577b
MK
3107 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3108 i[3456]86-*-netbsd* case.
3109 * config/i386/tm-obsd.h: Removed.
3110 * config/i386/obsd.mt: Removed.
3111 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3112 core-aout.o.
3113 (MH_CFLAGS): Add -DYYDEBUG=0.
3114
6916549a
MK
3115 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3116 i386nbsd_sc_pc_offset on OpenBSD too.
3117
9c5045b5
MK
3118 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3119 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3120 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3121 define.
3122 * i386bsd-tdep.c: Include "arch-utils.h".
3123 (i386bsd_aout_in_solib_call_trampoline): New function.
3124 (i386bsd_init_abi): Set in_solib_call_trampoline to
3125 i386bsd_aout_in_solib_call_trampoline.
3126 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3127 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3128
aa84d1bb
AC
31292002-06-28 Andrew Cagney <ac131313@redhat.com>
3130
3131 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3132 (struct obstack, struct bcache): Add opaque declarations.
3133 * Makefile.in (macrotab_h): Update
3134
b4d83933
AC
31352002-06-28 Andrew Cagney <ac131313@redhat.com>
3136
3137 * blockframe.c (generic_find_dummy_frame): Change return type to
3138 ``struct regcache''.
3139 (struct dummy_frame): Replace field ``registers'' with regcache, a
3140 struct regcache object.
3141 (generic_find_dummy_frame): Update.
3142 (generic_push_dummy_frame): Update. Use regcache_xfree,
3143 regcache_xmalloc and regcache_cpy.
3144 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3145 regcache_xfree.
3146 (deprecated_generic_find_dummy_frame): Update.
3147 (generic_read_register_dummy): Update. Use
3148 regcache_read_as_address.
3149 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3150 (generic_get_saved_register): Update. Use regcache_read.
3151
08c0b5bc
AC
31522002-06-28 Andrew Cagney <ac131313@redhat.com>
3153
3154 * Makefile.in (objfiles_h): Add $(bcache_h).
3155 * objfiles.h: Include "bcache.h".
3156
3157 * Makefile.in (symtab_h): Remove $(bcache_h).
3158 * symtab.h: Do not include "bcache.h".
3159
1f89801a
AC
31602002-06-28 Andrew Cagney <ac131313@redhat.com>
3161
3162 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3163 generic_func_frame_chain_valid.
3164
b9644b58
DB
31652002-06-28 David O'Brien <obrien@FreeBSD.org>
3166
3167 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3168 * config/i386/tm-fbsd.h: Likewise.
3169
dd486634
AC
31702002-06-28 Andrew Cagney <ac131313@redhat.com>
3171
3172 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3173 generic_unwind_get_saved_register.
3174
0b434a00
AC
31752002-06-27 Andrew Cagney <ac131313@redhat.com>
3176
3177 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3178 * regcache.c (supply_register): Add missing argument to
3179 register_buffer call.
3180
f30e5a77
AC
31812002-06-27 Andrew Cagney <ac131313@redhat.com>
3182
3183 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3184 Solaris /bin/grep does not not like it. From Peter Schauer.
3185
9f064c95
TT
31862002-06-26 Tom Tromey <tromey@redhat.com>
3187
3188 * command.h (add_setshow_cmd): Declare.
3189 (add_setshow_cmd_full): Declare.
3190 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3191 returns void. Use add_setshow_cmd_full.
3192 (add_setshow_cmd_full): New function.
3193 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3194 (add_setshow_boolean_cmd): Likewise.
3195
099c7589
JT
31962002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3197
3198 * config/vax/tm-vax.h: Protect from multiple inclusion.
3199 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3200 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3201 * config/vax/tm-vaxbsd.h: ...here. New file.
3202 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3203
1d049c5e
JT
32042002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3205
3206 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3207 (BELIEVE_PCC_PROMOTION): Remove.
3208 (AP_REGNUM): Move to...
3209 * config/vax/nm-vax.h: ...here.
3210 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3211 (vax_breakpoint_from_pc): New function.
3212 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3213 and gdbarch_believe_pcc_promotion.
3214
4791e091
JT
32152002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3216
3217 * Makefile.in (vax_tdep_h): Define.
3218 (vax-tdep.o): Use $(vax_tdep_h).
3219 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3220 (vax_dump_tdep): New function.
3221 (_initialize_vax_tdep): Register vax_dump_tdep.
3222 * vax-tdep.h: Include osabi.h.
3223 (struct gdbarch_tdep): New.
3224
da130f98
AC
32252002-06-26 Andrew Cagney <cagney@redhat.com>
3226
3227 * frame.h (deprecated_generic_find_dummy_frame): Rename
3228 generic_find_dummy_frame.
3229 * blockframe.c (generic_find_dummy_frame): Make static.
3230 (deprecated_generic_find_dummy_frame): New function.
3231 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3232 generic_find_dummy_frame with deprecated_find_dummy_frame.
3233 (sh64_nofp_frame_init_saved_regs): Ditto.
3234 (sh_fp_frame_init_saved_regs): Ditto.
3235 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3236 (s390_frame_chain): Ditto.
3237 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3238
6300c360
GS
32392002-06-26 Grace Sainsbury <graces@redhat.com>
3240
3241 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3242 gdbarch vector are at the top.
3243 (NUM_REGS): Remove.
3244 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3245 (FRAME_ARGS_ADDRESS): Remove.
3246 (FRAME_LOCALS_ADDRESS): Remove.
3247 (FRAME_NUM_ARGS): Remove.
3248 (FRAME_ARGS_SKIP): Remove.
3249 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3250 (m68k_gdbarch_init): Add gdbarch initializations for macros
3251 undefined in tm-m68k.h
3252
1c617db8
GS
32532002-06-26 Grace Sainsbury <graces@redhat.com>
3254
3255 * monitor.h: Add the function regname to monitor_ops
3256 structure. This way NUM_REGS does not have to be a constant.
3257 * monitor.c (monitor_fetch_register): Added support for regname
3258 function. The function is called if the array regnames is NULL.
3259 (monitor_store_register): Same.
da130f98
AC
3260 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3261 regnames array.
1c617db8
GS
3262 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3263 cpu32bug_cmds.regname to point to new function.
3264 * abug-rom.c (abug_regname): Same as above.
3265 (init_abug_cmds): Same.
3266 * dbug-rom.c (dbug_regname): Same as above.
3267 (init_dbug_cmds): Same.
3268 * remote-est.c (est_regname): Same.
3269 (init_est_cmds): Same.
3270 * rom68k-rom.c (rom68k_regname): Same.
3271 (init_rom68k_cmds): Same.
3272
ea9365bb
TT
32732002-06-25 Tom Tromey <tromey@redhat.com>
3274
3275 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3276
72cec141
AC
32772002-06-25 Andrew Cagney <cagney@redhat.com>
3278
3279 * infrun.c (stop_registers): Change variable's type to ``struct
3280 regcache'''.
3281 (xmalloc_inferior_status): Delete function.
3282 (free_inferior_status): Delete function.
3283 (normal_stop): Use regcache_cpy.
3284 (struct inferior_status): Change type of fields ``stop_registers''
3285 and ``registers'' to ``struct regcache''.
3286 (write_inferior_status_register): Use regcache_write.
3287 (save_inferior_status): Instead of calling
3288 xmalloc_inferior_status, allocate the inf_status buffer directly.
3289 Use regcache_dup_no_passthrough and regcache_dup to save the
3290 buffers.
3291 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3292 Replace the stop_registers regcache instead of overriding it. Use
3293 regcache_xfree. Instead of calling free_inferior_status, xfree
3294 the buffer directly.
3295 (discard_inferior_status): Use regcache_xfree. Instead of calling
3296 free_inferior_status, xfree the buffer directly.
3297 (build_infrun): Use regcache_xmalloc.
3298 (_initialize_infrun): Delete redundant call to build_infrun.
3299
3300 * Makefile.in (infcmd.o): Add $(regcache_h).
3301
3302 * infcmd.c: Include "regcache.h".
3303 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3304 obtain the address of `stop_registers' register buffer.
3305 (print_return_value): Ditto.
3306
3307 * inferior.h (struct regcache): Add opaque declaration.
3308 (stop_registers): Change variable's declared type to ``struct
3309 regcache''.
3310
defc6f8c
TT
33112002-06-24 Tom Tromey <tromey@redhat.com>
3312
c0e624e7
TT
3313 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3314 * target.c (initialize_targets): Fixed typo in
3315 trust-readonly-sections `show' documentation.
3316
defc6f8c
TT
3317 * main.c: Marked all strings with _().
3318
2b236d82
DH
33192002-06-24 Don Howard <dhoward@redhat.com>
3320
3321 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3322 that means max CORE_ADDR+1.
3323 (lookup_mem_region): Ditto.
3324 (mem_info_command): Ditto.
3325
942dc0e9
GS
33262002-06-24 Grace Sainsbury <graces@redhat.com>
3327
3328 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3329 (REGISTER_BYTES_OK): Remove.
3330 (REGISTER_BYTES): Remove.
3331 (STORE_STRUCT_RETURN): Remove.
3332 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3333 (STORE_RETURN_VALUE): Remove.
3334 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3335 (FRAME_CHAIN): Remove.
3336 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3337 (FRAME_SAVED_PC): Remove.
3338 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3339 (m68k_store_struct_return): Add.
3340 (m68k_deprecated_extract_return_value): Add.
3341 (m68k_deprecated_extract_struct_value_address): Add.
3342 (m68k_store_return_value): Add.
3343 (m68k_frame_chain): Add.
3344 (m68k_frameless_function_invocation): Add.
3345 (m68k_frame_saved_pc): Add.
3346 (m68k_gdbarch_init): added set_gdbarch calls for new
3347 functions and deleted macros.
3348
03c30d4d
TT
33492002-06-23 Tom Tromey <tromey@redhat.com>
3350
3351 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3352 (ALLDEPFILES): Likewise.
3353 (udiheaders): Removed.
3354 (udip2soc.o): Likewise.
3355 (udi2go32.o): Likewise.
3356 (udr.o): Likewise.
3357 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3358
37e71372
AC
33592002-06-22 Andrew Cagney <ac131313@redhat.com>
3360
06a6ac57
AC
3361 * infrun.c (_initialize_infrun): Delete unnecessary call to
3362 build_infrun.
3363
37e71372
AC
3364 * regcache.h: Update comments describing the regcache_cpy family
3365 of functions.
3366 (regcache_save, regcache_restore): Delete declaration.
3367 (regcache_save_no_passthrough): Delete declaration.
3368 (regcache_restore_no_passthrough): Delete declaration.
3369 * regcache.c (regcache_save): Delete function.
3370 (regcache_save_no_passthrough): Delete function.
3371 (regcache_restore): Delete function.
3372 (regcache_restore_no_passthrough): Delete function.
3373
78f6d055
AC
33742002-06-21 Andrew Cagney <ac131313@redhat.com>
3375
3376 * config/m68k/tm-m68k.h: Fix typo.
3377 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3378 (m68k_frame_init_saved_regs): Declare.
3379
78b119cb
JB
33802002-06-21 Jim Blandy <jimb@redhat.com>
3381
3382 Remove some vestiges of Harris 88k support.
3383 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3384 register numbering quirk.
3385 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3386 odd symbols occurring in Harris 88k ELF targets.
3387
0fbb3da7
TT
33882002-06-21 Tom Tromey <tromey@redhat.com>
3389
3390 * gdb_locale.h: New file.
3391 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3392 (defs_h): Added gdb_locale.h.
3393 * configure, config.in: Rebuilt.
3394 * configure.in (PACKAGE): Define.
3395 * defs.h: Include gdb_locale.h.
3396 * main.c (captured_main): Call setlocale, bindtextdomain,
3397 textdomain.
3398
456f8b9d
DB
33992002-06-21 Dave Brolley <brolley@redhat.com>
3400
3401 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3402 * config/frv/frv.mt: New file.
3403 * config/frv/tm-frv.h: New file.
3404 * configure.tgt: Support frv-*-*.
3405 * Makefile.in (frv-tdep.o): New target.
3406 * frv-tdep.c: New file.
3407 * NEWS: Mention frv.
3408
cdd463f9
DB
34092002-06-21 Dave Brolley <brolley@redhat.com>
3410
3411 * MAINTAINERS: Add self to "Write After Approval" list.
3412
5d3ed2e3
GS
34132002-06-21 Grace Sainsbury <graces@redhat.com>
3414
3415 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3416 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3417 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3418 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3419 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3420
3421 * m68k-tdep.c: Include arch-utils.h
3422 (m68k_register_raw_size): Add.
3423 (m68k_register_virtual_size): Add.
3424 (m68k_register_virtual_type): Add.
3425 (m68k_register_name): Add.
3426 (m68k_stack_align): Add.
3427 (m68k_register_byte): Add.
3428 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3429 tm-m68k.h.
3430
7f8e7424
GS
34312002-06-21 Grace Sainsbury <graces@redhat.com>
3432
a2c6a6d5 3433 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3434 m68k_find_saved_regs.
3435 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3436 references to it with frame->saved_regs.
7f8e7424
GS
3437 (m68k_gdbarch_init): Added function calls to initialize the
3438 gdbarch structure.
a2c6a6d5
GS
3439 (m68k_fix_call_dummy): Add.
3440 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3441 (CALL_DUMMY): Remove.
3442 (CALL_DUMMY_LENGTH): Remove.
3443 (CALL_DUMMY_START_OFFSET): Remove.
3444 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3445 (FIX_CALL_DUMMY): Remove.
3446 (PUSH_DUMMY_FRAME): Remove.
3447 (POP_FRAME): Remove.
7f8e7424 3448
f461f5cf
PM
34492002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3450
3451 * parse.c (parse_fprintf): New function used to avoid calls to
3452 fprintf in bison parser generated debug code.
3453 * parser-defs.h: Declaration of new parse_fprintf function.
3454 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3455 Set YYDEBUG to 1 by default.
3456 Set YYFPRINTF as parse_fprintf.
3457
7f0c12ed
ML
34582002-06-21 Michal Ludvig <mludvig@suse.cz>
3459
3460 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3461 encoding anymore.
3462 (pointer_encoding, enum ptr_encoding): New.
3463 (execute_cfa_program): Take care about pointer encoding.
3464 (dwarf2_build_frame_info): Only call parse_frame_info for
3465 .debug_frame and .eh_frame.
3466 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3467 fixed augmentation handling, added relative addressing,
3468 ignore duplicate FDEs. Added comments.
19d833a2 3469 * dwarf2cfi.c: Reindented.
7f0c12ed 3470
87c4a039
EZ
34712002-06-20 Elena Zannoni <ezannoni@redhat.com>
3472
3473 * event-top.c (command_handler): Don't use space_at_cmd_start
3474 unless there is sbrk() on the host. Assign time and space data
3475 to union fields of the appropriate length.
3476
1cf877ad
ML
34772002-06-20 Michal Ludvig <mludvig@suse.cz>
3478
3479 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3480 x86_64_register_name. Return type changed to 'const char *'.
3481 (x86_64_register_name2nr): Rename to x86_64_register_number.
3482 (x86_64_gdbarch_init): Update to reflect the change.
3483 * x86-64-tdep.h: Ditto.
3484 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3485 (supply_fpregset): Ditto.
3486
3fadccb3
AC
34872002-06-19 Andrew Cagney <cagney@redhat.com>
3488
3489 * regcache.h: Update copyright.
3490 (struct regcache, struct gdbarch): Add opaque declarations.
3491 (current_regcache): Declare global variable.
3492 (regcache_read, regcache_write): Add gdbarch parameter.
3493 (regcache_save, regcache_save_no_passthrough)
3494 (regcache_restore, regcache_restore_no_passthrough)
3495 (regcache_dup, regcache_dup_no_passthrough)
3496 (regcache_cpy, regcache_cpy_no_passthrough)
3497 (deprecated_grub_regcache_for_registers)
3498 (deprecated_grub_regcache_for_register_valid)
3499 (regcache_valid_p): Add function declarations.
3500
3501 * regcache.c: Update copyright.
3502 (regcache_descr_handle): New global variable.
3503 (struct regcache_descr): Define.
3504 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3505 (regcache_descr, xfree_regcache_descr): New functions.
3506 (struct regcache): Define.
3507 (regcache_xmalloc, regcache_xfree): New functions.
3508 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3509 (regcache_dup, regcache_dup_no_passthrough): New functions.
3510 (regcache_valid_p, regcache_read_as_address): New functions.
3511 (deprecated_grub_regcache_for_registers): New function.
3512 (deprecated_grub_regcache_for_register_valid): New function.
3513 (current_regcache): New global variable.
3514 (register_buffer): Add regcache parameter. Update calls.
3515 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3516 (read_register_gen, write_register_gen): Update register_buffer
3517 call. Test for legacy_p instead of gdbarch_register_read_p or
3518 gdbarch_register_write_p.
3519 (regcache_collect): Update register_buffer call.
3520 (build_regcache): Rewrite. Use deprecated grub functions.
3521 (regcache_save, regcache_save_no_passthrough): New functions.
3522 (regcache_restore, regcache_restore_no_passthrough): New
3523 functions.
3524 (_initialize_regcache): Create the regcache_data_handle. Swap
3525 current_regcache global variable.
3526
3527 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3528 parameter to regcache_read and regcache_write calls.
3529 (sh4_register_read): Ditto.
3530 (sh64_pseudo_register_read): Ditto.
3531 (sh64_register_read): Ditto.
3532 (sh_pseudo_register_write): Ditto.
3533 (sh4_register_write): Ditto.
3534 (sh64_pseudo_register_write): Ditto.
3535 (sh64_register_write): Ditto.
3536
3537 * defs.h (XCALLOC): Define.
3538
152d9db6
GS
35392002-06-19 Grace Sainsbury <graces@redhat.com>
3540
3541 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3542 * m68k-tdep.c (m68k_gdbarch_init): Added.
3543 (m68k_dump_tdep): Added.
3544
170911c7
DJ
35452002-06-19 Daniel Jacobowitz <drow@mvista.com>
3546
3547 * ada-lang.c (fill_in_ada_prototype): Update comment.
3548
2e4ebe70
DJ
35492002-06-19 Daniel Jacobowitz <drow@mvista.com>
3550
3551 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3552 MIPS_ABI_LAST.
3553 (mips_abi_string, mips_abi_strings): New.
3554 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3555 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3556 tdep->mips_abi_string. Honor mips_abi_string. Default to
3557 O32 if no ABI is found.
3558 (mips_dump_tdep): Use mips_abi_strings.
3559 (mips_abi_update): New function.
3560 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3561 ``set mips abi'' and ``show mips abi''. Check the size of
3562 mips_abi_strings.
3563
16775908
AC
35642002-06-19 Andrew Cagney <cagney@redhat.com>
3565
3566 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3567 constant.
3568
5051bfa4 35692002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3570
5051bfa4
JB
3571 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3572 current frame using only the first stack size adjustment. All
3573 subsequent size adjustments are not considered to be part of
3574 the "static" part of the current frame.
3575 Compute the address of the saved registers relative to the
3576 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3577 in use in this frame.
3578
56468235
DH
35792002-06-18 Don Howard <dhoward@redhat.com>
3580
3581 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3582 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3583 suggesting this solution.
3584
0b624158
AC
35852002-06-18 Andrew Cagney <ac131313@redhat.com>
3586
3587 * config/romp/xm-rtbsd.h: Delete file.
3588 * config/romp/rtbsd.mh: Delete file.
3589
221ea385
KS
35902002-06-18 Keith Seitz <keiths@redhat.com>
3591
3592 * breakpoint.c (condition_command): Post breakpoint_modify
3593 when a condition is added to an existing breakpoint.
3594 (commands_command): Likewise for commands.
3595 (set_ignore_count): Likewise for ignore counts.
3596 If no tty, do not simply return, still need to send event
3597 notification.
3598 (ignore_command): Only print a newline if the command came
3599 from a tty.
3600 Don't call breakpoints_changed, since this is now properly
3601 handled by set_ignore_count.
3602
5402eed1
AC
36032002-06-18 Andrew Cagney <cagney@redhat.com>
3604
3605 * MAINTAINERS: Note that cris-elf target can be compiled with
3606 -Werror.
3607 * cris-tdep.c (cris_register_name): Make return type constant.
3608 (cris_breakpoint_from_pc): Ditto.
3609
cc22880b
ML
36102002-06-18 Michal Ludvig <mludvig@suse.cz>
3611
3612 * frame.h (struct frame_info): Change type of context to
3613 'struct context'.
3614
fa88f677
AC
36152002-06-17 Andrew Cagney <cagney@redhat.com>
3616
3617 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3618 pointer.
3619 * gdbarch.h, gdbarch.c: Regenerate.
3620 * config/mips/tm-mips.h (mips_register_name): Update.
3621 * i386-tdep.h (i386_register_name): Update.
3622 * mips-tdep.c (mips_register_name): Update
3623 * alpha-tdep.c (alpha_register_name): Update.
3624 * arch-utils.c (legacy_register_name): Update.
3625 * arch-utils.h (legacy_register_name): Update.
3626 * avr-tdep.c (avr_register_name): Update.
3627 * ia64-tdep.c (ia64_register_name): Update.
3628 * i386-tdep.c (i386_register_name): Update.
3629 * sparc-tdep.c (sparc32_register_name): Update.
3630 (sparc64_register_name): Update.
3631 (sparclite_register_name): Update.
3632 (sparclet_register_name): Update.
3633 * sh-tdep.c (sh_generic_register_name): Update.
3634 (sh_sh_register_name): Update.
3635 (sh_sh3_register_name): Update.
3636 (sh_sh3e_register_name): Update.
3637 (sh_sh_dsp_register_name): Update.
3638 (sh_sh3_dsp_register_name): Update.
3639 (sh_sh4_register_name): Update.
3640 (sh_sh64_register_name): Update.
3641 * s390-tdep.c (s390_register_name): Update.
3642 * rs6000-tdep.c (rs6000_register_name): Update.
3643 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3644 (ns32k_register_name_32382): Update.
3645 * d10v-tdep.c (d10v_ts2_register_name): Update.
3646 (d10v_ts3_register_name): Update.
3647 * xstormy16-tdep.c (xstormy16_register_name): Update.
3648 * vax-tdep.c (vax_register_name): Update.
3649 * v850-tdep.c (v850_register_name): Update.
3650 * m68hc11-tdep.c (m68hc11_register_name): Update.
3651 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3652 (am33_register_name): Update.
3653
ea1e7ef6
GS
36542002-06-17 Grace Sainsbury <graces@redhat.com>
3655
3656 * m68k-tdep.c: Reindented.
3657
9b02dd1b
AC
36582002-06-17 Andrew Cagney <ac131313@redhat.com>
3659
3660 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3661 list of predefined types.
3662
8758dec1
MK
36632002-06-16 Mark Kettenis <kettenis@gnu.org>
3664
b6197528
MK
3665 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3666 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3667 REGISTER_CONVERT_TO_RAW): Remove defines.
3668 (i386_register_virtual_type, i386_register_convertible,
3669 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3670 Remove prototypes.
3671 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3672 macros mentioned above.
3673
82b47e62
MK
3674 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3675 (i386lynx_saved_pc_after_call): Remove prototype.
3676 * i386ly-tdep.c: Include "i386-tdep.h".
3677 (i386lynx_saved_pc_after_call): Make static. Use
3678 read_memory_nobpt instead of read_memory. Use
3679 read_memory_unsigned_integer instead of read_memory_integer.
3680 (i386lynx_init_abi): New function.
3681 (i386lynx_coff_osabi_sniffer): New function.
3682 (_initialize_i386bsd_tdep): New function.
3683
8758dec1
MK
3684 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3685 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3686 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3687 (i386_fix_call_dummy): Remove prototype.
3688 * i386-tdep.c (i386_call_dummy_words): New variable.
3689 (i386_gdbarch_init): Adjust for removal of the
3690 macros mentioned above.
3691
e9e68a56
AC
36922002-06-15 Andrew Cagney <ac131313@redhat.com>
3693
3694 * command.h (add_setshow_auto_boolean_cmd): Replace
3695 add_set_auto_boolean_cmd.
3696 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3697 add_set_auto_boolean_cmd.
3698 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3699 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3700 mask-address'' command.
3701 (show_mask_address): Add cmd parameter.
3702 * remote.c (add_packet_config_cmd): Update. Change type of
3703 set_func and show_func to cmd_sfunc_ftype.
3704 (_initialize_remote): Update `set remote Z-packet'
3705 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3706 (show_remote_protocol_e_packet_cmd): Ditto.
3707 (show_remote_protocol_E_packet_cmd): Ditto.
3708 (show_remote_protocol_P_packet_cmd): Ditto.
3709 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3710 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3711 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3712 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3713 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3714 (show_remote_protocol_Z_packet_cmd): Ditto.
3715 (show_remote_protocol_binary_download_cmd): Ditto.
3716 (show_remote_cmd): Pass NULL to all of above.
3717
fc08ec52
MK
37182002-06-15 Mark Kettenis <kettenis@gnu.org>
3719
3720 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3721 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3722 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3723 POP_FRAME): Remove defines.
3724 (i386_push_arguments, i386_store_struct_return,
3725 i386_extract_return_value, i386_store_return_value,
3726 i386_extract_struct_value_address, i386_push_dummy_frame,
3727 i386_pop_frame): Renove prototypes.
3728 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3729 macros mentioned above.
3730
e707bbc2
AC
37312002-06-15 Andrew Cagney <ac131313@redhat.com>
3732
3733 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3734 add_set_boolean_cmd.
3735 (add_setshow_cmd): New function.
3736 * command.h (add_setshow_boolean_cmd): Replace
3737 add_set_boolean_cmd.
3738 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3739 and ``set rdiromatzero''.
3740 * maint.c (_initialize_maint_cmds): Update commented out code.
3741 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3742 * target.c (initialize_targets): Update `set
3743 trust-readonly-sections'.
3744 * remote.c (_initialize_remote): Update `set remotebreak'.
3745
42fdc8df
MK
37462002-06-15 Mark Kettenis <kettenis@gnu.org>
3747
93924b6b
MK
3748 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3749 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3750 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3751 fit into multi-arch framework.
3752 (i386_breakpoint_from_pc): New function.
3753 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3754 above.
3755
42fdc8df
MK
3756 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3757 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3758 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3759 (i386_frameless_function_invocation, i386_frame_num_args,
3760 i386_frame_init_saved_regs): Remove prototypes.
3761 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3762 macros mentioned above.
3763
9773a94b
AC
37642002-06-15 Andrew Cagney <ac131313@redhat.com>
3765
3766 * cli/cli-decode.c (set_cmd_cfunc): Update.
3767 (set_cmd_sfunc): Update.
3768 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3769 (set_cmd_sfunc, set_cmd_cfunc): Update.
3770 * cli/cli-decode.h: Update.
3771
6e157172
MK
37722002-06-15 Mark Kettenis <kettenis@gnu.org>
3773
3774 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3775 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3776
7f19b9a2
AC
37772002-06-15 Andrew Cagney <ac131313@redhat.com>
3778
3779 * defs.h (auto_boolean): Declare enum.
3780 * command.h (cmd_auto_boolean): Delete enum.
3781 * mips-tdep.c (mask_address_var): Update.
3782 (mips_mask_address_p): Update.
3783 (show_mask_address): Update.
3784 * remote.c (struct packet_config): Update.
3785 (update_packet_config): Update.
3786 (show_packet_config_cmd): Update.
3787 (packet_ok): Update.
3788 (add_packet_config_cmd): Update.
3789 (_initialize_remote):
3790 * command.h: Update.
3791 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3792 (do_setshow_command): Update.
3793 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3794 * cli/cli-decode.h: Update.
3795
1cf88de5
MK
37962002-06-15 Mark Kettenis <kettenis@gnu.org>
3797
22ba8cf2
MK
3798 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3799 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3800 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3801 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3802 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3803 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3804
762c5349
MK
3805 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3806 list of DJGPP COFF targets.
3807
091198bb
MK
3808 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3809 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3810 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3811 (FP0_REGNUM): Remove define.
3812 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3813 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3814 (i386_register_virtual_size): Remove protoype.
3815 * i386-tdep.c (i386_register_virtual_size): Removed.
3816 (i386_extract_return_value, i386_store_return_value): Use
3817 FP0_REGNUM instead of NUM_FREGS to determine whether the
3818 floating-point registers are available.
3819 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3820 Adjust for removal of macros mentioned above.
3821
38222002-06-15 Mark Kettenis <kettenis@gnu.org>
3823
fcc9bf01
MK
3824 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3825 comments.
3826 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3827 Remove prototypes.
3828 (supply_gregset, fill_gregset): Remove use of register keyword and
3829 remove declaration for regmap. Use I386_NUM_GREGS instead of
3830 NUM_REGS and NUM_FREGS.
3831 (FPREGSET_FSAVE_OFFSET): Remove.
3832 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3833 NUM_FREGS to determine whether the floating-point registers are
3834 available.
3835
65e78234
MK
3836 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3837 gnu_store_registers): Replace usage of NUM_GREGS with
3838 I386_NUM_GREGS.
3839
98df6387
MK
3840 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3841 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3842 usage of NUM_GREGS with I386_NUM_GREGS.
3843
099a9414
MK
3844 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3845
57976e88
MK
3846 * i386bsd-nat.c: Include "i386-tdep.h".
3847 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3848 I386_NUM_GREGS.
3849
b335f4a6
MK
3850 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3851 and associated comment. They no longer make any sense, since we
3852 don't use this file anymore on Linux.
3853
1cf88de5
MK
3854 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3855 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3856 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3857 elements in these arrays.
3858 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3859 MAX_NUM_REGS.
3860
daa66587
MK
38612002-06-15 Mark Kettenis <kettenis@gnu.org>
3862
3863 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3864 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3865
26e9b323
AC
38662002-06-14 Andrew Cagney <cagney@redhat.com>
3867
3868 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3869 EXTRACT_RETURN_VALUE.
3870 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3871 EXTRACT_STRUCT_VALUE_ADDRESS.
3872 * gdbarch.h, gdbarch.c: Regenerate.
3873
3874 * values.c (value_being_returned): Handle
3875 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3876 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3877
3878 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3879 * arm-tdep.c (arm_gdbarch_init): Update.
3880 * avr-tdep.c (avr_gdbarch_init): Update.
3881 * cris-tdep.c (cris_gdbarch_init): Update.
3882 * d10v-tdep.c (d10v_gdbarch_init): Update.
3883 * ia64-tdep.c (ia64_gdbarch_init): Update.
3884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3885 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3886 * s390-tdep.c (s390_gdbarch_init): Update.
3887 * sh-tdep.c (sh_gdbarch_init): Update.
3888 * s390-tdep.c (s390_gdbarch_init): Update.
3889 * sparc-tdep.c (sparc_gdbarch_init): Update.
3890 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3891 * v850-tdep.c (v850_gdbarch_init): Update.
3892 * vax-tdep.c (vax_gdbarch_init): Update.
3893 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3895
3896 * config/arc/tm-arc.h: Update.
3897 * config/d30v/tm-d30v.h: Update.
3898 * config/fr30/tm-fr30.h: Update.
3899 * config/h8300/tm-h8300.h: Update.
3900 * config/h8500/tm-h8500.h: Update.
3901 * config/i386/tm-i386.h: Update.
3902 * config/i386/tm-ptx.h: Update.
3903 * config/i386/tm-symmetry.h: Update.
3904 * config/i960/tm-i960.h: Update.
3905 * config/m32r/tm-m32r.h: Update.
3906 * config/m68k/tm-delta68.h: Update.
3907 * config/m68k/tm-linux.h: Update.
3908 * config/m68k/tm-m68k.h: Update.
3909 * config/m88k/tm-m88k.h: Update.
3910 * config/mcore/tm-mcore.h: Update.
3911 * config/mips/tm-mips.h: Update.
3912 * config/mn10200/tm-mn10200.h: Update.
3913 * config/pa/tm-hppa.h: Update.
3914 * config/pa/tm-hppa64.h: Update.
3915 * config/sparc/tm-sp64.h: Update.
3916 * config/sparc/tm-sparc.h: Update.
3917 * config/sparc/tm-sparclet.h: Update.
3918 * config/z8k/tm-z8k.h: Update.
3919
5179e78f
AC
39202002-06-14 Andrew Cagney <cagney@redhat.com>
3921
3922 * Makefile.in (i386_linux_tdep_h): Define.
3923 (i386_tdep_h, i387_tdep_h): Define.
3924 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3925 $(i386_tdep_h) and $(i387_tdep_h).
3926 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3927
8201327c
MK
39282002-06-14 Mark Kettenis <kettenis@gnu.org>
3929
edf393ac
MK
3930 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3931 Already covered by the default.
3932
896fb97d
MK
3933 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3934 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3935 (i386_gdbarch_init): Initialize long_double_format and long_double
3936 bit.
3937
8201327c
MK
3938 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3939 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3940 Move these to ...
3941 * config/i386/i386sol2.mh: ... here.
3942 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3943 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3944 (SIGCONTEXT_PC_OFFSET): Remove define.
3945 (IN_SIGTRAMP): Remove define.
3946 * i386-sol2-tdep.c: New file.
3947
3948 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3949 * config/i386/tm-i386nw.h: Removed.
3950
3951 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3952 USE_STRUCT_CONVENTION): Remove defines.
3953 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3954 (get_longjmp_target): Remove prototype.
3955 (IN_SIGTRAMP): Remove define.
3956 (i386bsd_in_sigtramp): Remove prototype.
3957 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3958 function. Update comment accordingly
3959 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3960 (FRAME_SAVED_PC): Remove define.
3961 (i386bsd_frame_saved_pc): Remove prototype.
3962 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3963 GET_LONGJMP_TARGET): Remove defines.
3964 (get_longjmp_target): Remove prototype.
3965 (IN_SIGTRAMP): Remove define.
3966 (i386bsd_in_sigtramp): Remove prototype.
3967 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3968 function. Update comment accordingly
3969 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3970 (FRAME_SAVED_PC): Remove define.
3971 (i386bsd_frame_saved_pc): Remove prototype.
3972 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3973 Remove prototype.
3974 (USE_STRUCT_CONVENTION): Remove prototype.
3975 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3976 declaration.
3977 (_initialize_i386bsd_nat): Revise logic to determine some
3978 constants at compile time when compiling a native GDB. Warn if
3979 things don't match up with what we expect.
3980 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3981 Remove variables.
3982 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3983 to use date stored in `struct gdbarch_tdep'.
3984 (i386bsd_sigcontext_offset): Remove varaible.
3985 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3986 stored in `struct gdbarch_tdep'.
3987 (i386bsd_frame_saved_pc): Make static.
3988 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3989 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3990 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3991 i386fbsd4_sc_pc_offset): New variables.
3992 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3993 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3994 functions.
3995 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3996 functions.
3997 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3998 Modify the value of i386fbsd_sigtramp_start and
3999 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4000 i386fbsd_sigtramp_end.
4001 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4002 function.
4003
4004 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4005 define to i386-linux-tdep.h.
4006 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4007 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4008 defines.
4009 (i386_linux_register_name, i386_linux_register_byte,
4010 i386_linux_register_raw_size): Remove prototypes.
4011 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4012 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4013 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4014 TARGET_WRITE_PC): Remove defines.
4015 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4016 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4017 i386_linux_write_pc): Remove prototypes.
4018 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4019 (get_longjmp_target): Remove prototype.
4020 * i386-linux-tdep.h: New file.
4021 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4022 * i386-linux-tdep.c: Include "i386-tdep.h" and
4023 "i386-linux-tdep.h".
4024 (i386_linux_register_name, i386_linux_register_byte,
4025 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4026 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4027 Make static.
4028 (i386_linux_init_abi): New function.
4029 (_initialize_i386_linux_tdep): New function.
4030
4031 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4032 (i386_saved_pc_after_call): Remove prototype.
4033 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4034 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4035 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4036 (i386_register_name, i386_stab_reg_to_regnum,
4037 i386_dwarf_reg_to_regnum): Remove prototypes.
4038 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4039 SIZEOF_SSE_REGS): Remove defines.
4040 (REGISTER_BYTES): Remove define.
4041 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4042 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4043 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4044 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4045 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4046 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4047 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4048 (get_longjmp_target): Remove prototype.
4049 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4050 (sigtramp_saved_pc): Remove define.
4051 (i386v4_sigtramp_saved_pc): Remove prototype.
4052 * config/i386/tm-go32.h (FRAME_CHAIN,
4053 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4054 (i386go32_frame_saved_pc): Remove prototype.
4055 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4056 (get_longjmp_target): Remove prototype.
4057 * i386-tdep.h: Include "osabi.h".
4058 (enum i386_abi): Removed.
4059 (enum struct_return): New enum.
4060 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4061 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4062 sc_pc_offset members.
4063 (i386_gdbarch_register_os_abi): Remove prototype.
4064 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4065 I386_SSE_NUM_REGS): New defines.
4066 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4067 I386_SSE_SIZEOF_REGS): New defines.
4068 (i386_register_name, i386_register_byte, i386_register_raw_size):
4069 New prototypes.
4070 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4071 (i386bsd_sigtramp_saved_pc): New prototype.
4072 * i386-tdep.c: Don't include "elf-bfd.h".
4073 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4074 i386_frame_chain, i386_saved_pc_after_call): Make static.
4075 (i386_frame_saved_pc): Rewrite to call architecture dependent
4076 function to deal with signal handlers. Make static.
4077 (i386go32_frame_saved_pc): Removed.
4078 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4079 Removed.
4080 (i386_get_longjmp_target): New function.
4081 (default_struct_convention, pcc_struct_convention,
4082 reg_struct_convention, valid_conventions, struct_convention): New
4083 variables.
4084 (i386_use_struct_convention): New function.
4085 (i386v4_sigtramp_saved_pc): Renamed to
4086 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4087 (i386_pc_in_sigtramp): New function.
4088 (i386_abi_names): Removed.
4089 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4090 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4091 Removed.
4092 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4093 i386_gdbarch_register_os_abi): Removed.
4094 (struct i386_abi_handler): Removed.
4095 (i386_abi_handler_list): Removed.
4096 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4097 functions.
4098 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4099 i386_nw_init_abi): New functions.
4100 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4101 Use set_gdbarch_xxx() calls instead of relying on macros for a
4102 number of calls.
4103 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4104 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4105 Register the various architecture variants defined in this file.
4106
ad2f7632
DJ
41072002-06-14 Daniel Jacobowitz <drow@mvista.com>
4108
4109 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4110 (struct main_type): Remove arg_types member. Update comments for
4111 struct field.
4112 (TYPE_ARG_TYPES): Remove.
4113 (TYPE_FN_FIELD_ARGS): Update.
4114 (smash_to_method_type): Update prototype.
4115
4116 * c-typeprint.c (cp_type_print_method_args): Take method type
4117 instead of argument list. Use new argument layout. Simplify.
4118 (c_type_print_args): Use new argument layout. Simplify.
4119 (c_type_print_base): Update call to cp_type_print_method_args.
4120 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4121 argument; use die->type instead. Update call to
4122 smash_to_method_type.
4123 (read_structure_scope): Update call to dwarf2_add_member_fn.
4124 * gdbtypes.c (allocate_stub_method): Update comment.
4125 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4126 Use new argument layout.
4127 (check_stub_method): Use new argument layout. Don't count
4128 void as an argument.
4129 (print_arg_types): Update comments. Use new argument layout.
4130 (recursive_dump_type): Don't print arg_types member.
4131 * hpread.c (hpread_read_struct_type): Use new argument layout.
4132 (fixup_class_method_type): Likewise.
4133 (hpread_type_lookup): Likewise.
4134 * stabsread.c (read_type): Update calls to read_args and
4135 smash_to_method_type.
4136 (read_args): Use new argument layout. Simplify.
4137 * valops.c (typecmp): Use new argument layout. Update parameters
4138 and comments. Simplify.
4139 (hand_function_call): Use new argument layout.
4140 (search_struct_method): Update call to typecmp.
4141 (find_overload_match): Use new argument layout.
4142
6da02953
DJ
41432002-06-13 Daniel Jacobowitz <drow@mvista.com>
4144
4145 * NEWS: Mention multithreaded debug support for gdbserver.
4146
519b2366
DJ
41472002-06-13 Daniel Jacobowitz <drow@mvista.com>
4148
4149 * MAINTAINERS: Mention NEWS.
4150
6c0d6680
DJ
41512002-06-13 Daniel Jacobowitz <drow@mvista.com>
4152
4153 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4154 (struct mips_objfile_private, compare_pdr_entries): New.
4155 (non_heuristic_proc_desc): Read the ".pdr" section if it
4156 is present.
4157
6529d2dd
AC
41582002-06-12 Andrew Cagney <ac131313@redhat.com>
4159
4160 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4161 (arm_debug): New static variable.
4162 (_initialize_arm_tdep): Add ``set debug arm'' command.
4163
26216b98
AC
41642002-06-12 Andrew Cagney <ac131313@redhat.com>
4165
4166 * Makefile.in (sim_arm_h): Define.
4167 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4168 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4169 (arm_register_sim_regno): New function, map an internal REGNUM
4170 onto a simulator register number.
4171 (arm_gdbarch_init): Set register_sim_regno.
4172
814b3ba0
AH
41732002-06-09 Aldy Hernandez <aldyh@redhat.com>
4174
4175 * MAINTAINERS: Add self.
4176
475b0867
JB
41772002-06-11 Jim Blandy <jimb@redhat.com>
4178
919d772c
JB
4179 * source.c (source_info): Mention whether the symtab has
4180 information about preprocessor macros.
4181
475b0867
JB
4182 Call the command `info macro', not `show macro'.
4183 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4184 Fix error message.
4185 (_initialize_macrocmd): Register `info_macro_command' in
4186 `infolist', not `showlist'.
4187
9e364162
DJ
41882002-06-11 Daniel Jacobowitz <drow@mvista.com>
4189
4190 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4191 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4192 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4193 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4194 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4195 unconditionally.
4196 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4197 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4198 (_initialize_mips_tdep): Remove dead code.
4199 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4200 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4201 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4202 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4203 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4204 MIPS_LAST_FP_ARG_REGNUM): Remove.
4205
23aa4c72
ML
42062002-06-11 Michal Ludvig <mludvig@suse.cz>
4207
4208 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4209 (unwind_tmp_obstack_free, parse_frame_info)
4210 (update_context, cfi_read_fp, cfi_write_fp)
4211 (cfi_frame_chain, cfi_init_extra_frame_info)
4212 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4213 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4214
70eb15a4
CV
42152002-06-11 Corinna Vinschen <vinschen@redhat.com>
4216
4217 * v850-tdep.c (v850_type_is_scalar): New function.
4218 (v850_use_struct_convention): Match current gcc implementation
4219 as close as possible.
4220 (v850_push_arguments): Fix stack_offset handling. Don't write
4221 struct_addr into register. This is done by v850_store_struct_return.
4222 (v850_extract_return_value): Care for structs.
4223 (v850_store_return_value): Ditto.
4224 (v850_store_struct_return): Actually write address.
4225
482a4d06
ML
42262002-06-11 Michal Ludvig <mludvig@suse.cz>
4227
4228 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4229 without debug information too.
4230
d855c300
AC
42312002-06-10 Andrew Cagney <ac131313@redhat.com>
4232
4233 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4234 Make multi-arch pure.
4235 * gdbarch.h, gdbarch.c: Re-generate.
4236 * arm-tdep.c (arm_print_float_info): Update.
4237 * arch-utils.h (default_print_float_info): Update.
4238 * arch-utils.c (default_print_float_info): Update.
4239 * infcmd.c (float_info): Update call.
4240
dd12a101
AC
42412002-06-10 Andrew Cagney <ac131313@redhat.com>
4242
4243 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4244 the front of the initialize list.
4245
101dcfbe
AC
42462002-06-10 Andrew Cagney <ac131313@redhat.com>
4247
4248 * infrun.c (struct inferior_status): Replace fields
4249 selected_frame_address and selected_level with field
4250 selected_frame_id.
4251 (save_inferior_status): Update. Use get_frame_id.
4252 (struct restore_selected_frame_args): Delete.
4253 (restore_selected_frame): Update. Use frame_find_by_id.
4254 (restore_inferior_status): Update.
4255
4256 * breakpoint.h (struct breakpoint): Change type of
4257 watchpoint_frame to frame_id.
4258 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4259 call to get_current_frame.
4260 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4261 get_current_frame.
4262 (watchpoint_check): Use frame_find_by_id.
4263
4264 * frame.h (record_selected_frame): Delete declaration.
4265 * stack.c (record_selected_frame): Delete function.
4266
4267 * frame.h (struct frame_id): Define.
4268 (get_frame_id): Declare.
4269 (frame_find_by_id): Declare.
4270 * frame.c (frame_find_by_id): New function.
4271 (get_frame_id): New function.
4272
304270b6
AV
42732002-06-10 Andrey Volkov <avolkov@transas.com>
4274
4275 * ser-e7kpc.c: Fix duplicated define and call of
4276 _initialize_ser_e7000pc
4277
2f2cf184
DJ
42782002-06-09 Daniel Jacobowitz <drow@mvista.com>
4279
4280 * signals/signals.c (target_signal_from_host): Fix #ifdef
4281 SIGRTMIN case.
4282 (do_target_signal_to_host): Likewise.
4283
caaa3122
DJ
42842002-06-09 Daniel Jacobowitz <drow@mvista.com>
4285
4286 * mips-tdep.c (mips_find_abi_section): New function.
4287 (mips_gdbarch_init): Call it.
4288
6ac5df3a
MK
42892002-06-09 Mark Kettenis <kettenis@gnu.org>
4290
4291 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4292 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4293 after Andrew's 2002-06-08 gdbarch change.
4294
82ea117a
MK
42952002-06-09 Mark Kettenis <kettenis@gnu.org>
4296
4297 * i386-linux-nat.c (suppy_gregset): Don't supply
4298 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4299 register cache.
4300 (fill_gregset): Don't fetch it under the same circumstances.
4301
3c25f8c7
AC
43022002-06-09 Andrew Cagney <cagney@redhat.com>
4303
4304 * Makefile.in (callback_h): Define.
4305 (remote_sim_h): Update path to remote-sim.h.
4306 (remote-rdp.o): Add $(callback_h).
4307 (remote-sim.o): Use $(callback_h).
4308 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4309 * remote-rdp.c: Include "gdb/callback.h".
4310
1029b7fa
MK
43112002-06-09 Mark Kettenis <kettenis@gnu.org>
4312
4313 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4314 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4315
616675d3
AC
43162002-06-08 Andrew Cagney <ac131313@redhat.com>
4317
a3efda28
AC
4318 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4319 * rdi-share/serpardr.c: Ditto.
4320 * rdi-share/unixcomm.c: Ditto.
4321 * rdi-share/serdrv.c: Ditto.
4322 * rdi-share/hostchan.h: Ditto.
4323 * rdi-share/hostchan.c: Ditto.
4324 * rdi-share/host.h: Ditto.
4325 * rdi-share/devsw.c: Ditto.
4326
c5f10366
AC
4327 * objfiles.h: Change type of obj_private to void pointer.
4328 * pa64solib.c: Update copyright. Don't include "assert.h", use
4329 strcmp instead of STREQ, use LONGEST, do not use PTR
4330 * somsolib.c: Ditto.
4331
616675d3
AC
4332 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4333 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4334 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4335
e4b415d9
AC
43362002-06-08 Andrew Cagney <ac131313@redhat.com>
4337
4338 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4339 (default_get_saved_register): Delete function.
4340 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4341 generic_unwind_get_saved_register.
4342 * gdbarch.h, gdbarch.c: Re-generate.
4343
ca0d0b52
AC
43442002-06-08 Andrew Cagney <ac131313@redhat.com>
4345
4346 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4347 generic_func_frame_chain_valid.
4348 * gdbarch.h, gdbarch.c: Re-generate.
4349 * blockframe.c (generic_func_frame_chain_valid): Only check
4350 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4351 passing FP to PC_IN_CALL_DUMMY.
4352 Fix PR gdb/360.
4353
76860b5f
AC
43542002-06-08 Andrew Cagney <ac131313@redhat.com>
4355
4356 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4357 (register_gdbarch_data): Initialize init_p.
4358 (gdbarch_data): Initialize data pointer using the init function.
4359 (init_gdbarch_data): Delete function.
4360 (gdbarch_update_p): Update.
4361 (initialize_non_multiarch): Update.
4362 (struct gdbarch): Add field initialized_p.
4363 * gdbarch.h, gdbarch.c: Re-generate.
4364
8dda9770
ML
43652002-06-07 Michal Ludvig <mludvig@suse.cz>
4366
4367 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4368 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4369 better do the things actually here.
4370 * x86-64-tdep.c (x86_64_register_name2nr): New.
4371 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4372 (x86_64_gdbarch_init): Respect the above change.
4373 * x86-64-tdep.h (x86_64_register_name2nr)
4374 (x86_64_register_nr2name): Add prototypes.
4375 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4376
3d79a47c
MS
43772002-06-06 Michael Snyder <msnyder@redhat.com>
4378
7bd91a28
MS
4379 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4380 Delete extra braces and re-indent.
4381 (d10v_store_return_value): Char return values
3d79a47c
MS
4382 must be shifted over by one byte in R0.
4383 (d10v_extract_return_value): Delete extra braces, re-indent.
4384
095a4c96
EZ
43852002-06-06 Elena Zannoni <ezannoni@redhat.com>
4386
4387 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4388 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4389 (d10v_integer_to_address): Rewrite.
4390 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4391 the d10v specific functions which take care of converting to the
4392 correct space.
4393
e8a77ca4
EZ
43942002-06-06 Elena Zannoni <ezannoni@redhat.com>
4395
4396 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4397 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4398
4f2e4a4f
AC
43992002-06-02 Andrew Cagney <ac131313@redhat.com>
4400
4401 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4402 includes.
4403 * config/tm-linux.h: Ditto.
4404 * config/alpha/tm-alphalinux.h: Ditto.
4405 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4406 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4407 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4408 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4409 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4410 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4411 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4412 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4413 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4414 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4415 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4416 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4417 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4418 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4419 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4420 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4421 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4422 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4423 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4424 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4425 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4426 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4427 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4428 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4429 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4430 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4431 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4432 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4433 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4434 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4435 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4436 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4437 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4438 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4439 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4440 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4441 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4442
ae2ab2ce
AS
44432002-05-04 Aidan Skinner <aidan@velvet.net>
4444
4445 * ada-exp.tab.c: New file
4446 * ada-exp.y: New file
4447 * ada-lang.c: New file
4448 * ada-lang.h: New file
4449 * ada-lex.c: New file
4450 * ada-lex.l: New file
4451 * ada-tasks.c: New file
4452 * ada-typeprint.c: New file
4453 * ada-valprint.c: New file
4454
0ddd0135
JT
44552002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4456
4457 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4458 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4459
750fbacc
JT
44602002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4461
4462 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4463 insetead of ppc-linux-tdep.o.
4464 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4465 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4466
df94e18a
AC
44672002-06-02 Andrew Cagney <ac131313@redhat.com>
4468
4469 2002-05-07 Christian Groessler <chris@groessler.org>
4470 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4471 bit register contents for little endian hosts.
4472
1a38ab75
AC
44732002-06-01 Andrew Cagney <ac131313@redhat.com>
4474
4475 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4476 any maintainer.
4477
8b1632ac
AC
44782002-06-01 Andrew Cagney <ac131313@redhat.com>
4479
4480 * gdbarch.h: Regenerate.
4481
627054c8
AC
44822002-06-01 Andrew Cagney <ac131313@redhat.com>
4483
4484 * MAINTAINERS: Add everyone to write-after-approval list.
4485
4f460812
AC
44862002-06-01 Andrew Cagney <ac131313@redhat.com>
4487
4488 * stack.c (frame_info): Use frame_register_unwind instead of
4489 saved_regs. Mention when the SP is on the stack or in a register.
4490
4491 * frame.h (frame_register_unwind_ftype): Define. Document.
4492 (struct frame_info): Add field register_unwind and
4493 register_unwind_cache.
4494 (frame_register_unwind): Declare.
4495 (generic_unwind_get_saved_register): Declare.
4496
4497 * frame.c (frame_register_unwind): New function.
4498 (generic_unwind_get_saved_register): New function.
4499
4500 * blockframe.c (generic_call_dummy_register_unwind): New function.
4501 (frame_saved_regs_register_unwind): New function.
4502 (set_unwind_by_pc): New function.
4503 (create_new_frame): New function.
4504 (get_prev_frame): New function.
4505
de888f76
AC
45062002-05-30 Andrew Cagney <ac131313@redhat.com>
4507
4508 * a29k-share/: Delete directory.
4509 * remote-vx29k.c: Delete file.
4510
2f2c3626
JT
45112002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4512
4513 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4514 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4515
9ce5c36a
JT
45162002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4517
4518 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4519 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4520 (sparc64nbsd-nat.o)
4521 (sparcnbsd-nat.o)
4522 (sparcnbsd-tdep.o): New dependency lists.
4523 * NEWS: Note new UltraSPARC NetBSD native configuration.
4524 * configure.host (sparc64-*-netbsd*): New host.
4525 * configure.tgt (sparc-*-netbsdelf*)
4526 (sparc-*-netbsd*): Set gdb_target to nbsd.
4527 (sparc64-*-netbsd*): New target.
4528 * sparc64nbsd-nat.c: New file.
4529 * sparcnbsd-nat.c: New file.
4530 * sparcnbsd-tdep.c: New file.
4531 * sparcnbsd-tdep.h: New file.
4532 * config/sparc/nbsd.mt: New file.
4533 * config/sparc/nbsd64.mh: New file.
4534 * config/sparc/nbsd64.mt: New file.
4535 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4536 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4537 (HOST_IPC): Remove.
4538 * config/sparc/nbsdaout.mt: Remove.
4539 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4540 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4541 (HOST_IPC): Remove.
4542 * config/sparc/nbsdelf.mt: Remove.
4543 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4544 sparc-nat.c compatiblity defines.
4545 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4546 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4547 * config/sparc/tm-nbsd64.h: New file.
4548 * config/sparc/tm-nbsdaout.h: Remove.
4549 * config/sparc/xm-nbsd.h: Remove.
4550
ef3cf062
JT
45512002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4552
4553 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4554 * sparc-tdep.c: Include osabi.h.
4555 (gdbarch_tdep): Add osabi member.
4556 (_initialize_sparc_tdep): Use gdbarch_register.
4557 (sparc_gdbarch_init): Use generic OS ABI framework.
4558 (sparc_dump_tdep): New function.
4559
ee8ff470
KB
45602002-05-30 Kevin Buettner <kevinb@redhat.com>
4561
4562 * corefile.c (do_captured_read_memory_integer): Return non-zero
4563 result.
4564 (safe_read_memory_integer): Copy result of memory read when
4565 status is non-zero. Also, add comments.
4566
7b112f9c
JT
45672002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4568
4569 * Makefile.in (ppc_tdep_h): Define.
4570 (ppc-linux-nat.o)
4571 (ppc-linux-tdep.o)
4572 (rs6000-tdep.o): Use $(ppc_tdep_h).
4573 (ppc-sysv-tdep.o)
4574 (ppcnbsd-nat.o)
4575 (ppcnbsd-tdep.o): New dependency lists.
4576 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4577 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4578 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4579 (ppc_sysv_abi_broken_use_struct_convention)
4580 (ppc_sysv_abi_use_struct_convention)
4581 (ppc_sysv_abi_push_arguments): Move to...
4582 * ppc-sysv-tdep.c: ...here.
4583 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4584 * rs6000-tdep.c (process_note_abi_tag_sections)
4585 (get_elfosabi): Remove.
4586 (rs6000_gdbarch_init): Use generic OS ABI framework.
4587 (rs6000_dump_tdep): New function.
4588 (_initialize_rs6000_tdep): Use gdbarch_register.
4589 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4590 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4591 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4592 of ppc-linux-tdep.o.
4593 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4594 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4595 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4596 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4597 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4598 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4599
480dd42a
JB
46002002-05-29 Jim Blandy <jimb@redhat.com>
4601
4602 * macroscope.c (default_macro_scope): Put `void' in empty argument
4603 list.
4604
4182591f
AC
46052002-05-29 Andrew Cagney <ac131313@redhat.com>
4606
4607 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4608 * arch-utils.c: Include "sim-regno.h".
4609 * gdbarch.sh: Don't include "sim-regno.h".
4610 * gdbarch.h, gdbarch.c: Regenerate.
4611 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4612 here.
4613 * arch-utils.h (legacy_register_sim_regno): To here.
4614 * remote-sim.c (legacy_register_sim_regno): Move function from
4615 here.
4616 * arch-utils.c (legacy_register_sim_regno): To here.
4617
8238d0bf
AC
46182002-05-28 Andrew Cagney <ac131313@redhat.com>
4619
4620 * sim-regno.h: New file.
4621 * Makefile.in (sim_regno_h): Define.
4622 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4623 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4624 (legacy_register_sim_regno): New function.
4625 (one2one_register_sim_regno): New function.
4626 (gdbsim_fetch_register): Rewrite.
4627 (gdbsim_store_register): Only store a register when
4628 REGISTER_SIM_REGNO is valid.
4629 * d10v-tdep.c: Include "sim-regno.h".
4630 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4631 (d10v_ts3_register_sim_regno): Ditto.
4632 * gdbarch.sh: Include "sim-regno.h".
4633 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4634 * gdbarch.h, gdbarch.c: Regenerate.
4635 * arch-utils.h (default_register_sim_regno): Delete declaration.
4636 * arch-utils.c (default_register_sim_regno): Delete function.
4637
485721b1
JT
46382002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4639
4640 * ppcnbsd-nat.c: Rewrite.
4641 * ppcnbsd-tdep.c: New file.
4642 * ppcnbsd-tdep.h: New file.
4643 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4644 solib.o, and solib-svr4.o.
4645 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4646 nbsd-tdep.o, and corelow.o.
4647
697f244d
AC
46482002-05-28 Andrew Cagney <ac131313@redhat.com>
4649
4650 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4651 `tr' and `sed'. Mention that `broken' targets are not expected to
4652 build.
4653
f08caad1 46542002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4655
4656 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4657 Let PC point right after the prologue before looking up symbols.
4658
3139facc
MH
46592002-05-27 Martin M. Hunt <hunt@redhat.com>
4660
4661 * i386-tdep.c (i386_register_virtual_type): Return
4662 builtin_type_vec128i for SSE registers.
4663
4664 * gdbtypes.h (builtin_type_vec128i): Declare.
4665
4666 * gdbtypes.c (build_builtin_type_vec128i): New function.
4667 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4668 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4669 (build_gdbtypes): Initialize new builtin vector types.
4670 (_initialize_gdbtypes): Register new vector types with gdbarch.
4671
6e3ba3b8
JT
46722002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4673
4674 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4675 since it has been multi-arch'd.
4676 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4677 Move Alpha and VAX multi-arch news entries to same section
4678 as other multi-arch news.
4679
93d5585d
JT
46802002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4681
4682 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4683 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4684 static. Rename some register numbers to put them in ns32k-tdep
4685 private namespace.
4686 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4687 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4688 functions.
4689 (_initialize_ns32k_tdep): Use gdbarch_register.
4690 * ns32k-tdep.h: New file.
4691 * ns32knbsd-tdep.c: New file.
4692 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4693 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4694 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4695 REGISTER_BYTES, REGISTER_BYTE): Remove.
4696 * config/ns32k/tm-ns32k.h: New file.
4697 * config/ns32k/tm-umax.h: Remove.
4698
efb2c70e
JT
46992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4700
4701 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4702 ns32k_store_struct_return, ns32k_extract_return_value,
4703 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4704 functions.
4705 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4706 ns32k_saved_pc_after_call.
4707 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4708 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4709 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4710 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4711 ns32k_extract_struct_value_address.
4712
7bcc927b
JT
47132002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4714
4715 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4716 ns32k_fix_call_dummy): New.
4717 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4718 ns32k_call_dummy_words.
4719 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4720 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4721 CALL_DUMMY_NARGS): Remove.
4722 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4723
78f9d765
JT
47242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4725
4726 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4727 ns32k_frame_saved_pc, ns32k_frame_args_address,
4728 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4729 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4730 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4731 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4732 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4733 (BREAKPOINT): Remove..
4734 (FRAME_CHAIN): Define as ns32k_frame_chain.
4735 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4736 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4737 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4738 (FRAME_FIND_SAVED_REGS): Remove.
4739 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4740 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4741 (POP_FRAME): Define as ns32k_pop_frame.
4742
f2c762e0
JT
47432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4744
4745 * ns32k-tdep.c (ns32k_register_byte_32082,
4746 ns32k_register_byte_32382, ns32k_register_raw_size,
4747 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4748 functions.
4749 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4750 ns32k_register_byte_32382.
4751 * config/ns32k/tm-umax.h: Update copyright years.
4752 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4753 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4754 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4755 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4756 (ns32k_get_enter_addr): Fix prototype.
4757
af137673
JT
47582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4759
4760 * ns32k-tdep.c: Update copyright years.
4761 (ns32k_register_name_32082): New function.
4762 (ns32k_register_name_32382): Ditto.
4763 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4764 (REGISTER_NAME): Define as ns32k_register_name_32382.
4765 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4766 (REGISTER_NAME): Define as ns32k_register_name_32082.
4767
a8bc7b56
JB
47682002-05-24 Jim Blandy <jimb@redhat.com>
4769
4770 * dwarf2read.c (free_line_header): Use xfree, not free.
4771
83a45910
JT
47722002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4773
4774 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4775 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4776
0db71247
AC
47772002-05-23 Andrew Cagney <ac131313@redhat.com>
4778
4779 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4780
b9e5e4dd
AC
47812002-05-23 Andrew Cagney <ac131313@redhat.com>
4782
4783 From Ross Alexander at NEC Europe:
4784 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4785
de530e84
MS
47862002-05-23 Michael Snyder <msnyder@redhat.com>
4787
4788 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4789 for input, rather than parse_and_eval_address.
4790
b91b96f4
AC
47912002-05-23 Andrew Cagney <ac131313@redhat.com>
4792
4793 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4794 * Makefile.in (sim_d10v_h): Update definition.
4795
8b279e7a
AC
47962002-05-24 Andrew Cagney <cagney@redhat.com>
4797
4798 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4799 change `2002-05-22 Michael Snyder' below.
4800 (d10v_push_arguments): Ditto.
4801 (d10v_extract_return_value): Ditto.
4802
0a3d0425
JB
48032002-05-23 Jim Blandy <jimb@redhat.com>
4804
4805 * macrotab.c (check_for_redefinition): Don't complain if the new
4806 definition is the same as the previous one. Take more arguments
4807 to allow the comparison.
4808 (macro_define_object, macro_define_function): Pass more arguments
4809 to check_for_redefinition.
4810
78eac43e
MS
48112002-05-22 Michael Snyder <msnyder@redhat.com>
4812
4813 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4814 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4815 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4816 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4817 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4818 Add a temp variable to save a call (and a memory read).
4819 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4820 if possible (so that PC_IN_CALL_DUMMY will work).
4821
9bc1edb8
CV
48222002-05-22 Corinna Vinschen <vinschen@redhat.com>
4823
4824 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4825
005ef3d2
ML
48262002-05-22 Michal Ludvig <mludvig@suse.cz>
4827
4828 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4829 fde->cie_ptr.
4830 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4831 (dwarf2_build_frame_info): Add offset to fde->initial_location
4832 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4833 (execute_stack_op): Change type of 'result' from ULONGEST to
4834 CORE_ADDR.
005ef3d2 4835
fcf4f891
JT
48362002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4837
4838 * config/alpha/tm-nbsd.h: Include solib.h.
4839
cfef91e4
JT
48402002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4841
4842 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4843 assumptions about the host's byte order.
4844
9964235a
JT
48452002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4846
4847 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4848 to dependency list.
4849 * alphanbsd-tdep.c: Include solib-svr4.h.
4850 * shnbsd-tdep.c: Ditto.
4851
9eeef8ef
JT
48522002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4853
4854 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4855 nbsd-tdep.h to dependency list.
4856 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4857 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4858 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4859 nbsdaout.mh and nbsdelf.mh consistently.
4860 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4861 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4862 nbsdaout.mt and nbsdelf.mh consistently.
4863 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4864 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4865 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4866 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4867 a.out shared library stuff from here...
4868 * config/nm-nbsdaout.h: ...to here.
4869 * config/tm-nbsd.h: Remove.
4870 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4871 * config/arm/nbsd.mh: Remove.
4872 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4873 nbsd-tdep.o.
4874 * config/arm/nbsdaout.mh: New file.
4875 * config/arm/nbsdelf.mh: New file.
4876 * config/arm/nm-nbsdaout.h: New file.
4877 * config/i386/nbsd.mh: Remove.
4878 * config/i386/nbsd.mt: Remove.
4879 * config/i386/nbsdaout.mh: New file.
4880 * config/i386/nbsdaout.mt: New file.
4881 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4882 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4883 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4884 i386_register_u_addr): Remove.
4885 * config/i386/nm-nbsdaout.h: New file.
4886 * config/i386/nm-nbsdelf.h: Remove.
4887 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4888 (USE_STRUCT_CONVENTION): Remove.
4889 * config/i386/tm-nbsdaout.h: New file.
4890 * config/i386/tm-nbsdelf.h: Remove.
4891 * config/m68k/nbsd.mh: Remove.
4892 * config/m68k/nbsd.mt: Remove.
4893 * config/m68k/nbsdaout.mh: New file.
4894 * config/m68k/nbsdaout.mt: New file.
4895 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4896 * config/m68k/nm-nbsdaout.h: New file.
4897 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4898 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4899 * config/ns32k/nbsd.mh: Remove.
4900 * config/ns32k/nbsd.mt: Remove.
4901 * config/ns32k/nbsdaout.mh: New file.
4902 * config/ns32k/nbsdaout.mt: New file.
4903 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4904 * config/ns32k/nm-nbsdaout.h: New file.
4905 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4906 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4907 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4908 (SVR4_SHARED_LIBS): Remove.
4909 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4910 * config/sparc/nbsd.mh: Remove.
4911 * config/sparc/nbsd.mt: Remove.
4912 * config/sparc/nbsdaout.mh: New file.
4913 * config/sparc/nbsdaout.mt: New file.
4914 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4915 * config/sparc/nbsdelf.mt: New file.
4916 * config/sparc/nm-nbsdaout.h: New file.
4917 * config/sparc/nm-nbsdelf.h: Remove.
4918 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4919 * config/sparc/tm-nbsdaout.h: New file.
4920
257ce470
JT
49212002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4922
4923 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4924 mipsnbsd-tdep.c
4925 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4926
76a6d5fe
JT
49272002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4928
4929 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4930 shnbsd-nat.c.
4931 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4932
45888261
JT
49332002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4934
4935 * NEWS: Note new MIPS NetBSD native configuration.
4936 * configure.host (mips*-*-netbsd*): New host.
4937 * configure.tgt (mips*-*-netbsd*): New target.
4938 * mipsnbsd-nat.c: New file.
4939 * mipsnbsd-tdep.c: New file.
4940 * mipsnbsd-tdep.h: New file.
4941 * config/mips/nbsd.mh: New file.
4942 * config/mips/nbsd.mt: New file.
4943 * config/mips/nm-nbsd.h: New file.
4944 * config/mips/tm-nbsd.h: New file.
4945
70f80edf
JT
49462002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4947
4948 * Makefile.in (SFILES): Add osabi.c.
4949 (COMMON_OBS): Add osabi.o.
4950 (osabi.o): New dependency list.
4951 * osabi.c: New file.
4952 * osabi.h: New file.
4953 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4954
4955 * Makefile.in (alpha_tdep_h): Define and use instead of
4956 alpha-tdep.h.
4957 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4958 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4959 Remove.
4960 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4961 * alpha-tdep.h: Include osabi.h.
4962 (alpha_abi): Remove.
4963 (gdbarch_tdep): Use generic OS ABI framework.
4964 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4965 gdbarch_register_osabi.
4966 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4967 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4968 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4969
4970 * Makefile.in (sh_tdep_h): Add osabi.h.
4971 * sh-tdep.h (sh_osabi): Remove.
4972 (gdbarch_tdep): Use generic OS ABI framework.
4973 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4974 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4975 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4976 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4977
4978 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4979 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4980 gdbarch_register_osabi.
4981 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4982 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4983 (get_elfosabi): Rename to...
4984 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4985 ABI framework support routines.
4986 (arm_gdbarch_init): Use generic OS ABI framework.
4987 (arm_dump_tdep): Likewise.
4988 (_initialize_arm_tdep): Likewise.
4989 * arm-tdep.h: Include osabi.h.
4990 (arm_abi): Remove.
4991 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4992 osabi member.
4993 (arm_gdbarch_register_os_abi): Remove prototype.
4994 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4995 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4996
4997 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4998 * mips-tdep.c: Include osabi.h.
4999 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5000 OS ABI framework.
5001
d194345b
KH
50022002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5003
5004 * h8300-tdep.c: Fix formatting.
5005
70c6b0d1
EZ
50062002-05-20 Elena Zannoni <ezannoni@redhat.com>
5007
5008 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5009 printing vector registers.
5010
165b8e33
AC
50112002-05-19 Andrew Cagney <ac131313@redhat.com>
5012
5013 From Fernando Nasser:
5014 * remote.c (remote_async_open_1): Re-throw the exception when the
5015 connection fails.
5016 (remote_cisco_open): Ditto.
5017 (remote_open_1): Ditto.
5018
36918e70
AC
50192002-05-19 Andrew Cagney <ac131313@redhat.com>
5020
5021 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5022 (remote_start_remote): Add uiout parameter. Pass through to
5023 remote_start_remote_dummy.
5024 (remote_open_1): Use catch_exception instead of catch_errors.
5025 (remote_async_open_1): Ditto.
5026 (remote_cisco_open): Ditto.
5027
ae44c0c4
AC
50282002-05-19 Andrew Cagney <ac131313@redhat.com>
5029
5030 * remote.c (remote_start_remote): Replace PTR with void pointer.
5031 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5032 static.
5033
8efe637d
AC
50342002-05-18 Andrew Cagney <ac131313@redhat.com>
5035
5036 * gdb_indent.sh: Allow the script to be run in the sim directory.
5037
2f1b5984
MK
50382002-05-18 Mark Kettenis <kettenis@gnu.org>
5039
f0f625e2
MK
5040 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5041 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5042
2f1b5984
MK
5043 * corelow.c (core_open): Only call set_gdbarch_from_file if
5044 exec_bfd is NULL.
5045
fc974602
AV
50462002-05-17 Andrey Volkov <avolkov@transas.com>
5047
5048 * h8300-tdep.c: Add support of EXR register
5049 * config/h8300/tm-h8300.h: Ditto.
5050
906709f4
AV
50512002-05-17 Andrey Volkov <avolkov@transas.com>
5052
5053 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5054
6e591d68
AV
50552002-05-17 Andrey Volkov <avolkov@transas.com>
5056
5057 * h8300-tdep.c: Change literal regnums to REGNO.
5058
84f0252a
JB
50592002-05-17 Jim Blandy <jimb@redhat.com>
5060
e0e9281e
JB
5061 * NEWS: Note addition of macro support.
5062
84f0252a
JB
5063 Expand preprocessor macros in C expressions.
5064 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5065 (scan_macro_expansion, scanning_macro_expansion,
5066 finished_macro_expansion): New function declarations.
5067 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5068 variable declarations.
5069 * parser-defs.h (expression_context_pc): New declaration.
5070 * parse.c (expression_context_pc): New variable.
5071 (parse_exp_1): Set expression_context_pc, as well as
5072 expression_context_block.
5073 * c-exp.y (yylex): If we're not already reading the result of a
5074 macro expansion, try to macro-expand the next token. When we're
5075 done scanning a macro expansion, switch back to the mainline text.
5076 Commas and `if's in a macro's expansion don't terminate the input.
5077 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5078 (macro_original_text, macro_expanded_text,
5079 expression_macro_lookup_func, expression_macro_lookup_baton): New
5080 variables.
5081 (scan_macro_expansion, scanning_macro_expansion,
5082 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5083 c_preprocess_and_parse): New functions.
5084 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5085 c_preprocess_and_parse, instead of c_parse.
5086 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5087 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5088
1c509ca8
JR
5089Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5090
5091 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5092 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5093 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5094
2250ee0c
CV
50952002-05-17 Corinna Vinschen <vinschen@redhat.com>
5096
5097 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5098
ab3b8126
JT
50992002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5100
5101 * Makefile.in (sh_tdep_h): Define and use.
5102 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5103 register enum): Move to...
5104 * * sh-tdep.h: ...here.
5105 * sh-tdep.c: Include sh-tdep.h.
5106 * sh3-rom.c: Likewise.
5107 * shnbsd-tdep.c: Likewise.
5108
ed9d4749
MS
51092002-05-16 Michael Snyder <msnyder@redhat.com>
5110
5111 * arm-tdep.c: Spelling fix in comment.
5112
2e276125
JB
51132002-05-16 Jim Blandy <jimb@redhat.com>
5114
6821892e
JB
5115 Add commands for manually expanding macros and showing their
5116 definitions.
5117 * macrocmd.c, macroscope.c, macroscope.h: New files.
5118 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5119 (macroscope_h): New variable.
5120 (HFILES_NO_SRCDIR): Add macroscope.h.
5121 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5122 (macroscope.o, macrocmd.o): New rules.
5123
2e276125
JB
5124 Teach the Dwarf 2 reader to read macro information.
5125 * dwarf2read.c: #include "macrotab.h".
5126 (dwarf_macinfo_buffer): New variable.
5127 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5128 dwarf_macinfo_size.
5129 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5130 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5131 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5132 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5133 dwarf2_macro_spaces_in_definition): New complaints.
5134 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5135 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5136 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5137 the partial symbol table.
5138 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5139 from what's recorded in the partial symbol table.
5140 (read_file_scope): If the compilation unit has a
5141 `DW_AT_macro_info' attribute, read its macro information.
5142 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5143
2f53fe6c
DJ
51442002-05-16 Daniel Jacobowitz <drow@mvista.com>
5145
5146 Fix PR gdb/546
5147 * ser-tcp.c: Don't include <netinet/udp.h>.
5148
2be99286
SC
51492002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5150
5151 * MAINTAINERS: Update my email address.
5152
c9af212b 51532002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5154
5155 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5156 include file of the same name.
5157
bf5f1a52
CV
51582002-05-16 Corinna Vinschen <vinschen@redhat.com>
5159
5160 * configure.tgt: Mark v850 as multi-arched.
5161 * config/v850/tm-v850.h: Remove file.
5162 * config/v850/v850.mt: Eliminate TM_FILE.
5163
435e042a
CV
51642002-05-16 Corinna Vinschen <vinschen@redhat.com>
5165
5166 * v850-tdep.c: Full multi-arch.
5167 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5168 Define GDB_MULTI_ARCH to 2.
5169
9819c6c8
PM
51702002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5171
5172 * p-exp.y (current_type): New static variable.
5173 Carries the type of the expression at the position that is parsed.
5174 (push_current_type, pop_current_type): Two new functions. Used
5175 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5176 (search_field): New static variable. Set to one after parsing a point
5177 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5178 (FIELDNAME): New token. After a point only a token belonging to
5179 current_type type definition is allowed.
5180 (all over token rules): reset and change current_type according
5181 to rules.
5182 (exp '[' rule): insert implicit array index field if
5183 exp is a pascal string type.
5184
3a06899a
CV
51852002-05-16 Corinna Vinschen <vinschen@redhat.com>
5186
5187 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5188 frame info. Use frame_info's saved_regs instead of matching member
5189 in extra_frame_info throughout.
5190 (v850_frame_init_saved_regs): New function.
5191 (v850_init_extra_frame_info): Move most functionality into
5192 v850_frame_init_saved_regs().
5193 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5194 (v850_frame_find_saved_regs): Remove declaration.
5195 (FRAME_FIND_SAVED_REGS): Remove definition.
5196 (v850_frame_init_saved_regs): Add declaration.
5197 (FRAME_INIT_SAVED_REGS): Add definition.
5198
6ed14b0e
CV
51992002-05-16 Corinna Vinschen <vinschen@redhat.com>
5200
5201 * v850-tdep.c: Begin multi-arch'ing v850.
5202 (v850_target_architecture_hook): Remove function.
5203 (v850_gdbarch_init): New function. Add code previously in
5204 v850_target_architecture_hook().
5205 (_initialize_v850_tdep): Don't set target_architecture_hook.
5206 Call register_gdbarch_init() instead.
5207
42725910
DJ
52082002-05-16 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5211 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5212 (fixup_class_method_type): Likewise.
5213
99d9066e
JB
52142002-05-15 Jim Blandy <jimb@redhat.com>
5215
5216 Add macro structures to GDB's symbol tables. Nobody puts anything
5217 in them yet.
5218 * symtab.h (struct symtab): New member: `macro_table'.
5219 * buildsym.h (pending_macros): New global variable.
5220 * buildsym.c: #include "macrotab.h".
5221 (buildsym_init): Initialize `pending_macros'.
5222 (end_symtab): If we found macro information while reading a CU's
5223 debugging info, do build a symtab structure for it. Make the
5224 symtab point to the macro information, and clear the
5225 `pending_macros' pointer which held it while we were reading the
5226 debug info.
5227 (really_free_pendings): Free any pending macro table.
5228 * objfiles.h (struct objfile): New member: `macro_cache'.
5229 * objfiles.c (allocate_objfile): Set allocate and free functions
5230 for the macro cache's objstack.
5231 (free_objfile): Empty the macro cache's obstack.
5232 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5233 set new allocate and free functions for it.
5234 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5235 free functions for the macro cache's objstack. (Why is this
5236 function building its own objfile?)
5237 * symmisc.c (print_objfile_statistics): Print statistics on the
5238 macro bcache.
5239 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5240
c899585b
RE
52412002-05-15 Richard Earnshaw <rearnsha@arm.com>
5242
5243 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5244 (REGISTER_U_ADDR): Delete definition.
5245 (arm_register_u_addr): Delete declaration.
5246
a6cdd8c5
RE
52472002-05-15 Richard Earnshaw <rearnsha@arm.com>
5248
5249 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5250 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5251
c97dcfc7
AC
52522002-05-14 Andrew Cagney <ac131313@redhat.com>
5253
5254 * regcache.c (register_valid): Revise comments refering to "Not
5255 available" and "unavailable".
5256 * frame.c (frame_register_read): Ditto.
5257 * findvar.c (value_of_register): Ditto.
5258
93021b7d
AC
52592002-05-15 Andrew Cagney <cagney@redhat.com>
5260
5261 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5262 (remote-sim.o): Update dependencies.
5263 (d10v-tdep.o): Specify dependencies.
5264 (sim_d10v_h): Define.
5265
a86bc61c
JB
52662002-05-14 Jim Blandy <jimb@redhat.com>
5267
5268 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5269 * macrotab.c (macro_lookup_inclusion, find_definition,
5270 new_macro_table): Same.
5271
5272 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5273 not `! strcmp ()'. This is a dubious improvement.
5274 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5275
5276 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5277 although it's not necessary, to avoid a warning.
5278
2fdde8f8
DJ
52792002-05-14 Daniel Jacobowitz <drow@mvista.com>
5280
5281 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5282 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5283 TYPE_INSTANCE_FLAGS.
5284 (struct main_type): New.
5285 (struct type): Move most members to struct main_type. Change
5286 cv_type and as_type to new type_chain member. Add instance_flags.
5287 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5288 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5289 (finish_cv_type): Remove prototype.
5290 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5291 Set TYPE_CHAIN.
5292 (alloc_type_instance): New function.
5293 (smash_type): New function.
5294 (make_pointer_type, make_reference_type, make_function_type)
5295 (smash_to_member_type, smash_to_method_type): Call smash_type.
5296 (make_qualified_type): New function.
5297 (make_type_with_address_space): Call make_qualified_type.
5298 (make_cv_type): Likewise.
5299 (finish_cv_type): Remove unnecessary function.
5300 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5301 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5302 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5303 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5304 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5305 * hpread.c (hpread_read_struct_type): Likewise.
5306 * stabsread.c (read_struct_type): Likewise.
5307
843fedf4
EZ
53082002-05-14 Elena Zannoni <ezannoni@redhat.com>
5309
5310 * configure.tgt: Add a catch all sh* target, for cases like
5311 sh[2,3,4]-elf and sh-hms.
5312
05a6c72c
KS
53132002-05-14 Keith Seitz <keiths@redhat.com>
5314
5315 * event-loop.c (create_file_handler): Don't do anything but
5316 update data when we are given a fd which we are already
5317 monitoring.
5318
5d085aaf
ML
53192002-05-14 Michal Ludvig <mludvig@suse.cz>
5320
5321 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5322 (update_context): Use __func__ in warnings.
5323
9db8d71f
DJ
53242002-05-14 Daniel Jacobowitz <drow@mvista.com>
5325
5326 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5327 and tcp_close to net_open and net_close.
5328 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5329 using UDP if requested. Don't try to disable Nagle on UDP
5330 sockets.
5331 * remote.c (remote_serial_open): New function. Warn about UDP.
5332 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5333
5dbc6baa
EZ
53342002-05-13 Elena Zannoni <ezannoni@redhat.com>
5335
5336 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5337
cc3023f7
EZ
53382002-05-13 Elena Zannoni <ezannoni@redhat.com>
5339
5340 * configure.tgt: Remove sh-hms target.
5341 * MAINTAINERS: Don't list sh-hms as a separate target.
5342
ec2bcbe7
JB
53432002-05-13 Jim Blandy <jimb@redhat.com>
5344
5345 Add first preprocessor macro-expansion files.
5346 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5347 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5348 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5349 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5350 (COMMON_OBS): Add macrotab.o, macroexp.o.
5351 (macroexp.o, macrotab.o): New rules.
5352
6d531722
AC
53532002-05-13 Andrew Cagney <ac131313@redhat.com>
5354
5355 * config/m88k/tm-m88k.h: Update copyright.
5356 (m88k_target_write_pc): Declare
5357 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5358 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5359 (SHIFT_INST_REGS): Update definition.
5360 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5361 using old definition of TARGET_WRITE_PC.
5362 * regcache.c (generic_target_write_pc): Delete code handling
5363 NNPC_REGNUM.
5364 * gdbarch.sh (NNPC_REGNUM): Delete.
5365 * gdbarch.h, gdbarch.c: Regenerate.
5366
3e3f2739
RE
53672002-05-13 Richard Earnshaw <rearnsha@arm.com>
5368
5369 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5370 builtin reg number.
5371
0004e5a2
DJ
53722002-05-13 Daniel Jacobowitz <drow@mvista.com>
5373
5374 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5375 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5376 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5377 access macros.
5378 * c-typeprint.c (cp_type_print_method_args): Likewise.
5379 (c_type_print_args): Likewise.
5380 * d10v-tdep.c (d10v_push_arguments): Likewise.
5381 (d10v_extract_return_value): Likewise.
5382 * expprint.c (print_subexp): Likewise.
5383 * gdbtypes.c (lookup_primitive_typename): Likewise.
5384 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5385 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5386 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5387 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5388 (TYPE_VECTOR): Likewise.
5389 * hpread.c (hpread_read_struct_type)
5390 (fix_static_member_physnames, fixup_class_method_type)
5391 (hpread_type_lookup): Likewise.
5392 * mdebugread.c (parse_symbol, parse_type): Likewise.
5393 * p-lang.c (is_pascal_string_type): Likewise.
5394 * valops.c (hand_function_call): Likewise.
5395 * x86-64-tdep.c (classify_argument): Likewise.
5396
5397 * hpread.c (hpread_read_function_type)
5398 (hpread_read_doc_function_type): Call replace_type.
5399 * dstread.c (create_new_type): Delete.
5400 (decode_dst_structure, process_dst_function): Call alloc_type.
5401 Use type access macros.
5402
dff95cc7
MK
54032002-05-12 Mark Kettenis <kettenis@gnu.org>
5404
5405 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5406 the're not supported by the current architecture.
5407 (i387_fill_fxsave): Likewise.
5408
bbcd32ad
FF
54092002-05-12 Fred Fish <fnf@redhat.com>
5410
5411 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5412 sect_index_xxx members to index the first slot in section_offsets
5413 if all of the section_offsets are zero.
5414
89cf4787
MK
54152002-05-12 Mark Kettenis <kettenis@gnu.org>
5416
5417 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5418 checked in with last change.
5419
1f77ffc5
MK
54202002-05-12 Mark Kettenis <kettenis@gnu.org>
5421
5422 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5423 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5424 config.sub.
5425
89b8b4a9
DJ
54262002-05-12 Daniel Jacobowitz <drow@mvista.com>
5427
5428 * Makefile.in: Update dependencies.
5429
14a5e767
AC
54302002-05-11 Andrew Cagney <ac131313@redhat.com>
5431
5432 * language.c (local_hex_string_custom): Simplify. Do not depend
5433 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5434
5435 * memattr.c (mem_info_command): Replace calls to
5436 longest_local_hex_string and longest_local_hex_string_custom.
5437 * buildsym.c (make_blockvector): Ditto.
5438 * solib.c (info_sharedlibrary_command): Ditto.
5439 * tracepoint.c (tracepoints_info): Ditto.
5440 * symtab.c (print_msymbol_info): Ditto.
5441
5442 * language.c (local_hex_string): Delete.
5443 (local_hex_string_custom): Delete.
5444 (longest_local_hex_string): Rename to local_hex_string.
5445 (longest_local_hex_string_custom): Rename to
5446 local_hex_string_custom.
5447 * language.h (local_hex_string): Change parameter type to LONGEST.
5448 (local_hex_string_custom): Ditto.
5449 (longest_local_hex_string): Delete declaration.
5450 (longest_local_hex_string_custom): Ditto.
5451
5452 * solib.c: Update copyright.
5453 * memattr.c: Update copyright.
5454
13d01224
AC
54552002-05-11 Andrew Cagney <ac131313@redhat.com>
5456
5457 * arch-utils.h (legacy_register_to_value): Declare.
5458 (legacy_value_to_register): Declare.
5459 (legacy_convert_register_p): Declare.
5460 * arch-utils.c (legacy_register_to_value): New function.
5461 (legacy_value_to_register): New function.
5462 (legacy_convert_register_p): New function.
5463
5464 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5465 (VALUE_TO_REGISTER): Define.
5466 (CONVERT_REGISTER_P): Define.
5467 * gdbarch.h, gdbarch.c: Regenerate.
5468
5469 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5470 VALUE_TO_REGISTER.
5471 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5472 CONVERT_REGISTER_P.
5473
4a1970e4
DJ
54742005-05-11 Daniel Jacobowitz <drow@mvista.com>
5475 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5476
5477 * Makefile.in: Update dependencies for valops.c.
5478 * valops.c: Include "gdb_assert.h".
5479 (typecmp): Skip THIS parameter to methods.
5480 (find_method_list): Remove static_memfuncp argument,
5481 update callers. Check for stub methods.
5482 (find_value_oload_method_list): Don't set *static_memfuncp.
5483 (find_overload_match): Don't check for stub methods. Assert
5484 that methods are not stubbed. Handle static methods.
5485 (value_find_oload_method_list): Remove static_memfuncp argument.
5486 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5487 to the argument list for static stub methods.
5488 * value.h (value_find_oload_method_list): Update prototype.
5489
b2e75d78
AC
54902002-05-11 Andrew Cagney <ac131313@redhat.com>
5491
5492 * arch-utils.h (generic_register_size): Declare.
5493 (generic_register_raw_size, generic_register_virtual_size): Delete
5494 declarations.
5495 * arch-utils.c (generic_register_raw_size): Delete.
5496 (generic_register_size): New function.
5497 (generic_register_virtual_size): Delete.
5498
5499 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5500 default generic_register_size.
5501 * gdbarch.h, gdbarch.c: Re-generate.
5502
5503 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5504 register_virtual_size.
5505 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5506 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5507
451fbdda
AC
55082002-05-11 Andrew Cagney <ac131313@redhat.com>
5509
5510 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5511 * gdbarch.h, gdbarch.c: Regenerate.
5512 * gnu-v3-abi.c: Update copyright.
5513 (vtable_address_point_offset): Update.
5514 (gnuv3_rtti_type): Update.
5515 (gnuv3_baseclass_offset): Update.
5516 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5517 (init_fetch_link_map_offsets): Update.
5518 * remote.c (get_remote_state): Update.
5519
6d2f5cea
DJ
55202002-05-11 Daniel Jacobowitz <drow@mvista.com>
5521
5522 * TODO: Remove value_headof/value_from_vtable_info comment.
5523 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5524 * values.c (value_headof, value_from_vtable_info): Delete.
5525 * value.h (value_from_vtable_info): Delete prototype.
5526
d2324da4
AC
55272002-05-11 Andrew Cagney <ac131313@redhat.com>
5528
5529 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5530 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5531 $(gdb_regex_h).
5532 (gdb_assert_h): Define.
5533 (gdb_wait_h): Define.
5534 (gdb_regex_h): Define.
5535
5c717440
DJ
55362002-05-11 Daniel Jacobowitz <drow@mvista.com>
5537
5538 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5539 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5540
6c7861b3
JT
55412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5542
5543 * nbsd-tdep.c: Fix comment.
5544
ea5bc2a6
JT
55452002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5546
5547 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5548 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5549 (nbsd-tdep.o): New dependency list.
5550 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5551 nbsd-tdep.h.
5552 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5553 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5554 * nbsd-tdep.c: New file.
5555 * nbsd-tdep.h: New file.
5556 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5557 nbsd-tdep.h.
5558 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5559 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5560 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5561 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5562
b28da865
JT
55632002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5564
5565 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5566 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5567 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5568 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5569 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5570 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5571
4b8ff1fa
JT
55722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5573
5574 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5575 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5576 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5577 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5578 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5579 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5580 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5581
dfe6eb1f
JT
55822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5583
5584 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5585 fetch_elfcore_registers to...
5586 * i386nbsd-tdep.c: ...here.
5587 (i386nbsd_use_struct_convention): Rename to...
5588 (i386nbsd_aout_use_struct_convention): ...this.
5589 (i386nbsd_supply_reg): New function.
5590 (i386nbsd_fill_reg): New function.
5591 (fetch_core_registers): Use i386nbsd_supply_reg.
5592 (fetch_elfcore_registers): Likewise.
5593 (_initialize_i386nbsd_tdep): New function.
5594 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5595 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5596 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5597 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5598 (i386nbsd_aout_use_struct_convention): ...this.
5599
20cb8cda
JT
56002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5601
5602 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5603 (store_inferior_registers): Use shnbsd_fill_reg.
5604 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5605 sh_nbsd_supply_register): Collapse into...
5606 (shnbsd_supply_reg): ...this.
5607 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5608 (shnbsd_fill_reg): ...this.
5609 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5610 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5611 (fetch_core_registers): Use shnbsd_supply_reg.
5612 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5613 (sh_nbsd_core_fns): Rename to...
5614 (shnbsd_core_fns): ...this.
5615 (sh_nbsd_elfcore_fns): Rename to...
5616 (shnbsd_elfcore_fns): ...this.
5617 (sh_nbsd_init_abi): Rename to...
5618 (shnbsd_init_abi): ...this.
5619 (_initialize_sh_nbsd_tdep): Rename to...
5620 (_initialize_shnbsd_tdep): ...this.
5621 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5622 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5623 sh_nbsd_fill_register): Remove prototypes.
5624 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5625
e750d25e
JT
56262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5627
5628 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5629 (i387-nat.o): Delete dependency list.
5630 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5631 (x86-64-linux-nat.o): Likewise.
5632 * i387-nat.c: Delete file, moving contents to...
5633 * i387-tdep.c: ...here.
5634 * i387-nat.h: Rename...
5635 * i387-tdep.h: ...to this.
5636 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5637 * i386-linux-nat.c: Likewise.
5638 * i386bsd-nat.c: Likewise.
5639 * i386gnu-nat.c: Likewise.
5640 * i386nbsd-nat.c: Likewise.
5641 * i386v4-nat.c: Likewise.
5642 * x86-64-linux-nat.c: Likewise.
5643 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5644 * config/i386/go32.mh (NATDEPFILES): Likewise.
5645 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5646 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5647 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5648 * config/i386/linux.mh (NATDEPFILES): Likewise.
5649 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5650 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5651 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5652 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5653
1aee598a
JT
56542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5655
5656 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5657 (alphanbsd-nat.o): Remove dependency list.
5658 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5659 * alphanbsd-nat.c: Delete. Contents moved to...
5660 * alphanbsd-tdep.c: ...here.
5661 (_initialize_alphanbsd_tdep): Register core functions.
5662 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5663
12bcb0fe
JT
56642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5665
5666 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5667 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5668 (alphanbsd-nat.o): Likewise.
5669 (alphabsd-tdep.o): New dependency list.
5670 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5671 (fill_gregset): Use alphabsd_fill_reg.
5672 (supply_fpregset): Use alphabsd_supply_fpreg.
5673 (fill_fpregset): Use alphabsd_fill_fpreg.
5674 (fetch_inferior_registers): Use struct reg and struct fpreg
5675 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5676 and alphabsd_supply_fpreg.
5677 (store_inferior_registers): Use struct reg and struct fpreg
5678 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5679 and alphabsd_fill_fpreg.
5680 * alphabsd-tdep.c: New file.
5681 * alphabsd-tdep.h: New file.
5682 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5683 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5684 alphabsd_supply_fpreg.
5685 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5686 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5687
361d1df0
EC
56882002-05-11 Eric Christopher <echristo@redhat.com>
5689
5690 * mips-tdep.c (mips_double_register_type): Fix thinko.
5691 (mips_single_register_type): Ditto.
5692 * MAINTAINERS: Add self.
5693
92dd7cee
MK
56942002-05-11 Mark Kettenis <kettenis@gnu.org>
5695
5696 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5697 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5698 right thing on architectures with different endianness and/or
5699 integer sizes.
5700
e27da16d
JT
57012002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5702
5703 From Christian Limpach <chris@Pin.LU>
5704 * configure.in: Change sed expression which comments out
5705 NATDEPFILES to also comment out continuation lines.
5706 * configure: Regenerate.
5707
ddde02bd
EZ
57082002-05-10 Elena Zannoni <ezannoni@redhat.com>
5709
5710 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5711 big patch.
5712
1c922164
EZ
57132002-05-10 Elena Zannoni <ezannoni@redhat.com>
5714
5715 * sh-tdep.c: Include correct file.
5716
283150cd
EZ
57172002-05-10 Elena Zannoni <ezannoni@redhat.com>
5718
5719 New support for sh64-elf (sh5) target.
5720
5721 * configure.tgt: For sh64-elf target, default to sh-elf.
5722
5723 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5724 (struct gdbarch_tdep): Add new fields for new registers and ABI
5725 info.
361d1df0 5726
283150cd
EZ
5727 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5728 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5729 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5730 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5731 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5732 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5733 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5734 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5735 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5736 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5737 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5738 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5739 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5740 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5741 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5742 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5743 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5744 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5745 sign_extend, sh64_nofp_frame_init_saved_regs,
5746 sh64_init_extra_frame_info, sh64_get_saved_register,
5747 sh64_extract_struct_value_address, sh64_pop_frame,
5748 sh64_push_arguments, sh64_extract_return_value,
5749 sh64_store_return_value, sh64_show_media_regs,
5750 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5751 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5752 sh_sh64_register_virtual_type,
5753 sh_sh64_register_convert_to_virtual,
5754 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5755 sh64_register_read, sh64_pseudo_register_write,
5756 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5757 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5758 sh64_do_pseudo_register, sh_compact_do_registers_info,
5759 sh64_do_registers_info, sh_gdbarch_init): New functions.
5760
3117ed25
EZ
57612002-05-10 Elena Zannoni <ezannoni@redhat.com>
5762
5763 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5764
2654e6d4
DJ
57652002-05-10 Daniel Jacobowitz <drow@mvista.com>
5766
5767 * linespec.c (decode_line_1): Check for a double quote after
5768 a filename correctly.
5769
9ab3e532
JB
57702002-05-10 Jim Blandy <jimb@redhat.com>
5771
5772 Properly track the size of the current objfile's .debug_line section.
5773 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5774 (DWARF_LINE_SIZE): New macro.
5775 (dwarf2_build_psymtabs_hard): Record the line section's size in
5776 the partial symbol table.
5777 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5778 symbol table.
5779
126fa72d
PS
57802002-05-10 Petr Sorfa <petrs@caldera.com>
5781
5782 * ia64-tdep.c: Handle breakpoints on L instruction type
5783 in MLX instruction bundle by moving the breakpoint to
5784 the third slot (X instruction type) as L holds only data.
5785
1f077a3e
KB
57862002-05-10 Kevin Buettner <kevinb@redhat.com>
5787
5788 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5789 (process_one_symbol): Complain about discarding local symbols
5790 due to a misplaced N_LBRAC entry.
5791
8120c9d5 57922002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5793
5794 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5795 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5796 decrease the depth we are at, in the case of templates.
361d1df0 5797
67b2c998
DJ
57982002-05-09 Daniel Jacobowitz <drow@mvista.com>
5799
5800 * mips-tdep.c (mips_float_register_type): New function.
5801 (mips_double_register_type): New function.
5802 (mips_print_register): Use them.
5803 (do_fp_register_row): Likewise.
5804
fd326606
DJ
58052002-05-09 Daniel Jacobowitz <drow@mvista.com>
5806
6609d9af 5807 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5808 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5809 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5810
bef35864
MS
58112002-05-09 Michael Snyder <msnyder@redhat.com>
5812
5813 * remote-rdp.c (remote_rdp_can_run): Remove.
5814
c55a3f73
TT
58152002-05-09 Tom Tromey <tromey@redhat.com>
5816
5817 * jv-valprint.c (java_val_print): Handle `char' as a special case
5818 of TYPE_CODE_INT.
5819
b8d5e71d
MS
58202002-05-09 Michael Snyder <msnyder@redhat.com>
5821
5822 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5823 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5824 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5825 str r(0123),[sp,#nn].
361d1df0 5826 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5827 order-independent by placing it in a loop.
5828
e2cd42dd
MS
58292002-05-06 Michael Snyder <msnyder@redhat.com>
5830
5831 * stabsread.c (read_type): Add recognition for new attribute:
5832 "@V;" means that an array type is actually a vector.
5833 This is analogous to the vector flag that's been added to dwarf2.
5834
3ce1502b
MK
58352002-05-09 Mark Kettenis <kettenis@gnu.org>
5836
5837 * i386-tdep.h (i386_abi): New enum.
5838 (struct gdbarch_tdep): Replace os_ident member with abi.
5839 (i386_gdbarch_register_os_abi): New prototype.
5840 * i386-tdep.c (i386_abi_names): New array.
5841 (process_note_abi_tag_sections): Removed.
5842 (process_note_sections): New function.
5843 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5844 (struct i386_abi_handler): New struct.
5845 (i386_abi_handler_list): New variable.
5846 (i386_gdbarch_register_os_abi): New function.
5847 (i386_gdbarch_init): Adapt for the changes given above.
5848
084c156a
DJ
58492002-05-08 Daniel Jacobowitz <drow@mvista.com>
5850
5851 * gregset.h: Say "GNU/Linux".
5852
6599f021
EZ
58532002-05-08 Elena Zannoni <ezannoni@redhat.com>
5854
5855 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5856 (build_gdbtypes): Build builtin_type_v2_float.
5857 (_initialize_gdbtypes): Register new builtin type.
5858
40af4b0c
AC
58592002-05-08 Andrew Cagney <ac131313@redhat.com>
5860
5861 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5862 (clear_gdbarch_swap): New function.
5863 (initialize_non_multiarch): Call.
5864 (gdbarch_update_p): Before calling init(), swap out and clear the
5865 existing architecture.
5866 * gdbarch.c: Regenerate.
5867
4fe84f46
JT
58682002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5869
5870 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5871 alphanbsd-tdep.c.
5872
4015edd1
JT
58732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5874
5875 * sh-nbsd-nat.c: Rename to...
5876 * shnbsd-nat.c: ...this.
5877 * sh-nbsd-tdep.c: Rename to...
5878 * shnbsd-tdep.c: ...this.
5879 * sh-nbsd-tdep.h: Rename to...
5880 * shnbsd-tdep.h: ...this.
5881 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5882 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5883
0e2bd219
RE
58842002-05-08 Richard Earnshaw <rearnsha@arm.com>
5885
5886 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5887 concatenation for command help messages.
5888
13a38d45
JT
58892002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5890
5891 * NEWS: Note new sh*-*-netbsdelf* configuration.
5892 * configure.host: Set gdb_host_cpu to sh for all sh*.
5893 (sh*-*-netbsdelf*): New host.
5894 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5895 (sh*-*-netbsdelf*): New target.
5896 * sh-nbsd-nat.c: New file.
5897 * sh-nbsd-tdep.c: New file.
5898 * sh-nbsd-tdep.h: New file.
5899 * config/sh/nbsd.mh: New file.
5900 * config/sh/nbsd.mt: New file.
5901 * config/sh/nm-nbsd.h: New file.
5902 * config/sh/tm-nbsd.h: New file.
5903
d658f924
JT
59042002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5905
5906 * sh-tdep.c (sh_osabi_names): Declare.
5907 (process_note_abi_tag_sections): New function.
5908 (get_elfosabi): Ditto.
5909 (sh_gdbarch_register_os_abi): Ditto.
5910 (sh_dump_tdep): Ditto.
5911 _initialize_sh_tdep): Use gdbarch_register to register
5912 sh_gdbarch_init and sh_dump_tdep.
5913 * config/sh/tm-sh.h (sh_osabi): Declare.
5914 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5915
848cfffb
AC
59162002-05-07 Andrew Cagney <ac131313@redhat.com>
5917
5918 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5919 (thumb_scan_prologue): Ditto.
5920 (arm_find_callers_reg): Ditto.
5921 (arm_frame_chain): Ditto.
5922 (arm_init_extra_frame_info): Ditto.
5923 (arm_frame_saved_pc): Ditto.
5924 (arm_pop_frame): Ditto.
5925 (arm_push_return_address): New function.
5926 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5927 call_dummy_location, call_dummy_breakpoint_offset_p,
5928 call_dummy_breakpoint_offset, call_dummy_p,
5929 call_dummy_stack_adjust_p, call_dummy_words,
5930 sizeof_call_dummy_words, call_dummy_start_offset,
5931 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5932 call_dummy_address, push_return_address and push_dummy_frame for
5933 generic dummy frames.
5934
e7d717c0
JT
59352002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5936
5937 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5938 size computation for alloca.
5939 (sh_fp_frame_init_saved_regs): Likewise.
5940
7bbcf283
RE
59412002-05-07 Richard Earnshaw <rearnsha@arm.com>
5942
5943 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5944 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5945 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5946 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5947 * remote-rdp.c (remote_rdp_fetch_register): Use
5948 ARM_MAX_REGISTER_RAW_SIZE.
5949 (remote_rdp_store_register): Likewise.
5950
4657573b
ML
59512002-05-07 Michal Ludvig <mludvig@suse.cz>
5952
361d1df0 5953 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5954 added default labels to switch {} statements.
5955 * x86-64-tdep.c: Ditto.
5956 * x86-64-linux-nat.c: Ditto.
5957
010f3b2f
JT
59582002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5959
5960 * solib.h: Protect against multiple inclusion.
5961
debd256d
JB
59622002-05-06 Jim Blandy <jimb@redhat.com>
5963
9ab3e532
JB
5964 Add first preprocessor macro-expansion files.
5965 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5966 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5967 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5968 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5969 (COMMON_OBS): Add macrotab.o, macroexp.o.
5970 (macroexp.o, macrotab.o): New rules.
5971
debd256d
JB
5972 Separate the job of reading the line number info statement program
5973 header (...expialidocious) out into its own function.
5974 * dwarf2read.c (struct line_head, struct filenames, struct
5975 directories): Replace with...
5976 (struct line_header): New structure, containing the full
5977 contents of the statement program header, including the
5978 include directory and file name tables.
5979 (read_file_scope): If we have line number info, instead of just
5980 calling dwarf_decode_lines to do all the work, call
5981 dwarf_decode_line_header first to get a `struct line_header'
5982 containing the data in the statement program header, and then
5983 pass that to dwarf_decode_lines, which will pick up where that
5984 left off. Be sure to clean up the `struct line_header' object.
5985 (dwarf_decode_line_header, free_line_header, add_include_dir,
5986 add_file_name): New functions.
5987 (dwarf_decode_lines): Move all the code to read the statement
5988 program header into dwarf_decode_line_header. Take the line
5989 header it built as the first argument, instead of the offset to
5990 the compilation unit's line number info. Use the new `struct
5991 line_header' type instead of the old structures. No need to do
5992 cleanups here now, since we don't allocate anything.
5993 (dwarf2_statement_list_fits_in_line_number_section,
5994 dwarf2_line_header_too_long): New complaints.
5995
ac3aafc7
EZ
59962002-05-06 Elena Zannoni <ezannoni@redhat.com>
5997
5998 * gdbtypes.c (init_vector_type): New function.
5999 (build_builtin_type_vec128): Simplify the representation of SIMD
6000 registers.
6001 (build_gdbtypes): Initialize new builtin vector types.
6002 (_initialize_gdbtypes): Register new vector types with gdbarch.
6003 (builtin_type_v4_float, builtin_type_v4_int32,
6004 builtin_type_v8_int16, builtin_type_v16_int8,
6005 builtin_type_v2_int32, builtin_type_v4_int16,
6006 builtin_type_v8_int8): New (renamed) SIMD types.
6007
13e49980
MK
60082002-05-06 Mark Kettenis <kettenis@gnu.org>
6009
6010 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6011 (i387_fill_fxsave): Likewise.
6012
997b20b8
AO
60132002-05-05 Alexandre Oliva <aoliva@redhat.com>
6014
6015 * alpha-tdep.c (alpha_extract_return_value): Don't use
6016 non-constant array size in prototype.
6017
535c96ce
AC
60182002-05-04 Andrew Cagney <ac131313@redhat.com>
6019
6020 From Brian Taylor <briant at model dot com>:
6021 * ui-out.c (ui_out_field_core_addr): Use the function
6022 longest_local_hex_string_custom'to format addresses > 32 bits
6023 wide.
6024
6025 * ui-out.c (ui_out_field_core_addr): Update comment.
6026
bedfa57b
AC
60272002-05-04 Andrew Cagney <ac131313@redhat.com>
6028
6029 * stack.c (select_and_print_frame): Make static. Delete the
6030 parameter `level'.
6031 (func_command): Update call.
6032 (select_frame_command): Delete code computing the frame level.
6033 * frame.h (select_and_print_frame): Delete declaration.
6034
f621c63e
AC
60352002-05-04 Andrew Cagney <ac131313@redhat.com>
6036
6037 * sparc-tdep.c (sparc_get_saved_register): Comment why
6038 get_prev_frame call is safe.
6039
0f7d239c
AC
60402002-05-04 Andrew Cagney <ac131313@redhat.com>
6041
6042 * frame.h (select_frame): Delete level parameter.
6043 * stack.c (select_frame): Update. Use frame_relative_level to
6044 obtain the frame's level.
6045 (select_and_print_frame): Update call.
6046 (select_frame_command): Ditto.
6047 (up_silently_base): Ditto.
6048 (down_silently_base): Ditto.
6049 * ocd.c (ocd_start_remote): Ditto.
6050 * remote-rdp.c (remote_rdp_open): Ditto.
6051 * remote-mips.c (mips_initialize): Ditto.
6052 (common_open): Ditto.
6053 * remote-e7000.c (e7000_start_remote): Ditto.
6054 * m3-nat.c (select_thread): Ditto.
6055 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6056 (child_get_current_exception_event): Ditto.
6057 * varobj.c (varobj_create): Ditto.
6058 (varobj_update): Ditto.
6059 (c_value_of_root): Ditto.
6060 * tracepoint.c (finish_tfind_command): Ditto.
6061 * corelow.c (core_open): Ditto.
6062 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6063 * thread.c (info_threads_command): Ditto.
6064 (switch_to_thread): Ditto.
6065 * infrun.c (normal_stop): Ditto.
6066 (restore_selected_frame): Ditto.
6067 (restore_inferior_status): Ditto.
6068 * breakpoint.c (insert_breakpoints): Ditto.
6069 (watchpoint_check): Ditto.
6070 (bpstat_stop_status): Ditto.
6071 (do_enable_breakpoint): Ditto.
6072 * blockframe.c (flush_cached_frames): Ditto.
6073 (reinit_frame_cache): Ditto.
6074
71d6c7b1
AC
60752002-05-04 Andrew Cagney <ac131313@redhat.com>
6076
6077 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6078 maintainer.
6079
cda6c68a
JB
60802002-05-04 Jim Blandy <jimb@redhat.com>
6081
6082 * gdbtypes.c (replace_type): Doc fix.
6083
5c1c87f0
AC
60842002-05-04 Andrew Cagney <ac131313@redhat.com>
6085
6086 * valprint.c (strcat_longest): Delete commented out function.
6087 Update copyright.
6088
cd9bfe15
AC
60892002-05-04 Andrew Cagney <ac131313@redhat.com>
6090
6091 * MAINTAINERS: Mark a29k as deleted.
6092 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6093 Move new configurations to the top.
6094 * configure.tgt: Remove a29k.
6095 * config/a29k/tm-vx29k.h: Delete.
6096 * config/a29k/vx29k.mt: Delete.
6097 * config/a29k/tm-a29k.h: Delete.
6098 * config/a29k/a29k-udi.mt: Delete.
6099 * config/a29k/a29k.mt: Delete.
6100 * a29k-tdep.c: Delete.
6101 * remote-udi.c: Delete.
6102 * remote-mm.c: Delete.
6103 * remote-eb.c: Delete.
6104 * remote-adapt.c: Delete.
6105 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6106 * config/s390/s390x.mt: Ditto.
6107 * config/s390/s390.mt: Ditto.
6108 * config/sparc/sparclynx.mh: Ditto.
6109 * config/sparc/linux.mh: Ditto.
6110 * config/pa/hppaosf.mh: Ditto.
6111 * config/pa/hppabsd.mh: Ditto.
6112 * config/ns32k/nbsd.mt: Ditto.
6113 * config/mips/vr5000.mt: Ditto.
6114 * config/m68k/sun3os4.mh: Ditto.
6115 * config/m68k/nbsd.mt: Ditto.
6116 * config/m68k/m68klynx.mh: Ditto.
6117 * config/m32r/m32r.mt: Ditto.
6118 * config/i386/x86-64linux.mt: Ditto.
6119 * config/i386/nbsdelf.mt: Ditto.
6120 * config/i386/nbsd.mt: Ditto.
6121 * config/i386/i386lynx.mh: Ditto.
6122
bf0c5130
AC
61232002-05-04 Andrew Cagney <ac131313@redhat.com>
6124
6125 * target.c (debug_print_register): New function. Handle oversize
6126 registers.
6127 (debug_to_fetch_registers): Call.
6128 (debug_to_store_registers): Call.
6129
2ae1c2d2
JB
61302002-05-03 Jim Blandy <jimb@redhat.com>
6131
13a393b0
JB
6132 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6133 (read_type): Doc fix.
6134 * gdbtypes.c (replace_type): Doc fix.
6135
2ae1c2d2
JB
6136 * stabsread.c (multiply_defined_struct): New complaint.
6137 (read_struct_type): If the type we were passed isn't empty, or
6138 incomplete, don't read the new struct type into it; complain,
6139 and return the original type unchanged. Take a new `type_code'
6140 argument, which is the type code for the new type.
6141 (read_type): Rather than storing the type's type code here, pass
6142 it as an argument to read_struct_type, and let that take care of
6143 storing it. That way, we don't overwrite the original type code,
6144 so read_struct_type can use it to decide whether we're overwriting
6145 something we shouldn't.
6146 (complain_about_struct_wipeout): New function.
6147
8de9bdc4
AC
61482002-05-03 Andrew Cagney <ac131313@redhat.com>
6149
6150 * gdbarch.sh: Assert that gdbarch is non-NULL.
6151 * gdbarch.c: Regenerate.
6152
f773fdbb
JM
61532002-05-03 Jason Merrill <jason@redhat.com>
6154
6155 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6156 and return NULL.
6157
0e04a514
ML
61582002-05-03 Michal Ludvig <mludvig@suse.cz>
6159
6160 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6161 (x86_64_dwarf2gdb_regno_map_length),
6162 (x86_64_dwarf2_reg_to_regnum): Added.
6163 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6164 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6165 (_initialize_x86_64_tdep): Synced with the change above.
6166 (x86_64_skip_prologue): Reformulated message.
6167
065432a8
PM
61682002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6169
6170 * f-exp.y: Also use new prev_lexptr variable
6171 to improve error reporting. Based on Michael Snyder
6172 2002-04-24 dated patch to c-exp.y.
6173 * jv-exp.y: Likewise.
6174 * m2-exp.y: Likewise.
6175
a3162708
EZ
61762002-05-02 Elena Zannoni <ezannoni@redhat.com>
6177
6178 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6179 we are dealing with vectors.
6180
03620c38
PM
61812002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6182
6183 * config/m68k/tm-nbsd.h: Obvious fix,
6184 correct machine name.
6185
6604db2e
PM
61862002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6187
6188 * p-typeprint.c (pascal_type_print_base): Add support
6189 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6190
0906b739
PM
61912002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6192
6193 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6194 for fondamental pascal 'char' type.
6195
e2625b33
PM
61962002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6197
6198 * p-lang.h (is_pascal_string_type): Declaration changed,
6199 new sixth argument of type char ** added.
361d1df0 6200 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6201 changed. Args length_pos, length_size, string_pos, char_size
6202 can now be NULL. New argument arrayname set to the field
6203 name of the char array. Return value set to char array
6204 field index plus one.
361d1df0 6205 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6206 is_pascal_string_type function.
6207
cf17c188
AC
62082002-05-02 Andrew Cagney <cagney@redhat.com>
6209
6210 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6211 <cagney@redhat.com> change.
6212 * gdbarch.c: Regenerate.
6213
52bca491
AC
62142002-05-02 Andrew Cagney <cagney@redhat.com>
6215
6216 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6217 before probing for a new one. Detect errorenous gdbarch_init
6218 functions.
6219 * gdbarch.c: Regenerate.
6220
d5e72505
AC
62212002-05-01 Andrew Cagney <cagney@redhat.com>
6222
6223 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6224 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6225 * config/v850/tm-v850.h: Ditto. Update copyright.
6226
af566d9f
AC
62272002-04-30 Andrew Cagney <ac131313@redhat.com>
6228
6229 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6230 current_gdbarch.
6231
880d85fa
MS
62322002-04-30 Michael Snyder <msnyder@redhat.com>
6233
94c30b78
MS
6234 * arm-tdep.c: Whitespace clean-ups.
6235 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6236 should have been removed as part of 4/24 change.
6237
6f5987a6
KB
62382002-04-30 Kevin Buettner <kevinb@redhat.com>
6239
6240 * rs6000-tdep.c: Added comment describing how fpscr register
6241 numbers were chosen.
6242
1a113c93
MS
62432002-04-30 Michael Snyder <msnyder@redhat.com>
6244
6245 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6246
9a6f53fe
EZ
62472002-04-29 Elena Zannoni <ezannoni@redhat.com>
6248
6249 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6250 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6251 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6252
11ed25ac
KB
62532002-04-29 Kevin Buettner <kevinb@redhat.com>
6254
6255 From Louis Hamilton <hamilton@redhat.com>:
6256 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6257 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6258 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6259 not bfd-private xcoff data, to determine wordsize.
6260 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6261
ae232405
AC
62622002-04-29 Andrew Cagney <ac131313@redhat.com>
6263
6264 GDB 5.2 released from 5.2 branch.
6265
91fd20f7
ML
62662002-04-29 Michal Ludvig <mludvig@suse.cz>
6267
6268 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6269 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6270 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6271
2dc5091b
EZ
62722002-04-29 Elena Zannoni <ezannoni@redhat.com>
6273
6274 * rs6000-tdep.c (rs6000_extract_return_value,
6275 rs6000_store_return_value): Handle returning vectors.
6276 (rs6000_gdbarch_init): Use
6277 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6278 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6279 New function.
6280 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6281 vectors.
6282 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6283 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6284
2b9848d8
PM
62852002-04-24 Pierre Muller <ics.u-strasbg.fr>
6286
6287 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6288 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6289 with fprintf_unfiltered (gdb_stderr,...).
6290
f8d17dc5
PM
62912002-04-24 Pierre Muller <ics.u-strasbg.fr>
6292
6293 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6294 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6295 Replace fprintf (stderr,...
6296 with fprintf_unfiltered (gdb_stderr,....
6297 * remote-es.c: Likewise.
6298 * remote-os9k.c: Likewise.
6299 * remote-st.c: Likewise.
6300
2f2f1ad1
AS
63012002-04-28 Andreas Schwab <schwab@suse.de>
6302
6303 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6304 linux-proc.o and gcore.o.
6305
b6779aa2
AC
63062002-04-26 Michal Ludvig <mludvig@suse.cz>
6307
6308 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6309 code without frame pointers.
6310
7e57f5f4
AC
63112002-04-26 Andrew Cagney <ac131313@redhat.com>
6312
6313 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6314 ON_STACK is needed.
6315
2ceb85d0
BE
63162002-04-26 Ben Elliston <bje@redhat.com>
6317
6318 * target.c (do_xfer_memory): Correct reference to the new option
6319 "trust-readonly-sections".
6320
f5f8a009
EZ
63212002-04-26 Elena Zannoni <ezannoni@redhat.com>
6322
6323 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6324 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6325 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6326 vectors.
6327 (read_array_type): Record the fact that this array type is really a
6328 vector (i.e. are passed in by value).
6329
5868c862
JT
63302002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6331
6332 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6333 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6334 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6335 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6336 * alpha-linux-tdep.c: Include frame.h.
6337 (alpha_linux_sigcontext_addr): New function.
6338 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6339 alpha_linux_sigcontext_addr.
6340 * alpha-osf1-tdep.c: Include gdbcore.h.
6341 (alpha_osf1_sigcontext_addr): New function.
6342 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6343 alpha_osf1_sigcontext_addr.
6344 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6345 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6346
bfb01f37
AC
63472002-04-26 Andrew Cagney <ac131313@redhat.com>
6348
361d1df0 6349 * stack.c (selected_frame_level):
bfb01f37
AC
6350 (select_frame): Do not set selected_frame_level.
6351 * frame.h (selected_frame_level): Delete declaration.
6352
15813d3f
AC
63532002-04-26 Andrew Cagney <ac131313@redhat.com>
6354
6355 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6356 convert_from_func_ptr-addr when AIX / PowerOpen.
6357
6096c27a
AC
63582002-04-25 Andrew Cagney <ac131313@redhat.com>
6359
6360 * valops.c (hand_function_call): Call
6361 generic_save_call_dummy_addr.
6362 * frame.h (generic_save_call_dummy_addr): Declare.
6363 * blockframe.c (struct dummy_frame): Add fields call_lo and
6364 call_hi.
6365 (generic_find_dummy_frame): Check for PC in range call_lo to
6366 call_hi instead of entry_point_address.
6367 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6368 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6369 (generic_save_call_dummy_addr): New function.
6370
f510d44e
DM
63712002-04-24 David S. Miller <davem@redhat.com>
6372
6373 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6374 sparc_skip_prologue.
6375 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6376 information to find prologue when possible.
6377 (sparc_prologue_frameless_p): Call examine_prologue directly.
6378 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6379 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6380 second argument.
6381 (SKIP_PROLOGUE): Likewise.
6382
15d72a92
JT
63832002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6384
6385 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6386 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6387 indicate that the condition it was testing is always true.
6388 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6389 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6390 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6391
accc6d1f
JT
63922002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6393
6394 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6395 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6396 tdep->jb_pc and tdep->jb_elt_size.
6397 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6398 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6399 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6400 * alpha-nat.c (get_longjmp_target): Remove.
6401 (JB_ELEMENT_SIZE): Ditto.
6402 (JB_PC): Ditto.
6403 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6404 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6405 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6406 to alpha_get_longjmp_target.
6407 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6408 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6409 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6410
1bfdc549
AC
64112002-04-25 Andrew Cagney <ac131313@redhat.com>
6412
6413 * README: Update to GDB 5.2.
6414
1bd316f0
AC
64152002-04-25 Andrew Cagney <ac131313@redhat.com>
6416
6417 * gdbarch.sh (LC_ALL): Set to `c'.
6418
2e5ff58c
TR
64192002-04-25 Theodore A. Roth <troth@verinet.com>
6420
6421 * avr-tdep.c: Ran through gdb_indent.sh.
6422
e33ce519
TR
64232002-04-25 Theodore A. Roth <troth@verinet.com>
6424
6425 * MAINTAINERS: Add myself as AVR maintainer.
6426 * NEWS: Note new target avr.
6427
8818c391
TR
64282002-04-25 Theodore A. Roth <troth@verinet.com>
6429
6430 * Makefile.in: Add support for AVR target.
6431 * configure.tgt: Add support for AVR target.
6432 * avr-tdep.c: New file
6433 * config/avr/avr.mt: New file.
6434
79509c2d
TR
64352002-04-25 Theodore A. Roth <troth@verinet.com>
6436
6437 * MAINTAINERS: Add myself to write-after-approval.
6438
dac8068e
PM
64392002-04-24 Pierre Muller <ics.u-strasbg.fr>
6440
6441 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6442 with fprintf_unfiltered (gdb_stderr,....
6443
25bf3106
PM
64442002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6445
6446 Fix PR gdb/508.
6447 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6448
24467a86
PM
64492002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6450
6451 * p-exp.y: Also use new prev_lexptr variable
6452 to improve error reporting. Based on Michael Snyder
6453 2002-04-24 dated patch to c-exp.y.
6454
95b80706
JT
64552002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6456
6457 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6458 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6459 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6460 to 0.
6461 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6462 and struct value.
6463 (FUNCTION_START_OFFSET): Remove.
6464 (BREAKPOINT): Ditto.
6465
e90cc612
JT
64662002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6467
6468 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6469 * NEWS: Ditto.
6470
6c72f9f9
JT
64712002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6472
6473 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6474 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6475 alpha_linux_pc_in_sigtramp.
6476 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6477 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6478 alpha_osf1_pc_in_sigtramp.
6479 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6480 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6481 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6482 alphafbsd_pc_in_sigtramp.
6483 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6484 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6485 alphanbsd_pc_in_sigtramp.
6486 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6487 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6488
5e4f3379
JT
64892002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6490
6491 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6492
da8ca43d
JT
64932002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6494
6495 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6496 alphanbsd-tdep.c.
6497 (alphanbsd-nat.o): New dependency list.
6498 (alphanbsd-tdep.o): Ditto.
6499 * NEWS: Note new native NetBSD/alpha configuration.
6500 * alphanbsd-nat.c: New file.
6501 * alphanbsd-tdep.c: Ditto.
6502 * configure.host (alpha*-*-netbsd*): New host.
6503 * configure.tgt (alpha*-*-netbsd*): New target.
6504 * config/alpha/nbsd.mh: New file.
6505 * config/alpha/nbsd.mt: Ditto.
6506 * config/alpha/nm-nbsd.h: Ditto.
6507 * config/alpha/tm-nbsd.h: Ditto.
6508
36a6271d
JT
65092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6510
6511 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6512 (alpha-osf1-tdep.o): New dependency list.
6513 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6514 and skip_sigtramp_frame members.
6515 * alpha-linux-tdep.c: Include gdbcore.h.
6516 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6517 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6518 * alpha-osf1-tdep.c: New file.
6519 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6520 alpha-osf1-dep.c.
6521 (alpha_frame_past_sigtramp_frame): New function.
6522 (alpha_dynamic_sigtramp_offset): Ditto.
6523 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6524 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6525 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6526 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6527 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6528 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6529 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6530 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6531 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6532 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6533 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6534 to find_solib_trampoline_target.
6535 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6536 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6537 (SKIP_TRAMPOLINE_CODE): Remove.
6538 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6539 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6540 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6541 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6542 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6543 (PROC_SIGTRAMP_MAGIC): Ditto.
6544 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6545 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6546 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6547 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6548 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6549
2f4bc57b
JT
65502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6551
6552 * NEWS: Note that Alpha targets are now multi-arch.
6553
665132f9
MS
65542002-04-24 Michael Snyder <msnyder@redhat.com>
6555
6556 * parser-defs.h (prev_lexptr): New external variable.
6557 * parse.c (parse_exp_1): Set prev_lexptr to null before
6558 calling the language-specific parser.
6559 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6560 (yyerror): Use prev_lexptr in error reporting.
6561
32872fa7
DJ
65622002-04-24 Daniel Jacobowitz <drow@mvista.com>
6563
6564 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6565 * gregset.h: If FILL_FPXREGSET is defined, provide
6566 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6567 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6568 is defined, call fill_fpxregset.
6569
57e76fac
MS
65702002-04-24 Roland McGrath <roland@frob.com>
6571
6572 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6573 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6574 (supply_gregset, supply_fpregset): New functions.
6575
6576 * gnu-nat.c (gnu_find_memory_regions): New function.
6577 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6578 (gnu_xfer_memory): Add a cast.
6579
f43845b3
MS
65802002-04-24 Michael Snyder <msnyder@redhat.com>
6581
361d1df0 6582 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6583 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6584 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6585 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6586 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6587 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6588
a0abec03
AC
6589Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6590
6591 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6592 NUM_PSEUDO_REGS can be used.
6593
d7bd68ca
AC
65942002-04-24 Andrew Cagney <ac131313@redhat.com>
6595
6596 * arch-utils.h: Update copyright.
6597
6598 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6599 * gdbarch.h, gdbarch.c: Re-generate.
6600
6601 * inferior.h (IN_SIGTRAMP): Delete definition.
6602 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6603 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6604
6605 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6606 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6607 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6608 (find_proc_framesize): Ditto.
6609 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6610 (alpha_init_extra_frame_info): Ditto.
6611 * infrun.c (handle_inferior_event): Ditto.
6612 (handle_inferior_event): Ditto.
6613 (check_sigtramp2): Ditto.
6614 * blockframe.c (create_new_frame): Ditto.
6615 (get_prev_frame): Ditto.
6616 * ppc-linux-tdep.c: Update comments.
6617 * i386-linux-tdep.c: Update comments.
6618 * breakpoint.c (bpstat_what): Update comment.
6619
4867e41e
DM
66202002-04-24 David S. Miller <davem@redhat.com>
6621
21d83aa5
DM
6622 * i960-tdep.c (register_in_window_p): New function.
6623 (i960_find_saved_register): Use it instead of
6624 REGISTER_IN_WINDOW_P.
6625 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6626
4867e41e
DM
6627 * symtab.h (find_stab_function_addr): Kill extern.
6628 * minsyms.c (find_stab_function_addr): Remove from here...
6629 * dbxread.c: ... to here, and mark it static.
6630
69cdf6a2
DM
66312002-04-20 David S. Miller <davem@redhat.com>
6632
6633 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6634 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6635
5a595886
DM
66362002-04-21 David S. Miller <davem@redhat.com>
6637
6638 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6639 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6640 (vx_write_register): Likewise.
6641
1da1a192
JB
66422002-04-23 J. Brobecker <brobecker@gnat.com>
6643
6644 * source.c (is_regular_file): New function.
6645 (openp): Check wether file to open is a regular file
6646 to avoid opening directories.
6647
baa6f10b
JT
66482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6649
6650 * findvar.c (extract_signed_integer): Cast printf argument
6651 to suppress format warning.
6652 (extract_unsigned_integer): Likewise.
6653 * infcmd.c (registers_info): Likewise.
6654 * top.c (get_prompt_1): Likewise.
6655 * valops.c (value_assign): Likewise.
6656 * valprint.c (print_decimal): Likewise.
6657
b2c4da81
L
66582002-04-22 H.J. Lu (hjl@gnu.org)
6659
6660 * c-exp.y (typebase): Support
361d1df0 6661
b2c4da81
L
6662 [long|long long|short] [signed|unsigned] [int|]
6663
6664 and
6665
6666 signed [long|long long|short] int
6667
f267bd6a
JT
66682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6669
6670 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6671 and vax-tdep.h.
6672 * vax-tdep.h: New file.
6673 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6674 Make several routines static.
6675 (vax_get_saved_register): New function.
6676 (vax_gdbarch_init): New function.
6677 (_initialize_vax_tdep): Register vax_gdbarch_init.
6678 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6679 Remove macros now under the control of gdbarch.
6680
da3c6d4a
MS
66812002-04-22 Michael Snyder <msnyder@redhat.com>
6682
11d3b27d
MS
6683 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6684 Some whitespace and coding standards tweaks.
da3c6d4a 6685
a33f7558
JT
66862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6687
6688 * vax-tdep.c: Include regcache.h.
6689 (vax_call_dummy_words): New.
6690 (sizeof_vax_call_dummy_words): New.
6691 (vax_fix_call_dummy): New function.
6692 (vax_saved_pc_after_call): Ditto.
6693 * config/vax/tm-vax.h: Don't include regcache.h.
6694 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6695 (CALL_DUMMY): Remove.
6696 (CALL_DUMMY_WORDS): Define.
6697 (SIZEOF_CALL_DUMMY_WORDS): Define.
6698 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6699
47a73475
MS
67002002-04-18 Michael Snyder <msnyder@redhat.com>
6701
6702 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6703
52efde73
JT
67042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6705
6706 * vax-tdep.c (vax_frame_chain): New function.
6707 (vax_push_dummy_frame): Ditto.
6708 (vax_pop_frame): Ditto.
6709 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6710 (FRAMELESS_FUNCTION_INVOCATION): Use
6711 generic_frameless_function_invocation_not.
6712 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6713 (POP_FRAME): Use vax_pop_frame.
6714
ea74468c
JT
67152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6716
6717 * vax-tdep.c (vax_store_struct_return): New function.
6718 (vax_extract_return_value): Ditto.
6719 (vax_store_return_value): Ditto.
6720 (vax_extract_struct_value_address): Ditto.
6721 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6722 vax_store_struct_return.
6723 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6724 (STORE_RETURN_VALUE): Use vax_store_return_value.
6725 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6726
5516aa92
JT
67272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6728
6729 * vax-tdep.c (vax_frame_saved_pc): New function.
6730 (vax_frame_args_address_correct): Ditto.
6731 (vax_frame_args_address): Ditto.
6732 (vax_frame_locals_address): Ditto.
6733 (vax_frame_num_args): Move code to be in proximity to
6734 other frame-related functions.
6735 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6736 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6737 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6738 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6739 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6740
36af0b35
L
67412002-04-22 H.J. Lu (hjl@gnu.org)
6742
6743 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6744 includedir.
6745
ab62c900
JT
67462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6747
6748 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6749 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6750 (FRAME_INIT_SAVED_REGS): New macro.
6751
7232b100
JT
67522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6753
6754 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6755
b70d2aee
JT
67562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6757
6758 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6759 where needed.
6760 (fetch_osf_core_registers): Likewise.
6761 (supply_gregset): Likewise.
6762
a0e8a2d1 67632002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6764
a0e8a2d1
JB
6765 * symfile.h (get_section_index): Define.
6766 * symfile.c (get_section_index): New function.
6767 * mdebugread.c (SC_IS_SBSS): New macro.
6768 (SC_IS_BSS): Return true for the scBss storage class only, as
6769 the scSBss storage class refers to the .sbss section.
6770 (parse_partial_symbols): Discard the symbols which associated
6771 section does not exist.
6772 Make sure to use the .sbss section index for symbols which
6773 storage class is scBss, rather than using the .bss section index.
6774
51eb8b08
JT
67752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6776
6777 * vax-tdep.c: Update copyright years.
6778 (vax_register_name): New function.
6779 (vax_register_byte): Ditto.
6780 (vax_register_raw_size): Ditto.
6781 (vax_register_virtual_size): Ditto.
6782 (vax_register_virtual_type): Ditto.
6783 * config/vax/tm-vax.h: Update copyright years.
6784 (REGISTER_NAMES): Remove.
6785 (REGISTER_NAME): Define.
6786 (REGISTER_BYTE): Use vax_register_byte.
6787 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6788 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6789 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6790
6cc1c0a8
AC
67912002-04-21 Andrew Cagney <ac131313@redhat.com>
6792
6793 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6794 declaration
6795 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6796
9319a2fe
DM
67972002-04-21 David S. Miller <davem@redhat.com>
6798
6799 * arch-utils.c (generic_prologue_frameless_p): Kill
6800 SKIP_PROLOGUE_FRAMELESS_P code.
6801 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6802 references.
6803 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6804 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6805 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6806 references.
6807 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6808 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6809 (sparc_gdbarch_init): Pass it to
6810 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6811
e9ed6d01
JT
68122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6813
6814 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6815 (alphabsd-nat.o): New dependency list.
6816
36012033
JT
68172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6818
6819 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6820 alphafbsd-tdep.c.
6821 (alpha-linux-tdep.o): New dependency list.
6822 (alphafbsd-tdep.o): Likewise.
6823
3379287a
JT
68242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6825
6826 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6827 to here...
6828 * alpha-tdep.c: ...from here.
6829 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6830
4bcbd6cb
JT
68312002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6832
6833 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6834 prototype from here...
6835 * alpha-tdep.h: ...to here.
6836
b31da25e
AC
68372002-04-21 Andrew Cagney <ac131313@redhat.com>
6838
6839 * frame.h (selected_frame_level): Document as deprecated.
6840 (frame_relative_level): Declare.
6841 * stack.c (frame_relative_level): New function.
6842 (selected_frame_level): Document as deprecated.
6843 (select_frame): Do not set the selected_frame_level.
6844
6845 * stack.c (frame_info, record_selected_frame): Update.
6846 (frame_command, current_frame_command): Update.
6847 (up_silently_base, up_command, down_silently_base): Update.
6848 (down_command): Update.
6849 * inflow.c (kill_command): Update.
6850 * tracepoint.c (finish_tfind_command): Update.
6851 * corelow.c (core_open): Update.
6852 * thread.c (info_threads_command): Update.
6853 (do_captured_thread_select): Update.
6854 * infcmd.c (finish_command): Update.
6855 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6856
9c1d6fe5
JT
68572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6858
6859 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6860
ab89facf
AC
68612002-04-21 Andrew Cagney <ac131313@redhat.com>
6862
6863 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6864 type const.
6865
82a4efa1
JT
68662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6867
6868 * alphafbsd-tdep.c: Update copyright years. Include
6869 alpha-tdep.h.
6870 (alphafbsd_use_struct_convention): Make static.
6871 (alphafbsd_init_abi): New function.
6872 (_initialize_alphafbsd_tdep): New function.
6873 * config/alpha/tm-fbsd.h: Update copyright years.
6874 (USE_STRUCT_CONVENTION): Remove.
6875
44dffaac
JT
68762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6877
6878 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6879 an Alpha ABI variant.
6880 (alpha_abi_handler_list): Declare.
6881 (alpha_gdbarch_register_os_abi): New function.
6882 (alpha_gdbarch_init): Give registered ABI variant handlers a
6883 chance to tweak the gdbarch once we have set up defaults.
6884 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6885
65585be4
JT
68862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6887
6888 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6889 to standard_coerce_float_to_double.
6890 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6891
d9b023cc
JT
68922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6893
6894 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6895 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6896 from gdbarch_tdep rather than a constant.
6897 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6898 the default text address for all Alpha Unix ABIs.
6899 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6900 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6901
dc129d82
JT
69022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6903
6904 * alpha-tdep.h: New file. Includes several Alpha target constants
6905 taken from...
6906 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6907 let gdbarch deal with.
6908 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6909 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6910 to dependency list.
6911 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6912 Alpha target register names.
6913 * alphabsd-nat.c: Likewise.
6914 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6915 Alpha target register names. Make serveral routines static.
6916 (alpha_get_saved_register): New function.
6917 (alpha_abi_names): New.
6918 (process_note_abi_tag_sections): New function.
6919 (get_elfosabi): New function.
6920 (alpha_gdbarch_init): New function.
6921 (alpha_dump_tdep): New function.
6922 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6923
d49d1e0a
AC
69242002-04-21 Andrew Cagney <ac131313@redhat.com>
6925
6926 * frame.c (find_saved_register): Delete #ifdef
6927 HAVE_REGISTER_WINDOWS code.
6928 * config/sparc/tm-sparc.h: Update comments.
6929 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6930
92e8c9ed
AC
69312002-04-21 Andrew Cagney <ac131313@redhat.com>
6932
6933 * i960-tdep.c (i960_find_saved_register): New function.
6934 (i960_get_saved_register): New function.
6935 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6936 (i960_get_saved_register): Declare.
6937 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6938
e1925118
DM
69392002-04-20 David S. Miller <davem@redhat.com>
6940
6941 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6942
29673b29
AC
69432002-04-20 Andrew Cagney <ac131313@redhat.com>
6944
6945 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6946 instead of NUM_PSEUDO_REGS.
6947
6c86dcd5
DM
69482002-04-20 David S. Miller <davem@redhat.com>
6949
6950 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6951 GDB_MULTI_ARCH_PARTIAL
6952 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6953 define, let tm-sp64.h do it.
6954
aa40ec90
JT
69552002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6956
6957 * frame.c (find_saved_register): Avoid a NULL pointer
6958 dereference and actually walk the frame list.
6959
0f79675b
AC
69602002-04-20 Andrew Cagney <ac131313@redhat.com>
6961
6962 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6963 sorted in most most-recent-used order. Document.
6964 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6965
f91305dd 69662002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6967
6968 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6969 instead of ->prev.
6970 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6971 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6972 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6973 instead of ->prev.
6974
73d322b1
EZ
69752002-04-19 Elena Zannoni <ezannoni@redhat.com>
6976
6977 Fix PR gdb/471.
6978 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6979 (build_builtin_type_vec128): Ditto.
6980 (append_composite_type_field): Fix calculation of type length in
6981 union case.
6982
ccd9a834
EZ
69832002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6984
6985 * config/djgpp/README: Update.
6986
6987 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6988 compiler warnings.
6989
a57f9e49
JT
69902002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6991
6992 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6993 (alpha_setup_arbitrary_frame): ...to this.
6994 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6995 for alpha_setup_arbitrary_frame.
6996
f4f9705a
AC
69972002-04-18 Andrew Cagney <cagney@redhat.com>
6998
6999 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7000 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7001
f4f9705a
AC
7002 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7003 * target.h (memory_breakpoint_from_pc): Update declaration.
7004 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7005
7006 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7007 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7008 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7009 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7010 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7011 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7012 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7013 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7014 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7015 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7016 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7017 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7018
7019 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7020 const pointer.
7021 * monitor.c (monitor_insert_breakpoint): Ditto.
7022 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7023
7024 * config/mcore/tm-mcore.h: Update copyright.
7025 * mem-break.c: Ditto.
7026 * xstormy16-tdep.c: Ditto.
7027
29f319b8
PM
70282002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7029
7030 * p-exp.y: Add precedence rule for '^' token.
7031 This removes the shift/reduce conflicts.
7032 Remove the comment concerning these shift/reduce conflicts.
7033
ebeac11a
EZ
70342002-04-18 Elena Zannoni <ezannoni@redhat.com>
7035
7036 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7037 (registers_powerpc_nofp): New register set for processors
7038 without floating point unit.
7039
27c31547
DM
70402002-04-18 David S. Miller <davem@redhat.com>
7041
7042 * MAINTAINERS: Add myself to write-after-approval.
7043
47a73475
MS
70442002-04-17 Michael Snyder <msnyder@redhat.com>
7045
7046 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7047
953836b2
AC
70482002-04-17 Andrew Cagney <ac131313@redhat.com>
7049
7050 * rs6000-tdep.c (frame_initial_stack_address): Use
7051 frame_register_read to read the alloca_reg.
7052
8b0d4340
AC
70532002-04-17 Andrew Cagney <ac131313@redhat.com>
7054
7055 * frame.c (find_saved_register): Find saved registers in the next
7056 not prev frame.
7057 Fix PR gdb/365.
7058
d8864532
AC
70592002-04-17 Andrew Cagney <ac131313@redhat.com>
7060
7061 * gdbarch.sh (LANG): Set to ``c''.
7062
36cc83a3 70632002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7064
36cc83a3 7065 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7066
2f4150cc 70672002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7068
7069 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7070 Update copyright.
7071
628703c6 7072 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7073 Also fix PR gdb/391.
361d1df0 7074
56157b4a
AC
70752002-04-14 Andrew Cagney <ac131313@redhat.com>
7076
7077 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7078 * aclocal.m4, configure: Re-generate.
7079 Fix PR gdb/391.
361d1df0 7080
6d1e3329
EZ
70812002-04-14 Elena Zannoni <ezannoni@redhat.com>
7082
7083 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7084 instead of tm_print_insn.
7085
cb06fa07
EZ
70862002-04-14 Elena Zannoni <ezannoni@redhat.com>
7087
7088 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7089
f208ba17
AC
70902002-04-14 Andrew Cagney <ac131313@redhat.com>
7091
7092 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7093 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7094 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7095
20f01a46
DH
70962002-04-12 Don Howard <dhoward@redhat.com>
7097
7098 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7099 max_user_call_depth.
7100 (init_cmd_lists): Initialize the new value;
7101 * cli/cli-script.c (execute_user_command): Limit the call depth of
7102 user defined commands. This avoids a core-dump when user commands
7103 are infinitly recursive.
7104
a88376a3
KB
71052002-04-12 Kevin Buettner <kevinb@redhat.com>
7106
7107 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7108 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7109 from tdep struct instead of DEFAULT_LR_SAVE.
7110 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7111 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7112 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7113
f2172603
MS
71142002-04-12 Michael Snyder <msnyder@redhat.com>
7115
694f61fb 7116 * Remote.c: Spelling fix.
20fe79c8
MS
7117 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7118 If no symbol found for "sbrk", try "_sbrk".
7119 (make_output_phdrs): Use bfd_section_name.
7120 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7121 * eval.c: Indentation fix-ups.
169a7369
MS
7122 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7123 in case it gets applied to an address that is already
7124 in the instruction space.
de74f71f
MS
7125 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7126 * symfile.c: Fix indentation, long lines.
f2172603
MS
7127 * source.c: White space fix-up.
7128
cda5a58a
AC
71292002-04-12 Andrew Cagney <cagney@redhat.com>
7130
7131 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7132 * frame.c (frame_register_read): New function. Return non-zero on
7133 success.
7134 (read_relative_register_raw_bytes_for_frame): Delete.
7135 (read_relative_register_raw_bytes): Delete.
7136 * frame.h (frame_register_read): Declare.
7137 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7138 * sh-tdep.c: Ditto.
7139 * infcmd.c (do_registers_info): Ditto.
7140 * hppa-tdep.c: Ditto.
7141 * rs6000-tdep.c: Ditto.
7142 * h8500-tdep.c: Ditto.
7143 * mips-tdep.c: Ditto.
7144 * h8300-tdep.c: Ditto.
7145 * z8k-tdep.c: Ditto.
7146
2ea5f656
KB
71472002-04-12 Kevin Buettner <kevinb@redhat.com>
7148
7149 From Jimi X <jimix@watson.ibm.com>:
7150 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7151 64-bit SysV ABI.
7152
27b15785
KB
71532002-04-12 Kevin Buettner <kevinb@redhat.com>
7154
7155 From Jimi X <jimix@watson.ibm.com>:
7156 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7157 bfd info.
7158
5d57ee30
KB
71592002-04-12 Kevin Buettner <kevinb@redhat.com>
7160
7161 From Jimi X <jimix@watson.ibm.com>:
7162 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7163 register sets for these processor variants.
7164
bc1e36ca
DJ
71652002-04-11 Daniel Jacobowitz <drow@mvista.com>
7166
bc1e36ca
DJ
7167 * regformats/reg-ppc.dat: Support FPSCR.
7168
e3f36dbd
KB
71692002-04-11 Kevin Buettner <kevinb@redhat.com>
7170
7171 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7172 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7173 Add fpscr as an invalid/unfetchable register.
7174 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7175 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7176 (fill_fpregset): Add support for register fpscr.
7177 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7178 (fill_gregset): Account for the fact that register ``mq'' might
7179 not exist.
7180 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7181 (registers_power): Add fpscr to register set at slot 71.
7182 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7183 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7184
943c9c25
MS
71852002-04-11 Michael Snyder <msnyder@redhat.com>
7186
7187 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7188 * configure: Regenerate.
7189 * config.in: Regenerate.
7190 * acconfig.h: Add define for _SYSCALL32.
7191 * core-sol2.c: Remove #define _SYSCALL32.
7192 * solib-legacy.c: Remove #define _SYSCALL32.
7193
d8c0a2e7
AC
71942002-04-10 Andrew Cagney <ac131313@redhat.com>
7195
7196 * stack.c (select_frame): Cleanup internal error message, do not
7197 use %p.
7198
7cc19214
AC
71992002-04-10 Andrew Cagney <ac131313@redhat.com>
7200
7201 * stack.c (select_frame): Check that selected_frame and the
7202 specified level are as expected.
7203 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7204 Update copyright.
7205 * frame.h (struct frame_info): Add field `level'. Update
7206 copyright.
7207 Work-in-progress PR gdb/464.
7208
67a2b77e
AC
72092002-04-10 Andrew Cagney <ac131313@redhat.com>
7210
7211 * maint.c (maint_print_section_info): Rename print_section_info.
7212 (print_bfd_section_info, print_objfile_section_info): Update.
7213 * inferior.h (struct gdbarch): Add opaque declaration.
7214 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7215 * gdbarch.h: Regenerate.
7216
8cfda98c
ML
72172002-04-10 Michal Ludvig <mludvig@suse.cz>
7218
7219 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7220 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7221 (kernel_u_size): Added.
7222 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7223 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7224
ca439ad2 72252002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7226
ca439ad2
JI
7227 * valarith.c (find_size_for_pointer_math): New function, either returns
7228 the size for a pointer's target, returns 1 for void *, or errors for
7229 incomplete types.
7230 (value_add, value_sub): use find_size_for_pointer_math.
7231
2f2893d9
DJ
72322002-04-09 Daniel Jacobowitz <drow@mvista.com>
7233
7234 * linux-low.c (linux_look_up_symbols): New hook.
7235 (linux_target_ops): Add linux_look_up_symbols.
7236 * remote-utils.c (decode_address): New function.
7237 (look_up_one_symbol): New function.
7238 * server.c (handle_query): Call target look_up_symbols hook.
7239 * server.h (look_up_one_symbol): Add prototype.
7240 * target.h (struct target_ops): Add look_up_symbols hook.
7241
96cb11df
AC
72422002-04-09 Andrew Cagney <ac131313@redhat.com>
7243
7244 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7245 override FP_REGNUM with frame->fp. Update copyright.
7246 * parse.c (num_std_regs, std_regs): Delete.
7247 (target_map_name_to_register): Do not search std_regs. Update
7248 function description.
7249 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7250 declarations. Update copyright.
7251 Fix PR gdb/251.
361d1df0 7252
97658e92
DJ
72532002-04-09 Daniel Jacobowitz <drow@mvista.com>
7254
7255 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7256 after the last symbol in a block.
7257
6044e3eb
PM
72582002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7259
7260 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7261 is non zero as a found symbol.
7262
0406ec40
AC
72632002-04-08 Andrew Cagney <ac131313@redhat.com>
7264
7265 * findvar.c: Include "builtin-regs.h".
7266 (value_of_register): Call value_of_builtin_reg when applicable.
7267 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7268 (target_map_name_to_register): Call
7269 builtin_reg_map_name_to_regnum.
7270 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7271 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7272 (builtin_regs_h): Define.
7273 (builtin-regs.o): New target.
7274 (findvar.o): Add $(builtin_regs_h).
7275 * builtin-regs.c, builtin-regs.h: New files.
7276 * std-regs.c: New file.
7277 Partial fix for PR gdb/251.
7278
56a6dfb9
KB
72792002-04-08 Kevin Buettner <kevinb@redhat.com>
7280
7281 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7282 it's no longer required.
7283
3a808432
AC
72842002-04-08 Andrew Cagney <ac131313@redhat.com>
7285
7286 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7287
7c40d541
KB
72882002-04-08 Kevin Buettner <kevinb@redhat.com>
7289
7290 From Jimi X <jimix@watson.ibm.com>:
7291 * rs6000-tdep.c (rs6000_software_single_step): Use
7292 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7293 and size. Use target_insert_breakpoint() and
7294 target_remove_breakpoint() to insert and remove breakpoints
7295 instead of explicit memory reads and writes.
7296
cc9836a8
KB
72972002-04-08 Kevin Buettner <kevinb@redhat.com>
7298
7299 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7300 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7301 ELF_OBJECT_FORMAT ifdef.
7302
7495d1dc
KB
73032002-04-08 Kevin Buettner <kevinb@redhat.com>
7304
7305 From Jimi X <jimix@watson.ibm.com>:
7306 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7307
4288e836
KB
73082002-04-08 Kevin Buettner <kevinb@redhat.com>
7309
7310 From Jimi X <jimix@watson.ibm.com>:
7311 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7312 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7313
a4e4e501
MK
73142002-04-07 Mark Kettenis <kettenis@gnu.org>
7315
7316 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7317 s/asprintf/xasprintf/.
7318 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7319
006defba
AC
73202002-04-07 Andrew Cagney <ac131313@redhat.com>
7321
7322 I believe Jeff Law denies responsability for this one:
7323 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7324 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7325 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7326 Work-around for PR gdb/366.
7327
7aa83cac
EZ
73282002-04-07 Elena Zannoni <ezannoni@redhat.com>
7329
7330 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7331 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7332 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7333
cf1fcca1
EZ
73342002-04-07 Elena Zannoni <ezannoni@redhat.com>
7335
7336 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7337 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7338 information.
7339
3f289e6f
AC
73402002-04-07 Andrew Cagney <ac131313@redhat.com>
7341
7342 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7343 maintainer.
7344
129188f6
AC
73452002-04-07 Andrew Cagney <ac131313@redhat.com>
7346
7347 * README (Reporting Bugs in GDB): Document the bug web page as the
7348 prefered way of submitting bugs.
7349 Fix PR gdb/402.
7350
1200cd6e
AC
73512002-04-06 Andrew Cagney <ac131313@redhat.com>
7352
7353 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7354 -1. Update comment.
7355 * gdbarch.h, gdbarch.c: Re-generate.
7356
2853c33c
AS
73572002-04-07 Andreas Schwab <schwab@suse.de>
7358
7359 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7360 buffer to regcache_collect.
7361
c2169756
AC
73622002-04-06 Andrew Cagney <ac131313@redhat.com>
7363
7364 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7365 * gdbarch.c, gdbarch.h: Re-generate.
7366
25f1b008
AC
73672002-04-06 Andrew Cagney <ac131313@redhat.com>
7368
7369 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7370 declaration. Fix -Werror.
7371
59263426
DJ
73722002-04-05 Daniel Jacobowitz <drow@mvista.com>
7373
7374 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7375 * gdbarch.c: Regenerate.
7376
f5db4da3
MS
73772002-04-05 Michael Snyder <msnyder@redhat.com>
7378
80f8a6eb
MS
7379 * breakpoint.c (clear_command): Rewrite middle section to
7380 combine two loops with identical control conditions.
7381 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7382 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7383
ad3dcc5c
L
73842002-04-05 H.J. Lu (hjl@gnu.org)
7385
7386 * solib-svr4.c (bkpt_names): Add "__start".
7387
f32e7a74
AC
73882002-04-04 Andrew Cagney <ac131313@redhat.com>
7389
7390 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7391 as test for 64 bit target.
7392
8227c0ff
AC
73932002-04-05 Andrew Cagney <ac131313@redhat.com>
7394
7395 * h8500-tdep.c (h8500_write_fp): Delete function.
7396 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7397 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7398 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7400 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7401 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7402 (s390_write_fp):
7403 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7404 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7405 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7406 (d10v_write_fp): Delete function.
7407 * inferior.h (write_fp, generic_target_write_fp): Delete
7408 declarations.
7409 * regcache.c (generic_target_write_fp): Delete function.
7410 (write_fp): Delete function.
7411 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7412 * gdbarch.h, gdbarch.c: Regenerate.
7413 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7414 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7415 (sparc64_write_fp): Delete declaration.
7416 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7417 (h8500_write_fp): Delete declaration.
7418
2757dd86
AC
74192002-04-04 Andrew Cagney <ac131313@redhat.com>
7420
7421 * sparc-tdep.c (sparc64_write_fp): Delete.
7422 (sparc_push_dummy_frame): Replace write_fp call with code to store
7423 the FP directly.
7424 (sparc_gdbarch_init): Do not initialize write_fp.
7425
c69255e1
KB
74262002-04-05 Kevin Buettner <kevinb@redhat.com>
7427
7428 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7429 clause.
7430
ae767bfb
JB
74312002-03-29 Jim Blandy <jimb@redhat.com>
7432
7433 * stack.c (get_selected_block): Add new argument `addr_in_block',
7434 used to return the exact code address we used to select the block,
7435 not just the block.
7436 * blockframe.c (get_frame_block, get_current_block): Same.
7437 * frame.h (get_frame_block, get_current_block,
7438 get_selected_block): Update declarations.
7439 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7440 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7441
84d2ac95
MS
74422002-04-05 Michael Snyder <msnyder@redhat.com>
7443
7444 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7445 warning message.
7446
596aa3bf
JB
74472002-04-05 J. Brobecker <brobecker@gnat.com>
7448
7449 * utils.c (xfullpath): New function.
7450 * defs.h (xfullpath): Add declaration.
7451 * source.c (openp): Use xfullpath in place of gdb_realpath to
7452 avoid resolving the basename part of filenames when the
7453 associated file is a symbolic link. This fixes a potential
7454 inconsistency between the filenames known to GDB and the
7455 filenames it prints in the annotations.
7456 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7457 to be able to match a filename with either the real filename, or
7458 the name of any symbolic link to this file.
7459 (lookup_partial_symtab): Ditto.
7460
c02f5703
MS
74612002-04-04 Michael Snyder <msnyder@redhat.com>
7462
7463 * breakpoint.c: Add support for hardware breakpoints in overlays.
7464 (overlay_events_enabled): New state variable.
7465 (insert_breakpoints): Use overlay_events_enabled to decide
7466 whether to attempt to set a breakpoint at the overlay load addr.
7467 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7468 (remove_breakpoint): Use overlay_events_enabled to decide
7469 whether breakpoints need to be removed from overlay load addr.
7470 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7471 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7472 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7473 disable_overlay_breakpoints): Update overlay_events_enabled.
7474
5fb290d7
DJ
74752002-04-04 Daniel Jacobowitz <drow@mvista.com>
7476
7477 * dwarf2read.c (struct function_range): New.
7478 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7479 (check_cu_functions): New.
7480 (read_file_scope): Initialize global function lists.
7481 Call dwarf_decode_line after processing children.
7482 (read_func_scope): Add to global function list.
7483 (dwarf_decode_lines): Call check_cu_functions everywhere
7484 record_line is called. Call record_line with a linenumber
7485 of 0 to mark sequence ends.
7486
7b3fabf0
ML
74872002-04-04 Michal Ludvig <mludvig@suse.cz>
7488
361d1df0 7489 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7490 change sync with glibc.
7491
bce58c09
JB
74922002-04-03 Jim Blandy <jimb@redhat.com>
7493
7494 * configure.in: Call AC_C_INLINE.
7495 * configure: Regenerated.
361d1df0 7496
2fccf04a
DJ
74972002-04-01 Daniel Jacobowitz <drow@mvista.com>
7498
7499 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7500 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7501
2d1bfe2e
MK
75022002-03-31 Mark Kettenis <kettenis@gnu.org>
7503
a5941fbf
MK
7504 * NEWS: Mention gcore support on FreeBSD/i386.
7505
a90cd31d
MK
7506 * fbsd-proc.c: New file.
7507 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7508 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7509
2d1bfe2e
MK
7510 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7511 while statement.
7512
9eb6e5a1
JB
75132002-03-29 Jim Blandy <jimb@redhat.com>
7514
7515 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7516 unescaped newlines in string literals, but newer ones don't. So
7517 escape them.
7518
f02df580
MS
75192002-03-26 Michael Snyder <msnyder@redhat.com>
7520 Andrew Cagney <cagney@redhat.com>
7521
361d1df0 7522 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7523 restore file to memory.
7524 * cli/cli-dump.h: New file.
7525 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7526 * NEWS: Mention new commands.
f02df580 7527
109f874e
MS
75282002-03-28 Michael Snyder <msnyder@redhat.com>
7529
7530 * symfile.c (symbol_file_add): Move test for null symbols to later.
7531
520f6ade
AC
75322002-03-27 Andrew Cagney <ac131313@redhat.com>
7533
7534 From veksler at il.ibm.com:
7535 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7536 the xstrduped original path.
7537 Fix PR gdb/417.
7538
d4654627
MS
75392002-03-27 Michael Snyder <msnyder@redhat.com>
7540
7541 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7542 * infcmd.c (_initialize_infcmd): Ditto.
7543 * language.c (_initialize_language): Ditto.
7544 * symfile.c (_initialize_symfile): Ditto.
7545 * top.c (_init_main): Ditto.
7546 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7547
6be8bc0c
EZ
75482002-03-27 Elena Zannoni <ezannoni@redhat.com>
7549
7550 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7551 vector registers handling.
7552 (skip_prologue): Handle new AltiVec instructions. Fill in new
7553 fields of frame data.
7554 (frame_get_saved_regs): Fill in information for AltiVec registers.
7555
12af6855
JB
75562002-03-27 Jim Blandy <jimb@redhat.com>
7557
7558 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7559 a function; leave this macro here to invoke that function.
7560 (symbol_init_mangled_name): Declaration for that function.
7561 * symtab.c (symbol_init_mangled_name): New function.
7562
dc672865
AC
75632002-03-27 Andrew Cagney <ac131313@redhat.com>
7564
7565 * valarith.c: Replace strerror with safe_strerror.
7566 * tracepoint.c: Ditto.
7567 * lin-lwp.c: Ditto.
7568 * go32-nat.c: Ditto.
7569 * inflow.c: Ditto.
7570 * gnu-nat.c: Ditto.
7571
d96429cd
AS
75722002-03-27 Andreas Schwab <schwab@suse.de>
7573
7574 * event-top.c (command_line_handler): Remove useless if.
7575
7e336ba1
AJ
75762002-03-27 Andreas Jaeger <aj@suse.de>
7577
7578 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7579 comment.
7580
de220d0f
ML
75812002-03-27 Michal Ludvig <mludvig@suse.cz>
7582
7583 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7584 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7585 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7586 (x86_64_linux_dr_get_status, supply_gregset),
7587 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7588 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7589 (x86_64_register_info_table): Add.
7590 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7591 (x86_64_register_raw_size, x86_64_register_virtual_type),
7592 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7593 general x86_64_register_info_table.
7594 (i386_gdbarch_init): gdbarch_register_bytes is now set
7595 dynamicaly during initialization.
7596 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7597 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7598
0e98d0a7
DJ
75992002-03-27 Daniel Jacobowitz <drow@mvista.com>
7600
7601 * gdbserver/server.c (main): Call target_signal_to_host_p
7602 and target_signal_to_host on signals received from the remote.
7603 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7604 target_signal_from_host on signals sent to the remote.
7605 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7606 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7607
3130066b
DJ
76082002-03-27 Daniel Jacobowitz <drow@mvista.com>
7609
7610 * signals/signals.c: Include "server.h" in gdbserver build.
7611 (target_signal_from_name): Don't use STREQ.
7612 (_initialize_signals): Likewise. Don't include function in
7613 gdbserver build.
7614
9aedf4f4
DJ
76152002-03-27 Daniel Jacobowitz <drow@mvista.com>
7616
7617 * signals.c: Moved to...
7618 * signals/signals.c: Here.
7e336ba1 7619 * Makefile (signals.o): Update.
9aedf4f4 7620
3fa41cdb
JL
76212002-03-26 Jeff Law (law@redhat.com)
7622
7623 * somread.c (som_symtab_read): Remove some commented out code and
7624 updated related comments. Do not set the minimal symbol table to
7625 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7626 in a dynamic executable.
7627 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7628 where we are unable to find the minimal symbol for the given
7629 PC value.
7630
ee677e8d
MS
76312002-03-25 Jeff Law (law@redhat.com)
7632
7633 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7634
e76e1718
ML
76352002-03-25 Michal Ludvig <mludvig@suse.cz>
7636
7637 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7638
18a642a1
AC
76392002-03-23 Andrew Cagney <ac131313@redhat.com>
7640
7641 * command.h: Update copyright.
7642 (struct cmd_list_element): Replace definition with opaque
7643 declaration.
7644 (enum cmd_types): Document that it will eventually be moved to
7645 cli/cli-decode.h
7646 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7647 (MALLOCED_REPLACEMENT): Delete macro.
7648 * Makefile.in (cli_decode_h): Add $(command_h).
7649 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7650 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7651 * completer.c: Include "cli/cli-decode.h".
7652 * maint.c: Include "cli/cli-decode.h".
7653 * cli/cli-decode.h: Include "command.h".
7654 (enum command_class): Delete.
7655 (enum cmd_types): Comment out.
7656 (enum cmd_auto_boolean): Delete.
7657 (enum var_types): Delete.
7658
b2875cc0
AC
76592002-03-23 Andrew Cagney <ac131313@redhat.com>
7660
7661 * cli/cli-decode.c: Include "gdb_assert.h".
7662 (add_set_or_show_cmd): New static function.
7663 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7664 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7665 all fields, such as func, from the set command.
7666
3b45974e
AC
76672002-03-23 Andrew Cagney <ac131313@redhat.com>
7668
7669 * MAINTAINERS (sh-elf): Change warning flag to -w.
7670
823ca731
AC
76712002-03-23 Andrew Cagney <cagney@redhat.com>
7672
7673 * defs.h (error): Add printf format attribute.
7674 * thread-db.c (thread_from_lwp): Fix error format string.
7675 * stack.c (parse_frame_specification): Ditto.
7676 * cli/cli-decode.c (undef_cmd_error): Ditto.
7677 * scm-lang.c (scm_lookup_name): Ditto.
7678 * tracepoint.c (trace_error): Ditto.
7679 * remote-utils.c (usage): Ditto.
7680 * remote.c (compare_sections_command): Ditto.
7681 Fix PR gdb/328.
7682
0e101458
AC
76832002-03-22 Andrew Cagney <ac131313@redhat.com>
7684
7685 * gdbtypes.c (append_composite_type_field): New function.
7686 (init_composite_type): New function.
7687 * gdbtypes.h (append_composite_type_field): Declare.
7688 (init_composite_type): Ditto.
7689
8e0662df
EZ
76902002-03-22 Elena Zannoni <ezannoni@redhat.com>
7691
7692 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7693 function.
8e0662df
EZ
7694 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7695 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7696 structure returning convention for SYSV ABI case, but not
7697 for GNU/Linux, FreeBSD, or NetBSD.
7698
3121eff0
DJ
76992002-03-22 Daniel Jacobowitz <drow@mvista.com>
7700
7701 * symtab.h (lookup_block_symbol): Add mangled_name argument
7702 to prototype.
7703
7704 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7705 with new mangled_name argument.
7706 * linespec.c (decode_line_1): Likewise.
7707 * valops (value_of_this): Likewise.
7708 * symtab.c (lookup_transparent_type): Likewise.
7709 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7710 (lookup_symbol): If we are given a mangled name, pass it down
7711 to lookup_symbol_aux.
7712 (lookup_block_symbol): If we are given a mangled name to check
7713 against, only return symbols which match it.
7714
349b409f
CF
77152002-03-22 Christopher Faylor <cgf@redhat.com>
7716
7717 * win32-nat.c (child_create_inferior): Check for proper shell to use
7718 here, in case the user changes it on the fly.
7719 (_initialize_inftarg): Remove shell path considerations.
7720
2a873819
EZ
77212002-03-21 Elena Zannoni <ezannoni@redhat.com>
7722
7723 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7724 for gdbarch_max_register_raw_size and max_register_virtual_size.
7725 Adjust copyright year.
7726
a1b9830c
DJ
77272002-03-21 Daniel Jacobowitz <drow@mvista.com>
7728
7729 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7730 in a function to cover the entire beginning of the function
7731 as well if it does not already.
7732
8b5790f2
TR
77332002-03-21 Tom Rix <trix@redhat.com>
7734
7735 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7736 (rs6000_ptrace64): Renamed from ptrace64.
7737
bdbe5747
MH
77382002-03-20 Martin M. Hunt <hunt@redhat.com>
7739
7740 * gdbserver/remote-utils.c (remote_open): Don't call
7741 getprotobyname, we're all using TCP here so just use
7742 IPPROTO_TCP.
7e336ba1 7743 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7744
77452002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7746
bdbe5747
MH
7747 * regcache.c (_initialize_regcache): No need to call
7748 build_regcache() at this time; it gets called whenever
7749 the gdbarch changes.
7750
7781cd62
DB
77512002-03-20 David O'Brien <obrien@FreeBSD.org>
7752
7753 * sparc-nat.c: Include sys/param.h where possible.
7754
f65ca430
DJ
77552002-03-20 Daniel Jacobowitz <drow@mvista.com>
7756
7757 Fix PR gdb/422.
7758 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7759 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7760 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7761 complex types.
7762 * stabsread.c (rs6000_builtin_type): Likewise.
7763 (read_sun_floating_type): Likewise.
7764
0c867556
PS
77652002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7766
7767 * stabsread.c (read_member_functions): Remove skip code for duplicate
7768 constructor/destructor methods. Use standard parsing for these
7769 methods and just do not chain them to the list of methods after
7770 parsing.
7771
12b9c64f
AO
77722002-03-19 Alexandre Oliva <aoliva@redhat.com>
7773
7774 * coffread.c: Remove redundant static declarations. Replace
7775 occurrences of `PTR' with `void *'.
7776 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7777 * top.h (quit_cover): Likewise.
7778 * defs.h (catch_errors): Likewise.
7779
349c5d5f
AC
77802002-03-18 Andrew Cagney <ac131313@redhat.com>
7781
7782 * defs.h (XMALLOC): Define.
7783 * gdb-events.sh (XMALLOC): Delete macro.
7784 * gdb-events.c, gdb-events.h: Regenerate.
7785 * gdbarch.sh (XMALLOC): Delete macro.
7786 * gdbarch.c: Regenerate.
7787 * serial.c (XMALLOC): Delete macro.
7788 * ui-file.c (XMALLOC): Ditto.
7789 * ser-unix.h (XMALLOC): Ditto.
7790 * sh-tdep.c (XMALLOC): Ditto.
7791 * ui-out.c (XMALLOC): Ditto.
7792 * utils.c (XMALLOC): Ditto.
7793 * i386-tdep.c (XMALLOC): Ditto.
7794 * gdb-events.c (XMALLOC): Ditto.
7795 * d10v-tdep.c (XMALLOC): Ditto.
7796 * cli-out.c (XMALLOC): Ditto.
7797
7798 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7799 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7800 * ui-file.c, ui-out.c: Ditto.
7801
7d0766f3
AC
78022002-03-18 Andrew Cagney <ac131313@redhat.com>
7803
7804 * command.h (struct cmd_list_element): Add field context.
7805 (set_cmd_context, get_cmd_context): Declare.
7806 * cli/cli-decode.h: Ditto.
7807 * cli/cli-decode.c (get_cmd_context): New function.
7808 (set_cmd_context): New function.
7809 (add_cmd): Initialize context.
7810 Part of fixing PR gdb/145 and PR gdb/146.
7811
5913bcb0
AC
78122002-03-17 Andrew Cagney <ac131313@redhat.com>
7813
1868c04e
AC
7814 * cli/cli-decode.c (cmd_type): New function.
7815 * command.h (cmd_type): Declare.
7816 * infrun.c (set_schedlock_func): Call function cmd_type.
7817 * kod.c (kod_set_os): Call cmd_type.
7818 * cris-tdep.c (cris_version_update): Use function cmd_type.
7819 (cris_mode_update, cris_abi_update): Ditto.
7820
5913bcb0
AC
7821 * command.h: (execute_cmd_post_hook): Declare.
7822 (execute_cmd_pre_hook): Declare.
7823 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7824 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7825 functions. Execute pre/post hook while ensuring that afterwords
7826 hook_in is cleared.
7827 * top.c (execute_command): Use execute_cmd_post_hook, and
7828 execute_cmd_pre_hook to execute pre/post commands.
7829 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7830 hook_stop_stub.
7831 (hook_stop_stub): Call execute_cmd_pre_hook.
7832
b51450c9
AC
78332002-03-17 Andrew Cagney <ac131313@redhat.com>
7834
7835 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7836 set'' and this leads to a core dump. Move xstrdup of
7837 operating_system to after check that it is not NULL.
7838
f66c9f11
AC
78392002-03-17 Andrew Cagney <ac131313@redhat.com>
7840
8e694ecf
AC
7841 * kod.c (kod_set_os): Remove unnecessary check that
7842 ``command->type'' is set_cmd.
7843
f66c9f11
AC
7844 * valprint.c (set_input_radix): Use input_radix.
7845 (set_output_radix): Use output_radix.
7846 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7847 isn't reverted.
7848
9d01611c
AC
78492002-03-16 Andrew Cagney <ac131313@redhat.com>
7850
7851 * value.h (struct value): Delete field ``substring_addr''. Change
7852 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7853 force_core_addr_align and force_pointer_aligh.
7854
7855 * value.h (struct value): Fix typo in above change.
9d01611c 7856
4156bb53
PS
78572002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7858
7859 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7860 to fix internal_error from ``maintenance print architecture''.
7861
0e5e3ea6
PS
78622002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7863
7864 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7865 for gcc versions after gcc-2.8.1.
7866
9b013045
PS
78672002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7868
7869 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7870 for method resolution. Restore adjustment of ``this'' pointer after
7871 calling value_struct_elt, which was accidentally removed during the
7872 HP merge.
7873
376c9600
AC
78742002-03-15 Andrew Cagney <ac131313@redhat.com>
7875
7876 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7877 value_of_register.
7878 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7879 get_saved_register.
7880 * value.h (value_of_register): Update.
7881
a4db0f07
RH
78822002-03-14 Richard Henderson <rth@redhat.com>
7883
7884 * configure.in: Detect declaration for canonicalize_file_name.
7885 * utils.c (canonicalize_file_name): Declare, if needed.
7886 (gdb_realpath): Prefer realpath if available and usable.
7887 * config.in, configure: Rebuild.
7888
96383835
RH
78892002-03-14 Richard Henderson <rth@redhat.com>
7890
7891 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7892 a constant array bound.
7893
7894 * MAINTAINERS: Add myself to write-after-approval.
7895
75245b24
MS
78962002-03-14 Michael Snyder <msnyder@redhat.com>
7897
7898 * symfile.c (syms_from_objfile): Return immediately if no syms.
7899 (symbol_file_add): Return immediately if no syms.
7900 (find_sym_fns): Return immediately if no syms.
7901
e641a1ca
ML
79022002-03-13 Michal Ludvig <mludvig@suse.cz>
7903
7904 * gdbserver/remote-util.c (remote_open): Print remote-side's
7905 IP address when remote debugging over the network.
7e336ba1 7906
df08bfec
DB
79072002-03-12 David O'Brien <obrien@FreeBSD.org>
7908
7909 * config/sparc/fbsd.mh: Fix copyright.
7910 * config/sparc/fbsd.mt: Likewise.
7911
9a57864f
RE
79122002-03-11 Richard Earnshaw <rearnsha@arm.com>
7913
7914 * MAINTAINERS: Fix typo in name of gdb warnings option.
7915 (x86-64): Fix formating so that this can be parsed by awk.
7916
dd7bf85e
DJ
79172002-03-10 Daniel Jacobowitz <drow@mvista.com>
7918
7919 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7920 * defs.h: Include "gdb/signals.h".
7921 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7922
33a0a2ac
ML
79232002-03-10 Michal Ludvig <mludvig@suse.cz>
7924
7925 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7926 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7927 from x86-64-tdep.h
7928
dd824b04
DJ
79292002-03-10 Daniel Jacobowitz <drow@mvista.com>
7930 Don Howard <dhoward@redhat.com>
7931
7932 * mips-tdep.c (ST0_FR): Define.
7933 (mips2_fp_compat): New function, temporarily disabled.
7934 (mips_read_fp_register_single): New function.
7935 (mips_read_fp_register_double): New function.
7936 (mips_print_register): Use them.
7937 (do_fp_register_row): Likewise.
7938
6a41ff59
AC
79392002-03-09 Andrew Cagney <ac131313@redhat.com>
7940
7941 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7942 approval''.
7943
4ea09c10
PS
79442002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7945
7946 * stabsread.c (read_member_functions): Fix is_stub test for
7947 static member functions, improve comment.
7948
6ccc741d
RE
79492002-03-07 Richard Earnshaw <rearnsha@arm.com>
7950
7951 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7952 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7953 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7954 commands that set boolean values.
7955 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7956 (arm_rdi_resume): Always initialize PC.
7957 (arm_rdi_open): Don't use rslt as a boolean.
7958 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7959 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7960 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7961 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7962
438013df
AO
79632002-03-06 Alexandre Oliva <aoliva@redhat.com>
7964
7965 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7966 * configure: Rebuilt.
7967
70ed8774
SC
79682002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7969
7970 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7971 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7972
5ba2abeb
AC
79732002-03-06 Andrew Cagney <ac131313@redhat.com>
7974
7975 * cli/cli-decode.c (set_cmd_completer): New function.
7976 * command.h (set_cmd_completer): Declare.
7977 * cli/cli-decode.h (set_cmd_completer): Ditto.
7978
7979 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7980 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7981 * win32-nat.c (_initialize_inftarg): Ditto.
7982 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7983 * proc-api.c (_initialize_proc_api): Ditto.
7984 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7985 * source.c (_initialize_source): Ditto.
7986 * exec.c (_initialize_exec): Ditto.
7987 * solib.c (_initialize_solib): Ditto.
7988 * top.c (init_main): Ditto.
7989 * tracepoint.c (_initialize_tracepoint): Ditto.
7990 * symfile.c (_initialize_symfile): Ditto.
7991 * printcmd.c (_initialize_printcmd): Ditto.
7992 * infcmd.c (_initialize_infcmd): Ditto.
7993 * corefile.c (_initialize_core): Ditto.
7994
f779ca99
AC
79952002-03-05 Andrew Cagney <ac131313@redhat.com>
7996
7997 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7998
01a3934b
AC
79992002-03-05 Andrew Cagney <ac131313@redhat.com>
8000
8001 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8002
37057839
AC
80032002-03-05 Andrew Cagney <ac131313@redhat.com>
8004
8005 * NEWS: Update headings, 5.2 has branched.
8006
c6ecbae5
DJ
80072002-03-04 Daniel Jacobowitz <drow@mvista.com>
8008
8009 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8010 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8011 (register_addr, REGISTER_RAW_SIZE): Likewise.
8012 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8013 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8014
e9f30c21
ML
80152002-03-03 Michal Ludvig <mludvig@suse.cz>
8016
8017 * MAINTAINERS (x86-64): Add myself.
8018 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8019 changed value_ptr -> struct value *
8020
54394ac3
DB
80212002-03-01 David O'Brien <obrien@FreeBSD.org>
8022
8023 * configure.host (sparc64-*-freebsd): Add.
8024 * configure.tgt: Likewise.
8025 * config/sparc/fbsd.mh: New file.
8026 * config/sparc/fbsd.mt: Likewise.
8027 * config/sparc/nm-fbsd.h: Likewise.
8028 * config/sparc/tm-fbsd.h: Likewise.
8029
bfe95955
DJ
80302002-03-01 Daniel Jacobowitz <drow@mvista.com>
8031
8032 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8033 regformats/reg-s390x.dat.
8034
f33c6cbf
AC
80352002-03-01 Andrew Cagney <ac131313@redhat.com>
8036
8037 * utils.c: Add FIXME explaining true/false problem.
8038
5ecaa7dd
AC
80392002-02-28 Andrew Cagney <ac131313@redhat.com>
8040
8041 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8042
2a251cc2
MC
80432002-02-28 Michael Chastain <mec@shout.net>
8044
8045 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8046
6a8031a3 80472002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8048
8049 * gdbserver/linux-s390-low.c: New file.
8050 * regformats/reg-s390.dat: New file.
8051 * regformats/reg-s390x.dat: New file.
8052 * gdbserver/configure.srv: Add S/390.
8053 * gdbserver/Makefile.in: Add S/390.
8054 * configure.tgt: Enable gdbserver for S/390.
8055
ac469903
EZ
80562002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8057
8058 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8059 first line of the doc string for "info dos", except at the end of
8060 the sentence, since the short help stops at the first period.
8061
985cb1a3
JM
80622002-02-28 Jason Merrill <jason@redhat.com>
8063
8064 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8065
c570663e
FF
80662002-02-27 Fred Fish <fnf@redhat.com>
8067
8068 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8069 comment (dumy -> dummy).
8070
43630227
PS
80712002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8072
8073 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8074
b84911e8
RB
80752002-02-27 Rodney Brown <rbrown64@csc.com.au>
8076
8077 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8078
58caa3dc
DJ
80792002-02-27 Daniel Jacobowitz <drow@mvista.com>
8080
8081 * gdbserver/acconfig.h: New file.
8082 * gdbserver/i387-fp.c: New file.
8083 * gdbserver/i387-fp.h: New file.
8084 * gdbserver/linux-x86-64.c: New file.
8085 * regformats/reg-x86-64.dat: New file.
8086 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8087 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8088 * gdbserver/configure.in: Add support for regsets.
8089 * gdbserver/config.in: Regenerate.
8090 * gdbserver/configure: Regenerate.
8091 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8092 * gdbserver/linux-low.h: New file.
8093 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8094 for regsets.
8095 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8096 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8097 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8098 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8099 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8100 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8101 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8102 "i387-fp.h". Add PTRACE_GETREGS and friends.
8103 * gdbserver/regcache.c (supply_register): New function.
8104 (supply_register_by_name): New function.
8105 (collect_register): New function.
8106 (collect_register_by_name): New function.
8107
93652174
DJ
81082002-02-27 Daniel Jacobowitz <drow@mvista.com>
8109
8110 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8111 (config.status): Add configure.srv dependency.
8112 (server_h): Add config.h dependency.
8113
a02e4a61
DJ
81142002-02-27 Daniel Jacobowitz <drow@mvista.com>
8115
8116 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8117 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8118 * gdbserver/configure.srv: Change i386-*-linux* to use
8119 reg-i386-linux.o.
8120
ce0eebec
AC
81212002-02-26 Andrew Cagney <ac131313@redhat.com>
8122
8123 * x86-64-tdep.c: Re-indent. Update copyright date.
8124
82dbc5f7
AC
81252002-02-26 Andrew Cagney <ac131313@redhat.com>
8126
8127 From Michal Ludvig <mludvig@suse.cz>:
8128 * x86-64-tdep.c (value.h): Delete.
8129 (gdb_assert.h): Include.
8130 (x86_64_register_convert_to_virtual,
8131 x86_64_register_convert_to_raw ): Add check which lets only
8132 floating-point values to be converted.
8133 (value_push): Delete.
8134 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8135 (i386_gdbarch_init): Number of register_bytes fixed.
8136
e4621584
AC
81372002-02-26 Andrew Cagney <ac131313@redhat.com>
8138
8139 * MAINTAINERS: Add x86-64 target.
8140
81a9a963
AC
81412002-02-26 Andrew Cagney <ac131313@redhat.com>
8142
8143 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8144 * osfsolib.c (solib_map_sections): Ditto.
8145 * irix5-nat.c (solib_map_sections): Ditto.
8146 * corelow.c (gdb_check_format): Ditto.
8147 * symfile.c (symfile_bfd_open): Ditto.
8148 * solib.c (solib_map_sections): Ditto.
8149 Fix PR gdb/354.
7e336ba1 8150
0f017ab9
AC
81512002-02-26 Andrew Cagney <ac131313@redhat.com>
8152
8153 * remote.c (_initialize_remote): By default, disable ``e'' and
8154 ``E'' step out-of-range packets.
8155
75738c29
AS
81562002-02-26 Andreas Schwab <schwab@suse.de>
8157
8158 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8159 m68k_linux_frame_saved_pc.
8160 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8161 in_sigtramp.
8162 (SIGCONTEXT_PC_OFFSET): Remove.
8163 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8164 m68k_linux_sigtramp_saved_pc): New functions.
8165 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8166 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8167 (UCONTEXT_PC_OFFSET): Define.
8168 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8169 non-RT and RT signal trampolines.
8170
7e8ed687
RE
81712002-02-26 Richard Earnshaw <rearnsha@arm.com>
8172
8173 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8174 (TARGET_NBPG, STACK_END_ADDR): Delete
8175 (VARIABLES_INSIDE_BLOCK): Delete.
8176
6972bc8b
AC
81772002-02-25 Andrew Cagney <ac131313@redhat.com>
8178
8179 * utils.c (perror_with_name): Make string parameter constant.
8180 (print_sys_errmsg): Ditto.
8181 (query): Ditto.
8182 * defs.h (perror_with_name): Update.
8183 (print_sys_errmsg): Update.
8184 (query): Update.
8185
aa32f823
DJ
81862002-02-25 Daniel Jacobowitz <drow@mvista.com>
8187
8188 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8189 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8190
19caaa45
PS
81912002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8192
8193 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8194 if it already matches the current architecture from the exec file.
8195 Include arch-utils.h for gdbarch_info_init prototype.
8196 * Makefile.in (rs6000-nat.o): Update dependencies.
8197
d951901f
EZ
81982002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8199
8200 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8201 list of exported variables.
8202
7ea81414
DJ
82032002-02-24 Daniel Jacobowitz <drow@mvista.com>
8204
8205 * gdbserver/configure.srv: New file.
8206 * gdbserver/configure.in: Use configure.srv instead
8207 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8208 from it.
8209 * gdbserver/configure: Regenerated.
8210 * gdbserver/terminal.h: New file.
8211 * gdbserver/Makefile.in: Update for configure changes. Remove
8212 more unneeded include paths.
8213
080fe24b
AC
82142002-02-24 Andrew Cagney <ac131313@redhat.com>
8215
8216 From wiz at danbala:
8217 * config/sparc/tm-sp64.h: Fix grammar and typos.
8218 Fix PR gdb/287.
8219
8605d56e
AC
82202002-02-24 Andrew Cagney <ac131313@redhat.com>
8221
8222 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8223 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8224 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8225 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8226 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8227 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8228 * s390-tdep.c: Ditto.
92362027
AC
8229 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8230 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8231 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8232 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8233 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8234 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8235 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8236 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8237 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8238 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8239 Fix PR gdb/378.
7e336ba1 8240
8ed32cc0
AC
82412002-02-23 Andrew Cagney <ac131313@redhat.com>
8242
a3007b6f
AC
8243 * lin-thread.c: Delete file.
8244 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8245 to gdb_proc_service.h.
8246 * configure: Re-generate.
8247
50a9e2f1
AC
8248 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8249 * serial.c (serial_open): Delete check for "ocd".
8250 Fix PR gdb/349.
8251
8b6e7932
AC
8252 * Makefile.in (linux-thread.o): Delete target.
8253 * linux-thread.c: Delete file.
8254
d155c46b
AC
8255 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8256 renamed SH files to be consistent.
8257
8ed32cc0
AC
8258 * symtab.c (sort_search_symbols): Use xfree.
8259
0e18d038
RE
82602002-02-23 Richard Earnshaw <rearnsha@arm.com>
8261
8262 * arm-linux-tdep.c (arm_linux_init_abi): Register
8263 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8264 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8265 definition with undef, since we don't want the sysvr4 definition.
8266 (SKIP_TRAMPOLINE_CODE): Likewise.
8267
27aac7ff
AC
82682002-02-23 Andrew Cagney <ac131313@redhat.com>
8269
8270 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8271
8272 * configure.in: (AC_CHECK_FUNCS) Added test for
8273 canonicalize_file_name Regenerated.
8274 * config.in, configure: Regenerated.
8275 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8276 defined use canonicalize_file_name.
7e336ba1 8277
65a6e0ee
MC
82782002-02-23 Michael Chastain <mec@shout.net>
8279
8280 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8281
47b95330
AC
82822002-02-23 Andrew Cagney <ac131313@redhat.com>
8283
8284 * README: Remove references to cygnus.com.
8285 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8286 dot com'' form. Remove references to cygnus.com and sourceware.
8287
696f451b
AC
82882002-02-23 Andrew Cagney <ac131313@redhat.com>
8289
8290 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8291 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8292 1003.1-2001 no longer allows "head -1".
8293 * gdb/Makefile.in (version.c): Likewise.
8294 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8295 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8296 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8297
bbaca940
AC
82982002-02-23 Andrew Cagney <ac131313@redhat.com>
8299
8300 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8301 * command.h (cmd_cfunc_eq): Declare.
8302 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8303
8304 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8305 ``struct cmd_list_element *''.
8306 * cli/cli-cmds.c (is_complete_command): Update. Use
8307 cmd_cfunc_eq.
8308 * top.c (execute_command): Pass the command to
8309 is_complete_command.
8310 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8311
b8b8b047
AC
83122002-02-23 Andrew Cagney <ac131313@redhat.com>
8313
8314 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8315 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8316 architecture defines.
8317 * s390-tdep.c (s390_gdbarch_init): Likewise.
8318
19d3fc80
RE
83192002-02-23 Richard Earnshaw <rearnsha@arm.com>
8320
8321 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8322 (arm_linux_push_arguments): Likewise.
8323 (arm_linux_init_abi): Register them. Also register linux-specific
8324 call_dummy_words.
8325 (find_minsym_and_objfile): Use strcmp, not STREQ.
8326 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8327 (arm_linux_call_dummy_words): Delete declaration.
8328 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8329 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8330 declarations.
8331 (LOWEST_PC): Delete.
8332
3ab13650
PS
83332002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8334
8335 * maint.c (print_section_info): Do not prepend `0x' to filepos
8336 output, it will be handled by local_hex_string_custom.
8337
19d3fc80 83382002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8339
8340 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8341 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8342 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8343
d85a5daf
JB
83442002-02-22 Jim Blandy <jimb@redhat.com>
8345
8346 Indicate that the bcache functions don't change the strings
8347 they're passed.
8348 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8349 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8350
eeb25b8a
PM
83512002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8352
8353 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8354
6badb179
CF
83552002-02-21 Christopher Faylor <cgf@redhat.com>
8356
8357 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8358 find the complete path to a loaded DLL.
8359
e8717518
FF
83602002-02-21 Fred Fish <fnf@redhat.com>
8361
8362 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8363 that marks the end of the range of a function, enter a line number
8364 entry that has a line number of zero and a PC offset that matches
8365 the end of the function. This starts a range of PC's for which no
8366 line number information is known.
8367 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8368 PC's for which no line number info is found (line number is zero)
8369 then we didn't find any valid line information.
8370 * symtab.h: Document use of zero line number entry.
8371
9abe5450
EZ
83722002-02-21 Elena Zannoni <ezannoni@redhat.com>
8373
8374 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8375 (have_ptrace_getvrregs): Define for run time checks.
8376 (gdb_vrregset_t): New type for Altivec register handling.
8377 (fetch_register, store_register): Fetch/store altivec register
8378 when needed.
8379 (fetch_altivec_register, store_altivec_register): New functions.
8380 (supply_vrregset, fill_vrregset): New functions.
8381 (fetch_altivec_registers, store_altivec_registers): New functions.
8382 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8383 registers as well.
8384
aaa38bb5
AJ
83852002-02-21 Jiri Smid <smid@suse.cz>
8386
8387 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8388
b34db576
RE
83892002-02-21 Richard Earnshaw <rearnsha@arm.com>
8390
8391 * Makefile.in (armnbsd-nat.o): Update dependencies.
8392 * armnbsd-nat.c (supply_gregset): New function. Common code to
8393 supply the integer register set.
8394 (supply_fparegset): New function. Similar for FPA registers.
8395 (fetch_regs, fetch_fp_regs): Use them.
8396 (fetch_core_registers): Likewise.
8397 (fetch_elfcore_registers): New function.
8398 (arm_netbsd_elfcore_fns): New core-file type specification.
8399 (_initialize_arm_netbsd_nat): Register it.
8400
3e56fc4b
RE
84012002-02-21 Richard Earnshaw <rearnsha@arm.com>
8402
8403 * armnbsd-nat.c: Include gdbcore.h.
8404 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8405 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8406 'void' to declaration, to shut up ARI.
8407 (fetch_core_registers): Make static. Rewrite using supply_register.
8408 (arm_netbsd_core_fns): New core-file type specification.
8409 (_initialize_arm_netbsd_nat): New function.
8410
097f6b0b
CF
84112002-02-21 Christopher Faylor <cgf@redhat.com>
8412
8413 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8414 value.
8415
c914e0cc
CF
84162002-02-20 Christopher Faylor <cgf@redhat.com>
8417
8418 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8419 fails.
8420
385fa495
DJ
84212002-02-20 Daniel Jacobowitz <drow@mvista.com>
8422
8423 * jv-exp.y (parse_number): Change type of implicit longs
8424 to builtin_type_uint64.
8425
e5f1222d
DJ
84262002-02-20 Daniel Jacobowitz <drow@mvista.com>
8427
8428 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8429 to be an integer instead of a `union wait'.
8430
75c9abc6
DJ
84312002-02-20 Daniel Jacobowitz <drow@mvista.com>
8432
8433 * mips-linux-nat.c: Call the operating system GNU/Linux.
8434 * mips-linux-tdep.c: Likewise.
8435 * mips-tdep.c: Likewise.
8436
551792a5
DJ
84372002-02-20 Daniel Jacobowitz <drow@mvista.com>
8438
8439 Fix PR gdb/265.
8440 * jv-exp.y (parse_number): Handle 64-bit integers.
8441
ee6e2b82
DJ
84422002-02-20 Daniel Jacobowitz <drow@mvista.com>
8443
8444 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8445 AC_STDC_HEADERS to AC_HEADER_STDC.
8446 * gdbserver/configure: Regenerated.
8447
a48442a0
RE
84482002-02-20 Richard Earnshaw <rearnsha@arm.com>
8449
8450 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8451 is defined.
8452 * sparc-tdep.c (get_longjmp_target): Likewise.
8453
fe419ffc
RE
84542002-02-20 Richard Earnshaw <rearnsha@arm.com>
8455
8456 * News: Add news about ARM and Multi-arch. Mention the new target
8457 arm*-*-netbsd*.
8458
5832ed7e
JB
84592002-02-19 Jim Blandy <jimb@redhat.com>
8460
8461 * stabsread.c (error_type_complaint): Improve error message.
8462
84563040
DJ
84632002-02-19 Daniel Jacobowitz <drow@mvista.com>
8464
8465 * gdbserver/README: Update documentation.
8466 * gdbserver/configure.in: Update configury to match documentation.
8467 * gdbserver/Makefile.in: Likewise.
8468 * gdbserver/configure: Regenerated.
8469 * gdbserver/aclocal.m4: New file, generated by aclocal.
8470 * gdbserver/config.in: New file, generated by autoheader.
8471
375fd65b
RE
84722002-02-19 Richard Earnshaw <rearnsha@arm.com>
8473
8474 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8475 armnbsd-nat.c.
8476
08216dd7
RE
84772002-02-19 Richard Earnshaw <rearnsha@arm.com>
8478
8479 * arm-tdep.h (enum arm_float_model): New enum.
8480 (struct gdbarch_tdep): Add fp_model.
8481 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8482 up floating-point conversions until we know the floating-point model
8483 in use by the inferior. Don't complain about being unable to
8484 determine the ABI of the inferior when we don't have one.
8485 (arm_extract_return_value): Support different floating-point models.
8486 (arm_store_return_value): Likewise.
aaa38bb5 8487 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8488 ARM_FLOAT_SOFT.
8489 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8490
65d6d66a
PS
84912002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8492
8493 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8494 of ``current_gdbarch''.
8495
47221191
RE
84962002-02-19 Richard Earnshaw <rearnsha@arm.com>
8497
8498 * armnbsd-nat.c : ANSIfy all function declarations.
8499 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8500 (fetch_inferior_registers): Re-implement in terms of above.
8501 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8502 (store_inferior_registers): Re-implement in terms of above.
8503
fdf39c9a
RE
85042002-02-19 Richard Earnshaw <rearnsha@arm.com>
8505
aaa38bb5 8506 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8507 kernel.
8508 * arm-linux-tdep.c: Likewise.
8509 * config/arm/tm-linux.h: Likewise.
8510
93247f88
RE
85112002-02-19 Richard Earnshaw <rearnsha@arm.com>
8512
8513 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8514 * config/arm/nbsd.mt (TM_FILE): Delete.
8515 * config/arm/tm-nbsd.h: Delete.
8516
d7b486e7
RE
85172002-02-19 Richard Earnshaw <rearnsha@arm.com>
8518
8519 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8520 Initialize CALL_DUMMY_LENGTH.
8521
41d39a95
RE
85222002-02-19 Richard Earnshaw <rearnsha@arm.com>
8523
8524 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8525 function.
8526 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8527 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8528 defines one thing and that is incorrect for this port.
8529 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8530
e1195560
PM
85312002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8532
8533 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8534
c1748f97
PM
85352002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8536
8537 * win32-nat.c (display_selector): New function. Displays information
8538 about the information returned by GetThreadSelectorEntry API function.
8539 (display_selectors): New function. Displays the infomation of
8540 the selector given as argument, or of CS, DS ans FS selectors
8541 if no argument is given.
8542 ( _initialize_inftarg): Add "w32" as info prefix command.
8543 Add "info w32 selector" as command calling display_selectors.
8544
e41e6bbf
PM
85452002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8546
8547 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8548 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8549 if not defined.
8550
0d3a9f48
RE
85512002-02-18 Richard Earnshaw <rearnsha@arm.com>
8552
8553 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8554
3fb4b924
RE
85552002-02-18 Richard Earnshaw <rearnsha@arm.com>
8556
8557 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8558 (arm_fix_call_dummy): Call it.
8559 (arm_call_dummy_breakpoint_offset): Delete.
8560 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8561 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8562
7f55af32
AC
85632002-02-18 Andrew Cagney <ac131313@redhat.com>
8564
8565 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8566 Default to func_frame_chain_valid.
8567 * gdbarch.h, gdbarch.c: Re-generate.
8568 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8569
05f13b9c
EZ
85702002-02-18 Elena Zannoni <ezannoni@redhat.com>
8571
8572 * ppc-linux-nat.c: Update copyright.
8573 (fetch_register, store_register): Add tid parameter, don't compute
8574 tid here.
8575 (fetch_ppc_registers, store_ppc_registers): Add tid
8576 parameter. Pass it along to callees.
8577 (fetch_inferior_registers, store_inferior_registers): Compute tid
8578 here, and pass it to calleed functions.
8579 (fill_gregset, supply_fpregset): Clean up formatting.
8580
d7afb4c9
RE
85812002-02-18 Richard Earnshaw <rearnsha@arm.com>
8582
8583 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8584 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8585
9df628e0
RE
85862002-02-18 Richard Earnshaw <rearnsha@arm.com>
8587
8588 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8589 * gdbarch.c gdbarch.h: Regenerate.
8590 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8591 function.
8592 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8593 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8594 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8595
8596 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8597 * arm-tdep.c (arm_get_longjmp_target): New function.
8598 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8599 this to a positive value register arm_get_longjmp_target as the
8600 longjmp handler.
8601 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8602 (arm_linux_init_abi): Set up longjmp description in tdep.
8603 * armnbsd-nat.c (get_longjmp_target): Delete.
8604 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8605 description in tdep.
8606 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8607 (get_longjmp_target): Delete declaration.
8608 (GET_LONGJMP_TARGET): Delete.
8609 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8610 (GET_LONGJMP_TARGET): Delete.
8611
57bc8964
KB
86122002-02-17 Kevin Buettner <kevinb@redhat.com>
8613
8614 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8615 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8616 of ``current_gdbarch''.
8617
83d31a92
TT
86182002-02-17 Tom Tromey <tromey@redhat.com>
8619
8620 * cli/cli-cmds.c (compare_strings): New function.
8621 (complete_command): Only print each unique item once.
8622 * completer.h (complete_line): Declare.
8623 * completer.c (complete_line): New function.
8624 (line_completion_function): Use it.
8625
17ef5d92
AC
86262002-02-16 Andrew Cagney <ac131313@redhat.com>
8627
8628 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8629 * gdbarch.h, gdbarch.c: Re-generate.
8630
491b8946
DJ
86312002-02-16 Daniel Jacobowitz <drow@mvista.com>
8632
8633 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8634
86352002-02-16 Daniel Jacobowitz <drow@mvista.com>
8636
8637 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8638 * valops.c (value_arg_coerce): Don't take the address of a reference
8639 to convert an argument to a reference.
8640
dfe7f3ac
CF
86412002-02-15 Christopher Faylor <cgf@redhat.com>
8642
8643 * win32-nat.c (get_image_name): New function.
8644 (handle_load_dll): Use get_image_name function.
8645 (get_child_debug_event): Avoid registering debug events until possibly
8646 execed process is started.
8647 (child_create_inferior): Allow invocation via shell so that command
8648 line redirection, etc. works ok.
8649 (_initialize_inftarg): Add new command: "set shell" to control whether
8650 a shell is used to start a process.
8651
1d33e73a
DJ
86522002-02-15 Daniel Jacobowitz <drow@mvista.com>
8653
8654 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8655 instead of find_register_by_number.
8656 (cannot_store_register): Likewise.
8657
48cd0caa
PM
86582002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8659
aaa38bb5 8660 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8661 fprintf_unfiltered (gdb_stderr, ...).
8662
8656e7d8
DJ
86632002-02-15 Daniel Jacobowitz <drow@mvista.com>
8664
8665 * gdbserver/gdbserver.1: Document --attach.
8666
66e810cd
RE
86672002-02-15 Richard Earnshaw <rearnsha@arm.com>
8668
8669 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8670 descriptions.
8671 * arm-tdep.c (arm_default_arm_le_breakpoint)
8672 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8673 (arm_default_thumb_be_breakpoint): New. Initialize them from
8674 traditional breakpoint defines.
8675 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8676 (arm_gdbarch_init): Initialize new breakpoint variables.
8677 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8678 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8679 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8680 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8681 code out to ...
8682 (arm_netbsd_init_abi_common): ... here; new function.
8683 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8684 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8685 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8686 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8687
97e03143
RE
86882002-02-15 Richard Earnshaw <rearnsha@arm.com>
8689
8690 * arm-tdep.h (enum arm_abi): New enum.
8691 (struct gdbarch_tdep): New structure.
8692 (LOWEST_PC): Provide a default.
8693 (arm_gdbarch_register_os_abi): Declare new function.
8694 * arm-tdep.c (arm_abi_names): New array.
8695 (process_note_abi_tag_sections): New function.
8696 (get_elfosabi): New function.
8697 (arm_gdbarch_register_os_abi): New function.
8698 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8699 support for that ABI has been built in, then call the appropriate
8700 configuration routine. Use gdbarch_num_regs() to get the number
8701 of registers.
8702 (arm_dump_tdep): New function.
8703 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8704 place-holder functions.
8705 (_initialize_arm_tdep): Register them.
8706 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8707
8708 * armnbsd-tdep.c: New file.
8709 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8710 * config/arm/nbsd.mt (TDEPFILES): Add it.
8711 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8712
8713 * armnbsd-nat.c: Include regcache.h.
8714 * Makefile.in (armnbsd-nat.o): Update dependency list.
8715
8716 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8717
ad68be46
DJ
87182002-02-14 Daniel Jacobowitz <drow@mvista.com>
8719
8720 * gdbserver/Makefile.in: Fix typos in target rules.
8721
003d6d1d
DJ
87222002-02-14 Daniel Jacobowitz <drow@mvista.com>
8723
aaa38bb5 8724 Fix part of PR gdb/267.
003d6d1d
DJ
8725 * linespec.c (find_methods): Handle constructors specially for now.
8726
6b230f1b
CV
87272002-02-14 Corinna Vinschen <vinschen@redhat.com>
8728
8729 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8730 handling.
8731 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8732 standard_coerce_float_to_double().
8733
1ea98d12
CF
87342002-02-14 Christopher Faylor <cgf@redhat.com>
8735
8736 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8737 GDBINIT_FILENAME.
8738
dd47e6fd
EZ
87392002-02-14 Elena Zannoni <ezannoni@redhat.com>
8740
8741 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8742 find_variant_by_name, because it confuses the multiarch
8743 framework. Return NULL if there isn't an architecture with the
8744 user supplied name, instead of forcing a different one without
8745 recording the change with the multiarch machinery.
8746 (find_variant_by_name): Delete.
8747
d7e39b9e
PS
87482002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8749
8750 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8751 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8752
76e42a4f
MH
87532002-02-13 Martin M. Hunt <hunt@redhat.com>
8754
aaa38bb5 8755 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8756 print_frame_info_listing_hook, set current_source_symtab.
8757
0a30fbc4
DJ
87582002-02-14 Daniel Jacobowitz <drow@mvista.com>
8759
8760 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8761 and remove unused $(INCLUDE_DIR).
8762 Add regcache.c to OBS.
8763 Add generated register protocol files to clean target.
8764 Update dependencies for new objects, obsolete old target code.
8765
8766 * gdbserver/linux-low.c: Remove all platform-specific code to
8767 new files. Remove various dead code. Update to use regcache
8768 functionality.
8769 * gdbserver/remote-utils.c (fromhex): Add return statement
8770 to quiet warning.
8771 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8772 constant.
8773 (input_interrupt): Add integer parameter to match prototype
8774 of a signal handler.
8775 (outreg): Use register_data ().
8776 (prepare_resume_reply): Use gdbserver_expedite_regs.
8777 * gdbserver/server.c (main): Dynamically allocate own_buf because
8778 PBUFSIZ is no longer constant. Use registers_to_string () and
8779 registers_from_string ().
8780 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8781 for error (), fatal (), and warning (). Update definition of
8782 PBUFSIZ to use regcache functionality. Add include guard.
8783 * gdbserver/utils.c (fatal): Add missing ``const''.
8784 (warning): New function.
8785
8786 * regformats/regdat.sh: Include "regcache.h" in generated files.
8787 Provide init_registers () function.
8788 * regformats/regdef.h: Add prototype for set_register_cache ().
8789 Add include guard.
8790
8791 * gdbserver/linux-arm-low.c: New file.
8792 * gdbserver/linux-i386-low.c: New file.
8793 * gdbserver/linux-ia64-low.c: New file.
8794 * gdbserver/linux-m68k-low.c: New file.
8795 * gdbserver/linux-mips-low.c: New file.
8796 * gdbserver/linux-ppc-low.c: New file.
8797 * gdbserver/linux-sh-low.c: New file.
8798
8799 * gdbserver/regcache.c: New file.
8800 * gdbserver/regcache.h: New file.
8801
8802 * gdbserver/low-linux.c: Removed obsolete file.
8803
4cc841d0
DJ
88042002-02-14 Daniel Jacobowitz <drow@mvista.com>
8805
8806 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8807 * config/i386/linux.mt: Likewise.
8808 * config/ia64/linux.mt: Likewise.
8809 * config/m68k/linux.mh: Likewise.
8810 * config/powerpc/linux.mh: Likewise.
8811 * config/mips/linux.mt: Likewise.
8812
8813 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8814
8815 * config/i386/i386lynx.mh: Mark gdbserver variables
8816 as (currently) obsolete for this target.
8817 * config/i386/nbsd.mt: Likewise.
8818 * config/i386/nbsdelf.mt: Likewise.
8819 * config/m32r/m32r.mt: Likewise.
8820 * config/m68k/m68klynx.mh: Likewise.
8821 * config/m68k/nbsd.mt: Likewise.
8822 * config/m68k/sun3os4.mh: Likewise.
8823 * config/mips/vr5000.mt: Likewise.
8824 * config/ns32k/nbsd.mt: Likewise.
8825 * config/pa/hppabsd.mh: Likewise.
8826 * config/pa/hppaosf.mh: Likewise.
8827 * config/powerpc/nbsd.mt: Likewise.
8828 * config/rs6000/rs6000lynx.mh: Likewise.
8829 * config/s390/s390.mt: Likewise.
8830 * config/s390/s390x.mt: Likewise.
8831 * config/sparc/sparclynx.mh: Likewise.
8832 * config/sparc/sun4os4.mh: Likewise.
8833 * config/i386/x86-64linux.mt: Likewise.
8834 * config/sparc/linux.mh: Likewise.
8835
a85f51e7
DJ
88362002-02-14 Daniel Jacobowitz <drow@mvista.com>
8837
8838 * configure.tgt: Configure gdbserver only for known working
8839 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8840 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8841 SUBDIRS if it is configured. Update comment for ${nativefile}.
8842 * configure: Regenerated.
8843
65554fef
MS
88442002-02-13 Michael Snyder <msnyder@redhat.com>
8845
670a52db
MS
8846 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8847
6dbdc4a3
MS
8848 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8849 (default_gcore_mach): Just return 0, work around a problem in bfd.
8850 (default_gcore_target): OK to return NULL if exec_bfd is null.
8851 (make_mem_sec): Use a cast, avoid a warning.
8852
8853 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8854 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8855 sizeof (host pointer) != sizeof (target pointer)).
8856 (procfs_make_note_section): Avoid overflow in psargs string.
8857
aaa38bb5 8858 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8859 implementation return an error.
8860
88612002-02-13 Rodney Brown <rbrown64@csc.com.au>
8862
8863 * procfs.c (procfs_make_note_section): Provide a default definition
8864 (for alpha-dec-osf4.0f). Fix typos.
8865
1e4d76e7
EZ
88662002-02-13 Elena Zannoni <ezannoni@redhat.com>
8867
8868 * linux-proc.c: Add include of regcache.h.
8869 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8870
b6d1a1d5
AC
88712002-02-13 Andrew Cagney <ac131313@redhat.com>
8872
8873 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8874 * memattr.c (create_mem_region): Disallow useless empty region.
8875 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8876 non-overlapping.
b6d1a1d5 8877
6c6ea35e
MC
88782002-02-13 Michael Chastain <mec@shout.net>
8879
8880 * defs.h: Kill CONST_PTR.
8881 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8882 * c-lang.c (c_builtin_types): Likewise.
8883 * ch-lang.c (ch_builtin_types): Likewise.
8884 * f-lang.c (f_builtin_types): Likewise.
8885 * language.c (unknown_builtin_types): Likewise.
8886 * m2-lang.c (m2_builtin_types): Likewise.
8887 * p-lang.c (pascal_builtin_types): Likewise.
8888 * scm-lang.c (c_builtin_types): Likewise.
8889
3e0b0f48
KS
88902002-02-13 Keith Seitz <keiths@redhat.com>
8891
8892 * arm-tdep.h (arm_get_next_pc): Add declaration.
8893
67255d04
RE
88942002-02-13 Richard Earnshaw <rearnsha@arm.com>
8895
8896 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8897 with other related struct-returning functions.
8898 (arm_extract_struct_value_address): New function.
8899 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8900 initialize float_format, double_format and long_double_format as
8901 appropriate to the endianness of the target.
8902 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8903 (arm_use_struct_convention): Delete declaration.
8904 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8905
079777f6
KS
89062002-02-13 Keith Seitz <keiths@redhat.com>
8907
8908 * defs.h (core_addr_to_string_nz): New function.
8909
34588f23
MK
89102002-02-13 Mark Kettenis <kettenis@gnu.org>
8911
8912 Apply missing bits of 2002-01-15 patch.
8913 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8914 (fill_fpregset): Use i387_fill_fsave.
8915
49b563f9
KS
89162002-02-12 Keith Seitz <keiths@redhat.com>
8917
49b563f9
KS
8918 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8919 (core_addr_to_string_nz): New function.
8920
aeb98c60
RE
89212002-02-11 Richard Earnshaw <rearnsha@arm.com>
8922
8923 * arm-linux-nat.c: Really include arm-tdep.h.
8924 * config/arm/tm-linux.h (struct type, struct value): Declare.
8925
65554fef
MS
89262002-02-11 Michael Snyder <msnyder@redhat.com>
8927
8928 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8929 (gcore section): Ifdef for Solaris and Unixware only.
8930 (procfs_do_thread_registers): Unixware needs one lwpstatus
8931 per thread (not one prstatus or pstatus).
8932 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8933 not over all gdb threads. For unixware, call elfcore_write_pstatus
8934 once before iterating over threads.
8935
34e8f22d
RE
89362002-02-11 Richard Earnshaw <rearnsha@arm.com>
8937
8938 * arm-tdep.h: New file.
8939 * arm-tdep.c: Include arm-tdep.h.
8940 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8941 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8942 (arm_print_float_info, arm_register_type, convert_to_extended)
8943 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8944 (arm_extract_return_value, arm_register_name): Make static.
8945 (arm_software_single_step): Similarly. Fix types in declaration.
8946 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8947 (arm_store_return_value, arm_store_struct_return): New functions.
8948 (arm_gdbarch_init): Register the above functions. Also register
8949 call_dummy_start_offset, sizeof_call_dummy_words,
8950 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8951 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8952 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8953 prologue_cache.saved_regs here, rather than ...
8954 (_initialize_arm_tdep): ... here.
8955 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8956 declarations.
8957 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8958 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8959 (arm_print_float_info, arm_register_type, convert_to_extended)
8960 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8961 (arm_extract_return_value, arm_register_name): Delete declarations.
8962 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8963 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8964 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8965 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8966 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8967 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8968 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8969 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8970 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8971 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8972 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8973 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8974 interface.
8975 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8976 * remote-rdi.c remote-rdp.c: Likewise.
8977 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8978 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8979 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8980 definition.
8981
8982 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8983 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8984 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8985 from non-ARM_ prefixed definitions.
8986 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8987 all uses of above.
8988 * remote-rdi.c remote-rdp.c: Likewise.
8989 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8990
148754e5
RE
89912002-02-11 Richard Earnshaw <rearnsha@arm.com>
8992
8993 * arm-tdep.c (arm_frameless_function_invocation)
8994 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8995 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8996 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8997 (arm_pop_frame, arm_get_next_pc): Make static.
8998 (arm_gdbarch_init): Register above in gdbarch structure.
8999 (arm_read_fp): Renamed from arm_target_read_fp.
9000 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9001 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9002 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9003 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9004 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9005 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9006 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9007 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9008 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9009 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9010 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9011
434d2d4f
DJ
90122002-02-10 Daniel Jacobowitz <drow@mvista.com>
9013
9014 * symtab.c (compare_search_syms): New function.
9015 (sort_search_symbols): New function.
9016 (search_symbols): Sort symbols after searching rather than
9017 before.
9018
55241689
AC
90192002-02-10 Andrew Cagney <ac131313@redhat.com>
9020
9021 * NEWS: Linux -> GNU/Linux.
9022
028c194b
AC
90232002-02-10 Andrew Cagney <ac131313@redhat.com>
9024
9025 * gdbarch.sh: For for level one methods, disallow a definition
9026 when partially multi-arched. Add comments explaining rationale.
9027 * gdbarch.h: Re-generate.
9028
6acf50cd
AC
90292002-02-10 Andrew Cagney <ac131313@redhat.com>
9030
9031 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9032 multi-arch partial.
aaa38bb5 9033
50248794
AC
90342002-02-10 Andrew Cagney <ac131313@redhat.com>
9035
9036 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9037 field. Use diff -u.
9038 * gdbarch.c: Re-generate.
9039
c30e0066
AC
90402002-02-10 Andrew Cagney <ac131313@redhat.com>
9041
9b56c5f3 9042 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9043 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9044 partial.
9045
6e6d6484
AC
90462002-02-10 Andrew Cagney <ac131313@redhat.com>
9047
9048 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9049 multi-arch partial.
9050 (PUSH_ARGUMENTS): Switch to using predefault.
9051 * gdbarch.c: Regenerate.
9052
c203844d
AC
90532002-02-10 Andrew Cagney <ac131313@redhat.com>
9054
9055 * valops.c (PUSH_ARGUMENTS): Delete definition.
9056 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9057 partial. Default to default_push_arguments.
9058 * gdbarch.h, gdbarch.c: Regenerate.
9059
b5a2688f
AC
90602002-02-09 Andrew Cagney <ac131313@redhat.com>
9061
9062 * defs.h (throw_exception): Rename return_to_top_level. Update
9063 comments.
9064 * utils.c (error_stream, internal_verror, quit): Ditto.
9065 * top.c (throw_exception, catcher): Ditto.
9066 * sparclet-rom.c (sparclet_load): Ditto.
9067 * remote.c (interrupt_query, minitelnet): Ditto.
9068 * remote-sds.c (interrupt_query): Ditto.
9069 * remote-mips.c (mips_error, mips_kill): Ditto.
9070 * ocd.c (interrupt_query): Ditto.
9071 * monitor.c (monitor_interrupt_query): Ditto.
9072 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9073 * target.h: Update comment.
aaa38bb5 9074
b5a2688f 9075 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9076
2fa5c1e0
AC
90772002-02-09 Andrew Cagney <ac131313@redhat.com>
9078
9079 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9080 default_double_format.
9081 * gdbarch.h, gdbarch.c: Re-generate.
9082 * findvar.c (floatformat_unknown): Delete variable definition.
9083 * doublest.h (floatformat_unknown): Delete variable declaration.
9084
da966255
JB
90852002-02-09 Jim Blandy <jimb@redhat.com>
9086
9087 * stabsread.c (read_type): Add code to parse Sun's syntax for
9088 prototyped function types.
9089
123a4891
AC
90902002-02-09 Andrew Cagney <ac131313@redhat.com>
9091
9092 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9093 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9094
fb39c8f3
PS
90952002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9096
9097 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9098 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9099 now _initialize_xcoffsolib gets called again and overrides the
9100 commands from solib.c in a native configuration.
9101
0b87a11d
MK
91022002-02-09 Mark Kettenis <kettenis@gnu.org>
9103
9104 * doublest.c (store_typed_floating): Don't try to return a value.
9105 Fixes PR gdb/290.
9106
bdc2fc72
JB
91072002-02-08 Jim Blandy <jimb@redhat.com>
9108
9109 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9110 is prototyped and has no arguments, print its argument list as
9111 `(void)'.
9112
da69bbcf
CD
91132002-02-08 Chris Demetriou <cgd@broadcom.com>
9114
9115 * MAINTAINERS (write-after-approval): Add myself.
9116 (paper-trail): I've escaped!
aaa38bb5 9117
b69571f5
CF
91182002-02-08 Christopher Faylor <cgf@redhat.com>
9119
9120 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9121 changes.
9122 (_initialize_check_for_gdb_ini): Ditto.
9123
f6871398
MH
91242002-02-08 Martin M. Hunt <hunt@redhat.com>
9125
9126 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9127 xaprintf -> xasprintf.
9128
4e52d31c
PM
91292002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9130
9131 * win32-nat.c: Remove use of printf and sprintf functions.
9132
39bbf761
RE
91332002-02-08 Richard Earnshaw <rearnsha@arm.com>
9134
9135 * arm-tdep.c (arm_frame_chain_valid): Make static.
9136 (arm_push_arguments): Likewise.
9137 (arm_gdbarch_init): New function.
9138 (_initialize_arm_tdep): Call it.
9139 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9140 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9141 (FRAME_CHAIN_VALID): Delete.
9142 (arm_frame_chain_valid): Delete declaration.
9143 (PUSH_ARGUMENTS): Delete.
9144 (arm_push_arguments): Delete declaration.
9145 (CALL_DUMMY_P): Delete.
9146
9c9532c9
CV
91472002-02-08 Andrew Cagney <ac131313@redhat.com>
9148 Corinna Vinschen <vinschen@redhat.com>
9149
9150 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9151 on builtin float types.
9152
4e8f7a8b
DJ
91532002-02-08 Daniel Jacobowitz <drow@mvista.com>
9154
9155 * utils.c: Include <curses.h> before "bfd.h".
9156 * tui/tui-hooks.c: Likewise.
9157 * tui/tui.c: Likewise.
9158 * tui/tuiCommand.c: Likewise.
9159 * tui/tuiData.c: Likewise.
9160 * tui/tuiDataWin.c: Likewise.
9161 * tui/tuiDisassem.c: Likewise.
9162 * tui/tuiGeneralWin.c: Likewise.
9163 * tui/tuiIO.c: Likewise.
9164 * tui/tuiLayout.c: Likewise.
9165 * tui/tuiRegs.c: Likewise.
9166 * tui/tuiSource.c: Likewise.
9167 * tui/tuiSourceWin.c: Likewise.
9168 * tui/tuiStack.c: Likewise.
9169 * tui/tuiWin.c: Likewise.
9170
cd4bffcf
EZ
91712002-02-07 Elena Zannoni <ezannoni@redhat.com>
9172
9173 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9174 to include space for pseudoregs as well. Update loops accordingly.
9175 (sh_fp_frame_init_saved_regs): Ditto.
9176 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9177
26806ce2
AC
91782002-02-07 Andrew Cagney <ac131313@redhat.com>
9179
9180 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9181 Add Richard Earnshaw to Arm maintainers.
9182
97fdab62
AC
91832002-02-07 Andrew Cagney <ac131313@redhat.com>
9184
a6b98203
AC
9185 * defs.h (warning_begin): Delete declaration.
9186
97fdab62
AC
9187 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9188 Delete macro.
9189
78b29b40
MS
91902002-02-07 Michael Snyder <msnyder@redhat.com>
9191
aaa38bb5 9192 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9193 Logic bug, remove misplaced else.
9194
d8849953
KD
91952002-02-07 Klee Dienes <klee@apple.com>
9196
9197 * fork-inferior.c (fork_inferior): Add '!' to the list of
9198 characters that need to be quoted when building a string for the
9199 shell. Quote '!' specifically with a backslash, since CSH chokes
9200 when trying to evaluate "str!str".
aaa38bb5 9201
095778a0
NC
92022002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9203
9204 * rdi-share/host.h: Only provide a typedef for bool if it is not
9205 defined.
9206
1900040c
MS
92072002-02-04 Michael Snyder <msnyder@redhat.com>
9208
9209 * breakpoint.h (enum bptype): Add new overlay event bp type.
9210 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9211
1900040c
MS
9212 * breakpoint.c (create_internal_breakpoint): New function.
9213 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9214 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9215 (create_thread_event_breakpoint): Ditto.
9216 (create_solib_event_breakpoint): Ditto.
9217 (create_overlay_event_breakpoint): New function.
9218 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9219 (update_breakpoints_after_exec): Delete and re-initialize
9220 overlay event breakpoints after an exec. Add FIXME comment
9221 about longjmp breakpoint.
9222 (print_it_typical): Ignore overlay event breakpoints.
9223 (print_one_breakpoint): Ditto.
9224 (mention): Ditto.
9225 (bpstat_what): Do not stop for overlay event breakpoints.
9226 (delete_breakpoint): Don't delete overlay event breakpoints.
9227 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9228 (breakpoint_re_set): Re-create overlay event breakpoint.
9229
9230 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9231 (overlay_manual_command): Disable overlay breakpoints.
9232 (overlay_off_command): Disable overlay breakpoints.
9233
082fc60d
RE
92342002-02-06 Richard Earnshaw <rearnsha@arm.com>
9235
9236 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9237 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9238 to here from config/tm-arm.h.
9239 (coff_sym_is_thumb): Make static.
9240 (arm_elf_make_msymbol_special): New function.
9241 (arm_coff_make_msymbol_special): New function.
9242 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9243 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9244 (coff_sym_is_thumb): Delete declaration.
9245 (arm_elf_make_msymbol_special): Declare.
9246 (arm_coff_make_msymbol_special): Declare.
9247 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9248 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9249
039c5766
RE
92502002-02-06 Richard Earnshaw <rearnsha@arm.com>
9251
9252 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9253
92542002-02-06 Richard Earnshaw <rearnsha@arm.com>
9255
9256 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9257 * gdbarch.c gdbarch.h: Regenerate.
9258 * arch-utils.c (default_print_float_info): New function.
9259 * arch-utils.h (default_print_float_info): Prototype it.
9260 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9261 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9262 (PRINT_FLOAT_INFO): Document it.
9263
9264 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9265 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9266 (PRINT_FLOAT_INFO): Define.
9267
58fa08f0
PM
92682002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9269
aaa38bb5 9270 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9271 Add typecast to sprintf argument to suppress a warning.
9272
7393af7c
PM
92732002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9274
58fa08f0 9275 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9276 to allow easier handling of pass state.
9277 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9278 that gives exception name and address.
9279 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9280 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9281 exceptions added.
aaa38bb5
AJ
9282 (child_continue): Correctly report continue_status.
9283 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9284 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9285 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9286 the exception should be passed to debuggee or not.
9287
6af4589c
MS
92882002-02-05 Michael Snyder <msnyder@redhat.com>
9289
9290 * regcache.c (fetch_register): Call target_fetch_register
9291 only if we don't call FETCH_PSEUDO_REGISTER.
9292 (store_register): Call target_store_register only if we
9293 don't call STORE_PSEUDO_REGISTER.
9294
a2cf933a
EZ
92952002-02-05 Elena Zannoni <ezannoni@redhat.com>
9296
9297 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9298 ELF_MAKE_MSYMBOL_SPECIAL.
9299 * gdbarch.c, gdbarch.h: Regenerate.
9300 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9301 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9302 * elfread.c (elf_symtab_read): Compile use of
9303 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9304 multiarched.
9305 * coffread.c (coff_symtab_read): Ditto, for
9306 COFF_MAKE_MSYMBOL_SPECIAL.
9307
6bb7be43
JB
93082002-02-05 Jim Blandy <jimb@redhat.com>
9309
9310 * solib-svr4.c (svr4_truncate_ptr): New function.
9311 (svr4_relocate_section_addresses): Do the address arithmetic with
9312 the appropriate truncation for target addresses, even when
9313 CORE_ADDR is larger than a target address.
9314
e18651ec
DJ
93152002-02-05 Daniel Jacobowitz <drow@mvista.com>
9316
9317 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9318 to (int *).
9319
6b2725be
DJ
93202002-02-05 Daniel Jacobowitz <drow@mvista.com>
9321
9322 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9323 code.
9324
fca9e603
DJ
93252002-02-05 Daniel Jacobowitz <drow@mvista.com>
9326
9327 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9328
6c537a52
DJ
93292002-02-05 Daniel Jacobowitz <drow@mvista.com>
9330
9331 * gdbserver/linux-low.c: Remove unused include files.
9332
d844cde6
DJ
93332002-02-05 Daniel Jacobowitz <drow@mvista.com>
9334
9335 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9336 (read_inferior_memory): Use it.
9337 (write_inferior_memory): Likewise.
9338
d07c63e7
DJ
93392002-02-05 Daniel Jacobowitz <drow@mvista.com>
9340
9341 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9342 grubbing through sys_errlist.
9343
da6d8c04
DJ
93442002-02-05 Daniel Jacobowitz <drow@mvista.com>
9345
9346 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9347
5b421780
PM
93482002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9349 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9350
9f60d481
AC
93512002-02-04 Andrew Cagney <ac131313@redhat.com>
9352
9353 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9354 (do_sfunc, set_cmd_sfunc): New functions.
9355
9356 * command.h (struct cmd_list_element): Add field func.
9357 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9358 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9359 * cli/cli-decode.h: Ditto.
9360
9361 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9362 (help_all, help_cmd_list): Ditto.
9363 (find_cmd, complete_on_cmdlist): Ditto.
9364 * top.c (execute_command): Ditto.
9365
9366 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9367 function.sfunc.
9368
9369 * infcmd.c (notice_args_read): Fix function signature.
9370
9371 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9372 * cli/cli-decode.c (add_set_cmd): Ditto.
9373 * utils.c (initialize_utils): Ditto.
9374 * maint.c (_initialize_maint_cmds): Ditto.
9375 * infrun.c (_initialize_infrun): Ditto.
9376 * demangle.c (_initialize_demangler): Ditto.
9377 * remote.c (add_packet_config_cmd): Ditto.
9378 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9379 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9380 * proc-api.c (_initialize_proc_api): Ditto.
9381 * kod.c (_initialize_kod): Ditto.
9382 * valprint.c (_initialize_valprint): Ditto.
9383 * top.c (init_main): Ditto.
9384 * infcmd.c (_initialize_infcmd): Ditto.
9385 * corefile.c (_initialize_core): Ditto.
9386 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9387 * arch-utils.c (initialize_current_architecture): Ditto.
9388 (_initialize_gdbarch_utils): Ditto.
9389 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9390
9391 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9392 * wince.c (_initialize_inftarg): Ditto.
9393 * symfile.c (_initialize_symfile): Ditto.
9394 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9395 * language.c (_initialize_language): Ditto.
9396 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9397
f9ba0717
MS
93982002-02-04 Michael Snyder <msnyder@redhat.com>
9399
9400 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9401
0c74b2a7
DJ
94022002-02-04 Daniel Jacobowitz <drow@mvista.com>
9403
9404 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9405 Add rules for building the register data files.
9406
c638789f
DJ
94072002-02-04 Daniel Jacobowitz <drow@mvista.com>
9408
9409 * regformats/regdat.sh: Add braces to the definition of
9410 expedite_regs_${arch}.
9411
db253027
DJ
94122002-02-04 Daniel Jacobowitz <drow@mvista.com>
9413
9414 * regformats/regdef.h (struct reg): Add comment describing the
9415 requirements for offset and size fields.
9416
206be19c
AS
94172002-02-04 Andreas Schwab <schwab@suse.de>
9418
9419 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9420 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9421
181c1381
RE
94222002-02-04 Richard Earnshaw <rearnsha@arm.com>
9423
9424 * gdbarch.sh (copyright): Update years in generated header.
9425 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9426 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9427 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9428 * dbxread.c: Likewise.
9429 * dwarfread.c: Likewise.
9430 * elfread.c: Likewise.
9431 * somread.c: Likewise.
9432
9433 * arm-tdep.c (arm_smash_text_address): New function.
9434 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9435
fa4ba8da
PM
94362002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9437
9438 Add support for hardware watchpoints on win32 native.
aaa38bb5 9439 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9440 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9441 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9442 of debug registers.
9443 (debug_registers_changed): New variable. Reflects when debug registers
9444 are changed and need to be written to inferior.
aaa38bb5 9445 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9446 was set, used when new threads are created.
9447 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9448 i386-nat code.
9449 (thread_rec): Set dr array if id is the thread of current_event .
9450 (child_continue, child_resume): Change the debug registers for all
9451 threads if debug_registers_changed.
9452 (child_add_thread): Change the debug registers if debug_registers_used.
9453 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9454 Link nm.h to new nm-cygwin.h file.
9455 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9456 of hardware registers.
9457
a73c86fb
AC
94582002-02-03 Andrew Cagney <ac131313@redhat.com>
9459
9460 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9461 Restore behavour broken by 2002-01-20 Andrew Cagney
9462 <ac131313@redhat.com> IEEE_FLOAT removal.
9463
acf5ed49
DJ
94642002-02-03 Daniel Jacobowitz <drow@mvista.com>
9465
9466 * c-valprint.c (c_val_print): Pass a proper valaddr to
9467 cp_print_class_method.
9468 * valops.c (search_struct_method): If there is only one method
9469 and args is NULL, return that method.
9470
493d28d5
DJ
94712002-02-03 Daniel Jacobowitz <drow@mvista.com>
9472
9473 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9474 accessing tag_name directly.
9475
7495dfdb
DJ
94762002-02-03 Daniel Jacobowitz <drow@mvista.com>
9477
9478 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9479 of accessing tag_name directly.
9480
dd6bda65
DJ
94812002-02-03 Daniel Jacobowitz <drow@mvista.com>
9482
9483 PR gdb/280
9484 * gdbtypes.c (replace_type): New function.
9485 * gdbtypes.h (replace_type): Add prototype.
9486 * stabsread.c (read_type): Use replace_type.
9487
88fe217c
RE
94882002-02-03 Richard Earnshaw <rearnsha@arm.com>
9489
9490 * Makefile.in (memattr.o): Add missing dependencies rule.
9491
e5d66720
PS
94922002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9493
9494 * breakpoint.c (break_at_finish_command): Really export.
9495 (break_at_finish_at_depth_command): Ditto.
9496 (tbreak_at_finish_command): Ditto.
9497 * hppa-tdep.c: Include completer.h.
9498 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9499 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9500
fffee0be
AC
95012002-02-01 Andrew Cagney <ac131313@redhat.com>
9502
9503 * utils.c (do_write): New function.
9504 (error_stream): Rewrite combining the code from error_begin and
9505 verror.
9506 (verror): Rewrite using error_stream.
9507 (error_begin): Delete function.
9508
255e7dbf
AC
95092002-02-01 Andrew Cagney <ac131313@redhat.com>
9510
9511 * utils.c (error_begin): Make static.
9512 * defs.h (error_begin): Delete declaration.
9513
9514 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9515 (decode_line_1): Use cplusplus_error instead of error_begin,
9516 cplusplus_hint and return_to_top_level.
9517 * coffread.c (coff_symfile_read): Use error instead of error_begin
9518 and return_to_top_level.
9519 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9520
ddfe3c15
AC
95212002-02-01 Andrew Cagney <ac131313@redhat.com>
9522
9523 * language.h (type_error, range_error): Make string parameter
9524 constant.
9525 * language.c (warning_pre_print): Delete extern declaration.
9526 * dwarfread.c (warning_pre_print): Ditto.
9527 * language.c (type_error, range_error): Rewrite to use verror and
9528 vwarning instead of warning_begin.
9529
03ac34d5
MS
95302002-02-01 Michael Snyder <msnyder@redhat.com>
9531
261c4ca2
MS
9532 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9533 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9534
e00d1dc8
AC
95352002-02-01 Andrew Cagney <ac131313@redhat.com>
9536
9537 * command.h (NO_FUNCTION): Delete macro.
9538 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9539 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9540 * tracepoint.c (_initialize_tracepoint): Ditto.
9541 * cli/cli-decode.c (add_set_cmd): Ditto.
9542 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9543
76b79d6e
DJ
95442002-02-01 Daniel Jacobowitz <drow@mvista.com>
9545
9546 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9547 Update ``this'' pointer when calling virtual functions.
9548
799f9e91
MS
95492002-02-01 Michael Snyder <msnyder@redhat.com>
9550
c7bd442c 9551 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9552 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9553
3cf384d4
DJ
95542002-02-01 Daniel Jacobowitz <drow@mvista.com>
9555
9556 * regformats/reg-arm.dat: New file.
9557 * regformats/reg-i386.dat: New file.
9558 * regformats/reg-ia64.dat: New file.
9559 * regformats/reg-m68k.dat: New file.
9560 * regformats/reg-mips.dat: New file.
9561 * regformats/reg-ppc.dat: New file.
9562 * regformats/reg-sh.dat: New file.
9563 * regformats/regdef.h: New file.
9564 * regformats/regdat.sh: New file.
9565
0defa245
RE
95662002-02-01 Richard Earnshaw <reanrsha@arm.com>
9567
9568 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9569 (arm_frame_args_address, arm_frame_locals_address): New functions.
9570 (arm_frame_num_args): New function.
9571 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9572 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9573 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9574
405f26e6
MS
95752002-01-31 Michael Snyder <msnyder@redhat.com>
9576
502fd408
MS
9577 * breakpoint.c (break_at_finish_command): Export.
9578 (break_at_finish_at_depth_command): Export.
9579 (tbreak_at_finish_command): Export.
9580 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9581 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9582 "tbreak" commands, which are HPPA specific.
9583
7d35e135
MS
9584 * printcmd.c (disassemble_command): Remove an ancient
9585 artifact of an old merge.
9586
aaa38bb5 9587 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9588 Define enum constant values for overlay mode.
9589 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9590 (overlay_is_mapped, overlay_auto_command,
9591 overlay_manual_command): Ditto.
d874f1e2 9592
aaa38bb5
AJ
9593 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9594 breakpoint_here_p, breakpoint_inserted_here_p,
9595 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9596 describe_other_breakpoints, check_duplicates, clear_command):
9597 Coding standard fixes.
9598
8add0441 9599 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9600 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9601 code: check bfd SEC_READONLY flag for section.
9602
e351066e
AC
96032002-01-31 Andrew Cagney <ac131313@redhat.com>
9604
7d35e135 9605 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9606
8a48e967
DJ
96072002-01-30 Daniel Jacobowitz <drow@mvista.com>
9608
9609 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9610 data symbols, since we search based on textlow and texthigh.
9611 (find_pc_sect_symtab): Likewise.
9612
f5a96129
AC
96132002-01-30 Andrew Cagney <ac131313@redhat.com>
9614
9615 * defs.h (vwarning): Declare.
f5a96129
AC
9616 * utils.c (vwarning): New function.
9617 (warning): Call vwarning.
9618 (warning_begin): Delete function.
9619
9620 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9621 the warning message.
9622 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9623 warning_begin.
9624
cefd4ef5
MS
96252002-01-30 Michael Snyder <msnyder@redhat.com>
9626
1a703748
MS
9627 * NEWS: Mention "set trust-readonly-sections" command.
9628 Mention generate-core-file command.
cefd4ef5 9629
3a11626d
MS
96302002-01-15 Michael Snyder <msnyder@redhat.com>
9631
9632 * target.c: New command, "set trust-readonly-sections on".
9633 (do_xfer_memory): Honor the suggestion to trust readonly sections
9634 by reading them from the object file instead of from the target.
9635 (initialize_targets): Register command "set trust-readonly-sections".
9636
d1c7e53b
AC
96372002-01-29 Andrew Cagney <ac131313@redhat.com>
9638
9639 * parse.c (target_map_name_to_register): Simplify, search regs and
9640 pseudo-regs using a single loop.
9641
e2c9a72c
AC
96422002-01-30 Andrew Cagney <ac131313@redhat.com>
9643
9644 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9645
69824b4e
MK
96462002-01-15 Rodney Brown <rbrown64@csc.com.au>
9647
9648 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9649 * config/i386/i386v42mp.mh: Add i387-nat.o .
9650 * i386v4-nat.c: Include i387-nat.h.
9651 (supply_fpregset): Use i387_supply_fsave.
9652 (fill_fpregset): Use i387_fill_fsave.
9653
6eb69eab
RE
96542002-01-30 Richard Earnshaw <rearnsha@arm.com>
9655
9656 * arm-tdep.c (arm_call_dummy_words): Define.
9657 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9658 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9659 (CALL_DUMMY_WORDS): Define.
9660 (arm_call_dummy_words): Declare.
9661 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9662 (arm_linux_call_dummy_words): Declare.
9663
9852326a
AS
96642002-01-30 Andreas Schwab <schwab@suse.de>
9665
9666 * m68klinux-nat.c: Fix last change to use regcache_collect
9667 instead of referencing registers[] directly.
9668
977a3030
AC
96692002-01-29 Andrew Cagney <ac131313@redhat.com>
9670
9671 * parse.c (target_map_name_to_register): Delete code wrapped in
9672 #ifdef REGISTER_NAME_ALIAS_HOOK.
9673
2076c72b
MS
96742002-01-28 Michael Snyder <msnyder@redhat.com>
9675
9676 * regcache.c (legacy_read_register_gen): Need to be able to
9677 read pseudo-register as well as real register.
9678 (legacy_write_register_gen): Ditto.
9679
8fcc723b
AC
96802002-01-28 Andrew Cagney <ac131313@redhat.com>
9681
9682 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9683 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9684 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9685 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9686 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9687 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9688 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9689 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9690 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9691 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9692 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9693 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9694 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9695 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9696 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9697 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9698 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9699 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9700 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9701 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9702
afe64c1a
AC
97032002-01-28 Andrew Cagney <ac131313@redhat.com>
9704
9705 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9706 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9707 (initialize_current_architecture): Update target_byte_order using
9708 information from BFD.
aaa38bb5 9709 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9710 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9711
75bc7ddf
AC
97122002-01-28 Andrew Cagney <ac131313@redhat.com>
9713
9714 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9715 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9716
9717 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9718 #ifdef INVALID_FLOAT.
9719 * infcmd.c (do_registers_info): Ditto.
9720 * values.c (unpack_double): Ditto. Add comment.
9721
9722 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9723 already commented out.
9724
0280a90a
AS
97252002-01-26 Andreas Schwab <schwab@suse.de>
9726
9727 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9728 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9729 registers and add support for PTRACE_GETREGS.
9730
7072a954
AC
97312002-01-24 Andrew Cagney <ac131313@redhat.com>
9732
9733 GDB 5.1.1 released from 5.1 branch.
9734 * NEWS: Add 5.1.1 news.
9735 * README: Sync with 5.1 branch.
9736
86f902e0
FF
97372002-01-23 Fred Fish <fnf@redhat.com>
9738
9739 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9740 stabstring on initial malloc. Reallocing will copy it for us,
9741 if necessary.
9742
8af51c36
EZ
97432002-01-23 Elena Zannoni <ezannoni@redhat.com>
9744
aaa38bb5 9745 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9746 (HFILES_NO_SRCDIR): Remove hpread.h.
9747 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9748 (hpread.o): Update dependencies.
9749 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9750
9751 * hp-psymtab-read.c: Remove file.
9752 * hp-symtab-read.c: Remove file.
9753 * hpread.h: Remove file.
9754
9755 * hpread.c: Merge all contents of hp-psymtab-read.c,
9756 hp-symtab-read.c and hpread.h into this file, as it was prior to
9757 January 1999.
9758
9759 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9760 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9761 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9762 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9763
dc5cfeb6
EZ
97642002-01-23 Elena Zannoni <ezannoni@redhat.com>
9765
9766 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9767 fill_gregset): Call gdbarch_tdep() just once, assign result to
9768 variable and use that, instead of calling the function several
9769 times.
9770
ea87b71b
AO
97712002-01-24 Alexandre Oliva <aoliva@redhat.com>
9772
9773 * configure.host: Accept sparcv9 as alias for sparc64.
9774 * configure.tgt: Likewise.
9775
13fc0c2f
KB
97762002-01-22 Kevin Buettner <kevinb@redhat.com>
9777
9778 * solib-aix5.c (build_so_list_from_mapfile)
9779 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9780 arguments is not reversed.
9781 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9782 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9783
7bd872fe
EZ
97842002-01-22 Elena Zannoni <ezannoni@redhat.com>
9785
9786 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9787 modified version of obsolete sh_fetch_pseudo_register.
9788 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9789 (sh4_register_read): New function.
9790 (sh_pseudo_register_write): New function. Renamed and modified
9791 version of obsolete sh_store_pseudo_register.
9792 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9793 (sh4_register_write): New function.
9794 (sh_gdbarch_init): Remove setting of gdbarch function
9795 fetch_pseudo_register and store_pseudo_register. Remove setting of
9796 register_convert_to_raw, register_convert_to_virtual,
9797 register_convertible.
9798 (sh_sh4_register_convertible): Delete. No longer needed. All is
9799 taken care by architecture specific functions
9800 register_read/register_write.
9801 (sh_sh4_register_convert_to_virtual): Make static.
9802 (sh_sh4_register_convert_to_raw): Ditto.
9803
069e84fd
AC
98042002-01-22 Andrew Cagney <ac131313@redhat.com>
9805
9806 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9807 (floatformat_is_nan, floatformat_mantissa): Ditto.
9808
9809 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9810 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9811 builtin_type_ieee_double_little,
9812 builtin_type_ieee_double_littlebyte_bigword,
9813 builtin_type_m68881_ext, builtin_type_i960_ext,
9814 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9815 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9816 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9817 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9818
211a4f69
CV
98192002-01-22 Corinna Vinschen <vinschen@redhat.com>
9820
9821 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9822 parameter. Set frameless flag if it exists and depended of
9823 whether the scanned function is frameless or not.
9824 (xstormy16_skip_prologue): If function is frameless, return
9825 result of xstormy16_scan_prologue().
9826 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9827 call.
9828
f81353e4
EZ
98292002-01-21 Elena Zannoni <ezannoni@redhat.com>
9830
9831 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9832 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9833 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9834 sh_sh4_register_byte, sh_sh4_register_raw_size,
9835 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9836 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9837 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9838 sh_store_pseudo_register, sh_do_pseudo_register): Call
9839 gdbarch_tdep() just once, assign result to variable and use that,
9840 instead of calling the function several times.
9841
63c73a17
MK
98422002-01-20 Mark Kettenis <kettenis@gnu.org>
9843
9844 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9845 macros instead of LAST_FPU_CTRL_REGNUM.
9846 (store_register): Likewise.
9847
39ad761d
JB
98482002-01-21 Jim Blandy <jimb@redhat.com>
9849
9850 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9851 is up-to-date before running the program, not just when a program
9852 exits.
9853
3d74b771
FF
98542002-01-21 Fred Fish <fnf@redhat.com>
9855
9856 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9857 when we have found all instructions we are looking for.
9858
966fbf70
RE
98592002-01-21 Richard Earnshaw <rearnsha@arm.com>
9860
9861 * arm-tdep.c (arm_register_name): New function.
9862 (arm_registers_names): Make static.
9863 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9864 (arm_register_name): Declare.
9865 (REGISTER_NAME): Use it.
9866
c3b4394c
RE
98672002-01-21 Richard Earnshaw <rearnsha@arm.com>
9868 Kevin Buettner <kevinb@redhat.com>
9869
9870 Convert arm targets to new FRAME interface.
9871 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9872 (arm_frame_find_save_regs): Delete.
9873 (arm_frame_init_saved_regs): New.
9874 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9875 Allocate extra_info as required. Convert all uses of fsr.regs
9876 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9877 to use extra_info.
9878 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9879 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9880 (check_prologue_cache, save_prologue_cache): Likewise.
9881 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9882 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9883 (FRAME_FIND_SAVED_REGS): Delete.
9884 (arm_frame_find_saved_regs): Delete prototype.
9885 (arm_frame_init_saved_regs): New prototype.
9886 (FRAME_INIT_SAVED_REGS): Define.
9887
61d99182
AC
98882002-01-20 Andrew Cagney <ac131313@redhat.com>
9889
9890 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9891
6aaea291
AC
98922002-01-20 Andrew Cagney <ac131313@redhat.com>
9893
9894 From Jeff Law <law@redhat.com>:
9895 * infttrace.c: Include <sys/pstat.h>.
9896 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9897 exec file if the ttrace equivalent fails.
9898
15f698d2
AC
98992002-01-20 Andrew Cagney <ac131313@redhat.com>
9900
9901 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9902 (closeLogFile): Ditto.
9903
f86ddd7c
MC
99042002-01-20 Michael Chastain <mec@shout.net>
9905
9906 * top.c (print_gdb_version): Bump copyright year to 2002.
9907
904507ce
AC
99082002-01-20 Andrew Cagney <ac131313@redhat.com>
9909
9910 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9911 Zannoni and Eli Zaretskii.
9912
d7f0b9ce
DJ
99132002-01-20 Daniel Jacobowitz <drow@mvista.com>
9914
9915 * buildsym.c: Update copyright years.
9916 * c-typeprint.c: Likewise.
9917 * dwarf2read.c: Likewise.
9918 * f-typeprint.c: Likewise.
9919 * gdbtypes.c: Likewise.
9920 * gdbtypes.h: Likewise.
9921 * hp-symtab-read.c: Likewise.
9922 * hpread.c: Likewise.
9923 * mdebugread.c: Likewise.
9924 * p-typeprint.c: Likewise.
9925
3fd3d7d2
AC
99262002-01-20 Andrew Cagney <ac131313@redhat.com>
9927
9928 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9929 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9930 byte-order selectable.
9931 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9932 * arch-utils.c: Ditto.
9933 (set_endian): Ditto.
9934 (set_endian_from_file): Ditto.
9935 * gdbserver/low-sim.c (create_inferior): Ditto.
9936 * gdbarch.sh: Ditto.
9937 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9938 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9939 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9940 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9941 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9942 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9943 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9944 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9945 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9946 macro definition.
9947 * config/mips/tm-wince.h: Remove #undef of macro
9948 TARGET_BYTE_ORDER_SELECTABLE.
9949 * config/sh/tm-wince.h: Ditto.
9950
b02dede2
DJ
99512002-01-20 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9954 member function fields. Add accessor macro
9955 TYPE_FN_FIELD_ARTIFICIAL.
9956 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9957 * c-typeprint.c (c_type_print_base): Skip artificial member
9958 functions.
9959
c3643761
DJ
99602002-01-20 Daniel Jacobowitz <drow@mvista.com>
9961
9962 * f-typeprint.c: Delete unused function f_type_print_args.
9963 * p-typeprint.c: Delete unused function pascal_type_print_args.
9964
8176bb6d
DJ
99652002-01-20 Daniel Jacobowitz <drow@mvista.com>
9966
9967 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9968 comment. Add ``artificial'' to ``union field_location''.
9969
9970 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9971
9972 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9973 * mdebugread.c (parse_symbol): Likewise.
9974 * stabsread.c (define_symbol): Likewise.
9975 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9976 initializing TYPE_FIELD_BITPOS to n (obsolete).
9977 (hpread_doc_function_type): Likewise.
9978 * hpread.c (hpread_function_type): Likewise.
9979
7fd60527
AC
99802002-01-20 Andrew Cagney <ac131313@redhat.com>
9981
9982 * configure.in (host_makefile_frag): Only require a host makefile
9983 fragment when a native build.
9984 * configure: Re-generate.
9985
c2f05ac9
AC
99862002-01-20 Andrew Cagney <ac131313@redhat.com>
9987
9988 * doublest.h (floatformat_from_type): Declare.
9989 * doublest.c (floatformat_from_type): New function.
9990 (convert_typed_floating): Use.
9991
9992 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9993 call to function floatformat_from_type.
9994
9995 * gdbarch.sh (IEEE_FLOAT): Delete.
9996 * gdbarch.h, gdbarch.c: Re-generate.
9997 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9998 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9999 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10000 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10001 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10002 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10003 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10004 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10005 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10006 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10007 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10008 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10009
10010 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10011 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10012 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10013 * sh-tdep.c (sh_gdbarch_init): Ditto.
10014 * mips-tdep.c (mips_gdbarch_init): Ditto.
10015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10016 * cris-tdep.c (cris_gdbarch_init): Ditto.
10017
abf22e64
AJ
100182002-01-20 Jiri Smid <smid@suse.cz>
10019
10020 * configure.host, configure.tgt: Support x86-64.
10021 * NEWS: Note new target x86-64.
10022
b7c4cbf8
AJ
10023 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10024 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10025 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10026 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10027 x86-64-linux-nat.o): Fix dependencies.
10028
82600034
AC
100292002-01-19 Andrew Cagney <ac131313@redhat.com>
10030
10031 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10032 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10033 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10034 * config/sparc/xm-sun4os4.h: Delete file.
10035 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10036
bbe5c628
AC
100372002-01-19 Andrew Cagney <ac131313@redhat.com>
10038
10039 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10040 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10041 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10042 * config/i386/i386lynx.mh (XM_FILE): Delete.
10043 * config/rs6000/xm-rs6000ly.h: Delete file.
10044 * config/sparc/xm-sparclynx.h: Delete file.
10045 * config/m68k/xm-m68klynx.h: Delete file.
10046 * config/i386/xm-i386lynx.h: Delete file.
10047 * config/xm-lynx.h: Delete file.
10048 * config/djgpp/fnchange.lst: Update.
10049
f8453e34
JT
100502002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10051
10052 * alpha-tdep.c (alpha_register_byte): New function.
10053 (alpha_register_raw_size): Ditto.
10054 (alpha_register_virtual_size): Ditto.
10055 (alpha_skip_prologue_internal): Renamed from
10056 alpha_skip_prologue.
10057 (alpha_skip_prologue): New version that calls
10058 alpha_skip_prologue_internal.
10059 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10060 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10061 second argument from alpha_skip_prologue.
10062 (REGISTER_BYTE): Use alpha_register_byte.
10063 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10064 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10065 (FRAMELESS_FUNCTION_INVOCATION): Use
10066 generic_frameless_function_invocation_not.
10067 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10068 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10069
52d9e613
AC
100702002-01-19 Andrew Cagney <ac131313@redhat.com>
10071
10072 * config/mips/xm-news-mips.h: Delete file.
10073 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10074
10075 * config/m88k/xm-m88k.h: Delete file.
10076 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10077 * config/m88k/xm-delta88v4.h: Ditto.
10078 * config/m88k/xm-delta88.h: Ditto.
10079
10080 * config/alpha/xm-fbsd.h: Delete file.
10081 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10082
10083 * config/sparc/xm-sparc.h: Delete file.
10084 * Makefile.in (xm-sun4os4.h): Delete dependency.
10085 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10086 * config/sparc/xm-sun4os4.h: Ditto.
10087 * config/sparc/xm-linux.h: Ditto.
10088
10089 * config/i386/xm-windows.h: Delete file.
10090
2d1b2124
AC
100912002-01-19 Andrew Cagney <ac131313@redhat.com>
10092
10093 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10094 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10095
ee1f65f0
JT
100962002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10097
10098 * alpha-tdep.c (alpha_call_dummy_words): New.
10099 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10100 (CALL_DUMMY_P): Define.
10101 (CALL_DUMMY_WORDS): Define.
10102 (SIZEOF_CALL_DUMMY_WORDS): Define.
10103
98081e55
PB
101042002-01-19 Per Bothner <per@bothner.com>
10105
10106 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10107 isn't NULL, which can happen with some gcj-3.x-produced code.
10108
0d056799
JT
101092002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10110
10111 * alpha-tdep.c (alpha_register_virtual_type): New function.
10112 (alpha_init_frame_pc_first): Ditto.
10113 (alpha_fix_call_dummy): Ditto.
10114 (alpha_store_struct_return): Ditto.
10115 (alpha_extract_struct_value_address): Ditto.
10116 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10117 alpha_register_virtual_type.
10118 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10119 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10120 alpha_extract_struct_value_address.
10121 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10122 (INIT_FRAME_PC): Use init_frame_pc_noop.
10123 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10124
4604bcad
MK
101252002-01-19 Mark Kettenis <kettenis@gnu.org>
10126
10127 * i386gnu-nat.c: Include "i386-tdep.h".
10128 (fetch_fpregs): Simplify code dealing with uninitialized floating
10129 point states such that it doesn't require FP7_REGNUM.
10130
140f9984
JT
101312002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10132
abf22e64
AJ
10133 * alpha-tdep.c (frame_extra_info): New.
10134 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10135 frame->extra_info.
10136 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10137 (alpha_frame_saved_pc): Use frame->extra_info.
10138 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10139 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10140 (init_extra_frame_info): Rename to...
10141 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10142 (alpha_print_extra_frame_info): New function.
140f9984
JT
10143 (alpha_frame_locals_address): Ditto.
10144 (alpha_frame_args_address): Ditto.
abf22e64 10145 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10146 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10147 alpha_frame_args_address.
abf22e64 10148 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10149 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10150 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10151 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10152 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10153 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10154
d734c450
JT
101552002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10156
10157 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10158 (alpha_cannot_fetch_register): Ditto.
10159 (alpha_cannot_store_register): Ditto.
10160 (alpha_register_convertible): Ditto.
10161 (alpha_use_struct_convention): Ditto.
10162 * config/alpha/tm-alpha.h: Update copyright years.
10163 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10164 (INNER_THAN): Use core_addr_lessthan.
10165 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10166 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10167 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10168 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10169 (FRAME_CHAIN): Remove unnecessary cast.
10170
b4ceaee6
AC
101712002-01-18 Andrew Cagney <ac131313@redhat.com>
10172
10173 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10174 obsolete.
10175
0a65a603
AC
101762002-01-18 Andrew Cagney <ac131313@redhat.com>
10177
10178 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10179 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10180 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10181 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10182 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10183 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10184 * x86-64-linux-nat.c: Ditto.
10185
636a6dfc
JT
101862002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10187
abf22e64 10188 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10189 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10190 (REGISTER_NAME): Define.
10191
acceddb6
JT
101922002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10193
10194 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10195
ec32e4be
JT
101962002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10197
10198 * alpha-tdep.c: Update copyright years.
10199 (alpha_next_pc): New function.
10200 (alpha_software_single_step): Ditto.
10201 * config/alpha/tm-alpha.h: Add prototype for
10202 alpha_software_single_step.
10203
e771a871
JT
102042002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10205
10206 * alphabsd-nat.c: Update copyright years.
10207 (fill_gregset): Use regcache_collect.
10208 (fill_fpregset): Likewise.
10209 (fetch_inferior_registers): Only fetch integer registers
10210 if requested to do so.
10211 (store_inferior_registers): Only store integer registers
10212 if requested to do so.
10213
7708fa01
AC
102142002-01-17 Andrew Cagney <ac131313@redhat.com>
10215
10216 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10217 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10218 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10219 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10220 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10221 * config/arm/linux.mh (XDEPFILES): Delete.
10222 * config/arm/nbsd.mh (XDEPFILES): Delete.
10223 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10224 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10225 * config/i386/i386m3.mh (XDEPFILES): Delete.
10226 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10227 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10228 * config/i386/fbsd.mh (XDEPFILES): Delete.
10229 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10230 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10231 * config/i386/i386v4.mh (XDEPFILES): Delete.
10232 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10233 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10234 * config/i386/i386aix.mh (XDEPFILES): Delete.
10235 * config/i386/go32.mh (XDEPFILES): Delete.
10236 * config/i386/cygwin.mh (XDEPFILES): Delete.
10237 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10238 * config/i386/i386mach.mh (XDEPFILES): Delete.
10239 * config/i386/i386v32.mh (XDEPFILES): Delete.
10240 * config/i386/linux.mh (XDEPFILES): Delete.
10241 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10242 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10243 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10244 * config/i386/i386sco.mh (XDEPFILES): Delete.
10245 * config/i386/i386v.mh (XDEPFILES): Delete.
10246 * config/i386/nbsd.mh (XDEPFILES): Delete.
10247 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10248 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10249 * config/i386/symmetry.mh (XDEPFILES): Delete.
10250 * config/i386/obsd.mh (XDEPFILES): Delete.
10251 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10252 * config/ia64/linux.mh (XDEPFILES): Delete.
10253 * config/ia64/aix.mh (XDEPFILES): Delete.
10254 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10255 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10256 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10257 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10258 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10259 * config/m68k/linux.mh (XDEPFILES): Delete.
10260 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10261 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10262 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10263 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10264 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10265 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10266 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10267 * config/m88k/delta88.mh (XDEPFILES): Delete.
10268 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10269 * config/m88k/m88k.mh (XDEPFILES): Delete.
10270 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10271 * config/mips/linux.mh (XDEPFILES): Delete.
10272 * config/mips/irix6.mh (XDEPFILES): Delete.
10273 * config/mips/irix5.mh (XDEPFILES): Delete.
10274 * config/mips/irix4.mh (XDEPFILES): Delete.
10275 * config/mips/irix3.mh (XDEPFILES): Delete.
10276 * config/mips/decstation.mh (XDEPFILES): Delete.
10277 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10278 (NATDEPFILES): Move core-aout.o to here.
10279 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10280 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10281 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10282 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10283 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10284 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10285 * config/pa/hpux11.mh (XDEPFILES): Delete.
10286 * config/powerpc/aix.mh (XDEPFILES): Delete.
10287 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10288 * config/powerpc/linux.mh (XDEPFILES): Delete.
10289 * config/romp/rtbsd.mh: Rename XDEPFILES.
10290 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10291 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10292 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10293 * config/s390/s390.mh (XDEPFILES): Delete.
10294 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10295 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10296 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10297 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10298 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10299 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10300 * config/sparc/linux.mh (XDEPFILES): Delete.
10301 * config/vax/vaxult.mh (XDEPFILES): Delete.
10302 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10303 * Makefile.in (DEPFILES): Remove XDEPFILES.
10304
375fc983
AC
103052002-01-17 Andrew Cagney <ac131313@redhat.com>
10306
10307 * utils.c (internal_verror): Fix comments, default is yes not no.
10308 Update queries to match. Default to quit and dump core.
10309
8926118c
AC
103102002-01-17 Andrew Cagney <ac131313@redhat.com>
10311
10312 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10313 copyright.
10314 * defs.h, event-top.c, gdbcmd.h: Ditto.
10315 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10316 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10317 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10318 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10319 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10320 * mi/mi-main.c:Ditto.
10321
10322 * stack.c, symfile.c: Update copyright.
10323
45b7b345
DJ
103242002-01-17 Daniel Jacobowitz <drow@mvista.com>
10325
db728ff7
DJ
10326 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10327 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10328 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10329 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10330
db728ff7
DJ
103312002-01-17 Daniel Jacobowitz <drow@mvista.com>
10332
10333 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10334 * gdbserver/low-lynx.c (myattach): Likewise.
10335 * gdbserver/low-nbsd.c (myattach): Likewise.
10336 * gdbserver/low-sim.c (myattach): Likewise.
10337 * gdbserver/low-sparc.c (myattach): Likewise.
10338 * gdbserver/low-sun3.c (myattach): Likewise.
10339
10340 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10341
db728ff7 10342 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10343 (main): Handle "--attach".
10344
8de3c354
AC
103452002-01-16 Andrew Cagney <ac131313@redhat.com>
10346
10347 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10348 maintainer.
10349
b0129042
DJ
103502002-01-15 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * c-typeprint.c (is_type_conversion_operator): Add additional
10353 check for non-conversion operators.
10354
ba8679fb 103552002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10356
10357 * linux-proc.c: Add "info proc" command, a la procfs.c.
10358 (read_mapping): New function, abstract and re-use code.
10359 (linux_find_memory_regions): Use new func read_mapping.
10360 (linux_info_proc_cmd): New function, implement "info proc".
10361 (_initialize_linux_proc): Add new command "info proc".
10362
e4f9b4d5
MS
103632002-01-15 Michael Snyder <msnyder@redhat.com>
10364
10365 * symfile.c (generic_load): Use bfd_map_over_sections method
10366 instead of manipulating bfd structure members directly.
10367 (add_section_size_callback): New function, bfd sections callback
10368 used by generic_load.
10369 (load_sections_callback): New function, bfd sections callback
10370 used by generic_load.
10371
08cf96df
EZ
103722002-01-15 Elena Zannoni <ezannoni@redhat.com>
10373
abf22e64 10374 [Based on work by Jim Blandy]
08cf96df
EZ
10375 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10376 (builtin_type_vec128): Export.
10377 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10378 types.
10379 (builtin_type_vec128): New builtin type for 128 bit vector
10380 registers.
10381 (build_gdbtypes): Initialize builtin_type_v16qi and
10382 builtin_type_v8hi. Create the vec128 register builtin type
10383 structure.
10384 (build_builtin_type_vec128): New function.
abf22e64 10385 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10386 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10387 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10388 AltiVec register to new builtin type.
10389
d7242108
DJ
103902001-01-15 Daniel Jacobowitz <drow@mvista.com>
10391
10392 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10393 to make_cv_type.
10394
4ee3352d
AC
103952002-01-14 Andrew Cagney <ac131313@redhat.com>
10396
10397 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10398 CLEAN_UP_REGISTER_VALUE.
10399 * regcache.c (supply_register): Update only call.
10400
f015b2e7
AC
104012002-01-14 Andrew Cagney <ac131313@redhat.com>
10402
10403 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10404 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10405 a29k-*-vxworks* targets as obsolete.
10406
356ae49d
MS
104072002-01-14 Michael Snyder <msnyder@redhat.com>
10408
10409 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10410 until we can resolve portability issues.
10411 * gregset.h: Remove references to fpxregs.
10412 * gcore.c (gcore_command): Initialize note_sec to NULL.
10413
ade8f45e
AC
104142002-01-13 Andrew Cagney <ac131313@redhat.com>
10415
10416 * signals.c (target_signal_to_name): Rewrite. Only use
10417 signals[].name when in bounds and non-NULL.
abf22e64 10418
89c49e7a
AC
104192002-01-13 Andrew Cagney <ac131313@redhat.com>
10420
10421 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10422 * signals.c (target_signal_to_name): Verify that SIG is within the
10423 bounds of the signals array.
10424
4daa9f9f
AC
104252002-01-13 Andrew Cagney <ac131313@redhat.com>
10426
10427 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10428
ba4bbdcb
KS
104292002-01-13 Keith Seitz <keiths@redhat.com>
10430
10431 * stack.c (print_frame_info_base): Print the frame's pc
10432 only if when print_frame_info_listing_hook is not defined.
10433
575bbeb6
KS
104342002-01-13 Keith Seitz <keiths@redhat.com>
10435
10436 * varobj.c (varobj_set_value): Make sure that there were no
10437 errors evaluating the object before attempting to set its
10438 value.
10439 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10440 so this offset adjustment is no longer necessary.
10441 (create_child): Don't set the error flag if the child is
10442 a CPLUS_FAKE_CHILD.
10443 (value_of_child): If value_fetch_lazy fails, return NULL
10444 so that callers will be notified that an error occurred.
10445 (c_value_of_variable): Delay check of variable's validity
10446 until later. We actually want all structs and unions to have
10447 the value "{...}".
10448 Do not return "???" for variables which could not be evaluated.
10449 This error condition must be returned to the caller so that it
10450 can get the error condition from gdb.
10451 (cplus_name_of_child): Adjust index for vptr before figuring
10452 out the name of the child.
10453 (cplus_value_of_child): If a child's (real) parent is not valid,
10454 don't even bother trying to give a value for it. Just return
10455 an error. Change all instances in this function.
10456 (cplus_type_of_child): If our parent is one of the "fake"
10457 parents, we need to get at the type of the real parent, and
10458 derive the child's true type using this information.
10459
b76898ab
AC
104602002-01-13 Andrew Cagney <ac131313@redhat.com>
10461
10462 From 2002-01-09 John Marshall <johnm@falch.net>:
10463 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10464 sources.redhat.com, and tweak some related URLs which had
10465 suffered from linkrot.
10466
b6649e88
AC
104672002-01-13 Andrew Cagney <ac131313@redhat.com>
10468
10469 From Jeff law:
10470 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10471 structures passed in registers.
10472
82cc5033
EZ
104732002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10474
10475 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10476 white space which prevented compilation. Reported by DSK
10477 <dsk@student.unsw.edu.au>.
10478
ba5f2f8a
MS
104792002-01-11 Michael Snyder <msnyder@redhat.com>
10480
fbd35540
MS
10481 * symfile.c (build_section_addr_info_from_section_tab):
10482 Use bfd access method instead of manipulating bfd directly.
10483 (syms_from_objfile): Ditto.
10484 (simple_overlay_update_1): Ditto.
10485 (simple_overlay_update): Ditto.
10486 (generic_load): Ditto.
10487 (overlay_unmapped_address): FIXME comment, bfd access methods.
10488 (sections_overlap): FIXME comment, bfd access methods.
10489 (pc_in_mapped_range): FIXME comment, bfd access methods.
10490 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10491 (section_is_mapped): FIXME comment, bfd access methods.
10492 (section_is_overlay): FIXME comment, bfd access methods.
10493
ba5f2f8a
MS
10494 * symfile.c (generic_load): Whitespace and long line cleanups.
10495 Remove duplicate variable, change several local variables to
10496 more appropriate data types.
10497 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10498
17df2af6
AC
104992002-01-12 Andrew Cagney <ac131313@redhat.com>
10500
10501 From Peter Schauer:
10502 * language.c (longest_local_hex_string_custom): Use phex_nz to
10503 convert NUM to a hex string.
10504
ec920329
EZ
105052002-01-12 Elena Zannoni <ezannoni@redhat.com>
10506
10507 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10508 the function.
538a76d6 10509 Update Copyright year.
ec920329 10510
3abd2e01
AC
105112002-01-12 Andrew Cagney <ac131313@redhat.com>
10512
10513 * language.c (longest_raw_hex_string): Delete unused function.
10514
b21b22e0
PS
105152002-01-11 Petr Sorfa <petrs@caldera.com>
10516
10517 * MAINTAINERS (write-after-approval): Add myself.
10518 * dwarf2read.c (read_tag_string_type): Handling of
10519 DW_AT_byte_size.
10520 (read_tag_string_type): FORTRAN fix to prevent propagation of
10521 first string size.
10522 (set_cu_language): Handling of DW_LANG_Fortran95
10523
747fe712
RE
105242002-01-11 Richard Earnshaw <rearnsha@arm.com>
10525
10526 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10527 GETPID(inferior_ptid).
10528 (store_inferior_registers): Likewise.
10529
f1bea926
JM
105302002-01-10 Jason Merrill <jason@redhat.com>
10531
10532 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10533 Fix DW_OP_minus.
10534
ae940673
AC
105352002-01-10 Andrew Cagney <ac131313@redhat.com>
10536
10537 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10538 and bfd/elf32-sh-nbsd.c.
10539
00546b04
MS
105402002-01-10 Michael Snyder <msnyder@redhat.com>
10541
352ed7b4
MS
10542 * NEWS: Mention --pid and corefile/proc-id behavior change.
10543
c18be923
MS
10544 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10545 * gcore.c: Include cli/cli-decode.h instead of command.h.
10546
00546b04
MS
10547 * main.c (captured_main): Add new command line option "--pid".
10548 If the second command line argument (following the symbol-file)
10549 begins with a digit, try to attach to it before trying to open
10550 it as a corefile.
10551 (print_gdb_help): Document the "--pid" argument.
10552
db60ec62
EZ
105532002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10554
10555 * completer.c (command_completer): New function.
10556
10557 * completer.h <command_completer>: Add prototype.
10558
10559 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10560 completer for the "help" command.
10561
39c22d1a
JM
105622002-01-09 Jason Merrill <jason@redhat.com>
10563
10564 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10565
c564377f
MS
105662002-01-09 Michael Snyder <msnyder@redhat.com>
10567
975aec09
MS
10568 * i386-linux-nat.c (fill_fpxregset): Make global.
10569 (store_fpxregset): Ditto.
10570
db4a10fa
MS
10571 * gregset.h (gdb_fpxregset_t): Define.
10572 (supply_fpxregset): Prototype.
10573 (fill_fpxregset): Prototype.
10574
c564377f
MS
10575 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10576
c3d45d70
RE
105772002-01-09 Richard Earnshaw <rearnsha@arm.com>
10578
10579 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10580 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10581 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10582
fcc87af1
AC
105832002-01-09 Andrew Cagney <ac131313@redhat.com>
10584
10585 * MAINTAINERS: Update target maintainer rules so that any
10586 Maintainer can approve a tested patch for a maintenance-only
10587 target.
10588
dd96c05b
RE
105892002-01-09 Richard Earnshaw <rearnsha@arm.com>
10590
d4297db9 10591 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10592
d4297db9 10593 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10594 IN_SIGTRAMP.
10595
145fdc6e
MS
105962002-01-08 Michael Snyder <msnyder@redhat.com>
10597
10598 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10599 real name of the executable, rather than the /proc name.
10600
be4d1333
MS
106012002-01-03 Michael Snyder <msnyder@redhat.com>
10602
10603 Implement a "generate-core-file" command in gdb, save target state.
10604 * gcore.c: New file. Implement new command 'generate-core-file'.
10605 Save a corefile image of the current state of the inferior.
10606 * linux-proc.c: Add linux-specific code for saving corefiles.
10607 * target.h (struct target_ops): Add new target vectors for saving
10608 corefiles; to_find_memory_regions and to_make_corefile_notes.
10609 (target_find_memory_regions): New macro.
10610 (target_make_corefile_notes): New macro.
10611 * target.c (update_current_target): Inherit new target methods.
10612 (dummy_find_memory_regions): New place-holder method.
10613 (dummy_make_corefile_notes): New place-holder method.
10614 (init_dummy_target): Initialize new dummy target vectors.
10615 * exec.c (exec_set_find_memory_regions): New function.
10616 Allow the exec_ops vector for memory regions to be taken over.
10617 (exec_make_note_section): New function, target vector method.
10618 * defs.h (exec_set_find_memory_regions): Export prototype.
10619 * procfs.c (proc_find_memory_regions): New function, corefile method.
10620 (procfs_make_note_section): New function, corefile method.
10621 (init_procfs_ops): Set new target vector pointers.
10622 (find_memory_regions_callback): New function.
10623 (procfs_do_thread_registers): New function.
10624 (procfs_corefile_thread_callback): New function.
10625 * sol-thread.c (sol_find_memory_regions): New function.
10626 (sol_make_note_section): New function.
10627 (init_sol_thread_ops): Initialize new target vectors.
10628 * inftarg.c (inftarg_set_find_memory_regions): New function.
10629 Allow to_find_memory_regions vector to be taken over.
10630 (inftarg_set_make_corefile_notes): New function.
10631 Allow to_make_corefile_notes vector to be taken over.
10632 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10633 interface layer if not target_has_execution (may be a corefile).
10634 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10635 * config/sparc/sun4sol2.mh: Ditto.
10636 * config/alpha/alpha-linux.mh: Ditto.
10637 * config/arm/linux.mh: Ditto.
10638 * config/i386/x86-64linux.mh: Ditto.
10639 * config/ia64/linux.mh: Ditto.
10640 * config/m68k/linux.mh: Ditto.
10641 * config/mips/linux.mh: Ditto.
10642 * config/powerpc/linux.mh: Ditto.
10643 * config/sparc/linux.mh: Ditto.
10644
c6b92abd
MS
106452002-01-07 Michael Snyder <msnyder@redhat.com>
10646
10647 * arm-linux-nat.c: Remove references to regcache.c internal data
10648 (registers[] and register_valid[]).
10649
4b09dc8c
MS
106502002-01-07 Michael Snyder <msnyder@redhat.com>
10651
abf22e64
AJ
10652 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10653 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10654 symbol file and shlibs.
10655 * Makefile.in: Add rule for linux-proc.o.
10656 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10657 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10658 * config/arm/linux.mh: Ditto.
10659 * config/i386/linux.mh: Ditto.
10660 * config/i386/x86-64linux.mh: Ditto.
10661 * config/ia64/linux.mh: Ditto.
10662 * config/m68k/linux.mh: Ditto.
10663 * config/mips/linux.mh: Ditto.
10664 * config/powerpc/linux.mh: Ditto.
10665 * config/sparc/linux.mh: Ditto.
10666
c25b74ac
PM
106672002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10668
10669 * win32-nat.c: Add i386-tdep.h dependency.
10670
94cd915f
MS
106712002-01-07 Michael Snyder <msnyder@redhat.com>
10672
c7cccb76
MS
10673 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10674 instead of bfd_get_arch_size. Don't bail out just because
10675 there's no exec_bfd.
abf22e64 10676
34c0bd93
MS
10677 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10678 * p-valprint.c (pascal_object_print_value): Ditto.
10679 * somread.c (som_symtab_read): Ditto.
10680 * symfile.c (simple_free_overlay_region_table): Ditto.
10681 * valops.c (value_assign): Ditto.
10682
21c1c920
MS
10683 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10684 use tilde_expand and strerror for opening save-tracepoints file.
10685
5bbd998e
MS
10686 * thread-db.c (thread_db_new_objfile): Indendation fix.
10687
94cd915f
MS
10688 * infptrace.c (GDB_MAX_ALLOCA): New define.
10689 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10690 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10691 can be overridden with whatever value is appropriate to the host).
10692 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10693 alloca to allocate potentially large buffer.
10694 * rs6000-nat.c (child_xfer_memory): Ditto.
10695 * symm-nat.c (child_xfer_memory): Ditto.
10696 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10697
494e8a93
JSC
106982002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10699
10700 From Nick Clifton <nickc@redhat.com>
10701 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10702
d0e1d48e
MS
107032002-01-07 Michael Snyder <msnyder@redhat.com>
10704
abf22e64 10705 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10706 Don't use exec_bfd if it's NULL.
10707
290b2c7a
MK
107082002-01-06 Mark Kettenis <kettenis@gnu.org>
10709
abf22e64 10710 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10711
aef21287
AC
107122002-01-06 Andrew Cagney <ac131313@redhat.com>
10713
10714 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10715 * gnu-nat.c: Ditto.
10716
30efa627
AC
107172002-01-06 Andrew Cagney <ac131313@redhat.com>
10718
10719 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10720 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10721 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10722 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10723 z8k-coff have not been multi-arched. Update z8k-coff build
10724 status.
10725
9b4ff276
AC
107262002-01-06 Andrew Cagney <ac131313@redhat.com>
10727
10728 * MAINTAINERS: Mark a29k target as obsolete.
10729 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10730 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10731 comments.
10732 * NEWS: Note that a29k targets are obsolete.
10733 * a29k-tdep.c: Mark as obsolete.
10734 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10735 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10736 a29k-*-vxworks* targets as obsolete.
10737 * remote-adapt.c: Obsolete.
10738 * remote-eb.c: Obsolete.
10739 * remote-mm.c: Obsolete.
10740 * remote-udi.c: Obsolete.
10741 * config/a29k/a29k-udi.mt: Obsolete.
10742 * config/a29k/a29k.mt: Obsolete.
10743 * config/a29k/tm-a29k.h: Obsolete.
10744 * config/a29k/tm-vx29k.h: Obsolete.
10745 * config/a29k/vx29k.mt: Obsolete.
10746
a9011d31
AC
107472002-01-05 Andrew Cagney <ac131313@redhat.com>
10748
10749 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10750 with BFD_ENDIAN_BIG.
10751
9299404e
AC
107522002-01-05 Andrew Cagney <ac131313@redhat.com>
10753
10754 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10755 * configure, config.in: Re-generate.
10756 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10757 * defs.h: Do not include <endian.h>.
10758
7e89e357
JT
107592002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10760
10761 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10762 * config.in: Regenerate.
10763 * configure.in: Update copyright years.
10764 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10765 * configure: Regenerate.
10766 * i386bsd-nat.c: Update copyright years.
10767 (fill_gregset): Use regcache_collect.
10768 (fetch_inferior_registers): Only fetch integer registers
10769 if requested to do so. Add support for XMM registers
10770 using PT_GETXMMREGS.
10771 (store_inferior_registers): Only store integer registers
10772 if requested to do so. Add support for XMM registers
10773 using PT_SETXMMREGS.
10774 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10775 (store_inferior_registers): Remove.
10776 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10777 (fetch_elfcore_registers): New function.
10778 (i386nbsd_elfcore_fns): New.
10779 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10780 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10781 i386bsd-nat.o.
10782 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10783 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10784 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10785 * config/i386/tm-nbsd.h: Update copyright years.
10786 (HAVE_SSE_REGS): Define.
10787 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10788 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10789 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10790 (SIGCONTEXT_PC_OFFSET): Remove.
10791 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10792
a752853e
AC
107932002-01-05 Andrew Cagney <ac131313@redhat.com>
10794
10795 * configure.tgt: Remove powerpc-*-macos* target.
10796 * config/m68k/xm-mpw.h: Delete file.
10797 * config/xm-mpw.h: Delete file.
10798 * ser-mac.c: Delete file.
10799 * mpw-make.sed: Delete file.
10800 * mpw-config.in: Delete file.
10801 * mac-xdep.c: Delete file.
10802 * mac-gdb.r: Delete file.
10803 * mac-defs.h: Delete file.
10804 * mac-nat.c: Delete file.
10805 * config/powerpc/macos.mh: Delete file.
10806 * config/powerpc/macos.mt: Delete file.
10807 * config/powerpc/nm-macos.h: Delete file.
10808 * config/powerpc/tm-macos.h: Delete file.
10809 * source.c (openp, open_source_file): Remove obsolete code.
10810 * top.c (gdb_readline): Ditto.
10811 * utils.c (query): Ditto.
10812 * event-top.c (display_gdb_prompt): Ditto.
10813 * Makefile.in (ser-mac.o): Delete obsolete target.
10814 * NEWS: Update.
10815
d7449b42
AC
108162002-01-04 Andrew Cagney <ac131313@redhat.com>
10817
10818 * defs.h (BIG_ENDIAN): Delete macro definition.
10819 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10820 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10821 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10822 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10823 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10824 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10825 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10826 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10827 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10828 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10829 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10830 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10831 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10832 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10833 * gdbarch.c: Re-generate.
10834
356374e8
DJ
108352002-01-04 Daniel Jacobowitz <drow@mvista.com>
10836
10837 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10838 for core files.
10839
a2b8f8f8
JT
108402002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10841
10842 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10843
12466af9
AC
108442002-01-04 Andrew Cagney <ac131313@redhat.com>
10845
10846 * value.h (value_ptr): Delete typedef.
10847
3549ab40
JT
108482002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10849
10850 * i386nbsd-nat.c: Update copyright years.
10851 Include i386-tdep.h.
10852
fedbd091
EZ
108532002-01-04 Elena Zannoni <ezannoni@redhat.com>
10854
10855 * stabsread.c: Update copyright years.
10856
10857 From Debashis Mahata <debashis.mahata@wipro.com>:
10858 (read_struct_fields): Deal with Sun C compiler erroneous stab
10859 output for structs and unions.
fec8b34f 10860 Fix PR gdb/269.
fedbd091 10861
eb43544b
DJ
108622002-01-04 Daniel Jacobowitz <drow@mvista.com>
10863
10864 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10865 prototype.
10866
1514d34e
DJ
108672002-01-04 Daniel Jacobowitz <drow@mvista.com>
10868
10869 * cp-abi.c: Fix whitespace.
10870 (baseclass_offset): New wrapper function.
10871 * cp-abi.h (baseclass_offset): Add prototype.
10872 (struct cp_abi_ops): Add baseclass_offset pointer.
10873
10874 * valops.c (vb_match): Move to...
10875 * gnu-v2-abi.c (vb_match): here.
10876 * valops.c (baseclass_offset): Move to...
10877 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10878
10879 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10880
10881 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10882 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10883 * hpacc-abi.c (init_hpacc_ops): Likewise.
10884
7f8c9282
DJ
108852002-01-04 Daniel Jacobowitz <drow@mvista.com>
10886
10887 * valops.c (find_overload_match): Accept obj as a
10888 reference parameter. Update it before returning.
10889 * value.h (find_overload_match): Update prototype.
10890 * eval.c (evaluate_subexp_standard): Pass object to
10891 find_overload_match by reference.
10892
f23631e4
AC
108932002-01-03 Andrew Cagney <ac131313@redhat.com>
10894
10895 * valarith.c: Replace value_ptr with struct value pointer. Remove
10896 register attribute from value declarations.
10897 * valops.c: Ditto.
10898 * value.h: Ditto.
10899 * scm-lang.c (scm_lookup_name): Ditto.
10900
79e10fab 109012002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10902
79e10fab
AC
10903 Abstract the functionality of iterating over mapped memory
10904 regions into a general purpose iterator function.
abf22e64 10905 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10906 iterator for memory sections.
10907 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10908 (solib_mappings_callback): New function, callback for above.
10909 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10910 (info_mappings_callback): New function, callback for above.
10911
10912 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10913
c5ad026a
MK
109142002-01-01 Mark Kettenis <kettenis@gnu.org>
10915
d2a7c97a
MK
10916 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10917 * i386-tdep.c: Include "elf-bfd.h".
10918 (process_note_abi_tag_sections): New function.
10919 (i386_gdbarch_init): Add code to recognize various OS/ABI
10920 combinations.
10921
c5ad026a
MK
10922 * maint.c (_initialize_maint_cmds): Add missing \ in
10923 string-literal.
10924
a1a5b71e 10925For older changes see ChangeLog-2001
c906108c
SS
10926\f
10927Local Variables:
10928mode: change-log
10929left-margin: 8
10930fill-column: 74
10931version-control: never
10932End:
This page took 0.80685 seconds and 4 git commands to generate.