daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3db26b01
JB
12002-09-12 Joel Brobecker <brobecker@gnat.com>
2
3 * exec.c (xfer_memory): Fix compilation warning with old versions
4 of GCC.
5 * tracepoint.c (trace_find_tracepoint_command): Likewise.
6
17c5ed2c
DC
72002-09-12 David Carlton <carlton@math.stanford.edu>
8
9 * symtab.h: Run through gdb_indent.h.
10 Add 2002 to Copyright year list.
11
ecd1107e
AM
122002-09-12 Alan Modra <amodra@bigpond.net.au>
13
14 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
15 mach constants.
16 * MAINTAINERS: Add myself to write after approval list.
17
e64f66d1
JB
182002-09-11 J. Brobecker <brobecker@gnat.com>
19
20 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
21
f9395794
JB
222002-09-11 J. Brobecker <brobecker@gnat.com>
23
24 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
25 Interix.
26
1a303dec
MS
272002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
28
29 * procfs.c (do_detach): Clear current signal, not just fault.
30 Corrects problem with breakpoint trap signal leaking to detached
31 process on Tru64.
32
c0219d42
MS
332002-09-10 Michael Snyder <msnyder@redhat.com>
34
35 * buildsym.c (finish_block): Protect against null pointer.
36
9d84ac84
AC
372002-09-10 Andrew Cagney <cagney@redhat.com>
38
39 * infcmd.c (default_print_registers_info): Send all output to
40 ``file'' instead of ``gdb_stdout''.
41
77d8f2b4
MS
422002-09-10 Michael Snyder <msnyder@redhat.com>
43
44 * mips-tdep.c (mips_extract_struct_value_address): Make val a
45 LONGEST, and use signed register read (addresses are sign-
46 extended for mips).
47
99656a61
SC
482002-09-10 Stephane Carrez <stcarrez@nerim.fr>
49
50 * event-loop.c (gdb_do_one_event): Make public.
51 * event-loop.h (gdb_do_one_event): Declare.
52
da12f4d8
JL
532002-09-10 Jeff Law <law@redhat.com>
54
55 * infttrace.c (child_resume): Simplify and rework to avoid
56 TT_PROC_CONTINUE.
57
d0aee0c4
FF
582002-09-09 Fred Fish <fnf@intrinsity.com>
59
60 * printcmd.c (print_scalar_formatted): "len" is the number of
61 target bytes, NOT the number of target bits.
62
7cb3ec5e
EZ
632002-09-09 Elena Zannoni <ezannoni@redhat.com>
64
65 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
66 * top.c (init_main): Set rl_terminal_name.
67
4dc81987
AS
682002-09-08 Aidan Skinner <aidan@velvet.net>
69
70 * ada-lang.c (ada_array_bound, ada_type_match,
71 _initialize_ada_language): Fix K&R definitions.
72 * ada-tasks.c (get_current_task): Fix K&R definitions.
73 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
74
842330b4
CF
752002-09-07 Christopher Faylor <cgf@redhat.com>
76
77 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
78 Add XP.
79
43156d82
MK
802002-09-06 Mark Kettenis <kettenis@gnu.org>
81
66da5fd8
MK
82 * i386-tdep.c (i386_register_virtual_type,
83 i386_register_convertible, i386_register_convert_to_virtual,
84 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
85 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
86 (i386_gdbarch_init): Fix comment. Add comments on calls that set
87 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
88 Don't set push_arguments twice.
89
4b218c18
MK
90 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
91 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
92 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
93 sigtramp_end to NULL.
94 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
95 defines.
96 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
97
4cc314d5
MK
98 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
99 whitespace.
100
43156d82
MK
101 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
102 * gdbarch.h, gdbarch.c: Re-generate.
103 * blockframe.c (find_pc_sect_partial_function): Convert to use
104 SIGTRAMP_START_P predicate.
105
6672060b
MS
1062002-09-05 Michael Snyder <msnyder@redhat.com>
107
a90c3637
MS
108 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
109 generic_dummy_frame method and old method. Also distinguish
110 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 111 (arm_extract_return_value): Use new regcache method.
a90c3637 112
6672060b
MS
113 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
114 adjustment that doesn't conform to the ABI.
115 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
116 saved regcache, not from current regcache.
117
299ffc64
AC
1182002-09-05 Andrew Cagney <ac131313@redhat.com>
119
120 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
121 * README: Update.
122
a3a2ee65
JT
1232002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
124
125 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
126 if arm_apcs_32 is false.
127
2bc7eea9
AC
1282002-09-04 Andrew Cagney <ac131313@redhat.com>
129
130 GDB 5.3 branch created.
131
8a55a7c5
TR
1322002-09-03 Theodore A. Roth <troth@verinet.com>
133
134 * gdb/avr-tdep.c (avr_gdbarch_init): Use
135 generic_unwind_get_saved_register.
136
e26fb1d7
DC
1372002-09-03 David Carlton <carlton@math.stanford.edu>
138
139 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
140 argument (PR gdb/653). Update call to smash_to_method_type.
141 (read_structure_scope): Update call to dwarf2_add_member_fn.
142
30d52491
ML
1432002-09-03 Michal Ludvig <mludvig@suse.cz>
144
145 * x86-64-linux-tdep.c: Include gdb_string.h
146 * x86-64-linux-nat.c: Ditto.
147
06891d83
JT
1482002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
149
150 * ada-exp.y (yyname, yyrule): Remap global variables that appear
151 when YYDEBUG is set to 1.
152 * c-exp.y: Likewise.
153 * f-exp.y: Likewise.
154 * jv-exp.y: Likewise.
155 * m2-exp.y: Likewise.
156 * p-exp.y: Likewise.
157
7d400e77
JT
1582002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
159
160 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
161 dependency list.
162 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
163 solib_svr4_fetch_link_map_offsets to
164 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
165 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
166 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
167 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
168 solib-svr4.o, and solib-legacy.o.
169 * config/i386/tm-nbsd.h: Include solib.h.
170
704a27c4
JT
1712002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
172
173 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
174 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
175 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
176 comment noting that this needs its own target configuration.
177 * config/i386/nbsd.mt: New file.
178 * config/i386/nbsdaout.mt: Remove.
179 * config/i386/nbsdelf.mt: Ditto.
180 * config/i386/tm-nbsdaout.h: Ditto.
181
d66198e1
JT
1822002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
183
184 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
185 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
186 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
187 tdep->sigtramp_end.
188 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
189 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
190 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
191
3cac699e
JT
1922002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
193
194 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
195 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
196 * i386-tdep.h (i386bsd_init_abi): New prototype.
197 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
198 function declaration.
199 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
200 for NetBSD-a.out or NetBSD-ELF.
201 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
202 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
203 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
204 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
205 and nbsd-tdep.h.
206 (i386nbsd_pc_in_sigtramp): New function.
207 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
208 i386nbsd_pc_in_sigtramp.
209 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
210 and i386nbsdelf_init_abi OS ABI handlers.
211 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
212 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
213
7010ca0a
MK
2142002-09-02 Mark Kettenis <kettenis@gnu.org>
215
216 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
217 registers if the target really has them.
218
6dd93b72
JT
2192002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
220
221 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
222 than nbsd-tdep.h.
223
2ca8ae21
JT
2242002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
225
226 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
227 list.
228 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
229 (alphanbsd_skip_sigtramp_frame): New functions.
230 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
231 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
232 to alphanbsd_sigcontext_addr.
233
3d9b49b0
JT
2342002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
235
236 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
237 list.
238 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
239 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
240 nbsd_pc_in_sigtramp.
241 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
242 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
243 * nbsd-tdep.c: Include gdb_string.h.
244 (nbsd_pc_in_sigtramp): New function.
245 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
246 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
247 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
248 ppcnbsd_pc_in_sigtramp.
249 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
250 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
251 shnbsd_pc_in_sigtramp.
252 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
253 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
254 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
255
c860120c
PM
2562002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
257
258 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
259 watchpoints to NULL.
260 (insert_breakpoints): set val field of watchpoints if NULL.
261
262
c7612d53
JB
2632002-08-29 Jim Blandy <jimb@redhat.com>
264
265 * symtab.c (lookup_symbol_aux): In the cases where we find a
266 minimal symbol of an appropriate name and use its address to
267 select a symtab to read and search, use `name' (as passed to us)
268 as the demangled name when searching the symtab's global and
269 static blocks, not the minsym's name.
270
66609862
KS
2712002-08-29 Keith Seitz <keiths@redhat.com>
272
273 * stack.c (print_frame_info_base): Always set current_source_symtab
274 and current_source_line.
275
151fefe2
JB
2762002-08-29 Donn Terry <donnte@microsoft.com>
277
278 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
279
bfb3754e
KS
2802002-08-28 Keith Seitz <keiths@redhat.com>
281
282 * stack.c (select_frame): Add FIXME concerning selected-frame
283 events.
284 (select_frame_command): Send selected-frame-level-changed
285 event notification, but only if the level actually changed.
286 (up_silently_base): Add selected-frame-level-changed event
287 notification.
288 (down_silently_base): Likewise.
289
e822a2a0
AC
2902002-08-28 Andrew Cagney <ac131313@redhat.com>
291
292 * Makefile.in: Update dependencies for all gdb/*.c files.
293
309367d4
TT
2942002-08-27 Tom Tromey <tromey@redhat.com>
295
296 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
297 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
298 Update dependencies.
299 * i387-tdep.c: Include gdb_string.h.
300 * osabi.c: Likewise.
301 * i386-linux-nat.c: Likewise.
302 * lin-lwp.c: Likewise.
303 * ax-gdb.c: Likewise.
304 * signals/signals.c: Likewise.
305 * jv-valprint.c: Likewise.
306 * p-lang.c: Likewise.
307 * c-valprint.c: Likewise.
308 * cp-abi.c: Likewise.
309
e1507482
EZ
3102002-08-27 Elena Zannoni <ezannoni@redhat.com>
311
312 * cli/cli-script.h (copy_command_lines): Export.
313 * breakpoint.c: Include cli/cli-script.h.
314 * Makefile.in (breakpoint.o): Update dependencies.
315
c6510018
MS
3162002-08-26 Michael Snyder <msnyder@redhat.com>
317
318 * breakpoint.c (insert_breakpoints): Protect all references
319 to 'process_warning'. Shorten long lines.
320
c2b8ed2c
MS
3212002-08-26 Joel Brobecker <brobecker@gnat.com>
322
323 * cli/cli-script.c (copy_command_lines): New function.
324 * defs.h (copy_command_lines): Export.
325 * testsuite/gdb.base/commands.exp: New tests for commands
326 attached to a temporary breakpoint, and for commands that
327 delete the breakpoint they are attached to.
328
3292002-08-26 Michael Snyder <msnyder@redhat.com>
330
331 * breakpoint.c (bpstat_stop_status): Instead of copying the
332 pointer to the breakpoint commands struct, make a new copy
333 of the struct and point to that.
334 (bpstat_clear): Free the commands struct.
335 (bpstat_clear_actions): Free the commands struct.
336 (bpstat_do_actions): Free the command actions. Also execute
337 the local cleanups, instead of deleting them.
338 (delete_breakpoint): Leave the commands field of the bpstat
339 chain alone -- it will be freed later.
340
64b84175
KB
3412002-08-26 Kevin Buettner <kevinb@redhat.com>
342
343 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
344 deleted in 2002-08-20 commit. This function is still used by
345 ppc-linux-nat.c.
346
55970da6
KS
3472002-08-26 Keith Seitz <keiths@redhat.com>
348
349 * gdb-events.sh: Add selected-frame-level-changed event.
350 * gdb-events.c: Regenerated.
351 * gdb-events.h: Regenerated.
352
a790ad35
SC
3532002-08-26 Stephane Carrez <stcarrez@nerim.fr>
354
355 Fix PR gdb/393:
356 * inflow.c (terminal_save_ours): New function to save terminal
357 settings.
358 * inferior.h (terminal_save_ours): Declare.
359 * target.c (debug_to_terminal_save_ours): New function.
360 (cleanup_target): Defaults to_terminal_save_ours.
361 (update_current_target): Inherit to_terminal_save_ours.
362 (setup_target_debug): Set to_terminal_save_ours.
363 * target.h (target_terminal_save_ours): New to save terminal settings.
364 (target_ops): New member to_terminal_save_ours.
365 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
366 * hpux-thread.c (init_hpux_thread_ops): Likewise.
367 * inftarg.c (init_child_ops): Likewise.
368 * m3-nat.c (init_m3_ops): Likewise.
369 * procfs.c (init_procfs_ops): Likewise.
370 * wince.c (init_child_ops): Likewise.
371 * win32-nat.c (init_child_ops): Likewise.
372 * sol-thread.c (init_sol_thread_ops): Likewise.
373
c00dcbe9
MK
3742002-08-26 Mark Kettenis <kettenis@gnu.org>
375
3d7f4f49
MK
376 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
377 use regcache_* functions.
378 (i386_gdbarch_init): Set store_return_value instead of
379 deprecated_store_return_value.
380
c00dcbe9
MK
381 * regcache.c (regcache_raw_write_signed,
382 regcache_raw_write_unsigned): New functions.
383 * regcache.h (regcache_raw_write_signed,
384 regcache_raw_write_unsigned): New prototypes.
385
0e0d15ca
AC
3862002-08-25 Andrew Cagney <ac131313@redhat.com>
387
388 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
389 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
390 source file dependencies. Cleanup corresponding generator rules.
391
d3b22ed5
AC
3922002-08-25 Andrew Cagney <ac131313@redhat.com>
393
394 * regcache.h (register_offset_hack): Declare.
395 (regcache_cooked_read_using_offset_hack): Declare.
396 (regcache_cooked_write_using_offset_hack): Declare.
397
398 * regcache.c (register_offset_hack): New function.
399 (regcache_cooked_read_using_offset_hack): New function.
400 (regcache_cooked_write_using_offset_hack): New function.
401 (regcache_dump): Check that the registers, according to their
402 offset, are packed hard against each other.
403 (cooked_xfer_using_offset_hack): New function.
404
bb425013
AC
4052002-08-25 Andrew Cagney <ac131313@redhat.com>
406
407 * regcache.c (struct regcache_descr): Add field register_type.
408 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
409 in as a parameter
410 (init_regcache_descr): Initialize register_type. Pass the descr
411 to init_legacy_regcache_descr. Use register_type instead of
412 REGISTER_VIRTUAL_TYPE.
413 (register_type): New function.
414 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
415 * regcache.h (register_type): Declare.
416
d0403e00
AC
4172002-08-25 Andrew Cagney <ac131313@redhat.com>
418
419 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
420 instead of deprecated_store_return_value. Fix fallout from
421 2002-08-23 Andrew Cagney <cagney@redhat.com>.
422
0ed04cce
AC
4232002-08-25 Andrew Cagney <ac131313@redhat.com>
424
425 * regcache.c (max_register_size): New function.
426 (init_legacy_regcache_descr): Ensure that max_register_size is
427 large enough for REGISTER_VIRTUAL_SIZE.
428 * regcache.h (max_register_size): Declare.
429
46d79c04
AC
4302002-08-24 Andrew Cagney <ac131313@redhat.com>
431
432 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
433 store_return_value.
434 (e500_extract_return_value): Change type of valbuf pointer to
435 void.
436
853c7bd0
MK
4372002-08-24 Mark Kettenis <kettenis@gnu.org>
438
cd87e769
MK
439 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
440 workaround.
441
853c7bd0
MK
442 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
443 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
444 long long) to prevent compiler warning on 64-bit systems.
445
ebba8386
AC
4462002-08-23 Andrew Cagney <cagney@redhat.com>
447
448 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
449 (DEPRECATED_STORE_RETURN_VALUE): New method.
450 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
451 * gdbarch.h, gdbarch.c: Re-generate.
452
453 * values.c (set_return_value): Pass current_regcache to
454 STORE_RETURN_VALUE.
455 * arch-utils.h (legacy_store_return_value): Declare.
456 * arch-utils.c (legacy_store_return_value): New function.
457 (legacy_extract_return_value): Update parameters.
458
459 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
460 STORE_RETURN_VALUE.
461 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
462 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
463 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
464 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
465 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
466 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
467 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
468 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
469 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
470 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
471
472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
473 * i386-tdep.c (i386_extract_return_value): Update.
474 * arch-utils.c (legacy_extract_return_value): Update.
475 * frv-tdep.c (frv_gdbarch_init): Update.
476 * cris-tdep.c (cris_gdbarch_init): Update.
477 * d10v-tdep.c (d10v_gdbarch_init): Update.
478 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
479 * m68k-tdep.c (m68k_gdbarch_init): Update.
480 * mcore-tdep.c (mcore_gdbarch_init): Update.
481 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
482 * s390-tdep.c (s390_gdbarch_init): Update.
483 * sparc-tdep.c (sparc_gdbarch_init): Update.
484 * sh-tdep.c (sh_gdbarch_init): Update.
485 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
486 * v850-tdep.c (v850_gdbarch_init): Update.
487 * avr-tdep.c (avr_gdbarch_init): Update.
488 * ia64-tdep.c (ia64_gdbarch_init): Update.
489 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
490 * vax-tdep.c (vax_gdbarch_init): Update.
491 * alpha-tdep.c (alpha_gdbarch_init): Update.
492 * arm-tdep.c (arm_gdbarch_init): Update.
493 * mips-tdep.c (mips_gdbarch_init): Update.
494 * i386-tdep.c (i386_gdbarch_init): Update.
495
5bd8c6d0
AC
4962002-08-23 Andrew Cagney <ac131313@redhat.com>
497
498 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
499 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
500
e73e1724
MK
5012002-08-24 Mark Kettenis <kettenis@gnu.org>
502
503 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
504 problems.
505
3e6564e1
JB
5062002-08-23 Joel Brobecker <brobecker@gnat.com>
507
508 * infrun.c (handle_inferior_event): Move a comment outside of a
509 function call, in order to avoid indent reformatting this part
510 of the code in an unreadable way.
511
81d0cc19
GS
5122002-08-23 Grace Sainsbury <graces@redhat.com>
513
514 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
515 when breakpoints fail. Move general breakpoint error messages to
516 insert_breakpoints.
517 * breakpoint.c (insert_breakpoints): Change warnings when
518 breakpoints are nto inserted to specify the type. Remove call to
519 memory_error when hardware breakpoints can't be inserted. Remove
520 multiple calls to warning so all messages are sent to the user at
521 once.
522 (delete_breakpoints): Make insert error messsages more explicit.
523
17574093
DJ
5242002-08-23 Daniel Jacobowitz <drow@mvista.com>
525
526 * ChangeLog: Move gdbserver entries after GDB 5.2 to
527 gdbserver/ChangeLog.
528
8acc2935
MK
5292002-08-23 Mark Kettenis <kettenis@gnu.org>
530
dfe01d39
MK
531 * i386-tdep.c: Include "objfiles.h".
532 (i386_svr4_init_abi): Set in_solib_call_trampoline and
533 skip_trampoline_code.
534 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
535 (CPLUS_MARKER): Define to '.'.
536
8acc2935
MK
537 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
538 member.
539 (linux_corefile_thread_callback): Increase args->num_notes.
540 (linux_make_note_section): Initialize thread_args.num_notes, and
541 use it to determine whether notes for any threads were created.
542
151fefe2 5432002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
544
545 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
546 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
547 and PCUNKILL.
548 (write_with_trace): Conditionalize out the switch branch handling
549 PCSHOLD if the corresponding macro is not defined. Likewise for
550 PRSABORT and PRSTOP.
551 This change will be needed by the Interix port.
552
e1507482
EZ
5532002-08-22 Elena Zannoni <ezannoni@redhat.com>
554
555 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
556 write_register wherever possible instead of manipulating the
557 register bytes directly.
558 Assign VALUE_CONTENTS to a variable and use that.
559 The GPR numbers are now dependent on the architecture.
560
96ff0de4
EZ
5612002-08-22 Elena Zannoni <ezannoni@redhat.com>
562
563 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
564 ev_offset fields.
565 (skip_prologue): Add support for BookE/e500 instructions.
566 (e500_extract_return_value): New function.
567 (frame_get_saved_regs): Add support for saving ev registers and
568 pseudo gpr's.
569 (e500_store_return_value): New function.
570 (rs6000_gdbarch_init): Move up default intializations of
571 deprecated_extract_return_value and store_return_value. Overwrite
572 init of store_return_value with e500 specific version.
573 Set extract_return_value for e500.
574
fbefca5b
EZ
5752002-08-22 Elena Zannoni <ezannoni@redhat.com>
576
577 * blockframe.c (generic_call_dummy_register_unwind): Use
578 regcache_cooked_read to catch cases in which the variable is
579 stored in a pseudo register.
580
4d210288
AC
5812002-08-22 Andrew Cagney <cagney@redhat.com>
582
583 * NEWS: Mention that the i960 has been made obsolete.
584 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
585 i960-tdep.c
586 (remote-nrom.o): Obsolete target.
587 (remote-nindy.o, i960-tdep.o): Ditto.
588 * remote-nrom.c: Make file obsolete.
589 * remote-nindy.c, remote-vx960.c: Ditto.
590 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
591 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
592 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
593 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
594 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
595 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
596 i960-*-vxworks* obsolete.
597 * MAINTAINERS: Note that the i960 is obsolete.
598
6c0c456d
CV
5992002-08-21 Corinna Vinschen <vinschen@redhat.com
600
601 * aix-thread.c (aix_thread_detach): Disable thread debugging on
602 detach to allow reinitialization.
603
9f9d12b3
AC
6042002-08-22 Andrew Cagney <ac131313@redhat.com>
605
606 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
607 attempt).
608
ebeb39fe
JB
6092002-08-22 Jim Blandy <jimb@redhat.com>
610
611 * coffread.c (coff_symfile_read): Don't try to read the line
612 number table from disk if the image file doesn't have a symbol
613 table; we'll never actually look at the info anyway, and Windows
614 ships DLL's with bogus file offsets for the line number data.
615
5bf1c677
EZ
6162002-08-21 Elena Zannoni <ezannoni@redhat.com>
617
618 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
619 an e500 executable.
620
71b8ef93
MS
6212002-08-21 Michael Snyder <msnyder@redhat.com>
622
623 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
624 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
625 (DEFAULT_MIPS_TYPE): Delete unused macro.
626 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
627 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 628
d174216d
JB
6292002-08-21 Jim Blandy <jimb@redhat.com>
630
631 * valops.c (value_cast): Simplify and correct logic for doing a
632 static cast from a pointer to a base class to a pointer to a
633 derived class.
634
0ab7a791
AC
6352002-08-21 Andrew Cagney <ac131313@redhat.com>
636
637 * infcmd.c (default_print_registers_info): Replace
638 do_registers_info.
639 (registers_info): Use gdbarch_print_registers_info instead of
640 DO_REGISTERS_INFO.
641 * inferior.h (default_print_registers_info): Replace
642 do_registers_info.
643 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
644 (DO_REGISTERS_INFO): Change to a predicate function.
645 * gdbarch.h, gdbarch.c: Regenerate.
646
e23792cc
KS
6472002-08-21 Keith Seitz <keiths@redhat.com>
648
649 * gdb-events.sh: Add target-changed event.
650 * gdb-events.c: Regenerated.
651 * gdb-events.c: Regenerated.
652 * valops.c (value_assign): Add target-changed event notification
653 to inlval_register, lval_memory, and lval_reg_frame_relative.
654
9fb14e79
JB
6552002-08-21 Joel Brobecker <brobecker@gnat.com>
656
657 * NEWS: Add an entry regarding the improvement of the next/step
658 operation on Alpha Tru64 multi-processor machines.
659
6d39a69f
AC
6602002-08-21 Andrew Cagney <ac131313@redhat.com>
661
72acd513
AC
662 * Makefile.in: Update dependencies for mi/ cli/ and tui/
663 directores.
342af04b 664 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
665 * Makefile.in (install-gdbtk): Move to install section.
666 (rdi-share/libangsd.a): Move to end of file.
667
fa5f27c7
AC
6682002-08-19 Andrew Cagney <ac131313@redhat.com>
669
670 * frame.c (frame_register_unwind): When a register, set addrp to
671 the register's byte.
672
5a89d8aa
MS
6732002-08-20 Michael Snyder <msnyder@redhat.com>
674
675 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
676 used locally, so move them from the target machine header to here.
677 (mips_set_processor_type, mips_register_name, mips32_next_pc,
678 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
679 Make static.
680 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
681
822e978b
AC
6822002-08-20 Andrew Cagney <cagney@redhat.com>
683
684 * NEWS: Mention that the Apollo line was made obsolete.
685 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
686 m68*-hp-hpux* obsolete.
687 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
688 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
689 * buildsym.c (make_blockvector): Make static.
690 * buildsym.h (make_blockvector): Make extern declaration obsolete.
691 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
692 (ALLDEPFILES): Remove dstread.c.
693 (dstread.o): Obsolete make rule.
694 * dstread.c: Makefile obsolete.
695 * dst.h: Ditto.
696 * config/m68k/hp300hpux.mt: Ditto.
697 * config/m68k/hp300hpux.mh: Ditto.
698 * config/m68k/hp300bsd.mt: Ditto.
699 * config/m68k/hp300bsd.mh: Ditto.
700 * config/m68k/apollo68b.mt: Ditto.
701 * config/m68k/apollo68v.mh: Ditto.
702 * config/m68k/apollo68b.mh: Ditto.
703
e41b17f0
MS
7042002-08-20 Michael Snyder <msnyder@redhat.com>
705
706 * mips-tdep.c (mips_in_return_stub): Make static.
707 (mips_gdbarch_init): Set in_solib_return_trampoline.
708 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
709
d50355b6
MS
7102002-08-20 Michael Snyder <msnyder@redhat.com>
711
712 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
713 * gdbarch.c, gdbarch.h: Regenerate.
714 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
715 Add.
716 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
717
757a7cc6
MS
7182002-08-20 Michael Snyder <msnyder@redhat.com>
719
720 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
721 (mips_gdbarch_init): Set skip_trampoline_code,
722 in_solib_call_trampoline.
723 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
724 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
725
c8001721
EZ
7262002-08-20 Elena Zannoni <ezannoni@redhat.com>
727
728 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
729
730 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
731 vector type for ev registers.
732 (e500_pseudo_register_read): New function.
733 (e500_pseudo_register_write): New function.
734 (e500_dwarf2_reg_to_regnum): New function.
735 (PPC_UISA_NOFP_SPRS): New macro.
736 (PPC_EV_REGS): New macro.
737 (PPC_GPRS_PSEUDO_REGS): New macro.
738 (registers_e500): New register set for e500.
739 (variants): Add e500 variant.
740 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
741 before setting architectural dependent variations. Initialize ev
742 registers numbers. Add case for e500 architecture. Set the
743 number of pseudo registers.
744
64366f1c
EZ
7452002-08-20 Elena Zannoni <ezannoni@redhat.com>
746
747 * rs6000-tdep.c: Clean up comments.
748
7e78f0ca
AC
7492002-08-20 Andrew Cagney <cagney@redhat.com>
750
751 * h8300-tdep.c: Re-indent file.
752
697f7479
JB
7532002-08-20 Jim Blandy <jimb@redhat.com>
754
755 * Makefile.in (LDFLAGS): Allow the configure script to establish a
756 default for this.
697f7479 757
e86ae29f
KS
7582002-08-20 Keith Seitz <keiths@redhat.com>
759
760 * breakpoints.c (watch_command_1): Use internal breakpoint
761 when setting a watchpoint_scope breakpoint.
762
216b504f
EZ
7632002-08-20 Elena Zannoni <ezannoni@redhat.com>
764
765 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
766 (build_builtin_type_vec64i): Ditto.
767 (build_builtin_type_vec128): Ditto.
768 (build_builtin_type_vec128i): Ditto.
769
f7ab6ec6
MS
7702002-08-19 Michael Snyder <msnyder@redhat.com>
771
772 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
773 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
774 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
775 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
776 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
777 CALL_DUMMY_ADDRESS): Delete.
778 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
779 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
780 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
781 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
782 push_return_address.
783 (mips_register_raw_size, mips_eabi_use_struct_convention,
784 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
785 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
786 mips_init_extra_frame_info, mips_eabi_push_arguments,
787 mips_n32n64_push_arguments, mips_push_return_address,
788 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
789 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
790
b5d1566e
MS
7912002-08-19 Michael Snyder <msnyder@redhat.com>
792
793 * mips-tdep.c (mips_frame_num_args): New function.
794 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
795 frame_saved_pc, frame_args_address, frame_locals_address,
796 frame_num_args, and frame_args_skip.
797 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
798 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
799 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
800 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
801
2f1488ce
MS
8022002-08-20 Michael Snyder <msnyder@redhat.com>
803
804 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
805 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
806 * mips-tdep.c (mips_store_struct_return): New function.
807 (mips_extract_struct_value_address): New function.
808 (mips_gdbarch_init): Set store_struct_return and
809 extract_struct_value_address.
810
41ff2da1
DC
8112002-08-20 David Carlton <carlton@math.stanford.edu>
812
813 * dwarf2read.c (dwarf2_build_psymtabs): Check that
814 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
815 (read_file_scope): Check that line_header is nonzero before
816 decoding macro information.
817
e5451d58
MK
8182002-08-20 Mark Kettenis <kettenis@gnu.org>
819
820 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
821 flag the general-purpose registers as floating-point on targets
822 that don't support the floating-point registers.
823
4a6daafa
EZ
8242002-08-20 Elena Zannoni <ezannoni@redhat.com>
825
826 * rs6000-tdep.c (altivec_register_p): Delete.
827 (rs6000_do_altivec_registers): Delete.
828 (rs6000_altivec_registers_info): Delete.
829 (rs6000_do_registers_info): Delete.
830 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
831 (rs6000_gdbarch_init): Remove setting of do_registers_info.
832
ab4327e0
EZ
8332002-08-20 Elena Zannoni <ezannoni@redhat.com>
834
835 * infcmd.c (do_registers_info): Print vector registers in hex
836 format only.
837 (print_vector_info): Check that printing registers
838 makes sense.
839 (print_float_info): Ditto.
840
cb1d2653
AC
8412002-08-20 Andrew Cagney <ac131313@redhat.com>
842
843 * mips-tdep.c (mips_gdbarch_init): Update.
844 (mips_o32_extract_return_value): Rewrite.
845 (mips_o32_store_return_value): Rewrite.
846 (mips_o32_xfer_return_value): New function.
847 (mips_xfer_register): Tweak debug print message. Allow for
848 buf_offset when dumping the value transfered.
849
dfc3d9b2
AC
8502002-08-20 Andrew Cagney <ac131313@redhat.com>
851
852 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
853 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
854 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
855 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
856 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
857
7807aa61
MS
8582002-08-14 Michael Snyder <msnyder@redhat.com>
859
860 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
861
489461e2
EZ
8622002-08-19 Elena Zannoni <ezannoni@redhat.com>
863
864 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
865 register.
866 (P): New macro to define a register as a pseudo register.
867 (R, R4, R8, R16, FR32, R64, R0): Updated.
868 (struct variant): Add new fields for number of pseudo registers
869 and number of total registers.
870 (tot_num_registers): New macro replacing....
871 (num_registers): ...deleted macro.
872 (num_registers): New function.
873 (num_pseudo_registers): New function.
874 (variants): Update all variants to intialize new fields correctly.
875 Postpone initialization of number of pseudo regs and real regs.
876 (init_variants): New function.
877 (rs6000_gdbarch_init): Initialize variants. Update calculation of
878 registers offsets.
879
fcaffe4c
DC
8802002-08-19 David Carlton <carlton@math.stanford.edu>
881
2c2738a0
DC
882 * valops.c (search_struct_field): Change error message to treat
883 return value of 0 from value_static_field as meaning that field is
884 optimized out.
885 (value_struct_elt_for_reference): Ditto.
886 * values.c (value_static_field): Treat an unresolved location the
887 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
888 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
889 enclosed. Fix PR gdb/574.
fcaffe4c
DC
890 * MAINTAINERS: Add self to Write After Approval list.
891
88658117
AC
8922002-08-19 Andrew Cagney <ac131313@redhat.com>
893
894 * mips-tdep.c (mips_xfer_register): New function.
895 (mips_n32n64_extract_return_value): Rewrite.
896 (mips_gdbarch_init): For N32 and N64, set extract_return_value
897 instead of deprecated_extract_return_value.
898
21283beb
EZ
8992002-08-19 Elena Zannoni <ezannoni@redhat.com>
900
901 * rs6000-tdep.c (TDEP): Delete macro.
902 (branch_dest): Replace use of TDEP macro with its body.
903 (rs6000_pop_frame): Ditto.
904 (rs6000_push_arguments): Ditto.
905 (rs6000_skip_trampoline_code): Ditto.
906 (rs6000_frame_saved_pc): Ditto.
907 (rs6000_frame_chain): Ditto.
908 (rs6000_register_name): Ditto.
909 (rs6000_register_byte): Ditto.
910 (rs6000_register_raw_size): Ditto.
911 (rs6000_register_virtual_type): Ditto.
912 (rs6000_register_convertible): Ditto.
913 (rs6000_convert_from_func_ptr_addr): Ditto.
914
bf072999
DJ
9152002-08-19 Daniel Jacobowitz <drow@mvista.com>
916
917 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
918 conditionally.
919 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
920 MIPS_LINUX_JB_ELEMENT_SIZE.
921 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
922 for MAX_REGISTER_RAW_SIZE arrays.
923 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
924 MIPS_LINUX_JB_ELEMENT_SIZE.
925
9b949a49
PM
9262002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
927
928 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
929
6d3e79c6
AS
9302002-08-19 Aidan Skinner <aidan@velvet.net>
931
932 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
933 ada-valprint.c ada-tasks.c.
934 (YYFILES): Add ada-exp.y.
935 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
936 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
937 (ada-exp.tab.o): New target.
938
06c0b04e
AC
9392002-08-18 Andrew Cagney <ac131313@redhat.com>
940
941 * regcache.c (regcache_xfer_part): New function.
942 (regcache_raw_read_part): New function.
943 (regcache_raw_write_part): New function.
944 (regcache_cooked_read_part): New function.
945 (regcache_cooked_write_part): New function.
946 * regcache.h (regcache_raw_read_part): Declare.
947 (regcache_raw_write_part): Declare.
948 (regcache_cooked_read_part): Declare.
949 (regcache_cooked_write_part): Declare.
950
92d1e331
DJ
9512002-08-18 Daniel Jacobowitz <drow@mvista.com>
952
953 * remote.c (remote_open_1): Add async_p.
954 (remote_async_open_1): Delete.
955 (open_remote_target): Delete.
956 (remote_open, extended_remote_open): Update calls to remote_open_1.
957 (remote_async_open, extended_remote_async_open): Call
958 remote_open_1 instead of remote_async_open_1.
959
247055de
MK
9602002-08-19 Mark Kettenis <kettenis@gnu.org>
961
962 * blockframe.c: Fix a few coding standard violations.
963
641eda39
MK
9642002-08-19 Mark Kettenis <kettenis@gnu.org>
965
0b717710
MK
966 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
967 here from ...
968 * config/i386/tm-i386sco5.h: ... here. File removed.
969 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
970
26d28e12 971 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
972 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
973 (TM_FILE): Set to tm-i386.h.
974 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
975 * config/i386/tm-i386v.h: Remove file.
976 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
977 instead of "i386/tm-i386v.h".
978 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
979 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
980 "i386/tm-i386v.h".
981 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
982 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
983 "i386/tm-i386.h".
984
d4e0bab4
MK
9852002-08-18 Mark Kettenis <kettenis@gnu.org>
986
987 * config/i386/nm-i386v.h: Add protection against
988 multiple-inclusion.
989 (i386_register_u_addr): Remove prototype.
990 (register_u_addr): New prototype.
991 (REGISTER_U_ADDR): Redefine accordingly.
992 * i386v-nat.c: Improve several comments.
993 (i386_register_u_addr): Change signature and rename to
994 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
995 ubase variable.
996
46cac009
AC
9972002-08-18 Andrew Cagney <ac131313@redhat.com>
998
999 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1000 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1001 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1002 deprecated_extract_return_value.
1003 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1004 rename mips_o32o64_push_arguments.
1005 (mips_gdbarch_init): Update.
1006 (mips_extract_return_value): Delete.
1007 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1008 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1009 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1010 (mips_n32n64_extract_return_value): Clone
1011 mips_extract_return_value.
1012 (mips_store_return_value): Delete.
1013 (mips_o32_store_return_value): Clone mips_store_return_value.
1014 (mips_o64_store_return_value): Clone mips_store_return_value.
1015 (mips_eabi_store_return_value): Clone mips_store_return_value.
1016 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1017
d2e4a39e
AS
10182002-08-18 Aidan Skinner <aidan@velvet.net>
1019
0c30c098
AS
1020 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1021 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1022
10232002-08-18 Aidan Skinner <aidan@velvet.net>
1024
1025 * ada-lang.c: Run through gdb_indent.sh.
1026 * ada-lang.h: Run through gdb_indent.sh.
1027 * ada-tasks.c: Run through gdb_indent.sh.
1028 * ada-typeprint.c: Run through gdb_indent.sh.
1029 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1030
01fc4e33
AC
10312002-08-18 Andrew Cagney <ac131313@redhat.com>
1032
1033 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1034 ABI.
1035
d8ee244c
MK
10362002-08-18 Mark Kettenis <kettenis@gnu.org>
1037
c38d8261
MK
1038 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1039
222db64c
MK
1040 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1041 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1042
c2848c82
MK
1043 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1044 write_register_gen instead of write_register_bytes.
1045
d8ee244c
MK
1046 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1047 i[3456]-*-osf1mk* configurations have been made obsolete.
1048 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1049 i[3456]86-*-osf1mk* hosts obsolete.
1050 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1051 targets obsolete.
1052 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1053 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1054 config/i386/i386m3.mt, config/i386/nm-m3.h,
1055 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1056 config/i386/i386mk.mh, config/i386/i386mk.mt,
1057 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1058 obsolete.
1059 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1060 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1061 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1062
61d8d407
AC
10632002-08-18 Andrew Cagney <ac131313@redhat.com>
1064
1065 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1066 (hppa_value_returned_from_stack): Declare.
1067 (hppa_extract_return_value): Declare.
1068 * config/pa/hppa.mt: New file.
1069 * configure.tgt: Recognize hppa*-*-*.
1070 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1071
0c52bd59
MK
10722002-08-18 Mark Kettenis <kettenis@gnu.org>
1073
1074 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1075 comment.
1076
b5686e99
MK
10772002-08-17 Mark Kettenis <kettenis@gnu.org>
1078
1079 * top.c (gdb_rl_operate_and_get_next): Make sure
1080 operate-and-get-next functions correctly even when the history
1081 list is completely filled.
1082
c1bab85b
AC
10832002-08-18 Andrew Cagney <ac131313@redhat.com>
1084
1085 * MAINTAINERS (Target Instruction Set Architectures): Rename
1086 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1087 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1088 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1089 already listed under Host/Native.
1090
1091 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1092 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1093 mips*-*-*.
1094
32089c7c
AC
10952002-08-17 Andrew Cagney <ac131313@redhat.com>
1096
1097 * config/ia64/ia64.mt: New file.
1098 * config/alpha/alpha.mt: New file.
1099 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1100 ia64-linux-gnu. Mention that ia64-elf is broken.
1101 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1102
b4671f85
MK
11032002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1104
1105 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1106 generic_func_frame_valid instead of func_frame_valid.
1107
c8edd8b4
JB
11082002-08-16 Joel Brobecker <brobecker@gnat.com>
1109
1110 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1111 procfs appears to be broken when debugging on multi-processor
1112 machines. So enable software single stepping in order to avoid
1113 using the procfs interface to do next/step operations, using
1114 internal breakpoints instead.
1115
1116 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1117 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1118 make this pc address equal to the value it would have if the
1119 system stepping capability was used. Also set a new flag used
1120 to ensure that we don't readjust the PC one more time later.
1121
1122 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1123 address by DECR_PC_AFTER_BREAK when software single step is
1124 in use for this architecture, as this has already been taken
1125 care of in handle_inferior_event().
1126
238617f6
JB
11272002-08-16 Joel Brobecker <brobecker@gnat.com>
1128
1129 * infrun.c (handle_inferior_event): Minor reformatting, to make
1130 a rather long condition expression easier to read.
1131
541a7aac
AC
11322002-08-16 Andrew Cagney <ac131313@redhat.com>
1133
1134 * Makefile.in (gdbtk.o): Move to end of file.
1135 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1136 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1137 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1138 (gdbtk-wrapper.o, gdbres.o): Ditto.
1139
f92d4a7b
AC
11402002-08-16 Andrew Cagney <ac131313@redhat.com>
1141
1142 * Makefile.in (copying.o): Separate out compile rule.
1143 (hpux-thread.o, procfs.o, signals.o): Ditto.
1144 (v850ice.o, z8k-tdep.o): Ditto.
1145 (tui-file.o): Move to TUI section.
1146 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1147 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1148
1cce71eb
JB
11492002-08-16 Joel Brobecker <brobecker@gnat.com>
1150
1151 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1152 skip_trampoline_code, for better namespace-proofing.
1153
1154 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1155
0851f23d
JB
11562002-08-16 Joel Brobecker <brobecker@gnat.com>
1157
1158 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1159
f8d40ec8
JB
11602002-08-16 Joel Brobecker <brobecker@gnat.com>
1161
1162 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1163 signal, check whether we hit a breakpoint before checking for a
1164 single step breakpoint. Otherwise, GDB fails to notice that a
1165 breakpoint has been hit when stepping onto a breakpoint.
1166
63d022e0
KS
11672002-08-16 Keith Seitz <keiths@redhat.com>
1168
1169 * gdb-events.sh (clear_gdb_event_hooks): New function.
1170 * gdb-events.c: Regenerate.
1171 * gdb-events.h: Regenerate.
1172
6e31adb3
AC
11732002-08-16 Andrew Cagney <ac131313@redhat.com>
1174
1175 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1176 not_a_sw_breakpoint.
1177 * breakpoint.h (bpstat_stop_status): Add parameter names.
1178
c8189ed1
GS
11792002-08-16 Grace Sainsbury <graces@redhat.com>
1180
1181 * remote.c (remote_insert_hw_breakpoint)
1182 (remote_remove_hw_breakpoint): Fix calculation of length field
1183 for Z-packet.
1184
d05285fa
MS
11852002-08-15 Michael Snyder <msnyder@redhat.com>
1186
466d7106
MS
1187 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1188 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1189 (supply_fpregset): Ditto.
1190
d05285fa
MS
1191 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1192 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1193 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1194 (TARGET_READ_SP): Delete.
bf1f5b4c 1195 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1196 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1197 Delete.
1198 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1199 from macros to functions.
bf1f5b4c 1200
d05285fa
MS
1201 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1202 (mips_register_convertible, mips_register_convert_to_virtual,
1203 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1204 (mips_read_sp): New function.
1205 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1206 (mips_do_registers_info): Make static.
1207 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1208 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1209 (mips_register_convert_from_type, mips_register_convert_to_type):
1210 New functions.
1211 (mips_gdbarch_init): Set up function_start_offset,
1212 register_virtual_size, pc_in_sigtramp.
d05285fa 1213
e76f1f2e
AC
12142002-08-15 Andrew Cagney <ac131313@redhat.com>
1215
1216 * infcmd.c (vector_info): New function.
1217 (_initialize_infcmd): Add command "info vector".
1218 (print_vector_info): New function.
1219
1220 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1221 * gdbarch.h, gdbarch.c: Regenerate.
1222
4782dc19
AC
12232002-08-15 Andrew Cagney <ac131313@redhat.com>
1224
1225 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1226 ``print_all''. Only print vector registers when ``print_all''.
1227
23e3a7ac
AC
12282002-08-15 Andrew Cagney <ac131313@redhat.com>
1229
8e186fd6
AC
1230 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1231 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1232
23e3a7ac
AC
1233 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1234 Add `args' parameter.
1235 * gdbarch.h, gdbarch.c: Regenerate.
1236
1237 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1238
1239 * infcmd.c (float_info): Call print_float_info.
1240 (print_float_info): New function. By default, print the
1241 floating-point registers.
1242
1243 * arch-utils.h (default_print_float_info): Delete declaration.
1244 * arch-utils.c (default_print_float_info): Delete function.
1245
e0ca2bb9
MK
12462002-08-16 Mark Kettenis <kettenis@gnu.org>
1247
3f733acc
MK
1248 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1249 out define.
1250
7d8d2918
MK
1251 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1252 FRAME.
1253
1c7cc583
MK
1254 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1255 * configure.host: Make i[3456]86-*-aix host obsolete.
1256 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1257 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1258 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1259 config/i386/xm-i386aix.h: Make files obsolete.
1260 * i386aix-nat.c: Make file obsolete.
1261 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1262 (i386aix-nat.o): Make target obsolete.
1263
e0ca2bb9
MK
1264 * config/i386/nm-gnu.h: Removed.
1265 * config/i386/nm-i386gnu.h: New file.
1266 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1267 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1268 Moved here from ...
1269 * config/i386/tm-i386gnu.h: ... here. Removed.
1270 * config/i386/xm-i386gnu.h: Removed.
1271 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1272 (NAT_FILE): Set to nm-i386gnu.h.
1273 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1274 * i386-tdep.c: New file.
1275 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1276 (i386gnu-tdep.o): Specify dependencies.
1277
16057ec7 12782002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1279
6b99ee2e
MK
1280 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1281 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1282 Adjust a few comments to reflect reality a bit closer.
1283 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1284 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1285 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1286 target_insert_watchpoint, target_remove_watchpoint):
1287 Move defines to ...
1288 * config/i386/nm-i386sco5.h: ... here.
1289 (kernel_u_size): Add prototype. Improve a few comments and add
1290 protection against multiple inclusion.
1291
d9a6f65c
MK
1292 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1293 out define.
1294
047eff6a
MK
1295 * uw-thread.c (SP_ARG0): Define if not already defined.
1296 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1297
dcdb1290
MK
1298 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1299
5d2d0b2a
MK
1300 * config/i386/tm-i386.h: Don't include "regcache.h".
1301
61113f8b
MK
1302 * i387-tdep.h (i387_print_float_info): New prototype.
1303 * i387-tdep.c (print_i387_value, print_i387_ext,
1304 print_i387_status_word, print_i387_control_word): Add `struct
1305 ui_file *' argument and use it for output.
1306 (i387_print_float_info): Renamed from i387_float_info. Add
1307 `struct gdbarch *' and `struct ui_file *' arguments and use the
1308 latter for output.
1309 * i386-tdep.c: Include "i387-tdep.h".
1310 (i386_gdbarch_init): Set print_float_info.
1311 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1312 (FLOAT_INFO): Remove define.
1313
46e0f506
MS
13142002-08-13 Michael Snyder <msnyder@redhat.com>
1315
1316 * mips-tdep.c (mips_push_arguments): Rename to
1317 mips_eabi_push_arguments, and tune for EABI.
1318 (MIPS_REGS_HAVE_HOME_P): Delete.
1319 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1320 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1321 Delete references to mips_regs_have_home_p.
1322
409268de
KS
13232002-08-14 Keith Seitz <keiths@redhat.com>
1324
1325 * Makefile.in (install-gdbtk): Create insight plugin directory.
1326 Install plugins.tcl file.
1327
ffc6a242
KS
13282002-08-14 Keith Seitz <keiths@redhat.com>
1329
1330 * configure.in: Move SUBDIRS to near top of the file so that
1331 --enable options may add things to it.
1332 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1333 * configure: Regenerate.
1334
ebafbe83
MS
13352002-08-13 Michael Snyder <msnyder@redhat.com>
1336
1337 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1338 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1339 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1340
32f6f25d
AC
13412002-08-13 Andrew Cagney <ac131313@redhat.com>
1342
1343 * vax-tdep.c (vax_get_saved_register): Delete function.
1344 (vax_gdbarch_init): Update.
1345 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1346 (ns32k_gdbarch_init): Update.
1347 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1348 (alpha_gdbarch_init): Update.
1349
53826de9
AC
13502002-08-13 Andrew Cagney <cagney@redhat.com>
1351
1352 * regcache.c (init_regcache_descr): Overallocate the
1353 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1354 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1355 nr_raw_registers.
1356 (set_register_cached): Add range checking assertions. Use
1357 current_regcache.
1358
16057ec7 13592002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1360
1361 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1362 numbers for MMX registers.
1363
7b4c2dce
AC
13642002-08-13 Andrew Cagney <cagney@redhat.com>
1365
1366 * i386-tdep.c (i386_gdbarch_init): Use
1367 generic_unwind_get_saved_register.
1368
1e03ad20
KB
13692002-08-13 Kevin Buettner <kevinb@redhat.com>
1370
1371 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1372 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1373 target vector.
1374 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1375 Delete. Add comment regarding this now-deleted target method.
1376
548bcbec
SC
13772002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1378
1379 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1380 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1381 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1382 real PC and the page number (if it's within the memory bank window).
1383 (m68hc11_pseudo_register_write): Likewise when saving.
1384 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1385 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1386 (m68hc11_register_raw_size): And use 32-bit for it.
1387 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1388 16K memory bank is used by the prog; also use the virtual pc.
1389
7df11f59
SC
13902002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1391
1392 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1393 (m68hc11_gdbarch_init): Install it in gdbarch.
1394 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1395 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1396 (MSYMBOL_SIZE): New for documentation.
1397 (insn_return_kind): Enum to specify how a function returns.
1398 (frame_extra_info): Cleanup and record the return mode.
1399 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1400 register in address computation.
1401 (m68hc11_get_return_insn): New to obtain the return instruction used
1402 by the function.
1403 (m68hc11_frame_init_saved_regs): Take into account the return
1404 instruction used by the function for far and interrupt functions.
1405 (m68hc11_init_extra_frame_info): Take into account page register.
1406 (m68hc11_frame_args_address): Adjust according to the return mode.
1407 (show_regs): Print page register only when it's used.
1408
5706502a
SC
14092002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1410
1411 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1412 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1413 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1414 registers.
1415 (m68hc11_register_raw_size): Likewise.
1416
28fc6740
AC
14172002-08-13 Andrew Cagney <cagney@redhat.com>
1418
1419 * i386-tdep.c (i386_register_name): Handle mmx registers.
1420 (mmx_regnum_p): New function.
1421 (i386_mmx_names): New array.
1422 (mmx_num_regs): New variable.
1423 (i386_pseudo_register_read): New function.
1424 (i386_pseudo_register_write): New function.
1425 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1426
1427 * regcache.c (regcache_raw_read_unsigned): New function.
1428 (regcache_raw_read_signed): New function.
1429 * regcache.h (regcache_raw_read_unsigned): Declare.
1430 (regcache_raw_read_signed): Declare.
1431
a378f419
AC
14322002-08-13 Andrew Cagney <cagney@redhat.com>
1433
1434 * regcache.c (regcache_raw_read_as_address): Delete function.
1435 (regcache_cooked_read_signed): New function.
1436 (regcache_cooked_read_unsigned): New function.
1437 * regcache.h (regcache_cooked_read_signed): Declare.
1438 (regcache_cooked_read_unsigned): Declare.
1439 (regcache_raw_read_as_address): Delete declaration.
1440
1441 * blockframe.c (generic_read_register_dummy): Use
1442 regcache_cooked_read_unsigned.
1443 * i386-tdep.c (i386_extract_struct_value_address): Use
1444 regcache_cooked_read_unsigned.
1445
81967506
SC
14462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1447
1448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1449 double sizes according to ELF ABI flags.
1450 (gdbarch_tdep): Record elf_flags.
1451
ffe1f3ee
SC
14522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1453
1454 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1455 (m6812_prolog): They can appear in 68HC12 function prologue.
1456 (m68hc11_frame_chain): Cleanup.
1457
98216c5d
AC
14582002-08-12 Andrew Cagney <cagney@redhat.com>
1459
1460 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1461 declarations.
1462 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1463 (i386_linux_register_raw_size): Delete function.
1464 (i386_linux_init_abi): Update.
1465 * i386-tdep.c (i386_register_raw_size): Delete function.
1466 (i386_register_byte): Delete function.
1467 (i386_gdbarch_init): Update.
1468 (i386_register_size): Delete array.
1469 (i386_register_offset): Delete array.
1470
1471 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1472 (REGISTER_RAW_SIZE): Delete macro.
1473 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1474 (REGISTER_BYTE): Delete macro.
1475
3b19021e
AS
14762002-08-11 Aidan Skinner <aidan@velvet.net>
1477
1478 * ada-lang.c (ada_lookup_partial_symbol)
1479 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1480 prototype names so that grep ^func works properly.
1481
1482 * ada-lang.c (ada_array_element_type)
1483 (ada_lookup_partial_symbol): Fix typos in parameter list.
1484
1485 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1486 Fix prototype names so that grep ^func works properly.
1487
b063e7a2
AC
14882002-08-10 Andrew Cagney <cagney@redhat.com>
1489 Elena Zannoni <ezannoni@redhat.com>
1490 Martin M. Hunt <hunt@redhat.com>
1491
1492 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1493 (build_builtin_type_vec128i): Set the vector bit.
1494 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1495 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1496 (build_builtin_type_vec64): New function.
1497 (build_builtin_type_vec64i): New function.
1498 (build_gdbtypes): Initialize builtin_type_vec64 and
1499 builtin_type_vec64i.
1500
a7e3c2ad
AC
15012002-08-09 Andrew Cagney <cagney@redhat.com>
1502
1503 * regcache.c (regcache_dump): Compare the register offset
1504 with REGISTER_BYTE.
1505 * arch-utils.c (generic_register_byte): New function.
1506 * arch-utils.h (generic_register_byte): Declare.
1507 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1508 * gdbarch.h, gdbarch.c: Regenerate.
1509
af030b9a
AC
15102002-08-09 Andrew Cagney <cagney@redhat.com>
1511
1512 * regcache.c: Include "gdbcmd.h"
1513 (_initialize_regcache): Add commands "maintenance print
1514 registers", "maintenance print raw-registers" and "maintenance
1515 print cooked-registers".
1516 (enum regcache_dump_what): Define.
1517 (dump_endian_bytes): New function.
1518 (regcache_dump): New function.
1519 (regcache_print): New function.
1520 (maintenance_print_registers): New function.
1521 (maintenance_print_raw_registers): New function.
1522 (maintenance_print_cooked_registers): New function.
1523 * Makefile.in (regcache.o): Update dependencies.
1524
cb3d25d1
MS
15252002-08-09 Michael Snyder <msnyder@redhat.com>
1526
1527 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1528 (mips_push_arguments): Correct some comments. Use paddr_nz
1529 for printing addresses in debug output. Replace static
1530 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1531 (mips_n32n64_push_arguments): New function, cloned from
1532 mips_push_arguments and tuned for the n32/n64 ABI.
1533 (mips_push_register): Buffer needs dynamic allocation.
1534 (mips_print_register): Ditto.
1535 (do_gp_register_row): Ditto.
1536 (mips_store_return_value): Ditto.
1537 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1538
2163ab9d
DH
15392002-08-09 Don Howard <dhoward@redhat.com>
1540
1541 * memattr.c (mem_info_command): Print special case of upper bound
1542 as max CORE_ADDR + 1.
1543
b78bcb18
MS
15442002-08-08 Michael Snyder <msnyder@redhat.com>
1545
1546 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1547 returns structs by ref if they're too big to fit in two registers.
1548
ffabd70d
KB
15492002-08-09 Kevin Buettner <kevinb@redhat.com>
1550
1551 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1552 saved regs value.
1553 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1554 mips_find_saved_regs().
1555 (mips_pop_frame): Likewise.
1556
fbcdb4a3
KB
15572002-08-09 Kevin Buettner <kevinb@redhat.com>
1558
1559 * blockframe.c (frame_saved_regs_register_unwind): Revise
1560 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1561 frames are in use.
1562
3c3bea1c
GS
15632002-08-09 Grace Sainsbury <graces@redhat.com>
1564
1565 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1566 T-packets; the 'a' is not taken as a register number.
1567 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1568 (remote_stopped_data_address): New functions; add to target
1569 vector.
1570 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1571 prototypes to match other implementations of this
1572 function. replace integer argument with pointer -- the length
1573 field in the Z-packet is the length of what is pointed to or 1 if
1574 pointer is null. Add to target vector.
1575 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1576 target vector.
1577
1578 From Mark Salter:
1579 * remote.c (remote_wait): Add support to extract optional
1580 watchpoint information from T-packet. Ignore unrecognized
1581 optional info in T-packet.
1582 (remote_async_wait): Ditto.
1583
5d1d95de
CV
15842002-08-09 Corinna Vinschen <vinschen@redhat.com>
1585
1586 * cli/cli-dump.c: Change fopen modes to use binary open modes
1587 as defined in include/fopen-bin.h throughout.
1588
c86b5b38
MS
15892002-08-08 Michael Snyder <msnyder@redhat.com>
1590
1591 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1592
b30590dc
KB
15932002-08-08 Kevin Buettner <kevinb@redhat.com>
1594
1595 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1596 assertion failure by returning early after a warning.
1597
498868ed
KB
15982002-08-08 Kevin Buettner <kevinb@redhat.com>
1599
1600 * mips-tdep.c (mips_find_saved_regs): Make static.
1601 (mips_frame_init_saved_regs): New function.
1602 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1603 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1604 (mips_find_saved_regs): Delete declaration.
1605
b2dd6311
GS
16062002-08-08 Grace Sainsbury <graces@redhat.com>
1607
3c3bea1c
GS
1608 * remote.c (remote_wait, remote_async_wait): Change
1609 thread_num from int to ULONGEST.
1610 (unpack_varlen_hex): Change result parameter from
1611 int * to ULONGEST *.
b2dd6311 1612
ea47855f
AC
16132002-08-08 Andrew Cagney <ac131313@redhat.com>
1614
1615 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1616 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1617 powerpc*-*-*.
1618 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1619
69db8bae
AC
16202002-08-08 Andrew Cagney <cagney@redhat.com>
1621
1622 * gcore.c (override_derive_stack_segment): Delete variable.
1623 (preempt_derive_stack_segment): Delete function.
1624 (derive_stack_segment): Delete function.
1625 (default_derive_stack_segment): Renamed to derive_stack_segment.
1626 (override_derive_heap_segment): Delete variable.
1627 (preempt_derive_heap_segment): Delete function.
1628 (derive_heap_segment): Delete function.
1629 (default_derive_heap_segment): Rename to derive_heap_segment.
1630
cb811fe7
MS
16312002-08-06 Michael Snyder <msnyder@redhat.com>
1632
1633 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1634 * mips-tdep.c (mips_EABI_use_struct_convention,
1635 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1636 New functions. (mips_use_struct_convention): Delete.
1637 (mips_gdbarch_init): set use_gdbarch_convention.
1638
8b389c40
MS
16392002-08-06 Michael Snyder <msnyder@redhat.com>
1640
1641 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1642 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1643 mips_o32_reg_struct_has_addr): New functions.
1644 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1645
5c27f28a
AC
16462002-08-07 Andrew Cagney <ac131313@redhat.com>
1647
1648 * regcache.c (pseudo_register): Delete function.
1649 (fetch_register): Delete function.
1650 (store_register): Delete function.
1651 (regcache_raw_read, legacy_read_register_gen): Use
1652 target_fetch_registers instead of fetch_register.
1653 (legacy_write_register_gen, regcache_raw_write): Use
1654 target_store_register instead of store_register.
1655 (write_register_bytes): Ditto.
1656
1657 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1658 (STORE_PSEUDO_REGISTER): Delete.
1659 * gdbarch.h, gdbarch.c: Regenerate.
1660
5b331675
CV
16612002-08-06 Corinna Vinschen <vinschen@redhat.com>
1662
1663 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1664 write dump file binary.
1665
6acdf5c7
MS
16662002-08-05 Michael Snyder <msnyder@redhat.com>
1667
1668 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1669 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1670 (mips_gdbarch_init): Set N32 target to be mips64.
1671
b2f01c35
KB
16722002-08-06 Kevin Buettner <kevinb@redhat.com>
1673
1674 * frame.c (find_saved_register): Break out of loop once saved
1675 register address is found. Don't mention sparc in loop comment
1676 anymore.
1677
63db5580
KB
16782002-08-06 Kevin Buettner <kevinb@redhat.com>
1679
1680 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1681 mips_default_saved_regsize to 8.
1682
5e34e75e
AC
16832002-08-06 Andrew Cagney <ac131313@redhat.com>
1684
1685 * gcore.c: Do not include <sys/procfs.h>.
1686 * Makefile.in (gcore.o): Update dependencies.
1687
eb4c54a2
AC
16882002-08-06 Andrew Cagney <cagney@redhat.com>
1689
1690 * configure.tgt: Make arc-*-* obsolete.
1691 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1692 * MAINTAINERS: Make arc-elf obsolete.
1693 * arc-tdep.c: Make file obsolete.
1694 * config/arc/arc.mt: Ditto.
1695 * config/arc/tm-arc.h: Ditto.
1696
ced15480
TR
16972002-08-05 Theodore A. Roth <troth@verinet.com>
1698
c1bab85b 1699 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1700
b4743822
AC
17012002-08-05 Andrew Cagney <ac131313@redhat.com>
1702
1703 * mcore-tdep.c (mcore_gdbarch_init): Use
1704 generic_unwind_get_saved_register instead of
1705 generic_get_saved_register.
1706 * v850-tdep.c (v850_gdbarch_init): Ditto.
1707 * frv-tdep.c (frv_gdbarch_init): Ditto.
1708 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1709 * s390-tdep.c (s390_gdbarch_init): Ditto.
1710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1711 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1712 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1713
3956d554
JB
17142002-08-05 Joel Brobecker <brobecker@gnat.com>
1715
1716 * objfiles.h: Add missing #include "symfile.h"
1717
1718 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1719
8249c0d6
AC
17202002-08-04 Andrew Cagney <ac131313@redhat.com>
1721
1722 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1723 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1724 of FIELD_BITSIZE.
1725
b9d14705
DJ
17262002-08-04 Daniel Jacobowitz <drow@mvista.com>
1727
1728 * NEWS: Cleanup and nitpick.
1729
dd73b9bb
AC
17302002-08-03 Andrew Cagney <ac131313@redhat.com>
1731
1732 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1733
043a27f8
AC
17342002-08-03 Andrew Cagney <ac131313@redhat.com>
1735
1736 * Makefile.in (gdbtk-bp.o): Update dependencies.
1737 (gdbtk-register.o): Ditto.
1738 (gdbtk-varobj.o): Ditto.
1739
46ce284d
AC
17402002-08-03 Andrew Cagney <cagney@redhat.com>
1741
1742 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1743 m68hc11_fetch_pseudo_register.
1744 (m68hc11_pseudo_register_write): Replace
1745 m68hc11_store_pseudo_register.
1746 (m68hc11_gdbarch_init): Update.
1747
b66d6d2e
AC
1748Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1749
1750 * gdbarch.sh: Include "gdb_string.h".
1751 * gdbarch.c: Regenerate.
1752
1753 * regcache.c: Include "gdb_string.h".
1754 * ax-general.c: Ditto.
1755 * varobj.c: Ditto.
1756 * std-regs.c: Ditto.
1757 * fbsd-proc.c: Ditto.
1758 * thread.c: Ditto.
1759
1760 * Makefile.in (regcache.o): Update dependencies.
1761 (thread.o, gdbarch.o): Ditto.
1762 (ax-general.o, gdbarch.o): Ditto.
1763 (varobj.o, std-regs.o): Ditto.
1764 (fbsd-proc.o): Specify dependencies.
1765
29e1842b
AC
17662002-08-02 Andrew Cagney <cagney@redhat.com>
1767
1768 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1769 regnum.
1770 (regcache_cooked_write): Ditto.
1771
68365089
AC
17722002-08-02 Andrew Cagney <ac131313@redhat.com>
1773
1774 * regcache.c (regcache_cooked_read): New function.
1775 (regcache_cooked_write): New function.
1776 (read_register_gen): Rewrite using regcache_cooked_read.
1777 (write_register_gen): Rewrite using regcache_cooked_write.
1778
1779 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1780 Declare.
1781
d8124050
AC
17822002-08-02 Andrew Cagney <cagney@redhat.com>
1783
1784 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1785 Replace the architecture methods register_read and register_write.
1786 * gdbarch.h, gdbarch.c: Regenerate.
1787 * regcache.c (init_regcache_descr): Update.
1788 (read_register_gen): Update.
1789 (write_register_gen): Update.
1790 (supply_register): Update comment.
1791
1792 * sh-tdep.c (sh_gdbarch_init): Update.
1793 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1794 `regcache' and `gdbarch' parameters. Make `buffer' a void
1795 pointer. Update code.
1796 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1797 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1798 void pointer. Update code.
1799 (sh64_register_write): Delete.
1800 (sh4_register_read): Delete.
1801 (sh64_register_read): Delete.
1802 (sh4_register_write): Delete.
1803 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1804 void pointer, `to' parameter a void pointer.
1805 (sh_sh64_register_convert_to_raw): Ditto.
1806
a6425924
KB
18072002-08-01 Kevin Buettner <kevinb@redhat.com>
1808
1809 * mips-tdep.c (mips_register_virtual_type): Use architecture
1810 invariant return values.
1811
ff5922b5
AC
18122002-08-01 Andrew Cagney <cagney@redhat.com>
1813
1814 * linux-proc.c: Include "gdb_string.h".
1815 * Makefile.in (linux-proc.o): Update dependency list.
1816
32a6503c
KB
18172002-08-01 Kevin Buettner <kevinb@redhat.com>
1818
1819 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1820 comment.
1821
ccaa32c7
GS
18222002-08-01 Grace Sainsbury <graces@redhat.com>
1823
1824 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1825 to_insert_watchpoint, to_remove_watchpoint,
1826 to_stopped_by_watchpoint, to_stopped_data_address,
1827 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1828 target vecctor. Define their corresponding macros so they call
1829 them.
1830
1831 * target.c: Add default and debug versions of for
1832 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1833 to_insert_watchpoint, to_remove_watchpoint,
1834 to_stopped_by_watchpoint, to_stopped_data_address,
1835 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1836
78fde5f8
KB
18372002-08-01 Kevin Buettner <kevinb@redhat.com>
1838
1839 * mips-tdep.c (mips_register_virtual_type): New function.
1840 (mips_gdbarch_init): Register mips_register_virtual_type()
1841 with gdbarch machinery.
1842 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1843 this file instead of tm-bigmips.h.
1844 (MIPS_REGSIZE): Delete this macro.
1845 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1846 multiarch version in mips-tdep.c will be found.
1847
db034ac5
AC
18482002-08-01 Andrew Cagney <cagney@redhat.com>
1849
1850 * NEWS: Menion that CHILL has been made obsolete.
1851
1852 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1853 * stabsread.c (read_range_type): Ditto.
1854 * gdbtypes.h: Ditto.
1855 * language.c (binop_type_check): Ditto.
1856 (binop_result_type): Ditto.
1857 (integral_type): Ditto.
1858 (character_type): Ditto.
1859 (string_type): Ditto.
1860 (boolean_type): Ditto.
1861 (structured_type): Ditto.
1862 (lang_bool_type): Ditto.
1863 (binop_type_check): Ditto.
1864 * language.h (_LANG_chill): Ditto.
1865 * dwarfread.c (set_cu_language): Ditto.
1866 * dwarfread.c (CHILL_PRODUCER): Ditto.
1867 * dwarfread.c (handle_producer): Ditto.
1868 * expression.h (enum exp_opcode): Ditto.
1869 * eval.c: Ditto for comments.
1870 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1871 * expprint.c (print_subexp): Ditto.
1872 (print_subexp): Ditto.
1873 * valops.c (value_cast): Ditto.
1874 (search_struct_field): Ditto.
1875 * value.h (COERCE_VARYING_ARRAY): Ditto.
1876 * symfile.c (init_filename_language_table): Ditto.
1877 (add_psymbol_with_dem_name_to_list): Ditto.
1878 * valarith.c (value_binop): Ditto.
1879 (value_neg): Ditto.
1880 * valops.c (value_slice): Ditto.
1881 * symtab.h (union language_specific): Ditto.
1882 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1883 (SYMBOL_DEMANGLED_NAME): Ditto.
1884 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1885 * defs.h (enum language): Ditto.
1886 * symtab.c (got_symtab): Ditto.
1887 * utils.c (fprintf_symbol_filtered): Ditto.
1888
1889 * ch-typeprint.c: Make file obsolete.
1890 * ch-valprint.c: Make file obsolete.
1891 * ch-lang.h: Make file obsolete.
1892 * ch-exp.c: Make file obsolete.
1893 * ch-lang.c: Make file obsolete.
1894
1895 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1896 CHILL_LIB.
1897 (TARGET_FLAGS_TO_PASS): Ditto.
1898 (CHILLFLAGS): Obsolete.
1899 (CHILL): Obsolete.
1900 (CHILL_FOR_TARGET): Obsolete.
1901 (CHILL_LIB): Obsolete.
1902 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1903 ch-valprint.c.
1904 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1905 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1906 ch-lang.o.
1907 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1908 targets.
1909
8aaf0b47
JB
19102002-07-31 Joel Brobecker <brobecker@gnat.com>
1911
1912 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1913 This does not change anything at the moment, but will be helpful
1914 later when full Ada support is integrated.
1915
f3a7b3a5
KB
19162002-07-31 Kevin Buettner <kevinb@redhat.com>
1917
1918 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1919 help message.
1920
fb850278
KB
19212002-07-31 Kevin Buettner <kevinb@redhat.com>
1922
1923 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1924 and save it in a local variable. Use variable in later test.
1925
e3bddbfa
KB
19262002-07-31 Kevin Buettner <kevinb@redhat.com>
1927
1928 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1929 test. (Thanks to Daniel Jacobowitz.)
1930
28d169de
KB
19312002-07-31 Kevin Buettner <kevinb@redhat.com>
1932
1933 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1934 (mips_abi_strings): Add "n64".
1935 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1936
7fe7e44e
KB
19372002-07-31 Kevin Buettner <kevinb@redhat.com>
1938
1939 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1940 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1941
c6caf090
KB
19422002-07-31 Kevin Buettner <kevinb@redhat.com>
1943
1944 * utils.c (host_pointer_to_address, address_to_host_pointer):
1945 Use gdb_assert() instead of explicit call to internal_error().
1946
c41669e0
KB
19472002-07-30 Kevin Buettner <kevinb@redhat.com>
1948
1949 * Makefile.in (rs6000-nat.o): Update dependencies.
1950
1951 From Nicholas Duffek:
1952 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1953 (aix-thread.o): New rule.
1954 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1955 * config/powerpc/aix432.mh: New file.
1956
2fda4977
DJ
19572002-07-30 Daniel Jacobowitz <drow@mvista.com>
1958
1959 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1960 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1961 (fetch_core_registers, ppc_linux_supply_gregset)
1962 (ppc_linux_supply_fpregset): New functions.
1963 (ppc_linux_regset_core_fns): New.
1964 (_initialize_ppc_linux_tdep): Call add_core_fns.
1965 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1966 and ppc_linux_supply_gregset.
1967 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1968 (supply_fpregset): Call ppc_linux_supply_fpregset.
1969 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1970 corelow.o.
1971 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1972
729051e6
DJ
19732002-07-30 Daniel Jacobowitz <drow@mvista.com>
1974
1975 * symtab.c (lookup_symbol): Demangle before lowercasing.
1976
5f8a3188
AC
19772002-07-30 Andrew Cagney <ac131313@redhat.com>
1978
1979 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1980 declaration.
1981 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1982 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1983 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1984 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1985 "gdb_string.h".
1986 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1987 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1988 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1989 (avr-tdep.o, mon960-rom.o): Ditto.
1990 (aout_stabs_gnu_h): Define.
1991 (symtab_h): Remove $(gdb_obstack_h).
1992
67f07146
JB
19932002-07-30 Jim Blandy <jimb@redhat.com>
1994
1995 Patch from David Carlton <carlton@math.stanford.edu>:
1996 * gdbinit.in: Move the `dir' commands that add GDB's own source
1997 directory to the search path to the end, so that the `gdb' source
1998 directory will be searched first.
1999
04ea0df1
AC
20002002-07-29 Andrew Cagney <ac131313@redhat.com>
2001
2002 * gdb_obstack.h: New file.
2003 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2004 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2005 * objfiles.h: Include "gdb_obstack.h".
2006 * Makefile.in (gdb_obstack_h): Define.
2007 (symtab_h): Add $(gdb_obstack_h).
2008 (objfiles_h): Add $(gdb_obstack_h).
2009
2010 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2011 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2012 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2013 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2014 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2015 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2016 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2017 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2018
2019 * Makefile.in (bcache.o): Update dependencies.
2020 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2021 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2022 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2023 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2024 (stabsread.o, symfile.o, symmisc.o): Ditto.
2025 (symtab.o, typeprint.o, macroexp.o): Ditto.
2026 (macrotab.o, mdebugread.o): Ditto.
2027 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2028 (coff_ecoff_h, aout_aout64_h): Define.
2029 (aout_stabs_gnu_h, libaout_h): Define.
2030
d138e37a
AC
20312002-07-29 Andrew Cagney <cagney@redhat.com>
2032
2033 * regcache.c (struct regcache_descr): Rename nr_registers to
2034 nr_cooked_registers. Revise comments describing the structure
2035 member fields.
2036 (init_regcache_descr): Update.
2037 (init_legacy_regcache_descr): Update.
2038 (read_register_gen, write_register_gen): When a cooked register in
2039 the raw register range, directly access the value from the raw
2040 register cache.
2041
460e6ec3
AC
20422002-07-29 Andrew Cagney <ac131313@redhat.com>
2043
2044 * z8k-tdep.c: Do not include "obstack.h".
2045 * h8300-tdep.c, h8500-tdep.c: Ditto.
2046 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2047 * valprint.c, v850-tdep.c: Ditto.
2048 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2049 * mn10200-tdep.c: Ditto.
2050
2051 * Makefile.in (z8k-tdep.o): Update dependencies.
2052 (m68hc11-tdep.o, valprint.o): Ditto.
2053 (v850-tdep.o, d10v-tdep.o): Ditto.
2054 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2055 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2056 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2057 (sh_opc_h, gdb_sim_sh_h): Define.
2058 (elf_sh_h, elf_bfd_h): Define.
2059 (opcode_m68hc11_h): Define.
2060 (OPCODES_SRC, OPCODES_DIR): define.
2061 (OPCODES): Use $(OPCODES_DIR).
2062 (gdb_sim_d10v_h): Rename sim_d10v_h.
2063 (gdb_sim_arm_h): Rename sim_arm_h.
2064
790c9cf0
KB
20652002-07-26 Kevin Buettner <kevinb@redhat.com>
2066
2067 * utils.c (host_pointer_to_address, address_to_host_pointer):
2068 Change internal_error() message to indicate function responsible
2069 for the error.
2070
9647fa49
KB
20712002-07-26 Kevin Buettner <kevinb@redhat.com>
2072
2073 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2074 calls to local_hex_string_custom().
2075
dabbe2c0
KB
20762002-07-26 Kevin Buettner <kevinb@redhat.com>
2077
2078 * irix5-nat.c: Move IRIX shared library support from here...
2079 * solib-irix.c: ...to here. Revised substantially to work with
2080 generic solib framework.
2081
b96d0a4e
KB
2082 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2083 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2084 * mips-irix-tdep.c: New file.
2085
313fb2f6
KB
2086 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2087 (mips-irix-tdep.o, solib-irix.o): New rules.
2088 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2089 solib-irix.o.
2090 * config/mips/irix6.mt (TDEPFILES): Likewise.
2091 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2092
ab2eaf26
KB
20932002-07-26 Kevin Buettner <kevinb@redhat.com>
2094
177e4768 2095 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2096 disabled (via ``#if 0'') includes.
2097
7244546a
KB
20982002-07-26 Kevin Buettner <kevinb@redhat.com>
2099
2100 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2101 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2102 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2103 Add support for the fpscr register.
2104 * rs6000-nat.c (regmap, fetch_inferior_registers)
2105 (store_inferior_registers, fetch_core_registers): Likewise.
2106
dd7be90a
KB
21072002-07-26 Kevin Buettner <kevinb@redhat.com>
2108
2109 * rs6000-nat.c (language.h): Include.
2110 (special_regs): Delete this array.
2111 (regmap): New function.
2112 (fetch_register, store_register): Use regmap() to map gdb
2113 register numbers to ptrace register numbers. Also, use
2114 outputs from regmap() to make decisions regarding type of
2115 ptrace() call to make. In particular, don't compare against
2116 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2117 (fetch_inferior_registers, store_inferior_registers): Where
2118 possible, obtain register numbers from tdep struct. Don't
2119 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2120 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2121 (LAST_UISA_SP_REGNUM): Delete.
2122
11bf77db
KB
21232002-07-25 Kevin Buettner <kevinb@redhat.com>
2124
2125 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2126 (fetch_registers, store_register, fetch_core_registers): Don't
2127 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2128 regcache_collect() as appropriate.
2129 (find_toc_address): Format hex address with local_hex_string().
2130
06afebeb
AC
21312002-07-25 Andrew Cagney <ac131313@redhat.com>
2132
2133 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2134 bfd/elf32-frv.c.
2135
8c554d79
TT
21362002-07-24 Tom Tromey <tromey@redhat.com>
2137
2138 * jv-exp.y: Marked all strings with _().
2139 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2140 internal_error.
2141 (MethodInvocation, CastExpression, parse_number, yyerror,
2142 java_type_from_name, push_expression_name, yylex): Typo fixes.
2143
e4c242d9
DJ
21442002-07-24 Daniel Jacobowitz <drow@mvista.com>
2145
2146 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2147 (tee_file_flush, tee_file_write, tee_file_fputs)
2148 (tee_file_isatty): New.
2149 * ui-file.h (tee_file_new): Add prototype.
2150
ebf56fd3
AS
21512002-07-24 Aidan Skinner <aidan@velvet.net>
2152
2153 * ada-lang.c: Change k&r style function definitions to prototyped
2154 form.
2155 * ada-typeprint.c: Change k&r style function definitions to prototyped
2156 form.
2157 * ada-valprint.c: Change k&r style function definitions to prototyped
2158 form.
2159
7fb623f7
AC
21602002-07-24 Andrew Cagney <cagney@redhat.com>
2161
2162 * README: Remove reference to remote-bug.
2163 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2164 remote-bug.c.
2165 (m88k-nat.o): Delete rule.
2166 (m88k-tdep.o): Delete rule.
2167 (remote-bug.o): Delete rule.
2168 * MAINTAINERS: Mark as obsolete.
2169 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2170 * m88k-tdep.c: Make file obsolete.
2171 * config/m88k/m88k.mh: Ditto.
2172 * config/m88k/delta88v4.mh: Ditto.
2173 * config/m88k/delta88v4.mt: Ditto.
2174 * config/m88k/delta88.mt: Ditto.
2175 * config/m88k/delta88.mh: Ditto.
2176 * remote-bug.c: Ditto.
2177 * config/m88k/tm-delta88.h: Ditto.
2178 * config/m88k/nm-delta88v4.h: Ditto.
2179 * config/m88k/xm-delta88.h: Ditto.
2180 * config/m88k/xm-dgux.h: Ditto.
2181 * config/m88k/tm-m88k.h: Ditto.
2182 * config/m88k/nm-m88k.h: Ditto.
2183 * config/m88k/tm-delta88v4.h: Ditto.
2184 * m88k-nat.c: Ditto.
2185 * cxux-nat.c: Ditto.
2186 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2187 and m88*-*-* obsolete.
2188 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2189 m88*-*-* obsolete.
2190
37611a2b
AC
21912002-07-24 Andrew Cagney <cagney@redhat.com>
2192
2193 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2194 constant. Same for local pointer variables.
2195 (extract_signed_integer): Ditto.
2196 * defs.h (extract_unsigned_integer): Update.
2197 (extract_signed_integer): Update.
2198
1aaa5f99
AC
21992002-07-24 Andrew Cagney <cagney@redhat.com>
2200
2201 * regcache.c (regcache_raw_write): Change buf parameter to a
2202 constant void pointer.
2203 (regcache_raw_read): Change buf parameter to a void pointer.
2204 (legacy_write_register_gen): Change myaddr parameter a constant
2205 void pointer.
2206 (supply_register): Change val parameter to a const void pointer.
2207 * regcache.h (regcache_raw_write): Update declaration.
2208 (regcache_raw_read): Update declaration.
2209 (supply_register): Update declaration.
2210
b4f5539f
TT
22112002-07-24 Tom Tromey <tromey@redhat.com>
2212
2213 * defs.h (gdb_readline_wrapper): Declare.
2214 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2215 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2216 * top.c (gdb_readline_wrapper): New function.
2217 (command_line_input): Use it.
2218
0818c12a
AC
22192002-07-24 Andrew Cagney <cagney@redhat.com>
2220
2221 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2222 regcache_read and regcache_write.
2223 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2224 * regcache.c: Update.
2225 * sh-tdep.c (sh64_push_arguments): Update comment.
2226 (sh_pseudo_register_read): Update.
2227 (sh_pseudo_register_write): Update.
2228 (sh4_register_read): Update.
2229 (sh4_register_write): Update.
2230 (sh64_pseudo_register_read): Update.
2231 (sh64_pseudo_register_write): Update.
2232 (sh64_register_read): Update.
2233 (sh64_register_write): Update.
2234 * i386-tdep.c (i386_extract_return_value): Update.
2235 (i386_extract_struct_value_address): Update.
2236 (i386_extract_return_value): Update.
2237 * blockframe.c (generic_read_register_dummy): Update.
2238 (generic_call_dummy_register_unwind): Update
2239 * infrun.c (write_inferior_status_register): Update.
2240
f7321c06
JB
22412002-07-23 Jim Blandy <jimb@redhat.com>
2242
2243 * parser-defs.h (expression_context_pc): Make this extern.
2244 (Thanks to Michael Snyder.)
2245
2037aebb
AC
22462002-07-23 Andrew Cagney <ac131313@redhat.com>
2247
2248 GDB 5.2.1 released from 5.2 branch.
2249 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2250 * README: Update to mention 5.2.1.
2251
66504d44
MS
22522002-07-23 Mark Salter <msalter@redhat.com>
2253
2254 * remote.c (remote_read_bytes): Fix check for error.
2255
27bae383
KB
22562002-07-22 Kevin Buettner <kevinb@redhat.com>
2257
2258 * aix-thread.c (language.h): Include.
2259 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2260 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2261 Print newlines at end of debug messages.
2262 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2263 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2264
22652002-07-22 Kevin Buettner <kevinb@redhat.com>
2266
2267 * aix-thread.c (ppc-tdep.h): Include.
2268 (special_register_p): New function.
2269 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2270 (store_regs_user_thread): Use register number information from
2271 gdbarch_tdep struct instead of hardcoded offsets relative to
2272 FIRST_UISA_SP_REGNUM.
2273 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2274 special_register_p() instead of using FPLAST_REGNUM and
2275 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2276 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2277 will be MQ's register number.
2278
22792002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2280
2281 * aix-thread.c (ops): Rename to aix_thread_ops.
2282 (base_ops): Rename to base_target.
2283 (ops_attach): Rename to aix_thread_attach.
2284 (ops_detach): Rename to aix_thread_detach.
2285 (ops_resume): Rename to aix_thread_detach.
2286 (ops_wait): Rename to aix_thread_wait.
2287 (ops_kill): Rename to aix_thread_kill.
2288 (init_ops): Rename to init_aix_thread_ops.
2289 (ops_fetch_register): Rename to aix_thread_fetch_register.
2290 (ops_store_register): Rename to aix_thread_store_register.
2291 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2292 (ops_thread_alive): Rename to aix_thread_thread_alive.
2293 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2294 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2295 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2296 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2297 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2298 (store_regs_lib): Rename to store_regs_user_thread.
2299 (store_regs_kern): Rename to store_regs_kernel_thread.
2300
27bae383 23012002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2302
2303 * aix-thread.c (ops_prepare_to_store): Eliminate.
2304 (init_ops): Don't initialize ops.prepare_to_store.
2305 (store_regs_kern): Pre-fetch register buffers from child,
2306 because some registers may not be in the cache. Copy
2307 regs from register cache only if they are cached.
2308 (store_regs_lib): Copy regs from register cache only
2309 if they are cached.
2310 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2311 fill_gprs64): Ditto.
2312
61c5da0b
KB
23132002-07-22 Kevin Buettner <kevinb@redhat.com>
2314
2315 * aix-thread.c (gdb_assert.h): Include.
2316 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2317 register sizes (from register cache) match size of buffer holding
2318 register data.
2319 (fill_sprs32): Change parameter types to match those in the ptrace()
2320 buffer.
2321 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2322 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2323
23242002-07-22 Michael Snyder <msnyder@redhat.com>
2325
2326 * aix-thread.c (supply_sprs64): Cosmetic change.
2327 (supply_sprs32): Cosmetic change.
2328 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2329 (fill_sprs64): Use regcache_collect instead of read_register.
2330 (store_regs_lib): Use regcache_collect instead of
2331 read_register. Use fill_sprs32 instead of fill_sprs64,
2332 if debugging a 32-bit architecture.
2333 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2334 out of the register cache, instead of passing a pointer into
2335 the register cache directly to ptrace. Use regcache_collect
2336 insteaad of read_register.
2337 (ops_prepare_to_store): Use target_read_registers instead
2338 of read_register_bytes.
2339
36479eb1
AS
23402002-07-20 Aidan Skinner <aidan@velvet.net>
2341
2342 * MAINTAINERS: Add self under write after approval.
2343
80ae6ee2
AS
23442002-07-20 Aidan Skinner <aidan@velvet.net>
2345
2346 * ada-tasks.c: Change k&r style function definitions to prototyped
2347 form.
2348
8a8ab2b9
AC
23492002-07-19 Andrew Cagney <ac131313@redhat.com>
2350
2351 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2352 * x86-64-tdep.c: Include "objfiles.h".
2353 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2354 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2355
fb16b900
ML
23562002-07-17 Michal Ludvig <michal@suse.cz>
2357
2358 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2359 (update_context): Initialise cfa variable.
2360
0fe7bf7b
MS
23612002-07-17 Michael Snyder <msnyder@redhat.com>
2362
2363 * aix-thread.c: Shorten some long lines.
2364 Bring comments into line with code spec.
2365
488f131b
JB
23662002-07-18 Joel Brobecker <brobecker@gnat.com>
2367
2368 * infrun.c: Re-indent using gdb_indent.sh.
2369
46c415d2
JB
23702002-07-18 Joel Brobecker <brobecker@gnat.com>
2371
2372 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2373 Leave the indentation temporarily untouched, to minimize the diffs.
2374
cdecafbe
EZ
23752002-07-18 Elena Zannoni <ezannoni@redhat.com>
2376
2377 * stabsread.c: Make os9k sections of the code obsolete,
2378 for real this time.
2379 * stabsread.h: Make os9k sections of the code obsolete.
2380
7b6aa020
ML
23812002-07-18 Michal Ludvig <mludvig@suse.cz>
2382
09ec9b38
ML
2383 * linux-low.c (regsets_store_inferior_registers): Add free()
2384 at the end of a loop to prevent memory leak.
2385 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2386 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2387 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2388 line a comment.
4894ac5d 2389 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2390
233282cd
JB
23912002-07-17 Jim Blandy <jimb@redhat.com>
2392
2393 * macrocmd.c (info_macro_command): Remove newline from error
2394 message.
2395
7b6aa020 23962002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2397
2398 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2399 (sh_gdbarch_init): Use it for sh-dsp.
2400
f7ef9339
KB
24012002-07-16 Kevin Buettner <kevinb@redhat.com>
2402
2403 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2404 64-bit DWARF2 format.
2405
8dd72958
JB
24062002-07-16 Joel Brobecker <brobecker@gnat.com>
2407
2408 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2409 <sys/proc.h> when not available.
2410
a99a9e1b
AC
24112002-07-16 Andrew Cagney <ac131313@redhat.com>
2412
2413 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2414 * stabsread.c: Make os9k sections of the code obsolete.
2415 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2416 * config/i386/i386os9k.mt: Make file obsolete.
2417 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2418 (COMMON_OBS): Remove os9kread.o
2419 (SFILES): Remove os9kread.c.
2420 (os9kread.o, remote-os9k.o): Make target obsolete.
2421 * remote-os9k.c: Make file obsolete.
2422 * os9kread.c: Make file obsolete.
2423 * Makefile.in
2424
7a3085c1
AC
24252002-07-16 Andrew Cagney <ac131313@redhat.com>
2426
2427 * NEWS: Mention that the FR30 has been made obsolete.
2428 * fr30-tdep.c: Make file obsolete.
2429 * config/fr30/tm-fr30.h: Ditto.
2430 * config/fr30/fr30.mt: Ditto.
2431 * configure.tgt: Make fr30-*-elf obsolete.
2432 * MAINTAINERS: Make fr30-elf obsolete.
2433
28a93f5a
PM
24342002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2435
2436 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2437 found is not inside a section.
2438
be006b8b
KB
24392002-07-15 Kevin Buettner <kevinb@redhat.com>
2440
2441 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2442 strerror().
2443 (pdc_realloc): Use xrealloc() instead of realloc().
2444
14fa3751
KB
24452002-07-15 Kevin Buettner <kevinb@redhat.com>
2446
2447 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2448 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2449 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2450 macros.
2451
42cc437f
KB
24522002-07-15 Kevin Buettner <kevinb@redhat.com>
2453
2454 * aix-thread.c (ptrace_check): Eliminate goto.
2455 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2456 problem.
2457
8e2c28d4
KB
24582002-07-15 Kevin Buettner <kevinb@redhat.com>
2459
2460 * aix-thread.c (gdbcmd.h): Include.
2461 (DEBUG, DBG, DBG2, dbg): Eliminate.
2462 (debug_aix_thread): New static global.
2463 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2464 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2465 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2466 invocations to DBG and DBG2 macros to test against
2467 ``debug_aix_thread'' and call fprintf_unfiltered().
2468 (_initialize_aix_thread): Add new command "set debug aix-thread".
2469
30413464
AC
24702002-07-15 Andrew Cagney <ac131313@redhat.com>
2471
2472 From Gerhard Tonn <TON@de.ibm.com>:
2473 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2474 instead of supply_register.
2475
7c43edc1
AC
24762002-07-15 Andrew Cagney <ac131313@redhat.com>
2477
2478 * dwarf2cfi.c: Include "gdb_assert.h".
2479 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2480 non-NULL.
2481 (update_context): Do not use __func__. Add missing ``break''.
2482 (update_context): Do not use __func__.
2483
9364a0ef
EZ
24842002-07-15 Elena Zannoni <ezannoni@redhat.com>
2485
2486 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2487 and its setting. Set gdbarch instruction printing functions
2488 directly. For non-rs6000 case use new function
2489 gdb_print_insn_powerpc.
2490 (gdb_print_insn_powerpc): New function.
2491
3fbeef0b
AC
24922002-07-13 Andrew Cagney <ac131313@redhat.com>
2493
92eb23c5 2494 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2495 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2496 * configure.tgt: Mark d30v-*-* as obsolete.
2497 * d30v-tdep.c: Mark file as obsolete.
2498 * config/d30v/d30v.mt: Ditto.
2499 * config/d30v/tm-d30v.h: Ditto.
2500
aacb1f0a
AS
25012002-07-13 Aidan Skinner <aidan@velvet.net>
2502
2503 * ada-tasks.c (add_task_entry): replace calls to
2504 malloc() with xmalloc
2505 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2506
2507 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2508 ada_finish_decode_line_1, all_sals_for_line
2509 ada_breakpoint_rewrite): replace calls to free() with xfree()
2510
c11d79f2
KB
25112002-07-12 Kevin Buettner <kevinb@redhat.com>
2512
2513 From Nicholas Duffek (with minor changes by Martin Hunt,
2514 Louis Hamilton, and Kevin Buettner):
2515 * aix-thread.c: New file.
2516
8e19ed76
PS
25172002-07-12 Petr Sorfa <petrs@caldera.com>
2518
2519 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2520 complaint for invalid attribute class or form.
2521 (read_func_scope): DW_AT_frame_base
2522 better handling of DW_AT_block*.
2523 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2524 better handling of DW_AT_block*.
2525 (read_common_block): DW_AT_location
2526 better handling of DW_AT_block*.
2527 (read_partial_die): DW_AT_location better handling
2528 of DW_AT_block*.
2529 (new_symbol): DW_AT_external better handling of
2530 DW_AT_block*. Proper initialization of variable
2531 "addr".
2532 (attr_form_is_block): New function that returns true
2533 if the attribute's form is of DW_FORM_block*.
2534
295401f7
DJ
25352002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2536
2537 * valops.c (find_method_list): Remove comment about
2538 removed STATIC_MEMFUNCP argument.
2539 (value_find_oload_method_list): Likewise.
2540
e42dc924
KB
25412002-07-12 Kevin Buettner <kevinb@redhat.com>
2542
2543 From Nicholas Duffek:
2544 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2545 target_new_objfile_hook.
2546
6904b546
KB
25472002-07-12 Kevin Buettner <kevinb@redhat.com>
2548
2549 From Nicholas Duffek:
2550 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2551 csect.
2552
53fe9346
AC
25532002-07-12 Andrew Cagney <cagney@redhat.com>
2554
2555 * MAINTAINERS: Mention --enable-sim-build-warnings.
2556 (m68hc11-elf): Disable sim build warnings.
2557 (m32r-elf): Mark as broken obsolete candidate.
2558 (x86_64-linux-gnu): Mark as buildable with -Werror.
2559 (arm-elf): Change -w to ``,'' which enables warnings but not
2560 -Werror.
2561
af5f3db6
AC
25622002-07-12 Andrew Cagney <ac131313@redhat.com>
2563
2564 * bcache.h: Update copyright.
2565 (struct bstring, struct bcache): Move definition to "bcache.c".
2566 Replaced by opaque declaration.
2567 (bcache_xfree): Replace free_bcache.
2568 (bcache_xmalloc, bcache_memory_used): Declare.
2569
2570 * bcache.c: Update copyright.
2571 (struct bstring, struct bcache): Moved to here from "bcache.h".
2572 Update comments.
2573 (bcache_xmalloc, bcache_memory_used): New functions.
2574 (bcache_xfree): Replace function free_bcache.
2575
2576 * Makefile.in (objfiles.o): Add $(bcache_h).
2577 (objfiles_h): Remove $(bcache_h).
2578 (symfile.o): Add $(bcache_h).
2579
2580 * symmisc.c: Update copyright.
2581 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2582 (print_objfile_statistics): Use bcache_memory_used.
2583
2584 * symfile.c: Include "bcache.h".
2585 (reread_symbols): Use bcache_xfree.
2586 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2587 (add_psymbol_to_list): Pass psymbol_cache by value.
2588 (add_psymbol_with_dem_name_to_list): Ditto.
2589
2590 * objfiles.h: Update copyright.
2591 (struct bcache): Declare opaque. Do not include "bcache.h".
2592 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2593 bcache'' pointers.
2594 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2595
2596 * objfiles.c: Include "bcache.h". Update copyright.
2597 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2598 macro_cache.
2599 (free_objfile): Use bcache_xfree.
2600
444199e7
GS
26012002-07-11 Grace Sainsbury <graces@redhat.com>
2602
2603 * monitor.c (monitor_fetch_register): Make name a constant.
2604 (monitor_store_register): Same.
2605
261397f8
DJ
26062002-07-11 Daniel Jacobowitz <drow@mvista.com>
2607
2608 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2609 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2610 (finish_block) For non-function blocks, hash the symbol table. For
2611 function blocks, mark the symbol table as unhashed.
2612 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2613 (msymbol_hash_iw): Likewise.
2614 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2615 value.
2616 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2617 (lookup_minimal_symbol): Likewise for both.
2618 * symtab.h (struct block): Add `hashtable' flag. Comment the
2619 hashtable.
2620 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2621 (ALL_BLOCK_SYMBOLS): Update.
2622 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2623 (struct symbol): Add `hash_next' pointer.
2624 * symtab.c (lookup_block_symbol): Search using the hash table when
2625 possible.
2626 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2627 (search_symbols, find_addr_symbol): Likewise.
2628
2629 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2630 (read_dst_symtab): Likewise.
2631 * jv-lang.c (get_java_class_symtab): Likewise.
2632 * mdebugread.c: Include "gdb_assert.h".
2633 (shrink_block): Assert that the block being modified is not hashed.
2634 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2635 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2636 symbols.
2637 (dump_symtab): Recognize hashed blocks.
2638 * printcmd.c (print_frame_args): Assert that function blocks do not
2639 have hashed symbol tables.
2640 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2641 (fill_in_ada_prototype, debug_print_block): Likewise.
2642 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2643
6f0eaa01
CV
26442002-07-11 Corinna Vinschen <vinschen@redhat.com>
2645
2646 * stack.c (print_frame): Use result of frame_address_in_block()
2647 instead of fi->pc when evaluating symbols.
2648 (backtrace_command_1): Ditto.
2649
a208b0cb
AC
26502002-07-11 Andrew Cagney <cagney@redhat.com>
2651
2652 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2653 Make static.
2654
2655 * arm-tdep.c (arm_register_name): Make return type constant.
2656
a6b6b089
AC
26572002-07-10 Andrew Cagney <ac131313@redhat.com>
2658
5ae5f592
AC
2659 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2660 prototype.
2661 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2662 * s390-tdep.c (s390_fp_regnum): Ditto.
2663 (s390_read_fp): Ditto.
2664 (s390_pop_frame): Ditto.
2665 (_initialize_s390_tdep): Ditto.
2666 * remote.c (get_remote_state): Ditto.
2667 * procfs.c (mappingflags): Ditto.
2668 * memattr.c (_initialize_mem): Ditto.
2669 * mcore-tdep.c (mcore_pop_frame): Ditto.
2670 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2671 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2672 * language.c (set_case_str): Ditto.
2673 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2674 * frv-tdep.c (new_variant): Ditto.
2675 (frv_stopped_data_address): Ditto.
2676 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2677 (context_alloc): Ditto.
2678 (frame_state_alloc): Ditto.
2679 (unwind_tmp_obstack_init): Ditto.
2680 (unwind_tmp_obstack_free): Ditto.
2681 (cfi_read_fp): Ditto.
2682 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2683 (cris_pop_frame): Ditto.
2684 * c-lang.c (scanning_macro_expansion): Ditto.
2685 (finished_macro_expansion): Ditto.
2686 (c_preprocess_and_parse): Ditto.
2687 * gdbarch.sh: Ditto.
2688 * gdbarch.h, gdbarch.c: Regenerate.
2689 * config/mn10200/tm-mn10200.h: Adjust indentation.
2690 * target.c: Adjust indentation.
2691 * symtab.h: Adjust indentation.
2692 * stabsread.h: Adjust indentation.
2693 * remote-es.c: Adjust indentation.
2694 * os9kread.c: Adjust indentation.
2695
26962002-07-10 Andrew Cagney <ac131313@redhat.com>
2697
a6b6b089
AC
2698 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2699 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2700
a1789893
GS
27012002-07-10 Grace Sainsbury <graces@redhat.com>
2702
2703 * NEWS: Mention m68k, mcore multi-arching.
2704 * MAINTAINERS: Change status of m68k, mcore to reflect
2705 multi-arching.
2706
02f0d45d
DJ
27072002-07-10 Daniel Jacobowitz <drow@mvista.com>
2708
2709 * valops.c (find_overload_match): Free oload_syms.
2710
f15f768e
JB
27112002-07-09 Joel Brobecker <brobecker@gnat.com>
2712
2713 Define HAVE_SYS_PROC_H if sys/proc.h exists
2714 * configure.in: Add check for sys/proc.h
2715 * config.in: Regenerate.
2716 * configure: Regenerate.
2717
902a7139
GS
27182002-07-09 Grace Sainsbury <graces@redhat.com>
2719
2720 * config/m68k/tm-m68k.h: Remove macros wrapped in
2721 #if !GDB_MULTI_ARCH.
2722
a534e424
AC
27232002-07-08 Andrew Cagney <ac131313@redhat.com>
2724
2725 * config.in, configure: Regenerate.
2726
9b94f7bf
MK
27272002-07-08 Mark Kettenis <kettenis@gnu.org>
2728
2729 * dwarf2cfi.c: Include "gcore.h".
2730 (execute_stack_op): Fix implementation of the
2731 DW_OP_deref and DW_OP_deref_size operators by letting do their
2732 lookup in the target.
2733
1d34db41
MK
27342002-07-07 Mark Kettenis <kettenis@gnu.org>
2735
2736 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2737 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2738 tdep->sc_sp_offset.
2739
79d5b63a
DJ
27402002-07-05 Daniel Jacobowitz <drow@mvista.com>
2741
2742 Fix PR gdb/595, gdb/602
2743 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2744 Don't call value_cast, just read the vtable pointer; update comments
2745 to match.
2746
3bb912e8
GS
27472002-07-05 Grace Sainsbury <graces@redhat.com>
2748
2749 * config/mcore/tm-mcore.h: Remove file.
2750 * config/mcore/mcore.mt: Remove definition of TM_FILE
2751 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2752
ca39387d
MK
27532002-07-05 Mark Kettenis <kettenis@gnu.org>
2754
2755 * i386bsd-tdep.c: Include "gdb_string.h".
2756
efdc1108
GS
27572002-07-04 Grace Sainsbury <graces@redhat.com>
2758
2759 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2760 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2761 mcore-tdep.
2762 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2763 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2764 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2765 (RETVAL_REGNUM): Move macros from tm-mcore.h
2766 (mcore_reg_struct_has_addr): New function.
2767 (mcore_gdbarch_init): Added initializations for the macros removed
2768 from tm-mcore.h.
2769
bb21884d
MK
27702002-07-04 Mark Kettenis <kettenis@gnu.org>
2771
2772 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2773 traditonal string branding within the ELF header.
2774
228c6d41
DJ
27752002-07-04 Daniel Jacobowitz <drow@mvista.com>
2776
2777 * symtab.c (remove_params): New function.
2778 (make_symbol_overload_list): Use it instead of cplus_demangle.
2779 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2780
2404952e
MK
27812002-07-04 Mark Kettenis <kettenis@gnu.org>
2782
e5e4acad
MK
2783 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2784
baadce09
MK
2785 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2786 New variables.
2787 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2788 and tdep->sigtramp_end.
2789 * i386obsd-nat.c: New file.
2790 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2791
2404952e
MK
2792 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2793 Don't call get_current_frame().
2794
9b4f1ba7
PM
27952002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2796
2797 * i386-nat.c (child_post_startup_inferior): New function
2798 calling i386_cleanup_dregs if
2799 I386_USE_GENERIC_WATCHPOINTS is defined.
2800 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2801 conditional to acknowledge that i386-nat.c has its
2802 own child_post_startup_inferior function.
2803
c0d1d883
MK
28042002-07-04 Mark Kettenis <kettenis@gnu.org>
2805
00f8375e
MK
2806 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2807 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2808 instead of MAX_REGISTER_RAW_SIZE.
2809 (i386_extract_return_value, i386_extract_struct_value_address):
2810 Convert to use regcache.
2811 (i386_gdbarch_init): Set max_register_raw_size and
2812 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2813 Set extract_return_value and extract_struct_value_address instead
2814 of their deprecated variants.
2815
c0d1d883
MK
2816 Convert i386 target to generic dummy frames.
2817 * i386-tdep.c: Include "symfile.h".
2818 (i386_frameless_signal_p): Consider a function to be frameless if
2819 the pc points at the first instruction of the function.
2820 (i386_frame_chain): Handle (generic) call dummies.
2821 (i386_frame_saved_pc): Likewise.
2822 (i386_frame_init_saved_regs): Remove code dealing with call
2823 dummies on the stack.
2824 (i386_push_dummy_frame): Removed.
2825 (i386_call_dummy_words): Removed.
2826 (i386_fix_call_dummy): Removed.
2827 (i386_push_return_address): New function.
2828 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2829 parameter, and don't call get_current_frame.
2830 (i386_pop_frame): New function.
2831 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2832 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2833 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2834 call_dummy_length to 0, set call_dummy_words to NULL, set
2835 sizeof_call_dummy_words to 0, set fix_call_dummy to
2836 generic_fix_call_dummy, set pc_in_call_dummy to
2837 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2838 generic_push_dummy_frame, set push_return_address to
2839 i386_push_return_address and set frame_chain_valid to
2840 generic_file_frame_chain_valid.
2841
049ee0e4
AC
28422002-07-03 Andrew Cagney <ac131313@redhat.com>
2843
2844 * gdbarch.sh (struct regcache): Add opaque declaration.
2845 (EXTRACT_RETURN_VALUE): New architecture method.
2846 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2847 * gdbarch.h, gdbarch.c: Regenerate.
2848 * arch-utils.c (legacy_extract_return_value): New function.
2849 * arch-utils.h (legacy_extract_return_value): Declare.
2850 * values.c (value_being_returned): Re-enable code handling
2851 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2852 deprecated_grub_regcache_for_registers call to block handling
2853 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2854 (EXTRACT_RETURN_VALUE): Do not define.
2855
4e0d9804
GS
28562002-07-03 Grace Sainsbury <graces@redhat.com>
2857
2858 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2859 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2860 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2861 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2862 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2863 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2864 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2865 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2866 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2867 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2868 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2869 argument so the function fits the prototype in the architecture
2870 vector.
2871 (mcore_pop_frame): Remove argument so the function fits the
2872 prototype. Use get_current_frame instead of the argument.
2873 (mcore_push_arguments): Change type of struct_return so the
2874 function can be used in the architecture vector.
2875 (mcore_store_struct_return): Add.
2876 (mcore_frame_init_saved_regs): Add.
2877 (mcore_gdbarch_init): Add function calls to replace the macros
2878 removed from tm-mcore.h
2879
36160dc4
AC
28802002-07-03 Andrew Cagney <ac131313@redhat.com>
2881
2882 * infcmd.c (print_return_value): Remove compatibility code calling
2883 deprecated_grub_regcache_for_registers.
2884
2885 * values.c: Include "regcache.h".
2886 (value_being_returned): Update. Use
2887 deprecated_grub_regcache_for_registers to extract the register
2888 buffer address.
2889 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2890 ``struct regcache''.
2891 * Makefile.in (values.o): Add dependency on $(regcache_h).
2892
2893 * inferior.h (run_stack_dummy): Change type of second parameter to
2894 a ``struct regcache''.
2895 * valops.c (hand_function_call): Change type of retbuf to ``struct
2896 regcache''. Allocate using regcache_xmalloc, clean using
2897 make_cleanup_regcache_xfree.
2898 * infcmd.c (run_stack_dummy): Update. Use
2899 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2900
2901 * regcache.c (do_regcache_xfree): New function.
2902 (make_cleanup_regcache_xfree): New function.
2903 * regcache.h (make_cleanup_regcache_xfree): Declare.
2904
e64d9b3d
MH
29052002-07-03 Martin M. Hunt <hunt@redhat.com>
2906
4dd79c29
MH
2907 * event-top.c (command_line_handler): Don't read past
2908 beginning of buffer.
e64d9b3d 2909
4dd79c29
MH
29102002-07-03 Martin M. Hunt <hunt@redhat.com>
2911
e64d9b3d
MH
2912 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2913 struct frame_id.
2914 (varobj_create): Store frame_id for root.
2915 (varobj_gen_name): Use xasprintf.
2916 (varobj_update): Save and restore frame using get_frame_id() and
2917 frame_find_by_id().
2918 (create_child): Use xasprintf.
2919 (new_root_variable): Initialize frame_id.
2920 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2921 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2922 to prevent memory leak.
2923
26e6c56a
AC
29242002-07-03 Andrew Cagney <ac131313@redhat.com>
2925
2926 * valops.c (hand_function_call): Move declaration of retbuf to
2927 start of function, allocate using malloc, add a cleanup but before
2928 the inf_status cleanup, cleanup the buffer. Rename local variable
2929 old_chain to inf_status_cleanup.
2930
f436dd25
MH
29312002-07-03 Martin M. Hunt <hunt@redhat.com>
2932
2933 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2934
2935 * cli/cli-decode.c (cmd_func_p): New function.
2936 (cmd_func): New function.
2937
2938 * command.h: Add cmd_func() and cmd_func_p().
2939
4cfe2084
GS
29402002-07-03 Grace Sainsbury <graces@redhat.com>
2941
2942 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2943 (REGISTER_SIZE): Remove.
2944 (MAX_REGISTER_RAW_SIZE): Remove.
2945 (REGISTER_VIRTUAL_TYPE): Remove.
2946 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2947 (REGISTER_NAME): Remove.
2948 (USE_GENERIC_DUMMY_FRAMES): Remove.
2949 (CALL_DUMMY): Remove.
2950 (CALL_DUMMY_START_OFFSET): Remove.
2951 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2952 (CALL_DUMMY_LOCATION): Remove.
2953 (FIX_CALL_DUMMY): Remove.
2954 (CALL_DUMMY_ADDRESS): Remove.
2955 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2956 (SAVE_DUMMY_FRAME_TOS): Remove.
2957 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2958 (mcore_register_virtual_type): New function.
2959 (mcore_register_byte): New function.
2960 (mcore_register_size): New function.
2961 (mcore_register_name): New function.
2962 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2963 macros removed from tm-mcore.h.
2964 (mcore_dump_tdep): Add.
2965 (_initialize_mcore_tdep): Add gdbarch_register call.
2966
4fd667e9
MK
29672002-07-03 Mark Kettenis <kettenis@gnu.org>
2968
2969 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2970 frameless_look_for_prologue, such that we actually call this
2971 function.
2972
42f99ac2
JB
29732002-07-02 Joel Brobecker <brobecker@gnat.com>
2974
2975 * frame.h (frame_address_in_block): New function.
2976
2977 * blockframe.c (frame_address_in_block): New function extracted
2978 from get_frame_block().
2979 (get_frame_block): Use frame_address_in_block().
2980 (block_innermost_frame): Use frame_address_in_block() to match
2981 the frame pc address against the block boundaries rather than
2982 the frame pc directly. This prevents a failure when a frame pc
2983 is actually a return-address pointing immediately after the end
2984 of the given block.
2985
103a1597 29862002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2987
2988 * MAINTAINERS: Add self under write after approval.
2989
29902002-07-02 Grace Sainsbury <graces@redhat.com>
2991
103a1597
GS
2992 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2993 used in architecture vector. The default is
2994 m68k_local_breakpoint_from_pc.
2995 (m68k_local_breakpoint_from_pc): Add.
2996 (enum): Add register numbers from tm-m68k.h.
2997 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2998 vector.
2999 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3000 GDB_MULTI_ARCH_PARTIAL.
3001 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3002 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3003 m68k-tdep.c.
3004 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3005 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3006 to enum in m68k-tdep.c
3007
7a5a0534
JB
30082002-07-02 Joel Brobecker <brobecker@gnat.com>
3009
3010 * solib-osf.c (open_map): Compute the list of shared libraries
3011 loaded by the inferior, rather than the list of libraries loaded
3012 by GDB itself. Otherwise, GDB ends up reading the symbols from
3013 the wrong shared libraries...
3014
6f558d74
MK
30152002-07-02 Mark Kettenis <kettenis@gnu.org>
3016
b7d15bf7
MK
3017 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3018 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3019 macros.
3020 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3021 Remove functions.
3022 (FRAMELESS_SIGNAL): Remove function.
3023 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3024 i386_linux_saved_pc_after_call): Removed.
3025 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3026 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3027 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3028
6bff26de
MK
3029 * i386-tdep.c (i386_frameless_signal_p): New function.
3030 (i386_frame_chain): Deal with frameless signals.
3031 (i386_sigtramp_saved_sp): New function.
3032 (i386_frame_saved_pc): Deal with frameless signals.
3033 (i386_saved_pc_after_call): Make sure the correct value is
3034 returned just after entry into a sigtramp.
3035 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3036 i386fbsd4_sc_sp_offset): New variables.
3037 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3038 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3039 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3040 similiar to what we already did for sc_pc_offset.
3041 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3042 tdep->sc_sp_offset.
3043
6f558d74
MK
3044 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3045
145564b7
ML
30462002-07-02 Michal Ludvig <mludvig@suse.cz>
3047
3048 * config/i386/tm-x86-64linux.h: New.
3049 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3050 definitions.
3051 * config/i386/nm-x86-64.h: Rename to ...
3052 * config/i386/nm-x86-64linux.h: ... this one.
3053 * config/i386/x86-64linux.mh: Reflect the above change.
3054
3a1e71e3
MK
30552002-07-01 Mark Kettenis <kettenis@gnu.org>
3056
21d0e8a4
MK
3057 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3058 with sigcontext_addr. Add sc_sp_offset.
3059 (i386bsd_sigtramp_saved_pc): Remove prototype.
3060 (i386bsd_sicontext_addr): Add prototype.
3061 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3062 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3063 (i386_svr4_sigtramp_saved_pc): Removed.
3064 (i386_svr4_sigcontext_addr): New function.
3065 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3066 Initialize tdep->sigcontext_addr instead. Initialize
3067 tdep->sc_pc_offset and tdep->sc_sp_offset.
3068 (i386_gdbarch_init): Likewise.
3069 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3070 any more.
3071 (i386bsd_sigtramp_saved_pc): Remove function.
3072 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3073 Initialize tdep->sigcontext_addr instead. Initialize
3074 tdep->sc_pc_offset.
3075 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3076 of tdep->sigtramp_saved_pc.
3077 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3078 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3079 instead.
3080
3a1e71e3
MK
3081 * i386-tdep.c (i386_frameless_function_invocation,
3082 i386_frame_num_args, i386_frame_init_saved_regs,
3083 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3084 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3085 i386_extract_return_value, i386_store_return_value,
3086 i386_extract_struct_value_address, i386_register_virtual_type,
3087 i386_register_convertible, i386_register_convert_to_virtual,
3088 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3089 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3090 static.
3091
52e9098c
MK
30922002-07-01 Mark Kettenis <kettenis@gnu.org>
3093
77b13a25
MK
3094 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3095
52e9098c
MK
3096 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3097 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3098 this macro. Include "value.h".
3099
1b372fff
AS
31002002-06-30 Aidan Skinner <aidan@velvet.net>
3101
3102 * ada-exp.tab.c: remove as it's a generated file
3103 * ada-lex.c: remove as it's a generated file
3104
9c5045b5
MK
31052002-06-30 Mark Kettenis <kettenis@gnu.org>
3106
4a93c5bb
MK
3107 * config/i386/tm-i386.h (struct frame_info, struct
3108 frame_saved_regs, struct value, struct type): Remove forward
3109 declarations.
3110
322d4fe0
MK
3111 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3112 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3113 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3114 (FILL_FPXREGSET): Define.
3115
fdd8263d
MK
3116 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3117
482e577b
MK
3118 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3119 i[3456]86-*-netbsd* case.
3120 * config/i386/tm-obsd.h: Removed.
3121 * config/i386/obsd.mt: Removed.
3122 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3123 core-aout.o.
3124 (MH_CFLAGS): Add -DYYDEBUG=0.
3125
6916549a
MK
3126 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3127 i386nbsd_sc_pc_offset on OpenBSD too.
3128
9c5045b5
MK
3129 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3130 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3131 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3132 define.
3133 * i386bsd-tdep.c: Include "arch-utils.h".
3134 (i386bsd_aout_in_solib_call_trampoline): New function.
3135 (i386bsd_init_abi): Set in_solib_call_trampoline to
3136 i386bsd_aout_in_solib_call_trampoline.
3137 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3138 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3139
aa84d1bb
AC
31402002-06-28 Andrew Cagney <ac131313@redhat.com>
3141
3142 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3143 (struct obstack, struct bcache): Add opaque declarations.
3144 * Makefile.in (macrotab_h): Update
3145
b4d83933
AC
31462002-06-28 Andrew Cagney <ac131313@redhat.com>
3147
3148 * blockframe.c (generic_find_dummy_frame): Change return type to
3149 ``struct regcache''.
3150 (struct dummy_frame): Replace field ``registers'' with regcache, a
3151 struct regcache object.
3152 (generic_find_dummy_frame): Update.
3153 (generic_push_dummy_frame): Update. Use regcache_xfree,
3154 regcache_xmalloc and regcache_cpy.
3155 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3156 regcache_xfree.
3157 (deprecated_generic_find_dummy_frame): Update.
3158 (generic_read_register_dummy): Update. Use
3159 regcache_read_as_address.
3160 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3161 (generic_get_saved_register): Update. Use regcache_read.
3162
08c0b5bc
AC
31632002-06-28 Andrew Cagney <ac131313@redhat.com>
3164
3165 * Makefile.in (objfiles_h): Add $(bcache_h).
3166 * objfiles.h: Include "bcache.h".
3167
3168 * Makefile.in (symtab_h): Remove $(bcache_h).
3169 * symtab.h: Do not include "bcache.h".
3170
1f89801a
AC
31712002-06-28 Andrew Cagney <ac131313@redhat.com>
3172
3173 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3174 generic_func_frame_chain_valid.
3175
b9644b58
DB
31762002-06-28 David O'Brien <obrien@FreeBSD.org>
3177
3178 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3179 * config/i386/tm-fbsd.h: Likewise.
3180
dd486634
AC
31812002-06-28 Andrew Cagney <ac131313@redhat.com>
3182
3183 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3184 generic_unwind_get_saved_register.
3185
0b434a00
AC
31862002-06-27 Andrew Cagney <ac131313@redhat.com>
3187
3188 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3189 * regcache.c (supply_register): Add missing argument to
3190 register_buffer call.
3191
f30e5a77
AC
31922002-06-27 Andrew Cagney <ac131313@redhat.com>
3193
3194 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3195 Solaris /bin/grep does not not like it. From Peter Schauer.
3196
9f064c95
TT
31972002-06-26 Tom Tromey <tromey@redhat.com>
3198
3199 * command.h (add_setshow_cmd): Declare.
3200 (add_setshow_cmd_full): Declare.
3201 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3202 returns void. Use add_setshow_cmd_full.
3203 (add_setshow_cmd_full): New function.
3204 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3205 (add_setshow_boolean_cmd): Likewise.
3206
099c7589
JT
32072002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3208
3209 * config/vax/tm-vax.h: Protect from multiple inclusion.
3210 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3211 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3212 * config/vax/tm-vaxbsd.h: ...here. New file.
3213 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3214
1d049c5e
JT
32152002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3216
3217 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3218 (BELIEVE_PCC_PROMOTION): Remove.
3219 (AP_REGNUM): Move to...
3220 * config/vax/nm-vax.h: ...here.
3221 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3222 (vax_breakpoint_from_pc): New function.
3223 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3224 and gdbarch_believe_pcc_promotion.
3225
4791e091
JT
32262002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3227
3228 * Makefile.in (vax_tdep_h): Define.
3229 (vax-tdep.o): Use $(vax_tdep_h).
3230 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3231 (vax_dump_tdep): New function.
3232 (_initialize_vax_tdep): Register vax_dump_tdep.
3233 * vax-tdep.h: Include osabi.h.
3234 (struct gdbarch_tdep): New.
3235
da130f98
AC
32362002-06-26 Andrew Cagney <cagney@redhat.com>
3237
3238 * frame.h (deprecated_generic_find_dummy_frame): Rename
3239 generic_find_dummy_frame.
3240 * blockframe.c (generic_find_dummy_frame): Make static.
3241 (deprecated_generic_find_dummy_frame): New function.
3242 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3243 generic_find_dummy_frame with deprecated_find_dummy_frame.
3244 (sh64_nofp_frame_init_saved_regs): Ditto.
3245 (sh_fp_frame_init_saved_regs): Ditto.
3246 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3247 (s390_frame_chain): Ditto.
3248 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3249
6300c360
GS
32502002-06-26 Grace Sainsbury <graces@redhat.com>
3251
3252 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3253 gdbarch vector are at the top.
3254 (NUM_REGS): Remove.
3255 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3256 (FRAME_ARGS_ADDRESS): Remove.
3257 (FRAME_LOCALS_ADDRESS): Remove.
3258 (FRAME_NUM_ARGS): Remove.
3259 (FRAME_ARGS_SKIP): Remove.
3260 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3261 (m68k_gdbarch_init): Add gdbarch initializations for macros
3262 undefined in tm-m68k.h
3263
1c617db8
GS
32642002-06-26 Grace Sainsbury <graces@redhat.com>
3265
3266 * monitor.h: Add the function regname to monitor_ops
3267 structure. This way NUM_REGS does not have to be a constant.
3268 * monitor.c (monitor_fetch_register): Added support for regname
3269 function. The function is called if the array regnames is NULL.
3270 (monitor_store_register): Same.
da130f98
AC
3271 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3272 regnames array.
1c617db8
GS
3273 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3274 cpu32bug_cmds.regname to point to new function.
3275 * abug-rom.c (abug_regname): Same as above.
3276 (init_abug_cmds): Same.
3277 * dbug-rom.c (dbug_regname): Same as above.
3278 (init_dbug_cmds): Same.
3279 * remote-est.c (est_regname): Same.
3280 (init_est_cmds): Same.
3281 * rom68k-rom.c (rom68k_regname): Same.
3282 (init_rom68k_cmds): Same.
3283
ea9365bb
TT
32842002-06-25 Tom Tromey <tromey@redhat.com>
3285
3286 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3287
72cec141
AC
32882002-06-25 Andrew Cagney <cagney@redhat.com>
3289
3290 * infrun.c (stop_registers): Change variable's type to ``struct
3291 regcache'''.
3292 (xmalloc_inferior_status): Delete function.
3293 (free_inferior_status): Delete function.
3294 (normal_stop): Use regcache_cpy.
3295 (struct inferior_status): Change type of fields ``stop_registers''
3296 and ``registers'' to ``struct regcache''.
3297 (write_inferior_status_register): Use regcache_write.
3298 (save_inferior_status): Instead of calling
3299 xmalloc_inferior_status, allocate the inf_status buffer directly.
3300 Use regcache_dup_no_passthrough and regcache_dup to save the
3301 buffers.
3302 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3303 Replace the stop_registers regcache instead of overriding it. Use
3304 regcache_xfree. Instead of calling free_inferior_status, xfree
3305 the buffer directly.
3306 (discard_inferior_status): Use regcache_xfree. Instead of calling
3307 free_inferior_status, xfree the buffer directly.
3308 (build_infrun): Use regcache_xmalloc.
3309 (_initialize_infrun): Delete redundant call to build_infrun.
3310
3311 * Makefile.in (infcmd.o): Add $(regcache_h).
3312
3313 * infcmd.c: Include "regcache.h".
3314 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3315 obtain the address of `stop_registers' register buffer.
3316 (print_return_value): Ditto.
3317
3318 * inferior.h (struct regcache): Add opaque declaration.
3319 (stop_registers): Change variable's declared type to ``struct
3320 regcache''.
3321
defc6f8c
TT
33222002-06-24 Tom Tromey <tromey@redhat.com>
3323
c0e624e7
TT
3324 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3325 * target.c (initialize_targets): Fixed typo in
3326 trust-readonly-sections `show' documentation.
3327
defc6f8c
TT
3328 * main.c: Marked all strings with _().
3329
2b236d82
DH
33302002-06-24 Don Howard <dhoward@redhat.com>
3331
3332 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3333 that means max CORE_ADDR+1.
3334 (lookup_mem_region): Ditto.
3335 (mem_info_command): Ditto.
3336
942dc0e9
GS
33372002-06-24 Grace Sainsbury <graces@redhat.com>
3338
3339 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3340 (REGISTER_BYTES_OK): Remove.
3341 (REGISTER_BYTES): Remove.
3342 (STORE_STRUCT_RETURN): Remove.
3343 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3344 (STORE_RETURN_VALUE): Remove.
3345 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3346 (FRAME_CHAIN): Remove.
3347 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3348 (FRAME_SAVED_PC): Remove.
3349 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3350 (m68k_store_struct_return): Add.
3351 (m68k_deprecated_extract_return_value): Add.
3352 (m68k_deprecated_extract_struct_value_address): Add.
3353 (m68k_store_return_value): Add.
3354 (m68k_frame_chain): Add.
3355 (m68k_frameless_function_invocation): Add.
3356 (m68k_frame_saved_pc): Add.
3357 (m68k_gdbarch_init): added set_gdbarch calls for new
3358 functions and deleted macros.
3359
03c30d4d
TT
33602002-06-23 Tom Tromey <tromey@redhat.com>
3361
3362 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3363 (ALLDEPFILES): Likewise.
3364 (udiheaders): Removed.
3365 (udip2soc.o): Likewise.
3366 (udi2go32.o): Likewise.
3367 (udr.o): Likewise.
3368 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3369
37e71372
AC
33702002-06-22 Andrew Cagney <ac131313@redhat.com>
3371
06a6ac57
AC
3372 * infrun.c (_initialize_infrun): Delete unnecessary call to
3373 build_infrun.
3374
37e71372
AC
3375 * regcache.h: Update comments describing the regcache_cpy family
3376 of functions.
3377 (regcache_save, regcache_restore): Delete declaration.
3378 (regcache_save_no_passthrough): Delete declaration.
3379 (regcache_restore_no_passthrough): Delete declaration.
3380 * regcache.c (regcache_save): Delete function.
3381 (regcache_save_no_passthrough): Delete function.
3382 (regcache_restore): Delete function.
3383 (regcache_restore_no_passthrough): Delete function.
3384
78f6d055
AC
33852002-06-21 Andrew Cagney <ac131313@redhat.com>
3386
3387 * config/m68k/tm-m68k.h: Fix typo.
3388 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3389 (m68k_frame_init_saved_regs): Declare.
3390
78b119cb
JB
33912002-06-21 Jim Blandy <jimb@redhat.com>
3392
3393 Remove some vestiges of Harris 88k support.
3394 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3395 register numbering quirk.
3396 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3397 odd symbols occurring in Harris 88k ELF targets.
3398
0fbb3da7
TT
33992002-06-21 Tom Tromey <tromey@redhat.com>
3400
3401 * gdb_locale.h: New file.
3402 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3403 (defs_h): Added gdb_locale.h.
3404 * configure, config.in: Rebuilt.
3405 * configure.in (PACKAGE): Define.
3406 * defs.h: Include gdb_locale.h.
3407 * main.c (captured_main): Call setlocale, bindtextdomain,
3408 textdomain.
3409
456f8b9d
DB
34102002-06-21 Dave Brolley <brolley@redhat.com>
3411
3412 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3413 * config/frv/frv.mt: New file.
3414 * config/frv/tm-frv.h: New file.
3415 * configure.tgt: Support frv-*-*.
3416 * Makefile.in (frv-tdep.o): New target.
3417 * frv-tdep.c: New file.
3418 * NEWS: Mention frv.
3419
cdd463f9
DB
34202002-06-21 Dave Brolley <brolley@redhat.com>
3421
3422 * MAINTAINERS: Add self to "Write After Approval" list.
3423
5d3ed2e3
GS
34242002-06-21 Grace Sainsbury <graces@redhat.com>
3425
3426 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3427 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3428 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3429 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3430 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3431
3432 * m68k-tdep.c: Include arch-utils.h
3433 (m68k_register_raw_size): Add.
3434 (m68k_register_virtual_size): Add.
3435 (m68k_register_virtual_type): Add.
3436 (m68k_register_name): Add.
3437 (m68k_stack_align): Add.
3438 (m68k_register_byte): Add.
3439 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3440 tm-m68k.h.
3441
7f8e7424
GS
34422002-06-21 Grace Sainsbury <graces@redhat.com>
3443
a2c6a6d5 3444 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3445 m68k_find_saved_regs.
3446 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3447 references to it with frame->saved_regs.
7f8e7424
GS
3448 (m68k_gdbarch_init): Added function calls to initialize the
3449 gdbarch structure.
a2c6a6d5
GS
3450 (m68k_fix_call_dummy): Add.
3451 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3452 (CALL_DUMMY): Remove.
3453 (CALL_DUMMY_LENGTH): Remove.
3454 (CALL_DUMMY_START_OFFSET): Remove.
3455 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3456 (FIX_CALL_DUMMY): Remove.
3457 (PUSH_DUMMY_FRAME): Remove.
3458 (POP_FRAME): Remove.
7f8e7424 3459
f461f5cf
PM
34602002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3461
3462 * parse.c (parse_fprintf): New function used to avoid calls to
3463 fprintf in bison parser generated debug code.
3464 * parser-defs.h: Declaration of new parse_fprintf function.
3465 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3466 Set YYDEBUG to 1 by default.
3467 Set YYFPRINTF as parse_fprintf.
3468
7f0c12ed
ML
34692002-06-21 Michal Ludvig <mludvig@suse.cz>
3470
3471 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3472 encoding anymore.
3473 (pointer_encoding, enum ptr_encoding): New.
3474 (execute_cfa_program): Take care about pointer encoding.
3475 (dwarf2_build_frame_info): Only call parse_frame_info for
3476 .debug_frame and .eh_frame.
3477 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3478 fixed augmentation handling, added relative addressing,
3479 ignore duplicate FDEs. Added comments.
19d833a2 3480 * dwarf2cfi.c: Reindented.
7f0c12ed 3481
87c4a039
EZ
34822002-06-20 Elena Zannoni <ezannoni@redhat.com>
3483
3484 * event-top.c (command_handler): Don't use space_at_cmd_start
3485 unless there is sbrk() on the host. Assign time and space data
3486 to union fields of the appropriate length.
3487
1cf877ad
ML
34882002-06-20 Michal Ludvig <mludvig@suse.cz>
3489
3490 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3491 x86_64_register_name. Return type changed to 'const char *'.
3492 (x86_64_register_name2nr): Rename to x86_64_register_number.
3493 (x86_64_gdbarch_init): Update to reflect the change.
3494 * x86-64-tdep.h: Ditto.
3495 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3496 (supply_fpregset): Ditto.
3497
3fadccb3
AC
34982002-06-19 Andrew Cagney <cagney@redhat.com>
3499
3500 * regcache.h: Update copyright.
3501 (struct regcache, struct gdbarch): Add opaque declarations.
3502 (current_regcache): Declare global variable.
3503 (regcache_read, regcache_write): Add gdbarch parameter.
3504 (regcache_save, regcache_save_no_passthrough)
3505 (regcache_restore, regcache_restore_no_passthrough)
3506 (regcache_dup, regcache_dup_no_passthrough)
3507 (regcache_cpy, regcache_cpy_no_passthrough)
3508 (deprecated_grub_regcache_for_registers)
3509 (deprecated_grub_regcache_for_register_valid)
3510 (regcache_valid_p): Add function declarations.
3511
3512 * regcache.c: Update copyright.
3513 (regcache_descr_handle): New global variable.
3514 (struct regcache_descr): Define.
3515 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3516 (regcache_descr, xfree_regcache_descr): New functions.
3517 (struct regcache): Define.
3518 (regcache_xmalloc, regcache_xfree): New functions.
3519 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3520 (regcache_dup, regcache_dup_no_passthrough): New functions.
3521 (regcache_valid_p, regcache_read_as_address): New functions.
3522 (deprecated_grub_regcache_for_registers): New function.
3523 (deprecated_grub_regcache_for_register_valid): New function.
3524 (current_regcache): New global variable.
3525 (register_buffer): Add regcache parameter. Update calls.
3526 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3527 (read_register_gen, write_register_gen): Update register_buffer
3528 call. Test for legacy_p instead of gdbarch_register_read_p or
3529 gdbarch_register_write_p.
3530 (regcache_collect): Update register_buffer call.
3531 (build_regcache): Rewrite. Use deprecated grub functions.
3532 (regcache_save, regcache_save_no_passthrough): New functions.
3533 (regcache_restore, regcache_restore_no_passthrough): New
3534 functions.
3535 (_initialize_regcache): Create the regcache_data_handle. Swap
3536 current_regcache global variable.
3537
3538 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3539 parameter to regcache_read and regcache_write calls.
3540 (sh4_register_read): Ditto.
3541 (sh64_pseudo_register_read): Ditto.
3542 (sh64_register_read): Ditto.
3543 (sh_pseudo_register_write): Ditto.
3544 (sh4_register_write): Ditto.
3545 (sh64_pseudo_register_write): Ditto.
3546 (sh64_register_write): Ditto.
3547
3548 * defs.h (XCALLOC): Define.
3549
152d9db6
GS
35502002-06-19 Grace Sainsbury <graces@redhat.com>
3551
3552 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3553 * m68k-tdep.c (m68k_gdbarch_init): Added.
3554 (m68k_dump_tdep): Added.
3555
170911c7
DJ
35562002-06-19 Daniel Jacobowitz <drow@mvista.com>
3557
3558 * ada-lang.c (fill_in_ada_prototype): Update comment.
3559
2e4ebe70
DJ
35602002-06-19 Daniel Jacobowitz <drow@mvista.com>
3561
3562 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3563 MIPS_ABI_LAST.
3564 (mips_abi_string, mips_abi_strings): New.
3565 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3566 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3567 tdep->mips_abi_string. Honor mips_abi_string. Default to
3568 O32 if no ABI is found.
3569 (mips_dump_tdep): Use mips_abi_strings.
3570 (mips_abi_update): New function.
3571 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3572 ``set mips abi'' and ``show mips abi''. Check the size of
3573 mips_abi_strings.
3574
16775908
AC
35752002-06-19 Andrew Cagney <cagney@redhat.com>
3576
3577 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3578 constant.
3579
5051bfa4 35802002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3581
5051bfa4
JB
3582 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3583 current frame using only the first stack size adjustment. All
3584 subsequent size adjustments are not considered to be part of
3585 the "static" part of the current frame.
3586 Compute the address of the saved registers relative to the
3587 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3588 in use in this frame.
3589
56468235
DH
35902002-06-18 Don Howard <dhoward@redhat.com>
3591
3592 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3593 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3594 suggesting this solution.
3595
0b624158
AC
35962002-06-18 Andrew Cagney <ac131313@redhat.com>
3597
3598 * config/romp/xm-rtbsd.h: Delete file.
3599 * config/romp/rtbsd.mh: Delete file.
3600
221ea385
KS
36012002-06-18 Keith Seitz <keiths@redhat.com>
3602
3603 * breakpoint.c (condition_command): Post breakpoint_modify
3604 when a condition is added to an existing breakpoint.
3605 (commands_command): Likewise for commands.
3606 (set_ignore_count): Likewise for ignore counts.
3607 If no tty, do not simply return, still need to send event
3608 notification.
3609 (ignore_command): Only print a newline if the command came
3610 from a tty.
3611 Don't call breakpoints_changed, since this is now properly
3612 handled by set_ignore_count.
3613
5402eed1
AC
36142002-06-18 Andrew Cagney <cagney@redhat.com>
3615
3616 * MAINTAINERS: Note that cris-elf target can be compiled with
3617 -Werror.
3618 * cris-tdep.c (cris_register_name): Make return type constant.
3619 (cris_breakpoint_from_pc): Ditto.
3620
cc22880b
ML
36212002-06-18 Michal Ludvig <mludvig@suse.cz>
3622
3623 * frame.h (struct frame_info): Change type of context to
3624 'struct context'.
3625
fa88f677
AC
36262002-06-17 Andrew Cagney <cagney@redhat.com>
3627
3628 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3629 pointer.
3630 * gdbarch.h, gdbarch.c: Regenerate.
3631 * config/mips/tm-mips.h (mips_register_name): Update.
3632 * i386-tdep.h (i386_register_name): Update.
3633 * mips-tdep.c (mips_register_name): Update
3634 * alpha-tdep.c (alpha_register_name): Update.
3635 * arch-utils.c (legacy_register_name): Update.
3636 * arch-utils.h (legacy_register_name): Update.
3637 * avr-tdep.c (avr_register_name): Update.
3638 * ia64-tdep.c (ia64_register_name): Update.
3639 * i386-tdep.c (i386_register_name): Update.
3640 * sparc-tdep.c (sparc32_register_name): Update.
3641 (sparc64_register_name): Update.
3642 (sparclite_register_name): Update.
3643 (sparclet_register_name): Update.
3644 * sh-tdep.c (sh_generic_register_name): Update.
3645 (sh_sh_register_name): Update.
3646 (sh_sh3_register_name): Update.
3647 (sh_sh3e_register_name): Update.
3648 (sh_sh_dsp_register_name): Update.
3649 (sh_sh3_dsp_register_name): Update.
3650 (sh_sh4_register_name): Update.
3651 (sh_sh64_register_name): Update.
3652 * s390-tdep.c (s390_register_name): Update.
3653 * rs6000-tdep.c (rs6000_register_name): Update.
3654 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3655 (ns32k_register_name_32382): Update.
3656 * d10v-tdep.c (d10v_ts2_register_name): Update.
3657 (d10v_ts3_register_name): Update.
3658 * xstormy16-tdep.c (xstormy16_register_name): Update.
3659 * vax-tdep.c (vax_register_name): Update.
3660 * v850-tdep.c (v850_register_name): Update.
3661 * m68hc11-tdep.c (m68hc11_register_name): Update.
3662 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3663 (am33_register_name): Update.
3664
ea1e7ef6
GS
36652002-06-17 Grace Sainsbury <graces@redhat.com>
3666
3667 * m68k-tdep.c: Reindented.
3668
9b02dd1b
AC
36692002-06-17 Andrew Cagney <ac131313@redhat.com>
3670
3671 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3672 list of predefined types.
3673
8758dec1
MK
36742002-06-16 Mark Kettenis <kettenis@gnu.org>
3675
b6197528
MK
3676 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3677 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3678 REGISTER_CONVERT_TO_RAW): Remove defines.
3679 (i386_register_virtual_type, i386_register_convertible,
3680 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3681 Remove prototypes.
3682 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3683 macros mentioned above.
3684
82b47e62
MK
3685 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3686 (i386lynx_saved_pc_after_call): Remove prototype.
3687 * i386ly-tdep.c: Include "i386-tdep.h".
3688 (i386lynx_saved_pc_after_call): Make static. Use
3689 read_memory_nobpt instead of read_memory. Use
3690 read_memory_unsigned_integer instead of read_memory_integer.
3691 (i386lynx_init_abi): New function.
3692 (i386lynx_coff_osabi_sniffer): New function.
3693 (_initialize_i386bsd_tdep): New function.
3694
8758dec1
MK
3695 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3696 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3697 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3698 (i386_fix_call_dummy): Remove prototype.
3699 * i386-tdep.c (i386_call_dummy_words): New variable.
3700 (i386_gdbarch_init): Adjust for removal of the
3701 macros mentioned above.
3702
e9e68a56
AC
37032002-06-15 Andrew Cagney <ac131313@redhat.com>
3704
3705 * command.h (add_setshow_auto_boolean_cmd): Replace
3706 add_set_auto_boolean_cmd.
3707 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3708 add_set_auto_boolean_cmd.
3709 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3710 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3711 mask-address'' command.
3712 (show_mask_address): Add cmd parameter.
3713 * remote.c (add_packet_config_cmd): Update. Change type of
3714 set_func and show_func to cmd_sfunc_ftype.
3715 (_initialize_remote): Update `set remote Z-packet'
3716 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3717 (show_remote_protocol_e_packet_cmd): Ditto.
3718 (show_remote_protocol_E_packet_cmd): Ditto.
3719 (show_remote_protocol_P_packet_cmd): Ditto.
3720 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3721 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3722 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3723 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3724 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3725 (show_remote_protocol_Z_packet_cmd): Ditto.
3726 (show_remote_protocol_binary_download_cmd): Ditto.
3727 (show_remote_cmd): Pass NULL to all of above.
3728
fc08ec52
MK
37292002-06-15 Mark Kettenis <kettenis@gnu.org>
3730
3731 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3732 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3733 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3734 POP_FRAME): Remove defines.
3735 (i386_push_arguments, i386_store_struct_return,
3736 i386_extract_return_value, i386_store_return_value,
3737 i386_extract_struct_value_address, i386_push_dummy_frame,
3738 i386_pop_frame): Renove prototypes.
3739 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3740 macros mentioned above.
3741
e707bbc2
AC
37422002-06-15 Andrew Cagney <ac131313@redhat.com>
3743
3744 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3745 add_set_boolean_cmd.
3746 (add_setshow_cmd): New function.
3747 * command.h (add_setshow_boolean_cmd): Replace
3748 add_set_boolean_cmd.
3749 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3750 and ``set rdiromatzero''.
3751 * maint.c (_initialize_maint_cmds): Update commented out code.
3752 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3753 * target.c (initialize_targets): Update `set
3754 trust-readonly-sections'.
3755 * remote.c (_initialize_remote): Update `set remotebreak'.
3756
42fdc8df
MK
37572002-06-15 Mark Kettenis <kettenis@gnu.org>
3758
93924b6b
MK
3759 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3760 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3761 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3762 fit into multi-arch framework.
3763 (i386_breakpoint_from_pc): New function.
3764 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3765 above.
3766
42fdc8df
MK
3767 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3768 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3769 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3770 (i386_frameless_function_invocation, i386_frame_num_args,
3771 i386_frame_init_saved_regs): Remove prototypes.
3772 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3773 macros mentioned above.
3774
9773a94b
AC
37752002-06-15 Andrew Cagney <ac131313@redhat.com>
3776
3777 * cli/cli-decode.c (set_cmd_cfunc): Update.
3778 (set_cmd_sfunc): Update.
3779 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3780 (set_cmd_sfunc, set_cmd_cfunc): Update.
3781 * cli/cli-decode.h: Update.
3782
6e157172
MK
37832002-06-15 Mark Kettenis <kettenis@gnu.org>
3784
3785 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3786 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3787
7f19b9a2
AC
37882002-06-15 Andrew Cagney <ac131313@redhat.com>
3789
3790 * defs.h (auto_boolean): Declare enum.
3791 * command.h (cmd_auto_boolean): Delete enum.
3792 * mips-tdep.c (mask_address_var): Update.
3793 (mips_mask_address_p): Update.
3794 (show_mask_address): Update.
3795 * remote.c (struct packet_config): Update.
3796 (update_packet_config): Update.
3797 (show_packet_config_cmd): Update.
3798 (packet_ok): Update.
3799 (add_packet_config_cmd): Update.
3800 (_initialize_remote):
3801 * command.h: Update.
3802 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3803 (do_setshow_command): Update.
3804 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3805 * cli/cli-decode.h: Update.
3806
1cf88de5
MK
38072002-06-15 Mark Kettenis <kettenis@gnu.org>
3808
22ba8cf2
MK
3809 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3810 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3811 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3812 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3813 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3814 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3815
762c5349
MK
3816 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3817 list of DJGPP COFF targets.
3818
091198bb
MK
3819 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3820 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3821 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3822 (FP0_REGNUM): Remove define.
3823 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3824 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3825 (i386_register_virtual_size): Remove protoype.
3826 * i386-tdep.c (i386_register_virtual_size): Removed.
3827 (i386_extract_return_value, i386_store_return_value): Use
3828 FP0_REGNUM instead of NUM_FREGS to determine whether the
3829 floating-point registers are available.
3830 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3831 Adjust for removal of macros mentioned above.
3832
38332002-06-15 Mark Kettenis <kettenis@gnu.org>
3834
fcc9bf01
MK
3835 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3836 comments.
3837 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3838 Remove prototypes.
3839 (supply_gregset, fill_gregset): Remove use of register keyword and
3840 remove declaration for regmap. Use I386_NUM_GREGS instead of
3841 NUM_REGS and NUM_FREGS.
3842 (FPREGSET_FSAVE_OFFSET): Remove.
3843 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3844 NUM_FREGS to determine whether the floating-point registers are
3845 available.
3846
65e78234
MK
3847 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3848 gnu_store_registers): Replace usage of NUM_GREGS with
3849 I386_NUM_GREGS.
3850
98df6387
MK
3851 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3852 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3853 usage of NUM_GREGS with I386_NUM_GREGS.
3854
099a9414
MK
3855 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3856
57976e88
MK
3857 * i386bsd-nat.c: Include "i386-tdep.h".
3858 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3859 I386_NUM_GREGS.
3860
b335f4a6
MK
3861 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3862 and associated comment. They no longer make any sense, since we
3863 don't use this file anymore on Linux.
3864
1cf88de5
MK
3865 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3866 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3867 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3868 elements in these arrays.
3869 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3870 MAX_NUM_REGS.
3871
daa66587
MK
38722002-06-15 Mark Kettenis <kettenis@gnu.org>
3873
3874 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3875 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3876
26e9b323
AC
38772002-06-14 Andrew Cagney <cagney@redhat.com>
3878
3879 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3880 EXTRACT_RETURN_VALUE.
3881 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3882 EXTRACT_STRUCT_VALUE_ADDRESS.
3883 * gdbarch.h, gdbarch.c: Regenerate.
3884
3885 * values.c (value_being_returned): Handle
3886 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3887 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3888
3889 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3890 * arm-tdep.c (arm_gdbarch_init): Update.
3891 * avr-tdep.c (avr_gdbarch_init): Update.
3892 * cris-tdep.c (cris_gdbarch_init): Update.
3893 * d10v-tdep.c (d10v_gdbarch_init): Update.
3894 * ia64-tdep.c (ia64_gdbarch_init): Update.
3895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3897 * s390-tdep.c (s390_gdbarch_init): Update.
3898 * sh-tdep.c (sh_gdbarch_init): Update.
3899 * s390-tdep.c (s390_gdbarch_init): Update.
3900 * sparc-tdep.c (sparc_gdbarch_init): Update.
3901 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3902 * v850-tdep.c (v850_gdbarch_init): Update.
3903 * vax-tdep.c (vax_gdbarch_init): Update.
3904 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3905 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3906
3907 * config/arc/tm-arc.h: Update.
3908 * config/d30v/tm-d30v.h: Update.
3909 * config/fr30/tm-fr30.h: Update.
3910 * config/h8300/tm-h8300.h: Update.
3911 * config/h8500/tm-h8500.h: Update.
3912 * config/i386/tm-i386.h: Update.
3913 * config/i386/tm-ptx.h: Update.
3914 * config/i386/tm-symmetry.h: Update.
3915 * config/i960/tm-i960.h: Update.
3916 * config/m32r/tm-m32r.h: Update.
3917 * config/m68k/tm-delta68.h: Update.
3918 * config/m68k/tm-linux.h: Update.
3919 * config/m68k/tm-m68k.h: Update.
3920 * config/m88k/tm-m88k.h: Update.
3921 * config/mcore/tm-mcore.h: Update.
3922 * config/mips/tm-mips.h: Update.
3923 * config/mn10200/tm-mn10200.h: Update.
3924 * config/pa/tm-hppa.h: Update.
3925 * config/pa/tm-hppa64.h: Update.
3926 * config/sparc/tm-sp64.h: Update.
3927 * config/sparc/tm-sparc.h: Update.
3928 * config/sparc/tm-sparclet.h: Update.
3929 * config/z8k/tm-z8k.h: Update.
3930
5179e78f
AC
39312002-06-14 Andrew Cagney <cagney@redhat.com>
3932
3933 * Makefile.in (i386_linux_tdep_h): Define.
3934 (i386_tdep_h, i387_tdep_h): Define.
3935 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3936 $(i386_tdep_h) and $(i387_tdep_h).
3937 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3938
8201327c
MK
39392002-06-14 Mark Kettenis <kettenis@gnu.org>
3940
edf393ac
MK
3941 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3942 Already covered by the default.
3943
896fb97d
MK
3944 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3945 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3946 (i386_gdbarch_init): Initialize long_double_format and long_double
3947 bit.
3948
8201327c
MK
3949 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3950 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3951 Move these to ...
3952 * config/i386/i386sol2.mh: ... here.
3953 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3954 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3955 (SIGCONTEXT_PC_OFFSET): Remove define.
3956 (IN_SIGTRAMP): Remove define.
3957 * i386-sol2-tdep.c: New file.
3958
3959 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3960 * config/i386/tm-i386nw.h: Removed.
3961
3962 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3963 USE_STRUCT_CONVENTION): Remove defines.
3964 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3965 (get_longjmp_target): Remove prototype.
3966 (IN_SIGTRAMP): Remove define.
3967 (i386bsd_in_sigtramp): Remove prototype.
3968 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3969 function. Update comment accordingly
3970 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3971 (FRAME_SAVED_PC): Remove define.
3972 (i386bsd_frame_saved_pc): Remove prototype.
3973 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3974 GET_LONGJMP_TARGET): Remove defines.
3975 (get_longjmp_target): Remove prototype.
3976 (IN_SIGTRAMP): Remove define.
3977 (i386bsd_in_sigtramp): Remove prototype.
3978 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3979 function. Update comment accordingly
3980 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3981 (FRAME_SAVED_PC): Remove define.
3982 (i386bsd_frame_saved_pc): Remove prototype.
3983 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3984 Remove prototype.
3985 (USE_STRUCT_CONVENTION): Remove prototype.
3986 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3987 declaration.
3988 (_initialize_i386bsd_nat): Revise logic to determine some
3989 constants at compile time when compiling a native GDB. Warn if
3990 things don't match up with what we expect.
3991 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3992 Remove variables.
3993 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3994 to use date stored in `struct gdbarch_tdep'.
3995 (i386bsd_sigcontext_offset): Remove varaible.
3996 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3997 stored in `struct gdbarch_tdep'.
3998 (i386bsd_frame_saved_pc): Make static.
3999 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4000 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4001 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4002 i386fbsd4_sc_pc_offset): New variables.
4003 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4004 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4005 functions.
4006 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4007 functions.
4008 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4009 Modify the value of i386fbsd_sigtramp_start and
4010 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4011 i386fbsd_sigtramp_end.
4012 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4013 function.
4014
4015 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4016 define to i386-linux-tdep.h.
4017 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4018 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4019 defines.
4020 (i386_linux_register_name, i386_linux_register_byte,
4021 i386_linux_register_raw_size): Remove prototypes.
4022 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4023 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4024 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4025 TARGET_WRITE_PC): Remove defines.
4026 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4027 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4028 i386_linux_write_pc): Remove prototypes.
4029 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4030 (get_longjmp_target): Remove prototype.
4031 * i386-linux-tdep.h: New file.
4032 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4033 * i386-linux-tdep.c: Include "i386-tdep.h" and
4034 "i386-linux-tdep.h".
4035 (i386_linux_register_name, i386_linux_register_byte,
4036 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4037 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4038 Make static.
4039 (i386_linux_init_abi): New function.
4040 (_initialize_i386_linux_tdep): New function.
4041
4042 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4043 (i386_saved_pc_after_call): Remove prototype.
4044 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4045 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4046 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4047 (i386_register_name, i386_stab_reg_to_regnum,
4048 i386_dwarf_reg_to_regnum): Remove prototypes.
4049 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4050 SIZEOF_SSE_REGS): Remove defines.
4051 (REGISTER_BYTES): Remove define.
4052 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4053 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4054 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4055 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4056 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4057 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4058 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4059 (get_longjmp_target): Remove prototype.
4060 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4061 (sigtramp_saved_pc): Remove define.
4062 (i386v4_sigtramp_saved_pc): Remove prototype.
4063 * config/i386/tm-go32.h (FRAME_CHAIN,
4064 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4065 (i386go32_frame_saved_pc): Remove prototype.
4066 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4067 (get_longjmp_target): Remove prototype.
4068 * i386-tdep.h: Include "osabi.h".
4069 (enum i386_abi): Removed.
4070 (enum struct_return): New enum.
4071 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4072 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4073 sc_pc_offset members.
4074 (i386_gdbarch_register_os_abi): Remove prototype.
4075 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4076 I386_SSE_NUM_REGS): New defines.
4077 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4078 I386_SSE_SIZEOF_REGS): New defines.
4079 (i386_register_name, i386_register_byte, i386_register_raw_size):
4080 New prototypes.
4081 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4082 (i386bsd_sigtramp_saved_pc): New prototype.
4083 * i386-tdep.c: Don't include "elf-bfd.h".
4084 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4085 i386_frame_chain, i386_saved_pc_after_call): Make static.
4086 (i386_frame_saved_pc): Rewrite to call architecture dependent
4087 function to deal with signal handlers. Make static.
4088 (i386go32_frame_saved_pc): Removed.
4089 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4090 Removed.
4091 (i386_get_longjmp_target): New function.
4092 (default_struct_convention, pcc_struct_convention,
4093 reg_struct_convention, valid_conventions, struct_convention): New
4094 variables.
4095 (i386_use_struct_convention): New function.
4096 (i386v4_sigtramp_saved_pc): Renamed to
4097 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4098 (i386_pc_in_sigtramp): New function.
4099 (i386_abi_names): Removed.
4100 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4101 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4102 Removed.
4103 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4104 i386_gdbarch_register_os_abi): Removed.
4105 (struct i386_abi_handler): Removed.
4106 (i386_abi_handler_list): Removed.
4107 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4108 functions.
4109 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4110 i386_nw_init_abi): New functions.
4111 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4112 Use set_gdbarch_xxx() calls instead of relying on macros for a
4113 number of calls.
4114 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4115 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4116 Register the various architecture variants defined in this file.
4117
ad2f7632
DJ
41182002-06-14 Daniel Jacobowitz <drow@mvista.com>
4119
4120 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4121 (struct main_type): Remove arg_types member. Update comments for
4122 struct field.
4123 (TYPE_ARG_TYPES): Remove.
4124 (TYPE_FN_FIELD_ARGS): Update.
4125 (smash_to_method_type): Update prototype.
4126
4127 * c-typeprint.c (cp_type_print_method_args): Take method type
4128 instead of argument list. Use new argument layout. Simplify.
4129 (c_type_print_args): Use new argument layout. Simplify.
4130 (c_type_print_base): Update call to cp_type_print_method_args.
4131 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4132 argument; use die->type instead. Update call to
4133 smash_to_method_type.
4134 (read_structure_scope): Update call to dwarf2_add_member_fn.
4135 * gdbtypes.c (allocate_stub_method): Update comment.
4136 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4137 Use new argument layout.
4138 (check_stub_method): Use new argument layout. Don't count
4139 void as an argument.
4140 (print_arg_types): Update comments. Use new argument layout.
4141 (recursive_dump_type): Don't print arg_types member.
4142 * hpread.c (hpread_read_struct_type): Use new argument layout.
4143 (fixup_class_method_type): Likewise.
4144 (hpread_type_lookup): Likewise.
4145 * stabsread.c (read_type): Update calls to read_args and
4146 smash_to_method_type.
4147 (read_args): Use new argument layout. Simplify.
4148 * valops.c (typecmp): Use new argument layout. Update parameters
4149 and comments. Simplify.
4150 (hand_function_call): Use new argument layout.
4151 (search_struct_method): Update call to typecmp.
4152 (find_overload_match): Use new argument layout.
4153
6da02953
DJ
41542002-06-13 Daniel Jacobowitz <drow@mvista.com>
4155
4156 * NEWS: Mention multithreaded debug support for gdbserver.
4157
519b2366
DJ
41582002-06-13 Daniel Jacobowitz <drow@mvista.com>
4159
4160 * MAINTAINERS: Mention NEWS.
4161
6c0d6680
DJ
41622002-06-13 Daniel Jacobowitz <drow@mvista.com>
4163
4164 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4165 (struct mips_objfile_private, compare_pdr_entries): New.
4166 (non_heuristic_proc_desc): Read the ".pdr" section if it
4167 is present.
4168
6529d2dd
AC
41692002-06-12 Andrew Cagney <ac131313@redhat.com>
4170
4171 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4172 (arm_debug): New static variable.
4173 (_initialize_arm_tdep): Add ``set debug arm'' command.
4174
26216b98
AC
41752002-06-12 Andrew Cagney <ac131313@redhat.com>
4176
4177 * Makefile.in (sim_arm_h): Define.
4178 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4179 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4180 (arm_register_sim_regno): New function, map an internal REGNUM
4181 onto a simulator register number.
4182 (arm_gdbarch_init): Set register_sim_regno.
4183
814b3ba0
AH
41842002-06-09 Aldy Hernandez <aldyh@redhat.com>
4185
4186 * MAINTAINERS: Add self.
4187
475b0867
JB
41882002-06-11 Jim Blandy <jimb@redhat.com>
4189
919d772c
JB
4190 * source.c (source_info): Mention whether the symtab has
4191 information about preprocessor macros.
4192
475b0867
JB
4193 Call the command `info macro', not `show macro'.
4194 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4195 Fix error message.
4196 (_initialize_macrocmd): Register `info_macro_command' in
4197 `infolist', not `showlist'.
4198
9e364162
DJ
41992002-06-11 Daniel Jacobowitz <drow@mvista.com>
4200
4201 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4202 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4203 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4204 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4205 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4206 unconditionally.
4207 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4208 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4209 (_initialize_mips_tdep): Remove dead code.
4210 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4211 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4212 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4213 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4214 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4215 MIPS_LAST_FP_ARG_REGNUM): Remove.
4216
23aa4c72
ML
42172002-06-11 Michal Ludvig <mludvig@suse.cz>
4218
4219 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4220 (unwind_tmp_obstack_free, parse_frame_info)
4221 (update_context, cfi_read_fp, cfi_write_fp)
4222 (cfi_frame_chain, cfi_init_extra_frame_info)
4223 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4224 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4225
70eb15a4
CV
42262002-06-11 Corinna Vinschen <vinschen@redhat.com>
4227
4228 * v850-tdep.c (v850_type_is_scalar): New function.
4229 (v850_use_struct_convention): Match current gcc implementation
4230 as close as possible.
4231 (v850_push_arguments): Fix stack_offset handling. Don't write
4232 struct_addr into register. This is done by v850_store_struct_return.
4233 (v850_extract_return_value): Care for structs.
4234 (v850_store_return_value): Ditto.
4235 (v850_store_struct_return): Actually write address.
4236
482a4d06
ML
42372002-06-11 Michal Ludvig <mludvig@suse.cz>
4238
4239 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4240 without debug information too.
4241
d855c300
AC
42422002-06-10 Andrew Cagney <ac131313@redhat.com>
4243
4244 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4245 Make multi-arch pure.
4246 * gdbarch.h, gdbarch.c: Re-generate.
4247 * arm-tdep.c (arm_print_float_info): Update.
4248 * arch-utils.h (default_print_float_info): Update.
4249 * arch-utils.c (default_print_float_info): Update.
4250 * infcmd.c (float_info): Update call.
4251
dd12a101
AC
42522002-06-10 Andrew Cagney <ac131313@redhat.com>
4253
4254 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4255 the front of the initialize list.
4256
101dcfbe
AC
42572002-06-10 Andrew Cagney <ac131313@redhat.com>
4258
4259 * infrun.c (struct inferior_status): Replace fields
4260 selected_frame_address and selected_level with field
4261 selected_frame_id.
4262 (save_inferior_status): Update. Use get_frame_id.
4263 (struct restore_selected_frame_args): Delete.
4264 (restore_selected_frame): Update. Use frame_find_by_id.
4265 (restore_inferior_status): Update.
4266
4267 * breakpoint.h (struct breakpoint): Change type of
4268 watchpoint_frame to frame_id.
4269 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4270 call to get_current_frame.
4271 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4272 get_current_frame.
4273 (watchpoint_check): Use frame_find_by_id.
4274
4275 * frame.h (record_selected_frame): Delete declaration.
4276 * stack.c (record_selected_frame): Delete function.
4277
4278 * frame.h (struct frame_id): Define.
4279 (get_frame_id): Declare.
4280 (frame_find_by_id): Declare.
4281 * frame.c (frame_find_by_id): New function.
4282 (get_frame_id): New function.
4283
304270b6
AV
42842002-06-10 Andrey Volkov <avolkov@transas.com>
4285
4286 * ser-e7kpc.c: Fix duplicated define and call of
4287 _initialize_ser_e7000pc
4288
2f2cf184
DJ
42892002-06-09 Daniel Jacobowitz <drow@mvista.com>
4290
4291 * signals/signals.c (target_signal_from_host): Fix #ifdef
4292 SIGRTMIN case.
4293 (do_target_signal_to_host): Likewise.
4294
caaa3122
DJ
42952002-06-09 Daniel Jacobowitz <drow@mvista.com>
4296
4297 * mips-tdep.c (mips_find_abi_section): New function.
4298 (mips_gdbarch_init): Call it.
4299
6ac5df3a
MK
43002002-06-09 Mark Kettenis <kettenis@gnu.org>
4301
4302 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4303 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4304 after Andrew's 2002-06-08 gdbarch change.
4305
82ea117a
MK
43062002-06-09 Mark Kettenis <kettenis@gnu.org>
4307
4308 * i386-linux-nat.c (suppy_gregset): Don't supply
4309 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4310 register cache.
4311 (fill_gregset): Don't fetch it under the same circumstances.
4312
3c25f8c7
AC
43132002-06-09 Andrew Cagney <cagney@redhat.com>
4314
4315 * Makefile.in (callback_h): Define.
4316 (remote_sim_h): Update path to remote-sim.h.
4317 (remote-rdp.o): Add $(callback_h).
4318 (remote-sim.o): Use $(callback_h).
4319 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4320 * remote-rdp.c: Include "gdb/callback.h".
4321
1029b7fa
MK
43222002-06-09 Mark Kettenis <kettenis@gnu.org>
4323
4324 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4325 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4326
616675d3
AC
43272002-06-08 Andrew Cagney <ac131313@redhat.com>
4328
a3efda28
AC
4329 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4330 * rdi-share/serpardr.c: Ditto.
4331 * rdi-share/unixcomm.c: Ditto.
4332 * rdi-share/serdrv.c: Ditto.
4333 * rdi-share/hostchan.h: Ditto.
4334 * rdi-share/hostchan.c: Ditto.
4335 * rdi-share/host.h: Ditto.
4336 * rdi-share/devsw.c: Ditto.
4337
c5f10366
AC
4338 * objfiles.h: Change type of obj_private to void pointer.
4339 * pa64solib.c: Update copyright. Don't include "assert.h", use
4340 strcmp instead of STREQ, use LONGEST, do not use PTR
4341 * somsolib.c: Ditto.
4342
616675d3
AC
4343 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4344 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4345 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4346
e4b415d9
AC
43472002-06-08 Andrew Cagney <ac131313@redhat.com>
4348
4349 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4350 (default_get_saved_register): Delete function.
4351 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4352 generic_unwind_get_saved_register.
4353 * gdbarch.h, gdbarch.c: Re-generate.
4354
ca0d0b52
AC
43552002-06-08 Andrew Cagney <ac131313@redhat.com>
4356
4357 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4358 generic_func_frame_chain_valid.
4359 * gdbarch.h, gdbarch.c: Re-generate.
4360 * blockframe.c (generic_func_frame_chain_valid): Only check
4361 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4362 passing FP to PC_IN_CALL_DUMMY.
4363 Fix PR gdb/360.
4364
76860b5f
AC
43652002-06-08 Andrew Cagney <ac131313@redhat.com>
4366
4367 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4368 (register_gdbarch_data): Initialize init_p.
4369 (gdbarch_data): Initialize data pointer using the init function.
4370 (init_gdbarch_data): Delete function.
4371 (gdbarch_update_p): Update.
4372 (initialize_non_multiarch): Update.
4373 (struct gdbarch): Add field initialized_p.
4374 * gdbarch.h, gdbarch.c: Re-generate.
4375
8dda9770
ML
43762002-06-07 Michal Ludvig <mludvig@suse.cz>
4377
4378 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4379 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4380 better do the things actually here.
4381 * x86-64-tdep.c (x86_64_register_name2nr): New.
4382 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4383 (x86_64_gdbarch_init): Respect the above change.
4384 * x86-64-tdep.h (x86_64_register_name2nr)
4385 (x86_64_register_nr2name): Add prototypes.
4386 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4387
3d79a47c
MS
43882002-06-06 Michael Snyder <msnyder@redhat.com>
4389
7bd91a28
MS
4390 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4391 Delete extra braces and re-indent.
4392 (d10v_store_return_value): Char return values
3d79a47c
MS
4393 must be shifted over by one byte in R0.
4394 (d10v_extract_return_value): Delete extra braces, re-indent.
4395
095a4c96
EZ
43962002-06-06 Elena Zannoni <ezannoni@redhat.com>
4397
4398 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4399 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4400 (d10v_integer_to_address): Rewrite.
4401 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4402 the d10v specific functions which take care of converting to the
4403 correct space.
4404
e8a77ca4
EZ
44052002-06-06 Elena Zannoni <ezannoni@redhat.com>
4406
4407 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4408 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4409
4f2e4a4f
AC
44102002-06-02 Andrew Cagney <ac131313@redhat.com>
4411
4412 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4413 includes.
4414 * config/tm-linux.h: Ditto.
4415 * config/alpha/tm-alphalinux.h: Ditto.
4416 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4417 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4418 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4419 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4420 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4421 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4422 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4423 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4424 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4425 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4426 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4427 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4428 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4429 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4430 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4431 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4432 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4433 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4434 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4435 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4436 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4437 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4438 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4439 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4440 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4441 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4442 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4443 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4444 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4445 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4446 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4447 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4448 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4449 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4450 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4451 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4452 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4453
ae2ab2ce
AS
44542002-05-04 Aidan Skinner <aidan@velvet.net>
4455
4456 * ada-exp.tab.c: New file
4457 * ada-exp.y: New file
4458 * ada-lang.c: New file
4459 * ada-lang.h: New file
4460 * ada-lex.c: New file
4461 * ada-lex.l: New file
4462 * ada-tasks.c: New file
4463 * ada-typeprint.c: New file
4464 * ada-valprint.c: New file
4465
0ddd0135
JT
44662002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4467
4468 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4469 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4470
750fbacc
JT
44712002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4472
4473 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4474 insetead of ppc-linux-tdep.o.
4475 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4476 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4477
df94e18a
AC
44782002-06-02 Andrew Cagney <ac131313@redhat.com>
4479
4480 2002-05-07 Christian Groessler <chris@groessler.org>
4481 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4482 bit register contents for little endian hosts.
4483
1a38ab75
AC
44842002-06-01 Andrew Cagney <ac131313@redhat.com>
4485
4486 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4487 any maintainer.
4488
8b1632ac
AC
44892002-06-01 Andrew Cagney <ac131313@redhat.com>
4490
4491 * gdbarch.h: Regenerate.
4492
627054c8
AC
44932002-06-01 Andrew Cagney <ac131313@redhat.com>
4494
4495 * MAINTAINERS: Add everyone to write-after-approval list.
4496
4f460812
AC
44972002-06-01 Andrew Cagney <ac131313@redhat.com>
4498
4499 * stack.c (frame_info): Use frame_register_unwind instead of
4500 saved_regs. Mention when the SP is on the stack or in a register.
4501
4502 * frame.h (frame_register_unwind_ftype): Define. Document.
4503 (struct frame_info): Add field register_unwind and
4504 register_unwind_cache.
4505 (frame_register_unwind): Declare.
4506 (generic_unwind_get_saved_register): Declare.
4507
4508 * frame.c (frame_register_unwind): New function.
4509 (generic_unwind_get_saved_register): New function.
4510
4511 * blockframe.c (generic_call_dummy_register_unwind): New function.
4512 (frame_saved_regs_register_unwind): New function.
4513 (set_unwind_by_pc): New function.
4514 (create_new_frame): New function.
4515 (get_prev_frame): New function.
4516
de888f76
AC
45172002-05-30 Andrew Cagney <ac131313@redhat.com>
4518
4519 * a29k-share/: Delete directory.
4520 * remote-vx29k.c: Delete file.
4521
2f2c3626
JT
45222002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4523
4524 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4525 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4526
9ce5c36a
JT
45272002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4528
4529 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4530 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4531 (sparc64nbsd-nat.o)
4532 (sparcnbsd-nat.o)
4533 (sparcnbsd-tdep.o): New dependency lists.
4534 * NEWS: Note new UltraSPARC NetBSD native configuration.
4535 * configure.host (sparc64-*-netbsd*): New host.
4536 * configure.tgt (sparc-*-netbsdelf*)
4537 (sparc-*-netbsd*): Set gdb_target to nbsd.
4538 (sparc64-*-netbsd*): New target.
4539 * sparc64nbsd-nat.c: New file.
4540 * sparcnbsd-nat.c: New file.
4541 * sparcnbsd-tdep.c: New file.
4542 * sparcnbsd-tdep.h: New file.
4543 * config/sparc/nbsd.mt: New file.
4544 * config/sparc/nbsd64.mh: New file.
4545 * config/sparc/nbsd64.mt: New file.
4546 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4547 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4548 (HOST_IPC): Remove.
4549 * config/sparc/nbsdaout.mt: Remove.
4550 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4551 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4552 (HOST_IPC): Remove.
4553 * config/sparc/nbsdelf.mt: Remove.
4554 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4555 sparc-nat.c compatiblity defines.
4556 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4557 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4558 * config/sparc/tm-nbsd64.h: New file.
4559 * config/sparc/tm-nbsdaout.h: Remove.
4560 * config/sparc/xm-nbsd.h: Remove.
4561
ef3cf062
JT
45622002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4563
4564 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4565 * sparc-tdep.c: Include osabi.h.
4566 (gdbarch_tdep): Add osabi member.
4567 (_initialize_sparc_tdep): Use gdbarch_register.
4568 (sparc_gdbarch_init): Use generic OS ABI framework.
4569 (sparc_dump_tdep): New function.
4570
ee8ff470
KB
45712002-05-30 Kevin Buettner <kevinb@redhat.com>
4572
4573 * corefile.c (do_captured_read_memory_integer): Return non-zero
4574 result.
4575 (safe_read_memory_integer): Copy result of memory read when
4576 status is non-zero. Also, add comments.
4577
7b112f9c
JT
45782002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4579
4580 * Makefile.in (ppc_tdep_h): Define.
4581 (ppc-linux-nat.o)
4582 (ppc-linux-tdep.o)
4583 (rs6000-tdep.o): Use $(ppc_tdep_h).
4584 (ppc-sysv-tdep.o)
4585 (ppcnbsd-nat.o)
4586 (ppcnbsd-tdep.o): New dependency lists.
4587 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4588 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4589 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4590 (ppc_sysv_abi_broken_use_struct_convention)
4591 (ppc_sysv_abi_use_struct_convention)
4592 (ppc_sysv_abi_push_arguments): Move to...
4593 * ppc-sysv-tdep.c: ...here.
4594 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4595 * rs6000-tdep.c (process_note_abi_tag_sections)
4596 (get_elfosabi): Remove.
4597 (rs6000_gdbarch_init): Use generic OS ABI framework.
4598 (rs6000_dump_tdep): New function.
4599 (_initialize_rs6000_tdep): Use gdbarch_register.
4600 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4601 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4602 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4603 of ppc-linux-tdep.o.
4604 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4605 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4606 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4607 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4608 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4609 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4610
480dd42a
JB
46112002-05-29 Jim Blandy <jimb@redhat.com>
4612
4613 * macroscope.c (default_macro_scope): Put `void' in empty argument
4614 list.
4615
4182591f
AC
46162002-05-29 Andrew Cagney <ac131313@redhat.com>
4617
4618 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4619 * arch-utils.c: Include "sim-regno.h".
4620 * gdbarch.sh: Don't include "sim-regno.h".
4621 * gdbarch.h, gdbarch.c: Regenerate.
4622 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4623 here.
4624 * arch-utils.h (legacy_register_sim_regno): To here.
4625 * remote-sim.c (legacy_register_sim_regno): Move function from
4626 here.
4627 * arch-utils.c (legacy_register_sim_regno): To here.
4628
8238d0bf
AC
46292002-05-28 Andrew Cagney <ac131313@redhat.com>
4630
4631 * sim-regno.h: New file.
4632 * Makefile.in (sim_regno_h): Define.
4633 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4634 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4635 (legacy_register_sim_regno): New function.
4636 (one2one_register_sim_regno): New function.
4637 (gdbsim_fetch_register): Rewrite.
4638 (gdbsim_store_register): Only store a register when
4639 REGISTER_SIM_REGNO is valid.
4640 * d10v-tdep.c: Include "sim-regno.h".
4641 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4642 (d10v_ts3_register_sim_regno): Ditto.
4643 * gdbarch.sh: Include "sim-regno.h".
4644 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4645 * gdbarch.h, gdbarch.c: Regenerate.
4646 * arch-utils.h (default_register_sim_regno): Delete declaration.
4647 * arch-utils.c (default_register_sim_regno): Delete function.
4648
485721b1
JT
46492002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4650
4651 * ppcnbsd-nat.c: Rewrite.
4652 * ppcnbsd-tdep.c: New file.
4653 * ppcnbsd-tdep.h: New file.
4654 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4655 solib.o, and solib-svr4.o.
4656 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4657 nbsd-tdep.o, and corelow.o.
4658
697f244d
AC
46592002-05-28 Andrew Cagney <ac131313@redhat.com>
4660
4661 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4662 `tr' and `sed'. Mention that `broken' targets are not expected to
4663 build.
4664
f08caad1 46652002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4666
4667 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4668 Let PC point right after the prologue before looking up symbols.
4669
3139facc
MH
46702002-05-27 Martin M. Hunt <hunt@redhat.com>
4671
4672 * i386-tdep.c (i386_register_virtual_type): Return
4673 builtin_type_vec128i for SSE registers.
4674
4675 * gdbtypes.h (builtin_type_vec128i): Declare.
4676
4677 * gdbtypes.c (build_builtin_type_vec128i): New function.
4678 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4679 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4680 (build_gdbtypes): Initialize new builtin vector types.
4681 (_initialize_gdbtypes): Register new vector types with gdbarch.
4682
6e3ba3b8
JT
46832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4684
4685 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4686 since it has been multi-arch'd.
4687 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4688 Move Alpha and VAX multi-arch news entries to same section
4689 as other multi-arch news.
4690
93d5585d
JT
46912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4692
4693 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4694 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4695 static. Rename some register numbers to put them in ns32k-tdep
4696 private namespace.
4697 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4698 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4699 functions.
4700 (_initialize_ns32k_tdep): Use gdbarch_register.
4701 * ns32k-tdep.h: New file.
4702 * ns32knbsd-tdep.c: New file.
4703 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4704 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4705 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4706 REGISTER_BYTES, REGISTER_BYTE): Remove.
4707 * config/ns32k/tm-ns32k.h: New file.
4708 * config/ns32k/tm-umax.h: Remove.
4709
efb2c70e
JT
47102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4711
4712 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4713 ns32k_store_struct_return, ns32k_extract_return_value,
4714 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4715 functions.
4716 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4717 ns32k_saved_pc_after_call.
4718 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4719 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4720 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4721 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4722 ns32k_extract_struct_value_address.
4723
7bcc927b
JT
47242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4725
4726 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4727 ns32k_fix_call_dummy): New.
4728 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4729 ns32k_call_dummy_words.
4730 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4731 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4732 CALL_DUMMY_NARGS): Remove.
4733 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4734
78f9d765
JT
47352002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4736
4737 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4738 ns32k_frame_saved_pc, ns32k_frame_args_address,
4739 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4740 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4741 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4742 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4743 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4744 (BREAKPOINT): Remove..
4745 (FRAME_CHAIN): Define as ns32k_frame_chain.
4746 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4747 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4748 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4749 (FRAME_FIND_SAVED_REGS): Remove.
4750 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4751 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4752 (POP_FRAME): Define as ns32k_pop_frame.
4753
f2c762e0
JT
47542002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4755
4756 * ns32k-tdep.c (ns32k_register_byte_32082,
4757 ns32k_register_byte_32382, ns32k_register_raw_size,
4758 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4759 functions.
4760 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4761 ns32k_register_byte_32382.
4762 * config/ns32k/tm-umax.h: Update copyright years.
4763 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4764 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4765 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4766 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4767 (ns32k_get_enter_addr): Fix prototype.
4768
af137673
JT
47692002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4770
4771 * ns32k-tdep.c: Update copyright years.
4772 (ns32k_register_name_32082): New function.
4773 (ns32k_register_name_32382): Ditto.
4774 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4775 (REGISTER_NAME): Define as ns32k_register_name_32382.
4776 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4777 (REGISTER_NAME): Define as ns32k_register_name_32082.
4778
a8bc7b56
JB
47792002-05-24 Jim Blandy <jimb@redhat.com>
4780
4781 * dwarf2read.c (free_line_header): Use xfree, not free.
4782
83a45910
JT
47832002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4784
4785 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4786 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4787
0db71247
AC
47882002-05-23 Andrew Cagney <ac131313@redhat.com>
4789
4790 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4791
b9e5e4dd
AC
47922002-05-23 Andrew Cagney <ac131313@redhat.com>
4793
4794 From Ross Alexander at NEC Europe:
4795 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4796
de530e84
MS
47972002-05-23 Michael Snyder <msnyder@redhat.com>
4798
4799 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4800 for input, rather than parse_and_eval_address.
4801
b91b96f4
AC
48022002-05-23 Andrew Cagney <ac131313@redhat.com>
4803
4804 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4805 * Makefile.in (sim_d10v_h): Update definition.
4806
8b279e7a
AC
48072002-05-24 Andrew Cagney <cagney@redhat.com>
4808
4809 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4810 change `2002-05-22 Michael Snyder' below.
4811 (d10v_push_arguments): Ditto.
4812 (d10v_extract_return_value): Ditto.
4813
0a3d0425
JB
48142002-05-23 Jim Blandy <jimb@redhat.com>
4815
4816 * macrotab.c (check_for_redefinition): Don't complain if the new
4817 definition is the same as the previous one. Take more arguments
4818 to allow the comparison.
4819 (macro_define_object, macro_define_function): Pass more arguments
4820 to check_for_redefinition.
4821
78eac43e
MS
48222002-05-22 Michael Snyder <msnyder@redhat.com>
4823
4824 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4825 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4826 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4827 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4828 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4829 Add a temp variable to save a call (and a memory read).
4830 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4831 if possible (so that PC_IN_CALL_DUMMY will work).
4832
9bc1edb8
CV
48332002-05-22 Corinna Vinschen <vinschen@redhat.com>
4834
4835 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4836
005ef3d2
ML
48372002-05-22 Michal Ludvig <mludvig@suse.cz>
4838
4839 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4840 fde->cie_ptr.
4841 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4842 (dwarf2_build_frame_info): Add offset to fde->initial_location
4843 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4844 (execute_stack_op): Change type of 'result' from ULONGEST to
4845 CORE_ADDR.
005ef3d2 4846
fcf4f891
JT
48472002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4848
4849 * config/alpha/tm-nbsd.h: Include solib.h.
4850
cfef91e4
JT
48512002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4852
4853 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4854 assumptions about the host's byte order.
4855
9964235a
JT
48562002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4857
4858 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4859 to dependency list.
4860 * alphanbsd-tdep.c: Include solib-svr4.h.
4861 * shnbsd-tdep.c: Ditto.
4862
9eeef8ef
JT
48632002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4864
4865 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4866 nbsd-tdep.h to dependency list.
4867 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4868 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4869 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4870 nbsdaout.mh and nbsdelf.mh consistently.
4871 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4872 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4873 nbsdaout.mt and nbsdelf.mh consistently.
4874 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4875 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4876 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4877 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4878 a.out shared library stuff from here...
4879 * config/nm-nbsdaout.h: ...to here.
4880 * config/tm-nbsd.h: Remove.
4881 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4882 * config/arm/nbsd.mh: Remove.
4883 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4884 nbsd-tdep.o.
4885 * config/arm/nbsdaout.mh: New file.
4886 * config/arm/nbsdelf.mh: New file.
4887 * config/arm/nm-nbsdaout.h: New file.
4888 * config/i386/nbsd.mh: Remove.
4889 * config/i386/nbsd.mt: Remove.
4890 * config/i386/nbsdaout.mh: New file.
4891 * config/i386/nbsdaout.mt: New file.
4892 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4893 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4894 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4895 i386_register_u_addr): Remove.
4896 * config/i386/nm-nbsdaout.h: New file.
4897 * config/i386/nm-nbsdelf.h: Remove.
4898 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4899 (USE_STRUCT_CONVENTION): Remove.
4900 * config/i386/tm-nbsdaout.h: New file.
4901 * config/i386/tm-nbsdelf.h: Remove.
4902 * config/m68k/nbsd.mh: Remove.
4903 * config/m68k/nbsd.mt: Remove.
4904 * config/m68k/nbsdaout.mh: New file.
4905 * config/m68k/nbsdaout.mt: New file.
4906 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4907 * config/m68k/nm-nbsdaout.h: New file.
4908 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4909 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4910 * config/ns32k/nbsd.mh: Remove.
4911 * config/ns32k/nbsd.mt: Remove.
4912 * config/ns32k/nbsdaout.mh: New file.
4913 * config/ns32k/nbsdaout.mt: New file.
4914 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4915 * config/ns32k/nm-nbsdaout.h: New file.
4916 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4917 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4918 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4919 (SVR4_SHARED_LIBS): Remove.
4920 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4921 * config/sparc/nbsd.mh: Remove.
4922 * config/sparc/nbsd.mt: Remove.
4923 * config/sparc/nbsdaout.mh: New file.
4924 * config/sparc/nbsdaout.mt: New file.
4925 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4926 * config/sparc/nbsdelf.mt: New file.
4927 * config/sparc/nm-nbsdaout.h: New file.
4928 * config/sparc/nm-nbsdelf.h: Remove.
4929 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4930 * config/sparc/tm-nbsdaout.h: New file.
4931
257ce470
JT
49322002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4933
4934 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4935 mipsnbsd-tdep.c
4936 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4937
76a6d5fe
JT
49382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4939
4940 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4941 shnbsd-nat.c.
4942 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4943
45888261
JT
49442002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4945
4946 * NEWS: Note new MIPS NetBSD native configuration.
4947 * configure.host (mips*-*-netbsd*): New host.
4948 * configure.tgt (mips*-*-netbsd*): New target.
4949 * mipsnbsd-nat.c: New file.
4950 * mipsnbsd-tdep.c: New file.
4951 * mipsnbsd-tdep.h: New file.
4952 * config/mips/nbsd.mh: New file.
4953 * config/mips/nbsd.mt: New file.
4954 * config/mips/nm-nbsd.h: New file.
4955 * config/mips/tm-nbsd.h: New file.
4956
70f80edf
JT
49572002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4958
4959 * Makefile.in (SFILES): Add osabi.c.
4960 (COMMON_OBS): Add osabi.o.
4961 (osabi.o): New dependency list.
4962 * osabi.c: New file.
4963 * osabi.h: New file.
4964 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4965
4966 * Makefile.in (alpha_tdep_h): Define and use instead of
4967 alpha-tdep.h.
4968 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4969 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4970 Remove.
4971 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4972 * alpha-tdep.h: Include osabi.h.
4973 (alpha_abi): Remove.
4974 (gdbarch_tdep): Use generic OS ABI framework.
4975 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4976 gdbarch_register_osabi.
4977 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4978 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4979 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4980
4981 * Makefile.in (sh_tdep_h): Add osabi.h.
4982 * sh-tdep.h (sh_osabi): Remove.
4983 (gdbarch_tdep): Use generic OS ABI framework.
4984 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4985 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4986 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4987 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4988
4989 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4990 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4991 gdbarch_register_osabi.
4992 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4993 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4994 (get_elfosabi): Rename to...
4995 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4996 ABI framework support routines.
4997 (arm_gdbarch_init): Use generic OS ABI framework.
4998 (arm_dump_tdep): Likewise.
4999 (_initialize_arm_tdep): Likewise.
5000 * arm-tdep.h: Include osabi.h.
5001 (arm_abi): Remove.
5002 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5003 osabi member.
5004 (arm_gdbarch_register_os_abi): Remove prototype.
5005 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5006 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5007
5008 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5009 * mips-tdep.c: Include osabi.h.
5010 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5011 OS ABI framework.
5012
d194345b
KH
50132002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5014
5015 * h8300-tdep.c: Fix formatting.
5016
70c6b0d1
EZ
50172002-05-20 Elena Zannoni <ezannoni@redhat.com>
5018
5019 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5020 printing vector registers.
5021
165b8e33
AC
50222002-05-19 Andrew Cagney <ac131313@redhat.com>
5023
5024 From Fernando Nasser:
5025 * remote.c (remote_async_open_1): Re-throw the exception when the
5026 connection fails.
5027 (remote_cisco_open): Ditto.
5028 (remote_open_1): Ditto.
5029
36918e70
AC
50302002-05-19 Andrew Cagney <ac131313@redhat.com>
5031
5032 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5033 (remote_start_remote): Add uiout parameter. Pass through to
5034 remote_start_remote_dummy.
5035 (remote_open_1): Use catch_exception instead of catch_errors.
5036 (remote_async_open_1): Ditto.
5037 (remote_cisco_open): Ditto.
5038
ae44c0c4
AC
50392002-05-19 Andrew Cagney <ac131313@redhat.com>
5040
5041 * remote.c (remote_start_remote): Replace PTR with void pointer.
5042 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5043 static.
5044
8efe637d
AC
50452002-05-18 Andrew Cagney <ac131313@redhat.com>
5046
5047 * gdb_indent.sh: Allow the script to be run in the sim directory.
5048
2f1b5984
MK
50492002-05-18 Mark Kettenis <kettenis@gnu.org>
5050
f0f625e2
MK
5051 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5052 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5053
2f1b5984
MK
5054 * corelow.c (core_open): Only call set_gdbarch_from_file if
5055 exec_bfd is NULL.
5056
fc974602
AV
50572002-05-17 Andrey Volkov <avolkov@transas.com>
5058
5059 * h8300-tdep.c: Add support of EXR register
5060 * config/h8300/tm-h8300.h: Ditto.
5061
906709f4
AV
50622002-05-17 Andrey Volkov <avolkov@transas.com>
5063
5064 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5065
6e591d68
AV
50662002-05-17 Andrey Volkov <avolkov@transas.com>
5067
5068 * h8300-tdep.c: Change literal regnums to REGNO.
5069
84f0252a
JB
50702002-05-17 Jim Blandy <jimb@redhat.com>
5071
e0e9281e
JB
5072 * NEWS: Note addition of macro support.
5073
84f0252a
JB
5074 Expand preprocessor macros in C expressions.
5075 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5076 (scan_macro_expansion, scanning_macro_expansion,
5077 finished_macro_expansion): New function declarations.
5078 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5079 variable declarations.
5080 * parser-defs.h (expression_context_pc): New declaration.
5081 * parse.c (expression_context_pc): New variable.
5082 (parse_exp_1): Set expression_context_pc, as well as
5083 expression_context_block.
5084 * c-exp.y (yylex): If we're not already reading the result of a
5085 macro expansion, try to macro-expand the next token. When we're
5086 done scanning a macro expansion, switch back to the mainline text.
5087 Commas and `if's in a macro's expansion don't terminate the input.
5088 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5089 (macro_original_text, macro_expanded_text,
5090 expression_macro_lookup_func, expression_macro_lookup_baton): New
5091 variables.
5092 (scan_macro_expansion, scanning_macro_expansion,
5093 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5094 c_preprocess_and_parse): New functions.
5095 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5096 c_preprocess_and_parse, instead of c_parse.
5097 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5098 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5099
1c509ca8
JR
5100Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5101
5102 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5103 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5104 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5105
2250ee0c
CV
51062002-05-17 Corinna Vinschen <vinschen@redhat.com>
5107
5108 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5109
ab3b8126
JT
51102002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5111
5112 * Makefile.in (sh_tdep_h): Define and use.
5113 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5114 register enum): Move to...
5115 * * sh-tdep.h: ...here.
5116 * sh-tdep.c: Include sh-tdep.h.
5117 * sh3-rom.c: Likewise.
5118 * shnbsd-tdep.c: Likewise.
5119
ed9d4749
MS
51202002-05-16 Michael Snyder <msnyder@redhat.com>
5121
5122 * arm-tdep.c: Spelling fix in comment.
5123
2e276125
JB
51242002-05-16 Jim Blandy <jimb@redhat.com>
5125
6821892e
JB
5126 Add commands for manually expanding macros and showing their
5127 definitions.
5128 * macrocmd.c, macroscope.c, macroscope.h: New files.
5129 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5130 (macroscope_h): New variable.
5131 (HFILES_NO_SRCDIR): Add macroscope.h.
5132 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5133 (macroscope.o, macrocmd.o): New rules.
5134
2e276125
JB
5135 Teach the Dwarf 2 reader to read macro information.
5136 * dwarf2read.c: #include "macrotab.h".
5137 (dwarf_macinfo_buffer): New variable.
5138 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5139 dwarf_macinfo_size.
5140 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5141 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5142 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5143 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5144 dwarf2_macro_spaces_in_definition): New complaints.
5145 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5146 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5147 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5148 the partial symbol table.
5149 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5150 from what's recorded in the partial symbol table.
5151 (read_file_scope): If the compilation unit has a
5152 `DW_AT_macro_info' attribute, read its macro information.
5153 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5154
2f53fe6c
DJ
51552002-05-16 Daniel Jacobowitz <drow@mvista.com>
5156
5157 Fix PR gdb/546
5158 * ser-tcp.c: Don't include <netinet/udp.h>.
5159
2be99286
SC
51602002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5161
5162 * MAINTAINERS: Update my email address.
5163
c9af212b 51642002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5165
5166 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5167 include file of the same name.
5168
bf5f1a52
CV
51692002-05-16 Corinna Vinschen <vinschen@redhat.com>
5170
5171 * configure.tgt: Mark v850 as multi-arched.
5172 * config/v850/tm-v850.h: Remove file.
5173 * config/v850/v850.mt: Eliminate TM_FILE.
5174
435e042a
CV
51752002-05-16 Corinna Vinschen <vinschen@redhat.com>
5176
5177 * v850-tdep.c: Full multi-arch.
5178 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5179 Define GDB_MULTI_ARCH to 2.
5180
9819c6c8
PM
51812002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5182
5183 * p-exp.y (current_type): New static variable.
5184 Carries the type of the expression at the position that is parsed.
5185 (push_current_type, pop_current_type): Two new functions. Used
5186 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5187 (search_field): New static variable. Set to one after parsing a point
5188 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5189 (FIELDNAME): New token. After a point only a token belonging to
5190 current_type type definition is allowed.
5191 (all over token rules): reset and change current_type according
5192 to rules.
5193 (exp '[' rule): insert implicit array index field if
5194 exp is a pascal string type.
5195
3a06899a
CV
51962002-05-16 Corinna Vinschen <vinschen@redhat.com>
5197
5198 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5199 frame info. Use frame_info's saved_regs instead of matching member
5200 in extra_frame_info throughout.
5201 (v850_frame_init_saved_regs): New function.
5202 (v850_init_extra_frame_info): Move most functionality into
5203 v850_frame_init_saved_regs().
5204 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5205 (v850_frame_find_saved_regs): Remove declaration.
5206 (FRAME_FIND_SAVED_REGS): Remove definition.
5207 (v850_frame_init_saved_regs): Add declaration.
5208 (FRAME_INIT_SAVED_REGS): Add definition.
5209
6ed14b0e
CV
52102002-05-16 Corinna Vinschen <vinschen@redhat.com>
5211
5212 * v850-tdep.c: Begin multi-arch'ing v850.
5213 (v850_target_architecture_hook): Remove function.
5214 (v850_gdbarch_init): New function. Add code previously in
5215 v850_target_architecture_hook().
5216 (_initialize_v850_tdep): Don't set target_architecture_hook.
5217 Call register_gdbarch_init() instead.
5218
42725910
DJ
52192002-05-16 Daniel Jacobowitz <drow@mvista.com>
5220
5221 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5222 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5223 (fixup_class_method_type): Likewise.
5224
99d9066e
JB
52252002-05-15 Jim Blandy <jimb@redhat.com>
5226
5227 Add macro structures to GDB's symbol tables. Nobody puts anything
5228 in them yet.
5229 * symtab.h (struct symtab): New member: `macro_table'.
5230 * buildsym.h (pending_macros): New global variable.
5231 * buildsym.c: #include "macrotab.h".
5232 (buildsym_init): Initialize `pending_macros'.
5233 (end_symtab): If we found macro information while reading a CU's
5234 debugging info, do build a symtab structure for it. Make the
5235 symtab point to the macro information, and clear the
5236 `pending_macros' pointer which held it while we were reading the
5237 debug info.
5238 (really_free_pendings): Free any pending macro table.
5239 * objfiles.h (struct objfile): New member: `macro_cache'.
5240 * objfiles.c (allocate_objfile): Set allocate and free functions
5241 for the macro cache's objstack.
5242 (free_objfile): Empty the macro cache's obstack.
5243 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5244 set new allocate and free functions for it.
5245 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5246 free functions for the macro cache's objstack. (Why is this
5247 function building its own objfile?)
5248 * symmisc.c (print_objfile_statistics): Print statistics on the
5249 macro bcache.
5250 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5251
c899585b
RE
52522002-05-15 Richard Earnshaw <rearnsha@arm.com>
5253
5254 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5255 (REGISTER_U_ADDR): Delete definition.
5256 (arm_register_u_addr): Delete declaration.
5257
a6cdd8c5
RE
52582002-05-15 Richard Earnshaw <rearnsha@arm.com>
5259
5260 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5261 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5262
c97dcfc7
AC
52632002-05-14 Andrew Cagney <ac131313@redhat.com>
5264
5265 * regcache.c (register_valid): Revise comments refering to "Not
5266 available" and "unavailable".
5267 * frame.c (frame_register_read): Ditto.
5268 * findvar.c (value_of_register): Ditto.
5269
93021b7d
AC
52702002-05-15 Andrew Cagney <cagney@redhat.com>
5271
5272 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5273 (remote-sim.o): Update dependencies.
5274 (d10v-tdep.o): Specify dependencies.
5275 (sim_d10v_h): Define.
5276
a86bc61c
JB
52772002-05-14 Jim Blandy <jimb@redhat.com>
5278
5279 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5280 * macrotab.c (macro_lookup_inclusion, find_definition,
5281 new_macro_table): Same.
5282
5283 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5284 not `! strcmp ()'. This is a dubious improvement.
5285 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5286
5287 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5288 although it's not necessary, to avoid a warning.
5289
2fdde8f8
DJ
52902002-05-14 Daniel Jacobowitz <drow@mvista.com>
5291
5292 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5293 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5294 TYPE_INSTANCE_FLAGS.
5295 (struct main_type): New.
5296 (struct type): Move most members to struct main_type. Change
5297 cv_type and as_type to new type_chain member. Add instance_flags.
5298 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5299 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5300 (finish_cv_type): Remove prototype.
5301 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5302 Set TYPE_CHAIN.
5303 (alloc_type_instance): New function.
5304 (smash_type): New function.
5305 (make_pointer_type, make_reference_type, make_function_type)
5306 (smash_to_member_type, smash_to_method_type): Call smash_type.
5307 (make_qualified_type): New function.
5308 (make_type_with_address_space): Call make_qualified_type.
5309 (make_cv_type): Likewise.
5310 (finish_cv_type): Remove unnecessary function.
5311 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5312 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5313 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5314 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5315 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5316 * hpread.c (hpread_read_struct_type): Likewise.
5317 * stabsread.c (read_struct_type): Likewise.
5318
843fedf4
EZ
53192002-05-14 Elena Zannoni <ezannoni@redhat.com>
5320
5321 * configure.tgt: Add a catch all sh* target, for cases like
5322 sh[2,3,4]-elf and sh-hms.
5323
05a6c72c
KS
53242002-05-14 Keith Seitz <keiths@redhat.com>
5325
5326 * event-loop.c (create_file_handler): Don't do anything but
5327 update data when we are given a fd which we are already
5328 monitoring.
5329
5d085aaf
ML
53302002-05-14 Michal Ludvig <mludvig@suse.cz>
5331
5332 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5333 (update_context): Use __func__ in warnings.
5334
9db8d71f
DJ
53352002-05-14 Daniel Jacobowitz <drow@mvista.com>
5336
5337 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5338 and tcp_close to net_open and net_close.
5339 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5340 using UDP if requested. Don't try to disable Nagle on UDP
5341 sockets.
5342 * remote.c (remote_serial_open): New function. Warn about UDP.
5343 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5344
5dbc6baa
EZ
53452002-05-13 Elena Zannoni <ezannoni@redhat.com>
5346
5347 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5348
cc3023f7
EZ
53492002-05-13 Elena Zannoni <ezannoni@redhat.com>
5350
5351 * configure.tgt: Remove sh-hms target.
5352 * MAINTAINERS: Don't list sh-hms as a separate target.
5353
ec2bcbe7
JB
53542002-05-13 Jim Blandy <jimb@redhat.com>
5355
5356 Add first preprocessor macro-expansion files.
5357 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5358 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5359 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5360 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5361 (COMMON_OBS): Add macrotab.o, macroexp.o.
5362 (macroexp.o, macrotab.o): New rules.
5363
6d531722
AC
53642002-05-13 Andrew Cagney <ac131313@redhat.com>
5365
5366 * config/m88k/tm-m88k.h: Update copyright.
5367 (m88k_target_write_pc): Declare
5368 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5369 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5370 (SHIFT_INST_REGS): Update definition.
5371 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5372 using old definition of TARGET_WRITE_PC.
5373 * regcache.c (generic_target_write_pc): Delete code handling
5374 NNPC_REGNUM.
5375 * gdbarch.sh (NNPC_REGNUM): Delete.
5376 * gdbarch.h, gdbarch.c: Regenerate.
5377
3e3f2739
RE
53782002-05-13 Richard Earnshaw <rearnsha@arm.com>
5379
5380 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5381 builtin reg number.
5382
0004e5a2
DJ
53832002-05-13 Daniel Jacobowitz <drow@mvista.com>
5384
5385 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5386 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5387 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5388 access macros.
5389 * c-typeprint.c (cp_type_print_method_args): Likewise.
5390 (c_type_print_args): Likewise.
5391 * d10v-tdep.c (d10v_push_arguments): Likewise.
5392 (d10v_extract_return_value): Likewise.
5393 * expprint.c (print_subexp): Likewise.
5394 * gdbtypes.c (lookup_primitive_typename): Likewise.
5395 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5396 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5397 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5398 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5399 (TYPE_VECTOR): Likewise.
5400 * hpread.c (hpread_read_struct_type)
5401 (fix_static_member_physnames, fixup_class_method_type)
5402 (hpread_type_lookup): Likewise.
5403 * mdebugread.c (parse_symbol, parse_type): Likewise.
5404 * p-lang.c (is_pascal_string_type): Likewise.
5405 * valops.c (hand_function_call): Likewise.
5406 * x86-64-tdep.c (classify_argument): Likewise.
5407
5408 * hpread.c (hpread_read_function_type)
5409 (hpread_read_doc_function_type): Call replace_type.
5410 * dstread.c (create_new_type): Delete.
5411 (decode_dst_structure, process_dst_function): Call alloc_type.
5412 Use type access macros.
5413
dff95cc7
MK
54142002-05-12 Mark Kettenis <kettenis@gnu.org>
5415
5416 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5417 the're not supported by the current architecture.
5418 (i387_fill_fxsave): Likewise.
5419
bbcd32ad
FF
54202002-05-12 Fred Fish <fnf@redhat.com>
5421
5422 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5423 sect_index_xxx members to index the first slot in section_offsets
5424 if all of the section_offsets are zero.
5425
89cf4787
MK
54262002-05-12 Mark Kettenis <kettenis@gnu.org>
5427
5428 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5429 checked in with last change.
5430
1f77ffc5
MK
54312002-05-12 Mark Kettenis <kettenis@gnu.org>
5432
5433 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5434 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5435 config.sub.
5436
89b8b4a9
DJ
54372002-05-12 Daniel Jacobowitz <drow@mvista.com>
5438
5439 * Makefile.in: Update dependencies.
5440
14a5e767
AC
54412002-05-11 Andrew Cagney <ac131313@redhat.com>
5442
5443 * language.c (local_hex_string_custom): Simplify. Do not depend
5444 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5445
5446 * memattr.c (mem_info_command): Replace calls to
5447 longest_local_hex_string and longest_local_hex_string_custom.
5448 * buildsym.c (make_blockvector): Ditto.
5449 * solib.c (info_sharedlibrary_command): Ditto.
5450 * tracepoint.c (tracepoints_info): Ditto.
5451 * symtab.c (print_msymbol_info): Ditto.
5452
5453 * language.c (local_hex_string): Delete.
5454 (local_hex_string_custom): Delete.
5455 (longest_local_hex_string): Rename to local_hex_string.
5456 (longest_local_hex_string_custom): Rename to
5457 local_hex_string_custom.
5458 * language.h (local_hex_string): Change parameter type to LONGEST.
5459 (local_hex_string_custom): Ditto.
5460 (longest_local_hex_string): Delete declaration.
5461 (longest_local_hex_string_custom): Ditto.
5462
5463 * solib.c: Update copyright.
5464 * memattr.c: Update copyright.
5465
13d01224
AC
54662002-05-11 Andrew Cagney <ac131313@redhat.com>
5467
5468 * arch-utils.h (legacy_register_to_value): Declare.
5469 (legacy_value_to_register): Declare.
5470 (legacy_convert_register_p): Declare.
5471 * arch-utils.c (legacy_register_to_value): New function.
5472 (legacy_value_to_register): New function.
5473 (legacy_convert_register_p): New function.
5474
5475 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5476 (VALUE_TO_REGISTER): Define.
5477 (CONVERT_REGISTER_P): Define.
5478 * gdbarch.h, gdbarch.c: Regenerate.
5479
5480 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5481 VALUE_TO_REGISTER.
5482 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5483 CONVERT_REGISTER_P.
5484
4a1970e4
DJ
54852005-05-11 Daniel Jacobowitz <drow@mvista.com>
5486 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5487
5488 * Makefile.in: Update dependencies for valops.c.
5489 * valops.c: Include "gdb_assert.h".
5490 (typecmp): Skip THIS parameter to methods.
5491 (find_method_list): Remove static_memfuncp argument,
5492 update callers. Check for stub methods.
5493 (find_value_oload_method_list): Don't set *static_memfuncp.
5494 (find_overload_match): Don't check for stub methods. Assert
5495 that methods are not stubbed. Handle static methods.
5496 (value_find_oload_method_list): Remove static_memfuncp argument.
5497 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5498 to the argument list for static stub methods.
5499 * value.h (value_find_oload_method_list): Update prototype.
5500
b2e75d78
AC
55012002-05-11 Andrew Cagney <ac131313@redhat.com>
5502
5503 * arch-utils.h (generic_register_size): Declare.
5504 (generic_register_raw_size, generic_register_virtual_size): Delete
5505 declarations.
5506 * arch-utils.c (generic_register_raw_size): Delete.
5507 (generic_register_size): New function.
5508 (generic_register_virtual_size): Delete.
5509
5510 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5511 default generic_register_size.
5512 * gdbarch.h, gdbarch.c: Re-generate.
5513
5514 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5515 register_virtual_size.
5516 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5518
451fbdda
AC
55192002-05-11 Andrew Cagney <ac131313@redhat.com>
5520
5521 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5522 * gdbarch.h, gdbarch.c: Regenerate.
5523 * gnu-v3-abi.c: Update copyright.
5524 (vtable_address_point_offset): Update.
5525 (gnuv3_rtti_type): Update.
5526 (gnuv3_baseclass_offset): Update.
5527 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5528 (init_fetch_link_map_offsets): Update.
5529 * remote.c (get_remote_state): Update.
5530
6d2f5cea
DJ
55312002-05-11 Daniel Jacobowitz <drow@mvista.com>
5532
5533 * TODO: Remove value_headof/value_from_vtable_info comment.
5534 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5535 * values.c (value_headof, value_from_vtable_info): Delete.
5536 * value.h (value_from_vtable_info): Delete prototype.
5537
d2324da4
AC
55382002-05-11 Andrew Cagney <ac131313@redhat.com>
5539
5540 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5541 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5542 $(gdb_regex_h).
5543 (gdb_assert_h): Define.
5544 (gdb_wait_h): Define.
5545 (gdb_regex_h): Define.
5546
5c717440
DJ
55472002-05-11 Daniel Jacobowitz <drow@mvista.com>
5548
5549 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5550 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5551
6c7861b3
JT
55522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5553
5554 * nbsd-tdep.c: Fix comment.
5555
ea5bc2a6
JT
55562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5557
5558 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5559 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5560 (nbsd-tdep.o): New dependency list.
5561 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5562 nbsd-tdep.h.
5563 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5564 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5565 * nbsd-tdep.c: New file.
5566 * nbsd-tdep.h: New file.
5567 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5568 nbsd-tdep.h.
5569 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5570 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5571 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5572 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5573
b28da865
JT
55742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5575
5576 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5577 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5578 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5579 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5580 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5581 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5582
4b8ff1fa
JT
55832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5584
5585 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5586 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5587 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5588 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5589 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5590 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5591 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5592
dfe6eb1f
JT
55932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5594
5595 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5596 fetch_elfcore_registers to...
5597 * i386nbsd-tdep.c: ...here.
5598 (i386nbsd_use_struct_convention): Rename to...
5599 (i386nbsd_aout_use_struct_convention): ...this.
5600 (i386nbsd_supply_reg): New function.
5601 (i386nbsd_fill_reg): New function.
5602 (fetch_core_registers): Use i386nbsd_supply_reg.
5603 (fetch_elfcore_registers): Likewise.
5604 (_initialize_i386nbsd_tdep): New function.
5605 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5606 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5607 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5608 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5609 (i386nbsd_aout_use_struct_convention): ...this.
5610
20cb8cda
JT
56112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5612
5613 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5614 (store_inferior_registers): Use shnbsd_fill_reg.
5615 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5616 sh_nbsd_supply_register): Collapse into...
5617 (shnbsd_supply_reg): ...this.
5618 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5619 (shnbsd_fill_reg): ...this.
5620 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5621 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5622 (fetch_core_registers): Use shnbsd_supply_reg.
5623 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5624 (sh_nbsd_core_fns): Rename to...
5625 (shnbsd_core_fns): ...this.
5626 (sh_nbsd_elfcore_fns): Rename to...
5627 (shnbsd_elfcore_fns): ...this.
5628 (sh_nbsd_init_abi): Rename to...
5629 (shnbsd_init_abi): ...this.
5630 (_initialize_sh_nbsd_tdep): Rename to...
5631 (_initialize_shnbsd_tdep): ...this.
5632 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5633 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5634 sh_nbsd_fill_register): Remove prototypes.
5635 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5636
e750d25e
JT
56372002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5638
5639 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5640 (i387-nat.o): Delete dependency list.
5641 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5642 (x86-64-linux-nat.o): Likewise.
5643 * i387-nat.c: Delete file, moving contents to...
5644 * i387-tdep.c: ...here.
5645 * i387-nat.h: Rename...
5646 * i387-tdep.h: ...to this.
5647 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5648 * i386-linux-nat.c: Likewise.
5649 * i386bsd-nat.c: Likewise.
5650 * i386gnu-nat.c: Likewise.
5651 * i386nbsd-nat.c: Likewise.
5652 * i386v4-nat.c: Likewise.
5653 * x86-64-linux-nat.c: Likewise.
5654 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5655 * config/i386/go32.mh (NATDEPFILES): Likewise.
5656 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5657 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5658 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5659 * config/i386/linux.mh (NATDEPFILES): Likewise.
5660 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5661 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5662 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5663 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5664
1aee598a
JT
56652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5666
5667 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5668 (alphanbsd-nat.o): Remove dependency list.
5669 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5670 * alphanbsd-nat.c: Delete. Contents moved to...
5671 * alphanbsd-tdep.c: ...here.
5672 (_initialize_alphanbsd_tdep): Register core functions.
5673 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5674
12bcb0fe
JT
56752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5676
5677 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5678 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5679 (alphanbsd-nat.o): Likewise.
5680 (alphabsd-tdep.o): New dependency list.
5681 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5682 (fill_gregset): Use alphabsd_fill_reg.
5683 (supply_fpregset): Use alphabsd_supply_fpreg.
5684 (fill_fpregset): Use alphabsd_fill_fpreg.
5685 (fetch_inferior_registers): Use struct reg and struct fpreg
5686 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5687 and alphabsd_supply_fpreg.
5688 (store_inferior_registers): Use struct reg and struct fpreg
5689 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5690 and alphabsd_fill_fpreg.
5691 * alphabsd-tdep.c: New file.
5692 * alphabsd-tdep.h: New file.
5693 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5694 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5695 alphabsd_supply_fpreg.
5696 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5697 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5698
361d1df0
EC
56992002-05-11 Eric Christopher <echristo@redhat.com>
5700
5701 * mips-tdep.c (mips_double_register_type): Fix thinko.
5702 (mips_single_register_type): Ditto.
5703 * MAINTAINERS: Add self.
5704
92dd7cee
MK
57052002-05-11 Mark Kettenis <kettenis@gnu.org>
5706
5707 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5708 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5709 right thing on architectures with different endianness and/or
5710 integer sizes.
5711
e27da16d
JT
57122002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5713
5714 From Christian Limpach <chris@Pin.LU>
5715 * configure.in: Change sed expression which comments out
5716 NATDEPFILES to also comment out continuation lines.
5717 * configure: Regenerate.
5718
ddde02bd
EZ
57192002-05-10 Elena Zannoni <ezannoni@redhat.com>
5720
5721 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5722 big patch.
5723
1c922164
EZ
57242002-05-10 Elena Zannoni <ezannoni@redhat.com>
5725
5726 * sh-tdep.c: Include correct file.
5727
283150cd
EZ
57282002-05-10 Elena Zannoni <ezannoni@redhat.com>
5729
5730 New support for sh64-elf (sh5) target.
5731
5732 * configure.tgt: For sh64-elf target, default to sh-elf.
5733
5734 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5735 (struct gdbarch_tdep): Add new fields for new registers and ABI
5736 info.
361d1df0 5737
283150cd
EZ
5738 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5739 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5740 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5741 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5742 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5743 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5744 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5745 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5746 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5747 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5748 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5749 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5750 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5751 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5752 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5753 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5754 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5755 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5756 sign_extend, sh64_nofp_frame_init_saved_regs,
5757 sh64_init_extra_frame_info, sh64_get_saved_register,
5758 sh64_extract_struct_value_address, sh64_pop_frame,
5759 sh64_push_arguments, sh64_extract_return_value,
5760 sh64_store_return_value, sh64_show_media_regs,
5761 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5762 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5763 sh_sh64_register_virtual_type,
5764 sh_sh64_register_convert_to_virtual,
5765 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5766 sh64_register_read, sh64_pseudo_register_write,
5767 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5768 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5769 sh64_do_pseudo_register, sh_compact_do_registers_info,
5770 sh64_do_registers_info, sh_gdbarch_init): New functions.
5771
3117ed25
EZ
57722002-05-10 Elena Zannoni <ezannoni@redhat.com>
5773
5774 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5775
2654e6d4
DJ
57762002-05-10 Daniel Jacobowitz <drow@mvista.com>
5777
5778 * linespec.c (decode_line_1): Check for a double quote after
5779 a filename correctly.
5780
9ab3e532
JB
57812002-05-10 Jim Blandy <jimb@redhat.com>
5782
5783 Properly track the size of the current objfile's .debug_line section.
5784 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5785 (DWARF_LINE_SIZE): New macro.
5786 (dwarf2_build_psymtabs_hard): Record the line section's size in
5787 the partial symbol table.
5788 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5789 symbol table.
5790
126fa72d
PS
57912002-05-10 Petr Sorfa <petrs@caldera.com>
5792
5793 * ia64-tdep.c: Handle breakpoints on L instruction type
5794 in MLX instruction bundle by moving the breakpoint to
5795 the third slot (X instruction type) as L holds only data.
5796
1f077a3e
KB
57972002-05-10 Kevin Buettner <kevinb@redhat.com>
5798
5799 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5800 (process_one_symbol): Complain about discarding local symbols
5801 due to a misplaced N_LBRAC entry.
5802
8120c9d5 58032002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5804
5805 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5806 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5807 decrease the depth we are at, in the case of templates.
361d1df0 5808
67b2c998
DJ
58092002-05-09 Daniel Jacobowitz <drow@mvista.com>
5810
5811 * mips-tdep.c (mips_float_register_type): New function.
5812 (mips_double_register_type): New function.
5813 (mips_print_register): Use them.
5814 (do_fp_register_row): Likewise.
5815
fd326606
DJ
58162002-05-09 Daniel Jacobowitz <drow@mvista.com>
5817
6609d9af 5818 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5819 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5820 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5821
bef35864
MS
58222002-05-09 Michael Snyder <msnyder@redhat.com>
5823
5824 * remote-rdp.c (remote_rdp_can_run): Remove.
5825
c55a3f73
TT
58262002-05-09 Tom Tromey <tromey@redhat.com>
5827
5828 * jv-valprint.c (java_val_print): Handle `char' as a special case
5829 of TYPE_CODE_INT.
5830
b8d5e71d
MS
58312002-05-09 Michael Snyder <msnyder@redhat.com>
5832
5833 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5834 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5835 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5836 str r(0123),[sp,#nn].
361d1df0 5837 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5838 order-independent by placing it in a loop.
5839
e2cd42dd
MS
58402002-05-06 Michael Snyder <msnyder@redhat.com>
5841
5842 * stabsread.c (read_type): Add recognition for new attribute:
5843 "@V;" means that an array type is actually a vector.
5844 This is analogous to the vector flag that's been added to dwarf2.
5845
3ce1502b
MK
58462002-05-09 Mark Kettenis <kettenis@gnu.org>
5847
5848 * i386-tdep.h (i386_abi): New enum.
5849 (struct gdbarch_tdep): Replace os_ident member with abi.
5850 (i386_gdbarch_register_os_abi): New prototype.
5851 * i386-tdep.c (i386_abi_names): New array.
5852 (process_note_abi_tag_sections): Removed.
5853 (process_note_sections): New function.
5854 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5855 (struct i386_abi_handler): New struct.
5856 (i386_abi_handler_list): New variable.
5857 (i386_gdbarch_register_os_abi): New function.
5858 (i386_gdbarch_init): Adapt for the changes given above.
5859
084c156a
DJ
58602002-05-08 Daniel Jacobowitz <drow@mvista.com>
5861
5862 * gregset.h: Say "GNU/Linux".
5863
6599f021
EZ
58642002-05-08 Elena Zannoni <ezannoni@redhat.com>
5865
5866 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5867 (build_gdbtypes): Build builtin_type_v2_float.
5868 (_initialize_gdbtypes): Register new builtin type.
5869
40af4b0c
AC
58702002-05-08 Andrew Cagney <ac131313@redhat.com>
5871
5872 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5873 (clear_gdbarch_swap): New function.
5874 (initialize_non_multiarch): Call.
5875 (gdbarch_update_p): Before calling init(), swap out and clear the
5876 existing architecture.
5877 * gdbarch.c: Regenerate.
5878
4fe84f46
JT
58792002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5880
5881 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5882 alphanbsd-tdep.c.
5883
4015edd1
JT
58842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5885
5886 * sh-nbsd-nat.c: Rename to...
5887 * shnbsd-nat.c: ...this.
5888 * sh-nbsd-tdep.c: Rename to...
5889 * shnbsd-tdep.c: ...this.
5890 * sh-nbsd-tdep.h: Rename to...
5891 * shnbsd-tdep.h: ...this.
5892 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5893 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5894
0e2bd219
RE
58952002-05-08 Richard Earnshaw <rearnsha@arm.com>
5896
5897 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5898 concatenation for command help messages.
5899
13a38d45
JT
59002002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5901
5902 * NEWS: Note new sh*-*-netbsdelf* configuration.
5903 * configure.host: Set gdb_host_cpu to sh for all sh*.
5904 (sh*-*-netbsdelf*): New host.
5905 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5906 (sh*-*-netbsdelf*): New target.
5907 * sh-nbsd-nat.c: New file.
5908 * sh-nbsd-tdep.c: New file.
5909 * sh-nbsd-tdep.h: New file.
5910 * config/sh/nbsd.mh: New file.
5911 * config/sh/nbsd.mt: New file.
5912 * config/sh/nm-nbsd.h: New file.
5913 * config/sh/tm-nbsd.h: New file.
5914
d658f924
JT
59152002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5916
5917 * sh-tdep.c (sh_osabi_names): Declare.
5918 (process_note_abi_tag_sections): New function.
5919 (get_elfosabi): Ditto.
5920 (sh_gdbarch_register_os_abi): Ditto.
5921 (sh_dump_tdep): Ditto.
5922 _initialize_sh_tdep): Use gdbarch_register to register
5923 sh_gdbarch_init and sh_dump_tdep.
5924 * config/sh/tm-sh.h (sh_osabi): Declare.
5925 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5926
848cfffb
AC
59272002-05-07 Andrew Cagney <ac131313@redhat.com>
5928
5929 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5930 (thumb_scan_prologue): Ditto.
5931 (arm_find_callers_reg): Ditto.
5932 (arm_frame_chain): Ditto.
5933 (arm_init_extra_frame_info): Ditto.
5934 (arm_frame_saved_pc): Ditto.
5935 (arm_pop_frame): Ditto.
5936 (arm_push_return_address): New function.
5937 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5938 call_dummy_location, call_dummy_breakpoint_offset_p,
5939 call_dummy_breakpoint_offset, call_dummy_p,
5940 call_dummy_stack_adjust_p, call_dummy_words,
5941 sizeof_call_dummy_words, call_dummy_start_offset,
5942 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5943 call_dummy_address, push_return_address and push_dummy_frame for
5944 generic dummy frames.
5945
e7d717c0
JT
59462002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5947
5948 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5949 size computation for alloca.
5950 (sh_fp_frame_init_saved_regs): Likewise.
5951
7bbcf283
RE
59522002-05-07 Richard Earnshaw <rearnsha@arm.com>
5953
5954 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5955 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5956 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5957 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5958 * remote-rdp.c (remote_rdp_fetch_register): Use
5959 ARM_MAX_REGISTER_RAW_SIZE.
5960 (remote_rdp_store_register): Likewise.
5961
4657573b
ML
59622002-05-07 Michal Ludvig <mludvig@suse.cz>
5963
361d1df0 5964 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5965 added default labels to switch {} statements.
5966 * x86-64-tdep.c: Ditto.
5967 * x86-64-linux-nat.c: Ditto.
5968
010f3b2f
JT
59692002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5970
5971 * solib.h: Protect against multiple inclusion.
5972
debd256d
JB
59732002-05-06 Jim Blandy <jimb@redhat.com>
5974
9ab3e532
JB
5975 Add first preprocessor macro-expansion files.
5976 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5977 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5978 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5979 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5980 (COMMON_OBS): Add macrotab.o, macroexp.o.
5981 (macroexp.o, macrotab.o): New rules.
5982
debd256d
JB
5983 Separate the job of reading the line number info statement program
5984 header (...expialidocious) out into its own function.
5985 * dwarf2read.c (struct line_head, struct filenames, struct
5986 directories): Replace with...
5987 (struct line_header): New structure, containing the full
5988 contents of the statement program header, including the
5989 include directory and file name tables.
5990 (read_file_scope): If we have line number info, instead of just
5991 calling dwarf_decode_lines to do all the work, call
5992 dwarf_decode_line_header first to get a `struct line_header'
5993 containing the data in the statement program header, and then
5994 pass that to dwarf_decode_lines, which will pick up where that
5995 left off. Be sure to clean up the `struct line_header' object.
5996 (dwarf_decode_line_header, free_line_header, add_include_dir,
5997 add_file_name): New functions.
5998 (dwarf_decode_lines): Move all the code to read the statement
5999 program header into dwarf_decode_line_header. Take the line
6000 header it built as the first argument, instead of the offset to
6001 the compilation unit's line number info. Use the new `struct
6002 line_header' type instead of the old structures. No need to do
6003 cleanups here now, since we don't allocate anything.
6004 (dwarf2_statement_list_fits_in_line_number_section,
6005 dwarf2_line_header_too_long): New complaints.
6006
ac3aafc7
EZ
60072002-05-06 Elena Zannoni <ezannoni@redhat.com>
6008
6009 * gdbtypes.c (init_vector_type): New function.
6010 (build_builtin_type_vec128): Simplify the representation of SIMD
6011 registers.
6012 (build_gdbtypes): Initialize new builtin vector types.
6013 (_initialize_gdbtypes): Register new vector types with gdbarch.
6014 (builtin_type_v4_float, builtin_type_v4_int32,
6015 builtin_type_v8_int16, builtin_type_v16_int8,
6016 builtin_type_v2_int32, builtin_type_v4_int16,
6017 builtin_type_v8_int8): New (renamed) SIMD types.
6018
13e49980
MK
60192002-05-06 Mark Kettenis <kettenis@gnu.org>
6020
6021 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6022 (i387_fill_fxsave): Likewise.
6023
997b20b8
AO
60242002-05-05 Alexandre Oliva <aoliva@redhat.com>
6025
6026 * alpha-tdep.c (alpha_extract_return_value): Don't use
6027 non-constant array size in prototype.
6028
535c96ce
AC
60292002-05-04 Andrew Cagney <ac131313@redhat.com>
6030
6031 From Brian Taylor <briant at model dot com>:
6032 * ui-out.c (ui_out_field_core_addr): Use the function
6033 longest_local_hex_string_custom'to format addresses > 32 bits
6034 wide.
6035
6036 * ui-out.c (ui_out_field_core_addr): Update comment.
6037
bedfa57b
AC
60382002-05-04 Andrew Cagney <ac131313@redhat.com>
6039
6040 * stack.c (select_and_print_frame): Make static. Delete the
6041 parameter `level'.
6042 (func_command): Update call.
6043 (select_frame_command): Delete code computing the frame level.
6044 * frame.h (select_and_print_frame): Delete declaration.
6045
f621c63e
AC
60462002-05-04 Andrew Cagney <ac131313@redhat.com>
6047
6048 * sparc-tdep.c (sparc_get_saved_register): Comment why
6049 get_prev_frame call is safe.
6050
0f7d239c
AC
60512002-05-04 Andrew Cagney <ac131313@redhat.com>
6052
6053 * frame.h (select_frame): Delete level parameter.
6054 * stack.c (select_frame): Update. Use frame_relative_level to
6055 obtain the frame's level.
6056 (select_and_print_frame): Update call.
6057 (select_frame_command): Ditto.
6058 (up_silently_base): Ditto.
6059 (down_silently_base): Ditto.
6060 * ocd.c (ocd_start_remote): Ditto.
6061 * remote-rdp.c (remote_rdp_open): Ditto.
6062 * remote-mips.c (mips_initialize): Ditto.
6063 (common_open): Ditto.
6064 * remote-e7000.c (e7000_start_remote): Ditto.
6065 * m3-nat.c (select_thread): Ditto.
6066 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6067 (child_get_current_exception_event): Ditto.
6068 * varobj.c (varobj_create): Ditto.
6069 (varobj_update): Ditto.
6070 (c_value_of_root): Ditto.
6071 * tracepoint.c (finish_tfind_command): Ditto.
6072 * corelow.c (core_open): Ditto.
6073 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6074 * thread.c (info_threads_command): Ditto.
6075 (switch_to_thread): Ditto.
6076 * infrun.c (normal_stop): Ditto.
6077 (restore_selected_frame): Ditto.
6078 (restore_inferior_status): Ditto.
6079 * breakpoint.c (insert_breakpoints): Ditto.
6080 (watchpoint_check): Ditto.
6081 (bpstat_stop_status): Ditto.
6082 (do_enable_breakpoint): Ditto.
6083 * blockframe.c (flush_cached_frames): Ditto.
6084 (reinit_frame_cache): Ditto.
6085
71d6c7b1
AC
60862002-05-04 Andrew Cagney <ac131313@redhat.com>
6087
6088 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6089 maintainer.
6090
cda6c68a
JB
60912002-05-04 Jim Blandy <jimb@redhat.com>
6092
6093 * gdbtypes.c (replace_type): Doc fix.
6094
5c1c87f0
AC
60952002-05-04 Andrew Cagney <ac131313@redhat.com>
6096
6097 * valprint.c (strcat_longest): Delete commented out function.
6098 Update copyright.
6099
cd9bfe15
AC
61002002-05-04 Andrew Cagney <ac131313@redhat.com>
6101
6102 * MAINTAINERS: Mark a29k as deleted.
6103 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6104 Move new configurations to the top.
6105 * configure.tgt: Remove a29k.
6106 * config/a29k/tm-vx29k.h: Delete.
6107 * config/a29k/vx29k.mt: Delete.
6108 * config/a29k/tm-a29k.h: Delete.
6109 * config/a29k/a29k-udi.mt: Delete.
6110 * config/a29k/a29k.mt: Delete.
6111 * a29k-tdep.c: Delete.
6112 * remote-udi.c: Delete.
6113 * remote-mm.c: Delete.
6114 * remote-eb.c: Delete.
6115 * remote-adapt.c: Delete.
6116 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6117 * config/s390/s390x.mt: Ditto.
6118 * config/s390/s390.mt: Ditto.
6119 * config/sparc/sparclynx.mh: Ditto.
6120 * config/sparc/linux.mh: Ditto.
6121 * config/pa/hppaosf.mh: Ditto.
6122 * config/pa/hppabsd.mh: Ditto.
6123 * config/ns32k/nbsd.mt: Ditto.
6124 * config/mips/vr5000.mt: Ditto.
6125 * config/m68k/sun3os4.mh: Ditto.
6126 * config/m68k/nbsd.mt: Ditto.
6127 * config/m68k/m68klynx.mh: Ditto.
6128 * config/m32r/m32r.mt: Ditto.
6129 * config/i386/x86-64linux.mt: Ditto.
6130 * config/i386/nbsdelf.mt: Ditto.
6131 * config/i386/nbsd.mt: Ditto.
6132 * config/i386/i386lynx.mh: Ditto.
6133
bf0c5130
AC
61342002-05-04 Andrew Cagney <ac131313@redhat.com>
6135
6136 * target.c (debug_print_register): New function. Handle oversize
6137 registers.
6138 (debug_to_fetch_registers): Call.
6139 (debug_to_store_registers): Call.
6140
2ae1c2d2
JB
61412002-05-03 Jim Blandy <jimb@redhat.com>
6142
13a393b0
JB
6143 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6144 (read_type): Doc fix.
6145 * gdbtypes.c (replace_type): Doc fix.
6146
2ae1c2d2
JB
6147 * stabsread.c (multiply_defined_struct): New complaint.
6148 (read_struct_type): If the type we were passed isn't empty, or
6149 incomplete, don't read the new struct type into it; complain,
6150 and return the original type unchanged. Take a new `type_code'
6151 argument, which is the type code for the new type.
6152 (read_type): Rather than storing the type's type code here, pass
6153 it as an argument to read_struct_type, and let that take care of
6154 storing it. That way, we don't overwrite the original type code,
6155 so read_struct_type can use it to decide whether we're overwriting
6156 something we shouldn't.
6157 (complain_about_struct_wipeout): New function.
6158
8de9bdc4
AC
61592002-05-03 Andrew Cagney <ac131313@redhat.com>
6160
6161 * gdbarch.sh: Assert that gdbarch is non-NULL.
6162 * gdbarch.c: Regenerate.
6163
f773fdbb
JM
61642002-05-03 Jason Merrill <jason@redhat.com>
6165
6166 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6167 and return NULL.
6168
0e04a514
ML
61692002-05-03 Michal Ludvig <mludvig@suse.cz>
6170
6171 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6172 (x86_64_dwarf2gdb_regno_map_length),
6173 (x86_64_dwarf2_reg_to_regnum): Added.
6174 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6175 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6176 (_initialize_x86_64_tdep): Synced with the change above.
6177 (x86_64_skip_prologue): Reformulated message.
6178
065432a8
PM
61792002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6180
6181 * f-exp.y: Also use new prev_lexptr variable
6182 to improve error reporting. Based on Michael Snyder
6183 2002-04-24 dated patch to c-exp.y.
6184 * jv-exp.y: Likewise.
6185 * m2-exp.y: Likewise.
6186
a3162708
EZ
61872002-05-02 Elena Zannoni <ezannoni@redhat.com>
6188
6189 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6190 we are dealing with vectors.
6191
03620c38
PM
61922002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6193
6194 * config/m68k/tm-nbsd.h: Obvious fix,
6195 correct machine name.
6196
6604db2e
PM
61972002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6198
6199 * p-typeprint.c (pascal_type_print_base): Add support
6200 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6201
0906b739
PM
62022002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6203
6204 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6205 for fondamental pascal 'char' type.
6206
e2625b33
PM
62072002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6208
6209 * p-lang.h (is_pascal_string_type): Declaration changed,
6210 new sixth argument of type char ** added.
361d1df0 6211 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6212 changed. Args length_pos, length_size, string_pos, char_size
6213 can now be NULL. New argument arrayname set to the field
6214 name of the char array. Return value set to char array
6215 field index plus one.
361d1df0 6216 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6217 is_pascal_string_type function.
6218
cf17c188
AC
62192002-05-02 Andrew Cagney <cagney@redhat.com>
6220
6221 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6222 <cagney@redhat.com> change.
6223 * gdbarch.c: Regenerate.
6224
52bca491
AC
62252002-05-02 Andrew Cagney <cagney@redhat.com>
6226
6227 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6228 before probing for a new one. Detect errorenous gdbarch_init
6229 functions.
6230 * gdbarch.c: Regenerate.
6231
d5e72505
AC
62322002-05-01 Andrew Cagney <cagney@redhat.com>
6233
6234 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6235 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6236 * config/v850/tm-v850.h: Ditto. Update copyright.
6237
af566d9f
AC
62382002-04-30 Andrew Cagney <ac131313@redhat.com>
6239
6240 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6241 current_gdbarch.
6242
880d85fa
MS
62432002-04-30 Michael Snyder <msnyder@redhat.com>
6244
94c30b78
MS
6245 * arm-tdep.c: Whitespace clean-ups.
6246 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6247 should have been removed as part of 4/24 change.
6248
6f5987a6
KB
62492002-04-30 Kevin Buettner <kevinb@redhat.com>
6250
6251 * rs6000-tdep.c: Added comment describing how fpscr register
6252 numbers were chosen.
6253
1a113c93
MS
62542002-04-30 Michael Snyder <msnyder@redhat.com>
6255
6256 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6257
9a6f53fe
EZ
62582002-04-29 Elena Zannoni <ezannoni@redhat.com>
6259
6260 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6261 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6262 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6263
11ed25ac
KB
62642002-04-29 Kevin Buettner <kevinb@redhat.com>
6265
6266 From Louis Hamilton <hamilton@redhat.com>:
6267 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6268 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6269 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6270 not bfd-private xcoff data, to determine wordsize.
6271 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6272
ae232405
AC
62732002-04-29 Andrew Cagney <ac131313@redhat.com>
6274
6275 GDB 5.2 released from 5.2 branch.
6276
91fd20f7
ML
62772002-04-29 Michal Ludvig <mludvig@suse.cz>
6278
6279 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6280 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6281 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6282
2dc5091b
EZ
62832002-04-29 Elena Zannoni <ezannoni@redhat.com>
6284
6285 * rs6000-tdep.c (rs6000_extract_return_value,
6286 rs6000_store_return_value): Handle returning vectors.
6287 (rs6000_gdbarch_init): Use
6288 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6289 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6290 New function.
6291 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6292 vectors.
6293 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6294 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6295
2b9848d8
PM
62962002-04-24 Pierre Muller <ics.u-strasbg.fr>
6297
6298 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6299 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6300 with fprintf_unfiltered (gdb_stderr,...).
6301
f8d17dc5
PM
63022002-04-24 Pierre Muller <ics.u-strasbg.fr>
6303
6304 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6305 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6306 Replace fprintf (stderr,...
6307 with fprintf_unfiltered (gdb_stderr,....
6308 * remote-es.c: Likewise.
6309 * remote-os9k.c: Likewise.
6310 * remote-st.c: Likewise.
6311
2f2f1ad1
AS
63122002-04-28 Andreas Schwab <schwab@suse.de>
6313
6314 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6315 linux-proc.o and gcore.o.
6316
b6779aa2
AC
63172002-04-26 Michal Ludvig <mludvig@suse.cz>
6318
6319 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6320 code without frame pointers.
6321
7e57f5f4
AC
63222002-04-26 Andrew Cagney <ac131313@redhat.com>
6323
6324 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6325 ON_STACK is needed.
6326
2ceb85d0
BE
63272002-04-26 Ben Elliston <bje@redhat.com>
6328
6329 * target.c (do_xfer_memory): Correct reference to the new option
6330 "trust-readonly-sections".
6331
f5f8a009
EZ
63322002-04-26 Elena Zannoni <ezannoni@redhat.com>
6333
6334 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6335 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6336 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6337 vectors.
6338 (read_array_type): Record the fact that this array type is really a
6339 vector (i.e. are passed in by value).
6340
5868c862
JT
63412002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6342
6343 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6344 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6345 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6346 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6347 * alpha-linux-tdep.c: Include frame.h.
6348 (alpha_linux_sigcontext_addr): New function.
6349 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6350 alpha_linux_sigcontext_addr.
6351 * alpha-osf1-tdep.c: Include gdbcore.h.
6352 (alpha_osf1_sigcontext_addr): New function.
6353 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6354 alpha_osf1_sigcontext_addr.
6355 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6356 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6357
bfb01f37
AC
63582002-04-26 Andrew Cagney <ac131313@redhat.com>
6359
361d1df0 6360 * stack.c (selected_frame_level):
bfb01f37
AC
6361 (select_frame): Do not set selected_frame_level.
6362 * frame.h (selected_frame_level): Delete declaration.
6363
15813d3f
AC
63642002-04-26 Andrew Cagney <ac131313@redhat.com>
6365
6366 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6367 convert_from_func_ptr-addr when AIX / PowerOpen.
6368
6096c27a
AC
63692002-04-25 Andrew Cagney <ac131313@redhat.com>
6370
6371 * valops.c (hand_function_call): Call
6372 generic_save_call_dummy_addr.
6373 * frame.h (generic_save_call_dummy_addr): Declare.
6374 * blockframe.c (struct dummy_frame): Add fields call_lo and
6375 call_hi.
6376 (generic_find_dummy_frame): Check for PC in range call_lo to
6377 call_hi instead of entry_point_address.
6378 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6379 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6380 (generic_save_call_dummy_addr): New function.
6381
f510d44e
DM
63822002-04-24 David S. Miller <davem@redhat.com>
6383
6384 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6385 sparc_skip_prologue.
6386 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6387 information to find prologue when possible.
6388 (sparc_prologue_frameless_p): Call examine_prologue directly.
6389 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6390 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6391 second argument.
6392 (SKIP_PROLOGUE): Likewise.
6393
15d72a92
JT
63942002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6395
6396 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6397 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6398 indicate that the condition it was testing is always true.
6399 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6400 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6401 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6402
accc6d1f
JT
64032002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6406 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6407 tdep->jb_pc and tdep->jb_elt_size.
6408 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6409 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6410 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6411 * alpha-nat.c (get_longjmp_target): Remove.
6412 (JB_ELEMENT_SIZE): Ditto.
6413 (JB_PC): Ditto.
6414 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6415 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6416 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6417 to alpha_get_longjmp_target.
6418 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6419 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6420 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6421
1bfdc549
AC
64222002-04-25 Andrew Cagney <ac131313@redhat.com>
6423
6424 * README: Update to GDB 5.2.
6425
1bd316f0
AC
64262002-04-25 Andrew Cagney <ac131313@redhat.com>
6427
6428 * gdbarch.sh (LC_ALL): Set to `c'.
6429
2e5ff58c
TR
64302002-04-25 Theodore A. Roth <troth@verinet.com>
6431
6432 * avr-tdep.c: Ran through gdb_indent.sh.
6433
e33ce519
TR
64342002-04-25 Theodore A. Roth <troth@verinet.com>
6435
6436 * MAINTAINERS: Add myself as AVR maintainer.
6437 * NEWS: Note new target avr.
6438
8818c391
TR
64392002-04-25 Theodore A. Roth <troth@verinet.com>
6440
6441 * Makefile.in: Add support for AVR target.
6442 * configure.tgt: Add support for AVR target.
6443 * avr-tdep.c: New file
6444 * config/avr/avr.mt: New file.
6445
79509c2d
TR
64462002-04-25 Theodore A. Roth <troth@verinet.com>
6447
6448 * MAINTAINERS: Add myself to write-after-approval.
6449
dac8068e
PM
64502002-04-24 Pierre Muller <ics.u-strasbg.fr>
6451
6452 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6453 with fprintf_unfiltered (gdb_stderr,....
6454
25bf3106
PM
64552002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6456
6457 Fix PR gdb/508.
6458 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6459
24467a86
PM
64602002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6461
6462 * p-exp.y: Also use new prev_lexptr variable
6463 to improve error reporting. Based on Michael Snyder
6464 2002-04-24 dated patch to c-exp.y.
6465
95b80706
JT
64662002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6467
6468 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6469 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6470 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6471 to 0.
6472 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6473 and struct value.
6474 (FUNCTION_START_OFFSET): Remove.
6475 (BREAKPOINT): Ditto.
6476
e90cc612
JT
64772002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6478
6479 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6480 * NEWS: Ditto.
6481
6c72f9f9
JT
64822002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6483
6484 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6485 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6486 alpha_linux_pc_in_sigtramp.
6487 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6488 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6489 alpha_osf1_pc_in_sigtramp.
6490 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6491 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6492 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6493 alphafbsd_pc_in_sigtramp.
6494 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6495 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6496 alphanbsd_pc_in_sigtramp.
6497 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6498 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6499
5e4f3379
JT
65002002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6501
6502 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6503
da8ca43d
JT
65042002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6505
6506 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6507 alphanbsd-tdep.c.
6508 (alphanbsd-nat.o): New dependency list.
6509 (alphanbsd-tdep.o): Ditto.
6510 * NEWS: Note new native NetBSD/alpha configuration.
6511 * alphanbsd-nat.c: New file.
6512 * alphanbsd-tdep.c: Ditto.
6513 * configure.host (alpha*-*-netbsd*): New host.
6514 * configure.tgt (alpha*-*-netbsd*): New target.
6515 * config/alpha/nbsd.mh: New file.
6516 * config/alpha/nbsd.mt: Ditto.
6517 * config/alpha/nm-nbsd.h: Ditto.
6518 * config/alpha/tm-nbsd.h: Ditto.
6519
36a6271d
JT
65202002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6521
6522 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6523 (alpha-osf1-tdep.o): New dependency list.
6524 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6525 and skip_sigtramp_frame members.
6526 * alpha-linux-tdep.c: Include gdbcore.h.
6527 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6528 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6529 * alpha-osf1-tdep.c: New file.
6530 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6531 alpha-osf1-dep.c.
6532 (alpha_frame_past_sigtramp_frame): New function.
6533 (alpha_dynamic_sigtramp_offset): Ditto.
6534 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6535 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6536 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6537 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6538 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6539 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6540 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6541 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6542 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6543 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6544 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6545 to find_solib_trampoline_target.
6546 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6547 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6548 (SKIP_TRAMPOLINE_CODE): Remove.
6549 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6550 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6551 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6552 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6553 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6554 (PROC_SIGTRAMP_MAGIC): Ditto.
6555 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6556 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6557 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6558 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6559 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6560
2f4bc57b
JT
65612002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6562
6563 * NEWS: Note that Alpha targets are now multi-arch.
6564
665132f9
MS
65652002-04-24 Michael Snyder <msnyder@redhat.com>
6566
6567 * parser-defs.h (prev_lexptr): New external variable.
6568 * parse.c (parse_exp_1): Set prev_lexptr to null before
6569 calling the language-specific parser.
6570 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6571 (yyerror): Use prev_lexptr in error reporting.
6572
32872fa7
DJ
65732002-04-24 Daniel Jacobowitz <drow@mvista.com>
6574
6575 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6576 * gregset.h: If FILL_FPXREGSET is defined, provide
6577 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6578 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6579 is defined, call fill_fpxregset.
6580
57e76fac
MS
65812002-04-24 Roland McGrath <roland@frob.com>
6582
6583 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6584 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6585 (supply_gregset, supply_fpregset): New functions.
6586
6587 * gnu-nat.c (gnu_find_memory_regions): New function.
6588 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6589 (gnu_xfer_memory): Add a cast.
6590
f43845b3
MS
65912002-04-24 Michael Snyder <msnyder@redhat.com>
6592
361d1df0 6593 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6594 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6595 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6596 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6597 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6598 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6599
a0abec03
AC
6600Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6601
6602 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6603 NUM_PSEUDO_REGS can be used.
6604
d7bd68ca
AC
66052002-04-24 Andrew Cagney <ac131313@redhat.com>
6606
6607 * arch-utils.h: Update copyright.
6608
6609 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6610 * gdbarch.h, gdbarch.c: Re-generate.
6611
6612 * inferior.h (IN_SIGTRAMP): Delete definition.
6613 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6614 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6615
6616 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6617 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6618 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6619 (find_proc_framesize): Ditto.
6620 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6621 (alpha_init_extra_frame_info): Ditto.
6622 * infrun.c (handle_inferior_event): Ditto.
6623 (handle_inferior_event): Ditto.
6624 (check_sigtramp2): Ditto.
6625 * blockframe.c (create_new_frame): Ditto.
6626 (get_prev_frame): Ditto.
6627 * ppc-linux-tdep.c: Update comments.
6628 * i386-linux-tdep.c: Update comments.
6629 * breakpoint.c (bpstat_what): Update comment.
6630
4867e41e
DM
66312002-04-24 David S. Miller <davem@redhat.com>
6632
21d83aa5
DM
6633 * i960-tdep.c (register_in_window_p): New function.
6634 (i960_find_saved_register): Use it instead of
6635 REGISTER_IN_WINDOW_P.
6636 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6637
4867e41e
DM
6638 * symtab.h (find_stab_function_addr): Kill extern.
6639 * minsyms.c (find_stab_function_addr): Remove from here...
6640 * dbxread.c: ... to here, and mark it static.
6641
69cdf6a2
DM
66422002-04-20 David S. Miller <davem@redhat.com>
6643
6644 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6645 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6646
5a595886
DM
66472002-04-21 David S. Miller <davem@redhat.com>
6648
6649 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6650 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6651 (vx_write_register): Likewise.
6652
1da1a192
JB
66532002-04-23 J. Brobecker <brobecker@gnat.com>
6654
6655 * source.c (is_regular_file): New function.
6656 (openp): Check wether file to open is a regular file
6657 to avoid opening directories.
6658
baa6f10b
JT
66592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6660
6661 * findvar.c (extract_signed_integer): Cast printf argument
6662 to suppress format warning.
6663 (extract_unsigned_integer): Likewise.
6664 * infcmd.c (registers_info): Likewise.
6665 * top.c (get_prompt_1): Likewise.
6666 * valops.c (value_assign): Likewise.
6667 * valprint.c (print_decimal): Likewise.
6668
b2c4da81
L
66692002-04-22 H.J. Lu (hjl@gnu.org)
6670
6671 * c-exp.y (typebase): Support
361d1df0 6672
b2c4da81
L
6673 [long|long long|short] [signed|unsigned] [int|]
6674
6675 and
6676
6677 signed [long|long long|short] int
6678
f267bd6a
JT
66792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6680
6681 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6682 and vax-tdep.h.
6683 * vax-tdep.h: New file.
6684 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6685 Make several routines static.
6686 (vax_get_saved_register): New function.
6687 (vax_gdbarch_init): New function.
6688 (_initialize_vax_tdep): Register vax_gdbarch_init.
6689 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6690 Remove macros now under the control of gdbarch.
6691
da3c6d4a
MS
66922002-04-22 Michael Snyder <msnyder@redhat.com>
6693
11d3b27d
MS
6694 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6695 Some whitespace and coding standards tweaks.
da3c6d4a 6696
a33f7558
JT
66972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6698
6699 * vax-tdep.c: Include regcache.h.
6700 (vax_call_dummy_words): New.
6701 (sizeof_vax_call_dummy_words): New.
6702 (vax_fix_call_dummy): New function.
6703 (vax_saved_pc_after_call): Ditto.
6704 * config/vax/tm-vax.h: Don't include regcache.h.
6705 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6706 (CALL_DUMMY): Remove.
6707 (CALL_DUMMY_WORDS): Define.
6708 (SIZEOF_CALL_DUMMY_WORDS): Define.
6709 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6710
47a73475
MS
67112002-04-18 Michael Snyder <msnyder@redhat.com>
6712
6713 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6714
52efde73
JT
67152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6716
6717 * vax-tdep.c (vax_frame_chain): New function.
6718 (vax_push_dummy_frame): Ditto.
6719 (vax_pop_frame): Ditto.
6720 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6721 (FRAMELESS_FUNCTION_INVOCATION): Use
6722 generic_frameless_function_invocation_not.
6723 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6724 (POP_FRAME): Use vax_pop_frame.
6725
ea74468c
JT
67262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6727
6728 * vax-tdep.c (vax_store_struct_return): New function.
6729 (vax_extract_return_value): Ditto.
6730 (vax_store_return_value): Ditto.
6731 (vax_extract_struct_value_address): Ditto.
6732 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6733 vax_store_struct_return.
6734 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6735 (STORE_RETURN_VALUE): Use vax_store_return_value.
6736 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6737
5516aa92
JT
67382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6739
6740 * vax-tdep.c (vax_frame_saved_pc): New function.
6741 (vax_frame_args_address_correct): Ditto.
6742 (vax_frame_args_address): Ditto.
6743 (vax_frame_locals_address): Ditto.
6744 (vax_frame_num_args): Move code to be in proximity to
6745 other frame-related functions.
6746 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6747 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6748 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6749 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6750 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6751
36af0b35
L
67522002-04-22 H.J. Lu (hjl@gnu.org)
6753
6754 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6755 includedir.
6756
ab62c900
JT
67572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6758
6759 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6760 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6761 (FRAME_INIT_SAVED_REGS): New macro.
6762
7232b100
JT
67632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6764
6765 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6766
b70d2aee
JT
67672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6768
6769 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6770 where needed.
6771 (fetch_osf_core_registers): Likewise.
6772 (supply_gregset): Likewise.
6773
a0e8a2d1 67742002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6775
a0e8a2d1
JB
6776 * symfile.h (get_section_index): Define.
6777 * symfile.c (get_section_index): New function.
6778 * mdebugread.c (SC_IS_SBSS): New macro.
6779 (SC_IS_BSS): Return true for the scBss storage class only, as
6780 the scSBss storage class refers to the .sbss section.
6781 (parse_partial_symbols): Discard the symbols which associated
6782 section does not exist.
6783 Make sure to use the .sbss section index for symbols which
6784 storage class is scBss, rather than using the .bss section index.
6785
51eb8b08
JT
67862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6787
6788 * vax-tdep.c: Update copyright years.
6789 (vax_register_name): New function.
6790 (vax_register_byte): Ditto.
6791 (vax_register_raw_size): Ditto.
6792 (vax_register_virtual_size): Ditto.
6793 (vax_register_virtual_type): Ditto.
6794 * config/vax/tm-vax.h: Update copyright years.
6795 (REGISTER_NAMES): Remove.
6796 (REGISTER_NAME): Define.
6797 (REGISTER_BYTE): Use vax_register_byte.
6798 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6799 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6800 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6801
6cc1c0a8
AC
68022002-04-21 Andrew Cagney <ac131313@redhat.com>
6803
6804 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6805 declaration
6806 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6807
9319a2fe
DM
68082002-04-21 David S. Miller <davem@redhat.com>
6809
6810 * arch-utils.c (generic_prologue_frameless_p): Kill
6811 SKIP_PROLOGUE_FRAMELESS_P code.
6812 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6813 references.
6814 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6815 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6816 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6817 references.
6818 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6819 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6820 (sparc_gdbarch_init): Pass it to
6821 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6822
e9ed6d01
JT
68232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6824
6825 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6826 (alphabsd-nat.o): New dependency list.
6827
36012033
JT
68282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6829
6830 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6831 alphafbsd-tdep.c.
6832 (alpha-linux-tdep.o): New dependency list.
6833 (alphafbsd-tdep.o): Likewise.
6834
3379287a
JT
68352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6836
6837 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6838 to here...
6839 * alpha-tdep.c: ...from here.
6840 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6841
4bcbd6cb
JT
68422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6843
6844 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6845 prototype from here...
6846 * alpha-tdep.h: ...to here.
6847
b31da25e
AC
68482002-04-21 Andrew Cagney <ac131313@redhat.com>
6849
6850 * frame.h (selected_frame_level): Document as deprecated.
6851 (frame_relative_level): Declare.
6852 * stack.c (frame_relative_level): New function.
6853 (selected_frame_level): Document as deprecated.
6854 (select_frame): Do not set the selected_frame_level.
6855
6856 * stack.c (frame_info, record_selected_frame): Update.
6857 (frame_command, current_frame_command): Update.
6858 (up_silently_base, up_command, down_silently_base): Update.
6859 (down_command): Update.
6860 * inflow.c (kill_command): Update.
6861 * tracepoint.c (finish_tfind_command): Update.
6862 * corelow.c (core_open): Update.
6863 * thread.c (info_threads_command): Update.
6864 (do_captured_thread_select): Update.
6865 * infcmd.c (finish_command): Update.
6866 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6867
9c1d6fe5
JT
68682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6869
6870 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6871
ab89facf
AC
68722002-04-21 Andrew Cagney <ac131313@redhat.com>
6873
6874 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6875 type const.
6876
82a4efa1
JT
68772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6878
6879 * alphafbsd-tdep.c: Update copyright years. Include
6880 alpha-tdep.h.
6881 (alphafbsd_use_struct_convention): Make static.
6882 (alphafbsd_init_abi): New function.
6883 (_initialize_alphafbsd_tdep): New function.
6884 * config/alpha/tm-fbsd.h: Update copyright years.
6885 (USE_STRUCT_CONVENTION): Remove.
6886
44dffaac
JT
68872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6888
6889 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6890 an Alpha ABI variant.
6891 (alpha_abi_handler_list): Declare.
6892 (alpha_gdbarch_register_os_abi): New function.
6893 (alpha_gdbarch_init): Give registered ABI variant handlers a
6894 chance to tweak the gdbarch once we have set up defaults.
6895 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6896
65585be4
JT
68972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6898
6899 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6900 to standard_coerce_float_to_double.
6901 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6902
d9b023cc
JT
69032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6904
6905 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6906 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6907 from gdbarch_tdep rather than a constant.
6908 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6909 the default text address for all Alpha Unix ABIs.
6910 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6911 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6912
dc129d82
JT
69132002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6914
6915 * alpha-tdep.h: New file. Includes several Alpha target constants
6916 taken from...
6917 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6918 let gdbarch deal with.
6919 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6920 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6921 to dependency list.
6922 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6923 Alpha target register names.
6924 * alphabsd-nat.c: Likewise.
6925 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6926 Alpha target register names. Make serveral routines static.
6927 (alpha_get_saved_register): New function.
6928 (alpha_abi_names): New.
6929 (process_note_abi_tag_sections): New function.
6930 (get_elfosabi): New function.
6931 (alpha_gdbarch_init): New function.
6932 (alpha_dump_tdep): New function.
6933 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6934
d49d1e0a
AC
69352002-04-21 Andrew Cagney <ac131313@redhat.com>
6936
6937 * frame.c (find_saved_register): Delete #ifdef
6938 HAVE_REGISTER_WINDOWS code.
6939 * config/sparc/tm-sparc.h: Update comments.
6940 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6941
92e8c9ed
AC
69422002-04-21 Andrew Cagney <ac131313@redhat.com>
6943
6944 * i960-tdep.c (i960_find_saved_register): New function.
6945 (i960_get_saved_register): New function.
6946 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6947 (i960_get_saved_register): Declare.
6948 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6949
e1925118
DM
69502002-04-20 David S. Miller <davem@redhat.com>
6951
6952 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6953
29673b29
AC
69542002-04-20 Andrew Cagney <ac131313@redhat.com>
6955
6956 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6957 instead of NUM_PSEUDO_REGS.
6958
6c86dcd5
DM
69592002-04-20 David S. Miller <davem@redhat.com>
6960
6961 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6962 GDB_MULTI_ARCH_PARTIAL
6963 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6964 define, let tm-sp64.h do it.
6965
aa40ec90
JT
69662002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6967
6968 * frame.c (find_saved_register): Avoid a NULL pointer
6969 dereference and actually walk the frame list.
6970
0f79675b
AC
69712002-04-20 Andrew Cagney <ac131313@redhat.com>
6972
6973 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6974 sorted in most most-recent-used order. Document.
6975 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6976
f91305dd 69772002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6978
6979 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6980 instead of ->prev.
6981 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6982 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6983 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6984 instead of ->prev.
6985
73d322b1
EZ
69862002-04-19 Elena Zannoni <ezannoni@redhat.com>
6987
6988 Fix PR gdb/471.
6989 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6990 (build_builtin_type_vec128): Ditto.
6991 (append_composite_type_field): Fix calculation of type length in
6992 union case.
6993
ccd9a834
EZ
69942002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6995
6996 * config/djgpp/README: Update.
6997
6998 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6999 compiler warnings.
7000
a57f9e49
JT
70012002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7002
7003 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7004 (alpha_setup_arbitrary_frame): ...to this.
7005 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7006 for alpha_setup_arbitrary_frame.
7007
f4f9705a
AC
70082002-04-18 Andrew Cagney <cagney@redhat.com>
7009
7010 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7011 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7012
f4f9705a
AC
7013 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7014 * target.h (memory_breakpoint_from_pc): Update declaration.
7015 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7016
7017 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7018 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7019 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7020 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7021 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7022 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7023 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7024 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7025 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7026 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7027 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7028 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7029
7030 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7031 const pointer.
7032 * monitor.c (monitor_insert_breakpoint): Ditto.
7033 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7034
7035 * config/mcore/tm-mcore.h: Update copyright.
7036 * mem-break.c: Ditto.
7037 * xstormy16-tdep.c: Ditto.
7038
29f319b8
PM
70392002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7040
7041 * p-exp.y: Add precedence rule for '^' token.
7042 This removes the shift/reduce conflicts.
7043 Remove the comment concerning these shift/reduce conflicts.
7044
ebeac11a
EZ
70452002-04-18 Elena Zannoni <ezannoni@redhat.com>
7046
7047 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7048 (registers_powerpc_nofp): New register set for processors
7049 without floating point unit.
7050
27c31547
DM
70512002-04-18 David S. Miller <davem@redhat.com>
7052
7053 * MAINTAINERS: Add myself to write-after-approval.
7054
47a73475
MS
70552002-04-17 Michael Snyder <msnyder@redhat.com>
7056
7057 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7058
953836b2
AC
70592002-04-17 Andrew Cagney <ac131313@redhat.com>
7060
7061 * rs6000-tdep.c (frame_initial_stack_address): Use
7062 frame_register_read to read the alloca_reg.
7063
8b0d4340
AC
70642002-04-17 Andrew Cagney <ac131313@redhat.com>
7065
7066 * frame.c (find_saved_register): Find saved registers in the next
7067 not prev frame.
7068 Fix PR gdb/365.
7069
d8864532
AC
70702002-04-17 Andrew Cagney <ac131313@redhat.com>
7071
7072 * gdbarch.sh (LANG): Set to ``c''.
7073
36cc83a3 70742002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7075
36cc83a3 7076 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7077
2f4150cc 70782002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7079
7080 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7081 Update copyright.
7082
628703c6 7083 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7084 Also fix PR gdb/391.
361d1df0 7085
56157b4a
AC
70862002-04-14 Andrew Cagney <ac131313@redhat.com>
7087
7088 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7089 * aclocal.m4, configure: Re-generate.
7090 Fix PR gdb/391.
361d1df0 7091
6d1e3329
EZ
70922002-04-14 Elena Zannoni <ezannoni@redhat.com>
7093
7094 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7095 instead of tm_print_insn.
7096
cb06fa07
EZ
70972002-04-14 Elena Zannoni <ezannoni@redhat.com>
7098
7099 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7100
f208ba17
AC
71012002-04-14 Andrew Cagney <ac131313@redhat.com>
7102
7103 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7104 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7105 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7106
20f01a46
DH
71072002-04-12 Don Howard <dhoward@redhat.com>
7108
7109 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7110 max_user_call_depth.
7111 (init_cmd_lists): Initialize the new value;
7112 * cli/cli-script.c (execute_user_command): Limit the call depth of
7113 user defined commands. This avoids a core-dump when user commands
7114 are infinitly recursive.
7115
a88376a3
KB
71162002-04-12 Kevin Buettner <kevinb@redhat.com>
7117
7118 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7119 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7120 from tdep struct instead of DEFAULT_LR_SAVE.
7121 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7122 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7123 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7124
f2172603
MS
71252002-04-12 Michael Snyder <msnyder@redhat.com>
7126
694f61fb 7127 * Remote.c: Spelling fix.
20fe79c8
MS
7128 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7129 If no symbol found for "sbrk", try "_sbrk".
7130 (make_output_phdrs): Use bfd_section_name.
7131 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7132 * eval.c: Indentation fix-ups.
169a7369
MS
7133 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7134 in case it gets applied to an address that is already
7135 in the instruction space.
de74f71f
MS
7136 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7137 * symfile.c: Fix indentation, long lines.
f2172603
MS
7138 * source.c: White space fix-up.
7139
cda5a58a
AC
71402002-04-12 Andrew Cagney <cagney@redhat.com>
7141
7142 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7143 * frame.c (frame_register_read): New function. Return non-zero on
7144 success.
7145 (read_relative_register_raw_bytes_for_frame): Delete.
7146 (read_relative_register_raw_bytes): Delete.
7147 * frame.h (frame_register_read): Declare.
7148 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7149 * sh-tdep.c: Ditto.
7150 * infcmd.c (do_registers_info): Ditto.
7151 * hppa-tdep.c: Ditto.
7152 * rs6000-tdep.c: Ditto.
7153 * h8500-tdep.c: Ditto.
7154 * mips-tdep.c: Ditto.
7155 * h8300-tdep.c: Ditto.
7156 * z8k-tdep.c: Ditto.
7157
2ea5f656
KB
71582002-04-12 Kevin Buettner <kevinb@redhat.com>
7159
7160 From Jimi X <jimix@watson.ibm.com>:
7161 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7162 64-bit SysV ABI.
7163
27b15785
KB
71642002-04-12 Kevin Buettner <kevinb@redhat.com>
7165
7166 From Jimi X <jimix@watson.ibm.com>:
7167 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7168 bfd info.
7169
5d57ee30
KB
71702002-04-12 Kevin Buettner <kevinb@redhat.com>
7171
7172 From Jimi X <jimix@watson.ibm.com>:
7173 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7174 register sets for these processor variants.
7175
bc1e36ca
DJ
71762002-04-11 Daniel Jacobowitz <drow@mvista.com>
7177
bc1e36ca
DJ
7178 * regformats/reg-ppc.dat: Support FPSCR.
7179
e3f36dbd
KB
71802002-04-11 Kevin Buettner <kevinb@redhat.com>
7181
7182 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7183 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7184 Add fpscr as an invalid/unfetchable register.
7185 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7186 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7187 (fill_fpregset): Add support for register fpscr.
7188 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7189 (fill_gregset): Account for the fact that register ``mq'' might
7190 not exist.
7191 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7192 (registers_power): Add fpscr to register set at slot 71.
7193 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7194 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7195
943c9c25
MS
71962002-04-11 Michael Snyder <msnyder@redhat.com>
7197
7198 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7199 * configure: Regenerate.
7200 * config.in: Regenerate.
7201 * acconfig.h: Add define for _SYSCALL32.
7202 * core-sol2.c: Remove #define _SYSCALL32.
7203 * solib-legacy.c: Remove #define _SYSCALL32.
7204
d8c0a2e7
AC
72052002-04-10 Andrew Cagney <ac131313@redhat.com>
7206
7207 * stack.c (select_frame): Cleanup internal error message, do not
7208 use %p.
7209
7cc19214
AC
72102002-04-10 Andrew Cagney <ac131313@redhat.com>
7211
7212 * stack.c (select_frame): Check that selected_frame and the
7213 specified level are as expected.
7214 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7215 Update copyright.
7216 * frame.h (struct frame_info): Add field `level'. Update
7217 copyright.
7218 Work-in-progress PR gdb/464.
7219
67a2b77e
AC
72202002-04-10 Andrew Cagney <ac131313@redhat.com>
7221
7222 * maint.c (maint_print_section_info): Rename print_section_info.
7223 (print_bfd_section_info, print_objfile_section_info): Update.
7224 * inferior.h (struct gdbarch): Add opaque declaration.
7225 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7226 * gdbarch.h: Regenerate.
7227
8cfda98c
ML
72282002-04-10 Michal Ludvig <mludvig@suse.cz>
7229
7230 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7231 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7232 (kernel_u_size): Added.
7233 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7234 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7235
ca439ad2 72362002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7237
ca439ad2
JI
7238 * valarith.c (find_size_for_pointer_math): New function, either returns
7239 the size for a pointer's target, returns 1 for void *, or errors for
7240 incomplete types.
7241 (value_add, value_sub): use find_size_for_pointer_math.
7242
2f2893d9
DJ
72432002-04-09 Daniel Jacobowitz <drow@mvista.com>
7244
7245 * linux-low.c (linux_look_up_symbols): New hook.
7246 (linux_target_ops): Add linux_look_up_symbols.
7247 * remote-utils.c (decode_address): New function.
7248 (look_up_one_symbol): New function.
7249 * server.c (handle_query): Call target look_up_symbols hook.
7250 * server.h (look_up_one_symbol): Add prototype.
7251 * target.h (struct target_ops): Add look_up_symbols hook.
7252
96cb11df
AC
72532002-04-09 Andrew Cagney <ac131313@redhat.com>
7254
7255 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7256 override FP_REGNUM with frame->fp. Update copyright.
7257 * parse.c (num_std_regs, std_regs): Delete.
7258 (target_map_name_to_register): Do not search std_regs. Update
7259 function description.
7260 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7261 declarations. Update copyright.
7262 Fix PR gdb/251.
361d1df0 7263
97658e92
DJ
72642002-04-09 Daniel Jacobowitz <drow@mvista.com>
7265
7266 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7267 after the last symbol in a block.
7268
6044e3eb
PM
72692002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7270
7271 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7272 is non zero as a found symbol.
7273
0406ec40
AC
72742002-04-08 Andrew Cagney <ac131313@redhat.com>
7275
7276 * findvar.c: Include "builtin-regs.h".
7277 (value_of_register): Call value_of_builtin_reg when applicable.
7278 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7279 (target_map_name_to_register): Call
7280 builtin_reg_map_name_to_regnum.
7281 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7282 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7283 (builtin_regs_h): Define.
7284 (builtin-regs.o): New target.
7285 (findvar.o): Add $(builtin_regs_h).
7286 * builtin-regs.c, builtin-regs.h: New files.
7287 * std-regs.c: New file.
7288 Partial fix for PR gdb/251.
7289
56a6dfb9
KB
72902002-04-08 Kevin Buettner <kevinb@redhat.com>
7291
7292 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7293 it's no longer required.
7294
3a808432
AC
72952002-04-08 Andrew Cagney <ac131313@redhat.com>
7296
7297 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7298
7c40d541
KB
72992002-04-08 Kevin Buettner <kevinb@redhat.com>
7300
7301 From Jimi X <jimix@watson.ibm.com>:
7302 * rs6000-tdep.c (rs6000_software_single_step): Use
7303 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7304 and size. Use target_insert_breakpoint() and
7305 target_remove_breakpoint() to insert and remove breakpoints
7306 instead of explicit memory reads and writes.
7307
cc9836a8
KB
73082002-04-08 Kevin Buettner <kevinb@redhat.com>
7309
7310 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7311 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7312 ELF_OBJECT_FORMAT ifdef.
7313
7495d1dc
KB
73142002-04-08 Kevin Buettner <kevinb@redhat.com>
7315
7316 From Jimi X <jimix@watson.ibm.com>:
7317 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7318
4288e836
KB
73192002-04-08 Kevin Buettner <kevinb@redhat.com>
7320
7321 From Jimi X <jimix@watson.ibm.com>:
7322 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7323 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7324
a4e4e501
MK
73252002-04-07 Mark Kettenis <kettenis@gnu.org>
7326
7327 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7328 s/asprintf/xasprintf/.
7329 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7330
006defba
AC
73312002-04-07 Andrew Cagney <ac131313@redhat.com>
7332
7333 I believe Jeff Law denies responsability for this one:
7334 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7335 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7336 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7337 Work-around for PR gdb/366.
7338
7aa83cac
EZ
73392002-04-07 Elena Zannoni <ezannoni@redhat.com>
7340
7341 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7342 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7343 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7344
cf1fcca1
EZ
73452002-04-07 Elena Zannoni <ezannoni@redhat.com>
7346
7347 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7348 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7349 information.
7350
3f289e6f
AC
73512002-04-07 Andrew Cagney <ac131313@redhat.com>
7352
7353 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7354 maintainer.
7355
129188f6
AC
73562002-04-07 Andrew Cagney <ac131313@redhat.com>
7357
7358 * README (Reporting Bugs in GDB): Document the bug web page as the
7359 prefered way of submitting bugs.
7360 Fix PR gdb/402.
7361
1200cd6e
AC
73622002-04-06 Andrew Cagney <ac131313@redhat.com>
7363
7364 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7365 -1. Update comment.
7366 * gdbarch.h, gdbarch.c: Re-generate.
7367
2853c33c
AS
73682002-04-07 Andreas Schwab <schwab@suse.de>
7369
7370 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7371 buffer to regcache_collect.
7372
c2169756
AC
73732002-04-06 Andrew Cagney <ac131313@redhat.com>
7374
7375 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7376 * gdbarch.c, gdbarch.h: Re-generate.
7377
25f1b008
AC
73782002-04-06 Andrew Cagney <ac131313@redhat.com>
7379
7380 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7381 declaration. Fix -Werror.
7382
59263426
DJ
73832002-04-05 Daniel Jacobowitz <drow@mvista.com>
7384
7385 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7386 * gdbarch.c: Regenerate.
7387
f5db4da3
MS
73882002-04-05 Michael Snyder <msnyder@redhat.com>
7389
80f8a6eb
MS
7390 * breakpoint.c (clear_command): Rewrite middle section to
7391 combine two loops with identical control conditions.
7392 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7393 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7394
ad3dcc5c
L
73952002-04-05 H.J. Lu (hjl@gnu.org)
7396
7397 * solib-svr4.c (bkpt_names): Add "__start".
7398
f32e7a74
AC
73992002-04-04 Andrew Cagney <ac131313@redhat.com>
7400
7401 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7402 as test for 64 bit target.
7403
8227c0ff
AC
74042002-04-05 Andrew Cagney <ac131313@redhat.com>
7405
7406 * h8500-tdep.c (h8500_write_fp): Delete function.
7407 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7408 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7409 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7411 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7412 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7413 (s390_write_fp):
7414 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7415 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7416 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7417 (d10v_write_fp): Delete function.
7418 * inferior.h (write_fp, generic_target_write_fp): Delete
7419 declarations.
7420 * regcache.c (generic_target_write_fp): Delete function.
7421 (write_fp): Delete function.
7422 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7423 * gdbarch.h, gdbarch.c: Regenerate.
7424 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7425 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7426 (sparc64_write_fp): Delete declaration.
7427 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7428 (h8500_write_fp): Delete declaration.
7429
2757dd86
AC
74302002-04-04 Andrew Cagney <ac131313@redhat.com>
7431
7432 * sparc-tdep.c (sparc64_write_fp): Delete.
7433 (sparc_push_dummy_frame): Replace write_fp call with code to store
7434 the FP directly.
7435 (sparc_gdbarch_init): Do not initialize write_fp.
7436
c69255e1
KB
74372002-04-05 Kevin Buettner <kevinb@redhat.com>
7438
7439 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7440 clause.
7441
ae767bfb
JB
74422002-03-29 Jim Blandy <jimb@redhat.com>
7443
7444 * stack.c (get_selected_block): Add new argument `addr_in_block',
7445 used to return the exact code address we used to select the block,
7446 not just the block.
7447 * blockframe.c (get_frame_block, get_current_block): Same.
7448 * frame.h (get_frame_block, get_current_block,
7449 get_selected_block): Update declarations.
7450 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7451 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7452
84d2ac95
MS
74532002-04-05 Michael Snyder <msnyder@redhat.com>
7454
7455 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7456 warning message.
7457
596aa3bf
JB
74582002-04-05 J. Brobecker <brobecker@gnat.com>
7459
7460 * utils.c (xfullpath): New function.
7461 * defs.h (xfullpath): Add declaration.
7462 * source.c (openp): Use xfullpath in place of gdb_realpath to
7463 avoid resolving the basename part of filenames when the
7464 associated file is a symbolic link. This fixes a potential
7465 inconsistency between the filenames known to GDB and the
7466 filenames it prints in the annotations.
7467 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7468 to be able to match a filename with either the real filename, or
7469 the name of any symbolic link to this file.
7470 (lookup_partial_symtab): Ditto.
7471
c02f5703
MS
74722002-04-04 Michael Snyder <msnyder@redhat.com>
7473
7474 * breakpoint.c: Add support for hardware breakpoints in overlays.
7475 (overlay_events_enabled): New state variable.
7476 (insert_breakpoints): Use overlay_events_enabled to decide
7477 whether to attempt to set a breakpoint at the overlay load addr.
7478 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7479 (remove_breakpoint): Use overlay_events_enabled to decide
7480 whether breakpoints need to be removed from overlay load addr.
7481 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7482 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7483 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7484 disable_overlay_breakpoints): Update overlay_events_enabled.
7485
5fb290d7
DJ
74862002-04-04 Daniel Jacobowitz <drow@mvista.com>
7487
7488 * dwarf2read.c (struct function_range): New.
7489 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7490 (check_cu_functions): New.
7491 (read_file_scope): Initialize global function lists.
7492 Call dwarf_decode_line after processing children.
7493 (read_func_scope): Add to global function list.
7494 (dwarf_decode_lines): Call check_cu_functions everywhere
7495 record_line is called. Call record_line with a linenumber
7496 of 0 to mark sequence ends.
7497
7b3fabf0
ML
74982002-04-04 Michal Ludvig <mludvig@suse.cz>
7499
361d1df0 7500 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7501 change sync with glibc.
7502
bce58c09
JB
75032002-04-03 Jim Blandy <jimb@redhat.com>
7504
7505 * configure.in: Call AC_C_INLINE.
7506 * configure: Regenerated.
361d1df0 7507
2fccf04a
DJ
75082002-04-01 Daniel Jacobowitz <drow@mvista.com>
7509
7510 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7511 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7512
2d1bfe2e
MK
75132002-03-31 Mark Kettenis <kettenis@gnu.org>
7514
a5941fbf
MK
7515 * NEWS: Mention gcore support on FreeBSD/i386.
7516
a90cd31d
MK
7517 * fbsd-proc.c: New file.
7518 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7519 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7520
2d1bfe2e
MK
7521 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7522 while statement.
7523
9eb6e5a1
JB
75242002-03-29 Jim Blandy <jimb@redhat.com>
7525
7526 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7527 unescaped newlines in string literals, but newer ones don't. So
7528 escape them.
7529
f02df580
MS
75302002-03-26 Michael Snyder <msnyder@redhat.com>
7531 Andrew Cagney <cagney@redhat.com>
7532
361d1df0 7533 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7534 restore file to memory.
7535 * cli/cli-dump.h: New file.
7536 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7537 * NEWS: Mention new commands.
f02df580 7538
109f874e
MS
75392002-03-28 Michael Snyder <msnyder@redhat.com>
7540
7541 * symfile.c (symbol_file_add): Move test for null symbols to later.
7542
520f6ade
AC
75432002-03-27 Andrew Cagney <ac131313@redhat.com>
7544
7545 From veksler at il.ibm.com:
7546 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7547 the xstrduped original path.
7548 Fix PR gdb/417.
7549
d4654627
MS
75502002-03-27 Michael Snyder <msnyder@redhat.com>
7551
7552 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7553 * infcmd.c (_initialize_infcmd): Ditto.
7554 * language.c (_initialize_language): Ditto.
7555 * symfile.c (_initialize_symfile): Ditto.
7556 * top.c (_init_main): Ditto.
7557 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7558
6be8bc0c
EZ
75592002-03-27 Elena Zannoni <ezannoni@redhat.com>
7560
7561 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7562 vector registers handling.
7563 (skip_prologue): Handle new AltiVec instructions. Fill in new
7564 fields of frame data.
7565 (frame_get_saved_regs): Fill in information for AltiVec registers.
7566
12af6855
JB
75672002-03-27 Jim Blandy <jimb@redhat.com>
7568
7569 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7570 a function; leave this macro here to invoke that function.
7571 (symbol_init_mangled_name): Declaration for that function.
7572 * symtab.c (symbol_init_mangled_name): New function.
7573
dc672865
AC
75742002-03-27 Andrew Cagney <ac131313@redhat.com>
7575
7576 * valarith.c: Replace strerror with safe_strerror.
7577 * tracepoint.c: Ditto.
7578 * lin-lwp.c: Ditto.
7579 * go32-nat.c: Ditto.
7580 * inflow.c: Ditto.
7581 * gnu-nat.c: Ditto.
7582
d96429cd
AS
75832002-03-27 Andreas Schwab <schwab@suse.de>
7584
7585 * event-top.c (command_line_handler): Remove useless if.
7586
7e336ba1
AJ
75872002-03-27 Andreas Jaeger <aj@suse.de>
7588
7589 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7590 comment.
7591
de220d0f
ML
75922002-03-27 Michal Ludvig <mludvig@suse.cz>
7593
7594 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7595 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7596 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7597 (x86_64_linux_dr_get_status, supply_gregset),
7598 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7599 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7600 (x86_64_register_info_table): Add.
7601 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7602 (x86_64_register_raw_size, x86_64_register_virtual_type),
7603 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7604 general x86_64_register_info_table.
7605 (i386_gdbarch_init): gdbarch_register_bytes is now set
7606 dynamicaly during initialization.
7607 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7608 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7609
0e98d0a7
DJ
76102002-03-27 Daniel Jacobowitz <drow@mvista.com>
7611
7612 * gdbserver/server.c (main): Call target_signal_to_host_p
7613 and target_signal_to_host on signals received from the remote.
7614 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7615 target_signal_from_host on signals sent to the remote.
7616 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7617 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7618
3130066b
DJ
76192002-03-27 Daniel Jacobowitz <drow@mvista.com>
7620
7621 * signals/signals.c: Include "server.h" in gdbserver build.
7622 (target_signal_from_name): Don't use STREQ.
7623 (_initialize_signals): Likewise. Don't include function in
7624 gdbserver build.
7625
9aedf4f4
DJ
76262002-03-27 Daniel Jacobowitz <drow@mvista.com>
7627
7628 * signals.c: Moved to...
7629 * signals/signals.c: Here.
7e336ba1 7630 * Makefile (signals.o): Update.
9aedf4f4 7631
3fa41cdb
JL
76322002-03-26 Jeff Law (law@redhat.com)
7633
7634 * somread.c (som_symtab_read): Remove some commented out code and
7635 updated related comments. Do not set the minimal symbol table to
7636 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7637 in a dynamic executable.
7638 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7639 where we are unable to find the minimal symbol for the given
7640 PC value.
7641
ee677e8d
MS
76422002-03-25 Jeff Law (law@redhat.com)
7643
7644 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7645
e76e1718
ML
76462002-03-25 Michal Ludvig <mludvig@suse.cz>
7647
7648 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7649
18a642a1
AC
76502002-03-23 Andrew Cagney <ac131313@redhat.com>
7651
7652 * command.h: Update copyright.
7653 (struct cmd_list_element): Replace definition with opaque
7654 declaration.
7655 (enum cmd_types): Document that it will eventually be moved to
7656 cli/cli-decode.h
7657 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7658 (MALLOCED_REPLACEMENT): Delete macro.
7659 * Makefile.in (cli_decode_h): Add $(command_h).
7660 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7661 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7662 * completer.c: Include "cli/cli-decode.h".
7663 * maint.c: Include "cli/cli-decode.h".
7664 * cli/cli-decode.h: Include "command.h".
7665 (enum command_class): Delete.
7666 (enum cmd_types): Comment out.
7667 (enum cmd_auto_boolean): Delete.
7668 (enum var_types): Delete.
7669
b2875cc0
AC
76702002-03-23 Andrew Cagney <ac131313@redhat.com>
7671
7672 * cli/cli-decode.c: Include "gdb_assert.h".
7673 (add_set_or_show_cmd): New static function.
7674 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7675 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7676 all fields, such as func, from the set command.
7677
3b45974e
AC
76782002-03-23 Andrew Cagney <ac131313@redhat.com>
7679
7680 * MAINTAINERS (sh-elf): Change warning flag to -w.
7681
823ca731
AC
76822002-03-23 Andrew Cagney <cagney@redhat.com>
7683
7684 * defs.h (error): Add printf format attribute.
7685 * thread-db.c (thread_from_lwp): Fix error format string.
7686 * stack.c (parse_frame_specification): Ditto.
7687 * cli/cli-decode.c (undef_cmd_error): Ditto.
7688 * scm-lang.c (scm_lookup_name): Ditto.
7689 * tracepoint.c (trace_error): Ditto.
7690 * remote-utils.c (usage): Ditto.
7691 * remote.c (compare_sections_command): Ditto.
7692 Fix PR gdb/328.
7693
0e101458
AC
76942002-03-22 Andrew Cagney <ac131313@redhat.com>
7695
7696 * gdbtypes.c (append_composite_type_field): New function.
7697 (init_composite_type): New function.
7698 * gdbtypes.h (append_composite_type_field): Declare.
7699 (init_composite_type): Ditto.
7700
8e0662df
EZ
77012002-03-22 Elena Zannoni <ezannoni@redhat.com>
7702
7703 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7704 function.
8e0662df
EZ
7705 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7706 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7707 structure returning convention for SYSV ABI case, but not
7708 for GNU/Linux, FreeBSD, or NetBSD.
7709
3121eff0
DJ
77102002-03-22 Daniel Jacobowitz <drow@mvista.com>
7711
7712 * symtab.h (lookup_block_symbol): Add mangled_name argument
7713 to prototype.
7714
7715 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7716 with new mangled_name argument.
7717 * linespec.c (decode_line_1): Likewise.
7718 * valops (value_of_this): Likewise.
7719 * symtab.c (lookup_transparent_type): Likewise.
7720 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7721 (lookup_symbol): If we are given a mangled name, pass it down
7722 to lookup_symbol_aux.
7723 (lookup_block_symbol): If we are given a mangled name to check
7724 against, only return symbols which match it.
7725
349b409f
CF
77262002-03-22 Christopher Faylor <cgf@redhat.com>
7727
7728 * win32-nat.c (child_create_inferior): Check for proper shell to use
7729 here, in case the user changes it on the fly.
7730 (_initialize_inftarg): Remove shell path considerations.
7731
2a873819
EZ
77322002-03-21 Elena Zannoni <ezannoni@redhat.com>
7733
7734 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7735 for gdbarch_max_register_raw_size and max_register_virtual_size.
7736 Adjust copyright year.
7737
a1b9830c
DJ
77382002-03-21 Daniel Jacobowitz <drow@mvista.com>
7739
7740 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7741 in a function to cover the entire beginning of the function
7742 as well if it does not already.
7743
8b5790f2
TR
77442002-03-21 Tom Rix <trix@redhat.com>
7745
7746 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7747 (rs6000_ptrace64): Renamed from ptrace64.
7748
bdbe5747
MH
77492002-03-20 Martin M. Hunt <hunt@redhat.com>
7750
7751 * gdbserver/remote-utils.c (remote_open): Don't call
7752 getprotobyname, we're all using TCP here so just use
7753 IPPROTO_TCP.
7e336ba1 7754 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7755
77562002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7757
bdbe5747
MH
7758 * regcache.c (_initialize_regcache): No need to call
7759 build_regcache() at this time; it gets called whenever
7760 the gdbarch changes.
7761
7781cd62
DB
77622002-03-20 David O'Brien <obrien@FreeBSD.org>
7763
7764 * sparc-nat.c: Include sys/param.h where possible.
7765
f65ca430
DJ
77662002-03-20 Daniel Jacobowitz <drow@mvista.com>
7767
7768 Fix PR gdb/422.
7769 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7770 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7771 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7772 complex types.
7773 * stabsread.c (rs6000_builtin_type): Likewise.
7774 (read_sun_floating_type): Likewise.
7775
0c867556
PS
77762002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7777
7778 * stabsread.c (read_member_functions): Remove skip code for duplicate
7779 constructor/destructor methods. Use standard parsing for these
7780 methods and just do not chain them to the list of methods after
7781 parsing.
7782
12b9c64f
AO
77832002-03-19 Alexandre Oliva <aoliva@redhat.com>
7784
7785 * coffread.c: Remove redundant static declarations. Replace
7786 occurrences of `PTR' with `void *'.
7787 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7788 * top.h (quit_cover): Likewise.
7789 * defs.h (catch_errors): Likewise.
7790
349c5d5f
AC
77912002-03-18 Andrew Cagney <ac131313@redhat.com>
7792
7793 * defs.h (XMALLOC): Define.
7794 * gdb-events.sh (XMALLOC): Delete macro.
7795 * gdb-events.c, gdb-events.h: Regenerate.
7796 * gdbarch.sh (XMALLOC): Delete macro.
7797 * gdbarch.c: Regenerate.
7798 * serial.c (XMALLOC): Delete macro.
7799 * ui-file.c (XMALLOC): Ditto.
7800 * ser-unix.h (XMALLOC): Ditto.
7801 * sh-tdep.c (XMALLOC): Ditto.
7802 * ui-out.c (XMALLOC): Ditto.
7803 * utils.c (XMALLOC): Ditto.
7804 * i386-tdep.c (XMALLOC): Ditto.
7805 * gdb-events.c (XMALLOC): Ditto.
7806 * d10v-tdep.c (XMALLOC): Ditto.
7807 * cli-out.c (XMALLOC): Ditto.
7808
7809 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7810 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7811 * ui-file.c, ui-out.c: Ditto.
7812
7d0766f3
AC
78132002-03-18 Andrew Cagney <ac131313@redhat.com>
7814
7815 * command.h (struct cmd_list_element): Add field context.
7816 (set_cmd_context, get_cmd_context): Declare.
7817 * cli/cli-decode.h: Ditto.
7818 * cli/cli-decode.c (get_cmd_context): New function.
7819 (set_cmd_context): New function.
7820 (add_cmd): Initialize context.
7821 Part of fixing PR gdb/145 and PR gdb/146.
7822
5913bcb0
AC
78232002-03-17 Andrew Cagney <ac131313@redhat.com>
7824
1868c04e
AC
7825 * cli/cli-decode.c (cmd_type): New function.
7826 * command.h (cmd_type): Declare.
7827 * infrun.c (set_schedlock_func): Call function cmd_type.
7828 * kod.c (kod_set_os): Call cmd_type.
7829 * cris-tdep.c (cris_version_update): Use function cmd_type.
7830 (cris_mode_update, cris_abi_update): Ditto.
7831
5913bcb0
AC
7832 * command.h: (execute_cmd_post_hook): Declare.
7833 (execute_cmd_pre_hook): Declare.
7834 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7835 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7836 functions. Execute pre/post hook while ensuring that afterwords
7837 hook_in is cleared.
7838 * top.c (execute_command): Use execute_cmd_post_hook, and
7839 execute_cmd_pre_hook to execute pre/post commands.
7840 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7841 hook_stop_stub.
7842 (hook_stop_stub): Call execute_cmd_pre_hook.
7843
b51450c9
AC
78442002-03-17 Andrew Cagney <ac131313@redhat.com>
7845
7846 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7847 set'' and this leads to a core dump. Move xstrdup of
7848 operating_system to after check that it is not NULL.
7849
f66c9f11
AC
78502002-03-17 Andrew Cagney <ac131313@redhat.com>
7851
8e694ecf
AC
7852 * kod.c (kod_set_os): Remove unnecessary check that
7853 ``command->type'' is set_cmd.
7854
f66c9f11
AC
7855 * valprint.c (set_input_radix): Use input_radix.
7856 (set_output_radix): Use output_radix.
7857 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7858 isn't reverted.
7859
9d01611c
AC
78602002-03-16 Andrew Cagney <ac131313@redhat.com>
7861
7862 * value.h (struct value): Delete field ``substring_addr''. Change
7863 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7864 force_core_addr_align and force_pointer_aligh.
7865
7866 * value.h (struct value): Fix typo in above change.
9d01611c 7867
4156bb53
PS
78682002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7869
7870 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7871 to fix internal_error from ``maintenance print architecture''.
7872
0e5e3ea6
PS
78732002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7874
7875 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7876 for gcc versions after gcc-2.8.1.
7877
9b013045
PS
78782002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7879
7880 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7881 for method resolution. Restore adjustment of ``this'' pointer after
7882 calling value_struct_elt, which was accidentally removed during the
7883 HP merge.
7884
376c9600
AC
78852002-03-15 Andrew Cagney <ac131313@redhat.com>
7886
7887 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7888 value_of_register.
7889 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7890 get_saved_register.
7891 * value.h (value_of_register): Update.
7892
a4db0f07
RH
78932002-03-14 Richard Henderson <rth@redhat.com>
7894
7895 * configure.in: Detect declaration for canonicalize_file_name.
7896 * utils.c (canonicalize_file_name): Declare, if needed.
7897 (gdb_realpath): Prefer realpath if available and usable.
7898 * config.in, configure: Rebuild.
7899
96383835
RH
79002002-03-14 Richard Henderson <rth@redhat.com>
7901
7902 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7903 a constant array bound.
7904
7905 * MAINTAINERS: Add myself to write-after-approval.
7906
75245b24
MS
79072002-03-14 Michael Snyder <msnyder@redhat.com>
7908
7909 * symfile.c (syms_from_objfile): Return immediately if no syms.
7910 (symbol_file_add): Return immediately if no syms.
7911 (find_sym_fns): Return immediately if no syms.
7912
e641a1ca
ML
79132002-03-13 Michal Ludvig <mludvig@suse.cz>
7914
7915 * gdbserver/remote-util.c (remote_open): Print remote-side's
7916 IP address when remote debugging over the network.
7e336ba1 7917
df08bfec
DB
79182002-03-12 David O'Brien <obrien@FreeBSD.org>
7919
7920 * config/sparc/fbsd.mh: Fix copyright.
7921 * config/sparc/fbsd.mt: Likewise.
7922
9a57864f
RE
79232002-03-11 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * MAINTAINERS: Fix typo in name of gdb warnings option.
7926 (x86-64): Fix formating so that this can be parsed by awk.
7927
dd7bf85e
DJ
79282002-03-10 Daniel Jacobowitz <drow@mvista.com>
7929
7930 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7931 * defs.h: Include "gdb/signals.h".
7932 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7933
33a0a2ac
ML
79342002-03-10 Michal Ludvig <mludvig@suse.cz>
7935
7936 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7937 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7938 from x86-64-tdep.h
7939
dd824b04
DJ
79402002-03-10 Daniel Jacobowitz <drow@mvista.com>
7941 Don Howard <dhoward@redhat.com>
7942
7943 * mips-tdep.c (ST0_FR): Define.
7944 (mips2_fp_compat): New function, temporarily disabled.
7945 (mips_read_fp_register_single): New function.
7946 (mips_read_fp_register_double): New function.
7947 (mips_print_register): Use them.
7948 (do_fp_register_row): Likewise.
7949
6a41ff59
AC
79502002-03-09 Andrew Cagney <ac131313@redhat.com>
7951
7952 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7953 approval''.
7954
4ea09c10
PS
79552002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7956
7957 * stabsread.c (read_member_functions): Fix is_stub test for
7958 static member functions, improve comment.
7959
6ccc741d
RE
79602002-03-07 Richard Earnshaw <rearnsha@arm.com>
7961
7962 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7963 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7964 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7965 commands that set boolean values.
7966 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7967 (arm_rdi_resume): Always initialize PC.
7968 (arm_rdi_open): Don't use rslt as a boolean.
7969 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7970 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7971 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7972 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7973
438013df
AO
79742002-03-06 Alexandre Oliva <aoliva@redhat.com>
7975
7976 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7977 * configure: Rebuilt.
7978
70ed8774
SC
79792002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7980
7981 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7982 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7983
5ba2abeb
AC
79842002-03-06 Andrew Cagney <ac131313@redhat.com>
7985
7986 * cli/cli-decode.c (set_cmd_completer): New function.
7987 * command.h (set_cmd_completer): Declare.
7988 * cli/cli-decode.h (set_cmd_completer): Ditto.
7989
7990 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7991 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7992 * win32-nat.c (_initialize_inftarg): Ditto.
7993 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7994 * proc-api.c (_initialize_proc_api): Ditto.
7995 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7996 * source.c (_initialize_source): Ditto.
7997 * exec.c (_initialize_exec): Ditto.
7998 * solib.c (_initialize_solib): Ditto.
7999 * top.c (init_main): Ditto.
8000 * tracepoint.c (_initialize_tracepoint): Ditto.
8001 * symfile.c (_initialize_symfile): Ditto.
8002 * printcmd.c (_initialize_printcmd): Ditto.
8003 * infcmd.c (_initialize_infcmd): Ditto.
8004 * corefile.c (_initialize_core): Ditto.
8005
f779ca99
AC
80062002-03-05 Andrew Cagney <ac131313@redhat.com>
8007
8008 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8009
01a3934b
AC
80102002-03-05 Andrew Cagney <ac131313@redhat.com>
8011
8012 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8013
37057839
AC
80142002-03-05 Andrew Cagney <ac131313@redhat.com>
8015
8016 * NEWS: Update headings, 5.2 has branched.
8017
c6ecbae5
DJ
80182002-03-04 Daniel Jacobowitz <drow@mvista.com>
8019
8020 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8021 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8022 (register_addr, REGISTER_RAW_SIZE): Likewise.
8023 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8024 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8025
e9f30c21
ML
80262002-03-03 Michal Ludvig <mludvig@suse.cz>
8027
8028 * MAINTAINERS (x86-64): Add myself.
8029 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8030 changed value_ptr -> struct value *
8031
54394ac3
DB
80322002-03-01 David O'Brien <obrien@FreeBSD.org>
8033
8034 * configure.host (sparc64-*-freebsd): Add.
8035 * configure.tgt: Likewise.
8036 * config/sparc/fbsd.mh: New file.
8037 * config/sparc/fbsd.mt: Likewise.
8038 * config/sparc/nm-fbsd.h: Likewise.
8039 * config/sparc/tm-fbsd.h: Likewise.
8040
bfe95955
DJ
80412002-03-01 Daniel Jacobowitz <drow@mvista.com>
8042
8043 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8044 regformats/reg-s390x.dat.
8045
f33c6cbf
AC
80462002-03-01 Andrew Cagney <ac131313@redhat.com>
8047
8048 * utils.c: Add FIXME explaining true/false problem.
8049
5ecaa7dd
AC
80502002-02-28 Andrew Cagney <ac131313@redhat.com>
8051
8052 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8053
2a251cc2
MC
80542002-02-28 Michael Chastain <mec@shout.net>
8055
8056 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8057
6a8031a3 80582002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8059
8060 * gdbserver/linux-s390-low.c: New file.
8061 * regformats/reg-s390.dat: New file.
8062 * regformats/reg-s390x.dat: New file.
8063 * gdbserver/configure.srv: Add S/390.
8064 * gdbserver/Makefile.in: Add S/390.
8065 * configure.tgt: Enable gdbserver for S/390.
8066
ac469903
EZ
80672002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8068
8069 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8070 first line of the doc string for "info dos", except at the end of
8071 the sentence, since the short help stops at the first period.
8072
985cb1a3
JM
80732002-02-28 Jason Merrill <jason@redhat.com>
8074
8075 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8076
c570663e
FF
80772002-02-27 Fred Fish <fnf@redhat.com>
8078
8079 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8080 comment (dumy -> dummy).
8081
43630227
PS
80822002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8083
8084 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8085
b84911e8
RB
80862002-02-27 Rodney Brown <rbrown64@csc.com.au>
8087
8088 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8089
58caa3dc
DJ
80902002-02-27 Daniel Jacobowitz <drow@mvista.com>
8091
8092 * gdbserver/acconfig.h: New file.
8093 * gdbserver/i387-fp.c: New file.
8094 * gdbserver/i387-fp.h: New file.
8095 * gdbserver/linux-x86-64.c: New file.
8096 * regformats/reg-x86-64.dat: New file.
8097 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8098 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8099 * gdbserver/configure.in: Add support for regsets.
8100 * gdbserver/config.in: Regenerate.
8101 * gdbserver/configure: Regenerate.
8102 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8103 * gdbserver/linux-low.h: New file.
8104 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8105 for regsets.
8106 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8107 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8108 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8109 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8110 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8111 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8112 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8113 "i387-fp.h". Add PTRACE_GETREGS and friends.
8114 * gdbserver/regcache.c (supply_register): New function.
8115 (supply_register_by_name): New function.
8116 (collect_register): New function.
8117 (collect_register_by_name): New function.
8118
93652174
DJ
81192002-02-27 Daniel Jacobowitz <drow@mvista.com>
8120
8121 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8122 (config.status): Add configure.srv dependency.
8123 (server_h): Add config.h dependency.
8124
a02e4a61
DJ
81252002-02-27 Daniel Jacobowitz <drow@mvista.com>
8126
8127 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8128 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8129 * gdbserver/configure.srv: Change i386-*-linux* to use
8130 reg-i386-linux.o.
8131
ce0eebec
AC
81322002-02-26 Andrew Cagney <ac131313@redhat.com>
8133
8134 * x86-64-tdep.c: Re-indent. Update copyright date.
8135
82dbc5f7
AC
81362002-02-26 Andrew Cagney <ac131313@redhat.com>
8137
8138 From Michal Ludvig <mludvig@suse.cz>:
8139 * x86-64-tdep.c (value.h): Delete.
8140 (gdb_assert.h): Include.
8141 (x86_64_register_convert_to_virtual,
8142 x86_64_register_convert_to_raw ): Add check which lets only
8143 floating-point values to be converted.
8144 (value_push): Delete.
8145 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8146 (i386_gdbarch_init): Number of register_bytes fixed.
8147
e4621584
AC
81482002-02-26 Andrew Cagney <ac131313@redhat.com>
8149
8150 * MAINTAINERS: Add x86-64 target.
8151
81a9a963
AC
81522002-02-26 Andrew Cagney <ac131313@redhat.com>
8153
8154 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8155 * osfsolib.c (solib_map_sections): Ditto.
8156 * irix5-nat.c (solib_map_sections): Ditto.
8157 * corelow.c (gdb_check_format): Ditto.
8158 * symfile.c (symfile_bfd_open): Ditto.
8159 * solib.c (solib_map_sections): Ditto.
8160 Fix PR gdb/354.
7e336ba1 8161
0f017ab9
AC
81622002-02-26 Andrew Cagney <ac131313@redhat.com>
8163
8164 * remote.c (_initialize_remote): By default, disable ``e'' and
8165 ``E'' step out-of-range packets.
8166
75738c29
AS
81672002-02-26 Andreas Schwab <schwab@suse.de>
8168
8169 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8170 m68k_linux_frame_saved_pc.
8171 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8172 in_sigtramp.
8173 (SIGCONTEXT_PC_OFFSET): Remove.
8174 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8175 m68k_linux_sigtramp_saved_pc): New functions.
8176 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8177 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8178 (UCONTEXT_PC_OFFSET): Define.
8179 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8180 non-RT and RT signal trampolines.
8181
7e8ed687
RE
81822002-02-26 Richard Earnshaw <rearnsha@arm.com>
8183
8184 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8185 (TARGET_NBPG, STACK_END_ADDR): Delete
8186 (VARIABLES_INSIDE_BLOCK): Delete.
8187
6972bc8b
AC
81882002-02-25 Andrew Cagney <ac131313@redhat.com>
8189
8190 * utils.c (perror_with_name): Make string parameter constant.
8191 (print_sys_errmsg): Ditto.
8192 (query): Ditto.
8193 * defs.h (perror_with_name): Update.
8194 (print_sys_errmsg): Update.
8195 (query): Update.
8196
aa32f823
DJ
81972002-02-25 Daniel Jacobowitz <drow@mvista.com>
8198
8199 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8200 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8201
19caaa45
PS
82022002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8203
8204 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8205 if it already matches the current architecture from the exec file.
8206 Include arch-utils.h for gdbarch_info_init prototype.
8207 * Makefile.in (rs6000-nat.o): Update dependencies.
8208
d951901f
EZ
82092002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8210
8211 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8212 list of exported variables.
8213
7ea81414
DJ
82142002-02-24 Daniel Jacobowitz <drow@mvista.com>
8215
8216 * gdbserver/configure.srv: New file.
8217 * gdbserver/configure.in: Use configure.srv instead
8218 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8219 from it.
8220 * gdbserver/configure: Regenerated.
8221 * gdbserver/terminal.h: New file.
8222 * gdbserver/Makefile.in: Update for configure changes. Remove
8223 more unneeded include paths.
8224
080fe24b
AC
82252002-02-24 Andrew Cagney <ac131313@redhat.com>
8226
8227 From wiz at danbala:
8228 * config/sparc/tm-sp64.h: Fix grammar and typos.
8229 Fix PR gdb/287.
8230
8605d56e
AC
82312002-02-24 Andrew Cagney <ac131313@redhat.com>
8232
8233 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8234 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8235 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8236 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8237 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8238 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8239 * s390-tdep.c: Ditto.
92362027
AC
8240 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8241 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8242 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8243 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8244 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8245 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8246 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8247 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8248 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8249 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8250 Fix PR gdb/378.
7e336ba1 8251
8ed32cc0
AC
82522002-02-23 Andrew Cagney <ac131313@redhat.com>
8253
a3007b6f
AC
8254 * lin-thread.c: Delete file.
8255 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8256 to gdb_proc_service.h.
8257 * configure: Re-generate.
8258
50a9e2f1
AC
8259 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8260 * serial.c (serial_open): Delete check for "ocd".
8261 Fix PR gdb/349.
8262
8b6e7932
AC
8263 * Makefile.in (linux-thread.o): Delete target.
8264 * linux-thread.c: Delete file.
8265
d155c46b
AC
8266 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8267 renamed SH files to be consistent.
8268
8ed32cc0
AC
8269 * symtab.c (sort_search_symbols): Use xfree.
8270
0e18d038
RE
82712002-02-23 Richard Earnshaw <rearnsha@arm.com>
8272
8273 * arm-linux-tdep.c (arm_linux_init_abi): Register
8274 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8275 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8276 definition with undef, since we don't want the sysvr4 definition.
8277 (SKIP_TRAMPOLINE_CODE): Likewise.
8278
27aac7ff
AC
82792002-02-23 Andrew Cagney <ac131313@redhat.com>
8280
8281 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8282
8283 * configure.in: (AC_CHECK_FUNCS) Added test for
8284 canonicalize_file_name Regenerated.
8285 * config.in, configure: Regenerated.
8286 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8287 defined use canonicalize_file_name.
7e336ba1 8288
65a6e0ee
MC
82892002-02-23 Michael Chastain <mec@shout.net>
8290
8291 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8292
47b95330
AC
82932002-02-23 Andrew Cagney <ac131313@redhat.com>
8294
8295 * README: Remove references to cygnus.com.
8296 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8297 dot com'' form. Remove references to cygnus.com and sourceware.
8298
696f451b
AC
82992002-02-23 Andrew Cagney <ac131313@redhat.com>
8300
8301 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8302 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8303 1003.1-2001 no longer allows "head -1".
8304 * gdb/Makefile.in (version.c): Likewise.
8305 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8306 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8307 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8308
bbaca940
AC
83092002-02-23 Andrew Cagney <ac131313@redhat.com>
8310
8311 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8312 * command.h (cmd_cfunc_eq): Declare.
8313 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8314
8315 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8316 ``struct cmd_list_element *''.
8317 * cli/cli-cmds.c (is_complete_command): Update. Use
8318 cmd_cfunc_eq.
8319 * top.c (execute_command): Pass the command to
8320 is_complete_command.
8321 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8322
b8b8b047
AC
83232002-02-23 Andrew Cagney <ac131313@redhat.com>
8324
8325 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8326 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8327 architecture defines.
8328 * s390-tdep.c (s390_gdbarch_init): Likewise.
8329
19d3fc80
RE
83302002-02-23 Richard Earnshaw <rearnsha@arm.com>
8331
8332 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8333 (arm_linux_push_arguments): Likewise.
8334 (arm_linux_init_abi): Register them. Also register linux-specific
8335 call_dummy_words.
8336 (find_minsym_and_objfile): Use strcmp, not STREQ.
8337 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8338 (arm_linux_call_dummy_words): Delete declaration.
8339 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8340 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8341 declarations.
8342 (LOWEST_PC): Delete.
8343
3ab13650
PS
83442002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8345
8346 * maint.c (print_section_info): Do not prepend `0x' to filepos
8347 output, it will be handled by local_hex_string_custom.
8348
19d3fc80 83492002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8350
8351 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8352 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8353 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8354
d85a5daf
JB
83552002-02-22 Jim Blandy <jimb@redhat.com>
8356
8357 Indicate that the bcache functions don't change the strings
8358 they're passed.
8359 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8360 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8361
eeb25b8a
PM
83622002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8363
8364 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8365
6badb179
CF
83662002-02-21 Christopher Faylor <cgf@redhat.com>
8367
8368 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8369 find the complete path to a loaded DLL.
8370
e8717518
FF
83712002-02-21 Fred Fish <fnf@redhat.com>
8372
8373 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8374 that marks the end of the range of a function, enter a line number
8375 entry that has a line number of zero and a PC offset that matches
8376 the end of the function. This starts a range of PC's for which no
8377 line number information is known.
8378 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8379 PC's for which no line number info is found (line number is zero)
8380 then we didn't find any valid line information.
8381 * symtab.h: Document use of zero line number entry.
8382
9abe5450
EZ
83832002-02-21 Elena Zannoni <ezannoni@redhat.com>
8384
8385 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8386 (have_ptrace_getvrregs): Define for run time checks.
8387 (gdb_vrregset_t): New type for Altivec register handling.
8388 (fetch_register, store_register): Fetch/store altivec register
8389 when needed.
8390 (fetch_altivec_register, store_altivec_register): New functions.
8391 (supply_vrregset, fill_vrregset): New functions.
8392 (fetch_altivec_registers, store_altivec_registers): New functions.
8393 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8394 registers as well.
8395
aaa38bb5
AJ
83962002-02-21 Jiri Smid <smid@suse.cz>
8397
8398 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8399
b34db576
RE
84002002-02-21 Richard Earnshaw <rearnsha@arm.com>
8401
8402 * Makefile.in (armnbsd-nat.o): Update dependencies.
8403 * armnbsd-nat.c (supply_gregset): New function. Common code to
8404 supply the integer register set.
8405 (supply_fparegset): New function. Similar for FPA registers.
8406 (fetch_regs, fetch_fp_regs): Use them.
8407 (fetch_core_registers): Likewise.
8408 (fetch_elfcore_registers): New function.
8409 (arm_netbsd_elfcore_fns): New core-file type specification.
8410 (_initialize_arm_netbsd_nat): Register it.
8411
3e56fc4b
RE
84122002-02-21 Richard Earnshaw <rearnsha@arm.com>
8413
8414 * armnbsd-nat.c: Include gdbcore.h.
8415 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8416 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8417 'void' to declaration, to shut up ARI.
8418 (fetch_core_registers): Make static. Rewrite using supply_register.
8419 (arm_netbsd_core_fns): New core-file type specification.
8420 (_initialize_arm_netbsd_nat): New function.
8421
097f6b0b
CF
84222002-02-21 Christopher Faylor <cgf@redhat.com>
8423
8424 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8425 value.
8426
c914e0cc
CF
84272002-02-20 Christopher Faylor <cgf@redhat.com>
8428
8429 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8430 fails.
8431
385fa495
DJ
84322002-02-20 Daniel Jacobowitz <drow@mvista.com>
8433
8434 * jv-exp.y (parse_number): Change type of implicit longs
8435 to builtin_type_uint64.
8436
e5f1222d
DJ
84372002-02-20 Daniel Jacobowitz <drow@mvista.com>
8438
8439 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8440 to be an integer instead of a `union wait'.
8441
75c9abc6
DJ
84422002-02-20 Daniel Jacobowitz <drow@mvista.com>
8443
8444 * mips-linux-nat.c: Call the operating system GNU/Linux.
8445 * mips-linux-tdep.c: Likewise.
8446 * mips-tdep.c: Likewise.
8447
551792a5
DJ
84482002-02-20 Daniel Jacobowitz <drow@mvista.com>
8449
8450 Fix PR gdb/265.
8451 * jv-exp.y (parse_number): Handle 64-bit integers.
8452
ee6e2b82
DJ
84532002-02-20 Daniel Jacobowitz <drow@mvista.com>
8454
8455 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8456 AC_STDC_HEADERS to AC_HEADER_STDC.
8457 * gdbserver/configure: Regenerated.
8458
a48442a0
RE
84592002-02-20 Richard Earnshaw <rearnsha@arm.com>
8460
8461 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8462 is defined.
8463 * sparc-tdep.c (get_longjmp_target): Likewise.
8464
fe419ffc
RE
84652002-02-20 Richard Earnshaw <rearnsha@arm.com>
8466
8467 * News: Add news about ARM and Multi-arch. Mention the new target
8468 arm*-*-netbsd*.
8469
5832ed7e
JB
84702002-02-19 Jim Blandy <jimb@redhat.com>
8471
8472 * stabsread.c (error_type_complaint): Improve error message.
8473
84563040
DJ
84742002-02-19 Daniel Jacobowitz <drow@mvista.com>
8475
8476 * gdbserver/README: Update documentation.
8477 * gdbserver/configure.in: Update configury to match documentation.
8478 * gdbserver/Makefile.in: Likewise.
8479 * gdbserver/configure: Regenerated.
8480 * gdbserver/aclocal.m4: New file, generated by aclocal.
8481 * gdbserver/config.in: New file, generated by autoheader.
8482
375fd65b
RE
84832002-02-19 Richard Earnshaw <rearnsha@arm.com>
8484
8485 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8486 armnbsd-nat.c.
8487
08216dd7
RE
84882002-02-19 Richard Earnshaw <rearnsha@arm.com>
8489
8490 * arm-tdep.h (enum arm_float_model): New enum.
8491 (struct gdbarch_tdep): Add fp_model.
8492 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8493 up floating-point conversions until we know the floating-point model
8494 in use by the inferior. Don't complain about being unable to
8495 determine the ABI of the inferior when we don't have one.
8496 (arm_extract_return_value): Support different floating-point models.
8497 (arm_store_return_value): Likewise.
aaa38bb5 8498 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8499 ARM_FLOAT_SOFT.
8500 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8501
65d6d66a
PS
85022002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8503
8504 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8505 of ``current_gdbarch''.
8506
47221191
RE
85072002-02-19 Richard Earnshaw <rearnsha@arm.com>
8508
8509 * armnbsd-nat.c : ANSIfy all function declarations.
8510 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8511 (fetch_inferior_registers): Re-implement in terms of above.
8512 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8513 (store_inferior_registers): Re-implement in terms of above.
8514
fdf39c9a
RE
85152002-02-19 Richard Earnshaw <rearnsha@arm.com>
8516
aaa38bb5 8517 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8518 kernel.
8519 * arm-linux-tdep.c: Likewise.
8520 * config/arm/tm-linux.h: Likewise.
8521
93247f88
RE
85222002-02-19 Richard Earnshaw <rearnsha@arm.com>
8523
8524 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8525 * config/arm/nbsd.mt (TM_FILE): Delete.
8526 * config/arm/tm-nbsd.h: Delete.
8527
d7b486e7
RE
85282002-02-19 Richard Earnshaw <rearnsha@arm.com>
8529
8530 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8531 Initialize CALL_DUMMY_LENGTH.
8532
41d39a95
RE
85332002-02-19 Richard Earnshaw <rearnsha@arm.com>
8534
8535 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8536 function.
8537 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8538 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8539 defines one thing and that is incorrect for this port.
8540 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8541
e1195560
PM
85422002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8543
8544 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8545
c1748f97
PM
85462002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8547
8548 * win32-nat.c (display_selector): New function. Displays information
8549 about the information returned by GetThreadSelectorEntry API function.
8550 (display_selectors): New function. Displays the infomation of
8551 the selector given as argument, or of CS, DS ans FS selectors
8552 if no argument is given.
8553 ( _initialize_inftarg): Add "w32" as info prefix command.
8554 Add "info w32 selector" as command calling display_selectors.
8555
e41e6bbf
PM
85562002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8557
8558 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8559 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8560 if not defined.
8561
0d3a9f48
RE
85622002-02-18 Richard Earnshaw <rearnsha@arm.com>
8563
8564 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8565
3fb4b924
RE
85662002-02-18 Richard Earnshaw <rearnsha@arm.com>
8567
8568 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8569 (arm_fix_call_dummy): Call it.
8570 (arm_call_dummy_breakpoint_offset): Delete.
8571 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8572 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8573
7f55af32
AC
85742002-02-18 Andrew Cagney <ac131313@redhat.com>
8575
8576 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8577 Default to func_frame_chain_valid.
8578 * gdbarch.h, gdbarch.c: Re-generate.
8579 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8580
05f13b9c
EZ
85812002-02-18 Elena Zannoni <ezannoni@redhat.com>
8582
8583 * ppc-linux-nat.c: Update copyright.
8584 (fetch_register, store_register): Add tid parameter, don't compute
8585 tid here.
8586 (fetch_ppc_registers, store_ppc_registers): Add tid
8587 parameter. Pass it along to callees.
8588 (fetch_inferior_registers, store_inferior_registers): Compute tid
8589 here, and pass it to calleed functions.
8590 (fill_gregset, supply_fpregset): Clean up formatting.
8591
d7afb4c9
RE
85922002-02-18 Richard Earnshaw <rearnsha@arm.com>
8593
8594 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8595 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8596
9df628e0
RE
85972002-02-18 Richard Earnshaw <rearnsha@arm.com>
8598
8599 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8600 * gdbarch.c gdbarch.h: Regenerate.
8601 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8602 function.
8603 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8604 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8605 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8606
8607 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8608 * arm-tdep.c (arm_get_longjmp_target): New function.
8609 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8610 this to a positive value register arm_get_longjmp_target as the
8611 longjmp handler.
8612 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8613 (arm_linux_init_abi): Set up longjmp description in tdep.
8614 * armnbsd-nat.c (get_longjmp_target): Delete.
8615 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8616 description in tdep.
8617 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8618 (get_longjmp_target): Delete declaration.
8619 (GET_LONGJMP_TARGET): Delete.
8620 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8621 (GET_LONGJMP_TARGET): Delete.
8622
57bc8964
KB
86232002-02-17 Kevin Buettner <kevinb@redhat.com>
8624
8625 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8626 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8627 of ``current_gdbarch''.
8628
83d31a92
TT
86292002-02-17 Tom Tromey <tromey@redhat.com>
8630
8631 * cli/cli-cmds.c (compare_strings): New function.
8632 (complete_command): Only print each unique item once.
8633 * completer.h (complete_line): Declare.
8634 * completer.c (complete_line): New function.
8635 (line_completion_function): Use it.
8636
17ef5d92
AC
86372002-02-16 Andrew Cagney <ac131313@redhat.com>
8638
8639 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8640 * gdbarch.h, gdbarch.c: Re-generate.
8641
491b8946
DJ
86422002-02-16 Daniel Jacobowitz <drow@mvista.com>
8643
8644 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8645
86462002-02-16 Daniel Jacobowitz <drow@mvista.com>
8647
8648 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8649 * valops.c (value_arg_coerce): Don't take the address of a reference
8650 to convert an argument to a reference.
8651
dfe7f3ac
CF
86522002-02-15 Christopher Faylor <cgf@redhat.com>
8653
8654 * win32-nat.c (get_image_name): New function.
8655 (handle_load_dll): Use get_image_name function.
8656 (get_child_debug_event): Avoid registering debug events until possibly
8657 execed process is started.
8658 (child_create_inferior): Allow invocation via shell so that command
8659 line redirection, etc. works ok.
8660 (_initialize_inftarg): Add new command: "set shell" to control whether
8661 a shell is used to start a process.
8662
1d33e73a
DJ
86632002-02-15 Daniel Jacobowitz <drow@mvista.com>
8664
8665 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8666 instead of find_register_by_number.
8667 (cannot_store_register): Likewise.
8668
48cd0caa
PM
86692002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8670
aaa38bb5 8671 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8672 fprintf_unfiltered (gdb_stderr, ...).
8673
8656e7d8
DJ
86742002-02-15 Daniel Jacobowitz <drow@mvista.com>
8675
8676 * gdbserver/gdbserver.1: Document --attach.
8677
66e810cd
RE
86782002-02-15 Richard Earnshaw <rearnsha@arm.com>
8679
8680 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8681 descriptions.
8682 * arm-tdep.c (arm_default_arm_le_breakpoint)
8683 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8684 (arm_default_thumb_be_breakpoint): New. Initialize them from
8685 traditional breakpoint defines.
8686 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8687 (arm_gdbarch_init): Initialize new breakpoint variables.
8688 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8689 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8690 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8691 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8692 code out to ...
8693 (arm_netbsd_init_abi_common): ... here; new function.
8694 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8695 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8696 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8697 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8698
97e03143
RE
86992002-02-15 Richard Earnshaw <rearnsha@arm.com>
8700
8701 * arm-tdep.h (enum arm_abi): New enum.
8702 (struct gdbarch_tdep): New structure.
8703 (LOWEST_PC): Provide a default.
8704 (arm_gdbarch_register_os_abi): Declare new function.
8705 * arm-tdep.c (arm_abi_names): New array.
8706 (process_note_abi_tag_sections): New function.
8707 (get_elfosabi): New function.
8708 (arm_gdbarch_register_os_abi): New function.
8709 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8710 support for that ABI has been built in, then call the appropriate
8711 configuration routine. Use gdbarch_num_regs() to get the number
8712 of registers.
8713 (arm_dump_tdep): New function.
8714 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8715 place-holder functions.
8716 (_initialize_arm_tdep): Register them.
8717 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8718
8719 * armnbsd-tdep.c: New file.
8720 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8721 * config/arm/nbsd.mt (TDEPFILES): Add it.
8722 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8723
8724 * armnbsd-nat.c: Include regcache.h.
8725 * Makefile.in (armnbsd-nat.o): Update dependency list.
8726
8727 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8728
ad68be46
DJ
87292002-02-14 Daniel Jacobowitz <drow@mvista.com>
8730
8731 * gdbserver/Makefile.in: Fix typos in target rules.
8732
003d6d1d
DJ
87332002-02-14 Daniel Jacobowitz <drow@mvista.com>
8734
aaa38bb5 8735 Fix part of PR gdb/267.
003d6d1d
DJ
8736 * linespec.c (find_methods): Handle constructors specially for now.
8737
6b230f1b
CV
87382002-02-14 Corinna Vinschen <vinschen@redhat.com>
8739
8740 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8741 handling.
8742 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8743 standard_coerce_float_to_double().
8744
1ea98d12
CF
87452002-02-14 Christopher Faylor <cgf@redhat.com>
8746
8747 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8748 GDBINIT_FILENAME.
8749
dd47e6fd
EZ
87502002-02-14 Elena Zannoni <ezannoni@redhat.com>
8751
8752 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8753 find_variant_by_name, because it confuses the multiarch
8754 framework. Return NULL if there isn't an architecture with the
8755 user supplied name, instead of forcing a different one without
8756 recording the change with the multiarch machinery.
8757 (find_variant_by_name): Delete.
8758
d7e39b9e
PS
87592002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8760
8761 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8762 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8763
76e42a4f
MH
87642002-02-13 Martin M. Hunt <hunt@redhat.com>
8765
aaa38bb5 8766 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8767 print_frame_info_listing_hook, set current_source_symtab.
8768
0a30fbc4
DJ
87692002-02-14 Daniel Jacobowitz <drow@mvista.com>
8770
8771 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8772 and remove unused $(INCLUDE_DIR).
8773 Add regcache.c to OBS.
8774 Add generated register protocol files to clean target.
8775 Update dependencies for new objects, obsolete old target code.
8776
8777 * gdbserver/linux-low.c: Remove all platform-specific code to
8778 new files. Remove various dead code. Update to use regcache
8779 functionality.
8780 * gdbserver/remote-utils.c (fromhex): Add return statement
8781 to quiet warning.
8782 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8783 constant.
8784 (input_interrupt): Add integer parameter to match prototype
8785 of a signal handler.
8786 (outreg): Use register_data ().
8787 (prepare_resume_reply): Use gdbserver_expedite_regs.
8788 * gdbserver/server.c (main): Dynamically allocate own_buf because
8789 PBUFSIZ is no longer constant. Use registers_to_string () and
8790 registers_from_string ().
8791 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8792 for error (), fatal (), and warning (). Update definition of
8793 PBUFSIZ to use regcache functionality. Add include guard.
8794 * gdbserver/utils.c (fatal): Add missing ``const''.
8795 (warning): New function.
8796
8797 * regformats/regdat.sh: Include "regcache.h" in generated files.
8798 Provide init_registers () function.
8799 * regformats/regdef.h: Add prototype for set_register_cache ().
8800 Add include guard.
8801
8802 * gdbserver/linux-arm-low.c: New file.
8803 * gdbserver/linux-i386-low.c: New file.
8804 * gdbserver/linux-ia64-low.c: New file.
8805 * gdbserver/linux-m68k-low.c: New file.
8806 * gdbserver/linux-mips-low.c: New file.
8807 * gdbserver/linux-ppc-low.c: New file.
8808 * gdbserver/linux-sh-low.c: New file.
8809
8810 * gdbserver/regcache.c: New file.
8811 * gdbserver/regcache.h: New file.
8812
8813 * gdbserver/low-linux.c: Removed obsolete file.
8814
4cc841d0
DJ
88152002-02-14 Daniel Jacobowitz <drow@mvista.com>
8816
8817 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8818 * config/i386/linux.mt: Likewise.
8819 * config/ia64/linux.mt: Likewise.
8820 * config/m68k/linux.mh: Likewise.
8821 * config/powerpc/linux.mh: Likewise.
8822 * config/mips/linux.mt: Likewise.
8823
8824 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8825
8826 * config/i386/i386lynx.mh: Mark gdbserver variables
8827 as (currently) obsolete for this target.
8828 * config/i386/nbsd.mt: Likewise.
8829 * config/i386/nbsdelf.mt: Likewise.
8830 * config/m32r/m32r.mt: Likewise.
8831 * config/m68k/m68klynx.mh: Likewise.
8832 * config/m68k/nbsd.mt: Likewise.
8833 * config/m68k/sun3os4.mh: Likewise.
8834 * config/mips/vr5000.mt: Likewise.
8835 * config/ns32k/nbsd.mt: Likewise.
8836 * config/pa/hppabsd.mh: Likewise.
8837 * config/pa/hppaosf.mh: Likewise.
8838 * config/powerpc/nbsd.mt: Likewise.
8839 * config/rs6000/rs6000lynx.mh: Likewise.
8840 * config/s390/s390.mt: Likewise.
8841 * config/s390/s390x.mt: Likewise.
8842 * config/sparc/sparclynx.mh: Likewise.
8843 * config/sparc/sun4os4.mh: Likewise.
8844 * config/i386/x86-64linux.mt: Likewise.
8845 * config/sparc/linux.mh: Likewise.
8846
a85f51e7
DJ
88472002-02-14 Daniel Jacobowitz <drow@mvista.com>
8848
8849 * configure.tgt: Configure gdbserver only for known working
8850 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8851 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8852 SUBDIRS if it is configured. Update comment for ${nativefile}.
8853 * configure: Regenerated.
8854
65554fef
MS
88552002-02-13 Michael Snyder <msnyder@redhat.com>
8856
670a52db
MS
8857 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8858
6dbdc4a3
MS
8859 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8860 (default_gcore_mach): Just return 0, work around a problem in bfd.
8861 (default_gcore_target): OK to return NULL if exec_bfd is null.
8862 (make_mem_sec): Use a cast, avoid a warning.
8863
8864 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8865 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8866 sizeof (host pointer) != sizeof (target pointer)).
8867 (procfs_make_note_section): Avoid overflow in psargs string.
8868
aaa38bb5 8869 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8870 implementation return an error.
8871
88722002-02-13 Rodney Brown <rbrown64@csc.com.au>
8873
8874 * procfs.c (procfs_make_note_section): Provide a default definition
8875 (for alpha-dec-osf4.0f). Fix typos.
8876
1e4d76e7
EZ
88772002-02-13 Elena Zannoni <ezannoni@redhat.com>
8878
8879 * linux-proc.c: Add include of regcache.h.
8880 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8881
b6d1a1d5
AC
88822002-02-13 Andrew Cagney <ac131313@redhat.com>
8883
8884 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8885 * memattr.c (create_mem_region): Disallow useless empty region.
8886 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8887 non-overlapping.
b6d1a1d5 8888
6c6ea35e
MC
88892002-02-13 Michael Chastain <mec@shout.net>
8890
8891 * defs.h: Kill CONST_PTR.
8892 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8893 * c-lang.c (c_builtin_types): Likewise.
8894 * ch-lang.c (ch_builtin_types): Likewise.
8895 * f-lang.c (f_builtin_types): Likewise.
8896 * language.c (unknown_builtin_types): Likewise.
8897 * m2-lang.c (m2_builtin_types): Likewise.
8898 * p-lang.c (pascal_builtin_types): Likewise.
8899 * scm-lang.c (c_builtin_types): Likewise.
8900
3e0b0f48
KS
89012002-02-13 Keith Seitz <keiths@redhat.com>
8902
8903 * arm-tdep.h (arm_get_next_pc): Add declaration.
8904
67255d04
RE
89052002-02-13 Richard Earnshaw <rearnsha@arm.com>
8906
8907 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8908 with other related struct-returning functions.
8909 (arm_extract_struct_value_address): New function.
8910 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8911 initialize float_format, double_format and long_double_format as
8912 appropriate to the endianness of the target.
8913 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8914 (arm_use_struct_convention): Delete declaration.
8915 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8916
079777f6
KS
89172002-02-13 Keith Seitz <keiths@redhat.com>
8918
8919 * defs.h (core_addr_to_string_nz): New function.
8920
34588f23
MK
89212002-02-13 Mark Kettenis <kettenis@gnu.org>
8922
8923 Apply missing bits of 2002-01-15 patch.
8924 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8925 (fill_fpregset): Use i387_fill_fsave.
8926
49b563f9
KS
89272002-02-12 Keith Seitz <keiths@redhat.com>
8928
49b563f9
KS
8929 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8930 (core_addr_to_string_nz): New function.
8931
aeb98c60
RE
89322002-02-11 Richard Earnshaw <rearnsha@arm.com>
8933
8934 * arm-linux-nat.c: Really include arm-tdep.h.
8935 * config/arm/tm-linux.h (struct type, struct value): Declare.
8936
65554fef
MS
89372002-02-11 Michael Snyder <msnyder@redhat.com>
8938
8939 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8940 (gcore section): Ifdef for Solaris and Unixware only.
8941 (procfs_do_thread_registers): Unixware needs one lwpstatus
8942 per thread (not one prstatus or pstatus).
8943 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8944 not over all gdb threads. For unixware, call elfcore_write_pstatus
8945 once before iterating over threads.
8946
34e8f22d
RE
89472002-02-11 Richard Earnshaw <rearnsha@arm.com>
8948
8949 * arm-tdep.h: New file.
8950 * arm-tdep.c: Include arm-tdep.h.
8951 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8952 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8953 (arm_print_float_info, arm_register_type, convert_to_extended)
8954 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8955 (arm_extract_return_value, arm_register_name): Make static.
8956 (arm_software_single_step): Similarly. Fix types in declaration.
8957 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8958 (arm_store_return_value, arm_store_struct_return): New functions.
8959 (arm_gdbarch_init): Register the above functions. Also register
8960 call_dummy_start_offset, sizeof_call_dummy_words,
8961 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8962 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8963 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8964 prologue_cache.saved_regs here, rather than ...
8965 (_initialize_arm_tdep): ... here.
8966 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8967 declarations.
8968 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8969 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8970 (arm_print_float_info, arm_register_type, convert_to_extended)
8971 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8972 (arm_extract_return_value, arm_register_name): Delete declarations.
8973 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8974 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8975 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8976 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8977 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8978 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8979 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8980 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8981 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8982 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8983 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8984 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8985 interface.
8986 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8987 * remote-rdi.c remote-rdp.c: Likewise.
8988 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8989 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8990 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8991 definition.
8992
8993 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8994 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8995 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8996 from non-ARM_ prefixed definitions.
8997 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8998 all uses of above.
8999 * remote-rdi.c remote-rdp.c: Likewise.
9000 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9001
148754e5
RE
90022002-02-11 Richard Earnshaw <rearnsha@arm.com>
9003
9004 * arm-tdep.c (arm_frameless_function_invocation)
9005 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9006 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9007 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9008 (arm_pop_frame, arm_get_next_pc): Make static.
9009 (arm_gdbarch_init): Register above in gdbarch structure.
9010 (arm_read_fp): Renamed from arm_target_read_fp.
9011 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9012 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9013 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9014 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9015 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9016 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9017 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9018 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9019 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9020 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9021 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9022
434d2d4f
DJ
90232002-02-10 Daniel Jacobowitz <drow@mvista.com>
9024
9025 * symtab.c (compare_search_syms): New function.
9026 (sort_search_symbols): New function.
9027 (search_symbols): Sort symbols after searching rather than
9028 before.
9029
55241689
AC
90302002-02-10 Andrew Cagney <ac131313@redhat.com>
9031
9032 * NEWS: Linux -> GNU/Linux.
9033
028c194b
AC
90342002-02-10 Andrew Cagney <ac131313@redhat.com>
9035
9036 * gdbarch.sh: For for level one methods, disallow a definition
9037 when partially multi-arched. Add comments explaining rationale.
9038 * gdbarch.h: Re-generate.
9039
6acf50cd
AC
90402002-02-10 Andrew Cagney <ac131313@redhat.com>
9041
9042 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9043 multi-arch partial.
aaa38bb5 9044
50248794
AC
90452002-02-10 Andrew Cagney <ac131313@redhat.com>
9046
9047 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9048 field. Use diff -u.
9049 * gdbarch.c: Re-generate.
9050
c30e0066
AC
90512002-02-10 Andrew Cagney <ac131313@redhat.com>
9052
9b56c5f3 9053 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9054 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9055 partial.
9056
6e6d6484
AC
90572002-02-10 Andrew Cagney <ac131313@redhat.com>
9058
9059 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9060 multi-arch partial.
9061 (PUSH_ARGUMENTS): Switch to using predefault.
9062 * gdbarch.c: Regenerate.
9063
c203844d
AC
90642002-02-10 Andrew Cagney <ac131313@redhat.com>
9065
9066 * valops.c (PUSH_ARGUMENTS): Delete definition.
9067 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9068 partial. Default to default_push_arguments.
9069 * gdbarch.h, gdbarch.c: Regenerate.
9070
b5a2688f
AC
90712002-02-09 Andrew Cagney <ac131313@redhat.com>
9072
9073 * defs.h (throw_exception): Rename return_to_top_level. Update
9074 comments.
9075 * utils.c (error_stream, internal_verror, quit): Ditto.
9076 * top.c (throw_exception, catcher): Ditto.
9077 * sparclet-rom.c (sparclet_load): Ditto.
9078 * remote.c (interrupt_query, minitelnet): Ditto.
9079 * remote-sds.c (interrupt_query): Ditto.
9080 * remote-mips.c (mips_error, mips_kill): Ditto.
9081 * ocd.c (interrupt_query): Ditto.
9082 * monitor.c (monitor_interrupt_query): Ditto.
9083 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9084 * target.h: Update comment.
aaa38bb5 9085
b5a2688f 9086 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9087
2fa5c1e0
AC
90882002-02-09 Andrew Cagney <ac131313@redhat.com>
9089
9090 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9091 default_double_format.
9092 * gdbarch.h, gdbarch.c: Re-generate.
9093 * findvar.c (floatformat_unknown): Delete variable definition.
9094 * doublest.h (floatformat_unknown): Delete variable declaration.
9095
da966255
JB
90962002-02-09 Jim Blandy <jimb@redhat.com>
9097
9098 * stabsread.c (read_type): Add code to parse Sun's syntax for
9099 prototyped function types.
9100
123a4891
AC
91012002-02-09 Andrew Cagney <ac131313@redhat.com>
9102
9103 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9104 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9105
fb39c8f3
PS
91062002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9107
9108 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9109 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9110 now _initialize_xcoffsolib gets called again and overrides the
9111 commands from solib.c in a native configuration.
9112
0b87a11d
MK
91132002-02-09 Mark Kettenis <kettenis@gnu.org>
9114
9115 * doublest.c (store_typed_floating): Don't try to return a value.
9116 Fixes PR gdb/290.
9117
bdc2fc72
JB
91182002-02-08 Jim Blandy <jimb@redhat.com>
9119
9120 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9121 is prototyped and has no arguments, print its argument list as
9122 `(void)'.
9123
da69bbcf
CD
91242002-02-08 Chris Demetriou <cgd@broadcom.com>
9125
9126 * MAINTAINERS (write-after-approval): Add myself.
9127 (paper-trail): I've escaped!
aaa38bb5 9128
b69571f5
CF
91292002-02-08 Christopher Faylor <cgf@redhat.com>
9130
9131 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9132 changes.
9133 (_initialize_check_for_gdb_ini): Ditto.
9134
f6871398
MH
91352002-02-08 Martin M. Hunt <hunt@redhat.com>
9136
9137 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9138 xaprintf -> xasprintf.
9139
4e52d31c
PM
91402002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9141
9142 * win32-nat.c: Remove use of printf and sprintf functions.
9143
39bbf761
RE
91442002-02-08 Richard Earnshaw <rearnsha@arm.com>
9145
9146 * arm-tdep.c (arm_frame_chain_valid): Make static.
9147 (arm_push_arguments): Likewise.
9148 (arm_gdbarch_init): New function.
9149 (_initialize_arm_tdep): Call it.
9150 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9151 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9152 (FRAME_CHAIN_VALID): Delete.
9153 (arm_frame_chain_valid): Delete declaration.
9154 (PUSH_ARGUMENTS): Delete.
9155 (arm_push_arguments): Delete declaration.
9156 (CALL_DUMMY_P): Delete.
9157
9c9532c9
CV
91582002-02-08 Andrew Cagney <ac131313@redhat.com>
9159 Corinna Vinschen <vinschen@redhat.com>
9160
9161 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9162 on builtin float types.
9163
4e8f7a8b
DJ
91642002-02-08 Daniel Jacobowitz <drow@mvista.com>
9165
9166 * utils.c: Include <curses.h> before "bfd.h".
9167 * tui/tui-hooks.c: Likewise.
9168 * tui/tui.c: Likewise.
9169 * tui/tuiCommand.c: Likewise.
9170 * tui/tuiData.c: Likewise.
9171 * tui/tuiDataWin.c: Likewise.
9172 * tui/tuiDisassem.c: Likewise.
9173 * tui/tuiGeneralWin.c: Likewise.
9174 * tui/tuiIO.c: Likewise.
9175 * tui/tuiLayout.c: Likewise.
9176 * tui/tuiRegs.c: Likewise.
9177 * tui/tuiSource.c: Likewise.
9178 * tui/tuiSourceWin.c: Likewise.
9179 * tui/tuiStack.c: Likewise.
9180 * tui/tuiWin.c: Likewise.
9181
cd4bffcf
EZ
91822002-02-07 Elena Zannoni <ezannoni@redhat.com>
9183
9184 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9185 to include space for pseudoregs as well. Update loops accordingly.
9186 (sh_fp_frame_init_saved_regs): Ditto.
9187 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9188
26806ce2
AC
91892002-02-07 Andrew Cagney <ac131313@redhat.com>
9190
9191 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9192 Add Richard Earnshaw to Arm maintainers.
9193
97fdab62
AC
91942002-02-07 Andrew Cagney <ac131313@redhat.com>
9195
a6b98203
AC
9196 * defs.h (warning_begin): Delete declaration.
9197
97fdab62
AC
9198 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9199 Delete macro.
9200
78b29b40
MS
92012002-02-07 Michael Snyder <msnyder@redhat.com>
9202
aaa38bb5 9203 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9204 Logic bug, remove misplaced else.
9205
d8849953
KD
92062002-02-07 Klee Dienes <klee@apple.com>
9207
9208 * fork-inferior.c (fork_inferior): Add '!' to the list of
9209 characters that need to be quoted when building a string for the
9210 shell. Quote '!' specifically with a backslash, since CSH chokes
9211 when trying to evaluate "str!str".
aaa38bb5 9212
095778a0
NC
92132002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9214
9215 * rdi-share/host.h: Only provide a typedef for bool if it is not
9216 defined.
9217
1900040c
MS
92182002-02-04 Michael Snyder <msnyder@redhat.com>
9219
9220 * breakpoint.h (enum bptype): Add new overlay event bp type.
9221 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9222
1900040c
MS
9223 * breakpoint.c (create_internal_breakpoint): New function.
9224 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9225 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9226 (create_thread_event_breakpoint): Ditto.
9227 (create_solib_event_breakpoint): Ditto.
9228 (create_overlay_event_breakpoint): New function.
9229 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9230 (update_breakpoints_after_exec): Delete and re-initialize
9231 overlay event breakpoints after an exec. Add FIXME comment
9232 about longjmp breakpoint.
9233 (print_it_typical): Ignore overlay event breakpoints.
9234 (print_one_breakpoint): Ditto.
9235 (mention): Ditto.
9236 (bpstat_what): Do not stop for overlay event breakpoints.
9237 (delete_breakpoint): Don't delete overlay event breakpoints.
9238 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9239 (breakpoint_re_set): Re-create overlay event breakpoint.
9240
9241 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9242 (overlay_manual_command): Disable overlay breakpoints.
9243 (overlay_off_command): Disable overlay breakpoints.
9244
082fc60d
RE
92452002-02-06 Richard Earnshaw <rearnsha@arm.com>
9246
9247 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9248 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9249 to here from config/tm-arm.h.
9250 (coff_sym_is_thumb): Make static.
9251 (arm_elf_make_msymbol_special): New function.
9252 (arm_coff_make_msymbol_special): New function.
9253 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9254 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9255 (coff_sym_is_thumb): Delete declaration.
9256 (arm_elf_make_msymbol_special): Declare.
9257 (arm_coff_make_msymbol_special): Declare.
9258 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9259 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9260
039c5766
RE
92612002-02-06 Richard Earnshaw <rearnsha@arm.com>
9262
9263 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9264
92652002-02-06 Richard Earnshaw <rearnsha@arm.com>
9266
9267 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9268 * gdbarch.c gdbarch.h: Regenerate.
9269 * arch-utils.c (default_print_float_info): New function.
9270 * arch-utils.h (default_print_float_info): Prototype it.
9271 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9272 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9273 (PRINT_FLOAT_INFO): Document it.
9274
9275 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9276 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9277 (PRINT_FLOAT_INFO): Define.
9278
58fa08f0
PM
92792002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9280
aaa38bb5 9281 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9282 Add typecast to sprintf argument to suppress a warning.
9283
7393af7c
PM
92842002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9285
58fa08f0 9286 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9287 to allow easier handling of pass state.
9288 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9289 that gives exception name and address.
9290 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9291 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9292 exceptions added.
aaa38bb5
AJ
9293 (child_continue): Correctly report continue_status.
9294 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9295 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9296 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9297 the exception should be passed to debuggee or not.
9298
6af4589c
MS
92992002-02-05 Michael Snyder <msnyder@redhat.com>
9300
9301 * regcache.c (fetch_register): Call target_fetch_register
9302 only if we don't call FETCH_PSEUDO_REGISTER.
9303 (store_register): Call target_store_register only if we
9304 don't call STORE_PSEUDO_REGISTER.
9305
a2cf933a
EZ
93062002-02-05 Elena Zannoni <ezannoni@redhat.com>
9307
9308 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9309 ELF_MAKE_MSYMBOL_SPECIAL.
9310 * gdbarch.c, gdbarch.h: Regenerate.
9311 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9312 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9313 * elfread.c (elf_symtab_read): Compile use of
9314 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9315 multiarched.
9316 * coffread.c (coff_symtab_read): Ditto, for
9317 COFF_MAKE_MSYMBOL_SPECIAL.
9318
6bb7be43
JB
93192002-02-05 Jim Blandy <jimb@redhat.com>
9320
9321 * solib-svr4.c (svr4_truncate_ptr): New function.
9322 (svr4_relocate_section_addresses): Do the address arithmetic with
9323 the appropriate truncation for target addresses, even when
9324 CORE_ADDR is larger than a target address.
9325
e18651ec
DJ
93262002-02-05 Daniel Jacobowitz <drow@mvista.com>
9327
9328 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9329 to (int *).
9330
6b2725be
DJ
93312002-02-05 Daniel Jacobowitz <drow@mvista.com>
9332
9333 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9334 code.
9335
fca9e603
DJ
93362002-02-05 Daniel Jacobowitz <drow@mvista.com>
9337
9338 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9339
6c537a52
DJ
93402002-02-05 Daniel Jacobowitz <drow@mvista.com>
9341
9342 * gdbserver/linux-low.c: Remove unused include files.
9343
d844cde6
DJ
93442002-02-05 Daniel Jacobowitz <drow@mvista.com>
9345
9346 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9347 (read_inferior_memory): Use it.
9348 (write_inferior_memory): Likewise.
9349
d07c63e7
DJ
93502002-02-05 Daniel Jacobowitz <drow@mvista.com>
9351
9352 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9353 grubbing through sys_errlist.
9354
da6d8c04
DJ
93552002-02-05 Daniel Jacobowitz <drow@mvista.com>
9356
9357 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9358
5b421780
PM
93592002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9360 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9361
9f60d481
AC
93622002-02-04 Andrew Cagney <ac131313@redhat.com>
9363
9364 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9365 (do_sfunc, set_cmd_sfunc): New functions.
9366
9367 * command.h (struct cmd_list_element): Add field func.
9368 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9369 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9370 * cli/cli-decode.h: Ditto.
9371
9372 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9373 (help_all, help_cmd_list): Ditto.
9374 (find_cmd, complete_on_cmdlist): Ditto.
9375 * top.c (execute_command): Ditto.
9376
9377 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9378 function.sfunc.
9379
9380 * infcmd.c (notice_args_read): Fix function signature.
9381
9382 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9383 * cli/cli-decode.c (add_set_cmd): Ditto.
9384 * utils.c (initialize_utils): Ditto.
9385 * maint.c (_initialize_maint_cmds): Ditto.
9386 * infrun.c (_initialize_infrun): Ditto.
9387 * demangle.c (_initialize_demangler): Ditto.
9388 * remote.c (add_packet_config_cmd): Ditto.
9389 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9390 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9391 * proc-api.c (_initialize_proc_api): Ditto.
9392 * kod.c (_initialize_kod): Ditto.
9393 * valprint.c (_initialize_valprint): Ditto.
9394 * top.c (init_main): Ditto.
9395 * infcmd.c (_initialize_infcmd): Ditto.
9396 * corefile.c (_initialize_core): Ditto.
9397 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9398 * arch-utils.c (initialize_current_architecture): Ditto.
9399 (_initialize_gdbarch_utils): Ditto.
9400 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9401
9402 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9403 * wince.c (_initialize_inftarg): Ditto.
9404 * symfile.c (_initialize_symfile): Ditto.
9405 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9406 * language.c (_initialize_language): Ditto.
9407 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9408
f9ba0717
MS
94092002-02-04 Michael Snyder <msnyder@redhat.com>
9410
9411 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9412
0c74b2a7
DJ
94132002-02-04 Daniel Jacobowitz <drow@mvista.com>
9414
9415 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9416 Add rules for building the register data files.
9417
c638789f
DJ
94182002-02-04 Daniel Jacobowitz <drow@mvista.com>
9419
9420 * regformats/regdat.sh: Add braces to the definition of
9421 expedite_regs_${arch}.
9422
db253027
DJ
94232002-02-04 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * regformats/regdef.h (struct reg): Add comment describing the
9426 requirements for offset and size fields.
9427
206be19c
AS
94282002-02-04 Andreas Schwab <schwab@suse.de>
9429
9430 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9431 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9432
181c1381
RE
94332002-02-04 Richard Earnshaw <rearnsha@arm.com>
9434
9435 * gdbarch.sh (copyright): Update years in generated header.
9436 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9437 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9438 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9439 * dbxread.c: Likewise.
9440 * dwarfread.c: Likewise.
9441 * elfread.c: Likewise.
9442 * somread.c: Likewise.
9443
9444 * arm-tdep.c (arm_smash_text_address): New function.
9445 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9446
fa4ba8da
PM
94472002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9448
9449 Add support for hardware watchpoints on win32 native.
aaa38bb5 9450 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9451 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9452 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9453 of debug registers.
9454 (debug_registers_changed): New variable. Reflects when debug registers
9455 are changed and need to be written to inferior.
aaa38bb5 9456 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9457 was set, used when new threads are created.
9458 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9459 i386-nat code.
9460 (thread_rec): Set dr array if id is the thread of current_event .
9461 (child_continue, child_resume): Change the debug registers for all
9462 threads if debug_registers_changed.
9463 (child_add_thread): Change the debug registers if debug_registers_used.
9464 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9465 Link nm.h to new nm-cygwin.h file.
9466 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9467 of hardware registers.
9468
a73c86fb
AC
94692002-02-03 Andrew Cagney <ac131313@redhat.com>
9470
9471 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9472 Restore behavour broken by 2002-01-20 Andrew Cagney
9473 <ac131313@redhat.com> IEEE_FLOAT removal.
9474
acf5ed49
DJ
94752002-02-03 Daniel Jacobowitz <drow@mvista.com>
9476
9477 * c-valprint.c (c_val_print): Pass a proper valaddr to
9478 cp_print_class_method.
9479 * valops.c (search_struct_method): If there is only one method
9480 and args is NULL, return that method.
9481
493d28d5
DJ
94822002-02-03 Daniel Jacobowitz <drow@mvista.com>
9483
9484 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9485 accessing tag_name directly.
9486
7495dfdb
DJ
94872002-02-03 Daniel Jacobowitz <drow@mvista.com>
9488
9489 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9490 of accessing tag_name directly.
9491
dd6bda65
DJ
94922002-02-03 Daniel Jacobowitz <drow@mvista.com>
9493
9494 PR gdb/280
9495 * gdbtypes.c (replace_type): New function.
9496 * gdbtypes.h (replace_type): Add prototype.
9497 * stabsread.c (read_type): Use replace_type.
9498
88fe217c
RE
94992002-02-03 Richard Earnshaw <rearnsha@arm.com>
9500
9501 * Makefile.in (memattr.o): Add missing dependencies rule.
9502
e5d66720
PS
95032002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9504
9505 * breakpoint.c (break_at_finish_command): Really export.
9506 (break_at_finish_at_depth_command): Ditto.
9507 (tbreak_at_finish_command): Ditto.
9508 * hppa-tdep.c: Include completer.h.
9509 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9510 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9511
fffee0be
AC
95122002-02-01 Andrew Cagney <ac131313@redhat.com>
9513
9514 * utils.c (do_write): New function.
9515 (error_stream): Rewrite combining the code from error_begin and
9516 verror.
9517 (verror): Rewrite using error_stream.
9518 (error_begin): Delete function.
9519
255e7dbf
AC
95202002-02-01 Andrew Cagney <ac131313@redhat.com>
9521
9522 * utils.c (error_begin): Make static.
9523 * defs.h (error_begin): Delete declaration.
9524
9525 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9526 (decode_line_1): Use cplusplus_error instead of error_begin,
9527 cplusplus_hint and return_to_top_level.
9528 * coffread.c (coff_symfile_read): Use error instead of error_begin
9529 and return_to_top_level.
9530 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9531
ddfe3c15
AC
95322002-02-01 Andrew Cagney <ac131313@redhat.com>
9533
9534 * language.h (type_error, range_error): Make string parameter
9535 constant.
9536 * language.c (warning_pre_print): Delete extern declaration.
9537 * dwarfread.c (warning_pre_print): Ditto.
9538 * language.c (type_error, range_error): Rewrite to use verror and
9539 vwarning instead of warning_begin.
9540
03ac34d5
MS
95412002-02-01 Michael Snyder <msnyder@redhat.com>
9542
261c4ca2
MS
9543 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9544 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9545
e00d1dc8
AC
95462002-02-01 Andrew Cagney <ac131313@redhat.com>
9547
9548 * command.h (NO_FUNCTION): Delete macro.
9549 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9550 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9551 * tracepoint.c (_initialize_tracepoint): Ditto.
9552 * cli/cli-decode.c (add_set_cmd): Ditto.
9553 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9554
76b79d6e
DJ
95552002-02-01 Daniel Jacobowitz <drow@mvista.com>
9556
9557 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9558 Update ``this'' pointer when calling virtual functions.
9559
799f9e91
MS
95602002-02-01 Michael Snyder <msnyder@redhat.com>
9561
c7bd442c 9562 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9563 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9564
3cf384d4
DJ
95652002-02-01 Daniel Jacobowitz <drow@mvista.com>
9566
9567 * regformats/reg-arm.dat: New file.
9568 * regformats/reg-i386.dat: New file.
9569 * regformats/reg-ia64.dat: New file.
9570 * regformats/reg-m68k.dat: New file.
9571 * regformats/reg-mips.dat: New file.
9572 * regformats/reg-ppc.dat: New file.
9573 * regformats/reg-sh.dat: New file.
9574 * regformats/regdef.h: New file.
9575 * regformats/regdat.sh: New file.
9576
0defa245
RE
95772002-02-01 Richard Earnshaw <reanrsha@arm.com>
9578
9579 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9580 (arm_frame_args_address, arm_frame_locals_address): New functions.
9581 (arm_frame_num_args): New function.
9582 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9583 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9584 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9585
405f26e6
MS
95862002-01-31 Michael Snyder <msnyder@redhat.com>
9587
502fd408
MS
9588 * breakpoint.c (break_at_finish_command): Export.
9589 (break_at_finish_at_depth_command): Export.
9590 (tbreak_at_finish_command): Export.
9591 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9592 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9593 "tbreak" commands, which are HPPA specific.
9594
7d35e135
MS
9595 * printcmd.c (disassemble_command): Remove an ancient
9596 artifact of an old merge.
9597
aaa38bb5 9598 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9599 Define enum constant values for overlay mode.
9600 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9601 (overlay_is_mapped, overlay_auto_command,
9602 overlay_manual_command): Ditto.
d874f1e2 9603
aaa38bb5
AJ
9604 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9605 breakpoint_here_p, breakpoint_inserted_here_p,
9606 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9607 describe_other_breakpoints, check_duplicates, clear_command):
9608 Coding standard fixes.
9609
8add0441 9610 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9611 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9612 code: check bfd SEC_READONLY flag for section.
9613
e351066e
AC
96142002-01-31 Andrew Cagney <ac131313@redhat.com>
9615
7d35e135 9616 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9617
8a48e967
DJ
96182002-01-30 Daniel Jacobowitz <drow@mvista.com>
9619
9620 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9621 data symbols, since we search based on textlow and texthigh.
9622 (find_pc_sect_symtab): Likewise.
9623
f5a96129
AC
96242002-01-30 Andrew Cagney <ac131313@redhat.com>
9625
9626 * defs.h (vwarning): Declare.
f5a96129
AC
9627 * utils.c (vwarning): New function.
9628 (warning): Call vwarning.
9629 (warning_begin): Delete function.
9630
9631 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9632 the warning message.
9633 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9634 warning_begin.
9635
cefd4ef5
MS
96362002-01-30 Michael Snyder <msnyder@redhat.com>
9637
1a703748
MS
9638 * NEWS: Mention "set trust-readonly-sections" command.
9639 Mention generate-core-file command.
cefd4ef5 9640
3a11626d
MS
96412002-01-15 Michael Snyder <msnyder@redhat.com>
9642
9643 * target.c: New command, "set trust-readonly-sections on".
9644 (do_xfer_memory): Honor the suggestion to trust readonly sections
9645 by reading them from the object file instead of from the target.
9646 (initialize_targets): Register command "set trust-readonly-sections".
9647
d1c7e53b
AC
96482002-01-29 Andrew Cagney <ac131313@redhat.com>
9649
9650 * parse.c (target_map_name_to_register): Simplify, search regs and
9651 pseudo-regs using a single loop.
9652
e2c9a72c
AC
96532002-01-30 Andrew Cagney <ac131313@redhat.com>
9654
9655 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9656
69824b4e
MK
96572002-01-15 Rodney Brown <rbrown64@csc.com.au>
9658
9659 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9660 * config/i386/i386v42mp.mh: Add i387-nat.o .
9661 * i386v4-nat.c: Include i387-nat.h.
9662 (supply_fpregset): Use i387_supply_fsave.
9663 (fill_fpregset): Use i387_fill_fsave.
9664
6eb69eab
RE
96652002-01-30 Richard Earnshaw <rearnsha@arm.com>
9666
9667 * arm-tdep.c (arm_call_dummy_words): Define.
9668 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9669 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9670 (CALL_DUMMY_WORDS): Define.
9671 (arm_call_dummy_words): Declare.
9672 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9673 (arm_linux_call_dummy_words): Declare.
9674
9852326a
AS
96752002-01-30 Andreas Schwab <schwab@suse.de>
9676
9677 * m68klinux-nat.c: Fix last change to use regcache_collect
9678 instead of referencing registers[] directly.
9679
977a3030
AC
96802002-01-29 Andrew Cagney <ac131313@redhat.com>
9681
9682 * parse.c (target_map_name_to_register): Delete code wrapped in
9683 #ifdef REGISTER_NAME_ALIAS_HOOK.
9684
2076c72b
MS
96852002-01-28 Michael Snyder <msnyder@redhat.com>
9686
9687 * regcache.c (legacy_read_register_gen): Need to be able to
9688 read pseudo-register as well as real register.
9689 (legacy_write_register_gen): Ditto.
9690
8fcc723b
AC
96912002-01-28 Andrew Cagney <ac131313@redhat.com>
9692
9693 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9694 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9695 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9696 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9697 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9698 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9699 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9700 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9701 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9702 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9703 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9704 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9705 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9706 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9707 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9708 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9709 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9710 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9711 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9712 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9713
afe64c1a
AC
97142002-01-28 Andrew Cagney <ac131313@redhat.com>
9715
9716 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9717 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9718 (initialize_current_architecture): Update target_byte_order using
9719 information from BFD.
aaa38bb5 9720 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9721 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9722
75bc7ddf
AC
97232002-01-28 Andrew Cagney <ac131313@redhat.com>
9724
9725 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9726 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9727
9728 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9729 #ifdef INVALID_FLOAT.
9730 * infcmd.c (do_registers_info): Ditto.
9731 * values.c (unpack_double): Ditto. Add comment.
9732
9733 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9734 already commented out.
9735
0280a90a
AS
97362002-01-26 Andreas Schwab <schwab@suse.de>
9737
9738 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9739 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9740 registers and add support for PTRACE_GETREGS.
9741
7072a954
AC
97422002-01-24 Andrew Cagney <ac131313@redhat.com>
9743
9744 GDB 5.1.1 released from 5.1 branch.
9745 * NEWS: Add 5.1.1 news.
9746 * README: Sync with 5.1 branch.
9747
86f902e0
FF
97482002-01-23 Fred Fish <fnf@redhat.com>
9749
9750 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9751 stabstring on initial malloc. Reallocing will copy it for us,
9752 if necessary.
9753
8af51c36
EZ
97542002-01-23 Elena Zannoni <ezannoni@redhat.com>
9755
aaa38bb5 9756 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9757 (HFILES_NO_SRCDIR): Remove hpread.h.
9758 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9759 (hpread.o): Update dependencies.
9760 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9761
9762 * hp-psymtab-read.c: Remove file.
9763 * hp-symtab-read.c: Remove file.
9764 * hpread.h: Remove file.
9765
9766 * hpread.c: Merge all contents of hp-psymtab-read.c,
9767 hp-symtab-read.c and hpread.h into this file, as it was prior to
9768 January 1999.
9769
9770 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9771 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9772 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9773 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9774
dc5cfeb6
EZ
97752002-01-23 Elena Zannoni <ezannoni@redhat.com>
9776
9777 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9778 fill_gregset): Call gdbarch_tdep() just once, assign result to
9779 variable and use that, instead of calling the function several
9780 times.
9781
ea87b71b
AO
97822002-01-24 Alexandre Oliva <aoliva@redhat.com>
9783
9784 * configure.host: Accept sparcv9 as alias for sparc64.
9785 * configure.tgt: Likewise.
9786
13fc0c2f
KB
97872002-01-22 Kevin Buettner <kevinb@redhat.com>
9788
9789 * solib-aix5.c (build_so_list_from_mapfile)
9790 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9791 arguments is not reversed.
9792 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9793 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9794
7bd872fe
EZ
97952002-01-22 Elena Zannoni <ezannoni@redhat.com>
9796
9797 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9798 modified version of obsolete sh_fetch_pseudo_register.
9799 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9800 (sh4_register_read): New function.
9801 (sh_pseudo_register_write): New function. Renamed and modified
9802 version of obsolete sh_store_pseudo_register.
9803 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9804 (sh4_register_write): New function.
9805 (sh_gdbarch_init): Remove setting of gdbarch function
9806 fetch_pseudo_register and store_pseudo_register. Remove setting of
9807 register_convert_to_raw, register_convert_to_virtual,
9808 register_convertible.
9809 (sh_sh4_register_convertible): Delete. No longer needed. All is
9810 taken care by architecture specific functions
9811 register_read/register_write.
9812 (sh_sh4_register_convert_to_virtual): Make static.
9813 (sh_sh4_register_convert_to_raw): Ditto.
9814
069e84fd
AC
98152002-01-22 Andrew Cagney <ac131313@redhat.com>
9816
9817 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9818 (floatformat_is_nan, floatformat_mantissa): Ditto.
9819
9820 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9821 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9822 builtin_type_ieee_double_little,
9823 builtin_type_ieee_double_littlebyte_bigword,
9824 builtin_type_m68881_ext, builtin_type_i960_ext,
9825 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9826 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9827 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9828 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9829
211a4f69
CV
98302002-01-22 Corinna Vinschen <vinschen@redhat.com>
9831
9832 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9833 parameter. Set frameless flag if it exists and depended of
9834 whether the scanned function is frameless or not.
9835 (xstormy16_skip_prologue): If function is frameless, return
9836 result of xstormy16_scan_prologue().
9837 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9838 call.
9839
f81353e4
EZ
98402002-01-21 Elena Zannoni <ezannoni@redhat.com>
9841
9842 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9843 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9844 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9845 sh_sh4_register_byte, sh_sh4_register_raw_size,
9846 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9847 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9848 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9849 sh_store_pseudo_register, sh_do_pseudo_register): Call
9850 gdbarch_tdep() just once, assign result to variable and use that,
9851 instead of calling the function several times.
9852
63c73a17
MK
98532002-01-20 Mark Kettenis <kettenis@gnu.org>
9854
9855 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9856 macros instead of LAST_FPU_CTRL_REGNUM.
9857 (store_register): Likewise.
9858
39ad761d
JB
98592002-01-21 Jim Blandy <jimb@redhat.com>
9860
9861 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9862 is up-to-date before running the program, not just when a program
9863 exits.
9864
3d74b771
FF
98652002-01-21 Fred Fish <fnf@redhat.com>
9866
9867 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9868 when we have found all instructions we are looking for.
9869
966fbf70
RE
98702002-01-21 Richard Earnshaw <rearnsha@arm.com>
9871
9872 * arm-tdep.c (arm_register_name): New function.
9873 (arm_registers_names): Make static.
9874 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9875 (arm_register_name): Declare.
9876 (REGISTER_NAME): Use it.
9877
c3b4394c
RE
98782002-01-21 Richard Earnshaw <rearnsha@arm.com>
9879 Kevin Buettner <kevinb@redhat.com>
9880
9881 Convert arm targets to new FRAME interface.
9882 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9883 (arm_frame_find_save_regs): Delete.
9884 (arm_frame_init_saved_regs): New.
9885 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9886 Allocate extra_info as required. Convert all uses of fsr.regs
9887 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9888 to use extra_info.
9889 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9890 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9891 (check_prologue_cache, save_prologue_cache): Likewise.
9892 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9893 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9894 (FRAME_FIND_SAVED_REGS): Delete.
9895 (arm_frame_find_saved_regs): Delete prototype.
9896 (arm_frame_init_saved_regs): New prototype.
9897 (FRAME_INIT_SAVED_REGS): Define.
9898
61d99182
AC
98992002-01-20 Andrew Cagney <ac131313@redhat.com>
9900
9901 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9902
6aaea291
AC
99032002-01-20 Andrew Cagney <ac131313@redhat.com>
9904
9905 From Jeff Law <law@redhat.com>:
9906 * infttrace.c: Include <sys/pstat.h>.
9907 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9908 exec file if the ttrace equivalent fails.
9909
15f698d2
AC
99102002-01-20 Andrew Cagney <ac131313@redhat.com>
9911
9912 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9913 (closeLogFile): Ditto.
9914
f86ddd7c
MC
99152002-01-20 Michael Chastain <mec@shout.net>
9916
9917 * top.c (print_gdb_version): Bump copyright year to 2002.
9918
904507ce
AC
99192002-01-20 Andrew Cagney <ac131313@redhat.com>
9920
9921 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9922 Zannoni and Eli Zaretskii.
9923
d7f0b9ce
DJ
99242002-01-20 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * buildsym.c: Update copyright years.
9927 * c-typeprint.c: Likewise.
9928 * dwarf2read.c: Likewise.
9929 * f-typeprint.c: Likewise.
9930 * gdbtypes.c: Likewise.
9931 * gdbtypes.h: Likewise.
9932 * hp-symtab-read.c: Likewise.
9933 * hpread.c: Likewise.
9934 * mdebugread.c: Likewise.
9935 * p-typeprint.c: Likewise.
9936
3fd3d7d2
AC
99372002-01-20 Andrew Cagney <ac131313@redhat.com>
9938
9939 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9940 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9941 byte-order selectable.
9942 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9943 * arch-utils.c: Ditto.
9944 (set_endian): Ditto.
9945 (set_endian_from_file): Ditto.
9946 * gdbserver/low-sim.c (create_inferior): Ditto.
9947 * gdbarch.sh: Ditto.
9948 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9949 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9950 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9951 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9952 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9953 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9954 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9955 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9956 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9957 macro definition.
9958 * config/mips/tm-wince.h: Remove #undef of macro
9959 TARGET_BYTE_ORDER_SELECTABLE.
9960 * config/sh/tm-wince.h: Ditto.
9961
b02dede2
DJ
99622002-01-20 Daniel Jacobowitz <drow@mvista.com>
9963
9964 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9965 member function fields. Add accessor macro
9966 TYPE_FN_FIELD_ARTIFICIAL.
9967 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9968 * c-typeprint.c (c_type_print_base): Skip artificial member
9969 functions.
9970
c3643761
DJ
99712002-01-20 Daniel Jacobowitz <drow@mvista.com>
9972
9973 * f-typeprint.c: Delete unused function f_type_print_args.
9974 * p-typeprint.c: Delete unused function pascal_type_print_args.
9975
8176bb6d
DJ
99762002-01-20 Daniel Jacobowitz <drow@mvista.com>
9977
9978 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9979 comment. Add ``artificial'' to ``union field_location''.
9980
9981 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9982
9983 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9984 * mdebugread.c (parse_symbol): Likewise.
9985 * stabsread.c (define_symbol): Likewise.
9986 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9987 initializing TYPE_FIELD_BITPOS to n (obsolete).
9988 (hpread_doc_function_type): Likewise.
9989 * hpread.c (hpread_function_type): Likewise.
9990
7fd60527
AC
99912002-01-20 Andrew Cagney <ac131313@redhat.com>
9992
9993 * configure.in (host_makefile_frag): Only require a host makefile
9994 fragment when a native build.
9995 * configure: Re-generate.
9996
c2f05ac9
AC
99972002-01-20 Andrew Cagney <ac131313@redhat.com>
9998
9999 * doublest.h (floatformat_from_type): Declare.
10000 * doublest.c (floatformat_from_type): New function.
10001 (convert_typed_floating): Use.
10002
10003 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10004 call to function floatformat_from_type.
10005
10006 * gdbarch.sh (IEEE_FLOAT): Delete.
10007 * gdbarch.h, gdbarch.c: Re-generate.
10008 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10009 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10010 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10011 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10012 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10013 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10014 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10015 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10016 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10017 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10018 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10019 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10020
10021 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10022 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10023 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10024 * sh-tdep.c (sh_gdbarch_init): Ditto.
10025 * mips-tdep.c (mips_gdbarch_init): Ditto.
10026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10027 * cris-tdep.c (cris_gdbarch_init): Ditto.
10028
abf22e64
AJ
100292002-01-20 Jiri Smid <smid@suse.cz>
10030
10031 * configure.host, configure.tgt: Support x86-64.
10032 * NEWS: Note new target x86-64.
10033
b7c4cbf8
AJ
10034 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10035 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10036 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10037 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10038 x86-64-linux-nat.o): Fix dependencies.
10039
82600034
AC
100402002-01-19 Andrew Cagney <ac131313@redhat.com>
10041
10042 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10043 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10044 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10045 * config/sparc/xm-sun4os4.h: Delete file.
10046 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10047
bbe5c628
AC
100482002-01-19 Andrew Cagney <ac131313@redhat.com>
10049
10050 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10051 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10052 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10053 * config/i386/i386lynx.mh (XM_FILE): Delete.
10054 * config/rs6000/xm-rs6000ly.h: Delete file.
10055 * config/sparc/xm-sparclynx.h: Delete file.
10056 * config/m68k/xm-m68klynx.h: Delete file.
10057 * config/i386/xm-i386lynx.h: Delete file.
10058 * config/xm-lynx.h: Delete file.
10059 * config/djgpp/fnchange.lst: Update.
10060
f8453e34
JT
100612002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10062
10063 * alpha-tdep.c (alpha_register_byte): New function.
10064 (alpha_register_raw_size): Ditto.
10065 (alpha_register_virtual_size): Ditto.
10066 (alpha_skip_prologue_internal): Renamed from
10067 alpha_skip_prologue.
10068 (alpha_skip_prologue): New version that calls
10069 alpha_skip_prologue_internal.
10070 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10071 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10072 second argument from alpha_skip_prologue.
10073 (REGISTER_BYTE): Use alpha_register_byte.
10074 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10075 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10076 (FRAMELESS_FUNCTION_INVOCATION): Use
10077 generic_frameless_function_invocation_not.
10078 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10079 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10080
52d9e613
AC
100812002-01-19 Andrew Cagney <ac131313@redhat.com>
10082
10083 * config/mips/xm-news-mips.h: Delete file.
10084 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10085
10086 * config/m88k/xm-m88k.h: Delete file.
10087 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10088 * config/m88k/xm-delta88v4.h: Ditto.
10089 * config/m88k/xm-delta88.h: Ditto.
10090
10091 * config/alpha/xm-fbsd.h: Delete file.
10092 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10093
10094 * config/sparc/xm-sparc.h: Delete file.
10095 * Makefile.in (xm-sun4os4.h): Delete dependency.
10096 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10097 * config/sparc/xm-sun4os4.h: Ditto.
10098 * config/sparc/xm-linux.h: Ditto.
10099
10100 * config/i386/xm-windows.h: Delete file.
10101
2d1b2124
AC
101022002-01-19 Andrew Cagney <ac131313@redhat.com>
10103
10104 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10105 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10106
ee1f65f0
JT
101072002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10108
10109 * alpha-tdep.c (alpha_call_dummy_words): New.
10110 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10111 (CALL_DUMMY_P): Define.
10112 (CALL_DUMMY_WORDS): Define.
10113 (SIZEOF_CALL_DUMMY_WORDS): Define.
10114
98081e55
PB
101152002-01-19 Per Bothner <per@bothner.com>
10116
10117 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10118 isn't NULL, which can happen with some gcj-3.x-produced code.
10119
0d056799
JT
101202002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10121
10122 * alpha-tdep.c (alpha_register_virtual_type): New function.
10123 (alpha_init_frame_pc_first): Ditto.
10124 (alpha_fix_call_dummy): Ditto.
10125 (alpha_store_struct_return): Ditto.
10126 (alpha_extract_struct_value_address): Ditto.
10127 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10128 alpha_register_virtual_type.
10129 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10130 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10131 alpha_extract_struct_value_address.
10132 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10133 (INIT_FRAME_PC): Use init_frame_pc_noop.
10134 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10135
4604bcad
MK
101362002-01-19 Mark Kettenis <kettenis@gnu.org>
10137
10138 * i386gnu-nat.c: Include "i386-tdep.h".
10139 (fetch_fpregs): Simplify code dealing with uninitialized floating
10140 point states such that it doesn't require FP7_REGNUM.
10141
140f9984
JT
101422002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10143
abf22e64
AJ
10144 * alpha-tdep.c (frame_extra_info): New.
10145 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10146 frame->extra_info.
10147 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10148 (alpha_frame_saved_pc): Use frame->extra_info.
10149 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10150 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10151 (init_extra_frame_info): Rename to...
10152 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10153 (alpha_print_extra_frame_info): New function.
140f9984
JT
10154 (alpha_frame_locals_address): Ditto.
10155 (alpha_frame_args_address): Ditto.
abf22e64 10156 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10157 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10158 alpha_frame_args_address.
abf22e64 10159 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10160 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10161 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10162 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10163 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10164 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10165
d734c450
JT
101662002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10167
10168 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10169 (alpha_cannot_fetch_register): Ditto.
10170 (alpha_cannot_store_register): Ditto.
10171 (alpha_register_convertible): Ditto.
10172 (alpha_use_struct_convention): Ditto.
10173 * config/alpha/tm-alpha.h: Update copyright years.
10174 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10175 (INNER_THAN): Use core_addr_lessthan.
10176 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10177 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10178 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10179 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10180 (FRAME_CHAIN): Remove unnecessary cast.
10181
b4ceaee6
AC
101822002-01-18 Andrew Cagney <ac131313@redhat.com>
10183
10184 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10185 obsolete.
10186
0a65a603
AC
101872002-01-18 Andrew Cagney <ac131313@redhat.com>
10188
10189 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10190 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10191 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10192 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10193 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10194 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10195 * x86-64-linux-nat.c: Ditto.
10196
636a6dfc
JT
101972002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10198
abf22e64 10199 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10200 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10201 (REGISTER_NAME): Define.
10202
acceddb6
JT
102032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10204
10205 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10206
ec32e4be
JT
102072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10208
10209 * alpha-tdep.c: Update copyright years.
10210 (alpha_next_pc): New function.
10211 (alpha_software_single_step): Ditto.
10212 * config/alpha/tm-alpha.h: Add prototype for
10213 alpha_software_single_step.
10214
e771a871
JT
102152002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10216
10217 * alphabsd-nat.c: Update copyright years.
10218 (fill_gregset): Use regcache_collect.
10219 (fill_fpregset): Likewise.
10220 (fetch_inferior_registers): Only fetch integer registers
10221 if requested to do so.
10222 (store_inferior_registers): Only store integer registers
10223 if requested to do so.
10224
7708fa01
AC
102252002-01-17 Andrew Cagney <ac131313@redhat.com>
10226
10227 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10228 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10229 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10230 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10231 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10232 * config/arm/linux.mh (XDEPFILES): Delete.
10233 * config/arm/nbsd.mh (XDEPFILES): Delete.
10234 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10235 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10236 * config/i386/i386m3.mh (XDEPFILES): Delete.
10237 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10238 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10239 * config/i386/fbsd.mh (XDEPFILES): Delete.
10240 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10241 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10242 * config/i386/i386v4.mh (XDEPFILES): Delete.
10243 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10244 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10245 * config/i386/i386aix.mh (XDEPFILES): Delete.
10246 * config/i386/go32.mh (XDEPFILES): Delete.
10247 * config/i386/cygwin.mh (XDEPFILES): Delete.
10248 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10249 * config/i386/i386mach.mh (XDEPFILES): Delete.
10250 * config/i386/i386v32.mh (XDEPFILES): Delete.
10251 * config/i386/linux.mh (XDEPFILES): Delete.
10252 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10253 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10254 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10255 * config/i386/i386sco.mh (XDEPFILES): Delete.
10256 * config/i386/i386v.mh (XDEPFILES): Delete.
10257 * config/i386/nbsd.mh (XDEPFILES): Delete.
10258 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10259 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10260 * config/i386/symmetry.mh (XDEPFILES): Delete.
10261 * config/i386/obsd.mh (XDEPFILES): Delete.
10262 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10263 * config/ia64/linux.mh (XDEPFILES): Delete.
10264 * config/ia64/aix.mh (XDEPFILES): Delete.
10265 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10266 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10267 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10268 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10269 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10270 * config/m68k/linux.mh (XDEPFILES): Delete.
10271 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10272 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10273 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10274 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10275 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10276 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10277 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10278 * config/m88k/delta88.mh (XDEPFILES): Delete.
10279 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10280 * config/m88k/m88k.mh (XDEPFILES): Delete.
10281 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10282 * config/mips/linux.mh (XDEPFILES): Delete.
10283 * config/mips/irix6.mh (XDEPFILES): Delete.
10284 * config/mips/irix5.mh (XDEPFILES): Delete.
10285 * config/mips/irix4.mh (XDEPFILES): Delete.
10286 * config/mips/irix3.mh (XDEPFILES): Delete.
10287 * config/mips/decstation.mh (XDEPFILES): Delete.
10288 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10289 (NATDEPFILES): Move core-aout.o to here.
10290 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10291 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10292 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10293 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10294 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10295 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10296 * config/pa/hpux11.mh (XDEPFILES): Delete.
10297 * config/powerpc/aix.mh (XDEPFILES): Delete.
10298 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10299 * config/powerpc/linux.mh (XDEPFILES): Delete.
10300 * config/romp/rtbsd.mh: Rename XDEPFILES.
10301 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10302 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10303 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10304 * config/s390/s390.mh (XDEPFILES): Delete.
10305 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10306 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10307 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10308 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10309 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10310 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10311 * config/sparc/linux.mh (XDEPFILES): Delete.
10312 * config/vax/vaxult.mh (XDEPFILES): Delete.
10313 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10314 * Makefile.in (DEPFILES): Remove XDEPFILES.
10315
375fc983
AC
103162002-01-17 Andrew Cagney <ac131313@redhat.com>
10317
10318 * utils.c (internal_verror): Fix comments, default is yes not no.
10319 Update queries to match. Default to quit and dump core.
10320
8926118c
AC
103212002-01-17 Andrew Cagney <ac131313@redhat.com>
10322
10323 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10324 copyright.
10325 * defs.h, event-top.c, gdbcmd.h: Ditto.
10326 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10327 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10328 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10329 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10330 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10331 * mi/mi-main.c:Ditto.
10332
10333 * stack.c, symfile.c: Update copyright.
10334
45b7b345
DJ
103352002-01-17 Daniel Jacobowitz <drow@mvista.com>
10336
db728ff7
DJ
10337 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10338 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10339 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10340 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10341
db728ff7
DJ
103422002-01-17 Daniel Jacobowitz <drow@mvista.com>
10343
10344 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10345 * gdbserver/low-lynx.c (myattach): Likewise.
10346 * gdbserver/low-nbsd.c (myattach): Likewise.
10347 * gdbserver/low-sim.c (myattach): Likewise.
10348 * gdbserver/low-sparc.c (myattach): Likewise.
10349 * gdbserver/low-sun3.c (myattach): Likewise.
10350
10351 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10352
db728ff7 10353 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10354 (main): Handle "--attach".
10355
8de3c354
AC
103562002-01-16 Andrew Cagney <ac131313@redhat.com>
10357
10358 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10359 maintainer.
10360
b0129042
DJ
103612002-01-15 Daniel Jacobowitz <drow@mvista.com>
10362
10363 * c-typeprint.c (is_type_conversion_operator): Add additional
10364 check for non-conversion operators.
10365
ba8679fb 103662002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10367
10368 * linux-proc.c: Add "info proc" command, a la procfs.c.
10369 (read_mapping): New function, abstract and re-use code.
10370 (linux_find_memory_regions): Use new func read_mapping.
10371 (linux_info_proc_cmd): New function, implement "info proc".
10372 (_initialize_linux_proc): Add new command "info proc".
10373
e4f9b4d5
MS
103742002-01-15 Michael Snyder <msnyder@redhat.com>
10375
10376 * symfile.c (generic_load): Use bfd_map_over_sections method
10377 instead of manipulating bfd structure members directly.
10378 (add_section_size_callback): New function, bfd sections callback
10379 used by generic_load.
10380 (load_sections_callback): New function, bfd sections callback
10381 used by generic_load.
10382
08cf96df
EZ
103832002-01-15 Elena Zannoni <ezannoni@redhat.com>
10384
abf22e64 10385 [Based on work by Jim Blandy]
08cf96df
EZ
10386 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10387 (builtin_type_vec128): Export.
10388 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10389 types.
10390 (builtin_type_vec128): New builtin type for 128 bit vector
10391 registers.
10392 (build_gdbtypes): Initialize builtin_type_v16qi and
10393 builtin_type_v8hi. Create the vec128 register builtin type
10394 structure.
10395 (build_builtin_type_vec128): New function.
abf22e64 10396 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10397 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10398 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10399 AltiVec register to new builtin type.
10400
d7242108
DJ
104012001-01-15 Daniel Jacobowitz <drow@mvista.com>
10402
10403 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10404 to make_cv_type.
10405
4ee3352d
AC
104062002-01-14 Andrew Cagney <ac131313@redhat.com>
10407
10408 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10409 CLEAN_UP_REGISTER_VALUE.
10410 * regcache.c (supply_register): Update only call.
10411
f015b2e7
AC
104122002-01-14 Andrew Cagney <ac131313@redhat.com>
10413
10414 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10415 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10416 a29k-*-vxworks* targets as obsolete.
10417
356ae49d
MS
104182002-01-14 Michael Snyder <msnyder@redhat.com>
10419
10420 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10421 until we can resolve portability issues.
10422 * gregset.h: Remove references to fpxregs.
10423 * gcore.c (gcore_command): Initialize note_sec to NULL.
10424
ade8f45e
AC
104252002-01-13 Andrew Cagney <ac131313@redhat.com>
10426
10427 * signals.c (target_signal_to_name): Rewrite. Only use
10428 signals[].name when in bounds and non-NULL.
abf22e64 10429
89c49e7a
AC
104302002-01-13 Andrew Cagney <ac131313@redhat.com>
10431
10432 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10433 * signals.c (target_signal_to_name): Verify that SIG is within the
10434 bounds of the signals array.
10435
4daa9f9f
AC
104362002-01-13 Andrew Cagney <ac131313@redhat.com>
10437
10438 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10439
ba4bbdcb
KS
104402002-01-13 Keith Seitz <keiths@redhat.com>
10441
10442 * stack.c (print_frame_info_base): Print the frame's pc
10443 only if when print_frame_info_listing_hook is not defined.
10444
575bbeb6
KS
104452002-01-13 Keith Seitz <keiths@redhat.com>
10446
10447 * varobj.c (varobj_set_value): Make sure that there were no
10448 errors evaluating the object before attempting to set its
10449 value.
10450 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10451 so this offset adjustment is no longer necessary.
10452 (create_child): Don't set the error flag if the child is
10453 a CPLUS_FAKE_CHILD.
10454 (value_of_child): If value_fetch_lazy fails, return NULL
10455 so that callers will be notified that an error occurred.
10456 (c_value_of_variable): Delay check of variable's validity
10457 until later. We actually want all structs and unions to have
10458 the value "{...}".
10459 Do not return "???" for variables which could not be evaluated.
10460 This error condition must be returned to the caller so that it
10461 can get the error condition from gdb.
10462 (cplus_name_of_child): Adjust index for vptr before figuring
10463 out the name of the child.
10464 (cplus_value_of_child): If a child's (real) parent is not valid,
10465 don't even bother trying to give a value for it. Just return
10466 an error. Change all instances in this function.
10467 (cplus_type_of_child): If our parent is one of the "fake"
10468 parents, we need to get at the type of the real parent, and
10469 derive the child's true type using this information.
10470
b76898ab
AC
104712002-01-13 Andrew Cagney <ac131313@redhat.com>
10472
10473 From 2002-01-09 John Marshall <johnm@falch.net>:
10474 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10475 sources.redhat.com, and tweak some related URLs which had
10476 suffered from linkrot.
10477
b6649e88
AC
104782002-01-13 Andrew Cagney <ac131313@redhat.com>
10479
10480 From Jeff law:
10481 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10482 structures passed in registers.
10483
82cc5033
EZ
104842002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10485
10486 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10487 white space which prevented compilation. Reported by DSK
10488 <dsk@student.unsw.edu.au>.
10489
ba5f2f8a
MS
104902002-01-11 Michael Snyder <msnyder@redhat.com>
10491
fbd35540
MS
10492 * symfile.c (build_section_addr_info_from_section_tab):
10493 Use bfd access method instead of manipulating bfd directly.
10494 (syms_from_objfile): Ditto.
10495 (simple_overlay_update_1): Ditto.
10496 (simple_overlay_update): Ditto.
10497 (generic_load): Ditto.
10498 (overlay_unmapped_address): FIXME comment, bfd access methods.
10499 (sections_overlap): FIXME comment, bfd access methods.
10500 (pc_in_mapped_range): FIXME comment, bfd access methods.
10501 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10502 (section_is_mapped): FIXME comment, bfd access methods.
10503 (section_is_overlay): FIXME comment, bfd access methods.
10504
ba5f2f8a
MS
10505 * symfile.c (generic_load): Whitespace and long line cleanups.
10506 Remove duplicate variable, change several local variables to
10507 more appropriate data types.
10508 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10509
17df2af6
AC
105102002-01-12 Andrew Cagney <ac131313@redhat.com>
10511
10512 From Peter Schauer:
10513 * language.c (longest_local_hex_string_custom): Use phex_nz to
10514 convert NUM to a hex string.
10515
ec920329
EZ
105162002-01-12 Elena Zannoni <ezannoni@redhat.com>
10517
10518 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10519 the function.
538a76d6 10520 Update Copyright year.
ec920329 10521
3abd2e01
AC
105222002-01-12 Andrew Cagney <ac131313@redhat.com>
10523
10524 * language.c (longest_raw_hex_string): Delete unused function.
10525
b21b22e0
PS
105262002-01-11 Petr Sorfa <petrs@caldera.com>
10527
10528 * MAINTAINERS (write-after-approval): Add myself.
10529 * dwarf2read.c (read_tag_string_type): Handling of
10530 DW_AT_byte_size.
10531 (read_tag_string_type): FORTRAN fix to prevent propagation of
10532 first string size.
10533 (set_cu_language): Handling of DW_LANG_Fortran95
10534
747fe712
RE
105352002-01-11 Richard Earnshaw <rearnsha@arm.com>
10536
10537 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10538 GETPID(inferior_ptid).
10539 (store_inferior_registers): Likewise.
10540
f1bea926
JM
105412002-01-10 Jason Merrill <jason@redhat.com>
10542
10543 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10544 Fix DW_OP_minus.
10545
ae940673
AC
105462002-01-10 Andrew Cagney <ac131313@redhat.com>
10547
10548 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10549 and bfd/elf32-sh-nbsd.c.
10550
00546b04
MS
105512002-01-10 Michael Snyder <msnyder@redhat.com>
10552
352ed7b4
MS
10553 * NEWS: Mention --pid and corefile/proc-id behavior change.
10554
c18be923
MS
10555 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10556 * gcore.c: Include cli/cli-decode.h instead of command.h.
10557
00546b04
MS
10558 * main.c (captured_main): Add new command line option "--pid".
10559 If the second command line argument (following the symbol-file)
10560 begins with a digit, try to attach to it before trying to open
10561 it as a corefile.
10562 (print_gdb_help): Document the "--pid" argument.
10563
db60ec62
EZ
105642002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10565
10566 * completer.c (command_completer): New function.
10567
10568 * completer.h <command_completer>: Add prototype.
10569
10570 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10571 completer for the "help" command.
10572
39c22d1a
JM
105732002-01-09 Jason Merrill <jason@redhat.com>
10574
10575 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10576
c564377f
MS
105772002-01-09 Michael Snyder <msnyder@redhat.com>
10578
975aec09
MS
10579 * i386-linux-nat.c (fill_fpxregset): Make global.
10580 (store_fpxregset): Ditto.
10581
db4a10fa
MS
10582 * gregset.h (gdb_fpxregset_t): Define.
10583 (supply_fpxregset): Prototype.
10584 (fill_fpxregset): Prototype.
10585
c564377f
MS
10586 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10587
c3d45d70
RE
105882002-01-09 Richard Earnshaw <rearnsha@arm.com>
10589
10590 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10591 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10592 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10593
fcc87af1
AC
105942002-01-09 Andrew Cagney <ac131313@redhat.com>
10595
10596 * MAINTAINERS: Update target maintainer rules so that any
10597 Maintainer can approve a tested patch for a maintenance-only
10598 target.
10599
dd96c05b
RE
106002002-01-09 Richard Earnshaw <rearnsha@arm.com>
10601
d4297db9 10602 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10603
d4297db9 10604 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10605 IN_SIGTRAMP.
10606
145fdc6e
MS
106072002-01-08 Michael Snyder <msnyder@redhat.com>
10608
10609 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10610 real name of the executable, rather than the /proc name.
10611
be4d1333
MS
106122002-01-03 Michael Snyder <msnyder@redhat.com>
10613
10614 Implement a "generate-core-file" command in gdb, save target state.
10615 * gcore.c: New file. Implement new command 'generate-core-file'.
10616 Save a corefile image of the current state of the inferior.
10617 * linux-proc.c: Add linux-specific code for saving corefiles.
10618 * target.h (struct target_ops): Add new target vectors for saving
10619 corefiles; to_find_memory_regions and to_make_corefile_notes.
10620 (target_find_memory_regions): New macro.
10621 (target_make_corefile_notes): New macro.
10622 * target.c (update_current_target): Inherit new target methods.
10623 (dummy_find_memory_regions): New place-holder method.
10624 (dummy_make_corefile_notes): New place-holder method.
10625 (init_dummy_target): Initialize new dummy target vectors.
10626 * exec.c (exec_set_find_memory_regions): New function.
10627 Allow the exec_ops vector for memory regions to be taken over.
10628 (exec_make_note_section): New function, target vector method.
10629 * defs.h (exec_set_find_memory_regions): Export prototype.
10630 * procfs.c (proc_find_memory_regions): New function, corefile method.
10631 (procfs_make_note_section): New function, corefile method.
10632 (init_procfs_ops): Set new target vector pointers.
10633 (find_memory_regions_callback): New function.
10634 (procfs_do_thread_registers): New function.
10635 (procfs_corefile_thread_callback): New function.
10636 * sol-thread.c (sol_find_memory_regions): New function.
10637 (sol_make_note_section): New function.
10638 (init_sol_thread_ops): Initialize new target vectors.
10639 * inftarg.c (inftarg_set_find_memory_regions): New function.
10640 Allow to_find_memory_regions vector to be taken over.
10641 (inftarg_set_make_corefile_notes): New function.
10642 Allow to_make_corefile_notes vector to be taken over.
10643 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10644 interface layer if not target_has_execution (may be a corefile).
10645 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10646 * config/sparc/sun4sol2.mh: Ditto.
10647 * config/alpha/alpha-linux.mh: Ditto.
10648 * config/arm/linux.mh: Ditto.
10649 * config/i386/x86-64linux.mh: Ditto.
10650 * config/ia64/linux.mh: Ditto.
10651 * config/m68k/linux.mh: Ditto.
10652 * config/mips/linux.mh: Ditto.
10653 * config/powerpc/linux.mh: Ditto.
10654 * config/sparc/linux.mh: Ditto.
10655
c6b92abd
MS
106562002-01-07 Michael Snyder <msnyder@redhat.com>
10657
10658 * arm-linux-nat.c: Remove references to regcache.c internal data
10659 (registers[] and register_valid[]).
10660
4b09dc8c
MS
106612002-01-07 Michael Snyder <msnyder@redhat.com>
10662
abf22e64
AJ
10663 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10664 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10665 symbol file and shlibs.
10666 * Makefile.in: Add rule for linux-proc.o.
10667 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10668 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10669 * config/arm/linux.mh: Ditto.
10670 * config/i386/linux.mh: Ditto.
10671 * config/i386/x86-64linux.mh: Ditto.
10672 * config/ia64/linux.mh: Ditto.
10673 * config/m68k/linux.mh: Ditto.
10674 * config/mips/linux.mh: Ditto.
10675 * config/powerpc/linux.mh: Ditto.
10676 * config/sparc/linux.mh: Ditto.
10677
c25b74ac
PM
106782002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10679
10680 * win32-nat.c: Add i386-tdep.h dependency.
10681
94cd915f
MS
106822002-01-07 Michael Snyder <msnyder@redhat.com>
10683
c7cccb76
MS
10684 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10685 instead of bfd_get_arch_size. Don't bail out just because
10686 there's no exec_bfd.
abf22e64 10687
34c0bd93
MS
10688 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10689 * p-valprint.c (pascal_object_print_value): Ditto.
10690 * somread.c (som_symtab_read): Ditto.
10691 * symfile.c (simple_free_overlay_region_table): Ditto.
10692 * valops.c (value_assign): Ditto.
10693
21c1c920
MS
10694 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10695 use tilde_expand and strerror for opening save-tracepoints file.
10696
5bbd998e
MS
10697 * thread-db.c (thread_db_new_objfile): Indendation fix.
10698
94cd915f
MS
10699 * infptrace.c (GDB_MAX_ALLOCA): New define.
10700 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10701 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10702 can be overridden with whatever value is appropriate to the host).
10703 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10704 alloca to allocate potentially large buffer.
10705 * rs6000-nat.c (child_xfer_memory): Ditto.
10706 * symm-nat.c (child_xfer_memory): Ditto.
10707 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10708
494e8a93
JSC
107092002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10710
10711 From Nick Clifton <nickc@redhat.com>
10712 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10713
d0e1d48e
MS
107142002-01-07 Michael Snyder <msnyder@redhat.com>
10715
abf22e64 10716 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10717 Don't use exec_bfd if it's NULL.
10718
290b2c7a
MK
107192002-01-06 Mark Kettenis <kettenis@gnu.org>
10720
abf22e64 10721 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10722
aef21287
AC
107232002-01-06 Andrew Cagney <ac131313@redhat.com>
10724
10725 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10726 * gnu-nat.c: Ditto.
10727
30efa627
AC
107282002-01-06 Andrew Cagney <ac131313@redhat.com>
10729
10730 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10731 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10732 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10733 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10734 z8k-coff have not been multi-arched. Update z8k-coff build
10735 status.
10736
9b4ff276
AC
107372002-01-06 Andrew Cagney <ac131313@redhat.com>
10738
10739 * MAINTAINERS: Mark a29k target as obsolete.
10740 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10741 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10742 comments.
10743 * NEWS: Note that a29k targets are obsolete.
10744 * a29k-tdep.c: Mark as obsolete.
10745 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10746 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10747 a29k-*-vxworks* targets as obsolete.
10748 * remote-adapt.c: Obsolete.
10749 * remote-eb.c: Obsolete.
10750 * remote-mm.c: Obsolete.
10751 * remote-udi.c: Obsolete.
10752 * config/a29k/a29k-udi.mt: Obsolete.
10753 * config/a29k/a29k.mt: Obsolete.
10754 * config/a29k/tm-a29k.h: Obsolete.
10755 * config/a29k/tm-vx29k.h: Obsolete.
10756 * config/a29k/vx29k.mt: Obsolete.
10757
a9011d31
AC
107582002-01-05 Andrew Cagney <ac131313@redhat.com>
10759
10760 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10761 with BFD_ENDIAN_BIG.
10762
9299404e
AC
107632002-01-05 Andrew Cagney <ac131313@redhat.com>
10764
10765 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10766 * configure, config.in: Re-generate.
10767 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10768 * defs.h: Do not include <endian.h>.
10769
7e89e357
JT
107702002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10771
10772 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10773 * config.in: Regenerate.
10774 * configure.in: Update copyright years.
10775 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10776 * configure: Regenerate.
10777 * i386bsd-nat.c: Update copyright years.
10778 (fill_gregset): Use regcache_collect.
10779 (fetch_inferior_registers): Only fetch integer registers
10780 if requested to do so. Add support for XMM registers
10781 using PT_GETXMMREGS.
10782 (store_inferior_registers): Only store integer registers
10783 if requested to do so. Add support for XMM registers
10784 using PT_SETXMMREGS.
10785 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10786 (store_inferior_registers): Remove.
10787 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10788 (fetch_elfcore_registers): New function.
10789 (i386nbsd_elfcore_fns): New.
10790 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10791 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10792 i386bsd-nat.o.
10793 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10794 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10795 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10796 * config/i386/tm-nbsd.h: Update copyright years.
10797 (HAVE_SSE_REGS): Define.
10798 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10799 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10800 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10801 (SIGCONTEXT_PC_OFFSET): Remove.
10802 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10803
a752853e
AC
108042002-01-05 Andrew Cagney <ac131313@redhat.com>
10805
10806 * configure.tgt: Remove powerpc-*-macos* target.
10807 * config/m68k/xm-mpw.h: Delete file.
10808 * config/xm-mpw.h: Delete file.
10809 * ser-mac.c: Delete file.
10810 * mpw-make.sed: Delete file.
10811 * mpw-config.in: Delete file.
10812 * mac-xdep.c: Delete file.
10813 * mac-gdb.r: Delete file.
10814 * mac-defs.h: Delete file.
10815 * mac-nat.c: Delete file.
10816 * config/powerpc/macos.mh: Delete file.
10817 * config/powerpc/macos.mt: Delete file.
10818 * config/powerpc/nm-macos.h: Delete file.
10819 * config/powerpc/tm-macos.h: Delete file.
10820 * source.c (openp, open_source_file): Remove obsolete code.
10821 * top.c (gdb_readline): Ditto.
10822 * utils.c (query): Ditto.
10823 * event-top.c (display_gdb_prompt): Ditto.
10824 * Makefile.in (ser-mac.o): Delete obsolete target.
10825 * NEWS: Update.
10826
d7449b42
AC
108272002-01-04 Andrew Cagney <ac131313@redhat.com>
10828
10829 * defs.h (BIG_ENDIAN): Delete macro definition.
10830 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10831 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10832 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10833 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10834 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10835 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10836 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10837 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10838 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10839 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10840 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10841 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10842 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10843 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10844 * gdbarch.c: Re-generate.
10845
356374e8
DJ
108462002-01-04 Daniel Jacobowitz <drow@mvista.com>
10847
10848 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10849 for core files.
10850
a2b8f8f8
JT
108512002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10852
10853 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10854
12466af9
AC
108552002-01-04 Andrew Cagney <ac131313@redhat.com>
10856
10857 * value.h (value_ptr): Delete typedef.
10858
3549ab40
JT
108592002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10860
10861 * i386nbsd-nat.c: Update copyright years.
10862 Include i386-tdep.h.
10863
fedbd091
EZ
108642002-01-04 Elena Zannoni <ezannoni@redhat.com>
10865
10866 * stabsread.c: Update copyright years.
10867
10868 From Debashis Mahata <debashis.mahata@wipro.com>:
10869 (read_struct_fields): Deal with Sun C compiler erroneous stab
10870 output for structs and unions.
fec8b34f 10871 Fix PR gdb/269.
fedbd091 10872
eb43544b
DJ
108732002-01-04 Daniel Jacobowitz <drow@mvista.com>
10874
10875 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10876 prototype.
10877
1514d34e
DJ
108782002-01-04 Daniel Jacobowitz <drow@mvista.com>
10879
10880 * cp-abi.c: Fix whitespace.
10881 (baseclass_offset): New wrapper function.
10882 * cp-abi.h (baseclass_offset): Add prototype.
10883 (struct cp_abi_ops): Add baseclass_offset pointer.
10884
10885 * valops.c (vb_match): Move to...
10886 * gnu-v2-abi.c (vb_match): here.
10887 * valops.c (baseclass_offset): Move to...
10888 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10889
10890 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10891
10892 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10893 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10894 * hpacc-abi.c (init_hpacc_ops): Likewise.
10895
7f8c9282
DJ
108962002-01-04 Daniel Jacobowitz <drow@mvista.com>
10897
10898 * valops.c (find_overload_match): Accept obj as a
10899 reference parameter. Update it before returning.
10900 * value.h (find_overload_match): Update prototype.
10901 * eval.c (evaluate_subexp_standard): Pass object to
10902 find_overload_match by reference.
10903
f23631e4
AC
109042002-01-03 Andrew Cagney <ac131313@redhat.com>
10905
10906 * valarith.c: Replace value_ptr with struct value pointer. Remove
10907 register attribute from value declarations.
10908 * valops.c: Ditto.
10909 * value.h: Ditto.
10910 * scm-lang.c (scm_lookup_name): Ditto.
10911
79e10fab 109122002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10913
79e10fab
AC
10914 Abstract the functionality of iterating over mapped memory
10915 regions into a general purpose iterator function.
abf22e64 10916 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10917 iterator for memory sections.
10918 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10919 (solib_mappings_callback): New function, callback for above.
10920 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10921 (info_mappings_callback): New function, callback for above.
10922
10923 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10924
c5ad026a
MK
109252002-01-01 Mark Kettenis <kettenis@gnu.org>
10926
d2a7c97a
MK
10927 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10928 * i386-tdep.c: Include "elf-bfd.h".
10929 (process_note_abi_tag_sections): New function.
10930 (i386_gdbarch_init): Add code to recognize various OS/ABI
10931 combinations.
10932
c5ad026a
MK
10933 * maint.c (_initialize_maint_cmds): Add missing \ in
10934 string-literal.
10935
a1a5b71e 10936For older changes see ChangeLog-2001
c906108c
SS
10937\f
10938Local Variables:
10939mode: change-log
10940left-margin: 8
10941fill-column: 74
10942version-control: never
10943End:
This page took 1.110838 seconds and 4 git commands to generate.