* gdb701.exp: New file for testing varobj target type bug.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
928e48af
CV
12002-09-16 Corinna Vinschen <vinschen@redhat.com>
2
3 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4 `set architecture'. Unify naming convention of functions.
5 (h8300_skip_prologue): Improve prologue analysis.
6 (h8300_push_arguments): Rewritten to more closely match GCC's
7 bizarre argument-passing behavior, along with the comment describing
8 said behavior.
9 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
10 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
11 sim, remote-e7000.c, remote-hms.c and remote.c
12
5e3397bb
MK
132002-09-15 Mark Kettenis <kettenis@gnu.org>
14
15 * i386-tdep.c (gdb_print_insn_i386): Removed.
16 (i386_print_insn): New function.
17 (i386_gdbarch_init): Set print_insn to i386_print_insns.
18 (_initialize_i386_tdep): Don't initialize tm_print_insn and
19 tm_print_insn_info.
20
f710f4fc
MK
212002-09-14 Mark Kettenis <kettenis@gnu.org>
22
23 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
24 zero.
25
db54fef4
CV
262002-09-14 Corinna Vinschen <vinschen@redhat.com>
27
28 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
29 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
30 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
31
2becadee
CF
322002-09-13 Christopher Faylor <cgf@redhat.com>
33
34 * win32-nat.c (child_create_inferior): Honor 'tty' command.
35
de17c821
DJ
362002-09-13 Daniel Jacobowitz <drow@mvista.com>
37
38 * gdbtypes.c (check_stub_method): Make static.
39 (check_stub_method_group): New function.
40 * gdbtypes.h: Update prototypes.
41 * cp-support.c: New file.
42 * cp-support.h: New file.
43
44 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
45 (update_method_name_from_physname): New function.
46 (read_member_functions): Correct method names for operators
47 and v3 constructors/destructors. Separate v2 constructors and
48 destructors.
49 * Makefile.in (stabsread.o): Update dependencies.
50 (SFILES): Add cp-support.c.
51 (COMMON_OBS): Add cp-support.o.
52 (cp_support_h, cp-support.o): Add.
53
54 * cp-valprint.c (cp_print_class_method): Call
55 check_stub_method_group instead of check_stub_method. Remove
56 extraneous QUITs.
57 * p-valprint.c (pascal_object_print_class_method): Likewise.
58 * valops.c (search_struct_method): Likewise.
59 (find_method_list, value_struct_elt_for_reference): Likewise.
60
e76cff22
AC
612002-09-13 Andrew Cagney <cagney@redhat.com>
62
63 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
64 * gdbarch.h, gdbarch.c: Regenerate.
65
905abb3f
AC
662002-09-13 Andrew Cagney <ac131313@redhat.com>
67
68 * frame.c (find_saved_register): Delete function.
69 * frame.h (find_saved_register): Delete declaration.
70 Fix PR gdb/631.
71
64159455
AC
72Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
73
74 * mips-tdep.c (read_next_frame_reg): Re-hack using
75 frame_register_unwind.
76
795e1e11
AC
77Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
78
79 * mips-tdep.c (mips_get_saved_register): Re-hack using
80 frame_register_unwind.
81
5720643c
JB
822002-09-12 Joel Brobecker <brobecker@gnat.com>
83
84 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
85 vector. Will be useful for Interix.
86 * gdbarch.h, gdbarch.c: Regenerate.
87
88 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
89 name of the malloc function by NAME_OF_MALLOC.
90
3bada2a2
JB
912002-09-12 Joel Brobecker <brobecker@gnat.com>
92
93 * value.h (find_function_in_inferior): Add const keyword to
94 one of the parameters. Allows us to invoke this function with
95 a const char *.
96 * valops.c (find_function_in_inferior): Likewise.
97
3db26b01
JB
982002-09-12 Joel Brobecker <brobecker@gnat.com>
99
100 * exec.c (xfer_memory): Fix compilation warning with old versions
101 of GCC.
102 * tracepoint.c (trace_find_tracepoint_command): Likewise.
103
17c5ed2c
DC
1042002-09-12 David Carlton <carlton@math.stanford.edu>
105
106 * symtab.h: Run through gdb_indent.h.
107 Add 2002 to Copyright year list.
108
ecd1107e
AM
1092002-09-12 Alan Modra <amodra@bigpond.net.au>
110
111 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
112 mach constants.
113 * MAINTAINERS: Add myself to write after approval list.
114
e64f66d1
JB
1152002-09-11 J. Brobecker <brobecker@gnat.com>
116
117 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
118
f9395794
JB
1192002-09-11 J. Brobecker <brobecker@gnat.com>
120
121 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
122 Interix.
123
1a303dec
MS
1242002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
125
126 * procfs.c (do_detach): Clear current signal, not just fault.
127 Corrects problem with breakpoint trap signal leaking to detached
128 process on Tru64.
129
c0219d42
MS
1302002-09-10 Michael Snyder <msnyder@redhat.com>
131
132 * buildsym.c (finish_block): Protect against null pointer.
133
9d84ac84
AC
1342002-09-10 Andrew Cagney <cagney@redhat.com>
135
136 * infcmd.c (default_print_registers_info): Send all output to
137 ``file'' instead of ``gdb_stdout''.
138
77d8f2b4
MS
1392002-09-10 Michael Snyder <msnyder@redhat.com>
140
141 * mips-tdep.c (mips_extract_struct_value_address): Make val a
142 LONGEST, and use signed register read (addresses are sign-
143 extended for mips).
144
99656a61
SC
1452002-09-10 Stephane Carrez <stcarrez@nerim.fr>
146
147 * event-loop.c (gdb_do_one_event): Make public.
148 * event-loop.h (gdb_do_one_event): Declare.
149
da12f4d8
JL
1502002-09-10 Jeff Law <law@redhat.com>
151
152 * infttrace.c (child_resume): Simplify and rework to avoid
153 TT_PROC_CONTINUE.
154
d0aee0c4
FF
1552002-09-09 Fred Fish <fnf@intrinsity.com>
156
157 * printcmd.c (print_scalar_formatted): "len" is the number of
158 target bytes, NOT the number of target bits.
159
7cb3ec5e
EZ
1602002-09-09 Elena Zannoni <ezannoni@redhat.com>
161
162 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
163 * top.c (init_main): Set rl_terminal_name.
164
4dc81987
AS
1652002-09-08 Aidan Skinner <aidan@velvet.net>
166
167 * ada-lang.c (ada_array_bound, ada_type_match,
168 _initialize_ada_language): Fix K&R definitions.
169 * ada-tasks.c (get_current_task): Fix K&R definitions.
170 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
171
842330b4
CF
1722002-09-07 Christopher Faylor <cgf@redhat.com>
173
174 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
175 Add XP.
176
43156d82
MK
1772002-09-06 Mark Kettenis <kettenis@gnu.org>
178
66da5fd8
MK
179 * i386-tdep.c (i386_register_virtual_type,
180 i386_register_convertible, i386_register_convert_to_virtual,
181 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
182 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
183 (i386_gdbarch_init): Fix comment. Add comments on calls that set
184 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
185 Don't set push_arguments twice.
186
4b218c18
MK
187 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
188 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
189 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
190 sigtramp_end to NULL.
191 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
192 defines.
193 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
194
4cc314d5
MK
195 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
196 whitespace.
197
43156d82
MK
198 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
199 * gdbarch.h, gdbarch.c: Re-generate.
200 * blockframe.c (find_pc_sect_partial_function): Convert to use
201 SIGTRAMP_START_P predicate.
202
6672060b
MS
2032002-09-05 Michael Snyder <msnyder@redhat.com>
204
a90c3637
MS
205 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
206 generic_dummy_frame method and old method. Also distinguish
207 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 208 (arm_extract_return_value): Use new regcache method.
a90c3637 209
6672060b
MS
210 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
211 adjustment that doesn't conform to the ABI.
212 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
213 saved regcache, not from current regcache.
214
299ffc64
AC
2152002-09-05 Andrew Cagney <ac131313@redhat.com>
216
217 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
218 * README: Update.
219
a3a2ee65
JT
2202002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
221
222 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
223 if arm_apcs_32 is false.
224
2bc7eea9
AC
2252002-09-04 Andrew Cagney <ac131313@redhat.com>
226
227 GDB 5.3 branch created.
228
8a55a7c5
TR
2292002-09-03 Theodore A. Roth <troth@verinet.com>
230
231 * gdb/avr-tdep.c (avr_gdbarch_init): Use
232 generic_unwind_get_saved_register.
233
e26fb1d7
DC
2342002-09-03 David Carlton <carlton@math.stanford.edu>
235
236 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
237 argument (PR gdb/653). Update call to smash_to_method_type.
238 (read_structure_scope): Update call to dwarf2_add_member_fn.
239
30d52491
ML
2402002-09-03 Michal Ludvig <mludvig@suse.cz>
241
242 * x86-64-linux-tdep.c: Include gdb_string.h
243 * x86-64-linux-nat.c: Ditto.
244
06891d83
JT
2452002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
246
247 * ada-exp.y (yyname, yyrule): Remap global variables that appear
248 when YYDEBUG is set to 1.
249 * c-exp.y: Likewise.
250 * f-exp.y: Likewise.
251 * jv-exp.y: Likewise.
252 * m2-exp.y: Likewise.
253 * p-exp.y: Likewise.
254
7d400e77
JT
2552002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
256
257 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
258 dependency list.
259 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
260 solib_svr4_fetch_link_map_offsets to
261 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
262 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
263 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
264 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
265 solib-svr4.o, and solib-legacy.o.
266 * config/i386/tm-nbsd.h: Include solib.h.
267
704a27c4
JT
2682002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
269
270 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
271 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
272 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
273 comment noting that this needs its own target configuration.
274 * config/i386/nbsd.mt: New file.
275 * config/i386/nbsdaout.mt: Remove.
276 * config/i386/nbsdelf.mt: Ditto.
277 * config/i386/tm-nbsdaout.h: Ditto.
278
d66198e1
JT
2792002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
280
281 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
282 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
283 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
284 tdep->sigtramp_end.
285 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
286 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
287 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
288
3cac699e
JT
2892002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
290
291 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
292 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
293 * i386-tdep.h (i386bsd_init_abi): New prototype.
294 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
295 function declaration.
296 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
297 for NetBSD-a.out or NetBSD-ELF.
298 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
299 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
300 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
301 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
302 and nbsd-tdep.h.
303 (i386nbsd_pc_in_sigtramp): New function.
304 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
305 i386nbsd_pc_in_sigtramp.
306 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
307 and i386nbsdelf_init_abi OS ABI handlers.
308 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
309 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
310
7010ca0a
MK
3112002-09-02 Mark Kettenis <kettenis@gnu.org>
312
313 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
314 registers if the target really has them.
315
6dd93b72
JT
3162002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
317
318 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
319 than nbsd-tdep.h.
320
2ca8ae21
JT
3212002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
322
323 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
324 list.
325 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
326 (alphanbsd_skip_sigtramp_frame): New functions.
327 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
328 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
329 to alphanbsd_sigcontext_addr.
330
3d9b49b0
JT
3312002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
332
333 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
334 list.
335 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
336 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
337 nbsd_pc_in_sigtramp.
338 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
339 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
340 * nbsd-tdep.c: Include gdb_string.h.
341 (nbsd_pc_in_sigtramp): New function.
342 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
343 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
344 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
345 ppcnbsd_pc_in_sigtramp.
346 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
347 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
348 shnbsd_pc_in_sigtramp.
349 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
350 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
351 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
352
c860120c
PM
3532002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
354
355 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
356 watchpoints to NULL.
357 (insert_breakpoints): set val field of watchpoints if NULL.
358
359
c7612d53
JB
3602002-08-29 Jim Blandy <jimb@redhat.com>
361
362 * symtab.c (lookup_symbol_aux): In the cases where we find a
363 minimal symbol of an appropriate name and use its address to
364 select a symtab to read and search, use `name' (as passed to us)
365 as the demangled name when searching the symtab's global and
366 static blocks, not the minsym's name.
367
66609862
KS
3682002-08-29 Keith Seitz <keiths@redhat.com>
369
370 * stack.c (print_frame_info_base): Always set current_source_symtab
371 and current_source_line.
372
151fefe2
JB
3732002-08-29 Donn Terry <donnte@microsoft.com>
374
375 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
376
bfb3754e
KS
3772002-08-28 Keith Seitz <keiths@redhat.com>
378
379 * stack.c (select_frame): Add FIXME concerning selected-frame
380 events.
381 (select_frame_command): Send selected-frame-level-changed
382 event notification, but only if the level actually changed.
383 (up_silently_base): Add selected-frame-level-changed event
384 notification.
385 (down_silently_base): Likewise.
386
e822a2a0
AC
3872002-08-28 Andrew Cagney <ac131313@redhat.com>
388
389 * Makefile.in: Update dependencies for all gdb/*.c files.
390
309367d4
TT
3912002-08-27 Tom Tromey <tromey@redhat.com>
392
393 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
394 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
395 Update dependencies.
396 * i387-tdep.c: Include gdb_string.h.
397 * osabi.c: Likewise.
398 * i386-linux-nat.c: Likewise.
399 * lin-lwp.c: Likewise.
400 * ax-gdb.c: Likewise.
401 * signals/signals.c: Likewise.
402 * jv-valprint.c: Likewise.
403 * p-lang.c: Likewise.
404 * c-valprint.c: Likewise.
405 * cp-abi.c: Likewise.
406
e1507482
EZ
4072002-08-27 Elena Zannoni <ezannoni@redhat.com>
408
409 * cli/cli-script.h (copy_command_lines): Export.
410 * breakpoint.c: Include cli/cli-script.h.
411 * Makefile.in (breakpoint.o): Update dependencies.
412
c6510018
MS
4132002-08-26 Michael Snyder <msnyder@redhat.com>
414
415 * breakpoint.c (insert_breakpoints): Protect all references
416 to 'process_warning'. Shorten long lines.
417
c2b8ed2c
MS
4182002-08-26 Joel Brobecker <brobecker@gnat.com>
419
420 * cli/cli-script.c (copy_command_lines): New function.
421 * defs.h (copy_command_lines): Export.
422 * testsuite/gdb.base/commands.exp: New tests for commands
423 attached to a temporary breakpoint, and for commands that
424 delete the breakpoint they are attached to.
425
4262002-08-26 Michael Snyder <msnyder@redhat.com>
427
428 * breakpoint.c (bpstat_stop_status): Instead of copying the
429 pointer to the breakpoint commands struct, make a new copy
430 of the struct and point to that.
431 (bpstat_clear): Free the commands struct.
432 (bpstat_clear_actions): Free the commands struct.
433 (bpstat_do_actions): Free the command actions. Also execute
434 the local cleanups, instead of deleting them.
435 (delete_breakpoint): Leave the commands field of the bpstat
436 chain alone -- it will be freed later.
437
64b84175
KB
4382002-08-26 Kevin Buettner <kevinb@redhat.com>
439
440 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
441 deleted in 2002-08-20 commit. This function is still used by
442 ppc-linux-nat.c.
443
55970da6
KS
4442002-08-26 Keith Seitz <keiths@redhat.com>
445
446 * gdb-events.sh: Add selected-frame-level-changed event.
447 * gdb-events.c: Regenerated.
448 * gdb-events.h: Regenerated.
449
a790ad35
SC
4502002-08-26 Stephane Carrez <stcarrez@nerim.fr>
451
452 Fix PR gdb/393:
453 * inflow.c (terminal_save_ours): New function to save terminal
454 settings.
455 * inferior.h (terminal_save_ours): Declare.
456 * target.c (debug_to_terminal_save_ours): New function.
457 (cleanup_target): Defaults to_terminal_save_ours.
458 (update_current_target): Inherit to_terminal_save_ours.
459 (setup_target_debug): Set to_terminal_save_ours.
460 * target.h (target_terminal_save_ours): New to save terminal settings.
461 (target_ops): New member to_terminal_save_ours.
462 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
463 * hpux-thread.c (init_hpux_thread_ops): Likewise.
464 * inftarg.c (init_child_ops): Likewise.
465 * m3-nat.c (init_m3_ops): Likewise.
466 * procfs.c (init_procfs_ops): Likewise.
467 * wince.c (init_child_ops): Likewise.
468 * win32-nat.c (init_child_ops): Likewise.
469 * sol-thread.c (init_sol_thread_ops): Likewise.
470
c00dcbe9
MK
4712002-08-26 Mark Kettenis <kettenis@gnu.org>
472
3d7f4f49
MK
473 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
474 use regcache_* functions.
475 (i386_gdbarch_init): Set store_return_value instead of
476 deprecated_store_return_value.
477
c00dcbe9
MK
478 * regcache.c (regcache_raw_write_signed,
479 regcache_raw_write_unsigned): New functions.
480 * regcache.h (regcache_raw_write_signed,
481 regcache_raw_write_unsigned): New prototypes.
482
0e0d15ca
AC
4832002-08-25 Andrew Cagney <ac131313@redhat.com>
484
485 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
486 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
487 source file dependencies. Cleanup corresponding generator rules.
488
d3b22ed5
AC
4892002-08-25 Andrew Cagney <ac131313@redhat.com>
490
491 * regcache.h (register_offset_hack): Declare.
492 (regcache_cooked_read_using_offset_hack): Declare.
493 (regcache_cooked_write_using_offset_hack): Declare.
494
495 * regcache.c (register_offset_hack): New function.
496 (regcache_cooked_read_using_offset_hack): New function.
497 (regcache_cooked_write_using_offset_hack): New function.
498 (regcache_dump): Check that the registers, according to their
499 offset, are packed hard against each other.
500 (cooked_xfer_using_offset_hack): New function.
501
bb425013
AC
5022002-08-25 Andrew Cagney <ac131313@redhat.com>
503
504 * regcache.c (struct regcache_descr): Add field register_type.
505 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
506 in as a parameter
507 (init_regcache_descr): Initialize register_type. Pass the descr
508 to init_legacy_regcache_descr. Use register_type instead of
509 REGISTER_VIRTUAL_TYPE.
510 (register_type): New function.
511 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
512 * regcache.h (register_type): Declare.
513
d0403e00
AC
5142002-08-25 Andrew Cagney <ac131313@redhat.com>
515
516 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
517 instead of deprecated_store_return_value. Fix fallout from
518 2002-08-23 Andrew Cagney <cagney@redhat.com>.
519
0ed04cce
AC
5202002-08-25 Andrew Cagney <ac131313@redhat.com>
521
522 * regcache.c (max_register_size): New function.
523 (init_legacy_regcache_descr): Ensure that max_register_size is
524 large enough for REGISTER_VIRTUAL_SIZE.
525 * regcache.h (max_register_size): Declare.
526
46d79c04
AC
5272002-08-24 Andrew Cagney <ac131313@redhat.com>
528
529 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
530 store_return_value.
531 (e500_extract_return_value): Change type of valbuf pointer to
532 void.
533
853c7bd0
MK
5342002-08-24 Mark Kettenis <kettenis@gnu.org>
535
cd87e769
MK
536 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
537 workaround.
538
853c7bd0
MK
539 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
540 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
541 long long) to prevent compiler warning on 64-bit systems.
542
ebba8386
AC
5432002-08-23 Andrew Cagney <cagney@redhat.com>
544
545 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
546 (DEPRECATED_STORE_RETURN_VALUE): New method.
547 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
548 * gdbarch.h, gdbarch.c: Re-generate.
549
550 * values.c (set_return_value): Pass current_regcache to
551 STORE_RETURN_VALUE.
552 * arch-utils.h (legacy_store_return_value): Declare.
553 * arch-utils.c (legacy_store_return_value): New function.
554 (legacy_extract_return_value): Update parameters.
555
556 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
557 STORE_RETURN_VALUE.
558 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
559 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
560 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
561 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
562 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
563 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
564 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
565 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
566 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
567 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
568
569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
570 * i386-tdep.c (i386_extract_return_value): Update.
571 * arch-utils.c (legacy_extract_return_value): Update.
572 * frv-tdep.c (frv_gdbarch_init): Update.
573 * cris-tdep.c (cris_gdbarch_init): Update.
574 * d10v-tdep.c (d10v_gdbarch_init): Update.
575 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
576 * m68k-tdep.c (m68k_gdbarch_init): Update.
577 * mcore-tdep.c (mcore_gdbarch_init): Update.
578 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
579 * s390-tdep.c (s390_gdbarch_init): Update.
580 * sparc-tdep.c (sparc_gdbarch_init): Update.
581 * sh-tdep.c (sh_gdbarch_init): Update.
582 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
583 * v850-tdep.c (v850_gdbarch_init): Update.
584 * avr-tdep.c (avr_gdbarch_init): Update.
585 * ia64-tdep.c (ia64_gdbarch_init): Update.
586 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
587 * vax-tdep.c (vax_gdbarch_init): Update.
588 * alpha-tdep.c (alpha_gdbarch_init): Update.
589 * arm-tdep.c (arm_gdbarch_init): Update.
590 * mips-tdep.c (mips_gdbarch_init): Update.
591 * i386-tdep.c (i386_gdbarch_init): Update.
592
5bd8c6d0
AC
5932002-08-23 Andrew Cagney <ac131313@redhat.com>
594
595 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
596 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
597
e73e1724
MK
5982002-08-24 Mark Kettenis <kettenis@gnu.org>
599
600 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
601 problems.
602
3e6564e1
JB
6032002-08-23 Joel Brobecker <brobecker@gnat.com>
604
605 * infrun.c (handle_inferior_event): Move a comment outside of a
606 function call, in order to avoid indent reformatting this part
607 of the code in an unreadable way.
608
81d0cc19
GS
6092002-08-23 Grace Sainsbury <graces@redhat.com>
610
611 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
612 when breakpoints fail. Move general breakpoint error messages to
613 insert_breakpoints.
614 * breakpoint.c (insert_breakpoints): Change warnings when
615 breakpoints are nto inserted to specify the type. Remove call to
616 memory_error when hardware breakpoints can't be inserted. Remove
617 multiple calls to warning so all messages are sent to the user at
618 once.
619 (delete_breakpoints): Make insert error messsages more explicit.
620
17574093
DJ
6212002-08-23 Daniel Jacobowitz <drow@mvista.com>
622
623 * ChangeLog: Move gdbserver entries after GDB 5.2 to
624 gdbserver/ChangeLog.
625
8acc2935
MK
6262002-08-23 Mark Kettenis <kettenis@gnu.org>
627
dfe01d39
MK
628 * i386-tdep.c: Include "objfiles.h".
629 (i386_svr4_init_abi): Set in_solib_call_trampoline and
630 skip_trampoline_code.
631 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
632 (CPLUS_MARKER): Define to '.'.
633
8acc2935
MK
634 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
635 member.
636 (linux_corefile_thread_callback): Increase args->num_notes.
637 (linux_make_note_section): Initialize thread_args.num_notes, and
638 use it to determine whether notes for any threads were created.
639
151fefe2 6402002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
641
642 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
643 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
644 and PCUNKILL.
645 (write_with_trace): Conditionalize out the switch branch handling
646 PCSHOLD if the corresponding macro is not defined. Likewise for
647 PRSABORT and PRSTOP.
648 This change will be needed by the Interix port.
649
e1507482
EZ
6502002-08-22 Elena Zannoni <ezannoni@redhat.com>
651
652 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
653 write_register wherever possible instead of manipulating the
654 register bytes directly.
655 Assign VALUE_CONTENTS to a variable and use that.
656 The GPR numbers are now dependent on the architecture.
657
96ff0de4
EZ
6582002-08-22 Elena Zannoni <ezannoni@redhat.com>
659
660 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
661 ev_offset fields.
662 (skip_prologue): Add support for BookE/e500 instructions.
663 (e500_extract_return_value): New function.
664 (frame_get_saved_regs): Add support for saving ev registers and
665 pseudo gpr's.
666 (e500_store_return_value): New function.
667 (rs6000_gdbarch_init): Move up default intializations of
668 deprecated_extract_return_value and store_return_value. Overwrite
669 init of store_return_value with e500 specific version.
670 Set extract_return_value for e500.
671
fbefca5b
EZ
6722002-08-22 Elena Zannoni <ezannoni@redhat.com>
673
674 * blockframe.c (generic_call_dummy_register_unwind): Use
675 regcache_cooked_read to catch cases in which the variable is
676 stored in a pseudo register.
677
4d210288
AC
6782002-08-22 Andrew Cagney <cagney@redhat.com>
679
680 * NEWS: Mention that the i960 has been made obsolete.
681 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
682 i960-tdep.c
683 (remote-nrom.o): Obsolete target.
684 (remote-nindy.o, i960-tdep.o): Ditto.
685 * remote-nrom.c: Make file obsolete.
686 * remote-nindy.c, remote-vx960.c: Ditto.
687 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
688 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
689 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
690 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
691 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
692 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
693 i960-*-vxworks* obsolete.
694 * MAINTAINERS: Note that the i960 is obsolete.
695
6c0c456d
CV
6962002-08-21 Corinna Vinschen <vinschen@redhat.com
697
698 * aix-thread.c (aix_thread_detach): Disable thread debugging on
699 detach to allow reinitialization.
700
9f9d12b3
AC
7012002-08-22 Andrew Cagney <ac131313@redhat.com>
702
703 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
704 attempt).
705
ebeb39fe
JB
7062002-08-22 Jim Blandy <jimb@redhat.com>
707
708 * coffread.c (coff_symfile_read): Don't try to read the line
709 number table from disk if the image file doesn't have a symbol
710 table; we'll never actually look at the info anyway, and Windows
711 ships DLL's with bogus file offsets for the line number data.
712
5bf1c677
EZ
7132002-08-21 Elena Zannoni <ezannoni@redhat.com>
714
715 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
716 an e500 executable.
717
71b8ef93
MS
7182002-08-21 Michael Snyder <msnyder@redhat.com>
719
720 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
721 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
722 (DEFAULT_MIPS_TYPE): Delete unused macro.
723 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
724 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 725
d174216d
JB
7262002-08-21 Jim Blandy <jimb@redhat.com>
727
728 * valops.c (value_cast): Simplify and correct logic for doing a
729 static cast from a pointer to a base class to a pointer to a
730 derived class.
731
0ab7a791
AC
7322002-08-21 Andrew Cagney <ac131313@redhat.com>
733
734 * infcmd.c (default_print_registers_info): Replace
735 do_registers_info.
736 (registers_info): Use gdbarch_print_registers_info instead of
737 DO_REGISTERS_INFO.
738 * inferior.h (default_print_registers_info): Replace
739 do_registers_info.
740 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
741 (DO_REGISTERS_INFO): Change to a predicate function.
742 * gdbarch.h, gdbarch.c: Regenerate.
743
e23792cc
KS
7442002-08-21 Keith Seitz <keiths@redhat.com>
745
746 * gdb-events.sh: Add target-changed event.
747 * gdb-events.c: Regenerated.
748 * gdb-events.c: Regenerated.
749 * valops.c (value_assign): Add target-changed event notification
750 to inlval_register, lval_memory, and lval_reg_frame_relative.
751
9fb14e79
JB
7522002-08-21 Joel Brobecker <brobecker@gnat.com>
753
754 * NEWS: Add an entry regarding the improvement of the next/step
755 operation on Alpha Tru64 multi-processor machines.
756
6d39a69f
AC
7572002-08-21 Andrew Cagney <ac131313@redhat.com>
758
72acd513
AC
759 * Makefile.in: Update dependencies for mi/ cli/ and tui/
760 directores.
342af04b 761 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
762 * Makefile.in (install-gdbtk): Move to install section.
763 (rdi-share/libangsd.a): Move to end of file.
764
fa5f27c7
AC
7652002-08-19 Andrew Cagney <ac131313@redhat.com>
766
767 * frame.c (frame_register_unwind): When a register, set addrp to
768 the register's byte.
769
5a89d8aa
MS
7702002-08-20 Michael Snyder <msnyder@redhat.com>
771
772 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
773 used locally, so move them from the target machine header to here.
774 (mips_set_processor_type, mips_register_name, mips32_next_pc,
775 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
776 Make static.
777 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
778
822e978b
AC
7792002-08-20 Andrew Cagney <cagney@redhat.com>
780
781 * NEWS: Mention that the Apollo line was made obsolete.
782 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
783 m68*-hp-hpux* obsolete.
784 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
785 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
786 * buildsym.c (make_blockvector): Make static.
787 * buildsym.h (make_blockvector): Make extern declaration obsolete.
788 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
789 (ALLDEPFILES): Remove dstread.c.
790 (dstread.o): Obsolete make rule.
791 * dstread.c: Makefile obsolete.
792 * dst.h: Ditto.
793 * config/m68k/hp300hpux.mt: Ditto.
794 * config/m68k/hp300hpux.mh: Ditto.
795 * config/m68k/hp300bsd.mt: Ditto.
796 * config/m68k/hp300bsd.mh: Ditto.
797 * config/m68k/apollo68b.mt: Ditto.
798 * config/m68k/apollo68v.mh: Ditto.
799 * config/m68k/apollo68b.mh: Ditto.
800
e41b17f0
MS
8012002-08-20 Michael Snyder <msnyder@redhat.com>
802
803 * mips-tdep.c (mips_in_return_stub): Make static.
804 (mips_gdbarch_init): Set in_solib_return_trampoline.
805 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
806
d50355b6
MS
8072002-08-20 Michael Snyder <msnyder@redhat.com>
808
809 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
810 * gdbarch.c, gdbarch.h: Regenerate.
811 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
812 Add.
813 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
814
757a7cc6
MS
8152002-08-20 Michael Snyder <msnyder@redhat.com>
816
817 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
818 (mips_gdbarch_init): Set skip_trampoline_code,
819 in_solib_call_trampoline.
820 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
821 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
822
c8001721
EZ
8232002-08-20 Elena Zannoni <ezannoni@redhat.com>
824
825 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
826
827 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
828 vector type for ev registers.
829 (e500_pseudo_register_read): New function.
830 (e500_pseudo_register_write): New function.
831 (e500_dwarf2_reg_to_regnum): New function.
832 (PPC_UISA_NOFP_SPRS): New macro.
833 (PPC_EV_REGS): New macro.
834 (PPC_GPRS_PSEUDO_REGS): New macro.
835 (registers_e500): New register set for e500.
836 (variants): Add e500 variant.
837 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
838 before setting architectural dependent variations. Initialize ev
839 registers numbers. Add case for e500 architecture. Set the
840 number of pseudo registers.
841
64366f1c
EZ
8422002-08-20 Elena Zannoni <ezannoni@redhat.com>
843
844 * rs6000-tdep.c: Clean up comments.
845
7e78f0ca
AC
8462002-08-20 Andrew Cagney <cagney@redhat.com>
847
848 * h8300-tdep.c: Re-indent file.
849
697f7479
JB
8502002-08-20 Jim Blandy <jimb@redhat.com>
851
852 * Makefile.in (LDFLAGS): Allow the configure script to establish a
853 default for this.
697f7479 854
e86ae29f
KS
8552002-08-20 Keith Seitz <keiths@redhat.com>
856
857 * breakpoints.c (watch_command_1): Use internal breakpoint
858 when setting a watchpoint_scope breakpoint.
859
216b504f
EZ
8602002-08-20 Elena Zannoni <ezannoni@redhat.com>
861
862 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
863 (build_builtin_type_vec64i): Ditto.
864 (build_builtin_type_vec128): Ditto.
865 (build_builtin_type_vec128i): Ditto.
866
f7ab6ec6
MS
8672002-08-19 Michael Snyder <msnyder@redhat.com>
868
869 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
870 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
871 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
872 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
873 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
874 CALL_DUMMY_ADDRESS): Delete.
875 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
876 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
877 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
878 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
879 push_return_address.
880 (mips_register_raw_size, mips_eabi_use_struct_convention,
881 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
882 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
883 mips_init_extra_frame_info, mips_eabi_push_arguments,
884 mips_n32n64_push_arguments, mips_push_return_address,
885 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
886 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
887
b5d1566e
MS
8882002-08-19 Michael Snyder <msnyder@redhat.com>
889
890 * mips-tdep.c (mips_frame_num_args): New function.
891 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
892 frame_saved_pc, frame_args_address, frame_locals_address,
893 frame_num_args, and frame_args_skip.
894 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
895 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
896 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
897 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
898
2f1488ce
MS
8992002-08-20 Michael Snyder <msnyder@redhat.com>
900
901 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
902 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
903 * mips-tdep.c (mips_store_struct_return): New function.
904 (mips_extract_struct_value_address): New function.
905 (mips_gdbarch_init): Set store_struct_return and
906 extract_struct_value_address.
907
41ff2da1
DC
9082002-08-20 David Carlton <carlton@math.stanford.edu>
909
910 * dwarf2read.c (dwarf2_build_psymtabs): Check that
911 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
912 (read_file_scope): Check that line_header is nonzero before
913 decoding macro information.
914
e5451d58
MK
9152002-08-20 Mark Kettenis <kettenis@gnu.org>
916
917 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
918 flag the general-purpose registers as floating-point on targets
919 that don't support the floating-point registers.
920
4a6daafa
EZ
9212002-08-20 Elena Zannoni <ezannoni@redhat.com>
922
923 * rs6000-tdep.c (altivec_register_p): Delete.
924 (rs6000_do_altivec_registers): Delete.
925 (rs6000_altivec_registers_info): Delete.
926 (rs6000_do_registers_info): Delete.
927 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
928 (rs6000_gdbarch_init): Remove setting of do_registers_info.
929
ab4327e0
EZ
9302002-08-20 Elena Zannoni <ezannoni@redhat.com>
931
932 * infcmd.c (do_registers_info): Print vector registers in hex
933 format only.
934 (print_vector_info): Check that printing registers
935 makes sense.
936 (print_float_info): Ditto.
937
cb1d2653
AC
9382002-08-20 Andrew Cagney <ac131313@redhat.com>
939
940 * mips-tdep.c (mips_gdbarch_init): Update.
941 (mips_o32_extract_return_value): Rewrite.
942 (mips_o32_store_return_value): Rewrite.
943 (mips_o32_xfer_return_value): New function.
944 (mips_xfer_register): Tweak debug print message. Allow for
945 buf_offset when dumping the value transfered.
946
dfc3d9b2
AC
9472002-08-20 Andrew Cagney <ac131313@redhat.com>
948
949 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
950 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
951 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
952 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
953 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
954
7807aa61
MS
9552002-08-14 Michael Snyder <msnyder@redhat.com>
956
957 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
958
489461e2
EZ
9592002-08-19 Elena Zannoni <ezannoni@redhat.com>
960
961 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
962 register.
963 (P): New macro to define a register as a pseudo register.
964 (R, R4, R8, R16, FR32, R64, R0): Updated.
965 (struct variant): Add new fields for number of pseudo registers
966 and number of total registers.
967 (tot_num_registers): New macro replacing....
968 (num_registers): ...deleted macro.
969 (num_registers): New function.
970 (num_pseudo_registers): New function.
971 (variants): Update all variants to intialize new fields correctly.
972 Postpone initialization of number of pseudo regs and real regs.
973 (init_variants): New function.
974 (rs6000_gdbarch_init): Initialize variants. Update calculation of
975 registers offsets.
976
fcaffe4c
DC
9772002-08-19 David Carlton <carlton@math.stanford.edu>
978
2c2738a0
DC
979 * valops.c (search_struct_field): Change error message to treat
980 return value of 0 from value_static_field as meaning that field is
981 optimized out.
982 (value_struct_elt_for_reference): Ditto.
983 * values.c (value_static_field): Treat an unresolved location the
984 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
985 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
986 enclosed. Fix PR gdb/574.
fcaffe4c
DC
987 * MAINTAINERS: Add self to Write After Approval list.
988
88658117
AC
9892002-08-19 Andrew Cagney <ac131313@redhat.com>
990
991 * mips-tdep.c (mips_xfer_register): New function.
992 (mips_n32n64_extract_return_value): Rewrite.
993 (mips_gdbarch_init): For N32 and N64, set extract_return_value
994 instead of deprecated_extract_return_value.
995
21283beb
EZ
9962002-08-19 Elena Zannoni <ezannoni@redhat.com>
997
998 * rs6000-tdep.c (TDEP): Delete macro.
999 (branch_dest): Replace use of TDEP macro with its body.
1000 (rs6000_pop_frame): Ditto.
1001 (rs6000_push_arguments): Ditto.
1002 (rs6000_skip_trampoline_code): Ditto.
1003 (rs6000_frame_saved_pc): Ditto.
1004 (rs6000_frame_chain): Ditto.
1005 (rs6000_register_name): Ditto.
1006 (rs6000_register_byte): Ditto.
1007 (rs6000_register_raw_size): Ditto.
1008 (rs6000_register_virtual_type): Ditto.
1009 (rs6000_register_convertible): Ditto.
1010 (rs6000_convert_from_func_ptr_addr): Ditto.
1011
bf072999
DJ
10122002-08-19 Daniel Jacobowitz <drow@mvista.com>
1013
1014 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1015 conditionally.
1016 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1017 MIPS_LINUX_JB_ELEMENT_SIZE.
1018 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1019 for MAX_REGISTER_RAW_SIZE arrays.
1020 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1021 MIPS_LINUX_JB_ELEMENT_SIZE.
1022
9b949a49
PM
10232002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1024
1025 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1026
6d3e79c6
AS
10272002-08-19 Aidan Skinner <aidan@velvet.net>
1028
1029 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1030 ada-valprint.c ada-tasks.c.
1031 (YYFILES): Add ada-exp.y.
1032 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1033 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1034 (ada-exp.tab.o): New target.
1035
06c0b04e
AC
10362002-08-18 Andrew Cagney <ac131313@redhat.com>
1037
1038 * regcache.c (regcache_xfer_part): New function.
1039 (regcache_raw_read_part): New function.
1040 (regcache_raw_write_part): New function.
1041 (regcache_cooked_read_part): New function.
1042 (regcache_cooked_write_part): New function.
1043 * regcache.h (regcache_raw_read_part): Declare.
1044 (regcache_raw_write_part): Declare.
1045 (regcache_cooked_read_part): Declare.
1046 (regcache_cooked_write_part): Declare.
1047
92d1e331
DJ
10482002-08-18 Daniel Jacobowitz <drow@mvista.com>
1049
1050 * remote.c (remote_open_1): Add async_p.
1051 (remote_async_open_1): Delete.
1052 (open_remote_target): Delete.
1053 (remote_open, extended_remote_open): Update calls to remote_open_1.
1054 (remote_async_open, extended_remote_async_open): Call
1055 remote_open_1 instead of remote_async_open_1.
1056
247055de
MK
10572002-08-19 Mark Kettenis <kettenis@gnu.org>
1058
1059 * blockframe.c: Fix a few coding standard violations.
1060
641eda39
MK
10612002-08-19 Mark Kettenis <kettenis@gnu.org>
1062
0b717710
MK
1063 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1064 here from ...
1065 * config/i386/tm-i386sco5.h: ... here. File removed.
1066 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1067
26d28e12 1068 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1069 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1070 (TM_FILE): Set to tm-i386.h.
1071 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1072 * config/i386/tm-i386v.h: Remove file.
1073 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1074 instead of "i386/tm-i386v.h".
1075 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1076 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1077 "i386/tm-i386v.h".
1078 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1079 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1080 "i386/tm-i386.h".
1081
d4e0bab4
MK
10822002-08-18 Mark Kettenis <kettenis@gnu.org>
1083
1084 * config/i386/nm-i386v.h: Add protection against
1085 multiple-inclusion.
1086 (i386_register_u_addr): Remove prototype.
1087 (register_u_addr): New prototype.
1088 (REGISTER_U_ADDR): Redefine accordingly.
1089 * i386v-nat.c: Improve several comments.
1090 (i386_register_u_addr): Change signature and rename to
1091 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1092 ubase variable.
1093
46cac009
AC
10942002-08-18 Andrew Cagney <ac131313@redhat.com>
1095
1096 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1097 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1098 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1099 deprecated_extract_return_value.
1100 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1101 rename mips_o32o64_push_arguments.
1102 (mips_gdbarch_init): Update.
1103 (mips_extract_return_value): Delete.
1104 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1105 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1106 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1107 (mips_n32n64_extract_return_value): Clone
1108 mips_extract_return_value.
1109 (mips_store_return_value): Delete.
1110 (mips_o32_store_return_value): Clone mips_store_return_value.
1111 (mips_o64_store_return_value): Clone mips_store_return_value.
1112 (mips_eabi_store_return_value): Clone mips_store_return_value.
1113 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1114
d2e4a39e
AS
11152002-08-18 Aidan Skinner <aidan@velvet.net>
1116
0c30c098
AS
1117 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1118 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1119
11202002-08-18 Aidan Skinner <aidan@velvet.net>
1121
1122 * ada-lang.c: Run through gdb_indent.sh.
1123 * ada-lang.h: Run through gdb_indent.sh.
1124 * ada-tasks.c: Run through gdb_indent.sh.
1125 * ada-typeprint.c: Run through gdb_indent.sh.
1126 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1127
01fc4e33
AC
11282002-08-18 Andrew Cagney <ac131313@redhat.com>
1129
1130 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1131 ABI.
1132
d8ee244c
MK
11332002-08-18 Mark Kettenis <kettenis@gnu.org>
1134
c38d8261
MK
1135 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1136
222db64c
MK
1137 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1138 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1139
c2848c82
MK
1140 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1141 write_register_gen instead of write_register_bytes.
1142
d8ee244c
MK
1143 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1144 i[3456]-*-osf1mk* configurations have been made obsolete.
1145 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1146 i[3456]86-*-osf1mk* hosts obsolete.
1147 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1148 targets obsolete.
1149 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1150 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1151 config/i386/i386m3.mt, config/i386/nm-m3.h,
1152 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1153 config/i386/i386mk.mh, config/i386/i386mk.mt,
1154 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1155 obsolete.
1156 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1157 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1158 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1159
61d8d407
AC
11602002-08-18 Andrew Cagney <ac131313@redhat.com>
1161
1162 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1163 (hppa_value_returned_from_stack): Declare.
1164 (hppa_extract_return_value): Declare.
1165 * config/pa/hppa.mt: New file.
1166 * configure.tgt: Recognize hppa*-*-*.
1167 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1168
0c52bd59
MK
11692002-08-18 Mark Kettenis <kettenis@gnu.org>
1170
1171 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1172 comment.
1173
b5686e99
MK
11742002-08-17 Mark Kettenis <kettenis@gnu.org>
1175
1176 * top.c (gdb_rl_operate_and_get_next): Make sure
1177 operate-and-get-next functions correctly even when the history
1178 list is completely filled.
1179
c1bab85b
AC
11802002-08-18 Andrew Cagney <ac131313@redhat.com>
1181
1182 * MAINTAINERS (Target Instruction Set Architectures): Rename
1183 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1184 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1185 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1186 already listed under Host/Native.
1187
1188 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1189 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1190 mips*-*-*.
1191
32089c7c
AC
11922002-08-17 Andrew Cagney <ac131313@redhat.com>
1193
1194 * config/ia64/ia64.mt: New file.
1195 * config/alpha/alpha.mt: New file.
1196 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1197 ia64-linux-gnu. Mention that ia64-elf is broken.
1198 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1199
b4671f85
MK
12002002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1201
1202 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1203 generic_func_frame_valid instead of func_frame_valid.
1204
c8edd8b4
JB
12052002-08-16 Joel Brobecker <brobecker@gnat.com>
1206
1207 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1208 procfs appears to be broken when debugging on multi-processor
1209 machines. So enable software single stepping in order to avoid
1210 using the procfs interface to do next/step operations, using
1211 internal breakpoints instead.
1212
1213 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1214 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1215 make this pc address equal to the value it would have if the
1216 system stepping capability was used. Also set a new flag used
1217 to ensure that we don't readjust the PC one more time later.
1218
1219 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1220 address by DECR_PC_AFTER_BREAK when software single step is
1221 in use for this architecture, as this has already been taken
1222 care of in handle_inferior_event().
1223
238617f6
JB
12242002-08-16 Joel Brobecker <brobecker@gnat.com>
1225
1226 * infrun.c (handle_inferior_event): Minor reformatting, to make
1227 a rather long condition expression easier to read.
1228
541a7aac
AC
12292002-08-16 Andrew Cagney <ac131313@redhat.com>
1230
1231 * Makefile.in (gdbtk.o): Move to end of file.
1232 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1233 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1234 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1235 (gdbtk-wrapper.o, gdbres.o): Ditto.
1236
f92d4a7b
AC
12372002-08-16 Andrew Cagney <ac131313@redhat.com>
1238
1239 * Makefile.in (copying.o): Separate out compile rule.
1240 (hpux-thread.o, procfs.o, signals.o): Ditto.
1241 (v850ice.o, z8k-tdep.o): Ditto.
1242 (tui-file.o): Move to TUI section.
1243 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1244 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1245
1cce71eb
JB
12462002-08-16 Joel Brobecker <brobecker@gnat.com>
1247
1248 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1249 skip_trampoline_code, for better namespace-proofing.
1250
1251 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1252
0851f23d
JB
12532002-08-16 Joel Brobecker <brobecker@gnat.com>
1254
1255 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1256
f8d40ec8
JB
12572002-08-16 Joel Brobecker <brobecker@gnat.com>
1258
1259 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1260 signal, check whether we hit a breakpoint before checking for a
1261 single step breakpoint. Otherwise, GDB fails to notice that a
1262 breakpoint has been hit when stepping onto a breakpoint.
1263
63d022e0
KS
12642002-08-16 Keith Seitz <keiths@redhat.com>
1265
1266 * gdb-events.sh (clear_gdb_event_hooks): New function.
1267 * gdb-events.c: Regenerate.
1268 * gdb-events.h: Regenerate.
1269
6e31adb3
AC
12702002-08-16 Andrew Cagney <ac131313@redhat.com>
1271
1272 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1273 not_a_sw_breakpoint.
1274 * breakpoint.h (bpstat_stop_status): Add parameter names.
1275
c8189ed1
GS
12762002-08-16 Grace Sainsbury <graces@redhat.com>
1277
1278 * remote.c (remote_insert_hw_breakpoint)
1279 (remote_remove_hw_breakpoint): Fix calculation of length field
1280 for Z-packet.
1281
d05285fa
MS
12822002-08-15 Michael Snyder <msnyder@redhat.com>
1283
466d7106
MS
1284 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1285 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1286 (supply_fpregset): Ditto.
1287
d05285fa
MS
1288 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1289 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1290 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1291 (TARGET_READ_SP): Delete.
bf1f5b4c 1292 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1293 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1294 Delete.
1295 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1296 from macros to functions.
bf1f5b4c 1297
d05285fa
MS
1298 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1299 (mips_register_convertible, mips_register_convert_to_virtual,
1300 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1301 (mips_read_sp): New function.
1302 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1303 (mips_do_registers_info): Make static.
1304 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1305 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1306 (mips_register_convert_from_type, mips_register_convert_to_type):
1307 New functions.
1308 (mips_gdbarch_init): Set up function_start_offset,
1309 register_virtual_size, pc_in_sigtramp.
d05285fa 1310
e76f1f2e
AC
13112002-08-15 Andrew Cagney <ac131313@redhat.com>
1312
1313 * infcmd.c (vector_info): New function.
1314 (_initialize_infcmd): Add command "info vector".
1315 (print_vector_info): New function.
1316
1317 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1318 * gdbarch.h, gdbarch.c: Regenerate.
1319
4782dc19
AC
13202002-08-15 Andrew Cagney <ac131313@redhat.com>
1321
1322 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1323 ``print_all''. Only print vector registers when ``print_all''.
1324
23e3a7ac
AC
13252002-08-15 Andrew Cagney <ac131313@redhat.com>
1326
8e186fd6
AC
1327 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1328 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1329
23e3a7ac
AC
1330 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1331 Add `args' parameter.
1332 * gdbarch.h, gdbarch.c: Regenerate.
1333
1334 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1335
1336 * infcmd.c (float_info): Call print_float_info.
1337 (print_float_info): New function. By default, print the
1338 floating-point registers.
1339
1340 * arch-utils.h (default_print_float_info): Delete declaration.
1341 * arch-utils.c (default_print_float_info): Delete function.
1342
e0ca2bb9
MK
13432002-08-16 Mark Kettenis <kettenis@gnu.org>
1344
3f733acc
MK
1345 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1346 out define.
1347
7d8d2918
MK
1348 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1349 FRAME.
1350
1c7cc583
MK
1351 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1352 * configure.host: Make i[3456]86-*-aix host obsolete.
1353 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1354 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1355 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1356 config/i386/xm-i386aix.h: Make files obsolete.
1357 * i386aix-nat.c: Make file obsolete.
1358 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1359 (i386aix-nat.o): Make target obsolete.
1360
e0ca2bb9
MK
1361 * config/i386/nm-gnu.h: Removed.
1362 * config/i386/nm-i386gnu.h: New file.
1363 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1364 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1365 Moved here from ...
1366 * config/i386/tm-i386gnu.h: ... here. Removed.
1367 * config/i386/xm-i386gnu.h: Removed.
1368 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1369 (NAT_FILE): Set to nm-i386gnu.h.
1370 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1371 * i386-tdep.c: New file.
1372 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1373 (i386gnu-tdep.o): Specify dependencies.
1374
16057ec7 13752002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1376
6b99ee2e
MK
1377 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1378 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1379 Adjust a few comments to reflect reality a bit closer.
1380 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1381 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1382 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1383 target_insert_watchpoint, target_remove_watchpoint):
1384 Move defines to ...
1385 * config/i386/nm-i386sco5.h: ... here.
1386 (kernel_u_size): Add prototype. Improve a few comments and add
1387 protection against multiple inclusion.
1388
d9a6f65c
MK
1389 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1390 out define.
1391
047eff6a
MK
1392 * uw-thread.c (SP_ARG0): Define if not already defined.
1393 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1394
dcdb1290
MK
1395 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1396
5d2d0b2a
MK
1397 * config/i386/tm-i386.h: Don't include "regcache.h".
1398
61113f8b
MK
1399 * i387-tdep.h (i387_print_float_info): New prototype.
1400 * i387-tdep.c (print_i387_value, print_i387_ext,
1401 print_i387_status_word, print_i387_control_word): Add `struct
1402 ui_file *' argument and use it for output.
1403 (i387_print_float_info): Renamed from i387_float_info. Add
1404 `struct gdbarch *' and `struct ui_file *' arguments and use the
1405 latter for output.
1406 * i386-tdep.c: Include "i387-tdep.h".
1407 (i386_gdbarch_init): Set print_float_info.
1408 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1409 (FLOAT_INFO): Remove define.
1410
46e0f506
MS
14112002-08-13 Michael Snyder <msnyder@redhat.com>
1412
1413 * mips-tdep.c (mips_push_arguments): Rename to
1414 mips_eabi_push_arguments, and tune for EABI.
1415 (MIPS_REGS_HAVE_HOME_P): Delete.
1416 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1417 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1418 Delete references to mips_regs_have_home_p.
1419
409268de
KS
14202002-08-14 Keith Seitz <keiths@redhat.com>
1421
1422 * Makefile.in (install-gdbtk): Create insight plugin directory.
1423 Install plugins.tcl file.
1424
ffc6a242
KS
14252002-08-14 Keith Seitz <keiths@redhat.com>
1426
1427 * configure.in: Move SUBDIRS to near top of the file so that
1428 --enable options may add things to it.
1429 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1430 * configure: Regenerate.
1431
ebafbe83
MS
14322002-08-13 Michael Snyder <msnyder@redhat.com>
1433
1434 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1435 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1436 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1437
32f6f25d
AC
14382002-08-13 Andrew Cagney <ac131313@redhat.com>
1439
1440 * vax-tdep.c (vax_get_saved_register): Delete function.
1441 (vax_gdbarch_init): Update.
1442 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1443 (ns32k_gdbarch_init): Update.
1444 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1445 (alpha_gdbarch_init): Update.
1446
53826de9
AC
14472002-08-13 Andrew Cagney <cagney@redhat.com>
1448
1449 * regcache.c (init_regcache_descr): Overallocate the
1450 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1451 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1452 nr_raw_registers.
1453 (set_register_cached): Add range checking assertions. Use
1454 current_regcache.
1455
16057ec7 14562002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1457
1458 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1459 numbers for MMX registers.
1460
7b4c2dce
AC
14612002-08-13 Andrew Cagney <cagney@redhat.com>
1462
1463 * i386-tdep.c (i386_gdbarch_init): Use
1464 generic_unwind_get_saved_register.
1465
1e03ad20
KB
14662002-08-13 Kevin Buettner <kevinb@redhat.com>
1467
1468 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1469 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1470 target vector.
1471 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1472 Delete. Add comment regarding this now-deleted target method.
1473
548bcbec
SC
14742002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1475
1476 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1477 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1478 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1479 real PC and the page number (if it's within the memory bank window).
1480 (m68hc11_pseudo_register_write): Likewise when saving.
1481 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1482 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1483 (m68hc11_register_raw_size): And use 32-bit for it.
1484 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1485 16K memory bank is used by the prog; also use the virtual pc.
1486
7df11f59
SC
14872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1488
1489 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1490 (m68hc11_gdbarch_init): Install it in gdbarch.
1491 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1492 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1493 (MSYMBOL_SIZE): New for documentation.
1494 (insn_return_kind): Enum to specify how a function returns.
1495 (frame_extra_info): Cleanup and record the return mode.
1496 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1497 register in address computation.
1498 (m68hc11_get_return_insn): New to obtain the return instruction used
1499 by the function.
1500 (m68hc11_frame_init_saved_regs): Take into account the return
1501 instruction used by the function for far and interrupt functions.
1502 (m68hc11_init_extra_frame_info): Take into account page register.
1503 (m68hc11_frame_args_address): Adjust according to the return mode.
1504 (show_regs): Print page register only when it's used.
1505
5706502a
SC
15062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1507
1508 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1509 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1510 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1511 registers.
1512 (m68hc11_register_raw_size): Likewise.
1513
28fc6740
AC
15142002-08-13 Andrew Cagney <cagney@redhat.com>
1515
1516 * i386-tdep.c (i386_register_name): Handle mmx registers.
1517 (mmx_regnum_p): New function.
1518 (i386_mmx_names): New array.
1519 (mmx_num_regs): New variable.
1520 (i386_pseudo_register_read): New function.
1521 (i386_pseudo_register_write): New function.
1522 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1523
1524 * regcache.c (regcache_raw_read_unsigned): New function.
1525 (regcache_raw_read_signed): New function.
1526 * regcache.h (regcache_raw_read_unsigned): Declare.
1527 (regcache_raw_read_signed): Declare.
1528
a378f419
AC
15292002-08-13 Andrew Cagney <cagney@redhat.com>
1530
1531 * regcache.c (regcache_raw_read_as_address): Delete function.
1532 (regcache_cooked_read_signed): New function.
1533 (regcache_cooked_read_unsigned): New function.
1534 * regcache.h (regcache_cooked_read_signed): Declare.
1535 (regcache_cooked_read_unsigned): Declare.
1536 (regcache_raw_read_as_address): Delete declaration.
1537
1538 * blockframe.c (generic_read_register_dummy): Use
1539 regcache_cooked_read_unsigned.
1540 * i386-tdep.c (i386_extract_struct_value_address): Use
1541 regcache_cooked_read_unsigned.
1542
81967506
SC
15432002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1544
1545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1546 double sizes according to ELF ABI flags.
1547 (gdbarch_tdep): Record elf_flags.
1548
ffe1f3ee
SC
15492002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1550
1551 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1552 (m6812_prolog): They can appear in 68HC12 function prologue.
1553 (m68hc11_frame_chain): Cleanup.
1554
98216c5d
AC
15552002-08-12 Andrew Cagney <cagney@redhat.com>
1556
1557 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1558 declarations.
1559 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1560 (i386_linux_register_raw_size): Delete function.
1561 (i386_linux_init_abi): Update.
1562 * i386-tdep.c (i386_register_raw_size): Delete function.
1563 (i386_register_byte): Delete function.
1564 (i386_gdbarch_init): Update.
1565 (i386_register_size): Delete array.
1566 (i386_register_offset): Delete array.
1567
1568 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1569 (REGISTER_RAW_SIZE): Delete macro.
1570 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1571 (REGISTER_BYTE): Delete macro.
1572
3b19021e
AS
15732002-08-11 Aidan Skinner <aidan@velvet.net>
1574
1575 * ada-lang.c (ada_lookup_partial_symbol)
1576 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1577 prototype names so that grep ^func works properly.
1578
1579 * ada-lang.c (ada_array_element_type)
1580 (ada_lookup_partial_symbol): Fix typos in parameter list.
1581
1582 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1583 Fix prototype names so that grep ^func works properly.
1584
b063e7a2
AC
15852002-08-10 Andrew Cagney <cagney@redhat.com>
1586 Elena Zannoni <ezannoni@redhat.com>
1587 Martin M. Hunt <hunt@redhat.com>
1588
1589 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1590 (build_builtin_type_vec128i): Set the vector bit.
1591 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1592 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1593 (build_builtin_type_vec64): New function.
1594 (build_builtin_type_vec64i): New function.
1595 (build_gdbtypes): Initialize builtin_type_vec64 and
1596 builtin_type_vec64i.
1597
a7e3c2ad
AC
15982002-08-09 Andrew Cagney <cagney@redhat.com>
1599
1600 * regcache.c (regcache_dump): Compare the register offset
1601 with REGISTER_BYTE.
1602 * arch-utils.c (generic_register_byte): New function.
1603 * arch-utils.h (generic_register_byte): Declare.
1604 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1605 * gdbarch.h, gdbarch.c: Regenerate.
1606
af030b9a
AC
16072002-08-09 Andrew Cagney <cagney@redhat.com>
1608
1609 * regcache.c: Include "gdbcmd.h"
1610 (_initialize_regcache): Add commands "maintenance print
1611 registers", "maintenance print raw-registers" and "maintenance
1612 print cooked-registers".
1613 (enum regcache_dump_what): Define.
1614 (dump_endian_bytes): New function.
1615 (regcache_dump): New function.
1616 (regcache_print): New function.
1617 (maintenance_print_registers): New function.
1618 (maintenance_print_raw_registers): New function.
1619 (maintenance_print_cooked_registers): New function.
1620 * Makefile.in (regcache.o): Update dependencies.
1621
cb3d25d1
MS
16222002-08-09 Michael Snyder <msnyder@redhat.com>
1623
1624 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1625 (mips_push_arguments): Correct some comments. Use paddr_nz
1626 for printing addresses in debug output. Replace static
1627 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1628 (mips_n32n64_push_arguments): New function, cloned from
1629 mips_push_arguments and tuned for the n32/n64 ABI.
1630 (mips_push_register): Buffer needs dynamic allocation.
1631 (mips_print_register): Ditto.
1632 (do_gp_register_row): Ditto.
1633 (mips_store_return_value): Ditto.
1634 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1635
2163ab9d
DH
16362002-08-09 Don Howard <dhoward@redhat.com>
1637
1638 * memattr.c (mem_info_command): Print special case of upper bound
1639 as max CORE_ADDR + 1.
1640
b78bcb18
MS
16412002-08-08 Michael Snyder <msnyder@redhat.com>
1642
1643 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1644 returns structs by ref if they're too big to fit in two registers.
1645
ffabd70d
KB
16462002-08-09 Kevin Buettner <kevinb@redhat.com>
1647
1648 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1649 saved regs value.
1650 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1651 mips_find_saved_regs().
1652 (mips_pop_frame): Likewise.
1653
fbcdb4a3
KB
16542002-08-09 Kevin Buettner <kevinb@redhat.com>
1655
1656 * blockframe.c (frame_saved_regs_register_unwind): Revise
1657 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1658 frames are in use.
1659
3c3bea1c
GS
16602002-08-09 Grace Sainsbury <graces@redhat.com>
1661
1662 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1663 T-packets; the 'a' is not taken as a register number.
1664 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1665 (remote_stopped_data_address): New functions; add to target
1666 vector.
1667 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1668 prototypes to match other implementations of this
1669 function. replace integer argument with pointer -- the length
1670 field in the Z-packet is the length of what is pointed to or 1 if
1671 pointer is null. Add to target vector.
1672 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1673 target vector.
1674
1675 From Mark Salter:
1676 * remote.c (remote_wait): Add support to extract optional
1677 watchpoint information from T-packet. Ignore unrecognized
1678 optional info in T-packet.
1679 (remote_async_wait): Ditto.
1680
5d1d95de
CV
16812002-08-09 Corinna Vinschen <vinschen@redhat.com>
1682
1683 * cli/cli-dump.c: Change fopen modes to use binary open modes
1684 as defined in include/fopen-bin.h throughout.
1685
c86b5b38
MS
16862002-08-08 Michael Snyder <msnyder@redhat.com>
1687
1688 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1689
b30590dc
KB
16902002-08-08 Kevin Buettner <kevinb@redhat.com>
1691
1692 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1693 assertion failure by returning early after a warning.
1694
498868ed
KB
16952002-08-08 Kevin Buettner <kevinb@redhat.com>
1696
1697 * mips-tdep.c (mips_find_saved_regs): Make static.
1698 (mips_frame_init_saved_regs): New function.
1699 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1700 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1701 (mips_find_saved_regs): Delete declaration.
1702
b2dd6311
GS
17032002-08-08 Grace Sainsbury <graces@redhat.com>
1704
3c3bea1c
GS
1705 * remote.c (remote_wait, remote_async_wait): Change
1706 thread_num from int to ULONGEST.
1707 (unpack_varlen_hex): Change result parameter from
1708 int * to ULONGEST *.
b2dd6311 1709
ea47855f
AC
17102002-08-08 Andrew Cagney <ac131313@redhat.com>
1711
1712 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1713 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1714 powerpc*-*-*.
1715 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1716
69db8bae
AC
17172002-08-08 Andrew Cagney <cagney@redhat.com>
1718
1719 * gcore.c (override_derive_stack_segment): Delete variable.
1720 (preempt_derive_stack_segment): Delete function.
1721 (derive_stack_segment): Delete function.
1722 (default_derive_stack_segment): Renamed to derive_stack_segment.
1723 (override_derive_heap_segment): Delete variable.
1724 (preempt_derive_heap_segment): Delete function.
1725 (derive_heap_segment): Delete function.
1726 (default_derive_heap_segment): Rename to derive_heap_segment.
1727
cb811fe7
MS
17282002-08-06 Michael Snyder <msnyder@redhat.com>
1729
1730 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1731 * mips-tdep.c (mips_EABI_use_struct_convention,
1732 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1733 New functions. (mips_use_struct_convention): Delete.
1734 (mips_gdbarch_init): set use_gdbarch_convention.
1735
8b389c40
MS
17362002-08-06 Michael Snyder <msnyder@redhat.com>
1737
1738 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1739 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1740 mips_o32_reg_struct_has_addr): New functions.
1741 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1742
5c27f28a
AC
17432002-08-07 Andrew Cagney <ac131313@redhat.com>
1744
1745 * regcache.c (pseudo_register): Delete function.
1746 (fetch_register): Delete function.
1747 (store_register): Delete function.
1748 (regcache_raw_read, legacy_read_register_gen): Use
1749 target_fetch_registers instead of fetch_register.
1750 (legacy_write_register_gen, regcache_raw_write): Use
1751 target_store_register instead of store_register.
1752 (write_register_bytes): Ditto.
1753
1754 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1755 (STORE_PSEUDO_REGISTER): Delete.
1756 * gdbarch.h, gdbarch.c: Regenerate.
1757
5b331675
CV
17582002-08-06 Corinna Vinschen <vinschen@redhat.com>
1759
1760 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1761 write dump file binary.
1762
6acdf5c7
MS
17632002-08-05 Michael Snyder <msnyder@redhat.com>
1764
1765 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1766 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1767 (mips_gdbarch_init): Set N32 target to be mips64.
1768
b2f01c35
KB
17692002-08-06 Kevin Buettner <kevinb@redhat.com>
1770
1771 * frame.c (find_saved_register): Break out of loop once saved
1772 register address is found. Don't mention sparc in loop comment
1773 anymore.
1774
63db5580
KB
17752002-08-06 Kevin Buettner <kevinb@redhat.com>
1776
1777 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1778 mips_default_saved_regsize to 8.
1779
5e34e75e
AC
17802002-08-06 Andrew Cagney <ac131313@redhat.com>
1781
1782 * gcore.c: Do not include <sys/procfs.h>.
1783 * Makefile.in (gcore.o): Update dependencies.
1784
eb4c54a2
AC
17852002-08-06 Andrew Cagney <cagney@redhat.com>
1786
1787 * configure.tgt: Make arc-*-* obsolete.
1788 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1789 * MAINTAINERS: Make arc-elf obsolete.
1790 * arc-tdep.c: Make file obsolete.
1791 * config/arc/arc.mt: Ditto.
1792 * config/arc/tm-arc.h: Ditto.
1793
ced15480
TR
17942002-08-05 Theodore A. Roth <troth@verinet.com>
1795
c1bab85b 1796 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1797
b4743822
AC
17982002-08-05 Andrew Cagney <ac131313@redhat.com>
1799
1800 * mcore-tdep.c (mcore_gdbarch_init): Use
1801 generic_unwind_get_saved_register instead of
1802 generic_get_saved_register.
1803 * v850-tdep.c (v850_gdbarch_init): Ditto.
1804 * frv-tdep.c (frv_gdbarch_init): Ditto.
1805 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1806 * s390-tdep.c (s390_gdbarch_init): Ditto.
1807 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1808 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1809 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1810
3956d554
JB
18112002-08-05 Joel Brobecker <brobecker@gnat.com>
1812
1813 * objfiles.h: Add missing #include "symfile.h"
1814
1815 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1816
8249c0d6
AC
18172002-08-04 Andrew Cagney <ac131313@redhat.com>
1818
1819 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1820 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1821 of FIELD_BITSIZE.
1822
b9d14705
DJ
18232002-08-04 Daniel Jacobowitz <drow@mvista.com>
1824
1825 * NEWS: Cleanup and nitpick.
1826
dd73b9bb
AC
18272002-08-03 Andrew Cagney <ac131313@redhat.com>
1828
1829 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1830
043a27f8
AC
18312002-08-03 Andrew Cagney <ac131313@redhat.com>
1832
1833 * Makefile.in (gdbtk-bp.o): Update dependencies.
1834 (gdbtk-register.o): Ditto.
1835 (gdbtk-varobj.o): Ditto.
1836
46ce284d
AC
18372002-08-03 Andrew Cagney <cagney@redhat.com>
1838
1839 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1840 m68hc11_fetch_pseudo_register.
1841 (m68hc11_pseudo_register_write): Replace
1842 m68hc11_store_pseudo_register.
1843 (m68hc11_gdbarch_init): Update.
1844
b66d6d2e
AC
1845Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1846
1847 * gdbarch.sh: Include "gdb_string.h".
1848 * gdbarch.c: Regenerate.
1849
1850 * regcache.c: Include "gdb_string.h".
1851 * ax-general.c: Ditto.
1852 * varobj.c: Ditto.
1853 * std-regs.c: Ditto.
1854 * fbsd-proc.c: Ditto.
1855 * thread.c: Ditto.
1856
1857 * Makefile.in (regcache.o): Update dependencies.
1858 (thread.o, gdbarch.o): Ditto.
1859 (ax-general.o, gdbarch.o): Ditto.
1860 (varobj.o, std-regs.o): Ditto.
1861 (fbsd-proc.o): Specify dependencies.
1862
29e1842b
AC
18632002-08-02 Andrew Cagney <cagney@redhat.com>
1864
1865 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1866 regnum.
1867 (regcache_cooked_write): Ditto.
1868
68365089
AC
18692002-08-02 Andrew Cagney <ac131313@redhat.com>
1870
1871 * regcache.c (regcache_cooked_read): New function.
1872 (regcache_cooked_write): New function.
1873 (read_register_gen): Rewrite using regcache_cooked_read.
1874 (write_register_gen): Rewrite using regcache_cooked_write.
1875
1876 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1877 Declare.
1878
d8124050
AC
18792002-08-02 Andrew Cagney <cagney@redhat.com>
1880
1881 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1882 Replace the architecture methods register_read and register_write.
1883 * gdbarch.h, gdbarch.c: Regenerate.
1884 * regcache.c (init_regcache_descr): Update.
1885 (read_register_gen): Update.
1886 (write_register_gen): Update.
1887 (supply_register): Update comment.
1888
1889 * sh-tdep.c (sh_gdbarch_init): Update.
1890 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1891 `regcache' and `gdbarch' parameters. Make `buffer' a void
1892 pointer. Update code.
1893 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1894 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1895 void pointer. Update code.
1896 (sh64_register_write): Delete.
1897 (sh4_register_read): Delete.
1898 (sh64_register_read): Delete.
1899 (sh4_register_write): Delete.
1900 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1901 void pointer, `to' parameter a void pointer.
1902 (sh_sh64_register_convert_to_raw): Ditto.
1903
a6425924
KB
19042002-08-01 Kevin Buettner <kevinb@redhat.com>
1905
1906 * mips-tdep.c (mips_register_virtual_type): Use architecture
1907 invariant return values.
1908
ff5922b5
AC
19092002-08-01 Andrew Cagney <cagney@redhat.com>
1910
1911 * linux-proc.c: Include "gdb_string.h".
1912 * Makefile.in (linux-proc.o): Update dependency list.
1913
32a6503c
KB
19142002-08-01 Kevin Buettner <kevinb@redhat.com>
1915
1916 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1917 comment.
1918
ccaa32c7
GS
19192002-08-01 Grace Sainsbury <graces@redhat.com>
1920
1921 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1922 to_insert_watchpoint, to_remove_watchpoint,
1923 to_stopped_by_watchpoint, to_stopped_data_address,
1924 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1925 target vecctor. Define their corresponding macros so they call
1926 them.
1927
1928 * target.c: Add default and debug versions of for
1929 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1930 to_insert_watchpoint, to_remove_watchpoint,
1931 to_stopped_by_watchpoint, to_stopped_data_address,
1932 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1933
78fde5f8
KB
19342002-08-01 Kevin Buettner <kevinb@redhat.com>
1935
1936 * mips-tdep.c (mips_register_virtual_type): New function.
1937 (mips_gdbarch_init): Register mips_register_virtual_type()
1938 with gdbarch machinery.
1939 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1940 this file instead of tm-bigmips.h.
1941 (MIPS_REGSIZE): Delete this macro.
1942 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1943 multiarch version in mips-tdep.c will be found.
1944
db034ac5
AC
19452002-08-01 Andrew Cagney <cagney@redhat.com>
1946
1947 * NEWS: Menion that CHILL has been made obsolete.
1948
1949 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1950 * stabsread.c (read_range_type): Ditto.
1951 * gdbtypes.h: Ditto.
1952 * language.c (binop_type_check): Ditto.
1953 (binop_result_type): Ditto.
1954 (integral_type): Ditto.
1955 (character_type): Ditto.
1956 (string_type): Ditto.
1957 (boolean_type): Ditto.
1958 (structured_type): Ditto.
1959 (lang_bool_type): Ditto.
1960 (binop_type_check): Ditto.
1961 * language.h (_LANG_chill): Ditto.
1962 * dwarfread.c (set_cu_language): Ditto.
1963 * dwarfread.c (CHILL_PRODUCER): Ditto.
1964 * dwarfread.c (handle_producer): Ditto.
1965 * expression.h (enum exp_opcode): Ditto.
1966 * eval.c: Ditto for comments.
1967 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1968 * expprint.c (print_subexp): Ditto.
1969 (print_subexp): Ditto.
1970 * valops.c (value_cast): Ditto.
1971 (search_struct_field): Ditto.
1972 * value.h (COERCE_VARYING_ARRAY): Ditto.
1973 * symfile.c (init_filename_language_table): Ditto.
1974 (add_psymbol_with_dem_name_to_list): Ditto.
1975 * valarith.c (value_binop): Ditto.
1976 (value_neg): Ditto.
1977 * valops.c (value_slice): Ditto.
1978 * symtab.h (union language_specific): Ditto.
1979 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1980 (SYMBOL_DEMANGLED_NAME): Ditto.
1981 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1982 * defs.h (enum language): Ditto.
1983 * symtab.c (got_symtab): Ditto.
1984 * utils.c (fprintf_symbol_filtered): Ditto.
1985
1986 * ch-typeprint.c: Make file obsolete.
1987 * ch-valprint.c: Make file obsolete.
1988 * ch-lang.h: Make file obsolete.
1989 * ch-exp.c: Make file obsolete.
1990 * ch-lang.c: Make file obsolete.
1991
1992 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1993 CHILL_LIB.
1994 (TARGET_FLAGS_TO_PASS): Ditto.
1995 (CHILLFLAGS): Obsolete.
1996 (CHILL): Obsolete.
1997 (CHILL_FOR_TARGET): Obsolete.
1998 (CHILL_LIB): Obsolete.
1999 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2000 ch-valprint.c.
2001 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2002 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2003 ch-lang.o.
2004 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2005 targets.
2006
8aaf0b47
JB
20072002-07-31 Joel Brobecker <brobecker@gnat.com>
2008
2009 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2010 This does not change anything at the moment, but will be helpful
2011 later when full Ada support is integrated.
2012
f3a7b3a5
KB
20132002-07-31 Kevin Buettner <kevinb@redhat.com>
2014
2015 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2016 help message.
2017
fb850278
KB
20182002-07-31 Kevin Buettner <kevinb@redhat.com>
2019
2020 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2021 and save it in a local variable. Use variable in later test.
2022
e3bddbfa
KB
20232002-07-31 Kevin Buettner <kevinb@redhat.com>
2024
2025 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2026 test. (Thanks to Daniel Jacobowitz.)
2027
28d169de
KB
20282002-07-31 Kevin Buettner <kevinb@redhat.com>
2029
2030 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2031 (mips_abi_strings): Add "n64".
2032 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2033
7fe7e44e
KB
20342002-07-31 Kevin Buettner <kevinb@redhat.com>
2035
2036 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2037 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2038
c6caf090
KB
20392002-07-31 Kevin Buettner <kevinb@redhat.com>
2040
2041 * utils.c (host_pointer_to_address, address_to_host_pointer):
2042 Use gdb_assert() instead of explicit call to internal_error().
2043
c41669e0
KB
20442002-07-30 Kevin Buettner <kevinb@redhat.com>
2045
2046 * Makefile.in (rs6000-nat.o): Update dependencies.
2047
2048 From Nicholas Duffek:
2049 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2050 (aix-thread.o): New rule.
2051 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2052 * config/powerpc/aix432.mh: New file.
2053
2fda4977
DJ
20542002-07-30 Daniel Jacobowitz <drow@mvista.com>
2055
2056 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2057 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2058 (fetch_core_registers, ppc_linux_supply_gregset)
2059 (ppc_linux_supply_fpregset): New functions.
2060 (ppc_linux_regset_core_fns): New.
2061 (_initialize_ppc_linux_tdep): Call add_core_fns.
2062 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2063 and ppc_linux_supply_gregset.
2064 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2065 (supply_fpregset): Call ppc_linux_supply_fpregset.
2066 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2067 corelow.o.
2068 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2069
729051e6
DJ
20702002-07-30 Daniel Jacobowitz <drow@mvista.com>
2071
2072 * symtab.c (lookup_symbol): Demangle before lowercasing.
2073
5f8a3188
AC
20742002-07-30 Andrew Cagney <ac131313@redhat.com>
2075
2076 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2077 declaration.
2078 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2079 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2080 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2081 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2082 "gdb_string.h".
2083 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2084 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2085 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2086 (avr-tdep.o, mon960-rom.o): Ditto.
2087 (aout_stabs_gnu_h): Define.
2088 (symtab_h): Remove $(gdb_obstack_h).
2089
67f07146
JB
20902002-07-30 Jim Blandy <jimb@redhat.com>
2091
2092 Patch from David Carlton <carlton@math.stanford.edu>:
2093 * gdbinit.in: Move the `dir' commands that add GDB's own source
2094 directory to the search path to the end, so that the `gdb' source
2095 directory will be searched first.
2096
04ea0df1
AC
20972002-07-29 Andrew Cagney <ac131313@redhat.com>
2098
2099 * gdb_obstack.h: New file.
2100 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2101 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2102 * objfiles.h: Include "gdb_obstack.h".
2103 * Makefile.in (gdb_obstack_h): Define.
2104 (symtab_h): Add $(gdb_obstack_h).
2105 (objfiles_h): Add $(gdb_obstack_h).
2106
2107 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2108 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2109 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2110 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2111 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2112 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2113 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2114 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2115
2116 * Makefile.in (bcache.o): Update dependencies.
2117 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2118 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2119 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2120 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2121 (stabsread.o, symfile.o, symmisc.o): Ditto.
2122 (symtab.o, typeprint.o, macroexp.o): Ditto.
2123 (macrotab.o, mdebugread.o): Ditto.
2124 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2125 (coff_ecoff_h, aout_aout64_h): Define.
2126 (aout_stabs_gnu_h, libaout_h): Define.
2127
d138e37a
AC
21282002-07-29 Andrew Cagney <cagney@redhat.com>
2129
2130 * regcache.c (struct regcache_descr): Rename nr_registers to
2131 nr_cooked_registers. Revise comments describing the structure
2132 member fields.
2133 (init_regcache_descr): Update.
2134 (init_legacy_regcache_descr): Update.
2135 (read_register_gen, write_register_gen): When a cooked register in
2136 the raw register range, directly access the value from the raw
2137 register cache.
2138
460e6ec3
AC
21392002-07-29 Andrew Cagney <ac131313@redhat.com>
2140
2141 * z8k-tdep.c: Do not include "obstack.h".
2142 * h8300-tdep.c, h8500-tdep.c: Ditto.
2143 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2144 * valprint.c, v850-tdep.c: Ditto.
2145 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2146 * mn10200-tdep.c: Ditto.
2147
2148 * Makefile.in (z8k-tdep.o): Update dependencies.
2149 (m68hc11-tdep.o, valprint.o): Ditto.
2150 (v850-tdep.o, d10v-tdep.o): Ditto.
2151 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2152 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2153 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2154 (sh_opc_h, gdb_sim_sh_h): Define.
2155 (elf_sh_h, elf_bfd_h): Define.
2156 (opcode_m68hc11_h): Define.
2157 (OPCODES_SRC, OPCODES_DIR): define.
2158 (OPCODES): Use $(OPCODES_DIR).
2159 (gdb_sim_d10v_h): Rename sim_d10v_h.
2160 (gdb_sim_arm_h): Rename sim_arm_h.
2161
790c9cf0
KB
21622002-07-26 Kevin Buettner <kevinb@redhat.com>
2163
2164 * utils.c (host_pointer_to_address, address_to_host_pointer):
2165 Change internal_error() message to indicate function responsible
2166 for the error.
2167
9647fa49
KB
21682002-07-26 Kevin Buettner <kevinb@redhat.com>
2169
2170 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2171 calls to local_hex_string_custom().
2172
dabbe2c0
KB
21732002-07-26 Kevin Buettner <kevinb@redhat.com>
2174
2175 * irix5-nat.c: Move IRIX shared library support from here...
2176 * solib-irix.c: ...to here. Revised substantially to work with
2177 generic solib framework.
2178
b96d0a4e
KB
2179 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2180 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2181 * mips-irix-tdep.c: New file.
2182
313fb2f6
KB
2183 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2184 (mips-irix-tdep.o, solib-irix.o): New rules.
2185 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2186 solib-irix.o.
2187 * config/mips/irix6.mt (TDEPFILES): Likewise.
2188 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2189
ab2eaf26
KB
21902002-07-26 Kevin Buettner <kevinb@redhat.com>
2191
177e4768 2192 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2193 disabled (via ``#if 0'') includes.
2194
7244546a
KB
21952002-07-26 Kevin Buettner <kevinb@redhat.com>
2196
2197 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2198 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2199 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2200 Add support for the fpscr register.
2201 * rs6000-nat.c (regmap, fetch_inferior_registers)
2202 (store_inferior_registers, fetch_core_registers): Likewise.
2203
dd7be90a
KB
22042002-07-26 Kevin Buettner <kevinb@redhat.com>
2205
2206 * rs6000-nat.c (language.h): Include.
2207 (special_regs): Delete this array.
2208 (regmap): New function.
2209 (fetch_register, store_register): Use regmap() to map gdb
2210 register numbers to ptrace register numbers. Also, use
2211 outputs from regmap() to make decisions regarding type of
2212 ptrace() call to make. In particular, don't compare against
2213 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2214 (fetch_inferior_registers, store_inferior_registers): Where
2215 possible, obtain register numbers from tdep struct. Don't
2216 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2217 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2218 (LAST_UISA_SP_REGNUM): Delete.
2219
11bf77db
KB
22202002-07-25 Kevin Buettner <kevinb@redhat.com>
2221
2222 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2223 (fetch_registers, store_register, fetch_core_registers): Don't
2224 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2225 regcache_collect() as appropriate.
2226 (find_toc_address): Format hex address with local_hex_string().
2227
06afebeb
AC
22282002-07-25 Andrew Cagney <ac131313@redhat.com>
2229
2230 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2231 bfd/elf32-frv.c.
2232
8c554d79
TT
22332002-07-24 Tom Tromey <tromey@redhat.com>
2234
2235 * jv-exp.y: Marked all strings with _().
2236 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2237 internal_error.
2238 (MethodInvocation, CastExpression, parse_number, yyerror,
2239 java_type_from_name, push_expression_name, yylex): Typo fixes.
2240
e4c242d9
DJ
22412002-07-24 Daniel Jacobowitz <drow@mvista.com>
2242
2243 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2244 (tee_file_flush, tee_file_write, tee_file_fputs)
2245 (tee_file_isatty): New.
2246 * ui-file.h (tee_file_new): Add prototype.
2247
ebf56fd3
AS
22482002-07-24 Aidan Skinner <aidan@velvet.net>
2249
2250 * ada-lang.c: Change k&r style function definitions to prototyped
2251 form.
2252 * ada-typeprint.c: Change k&r style function definitions to prototyped
2253 form.
2254 * ada-valprint.c: Change k&r style function definitions to prototyped
2255 form.
2256
7fb623f7
AC
22572002-07-24 Andrew Cagney <cagney@redhat.com>
2258
2259 * README: Remove reference to remote-bug.
2260 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2261 remote-bug.c.
2262 (m88k-nat.o): Delete rule.
2263 (m88k-tdep.o): Delete rule.
2264 (remote-bug.o): Delete rule.
2265 * MAINTAINERS: Mark as obsolete.
2266 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2267 * m88k-tdep.c: Make file obsolete.
2268 * config/m88k/m88k.mh: Ditto.
2269 * config/m88k/delta88v4.mh: Ditto.
2270 * config/m88k/delta88v4.mt: Ditto.
2271 * config/m88k/delta88.mt: Ditto.
2272 * config/m88k/delta88.mh: Ditto.
2273 * remote-bug.c: Ditto.
2274 * config/m88k/tm-delta88.h: Ditto.
2275 * config/m88k/nm-delta88v4.h: Ditto.
2276 * config/m88k/xm-delta88.h: Ditto.
2277 * config/m88k/xm-dgux.h: Ditto.
2278 * config/m88k/tm-m88k.h: Ditto.
2279 * config/m88k/nm-m88k.h: Ditto.
2280 * config/m88k/tm-delta88v4.h: Ditto.
2281 * m88k-nat.c: Ditto.
2282 * cxux-nat.c: Ditto.
2283 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2284 and m88*-*-* obsolete.
2285 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2286 m88*-*-* obsolete.
2287
37611a2b
AC
22882002-07-24 Andrew Cagney <cagney@redhat.com>
2289
2290 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2291 constant. Same for local pointer variables.
2292 (extract_signed_integer): Ditto.
2293 * defs.h (extract_unsigned_integer): Update.
2294 (extract_signed_integer): Update.
2295
1aaa5f99
AC
22962002-07-24 Andrew Cagney <cagney@redhat.com>
2297
2298 * regcache.c (regcache_raw_write): Change buf parameter to a
2299 constant void pointer.
2300 (regcache_raw_read): Change buf parameter to a void pointer.
2301 (legacy_write_register_gen): Change myaddr parameter a constant
2302 void pointer.
2303 (supply_register): Change val parameter to a const void pointer.
2304 * regcache.h (regcache_raw_write): Update declaration.
2305 (regcache_raw_read): Update declaration.
2306 (supply_register): Update declaration.
2307
b4f5539f
TT
23082002-07-24 Tom Tromey <tromey@redhat.com>
2309
2310 * defs.h (gdb_readline_wrapper): Declare.
2311 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2312 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2313 * top.c (gdb_readline_wrapper): New function.
2314 (command_line_input): Use it.
2315
0818c12a
AC
23162002-07-24 Andrew Cagney <cagney@redhat.com>
2317
2318 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2319 regcache_read and regcache_write.
2320 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2321 * regcache.c: Update.
2322 * sh-tdep.c (sh64_push_arguments): Update comment.
2323 (sh_pseudo_register_read): Update.
2324 (sh_pseudo_register_write): Update.
2325 (sh4_register_read): Update.
2326 (sh4_register_write): Update.
2327 (sh64_pseudo_register_read): Update.
2328 (sh64_pseudo_register_write): Update.
2329 (sh64_register_read): Update.
2330 (sh64_register_write): Update.
2331 * i386-tdep.c (i386_extract_return_value): Update.
2332 (i386_extract_struct_value_address): Update.
2333 (i386_extract_return_value): Update.
2334 * blockframe.c (generic_read_register_dummy): Update.
2335 (generic_call_dummy_register_unwind): Update
2336 * infrun.c (write_inferior_status_register): Update.
2337
f7321c06
JB
23382002-07-23 Jim Blandy <jimb@redhat.com>
2339
2340 * parser-defs.h (expression_context_pc): Make this extern.
2341 (Thanks to Michael Snyder.)
2342
2037aebb
AC
23432002-07-23 Andrew Cagney <ac131313@redhat.com>
2344
2345 GDB 5.2.1 released from 5.2 branch.
2346 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2347 * README: Update to mention 5.2.1.
2348
66504d44
MS
23492002-07-23 Mark Salter <msalter@redhat.com>
2350
2351 * remote.c (remote_read_bytes): Fix check for error.
2352
27bae383
KB
23532002-07-22 Kevin Buettner <kevinb@redhat.com>
2354
2355 * aix-thread.c (language.h): Include.
2356 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2357 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2358 Print newlines at end of debug messages.
2359 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2360 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2361
23622002-07-22 Kevin Buettner <kevinb@redhat.com>
2363
2364 * aix-thread.c (ppc-tdep.h): Include.
2365 (special_register_p): New function.
2366 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2367 (store_regs_user_thread): Use register number information from
2368 gdbarch_tdep struct instead of hardcoded offsets relative to
2369 FIRST_UISA_SP_REGNUM.
2370 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2371 special_register_p() instead of using FPLAST_REGNUM and
2372 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2373 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2374 will be MQ's register number.
2375
23762002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2377
2378 * aix-thread.c (ops): Rename to aix_thread_ops.
2379 (base_ops): Rename to base_target.
2380 (ops_attach): Rename to aix_thread_attach.
2381 (ops_detach): Rename to aix_thread_detach.
2382 (ops_resume): Rename to aix_thread_detach.
2383 (ops_wait): Rename to aix_thread_wait.
2384 (ops_kill): Rename to aix_thread_kill.
2385 (init_ops): Rename to init_aix_thread_ops.
2386 (ops_fetch_register): Rename to aix_thread_fetch_register.
2387 (ops_store_register): Rename to aix_thread_store_register.
2388 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2389 (ops_thread_alive): Rename to aix_thread_thread_alive.
2390 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2391 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2392 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2393 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2394 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2395 (store_regs_lib): Rename to store_regs_user_thread.
2396 (store_regs_kern): Rename to store_regs_kernel_thread.
2397
27bae383 23982002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2399
2400 * aix-thread.c (ops_prepare_to_store): Eliminate.
2401 (init_ops): Don't initialize ops.prepare_to_store.
2402 (store_regs_kern): Pre-fetch register buffers from child,
2403 because some registers may not be in the cache. Copy
2404 regs from register cache only if they are cached.
2405 (store_regs_lib): Copy regs from register cache only
2406 if they are cached.
2407 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2408 fill_gprs64): Ditto.
2409
61c5da0b
KB
24102002-07-22 Kevin Buettner <kevinb@redhat.com>
2411
2412 * aix-thread.c (gdb_assert.h): Include.
2413 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2414 register sizes (from register cache) match size of buffer holding
2415 register data.
2416 (fill_sprs32): Change parameter types to match those in the ptrace()
2417 buffer.
2418 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2419 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2420
24212002-07-22 Michael Snyder <msnyder@redhat.com>
2422
2423 * aix-thread.c (supply_sprs64): Cosmetic change.
2424 (supply_sprs32): Cosmetic change.
2425 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2426 (fill_sprs64): Use regcache_collect instead of read_register.
2427 (store_regs_lib): Use regcache_collect instead of
2428 read_register. Use fill_sprs32 instead of fill_sprs64,
2429 if debugging a 32-bit architecture.
2430 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2431 out of the register cache, instead of passing a pointer into
2432 the register cache directly to ptrace. Use regcache_collect
2433 insteaad of read_register.
2434 (ops_prepare_to_store): Use target_read_registers instead
2435 of read_register_bytes.
2436
36479eb1
AS
24372002-07-20 Aidan Skinner <aidan@velvet.net>
2438
2439 * MAINTAINERS: Add self under write after approval.
2440
80ae6ee2
AS
24412002-07-20 Aidan Skinner <aidan@velvet.net>
2442
2443 * ada-tasks.c: Change k&r style function definitions to prototyped
2444 form.
2445
8a8ab2b9
AC
24462002-07-19 Andrew Cagney <ac131313@redhat.com>
2447
2448 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2449 * x86-64-tdep.c: Include "objfiles.h".
2450 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2451 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2452
fb16b900
ML
24532002-07-17 Michal Ludvig <michal@suse.cz>
2454
2455 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2456 (update_context): Initialise cfa variable.
2457
0fe7bf7b
MS
24582002-07-17 Michael Snyder <msnyder@redhat.com>
2459
2460 * aix-thread.c: Shorten some long lines.
2461 Bring comments into line with code spec.
2462
488f131b
JB
24632002-07-18 Joel Brobecker <brobecker@gnat.com>
2464
2465 * infrun.c: Re-indent using gdb_indent.sh.
2466
46c415d2
JB
24672002-07-18 Joel Brobecker <brobecker@gnat.com>
2468
2469 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2470 Leave the indentation temporarily untouched, to minimize the diffs.
2471
cdecafbe
EZ
24722002-07-18 Elena Zannoni <ezannoni@redhat.com>
2473
2474 * stabsread.c: Make os9k sections of the code obsolete,
2475 for real this time.
2476 * stabsread.h: Make os9k sections of the code obsolete.
2477
7b6aa020
ML
24782002-07-18 Michal Ludvig <mludvig@suse.cz>
2479
09ec9b38
ML
2480 * linux-low.c (regsets_store_inferior_registers): Add free()
2481 at the end of a loop to prevent memory leak.
2482 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2483 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2484 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2485 line a comment.
4894ac5d 2486 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2487
233282cd
JB
24882002-07-17 Jim Blandy <jimb@redhat.com>
2489
2490 * macrocmd.c (info_macro_command): Remove newline from error
2491 message.
2492
7b6aa020 24932002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2494
2495 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2496 (sh_gdbarch_init): Use it for sh-dsp.
2497
f7ef9339
KB
24982002-07-16 Kevin Buettner <kevinb@redhat.com>
2499
2500 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2501 64-bit DWARF2 format.
2502
8dd72958
JB
25032002-07-16 Joel Brobecker <brobecker@gnat.com>
2504
2505 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2506 <sys/proc.h> when not available.
2507
a99a9e1b
AC
25082002-07-16 Andrew Cagney <ac131313@redhat.com>
2509
2510 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2511 * stabsread.c: Make os9k sections of the code obsolete.
2512 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2513 * config/i386/i386os9k.mt: Make file obsolete.
2514 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2515 (COMMON_OBS): Remove os9kread.o
2516 (SFILES): Remove os9kread.c.
2517 (os9kread.o, remote-os9k.o): Make target obsolete.
2518 * remote-os9k.c: Make file obsolete.
2519 * os9kread.c: Make file obsolete.
2520 * Makefile.in
2521
7a3085c1
AC
25222002-07-16 Andrew Cagney <ac131313@redhat.com>
2523
2524 * NEWS: Mention that the FR30 has been made obsolete.
2525 * fr30-tdep.c: Make file obsolete.
2526 * config/fr30/tm-fr30.h: Ditto.
2527 * config/fr30/fr30.mt: Ditto.
2528 * configure.tgt: Make fr30-*-elf obsolete.
2529 * MAINTAINERS: Make fr30-elf obsolete.
2530
28a93f5a
PM
25312002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2532
2533 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2534 found is not inside a section.
2535
be006b8b
KB
25362002-07-15 Kevin Buettner <kevinb@redhat.com>
2537
2538 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2539 strerror().
2540 (pdc_realloc): Use xrealloc() instead of realloc().
2541
14fa3751
KB
25422002-07-15 Kevin Buettner <kevinb@redhat.com>
2543
2544 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2545 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2546 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2547 macros.
2548
42cc437f
KB
25492002-07-15 Kevin Buettner <kevinb@redhat.com>
2550
2551 * aix-thread.c (ptrace_check): Eliminate goto.
2552 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2553 problem.
2554
8e2c28d4
KB
25552002-07-15 Kevin Buettner <kevinb@redhat.com>
2556
2557 * aix-thread.c (gdbcmd.h): Include.
2558 (DEBUG, DBG, DBG2, dbg): Eliminate.
2559 (debug_aix_thread): New static global.
2560 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2561 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2562 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2563 invocations to DBG and DBG2 macros to test against
2564 ``debug_aix_thread'' and call fprintf_unfiltered().
2565 (_initialize_aix_thread): Add new command "set debug aix-thread".
2566
30413464
AC
25672002-07-15 Andrew Cagney <ac131313@redhat.com>
2568
2569 From Gerhard Tonn <TON@de.ibm.com>:
2570 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2571 instead of supply_register.
2572
7c43edc1
AC
25732002-07-15 Andrew Cagney <ac131313@redhat.com>
2574
2575 * dwarf2cfi.c: Include "gdb_assert.h".
2576 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2577 non-NULL.
2578 (update_context): Do not use __func__. Add missing ``break''.
2579 (update_context): Do not use __func__.
2580
9364a0ef
EZ
25812002-07-15 Elena Zannoni <ezannoni@redhat.com>
2582
2583 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2584 and its setting. Set gdbarch instruction printing functions
2585 directly. For non-rs6000 case use new function
2586 gdb_print_insn_powerpc.
2587 (gdb_print_insn_powerpc): New function.
2588
3fbeef0b
AC
25892002-07-13 Andrew Cagney <ac131313@redhat.com>
2590
92eb23c5 2591 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2592 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2593 * configure.tgt: Mark d30v-*-* as obsolete.
2594 * d30v-tdep.c: Mark file as obsolete.
2595 * config/d30v/d30v.mt: Ditto.
2596 * config/d30v/tm-d30v.h: Ditto.
2597
aacb1f0a
AS
25982002-07-13 Aidan Skinner <aidan@velvet.net>
2599
2600 * ada-tasks.c (add_task_entry): replace calls to
2601 malloc() with xmalloc
2602 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2603
2604 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2605 ada_finish_decode_line_1, all_sals_for_line
2606 ada_breakpoint_rewrite): replace calls to free() with xfree()
2607
c11d79f2
KB
26082002-07-12 Kevin Buettner <kevinb@redhat.com>
2609
2610 From Nicholas Duffek (with minor changes by Martin Hunt,
2611 Louis Hamilton, and Kevin Buettner):
2612 * aix-thread.c: New file.
2613
8e19ed76
PS
26142002-07-12 Petr Sorfa <petrs@caldera.com>
2615
2616 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2617 complaint for invalid attribute class or form.
2618 (read_func_scope): DW_AT_frame_base
2619 better handling of DW_AT_block*.
2620 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2621 better handling of DW_AT_block*.
2622 (read_common_block): DW_AT_location
2623 better handling of DW_AT_block*.
2624 (read_partial_die): DW_AT_location better handling
2625 of DW_AT_block*.
2626 (new_symbol): DW_AT_external better handling of
2627 DW_AT_block*. Proper initialization of variable
2628 "addr".
2629 (attr_form_is_block): New function that returns true
2630 if the attribute's form is of DW_FORM_block*.
2631
295401f7
DJ
26322002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2633
2634 * valops.c (find_method_list): Remove comment about
2635 removed STATIC_MEMFUNCP argument.
2636 (value_find_oload_method_list): Likewise.
2637
e42dc924
KB
26382002-07-12 Kevin Buettner <kevinb@redhat.com>
2639
2640 From Nicholas Duffek:
2641 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2642 target_new_objfile_hook.
2643
6904b546
KB
26442002-07-12 Kevin Buettner <kevinb@redhat.com>
2645
2646 From Nicholas Duffek:
2647 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2648 csect.
2649
53fe9346
AC
26502002-07-12 Andrew Cagney <cagney@redhat.com>
2651
2652 * MAINTAINERS: Mention --enable-sim-build-warnings.
2653 (m68hc11-elf): Disable sim build warnings.
2654 (m32r-elf): Mark as broken obsolete candidate.
2655 (x86_64-linux-gnu): Mark as buildable with -Werror.
2656 (arm-elf): Change -w to ``,'' which enables warnings but not
2657 -Werror.
2658
af5f3db6
AC
26592002-07-12 Andrew Cagney <ac131313@redhat.com>
2660
2661 * bcache.h: Update copyright.
2662 (struct bstring, struct bcache): Move definition to "bcache.c".
2663 Replaced by opaque declaration.
2664 (bcache_xfree): Replace free_bcache.
2665 (bcache_xmalloc, bcache_memory_used): Declare.
2666
2667 * bcache.c: Update copyright.
2668 (struct bstring, struct bcache): Moved to here from "bcache.h".
2669 Update comments.
2670 (bcache_xmalloc, bcache_memory_used): New functions.
2671 (bcache_xfree): Replace function free_bcache.
2672
2673 * Makefile.in (objfiles.o): Add $(bcache_h).
2674 (objfiles_h): Remove $(bcache_h).
2675 (symfile.o): Add $(bcache_h).
2676
2677 * symmisc.c: Update copyright.
2678 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2679 (print_objfile_statistics): Use bcache_memory_used.
2680
2681 * symfile.c: Include "bcache.h".
2682 (reread_symbols): Use bcache_xfree.
2683 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2684 (add_psymbol_to_list): Pass psymbol_cache by value.
2685 (add_psymbol_with_dem_name_to_list): Ditto.
2686
2687 * objfiles.h: Update copyright.
2688 (struct bcache): Declare opaque. Do not include "bcache.h".
2689 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2690 bcache'' pointers.
2691 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2692
2693 * objfiles.c: Include "bcache.h". Update copyright.
2694 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2695 macro_cache.
2696 (free_objfile): Use bcache_xfree.
2697
444199e7
GS
26982002-07-11 Grace Sainsbury <graces@redhat.com>
2699
2700 * monitor.c (monitor_fetch_register): Make name a constant.
2701 (monitor_store_register): Same.
2702
261397f8
DJ
27032002-07-11 Daniel Jacobowitz <drow@mvista.com>
2704
2705 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2706 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2707 (finish_block) For non-function blocks, hash the symbol table. For
2708 function blocks, mark the symbol table as unhashed.
2709 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2710 (msymbol_hash_iw): Likewise.
2711 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2712 value.
2713 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2714 (lookup_minimal_symbol): Likewise for both.
2715 * symtab.h (struct block): Add `hashtable' flag. Comment the
2716 hashtable.
2717 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2718 (ALL_BLOCK_SYMBOLS): Update.
2719 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2720 (struct symbol): Add `hash_next' pointer.
2721 * symtab.c (lookup_block_symbol): Search using the hash table when
2722 possible.
2723 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2724 (search_symbols, find_addr_symbol): Likewise.
2725
2726 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2727 (read_dst_symtab): Likewise.
2728 * jv-lang.c (get_java_class_symtab): Likewise.
2729 * mdebugread.c: Include "gdb_assert.h".
2730 (shrink_block): Assert that the block being modified is not hashed.
2731 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2732 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2733 symbols.
2734 (dump_symtab): Recognize hashed blocks.
2735 * printcmd.c (print_frame_args): Assert that function blocks do not
2736 have hashed symbol tables.
2737 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2738 (fill_in_ada_prototype, debug_print_block): Likewise.
2739 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2740
6f0eaa01
CV
27412002-07-11 Corinna Vinschen <vinschen@redhat.com>
2742
2743 * stack.c (print_frame): Use result of frame_address_in_block()
2744 instead of fi->pc when evaluating symbols.
2745 (backtrace_command_1): Ditto.
2746
a208b0cb
AC
27472002-07-11 Andrew Cagney <cagney@redhat.com>
2748
2749 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2750 Make static.
2751
2752 * arm-tdep.c (arm_register_name): Make return type constant.
2753
a6b6b089
AC
27542002-07-10 Andrew Cagney <ac131313@redhat.com>
2755
5ae5f592
AC
2756 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2757 prototype.
2758 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2759 * s390-tdep.c (s390_fp_regnum): Ditto.
2760 (s390_read_fp): Ditto.
2761 (s390_pop_frame): Ditto.
2762 (_initialize_s390_tdep): Ditto.
2763 * remote.c (get_remote_state): Ditto.
2764 * procfs.c (mappingflags): Ditto.
2765 * memattr.c (_initialize_mem): Ditto.
2766 * mcore-tdep.c (mcore_pop_frame): Ditto.
2767 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2768 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2769 * language.c (set_case_str): Ditto.
2770 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2771 * frv-tdep.c (new_variant): Ditto.
2772 (frv_stopped_data_address): Ditto.
2773 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2774 (context_alloc): Ditto.
2775 (frame_state_alloc): Ditto.
2776 (unwind_tmp_obstack_init): Ditto.
2777 (unwind_tmp_obstack_free): Ditto.
2778 (cfi_read_fp): Ditto.
2779 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2780 (cris_pop_frame): Ditto.
2781 * c-lang.c (scanning_macro_expansion): Ditto.
2782 (finished_macro_expansion): Ditto.
2783 (c_preprocess_and_parse): Ditto.
2784 * gdbarch.sh: Ditto.
2785 * gdbarch.h, gdbarch.c: Regenerate.
2786 * config/mn10200/tm-mn10200.h: Adjust indentation.
2787 * target.c: Adjust indentation.
2788 * symtab.h: Adjust indentation.
2789 * stabsread.h: Adjust indentation.
2790 * remote-es.c: Adjust indentation.
2791 * os9kread.c: Adjust indentation.
2792
27932002-07-10 Andrew Cagney <ac131313@redhat.com>
2794
a6b6b089
AC
2795 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2796 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2797
a1789893
GS
27982002-07-10 Grace Sainsbury <graces@redhat.com>
2799
2800 * NEWS: Mention m68k, mcore multi-arching.
2801 * MAINTAINERS: Change status of m68k, mcore to reflect
2802 multi-arching.
2803
02f0d45d
DJ
28042002-07-10 Daniel Jacobowitz <drow@mvista.com>
2805
2806 * valops.c (find_overload_match): Free oload_syms.
2807
f15f768e
JB
28082002-07-09 Joel Brobecker <brobecker@gnat.com>
2809
2810 Define HAVE_SYS_PROC_H if sys/proc.h exists
2811 * configure.in: Add check for sys/proc.h
2812 * config.in: Regenerate.
2813 * configure: Regenerate.
2814
902a7139
GS
28152002-07-09 Grace Sainsbury <graces@redhat.com>
2816
2817 * config/m68k/tm-m68k.h: Remove macros wrapped in
2818 #if !GDB_MULTI_ARCH.
2819
a534e424
AC
28202002-07-08 Andrew Cagney <ac131313@redhat.com>
2821
2822 * config.in, configure: Regenerate.
2823
9b94f7bf
MK
28242002-07-08 Mark Kettenis <kettenis@gnu.org>
2825
2826 * dwarf2cfi.c: Include "gcore.h".
2827 (execute_stack_op): Fix implementation of the
2828 DW_OP_deref and DW_OP_deref_size operators by letting do their
2829 lookup in the target.
2830
1d34db41
MK
28312002-07-07 Mark Kettenis <kettenis@gnu.org>
2832
2833 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2834 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2835 tdep->sc_sp_offset.
2836
79d5b63a
DJ
28372002-07-05 Daniel Jacobowitz <drow@mvista.com>
2838
2839 Fix PR gdb/595, gdb/602
2840 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2841 Don't call value_cast, just read the vtable pointer; update comments
2842 to match.
2843
3bb912e8
GS
28442002-07-05 Grace Sainsbury <graces@redhat.com>
2845
2846 * config/mcore/tm-mcore.h: Remove file.
2847 * config/mcore/mcore.mt: Remove definition of TM_FILE
2848 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2849
ca39387d
MK
28502002-07-05 Mark Kettenis <kettenis@gnu.org>
2851
2852 * i386bsd-tdep.c: Include "gdb_string.h".
2853
efdc1108
GS
28542002-07-04 Grace Sainsbury <graces@redhat.com>
2855
2856 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2857 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2858 mcore-tdep.
2859 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2860 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2861 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2862 (RETVAL_REGNUM): Move macros from tm-mcore.h
2863 (mcore_reg_struct_has_addr): New function.
2864 (mcore_gdbarch_init): Added initializations for the macros removed
2865 from tm-mcore.h.
2866
bb21884d
MK
28672002-07-04 Mark Kettenis <kettenis@gnu.org>
2868
2869 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2870 traditonal string branding within the ELF header.
2871
228c6d41
DJ
28722002-07-04 Daniel Jacobowitz <drow@mvista.com>
2873
2874 * symtab.c (remove_params): New function.
2875 (make_symbol_overload_list): Use it instead of cplus_demangle.
2876 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2877
2404952e
MK
28782002-07-04 Mark Kettenis <kettenis@gnu.org>
2879
e5e4acad
MK
2880 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2881
baadce09
MK
2882 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2883 New variables.
2884 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2885 and tdep->sigtramp_end.
2886 * i386obsd-nat.c: New file.
2887 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2888
2404952e
MK
2889 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2890 Don't call get_current_frame().
2891
9b4f1ba7
PM
28922002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2893
2894 * i386-nat.c (child_post_startup_inferior): New function
2895 calling i386_cleanup_dregs if
2896 I386_USE_GENERIC_WATCHPOINTS is defined.
2897 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2898 conditional to acknowledge that i386-nat.c has its
2899 own child_post_startup_inferior function.
2900
c0d1d883
MK
29012002-07-04 Mark Kettenis <kettenis@gnu.org>
2902
00f8375e
MK
2903 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2904 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2905 instead of MAX_REGISTER_RAW_SIZE.
2906 (i386_extract_return_value, i386_extract_struct_value_address):
2907 Convert to use regcache.
2908 (i386_gdbarch_init): Set max_register_raw_size and
2909 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2910 Set extract_return_value and extract_struct_value_address instead
2911 of their deprecated variants.
2912
c0d1d883
MK
2913 Convert i386 target to generic dummy frames.
2914 * i386-tdep.c: Include "symfile.h".
2915 (i386_frameless_signal_p): Consider a function to be frameless if
2916 the pc points at the first instruction of the function.
2917 (i386_frame_chain): Handle (generic) call dummies.
2918 (i386_frame_saved_pc): Likewise.
2919 (i386_frame_init_saved_regs): Remove code dealing with call
2920 dummies on the stack.
2921 (i386_push_dummy_frame): Removed.
2922 (i386_call_dummy_words): Removed.
2923 (i386_fix_call_dummy): Removed.
2924 (i386_push_return_address): New function.
2925 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2926 parameter, and don't call get_current_frame.
2927 (i386_pop_frame): New function.
2928 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2929 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2930 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2931 call_dummy_length to 0, set call_dummy_words to NULL, set
2932 sizeof_call_dummy_words to 0, set fix_call_dummy to
2933 generic_fix_call_dummy, set pc_in_call_dummy to
2934 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2935 generic_push_dummy_frame, set push_return_address to
2936 i386_push_return_address and set frame_chain_valid to
2937 generic_file_frame_chain_valid.
2938
049ee0e4
AC
29392002-07-03 Andrew Cagney <ac131313@redhat.com>
2940
2941 * gdbarch.sh (struct regcache): Add opaque declaration.
2942 (EXTRACT_RETURN_VALUE): New architecture method.
2943 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2944 * gdbarch.h, gdbarch.c: Regenerate.
2945 * arch-utils.c (legacy_extract_return_value): New function.
2946 * arch-utils.h (legacy_extract_return_value): Declare.
2947 * values.c (value_being_returned): Re-enable code handling
2948 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2949 deprecated_grub_regcache_for_registers call to block handling
2950 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2951 (EXTRACT_RETURN_VALUE): Do not define.
2952
4e0d9804
GS
29532002-07-03 Grace Sainsbury <graces@redhat.com>
2954
2955 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2956 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2957 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2958 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2959 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2960 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2961 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2962 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2963 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2964 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2965 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2966 argument so the function fits the prototype in the architecture
2967 vector.
2968 (mcore_pop_frame): Remove argument so the function fits the
2969 prototype. Use get_current_frame instead of the argument.
2970 (mcore_push_arguments): Change type of struct_return so the
2971 function can be used in the architecture vector.
2972 (mcore_store_struct_return): Add.
2973 (mcore_frame_init_saved_regs): Add.
2974 (mcore_gdbarch_init): Add function calls to replace the macros
2975 removed from tm-mcore.h
2976
36160dc4
AC
29772002-07-03 Andrew Cagney <ac131313@redhat.com>
2978
2979 * infcmd.c (print_return_value): Remove compatibility code calling
2980 deprecated_grub_regcache_for_registers.
2981
2982 * values.c: Include "regcache.h".
2983 (value_being_returned): Update. Use
2984 deprecated_grub_regcache_for_registers to extract the register
2985 buffer address.
2986 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2987 ``struct regcache''.
2988 * Makefile.in (values.o): Add dependency on $(regcache_h).
2989
2990 * inferior.h (run_stack_dummy): Change type of second parameter to
2991 a ``struct regcache''.
2992 * valops.c (hand_function_call): Change type of retbuf to ``struct
2993 regcache''. Allocate using regcache_xmalloc, clean using
2994 make_cleanup_regcache_xfree.
2995 * infcmd.c (run_stack_dummy): Update. Use
2996 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2997
2998 * regcache.c (do_regcache_xfree): New function.
2999 (make_cleanup_regcache_xfree): New function.
3000 * regcache.h (make_cleanup_regcache_xfree): Declare.
3001
e64d9b3d
MH
30022002-07-03 Martin M. Hunt <hunt@redhat.com>
3003
4dd79c29
MH
3004 * event-top.c (command_line_handler): Don't read past
3005 beginning of buffer.
e64d9b3d 3006
4dd79c29
MH
30072002-07-03 Martin M. Hunt <hunt@redhat.com>
3008
e64d9b3d
MH
3009 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3010 struct frame_id.
3011 (varobj_create): Store frame_id for root.
3012 (varobj_gen_name): Use xasprintf.
3013 (varobj_update): Save and restore frame using get_frame_id() and
3014 frame_find_by_id().
3015 (create_child): Use xasprintf.
3016 (new_root_variable): Initialize frame_id.
3017 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3018 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3019 to prevent memory leak.
3020
26e6c56a
AC
30212002-07-03 Andrew Cagney <ac131313@redhat.com>
3022
3023 * valops.c (hand_function_call): Move declaration of retbuf to
3024 start of function, allocate using malloc, add a cleanup but before
3025 the inf_status cleanup, cleanup the buffer. Rename local variable
3026 old_chain to inf_status_cleanup.
3027
f436dd25
MH
30282002-07-03 Martin M. Hunt <hunt@redhat.com>
3029
3030 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3031
3032 * cli/cli-decode.c (cmd_func_p): New function.
3033 (cmd_func): New function.
3034
3035 * command.h: Add cmd_func() and cmd_func_p().
3036
4cfe2084
GS
30372002-07-03 Grace Sainsbury <graces@redhat.com>
3038
3039 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3040 (REGISTER_SIZE): Remove.
3041 (MAX_REGISTER_RAW_SIZE): Remove.
3042 (REGISTER_VIRTUAL_TYPE): Remove.
3043 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3044 (REGISTER_NAME): Remove.
3045 (USE_GENERIC_DUMMY_FRAMES): Remove.
3046 (CALL_DUMMY): Remove.
3047 (CALL_DUMMY_START_OFFSET): Remove.
3048 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3049 (CALL_DUMMY_LOCATION): Remove.
3050 (FIX_CALL_DUMMY): Remove.
3051 (CALL_DUMMY_ADDRESS): Remove.
3052 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3053 (SAVE_DUMMY_FRAME_TOS): Remove.
3054 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3055 (mcore_register_virtual_type): New function.
3056 (mcore_register_byte): New function.
3057 (mcore_register_size): New function.
3058 (mcore_register_name): New function.
3059 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3060 macros removed from tm-mcore.h.
3061 (mcore_dump_tdep): Add.
3062 (_initialize_mcore_tdep): Add gdbarch_register call.
3063
4fd667e9
MK
30642002-07-03 Mark Kettenis <kettenis@gnu.org>
3065
3066 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3067 frameless_look_for_prologue, such that we actually call this
3068 function.
3069
42f99ac2
JB
30702002-07-02 Joel Brobecker <brobecker@gnat.com>
3071
3072 * frame.h (frame_address_in_block): New function.
3073
3074 * blockframe.c (frame_address_in_block): New function extracted
3075 from get_frame_block().
3076 (get_frame_block): Use frame_address_in_block().
3077 (block_innermost_frame): Use frame_address_in_block() to match
3078 the frame pc address against the block boundaries rather than
3079 the frame pc directly. This prevents a failure when a frame pc
3080 is actually a return-address pointing immediately after the end
3081 of the given block.
3082
103a1597 30832002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3084
3085 * MAINTAINERS: Add self under write after approval.
3086
30872002-07-02 Grace Sainsbury <graces@redhat.com>
3088
103a1597
GS
3089 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3090 used in architecture vector. The default is
3091 m68k_local_breakpoint_from_pc.
3092 (m68k_local_breakpoint_from_pc): Add.
3093 (enum): Add register numbers from tm-m68k.h.
3094 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3095 vector.
3096 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3097 GDB_MULTI_ARCH_PARTIAL.
3098 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3099 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3100 m68k-tdep.c.
3101 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3102 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3103 to enum in m68k-tdep.c
3104
7a5a0534
JB
31052002-07-02 Joel Brobecker <brobecker@gnat.com>
3106
3107 * solib-osf.c (open_map): Compute the list of shared libraries
3108 loaded by the inferior, rather than the list of libraries loaded
3109 by GDB itself. Otherwise, GDB ends up reading the symbols from
3110 the wrong shared libraries...
3111
6f558d74
MK
31122002-07-02 Mark Kettenis <kettenis@gnu.org>
3113
b7d15bf7
MK
3114 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3115 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3116 macros.
3117 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3118 Remove functions.
3119 (FRAMELESS_SIGNAL): Remove function.
3120 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3121 i386_linux_saved_pc_after_call): Removed.
3122 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3123 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3124 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3125
6bff26de
MK
3126 * i386-tdep.c (i386_frameless_signal_p): New function.
3127 (i386_frame_chain): Deal with frameless signals.
3128 (i386_sigtramp_saved_sp): New function.
3129 (i386_frame_saved_pc): Deal with frameless signals.
3130 (i386_saved_pc_after_call): Make sure the correct value is
3131 returned just after entry into a sigtramp.
3132 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3133 i386fbsd4_sc_sp_offset): New variables.
3134 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3135 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3136 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3137 similiar to what we already did for sc_pc_offset.
3138 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3139 tdep->sc_sp_offset.
3140
6f558d74
MK
3141 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3142
145564b7
ML
31432002-07-02 Michal Ludvig <mludvig@suse.cz>
3144
3145 * config/i386/tm-x86-64linux.h: New.
3146 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3147 definitions.
3148 * config/i386/nm-x86-64.h: Rename to ...
3149 * config/i386/nm-x86-64linux.h: ... this one.
3150 * config/i386/x86-64linux.mh: Reflect the above change.
3151
3a1e71e3
MK
31522002-07-01 Mark Kettenis <kettenis@gnu.org>
3153
21d0e8a4
MK
3154 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3155 with sigcontext_addr. Add sc_sp_offset.
3156 (i386bsd_sigtramp_saved_pc): Remove prototype.
3157 (i386bsd_sicontext_addr): Add prototype.
3158 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3159 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3160 (i386_svr4_sigtramp_saved_pc): Removed.
3161 (i386_svr4_sigcontext_addr): New function.
3162 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3163 Initialize tdep->sigcontext_addr instead. Initialize
3164 tdep->sc_pc_offset and tdep->sc_sp_offset.
3165 (i386_gdbarch_init): Likewise.
3166 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3167 any more.
3168 (i386bsd_sigtramp_saved_pc): Remove function.
3169 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3170 Initialize tdep->sigcontext_addr instead. Initialize
3171 tdep->sc_pc_offset.
3172 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3173 of tdep->sigtramp_saved_pc.
3174 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3175 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3176 instead.
3177
3a1e71e3
MK
3178 * i386-tdep.c (i386_frameless_function_invocation,
3179 i386_frame_num_args, i386_frame_init_saved_regs,
3180 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3181 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3182 i386_extract_return_value, i386_store_return_value,
3183 i386_extract_struct_value_address, i386_register_virtual_type,
3184 i386_register_convertible, i386_register_convert_to_virtual,
3185 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3186 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3187 static.
3188
52e9098c
MK
31892002-07-01 Mark Kettenis <kettenis@gnu.org>
3190
77b13a25
MK
3191 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3192
52e9098c
MK
3193 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3194 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3195 this macro. Include "value.h".
3196
1b372fff
AS
31972002-06-30 Aidan Skinner <aidan@velvet.net>
3198
3199 * ada-exp.tab.c: remove as it's a generated file
3200 * ada-lex.c: remove as it's a generated file
3201
9c5045b5
MK
32022002-06-30 Mark Kettenis <kettenis@gnu.org>
3203
4a93c5bb
MK
3204 * config/i386/tm-i386.h (struct frame_info, struct
3205 frame_saved_regs, struct value, struct type): Remove forward
3206 declarations.
3207
322d4fe0
MK
3208 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3209 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3210 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3211 (FILL_FPXREGSET): Define.
3212
fdd8263d
MK
3213 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3214
482e577b
MK
3215 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3216 i[3456]86-*-netbsd* case.
3217 * config/i386/tm-obsd.h: Removed.
3218 * config/i386/obsd.mt: Removed.
3219 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3220 core-aout.o.
3221 (MH_CFLAGS): Add -DYYDEBUG=0.
3222
6916549a
MK
3223 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3224 i386nbsd_sc_pc_offset on OpenBSD too.
3225
9c5045b5
MK
3226 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3227 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3228 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3229 define.
3230 * i386bsd-tdep.c: Include "arch-utils.h".
3231 (i386bsd_aout_in_solib_call_trampoline): New function.
3232 (i386bsd_init_abi): Set in_solib_call_trampoline to
3233 i386bsd_aout_in_solib_call_trampoline.
3234 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3235 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3236
aa84d1bb
AC
32372002-06-28 Andrew Cagney <ac131313@redhat.com>
3238
3239 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3240 (struct obstack, struct bcache): Add opaque declarations.
3241 * Makefile.in (macrotab_h): Update
3242
b4d83933
AC
32432002-06-28 Andrew Cagney <ac131313@redhat.com>
3244
3245 * blockframe.c (generic_find_dummy_frame): Change return type to
3246 ``struct regcache''.
3247 (struct dummy_frame): Replace field ``registers'' with regcache, a
3248 struct regcache object.
3249 (generic_find_dummy_frame): Update.
3250 (generic_push_dummy_frame): Update. Use regcache_xfree,
3251 regcache_xmalloc and regcache_cpy.
3252 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3253 regcache_xfree.
3254 (deprecated_generic_find_dummy_frame): Update.
3255 (generic_read_register_dummy): Update. Use
3256 regcache_read_as_address.
3257 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3258 (generic_get_saved_register): Update. Use regcache_read.
3259
08c0b5bc
AC
32602002-06-28 Andrew Cagney <ac131313@redhat.com>
3261
3262 * Makefile.in (objfiles_h): Add $(bcache_h).
3263 * objfiles.h: Include "bcache.h".
3264
3265 * Makefile.in (symtab_h): Remove $(bcache_h).
3266 * symtab.h: Do not include "bcache.h".
3267
1f89801a
AC
32682002-06-28 Andrew Cagney <ac131313@redhat.com>
3269
3270 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3271 generic_func_frame_chain_valid.
3272
b9644b58
DB
32732002-06-28 David O'Brien <obrien@FreeBSD.org>
3274
3275 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3276 * config/i386/tm-fbsd.h: Likewise.
3277
dd486634
AC
32782002-06-28 Andrew Cagney <ac131313@redhat.com>
3279
3280 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3281 generic_unwind_get_saved_register.
3282
0b434a00
AC
32832002-06-27 Andrew Cagney <ac131313@redhat.com>
3284
3285 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3286 * regcache.c (supply_register): Add missing argument to
3287 register_buffer call.
3288
f30e5a77
AC
32892002-06-27 Andrew Cagney <ac131313@redhat.com>
3290
3291 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3292 Solaris /bin/grep does not not like it. From Peter Schauer.
3293
9f064c95
TT
32942002-06-26 Tom Tromey <tromey@redhat.com>
3295
3296 * command.h (add_setshow_cmd): Declare.
3297 (add_setshow_cmd_full): Declare.
3298 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3299 returns void. Use add_setshow_cmd_full.
3300 (add_setshow_cmd_full): New function.
3301 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3302 (add_setshow_boolean_cmd): Likewise.
3303
099c7589
JT
33042002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3305
3306 * config/vax/tm-vax.h: Protect from multiple inclusion.
3307 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3308 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3309 * config/vax/tm-vaxbsd.h: ...here. New file.
3310 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3311
1d049c5e
JT
33122002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3313
3314 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3315 (BELIEVE_PCC_PROMOTION): Remove.
3316 (AP_REGNUM): Move to...
3317 * config/vax/nm-vax.h: ...here.
3318 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3319 (vax_breakpoint_from_pc): New function.
3320 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3321 and gdbarch_believe_pcc_promotion.
3322
4791e091
JT
33232002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3324
3325 * Makefile.in (vax_tdep_h): Define.
3326 (vax-tdep.o): Use $(vax_tdep_h).
3327 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3328 (vax_dump_tdep): New function.
3329 (_initialize_vax_tdep): Register vax_dump_tdep.
3330 * vax-tdep.h: Include osabi.h.
3331 (struct gdbarch_tdep): New.
3332
da130f98
AC
33332002-06-26 Andrew Cagney <cagney@redhat.com>
3334
3335 * frame.h (deprecated_generic_find_dummy_frame): Rename
3336 generic_find_dummy_frame.
3337 * blockframe.c (generic_find_dummy_frame): Make static.
3338 (deprecated_generic_find_dummy_frame): New function.
3339 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3340 generic_find_dummy_frame with deprecated_find_dummy_frame.
3341 (sh64_nofp_frame_init_saved_regs): Ditto.
3342 (sh_fp_frame_init_saved_regs): Ditto.
3343 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3344 (s390_frame_chain): Ditto.
3345 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3346
6300c360
GS
33472002-06-26 Grace Sainsbury <graces@redhat.com>
3348
3349 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3350 gdbarch vector are at the top.
3351 (NUM_REGS): Remove.
3352 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3353 (FRAME_ARGS_ADDRESS): Remove.
3354 (FRAME_LOCALS_ADDRESS): Remove.
3355 (FRAME_NUM_ARGS): Remove.
3356 (FRAME_ARGS_SKIP): Remove.
3357 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3358 (m68k_gdbarch_init): Add gdbarch initializations for macros
3359 undefined in tm-m68k.h
3360
1c617db8
GS
33612002-06-26 Grace Sainsbury <graces@redhat.com>
3362
3363 * monitor.h: Add the function regname to monitor_ops
3364 structure. This way NUM_REGS does not have to be a constant.
3365 * monitor.c (monitor_fetch_register): Added support for regname
3366 function. The function is called if the array regnames is NULL.
3367 (monitor_store_register): Same.
da130f98
AC
3368 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3369 regnames array.
1c617db8
GS
3370 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3371 cpu32bug_cmds.regname to point to new function.
3372 * abug-rom.c (abug_regname): Same as above.
3373 (init_abug_cmds): Same.
3374 * dbug-rom.c (dbug_regname): Same as above.
3375 (init_dbug_cmds): Same.
3376 * remote-est.c (est_regname): Same.
3377 (init_est_cmds): Same.
3378 * rom68k-rom.c (rom68k_regname): Same.
3379 (init_rom68k_cmds): Same.
3380
ea9365bb
TT
33812002-06-25 Tom Tromey <tromey@redhat.com>
3382
3383 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3384
72cec141
AC
33852002-06-25 Andrew Cagney <cagney@redhat.com>
3386
3387 * infrun.c (stop_registers): Change variable's type to ``struct
3388 regcache'''.
3389 (xmalloc_inferior_status): Delete function.
3390 (free_inferior_status): Delete function.
3391 (normal_stop): Use regcache_cpy.
3392 (struct inferior_status): Change type of fields ``stop_registers''
3393 and ``registers'' to ``struct regcache''.
3394 (write_inferior_status_register): Use regcache_write.
3395 (save_inferior_status): Instead of calling
3396 xmalloc_inferior_status, allocate the inf_status buffer directly.
3397 Use regcache_dup_no_passthrough and regcache_dup to save the
3398 buffers.
3399 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3400 Replace the stop_registers regcache instead of overriding it. Use
3401 regcache_xfree. Instead of calling free_inferior_status, xfree
3402 the buffer directly.
3403 (discard_inferior_status): Use regcache_xfree. Instead of calling
3404 free_inferior_status, xfree the buffer directly.
3405 (build_infrun): Use regcache_xmalloc.
3406 (_initialize_infrun): Delete redundant call to build_infrun.
3407
3408 * Makefile.in (infcmd.o): Add $(regcache_h).
3409
3410 * infcmd.c: Include "regcache.h".
3411 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3412 obtain the address of `stop_registers' register buffer.
3413 (print_return_value): Ditto.
3414
3415 * inferior.h (struct regcache): Add opaque declaration.
3416 (stop_registers): Change variable's declared type to ``struct
3417 regcache''.
3418
defc6f8c
TT
34192002-06-24 Tom Tromey <tromey@redhat.com>
3420
c0e624e7
TT
3421 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3422 * target.c (initialize_targets): Fixed typo in
3423 trust-readonly-sections `show' documentation.
3424
defc6f8c
TT
3425 * main.c: Marked all strings with _().
3426
2b236d82
DH
34272002-06-24 Don Howard <dhoward@redhat.com>
3428
3429 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3430 that means max CORE_ADDR+1.
3431 (lookup_mem_region): Ditto.
3432 (mem_info_command): Ditto.
3433
942dc0e9
GS
34342002-06-24 Grace Sainsbury <graces@redhat.com>
3435
3436 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3437 (REGISTER_BYTES_OK): Remove.
3438 (REGISTER_BYTES): Remove.
3439 (STORE_STRUCT_RETURN): Remove.
3440 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3441 (STORE_RETURN_VALUE): Remove.
3442 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3443 (FRAME_CHAIN): Remove.
3444 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3445 (FRAME_SAVED_PC): Remove.
3446 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3447 (m68k_store_struct_return): Add.
3448 (m68k_deprecated_extract_return_value): Add.
3449 (m68k_deprecated_extract_struct_value_address): Add.
3450 (m68k_store_return_value): Add.
3451 (m68k_frame_chain): Add.
3452 (m68k_frameless_function_invocation): Add.
3453 (m68k_frame_saved_pc): Add.
3454 (m68k_gdbarch_init): added set_gdbarch calls for new
3455 functions and deleted macros.
3456
03c30d4d
TT
34572002-06-23 Tom Tromey <tromey@redhat.com>
3458
3459 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3460 (ALLDEPFILES): Likewise.
3461 (udiheaders): Removed.
3462 (udip2soc.o): Likewise.
3463 (udi2go32.o): Likewise.
3464 (udr.o): Likewise.
3465 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3466
37e71372
AC
34672002-06-22 Andrew Cagney <ac131313@redhat.com>
3468
06a6ac57
AC
3469 * infrun.c (_initialize_infrun): Delete unnecessary call to
3470 build_infrun.
3471
37e71372
AC
3472 * regcache.h: Update comments describing the regcache_cpy family
3473 of functions.
3474 (regcache_save, regcache_restore): Delete declaration.
3475 (regcache_save_no_passthrough): Delete declaration.
3476 (regcache_restore_no_passthrough): Delete declaration.
3477 * regcache.c (regcache_save): Delete function.
3478 (regcache_save_no_passthrough): Delete function.
3479 (regcache_restore): Delete function.
3480 (regcache_restore_no_passthrough): Delete function.
3481
78f6d055
AC
34822002-06-21 Andrew Cagney <ac131313@redhat.com>
3483
3484 * config/m68k/tm-m68k.h: Fix typo.
3485 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3486 (m68k_frame_init_saved_regs): Declare.
3487
78b119cb
JB
34882002-06-21 Jim Blandy <jimb@redhat.com>
3489
3490 Remove some vestiges of Harris 88k support.
3491 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3492 register numbering quirk.
3493 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3494 odd symbols occurring in Harris 88k ELF targets.
3495
0fbb3da7
TT
34962002-06-21 Tom Tromey <tromey@redhat.com>
3497
3498 * gdb_locale.h: New file.
3499 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3500 (defs_h): Added gdb_locale.h.
3501 * configure, config.in: Rebuilt.
3502 * configure.in (PACKAGE): Define.
3503 * defs.h: Include gdb_locale.h.
3504 * main.c (captured_main): Call setlocale, bindtextdomain,
3505 textdomain.
3506
456f8b9d
DB
35072002-06-21 Dave Brolley <brolley@redhat.com>
3508
3509 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3510 * config/frv/frv.mt: New file.
3511 * config/frv/tm-frv.h: New file.
3512 * configure.tgt: Support frv-*-*.
3513 * Makefile.in (frv-tdep.o): New target.
3514 * frv-tdep.c: New file.
3515 * NEWS: Mention frv.
3516
cdd463f9
DB
35172002-06-21 Dave Brolley <brolley@redhat.com>
3518
3519 * MAINTAINERS: Add self to "Write After Approval" list.
3520
5d3ed2e3
GS
35212002-06-21 Grace Sainsbury <graces@redhat.com>
3522
3523 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3524 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3525 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3526 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3527 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3528
3529 * m68k-tdep.c: Include arch-utils.h
3530 (m68k_register_raw_size): Add.
3531 (m68k_register_virtual_size): Add.
3532 (m68k_register_virtual_type): Add.
3533 (m68k_register_name): Add.
3534 (m68k_stack_align): Add.
3535 (m68k_register_byte): Add.
3536 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3537 tm-m68k.h.
3538
7f8e7424
GS
35392002-06-21 Grace Sainsbury <graces@redhat.com>
3540
a2c6a6d5 3541 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3542 m68k_find_saved_regs.
3543 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3544 references to it with frame->saved_regs.
7f8e7424
GS
3545 (m68k_gdbarch_init): Added function calls to initialize the
3546 gdbarch structure.
a2c6a6d5
GS
3547 (m68k_fix_call_dummy): Add.
3548 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3549 (CALL_DUMMY): Remove.
3550 (CALL_DUMMY_LENGTH): Remove.
3551 (CALL_DUMMY_START_OFFSET): Remove.
3552 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3553 (FIX_CALL_DUMMY): Remove.
3554 (PUSH_DUMMY_FRAME): Remove.
3555 (POP_FRAME): Remove.
7f8e7424 3556
f461f5cf
PM
35572002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3558
3559 * parse.c (parse_fprintf): New function used to avoid calls to
3560 fprintf in bison parser generated debug code.
3561 * parser-defs.h: Declaration of new parse_fprintf function.
3562 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3563 Set YYDEBUG to 1 by default.
3564 Set YYFPRINTF as parse_fprintf.
3565
7f0c12ed
ML
35662002-06-21 Michal Ludvig <mludvig@suse.cz>
3567
3568 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3569 encoding anymore.
3570 (pointer_encoding, enum ptr_encoding): New.
3571 (execute_cfa_program): Take care about pointer encoding.
3572 (dwarf2_build_frame_info): Only call parse_frame_info for
3573 .debug_frame and .eh_frame.
3574 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3575 fixed augmentation handling, added relative addressing,
3576 ignore duplicate FDEs. Added comments.
19d833a2 3577 * dwarf2cfi.c: Reindented.
7f0c12ed 3578
87c4a039
EZ
35792002-06-20 Elena Zannoni <ezannoni@redhat.com>
3580
3581 * event-top.c (command_handler): Don't use space_at_cmd_start
3582 unless there is sbrk() on the host. Assign time and space data
3583 to union fields of the appropriate length.
3584
1cf877ad
ML
35852002-06-20 Michal Ludvig <mludvig@suse.cz>
3586
3587 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3588 x86_64_register_name. Return type changed to 'const char *'.
3589 (x86_64_register_name2nr): Rename to x86_64_register_number.
3590 (x86_64_gdbarch_init): Update to reflect the change.
3591 * x86-64-tdep.h: Ditto.
3592 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3593 (supply_fpregset): Ditto.
3594
3fadccb3
AC
35952002-06-19 Andrew Cagney <cagney@redhat.com>
3596
3597 * regcache.h: Update copyright.
3598 (struct regcache, struct gdbarch): Add opaque declarations.
3599 (current_regcache): Declare global variable.
3600 (regcache_read, regcache_write): Add gdbarch parameter.
3601 (regcache_save, regcache_save_no_passthrough)
3602 (regcache_restore, regcache_restore_no_passthrough)
3603 (regcache_dup, regcache_dup_no_passthrough)
3604 (regcache_cpy, regcache_cpy_no_passthrough)
3605 (deprecated_grub_regcache_for_registers)
3606 (deprecated_grub_regcache_for_register_valid)
3607 (regcache_valid_p): Add function declarations.
3608
3609 * regcache.c: Update copyright.
3610 (regcache_descr_handle): New global variable.
3611 (struct regcache_descr): Define.
3612 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3613 (regcache_descr, xfree_regcache_descr): New functions.
3614 (struct regcache): Define.
3615 (regcache_xmalloc, regcache_xfree): New functions.
3616 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3617 (regcache_dup, regcache_dup_no_passthrough): New functions.
3618 (regcache_valid_p, regcache_read_as_address): New functions.
3619 (deprecated_grub_regcache_for_registers): New function.
3620 (deprecated_grub_regcache_for_register_valid): New function.
3621 (current_regcache): New global variable.
3622 (register_buffer): Add regcache parameter. Update calls.
3623 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3624 (read_register_gen, write_register_gen): Update register_buffer
3625 call. Test for legacy_p instead of gdbarch_register_read_p or
3626 gdbarch_register_write_p.
3627 (regcache_collect): Update register_buffer call.
3628 (build_regcache): Rewrite. Use deprecated grub functions.
3629 (regcache_save, regcache_save_no_passthrough): New functions.
3630 (regcache_restore, regcache_restore_no_passthrough): New
3631 functions.
3632 (_initialize_regcache): Create the regcache_data_handle. Swap
3633 current_regcache global variable.
3634
3635 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3636 parameter to regcache_read and regcache_write calls.
3637 (sh4_register_read): Ditto.
3638 (sh64_pseudo_register_read): Ditto.
3639 (sh64_register_read): Ditto.
3640 (sh_pseudo_register_write): Ditto.
3641 (sh4_register_write): Ditto.
3642 (sh64_pseudo_register_write): Ditto.
3643 (sh64_register_write): Ditto.
3644
3645 * defs.h (XCALLOC): Define.
3646
152d9db6
GS
36472002-06-19 Grace Sainsbury <graces@redhat.com>
3648
3649 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3650 * m68k-tdep.c (m68k_gdbarch_init): Added.
3651 (m68k_dump_tdep): Added.
3652
170911c7
DJ
36532002-06-19 Daniel Jacobowitz <drow@mvista.com>
3654
3655 * ada-lang.c (fill_in_ada_prototype): Update comment.
3656
2e4ebe70
DJ
36572002-06-19 Daniel Jacobowitz <drow@mvista.com>
3658
3659 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3660 MIPS_ABI_LAST.
3661 (mips_abi_string, mips_abi_strings): New.
3662 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3663 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3664 tdep->mips_abi_string. Honor mips_abi_string. Default to
3665 O32 if no ABI is found.
3666 (mips_dump_tdep): Use mips_abi_strings.
3667 (mips_abi_update): New function.
3668 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3669 ``set mips abi'' and ``show mips abi''. Check the size of
3670 mips_abi_strings.
3671
16775908
AC
36722002-06-19 Andrew Cagney <cagney@redhat.com>
3673
3674 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3675 constant.
3676
5051bfa4 36772002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3678
5051bfa4
JB
3679 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3680 current frame using only the first stack size adjustment. All
3681 subsequent size adjustments are not considered to be part of
3682 the "static" part of the current frame.
3683 Compute the address of the saved registers relative to the
3684 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3685 in use in this frame.
3686
56468235
DH
36872002-06-18 Don Howard <dhoward@redhat.com>
3688
3689 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3690 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3691 suggesting this solution.
3692
0b624158
AC
36932002-06-18 Andrew Cagney <ac131313@redhat.com>
3694
3695 * config/romp/xm-rtbsd.h: Delete file.
3696 * config/romp/rtbsd.mh: Delete file.
3697
221ea385
KS
36982002-06-18 Keith Seitz <keiths@redhat.com>
3699
3700 * breakpoint.c (condition_command): Post breakpoint_modify
3701 when a condition is added to an existing breakpoint.
3702 (commands_command): Likewise for commands.
3703 (set_ignore_count): Likewise for ignore counts.
3704 If no tty, do not simply return, still need to send event
3705 notification.
3706 (ignore_command): Only print a newline if the command came
3707 from a tty.
3708 Don't call breakpoints_changed, since this is now properly
3709 handled by set_ignore_count.
3710
5402eed1
AC
37112002-06-18 Andrew Cagney <cagney@redhat.com>
3712
3713 * MAINTAINERS: Note that cris-elf target can be compiled with
3714 -Werror.
3715 * cris-tdep.c (cris_register_name): Make return type constant.
3716 (cris_breakpoint_from_pc): Ditto.
3717
cc22880b
ML
37182002-06-18 Michal Ludvig <mludvig@suse.cz>
3719
3720 * frame.h (struct frame_info): Change type of context to
3721 'struct context'.
3722
fa88f677
AC
37232002-06-17 Andrew Cagney <cagney@redhat.com>
3724
3725 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3726 pointer.
3727 * gdbarch.h, gdbarch.c: Regenerate.
3728 * config/mips/tm-mips.h (mips_register_name): Update.
3729 * i386-tdep.h (i386_register_name): Update.
3730 * mips-tdep.c (mips_register_name): Update
3731 * alpha-tdep.c (alpha_register_name): Update.
3732 * arch-utils.c (legacy_register_name): Update.
3733 * arch-utils.h (legacy_register_name): Update.
3734 * avr-tdep.c (avr_register_name): Update.
3735 * ia64-tdep.c (ia64_register_name): Update.
3736 * i386-tdep.c (i386_register_name): Update.
3737 * sparc-tdep.c (sparc32_register_name): Update.
3738 (sparc64_register_name): Update.
3739 (sparclite_register_name): Update.
3740 (sparclet_register_name): Update.
3741 * sh-tdep.c (sh_generic_register_name): Update.
3742 (sh_sh_register_name): Update.
3743 (sh_sh3_register_name): Update.
3744 (sh_sh3e_register_name): Update.
3745 (sh_sh_dsp_register_name): Update.
3746 (sh_sh3_dsp_register_name): Update.
3747 (sh_sh4_register_name): Update.
3748 (sh_sh64_register_name): Update.
3749 * s390-tdep.c (s390_register_name): Update.
3750 * rs6000-tdep.c (rs6000_register_name): Update.
3751 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3752 (ns32k_register_name_32382): Update.
3753 * d10v-tdep.c (d10v_ts2_register_name): Update.
3754 (d10v_ts3_register_name): Update.
3755 * xstormy16-tdep.c (xstormy16_register_name): Update.
3756 * vax-tdep.c (vax_register_name): Update.
3757 * v850-tdep.c (v850_register_name): Update.
3758 * m68hc11-tdep.c (m68hc11_register_name): Update.
3759 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3760 (am33_register_name): Update.
3761
ea1e7ef6
GS
37622002-06-17 Grace Sainsbury <graces@redhat.com>
3763
3764 * m68k-tdep.c: Reindented.
3765
9b02dd1b
AC
37662002-06-17 Andrew Cagney <ac131313@redhat.com>
3767
3768 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3769 list of predefined types.
3770
8758dec1
MK
37712002-06-16 Mark Kettenis <kettenis@gnu.org>
3772
b6197528
MK
3773 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3774 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3775 REGISTER_CONVERT_TO_RAW): Remove defines.
3776 (i386_register_virtual_type, i386_register_convertible,
3777 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3778 Remove prototypes.
3779 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3780 macros mentioned above.
3781
82b47e62
MK
3782 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3783 (i386lynx_saved_pc_after_call): Remove prototype.
3784 * i386ly-tdep.c: Include "i386-tdep.h".
3785 (i386lynx_saved_pc_after_call): Make static. Use
3786 read_memory_nobpt instead of read_memory. Use
3787 read_memory_unsigned_integer instead of read_memory_integer.
3788 (i386lynx_init_abi): New function.
3789 (i386lynx_coff_osabi_sniffer): New function.
3790 (_initialize_i386bsd_tdep): New function.
3791
8758dec1
MK
3792 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3793 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3794 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3795 (i386_fix_call_dummy): Remove prototype.
3796 * i386-tdep.c (i386_call_dummy_words): New variable.
3797 (i386_gdbarch_init): Adjust for removal of the
3798 macros mentioned above.
3799
e9e68a56
AC
38002002-06-15 Andrew Cagney <ac131313@redhat.com>
3801
3802 * command.h (add_setshow_auto_boolean_cmd): Replace
3803 add_set_auto_boolean_cmd.
3804 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3805 add_set_auto_boolean_cmd.
3806 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3807 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3808 mask-address'' command.
3809 (show_mask_address): Add cmd parameter.
3810 * remote.c (add_packet_config_cmd): Update. Change type of
3811 set_func and show_func to cmd_sfunc_ftype.
3812 (_initialize_remote): Update `set remote Z-packet'
3813 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3814 (show_remote_protocol_e_packet_cmd): Ditto.
3815 (show_remote_protocol_E_packet_cmd): Ditto.
3816 (show_remote_protocol_P_packet_cmd): Ditto.
3817 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3818 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3819 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3820 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3821 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3822 (show_remote_protocol_Z_packet_cmd): Ditto.
3823 (show_remote_protocol_binary_download_cmd): Ditto.
3824 (show_remote_cmd): Pass NULL to all of above.
3825
fc08ec52
MK
38262002-06-15 Mark Kettenis <kettenis@gnu.org>
3827
3828 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3829 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3830 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3831 POP_FRAME): Remove defines.
3832 (i386_push_arguments, i386_store_struct_return,
3833 i386_extract_return_value, i386_store_return_value,
3834 i386_extract_struct_value_address, i386_push_dummy_frame,
3835 i386_pop_frame): Renove prototypes.
3836 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3837 macros mentioned above.
3838
e707bbc2
AC
38392002-06-15 Andrew Cagney <ac131313@redhat.com>
3840
3841 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3842 add_set_boolean_cmd.
3843 (add_setshow_cmd): New function.
3844 * command.h (add_setshow_boolean_cmd): Replace
3845 add_set_boolean_cmd.
3846 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3847 and ``set rdiromatzero''.
3848 * maint.c (_initialize_maint_cmds): Update commented out code.
3849 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3850 * target.c (initialize_targets): Update `set
3851 trust-readonly-sections'.
3852 * remote.c (_initialize_remote): Update `set remotebreak'.
3853
42fdc8df
MK
38542002-06-15 Mark Kettenis <kettenis@gnu.org>
3855
93924b6b
MK
3856 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3857 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3858 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3859 fit into multi-arch framework.
3860 (i386_breakpoint_from_pc): New function.
3861 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3862 above.
3863
42fdc8df
MK
3864 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3865 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3866 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3867 (i386_frameless_function_invocation, i386_frame_num_args,
3868 i386_frame_init_saved_regs): Remove prototypes.
3869 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3870 macros mentioned above.
3871
9773a94b
AC
38722002-06-15 Andrew Cagney <ac131313@redhat.com>
3873
3874 * cli/cli-decode.c (set_cmd_cfunc): Update.
3875 (set_cmd_sfunc): Update.
3876 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3877 (set_cmd_sfunc, set_cmd_cfunc): Update.
3878 * cli/cli-decode.h: Update.
3879
6e157172
MK
38802002-06-15 Mark Kettenis <kettenis@gnu.org>
3881
3882 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3883 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3884
7f19b9a2
AC
38852002-06-15 Andrew Cagney <ac131313@redhat.com>
3886
3887 * defs.h (auto_boolean): Declare enum.
3888 * command.h (cmd_auto_boolean): Delete enum.
3889 * mips-tdep.c (mask_address_var): Update.
3890 (mips_mask_address_p): Update.
3891 (show_mask_address): Update.
3892 * remote.c (struct packet_config): Update.
3893 (update_packet_config): Update.
3894 (show_packet_config_cmd): Update.
3895 (packet_ok): Update.
3896 (add_packet_config_cmd): Update.
3897 (_initialize_remote):
3898 * command.h: Update.
3899 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3900 (do_setshow_command): Update.
3901 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3902 * cli/cli-decode.h: Update.
3903
1cf88de5
MK
39042002-06-15 Mark Kettenis <kettenis@gnu.org>
3905
22ba8cf2
MK
3906 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3907 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3908 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3909 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3910 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3911 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3912
762c5349
MK
3913 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3914 list of DJGPP COFF targets.
3915
091198bb
MK
3916 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3917 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3918 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3919 (FP0_REGNUM): Remove define.
3920 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3921 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3922 (i386_register_virtual_size): Remove protoype.
3923 * i386-tdep.c (i386_register_virtual_size): Removed.
3924 (i386_extract_return_value, i386_store_return_value): Use
3925 FP0_REGNUM instead of NUM_FREGS to determine whether the
3926 floating-point registers are available.
3927 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3928 Adjust for removal of macros mentioned above.
3929
39302002-06-15 Mark Kettenis <kettenis@gnu.org>
3931
fcc9bf01
MK
3932 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3933 comments.
3934 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3935 Remove prototypes.
3936 (supply_gregset, fill_gregset): Remove use of register keyword and
3937 remove declaration for regmap. Use I386_NUM_GREGS instead of
3938 NUM_REGS and NUM_FREGS.
3939 (FPREGSET_FSAVE_OFFSET): Remove.
3940 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3941 NUM_FREGS to determine whether the floating-point registers are
3942 available.
3943
65e78234
MK
3944 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3945 gnu_store_registers): Replace usage of NUM_GREGS with
3946 I386_NUM_GREGS.
3947
98df6387
MK
3948 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3949 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3950 usage of NUM_GREGS with I386_NUM_GREGS.
3951
099a9414
MK
3952 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3953
57976e88
MK
3954 * i386bsd-nat.c: Include "i386-tdep.h".
3955 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3956 I386_NUM_GREGS.
3957
b335f4a6
MK
3958 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3959 and associated comment. They no longer make any sense, since we
3960 don't use this file anymore on Linux.
3961
1cf88de5
MK
3962 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3963 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3964 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3965 elements in these arrays.
3966 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3967 MAX_NUM_REGS.
3968
daa66587
MK
39692002-06-15 Mark Kettenis <kettenis@gnu.org>
3970
3971 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3972 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3973
26e9b323
AC
39742002-06-14 Andrew Cagney <cagney@redhat.com>
3975
3976 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3977 EXTRACT_RETURN_VALUE.
3978 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3979 EXTRACT_STRUCT_VALUE_ADDRESS.
3980 * gdbarch.h, gdbarch.c: Regenerate.
3981
3982 * values.c (value_being_returned): Handle
3983 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3984 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3985
3986 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3987 * arm-tdep.c (arm_gdbarch_init): Update.
3988 * avr-tdep.c (avr_gdbarch_init): Update.
3989 * cris-tdep.c (cris_gdbarch_init): Update.
3990 * d10v-tdep.c (d10v_gdbarch_init): Update.
3991 * ia64-tdep.c (ia64_gdbarch_init): Update.
3992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3993 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3994 * s390-tdep.c (s390_gdbarch_init): Update.
3995 * sh-tdep.c (sh_gdbarch_init): Update.
3996 * s390-tdep.c (s390_gdbarch_init): Update.
3997 * sparc-tdep.c (sparc_gdbarch_init): Update.
3998 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3999 * v850-tdep.c (v850_gdbarch_init): Update.
4000 * vax-tdep.c (vax_gdbarch_init): Update.
4001 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4003
4004 * config/arc/tm-arc.h: Update.
4005 * config/d30v/tm-d30v.h: Update.
4006 * config/fr30/tm-fr30.h: Update.
4007 * config/h8300/tm-h8300.h: Update.
4008 * config/h8500/tm-h8500.h: Update.
4009 * config/i386/tm-i386.h: Update.
4010 * config/i386/tm-ptx.h: Update.
4011 * config/i386/tm-symmetry.h: Update.
4012 * config/i960/tm-i960.h: Update.
4013 * config/m32r/tm-m32r.h: Update.
4014 * config/m68k/tm-delta68.h: Update.
4015 * config/m68k/tm-linux.h: Update.
4016 * config/m68k/tm-m68k.h: Update.
4017 * config/m88k/tm-m88k.h: Update.
4018 * config/mcore/tm-mcore.h: Update.
4019 * config/mips/tm-mips.h: Update.
4020 * config/mn10200/tm-mn10200.h: Update.
4021 * config/pa/tm-hppa.h: Update.
4022 * config/pa/tm-hppa64.h: Update.
4023 * config/sparc/tm-sp64.h: Update.
4024 * config/sparc/tm-sparc.h: Update.
4025 * config/sparc/tm-sparclet.h: Update.
4026 * config/z8k/tm-z8k.h: Update.
4027
5179e78f
AC
40282002-06-14 Andrew Cagney <cagney@redhat.com>
4029
4030 * Makefile.in (i386_linux_tdep_h): Define.
4031 (i386_tdep_h, i387_tdep_h): Define.
4032 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4033 $(i386_tdep_h) and $(i387_tdep_h).
4034 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4035
8201327c
MK
40362002-06-14 Mark Kettenis <kettenis@gnu.org>
4037
edf393ac
MK
4038 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4039 Already covered by the default.
4040
896fb97d
MK
4041 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4042 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4043 (i386_gdbarch_init): Initialize long_double_format and long_double
4044 bit.
4045
8201327c
MK
4046 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4047 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4048 Move these to ...
4049 * config/i386/i386sol2.mh: ... here.
4050 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4051 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4052 (SIGCONTEXT_PC_OFFSET): Remove define.
4053 (IN_SIGTRAMP): Remove define.
4054 * i386-sol2-tdep.c: New file.
4055
4056 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4057 * config/i386/tm-i386nw.h: Removed.
4058
4059 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4060 USE_STRUCT_CONVENTION): Remove defines.
4061 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4062 (get_longjmp_target): Remove prototype.
4063 (IN_SIGTRAMP): Remove define.
4064 (i386bsd_in_sigtramp): Remove prototype.
4065 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4066 function. Update comment accordingly
4067 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4068 (FRAME_SAVED_PC): Remove define.
4069 (i386bsd_frame_saved_pc): Remove prototype.
4070 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4071 GET_LONGJMP_TARGET): Remove defines.
4072 (get_longjmp_target): Remove prototype.
4073 (IN_SIGTRAMP): Remove define.
4074 (i386bsd_in_sigtramp): Remove prototype.
4075 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4076 function. Update comment accordingly
4077 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4078 (FRAME_SAVED_PC): Remove define.
4079 (i386bsd_frame_saved_pc): Remove prototype.
4080 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4081 Remove prototype.
4082 (USE_STRUCT_CONVENTION): Remove prototype.
4083 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4084 declaration.
4085 (_initialize_i386bsd_nat): Revise logic to determine some
4086 constants at compile time when compiling a native GDB. Warn if
4087 things don't match up with what we expect.
4088 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4089 Remove variables.
4090 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4091 to use date stored in `struct gdbarch_tdep'.
4092 (i386bsd_sigcontext_offset): Remove varaible.
4093 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4094 stored in `struct gdbarch_tdep'.
4095 (i386bsd_frame_saved_pc): Make static.
4096 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4097 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4098 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4099 i386fbsd4_sc_pc_offset): New variables.
4100 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4101 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4102 functions.
4103 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4104 functions.
4105 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4106 Modify the value of i386fbsd_sigtramp_start and
4107 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4108 i386fbsd_sigtramp_end.
4109 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4110 function.
4111
4112 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4113 define to i386-linux-tdep.h.
4114 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4115 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4116 defines.
4117 (i386_linux_register_name, i386_linux_register_byte,
4118 i386_linux_register_raw_size): Remove prototypes.
4119 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4120 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4121 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4122 TARGET_WRITE_PC): Remove defines.
4123 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4124 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4125 i386_linux_write_pc): Remove prototypes.
4126 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4127 (get_longjmp_target): Remove prototype.
4128 * i386-linux-tdep.h: New file.
4129 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4130 * i386-linux-tdep.c: Include "i386-tdep.h" and
4131 "i386-linux-tdep.h".
4132 (i386_linux_register_name, i386_linux_register_byte,
4133 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4134 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4135 Make static.
4136 (i386_linux_init_abi): New function.
4137 (_initialize_i386_linux_tdep): New function.
4138
4139 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4140 (i386_saved_pc_after_call): Remove prototype.
4141 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4142 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4143 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4144 (i386_register_name, i386_stab_reg_to_regnum,
4145 i386_dwarf_reg_to_regnum): Remove prototypes.
4146 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4147 SIZEOF_SSE_REGS): Remove defines.
4148 (REGISTER_BYTES): Remove define.
4149 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4150 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4151 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4152 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4153 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4154 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4155 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4156 (get_longjmp_target): Remove prototype.
4157 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4158 (sigtramp_saved_pc): Remove define.
4159 (i386v4_sigtramp_saved_pc): Remove prototype.
4160 * config/i386/tm-go32.h (FRAME_CHAIN,
4161 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4162 (i386go32_frame_saved_pc): Remove prototype.
4163 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4164 (get_longjmp_target): Remove prototype.
4165 * i386-tdep.h: Include "osabi.h".
4166 (enum i386_abi): Removed.
4167 (enum struct_return): New enum.
4168 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4169 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4170 sc_pc_offset members.
4171 (i386_gdbarch_register_os_abi): Remove prototype.
4172 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4173 I386_SSE_NUM_REGS): New defines.
4174 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4175 I386_SSE_SIZEOF_REGS): New defines.
4176 (i386_register_name, i386_register_byte, i386_register_raw_size):
4177 New prototypes.
4178 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4179 (i386bsd_sigtramp_saved_pc): New prototype.
4180 * i386-tdep.c: Don't include "elf-bfd.h".
4181 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4182 i386_frame_chain, i386_saved_pc_after_call): Make static.
4183 (i386_frame_saved_pc): Rewrite to call architecture dependent
4184 function to deal with signal handlers. Make static.
4185 (i386go32_frame_saved_pc): Removed.
4186 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4187 Removed.
4188 (i386_get_longjmp_target): New function.
4189 (default_struct_convention, pcc_struct_convention,
4190 reg_struct_convention, valid_conventions, struct_convention): New
4191 variables.
4192 (i386_use_struct_convention): New function.
4193 (i386v4_sigtramp_saved_pc): Renamed to
4194 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4195 (i386_pc_in_sigtramp): New function.
4196 (i386_abi_names): Removed.
4197 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4198 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4199 Removed.
4200 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4201 i386_gdbarch_register_os_abi): Removed.
4202 (struct i386_abi_handler): Removed.
4203 (i386_abi_handler_list): Removed.
4204 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4205 functions.
4206 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4207 i386_nw_init_abi): New functions.
4208 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4209 Use set_gdbarch_xxx() calls instead of relying on macros for a
4210 number of calls.
4211 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4212 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4213 Register the various architecture variants defined in this file.
4214
ad2f7632
DJ
42152002-06-14 Daniel Jacobowitz <drow@mvista.com>
4216
4217 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4218 (struct main_type): Remove arg_types member. Update comments for
4219 struct field.
4220 (TYPE_ARG_TYPES): Remove.
4221 (TYPE_FN_FIELD_ARGS): Update.
4222 (smash_to_method_type): Update prototype.
4223
4224 * c-typeprint.c (cp_type_print_method_args): Take method type
4225 instead of argument list. Use new argument layout. Simplify.
4226 (c_type_print_args): Use new argument layout. Simplify.
4227 (c_type_print_base): Update call to cp_type_print_method_args.
4228 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4229 argument; use die->type instead. Update call to
4230 smash_to_method_type.
4231 (read_structure_scope): Update call to dwarf2_add_member_fn.
4232 * gdbtypes.c (allocate_stub_method): Update comment.
4233 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4234 Use new argument layout.
4235 (check_stub_method): Use new argument layout. Don't count
4236 void as an argument.
4237 (print_arg_types): Update comments. Use new argument layout.
4238 (recursive_dump_type): Don't print arg_types member.
4239 * hpread.c (hpread_read_struct_type): Use new argument layout.
4240 (fixup_class_method_type): Likewise.
4241 (hpread_type_lookup): Likewise.
4242 * stabsread.c (read_type): Update calls to read_args and
4243 smash_to_method_type.
4244 (read_args): Use new argument layout. Simplify.
4245 * valops.c (typecmp): Use new argument layout. Update parameters
4246 and comments. Simplify.
4247 (hand_function_call): Use new argument layout.
4248 (search_struct_method): Update call to typecmp.
4249 (find_overload_match): Use new argument layout.
4250
6da02953
DJ
42512002-06-13 Daniel Jacobowitz <drow@mvista.com>
4252
4253 * NEWS: Mention multithreaded debug support for gdbserver.
4254
519b2366
DJ
42552002-06-13 Daniel Jacobowitz <drow@mvista.com>
4256
4257 * MAINTAINERS: Mention NEWS.
4258
6c0d6680
DJ
42592002-06-13 Daniel Jacobowitz <drow@mvista.com>
4260
4261 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4262 (struct mips_objfile_private, compare_pdr_entries): New.
4263 (non_heuristic_proc_desc): Read the ".pdr" section if it
4264 is present.
4265
6529d2dd
AC
42662002-06-12 Andrew Cagney <ac131313@redhat.com>
4267
4268 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4269 (arm_debug): New static variable.
4270 (_initialize_arm_tdep): Add ``set debug arm'' command.
4271
26216b98
AC
42722002-06-12 Andrew Cagney <ac131313@redhat.com>
4273
4274 * Makefile.in (sim_arm_h): Define.
4275 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4276 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4277 (arm_register_sim_regno): New function, map an internal REGNUM
4278 onto a simulator register number.
4279 (arm_gdbarch_init): Set register_sim_regno.
4280
814b3ba0
AH
42812002-06-09 Aldy Hernandez <aldyh@redhat.com>
4282
4283 * MAINTAINERS: Add self.
4284
475b0867
JB
42852002-06-11 Jim Blandy <jimb@redhat.com>
4286
919d772c
JB
4287 * source.c (source_info): Mention whether the symtab has
4288 information about preprocessor macros.
4289
475b0867
JB
4290 Call the command `info macro', not `show macro'.
4291 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4292 Fix error message.
4293 (_initialize_macrocmd): Register `info_macro_command' in
4294 `infolist', not `showlist'.
4295
9e364162
DJ
42962002-06-11 Daniel Jacobowitz <drow@mvista.com>
4297
4298 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4299 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4300 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4301 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4302 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4303 unconditionally.
4304 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4305 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4306 (_initialize_mips_tdep): Remove dead code.
4307 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4308 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4309 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4310 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4311 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4312 MIPS_LAST_FP_ARG_REGNUM): Remove.
4313
23aa4c72
ML
43142002-06-11 Michal Ludvig <mludvig@suse.cz>
4315
4316 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4317 (unwind_tmp_obstack_free, parse_frame_info)
4318 (update_context, cfi_read_fp, cfi_write_fp)
4319 (cfi_frame_chain, cfi_init_extra_frame_info)
4320 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4321 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4322
70eb15a4
CV
43232002-06-11 Corinna Vinschen <vinschen@redhat.com>
4324
4325 * v850-tdep.c (v850_type_is_scalar): New function.
4326 (v850_use_struct_convention): Match current gcc implementation
4327 as close as possible.
4328 (v850_push_arguments): Fix stack_offset handling. Don't write
4329 struct_addr into register. This is done by v850_store_struct_return.
4330 (v850_extract_return_value): Care for structs.
4331 (v850_store_return_value): Ditto.
4332 (v850_store_struct_return): Actually write address.
4333
482a4d06
ML
43342002-06-11 Michal Ludvig <mludvig@suse.cz>
4335
4336 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4337 without debug information too.
4338
d855c300
AC
43392002-06-10 Andrew Cagney <ac131313@redhat.com>
4340
4341 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4342 Make multi-arch pure.
4343 * gdbarch.h, gdbarch.c: Re-generate.
4344 * arm-tdep.c (arm_print_float_info): Update.
4345 * arch-utils.h (default_print_float_info): Update.
4346 * arch-utils.c (default_print_float_info): Update.
4347 * infcmd.c (float_info): Update call.
4348
dd12a101
AC
43492002-06-10 Andrew Cagney <ac131313@redhat.com>
4350
4351 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4352 the front of the initialize list.
4353
101dcfbe
AC
43542002-06-10 Andrew Cagney <ac131313@redhat.com>
4355
4356 * infrun.c (struct inferior_status): Replace fields
4357 selected_frame_address and selected_level with field
4358 selected_frame_id.
4359 (save_inferior_status): Update. Use get_frame_id.
4360 (struct restore_selected_frame_args): Delete.
4361 (restore_selected_frame): Update. Use frame_find_by_id.
4362 (restore_inferior_status): Update.
4363
4364 * breakpoint.h (struct breakpoint): Change type of
4365 watchpoint_frame to frame_id.
4366 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4367 call to get_current_frame.
4368 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4369 get_current_frame.
4370 (watchpoint_check): Use frame_find_by_id.
4371
4372 * frame.h (record_selected_frame): Delete declaration.
4373 * stack.c (record_selected_frame): Delete function.
4374
4375 * frame.h (struct frame_id): Define.
4376 (get_frame_id): Declare.
4377 (frame_find_by_id): Declare.
4378 * frame.c (frame_find_by_id): New function.
4379 (get_frame_id): New function.
4380
304270b6
AV
43812002-06-10 Andrey Volkov <avolkov@transas.com>
4382
4383 * ser-e7kpc.c: Fix duplicated define and call of
4384 _initialize_ser_e7000pc
4385
2f2cf184
DJ
43862002-06-09 Daniel Jacobowitz <drow@mvista.com>
4387
4388 * signals/signals.c (target_signal_from_host): Fix #ifdef
4389 SIGRTMIN case.
4390 (do_target_signal_to_host): Likewise.
4391
caaa3122
DJ
43922002-06-09 Daniel Jacobowitz <drow@mvista.com>
4393
4394 * mips-tdep.c (mips_find_abi_section): New function.
4395 (mips_gdbarch_init): Call it.
4396
6ac5df3a
MK
43972002-06-09 Mark Kettenis <kettenis@gnu.org>
4398
4399 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4400 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4401 after Andrew's 2002-06-08 gdbarch change.
4402
82ea117a
MK
44032002-06-09 Mark Kettenis <kettenis@gnu.org>
4404
4405 * i386-linux-nat.c (suppy_gregset): Don't supply
4406 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4407 register cache.
4408 (fill_gregset): Don't fetch it under the same circumstances.
4409
3c25f8c7
AC
44102002-06-09 Andrew Cagney <cagney@redhat.com>
4411
4412 * Makefile.in (callback_h): Define.
4413 (remote_sim_h): Update path to remote-sim.h.
4414 (remote-rdp.o): Add $(callback_h).
4415 (remote-sim.o): Use $(callback_h).
4416 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4417 * remote-rdp.c: Include "gdb/callback.h".
4418
1029b7fa
MK
44192002-06-09 Mark Kettenis <kettenis@gnu.org>
4420
4421 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4422 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4423
616675d3
AC
44242002-06-08 Andrew Cagney <ac131313@redhat.com>
4425
a3efda28
AC
4426 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4427 * rdi-share/serpardr.c: Ditto.
4428 * rdi-share/unixcomm.c: Ditto.
4429 * rdi-share/serdrv.c: Ditto.
4430 * rdi-share/hostchan.h: Ditto.
4431 * rdi-share/hostchan.c: Ditto.
4432 * rdi-share/host.h: Ditto.
4433 * rdi-share/devsw.c: Ditto.
4434
c5f10366
AC
4435 * objfiles.h: Change type of obj_private to void pointer.
4436 * pa64solib.c: Update copyright. Don't include "assert.h", use
4437 strcmp instead of STREQ, use LONGEST, do not use PTR
4438 * somsolib.c: Ditto.
4439
616675d3
AC
4440 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4441 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4442 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4443
e4b415d9
AC
44442002-06-08 Andrew Cagney <ac131313@redhat.com>
4445
4446 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4447 (default_get_saved_register): Delete function.
4448 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4449 generic_unwind_get_saved_register.
4450 * gdbarch.h, gdbarch.c: Re-generate.
4451
ca0d0b52
AC
44522002-06-08 Andrew Cagney <ac131313@redhat.com>
4453
4454 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4455 generic_func_frame_chain_valid.
4456 * gdbarch.h, gdbarch.c: Re-generate.
4457 * blockframe.c (generic_func_frame_chain_valid): Only check
4458 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4459 passing FP to PC_IN_CALL_DUMMY.
4460 Fix PR gdb/360.
4461
76860b5f
AC
44622002-06-08 Andrew Cagney <ac131313@redhat.com>
4463
4464 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4465 (register_gdbarch_data): Initialize init_p.
4466 (gdbarch_data): Initialize data pointer using the init function.
4467 (init_gdbarch_data): Delete function.
4468 (gdbarch_update_p): Update.
4469 (initialize_non_multiarch): Update.
4470 (struct gdbarch): Add field initialized_p.
4471 * gdbarch.h, gdbarch.c: Re-generate.
4472
8dda9770
ML
44732002-06-07 Michal Ludvig <mludvig@suse.cz>
4474
4475 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4476 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4477 better do the things actually here.
4478 * x86-64-tdep.c (x86_64_register_name2nr): New.
4479 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4480 (x86_64_gdbarch_init): Respect the above change.
4481 * x86-64-tdep.h (x86_64_register_name2nr)
4482 (x86_64_register_nr2name): Add prototypes.
4483 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4484
3d79a47c
MS
44852002-06-06 Michael Snyder <msnyder@redhat.com>
4486
7bd91a28
MS
4487 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4488 Delete extra braces and re-indent.
4489 (d10v_store_return_value): Char return values
3d79a47c
MS
4490 must be shifted over by one byte in R0.
4491 (d10v_extract_return_value): Delete extra braces, re-indent.
4492
095a4c96
EZ
44932002-06-06 Elena Zannoni <ezannoni@redhat.com>
4494
4495 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4496 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4497 (d10v_integer_to_address): Rewrite.
4498 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4499 the d10v specific functions which take care of converting to the
4500 correct space.
4501
e8a77ca4
EZ
45022002-06-06 Elena Zannoni <ezannoni@redhat.com>
4503
4504 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4505 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4506
4f2e4a4f
AC
45072002-06-02 Andrew Cagney <ac131313@redhat.com>
4508
4509 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4510 includes.
4511 * config/tm-linux.h: Ditto.
4512 * config/alpha/tm-alphalinux.h: Ditto.
4513 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4514 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4515 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4516 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4517 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4518 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4519 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4520 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4521 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4522 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4523 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4524 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4525 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4526 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4527 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4528 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4529 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4530 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4531 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4532 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4533 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4534 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4535 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4536 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4537 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4538 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4539 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4540 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4541 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4542 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4543 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4544 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4545 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4546 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4547 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4548 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4549 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4550
ae2ab2ce
AS
45512002-05-04 Aidan Skinner <aidan@velvet.net>
4552
4553 * ada-exp.tab.c: New file
4554 * ada-exp.y: New file
4555 * ada-lang.c: New file
4556 * ada-lang.h: New file
4557 * ada-lex.c: New file
4558 * ada-lex.l: New file
4559 * ada-tasks.c: New file
4560 * ada-typeprint.c: New file
4561 * ada-valprint.c: New file
4562
0ddd0135
JT
45632002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4564
4565 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4566 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4567
750fbacc
JT
45682002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4569
4570 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4571 insetead of ppc-linux-tdep.o.
4572 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4573 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4574
df94e18a
AC
45752002-06-02 Andrew Cagney <ac131313@redhat.com>
4576
4577 2002-05-07 Christian Groessler <chris@groessler.org>
4578 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4579 bit register contents for little endian hosts.
4580
1a38ab75
AC
45812002-06-01 Andrew Cagney <ac131313@redhat.com>
4582
4583 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4584 any maintainer.
4585
8b1632ac
AC
45862002-06-01 Andrew Cagney <ac131313@redhat.com>
4587
4588 * gdbarch.h: Regenerate.
4589
627054c8
AC
45902002-06-01 Andrew Cagney <ac131313@redhat.com>
4591
4592 * MAINTAINERS: Add everyone to write-after-approval list.
4593
4f460812
AC
45942002-06-01 Andrew Cagney <ac131313@redhat.com>
4595
4596 * stack.c (frame_info): Use frame_register_unwind instead of
4597 saved_regs. Mention when the SP is on the stack or in a register.
4598
4599 * frame.h (frame_register_unwind_ftype): Define. Document.
4600 (struct frame_info): Add field register_unwind and
4601 register_unwind_cache.
4602 (frame_register_unwind): Declare.
4603 (generic_unwind_get_saved_register): Declare.
4604
4605 * frame.c (frame_register_unwind): New function.
4606 (generic_unwind_get_saved_register): New function.
4607
4608 * blockframe.c (generic_call_dummy_register_unwind): New function.
4609 (frame_saved_regs_register_unwind): New function.
4610 (set_unwind_by_pc): New function.
4611 (create_new_frame): New function.
4612 (get_prev_frame): New function.
4613
de888f76
AC
46142002-05-30 Andrew Cagney <ac131313@redhat.com>
4615
4616 * a29k-share/: Delete directory.
4617 * remote-vx29k.c: Delete file.
4618
2f2c3626
JT
46192002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4620
4621 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4622 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4623
9ce5c36a
JT
46242002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4625
4626 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4627 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4628 (sparc64nbsd-nat.o)
4629 (sparcnbsd-nat.o)
4630 (sparcnbsd-tdep.o): New dependency lists.
4631 * NEWS: Note new UltraSPARC NetBSD native configuration.
4632 * configure.host (sparc64-*-netbsd*): New host.
4633 * configure.tgt (sparc-*-netbsdelf*)
4634 (sparc-*-netbsd*): Set gdb_target to nbsd.
4635 (sparc64-*-netbsd*): New target.
4636 * sparc64nbsd-nat.c: New file.
4637 * sparcnbsd-nat.c: New file.
4638 * sparcnbsd-tdep.c: New file.
4639 * sparcnbsd-tdep.h: New file.
4640 * config/sparc/nbsd.mt: New file.
4641 * config/sparc/nbsd64.mh: New file.
4642 * config/sparc/nbsd64.mt: New file.
4643 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4644 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4645 (HOST_IPC): Remove.
4646 * config/sparc/nbsdaout.mt: Remove.
4647 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4648 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4649 (HOST_IPC): Remove.
4650 * config/sparc/nbsdelf.mt: Remove.
4651 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4652 sparc-nat.c compatiblity defines.
4653 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4654 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4655 * config/sparc/tm-nbsd64.h: New file.
4656 * config/sparc/tm-nbsdaout.h: Remove.
4657 * config/sparc/xm-nbsd.h: Remove.
4658
ef3cf062
JT
46592002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4660
4661 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4662 * sparc-tdep.c: Include osabi.h.
4663 (gdbarch_tdep): Add osabi member.
4664 (_initialize_sparc_tdep): Use gdbarch_register.
4665 (sparc_gdbarch_init): Use generic OS ABI framework.
4666 (sparc_dump_tdep): New function.
4667
ee8ff470
KB
46682002-05-30 Kevin Buettner <kevinb@redhat.com>
4669
4670 * corefile.c (do_captured_read_memory_integer): Return non-zero
4671 result.
4672 (safe_read_memory_integer): Copy result of memory read when
4673 status is non-zero. Also, add comments.
4674
7b112f9c
JT
46752002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4676
4677 * Makefile.in (ppc_tdep_h): Define.
4678 (ppc-linux-nat.o)
4679 (ppc-linux-tdep.o)
4680 (rs6000-tdep.o): Use $(ppc_tdep_h).
4681 (ppc-sysv-tdep.o)
4682 (ppcnbsd-nat.o)
4683 (ppcnbsd-tdep.o): New dependency lists.
4684 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4685 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4686 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4687 (ppc_sysv_abi_broken_use_struct_convention)
4688 (ppc_sysv_abi_use_struct_convention)
4689 (ppc_sysv_abi_push_arguments): Move to...
4690 * ppc-sysv-tdep.c: ...here.
4691 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4692 * rs6000-tdep.c (process_note_abi_tag_sections)
4693 (get_elfosabi): Remove.
4694 (rs6000_gdbarch_init): Use generic OS ABI framework.
4695 (rs6000_dump_tdep): New function.
4696 (_initialize_rs6000_tdep): Use gdbarch_register.
4697 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4698 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4699 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4700 of ppc-linux-tdep.o.
4701 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4702 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4703 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4704 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4705 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4706 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4707
480dd42a
JB
47082002-05-29 Jim Blandy <jimb@redhat.com>
4709
4710 * macroscope.c (default_macro_scope): Put `void' in empty argument
4711 list.
4712
4182591f
AC
47132002-05-29 Andrew Cagney <ac131313@redhat.com>
4714
4715 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4716 * arch-utils.c: Include "sim-regno.h".
4717 * gdbarch.sh: Don't include "sim-regno.h".
4718 * gdbarch.h, gdbarch.c: Regenerate.
4719 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4720 here.
4721 * arch-utils.h (legacy_register_sim_regno): To here.
4722 * remote-sim.c (legacy_register_sim_regno): Move function from
4723 here.
4724 * arch-utils.c (legacy_register_sim_regno): To here.
4725
8238d0bf
AC
47262002-05-28 Andrew Cagney <ac131313@redhat.com>
4727
4728 * sim-regno.h: New file.
4729 * Makefile.in (sim_regno_h): Define.
4730 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4731 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4732 (legacy_register_sim_regno): New function.
4733 (one2one_register_sim_regno): New function.
4734 (gdbsim_fetch_register): Rewrite.
4735 (gdbsim_store_register): Only store a register when
4736 REGISTER_SIM_REGNO is valid.
4737 * d10v-tdep.c: Include "sim-regno.h".
4738 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4739 (d10v_ts3_register_sim_regno): Ditto.
4740 * gdbarch.sh: Include "sim-regno.h".
4741 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4742 * gdbarch.h, gdbarch.c: Regenerate.
4743 * arch-utils.h (default_register_sim_regno): Delete declaration.
4744 * arch-utils.c (default_register_sim_regno): Delete function.
4745
485721b1
JT
47462002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4747
4748 * ppcnbsd-nat.c: Rewrite.
4749 * ppcnbsd-tdep.c: New file.
4750 * ppcnbsd-tdep.h: New file.
4751 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4752 solib.o, and solib-svr4.o.
4753 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4754 nbsd-tdep.o, and corelow.o.
4755
697f244d
AC
47562002-05-28 Andrew Cagney <ac131313@redhat.com>
4757
4758 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4759 `tr' and `sed'. Mention that `broken' targets are not expected to
4760 build.
4761
f08caad1 47622002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4763
4764 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4765 Let PC point right after the prologue before looking up symbols.
4766
3139facc
MH
47672002-05-27 Martin M. Hunt <hunt@redhat.com>
4768
4769 * i386-tdep.c (i386_register_virtual_type): Return
4770 builtin_type_vec128i for SSE registers.
4771
4772 * gdbtypes.h (builtin_type_vec128i): Declare.
4773
4774 * gdbtypes.c (build_builtin_type_vec128i): New function.
4775 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4776 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4777 (build_gdbtypes): Initialize new builtin vector types.
4778 (_initialize_gdbtypes): Register new vector types with gdbarch.
4779
6e3ba3b8
JT
47802002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4781
4782 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4783 since it has been multi-arch'd.
4784 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4785 Move Alpha and VAX multi-arch news entries to same section
4786 as other multi-arch news.
4787
93d5585d
JT
47882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4789
4790 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4791 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4792 static. Rename some register numbers to put them in ns32k-tdep
4793 private namespace.
4794 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4795 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4796 functions.
4797 (_initialize_ns32k_tdep): Use gdbarch_register.
4798 * ns32k-tdep.h: New file.
4799 * ns32knbsd-tdep.c: New file.
4800 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4801 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4802 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4803 REGISTER_BYTES, REGISTER_BYTE): Remove.
4804 * config/ns32k/tm-ns32k.h: New file.
4805 * config/ns32k/tm-umax.h: Remove.
4806
efb2c70e
JT
48072002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4808
4809 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4810 ns32k_store_struct_return, ns32k_extract_return_value,
4811 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4812 functions.
4813 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4814 ns32k_saved_pc_after_call.
4815 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4816 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4817 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4818 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4819 ns32k_extract_struct_value_address.
4820
7bcc927b
JT
48212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4822
4823 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4824 ns32k_fix_call_dummy): New.
4825 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4826 ns32k_call_dummy_words.
4827 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4828 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4829 CALL_DUMMY_NARGS): Remove.
4830 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4831
78f9d765
JT
48322002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4833
4834 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4835 ns32k_frame_saved_pc, ns32k_frame_args_address,
4836 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4837 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4838 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4839 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4840 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4841 (BREAKPOINT): Remove..
4842 (FRAME_CHAIN): Define as ns32k_frame_chain.
4843 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4844 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4845 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4846 (FRAME_FIND_SAVED_REGS): Remove.
4847 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4848 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4849 (POP_FRAME): Define as ns32k_pop_frame.
4850
f2c762e0
JT
48512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4852
4853 * ns32k-tdep.c (ns32k_register_byte_32082,
4854 ns32k_register_byte_32382, ns32k_register_raw_size,
4855 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4856 functions.
4857 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4858 ns32k_register_byte_32382.
4859 * config/ns32k/tm-umax.h: Update copyright years.
4860 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4861 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4862 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4863 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4864 (ns32k_get_enter_addr): Fix prototype.
4865
af137673
JT
48662002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4867
4868 * ns32k-tdep.c: Update copyright years.
4869 (ns32k_register_name_32082): New function.
4870 (ns32k_register_name_32382): Ditto.
4871 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4872 (REGISTER_NAME): Define as ns32k_register_name_32382.
4873 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4874 (REGISTER_NAME): Define as ns32k_register_name_32082.
4875
a8bc7b56
JB
48762002-05-24 Jim Blandy <jimb@redhat.com>
4877
4878 * dwarf2read.c (free_line_header): Use xfree, not free.
4879
83a45910
JT
48802002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4881
4882 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4883 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4884
0db71247
AC
48852002-05-23 Andrew Cagney <ac131313@redhat.com>
4886
4887 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4888
b9e5e4dd
AC
48892002-05-23 Andrew Cagney <ac131313@redhat.com>
4890
4891 From Ross Alexander at NEC Europe:
4892 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4893
de530e84
MS
48942002-05-23 Michael Snyder <msnyder@redhat.com>
4895
4896 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4897 for input, rather than parse_and_eval_address.
4898
b91b96f4
AC
48992002-05-23 Andrew Cagney <ac131313@redhat.com>
4900
4901 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4902 * Makefile.in (sim_d10v_h): Update definition.
4903
8b279e7a
AC
49042002-05-24 Andrew Cagney <cagney@redhat.com>
4905
4906 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4907 change `2002-05-22 Michael Snyder' below.
4908 (d10v_push_arguments): Ditto.
4909 (d10v_extract_return_value): Ditto.
4910
0a3d0425
JB
49112002-05-23 Jim Blandy <jimb@redhat.com>
4912
4913 * macrotab.c (check_for_redefinition): Don't complain if the new
4914 definition is the same as the previous one. Take more arguments
4915 to allow the comparison.
4916 (macro_define_object, macro_define_function): Pass more arguments
4917 to check_for_redefinition.
4918
78eac43e
MS
49192002-05-22 Michael Snyder <msnyder@redhat.com>
4920
4921 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4922 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4923 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4924 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4925 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4926 Add a temp variable to save a call (and a memory read).
4927 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4928 if possible (so that PC_IN_CALL_DUMMY will work).
4929
9bc1edb8
CV
49302002-05-22 Corinna Vinschen <vinschen@redhat.com>
4931
4932 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4933
005ef3d2
ML
49342002-05-22 Michal Ludvig <mludvig@suse.cz>
4935
4936 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4937 fde->cie_ptr.
4938 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4939 (dwarf2_build_frame_info): Add offset to fde->initial_location
4940 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4941 (execute_stack_op): Change type of 'result' from ULONGEST to
4942 CORE_ADDR.
005ef3d2 4943
fcf4f891
JT
49442002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4945
4946 * config/alpha/tm-nbsd.h: Include solib.h.
4947
cfef91e4
JT
49482002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4949
4950 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4951 assumptions about the host's byte order.
4952
9964235a
JT
49532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4954
4955 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4956 to dependency list.
4957 * alphanbsd-tdep.c: Include solib-svr4.h.
4958 * shnbsd-tdep.c: Ditto.
4959
9eeef8ef
JT
49602002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4961
4962 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4963 nbsd-tdep.h to dependency list.
4964 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4965 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4966 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4967 nbsdaout.mh and nbsdelf.mh consistently.
4968 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4969 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4970 nbsdaout.mt and nbsdelf.mh consistently.
4971 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4972 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4973 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4974 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4975 a.out shared library stuff from here...
4976 * config/nm-nbsdaout.h: ...to here.
4977 * config/tm-nbsd.h: Remove.
4978 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4979 * config/arm/nbsd.mh: Remove.
4980 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4981 nbsd-tdep.o.
4982 * config/arm/nbsdaout.mh: New file.
4983 * config/arm/nbsdelf.mh: New file.
4984 * config/arm/nm-nbsdaout.h: New file.
4985 * config/i386/nbsd.mh: Remove.
4986 * config/i386/nbsd.mt: Remove.
4987 * config/i386/nbsdaout.mh: New file.
4988 * config/i386/nbsdaout.mt: New file.
4989 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4990 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4991 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4992 i386_register_u_addr): Remove.
4993 * config/i386/nm-nbsdaout.h: New file.
4994 * config/i386/nm-nbsdelf.h: Remove.
4995 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4996 (USE_STRUCT_CONVENTION): Remove.
4997 * config/i386/tm-nbsdaout.h: New file.
4998 * config/i386/tm-nbsdelf.h: Remove.
4999 * config/m68k/nbsd.mh: Remove.
5000 * config/m68k/nbsd.mt: Remove.
5001 * config/m68k/nbsdaout.mh: New file.
5002 * config/m68k/nbsdaout.mt: New file.
5003 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5004 * config/m68k/nm-nbsdaout.h: New file.
5005 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5006 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5007 * config/ns32k/nbsd.mh: Remove.
5008 * config/ns32k/nbsd.mt: Remove.
5009 * config/ns32k/nbsdaout.mh: New file.
5010 * config/ns32k/nbsdaout.mt: New file.
5011 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5012 * config/ns32k/nm-nbsdaout.h: New file.
5013 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5014 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5015 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5016 (SVR4_SHARED_LIBS): Remove.
5017 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5018 * config/sparc/nbsd.mh: Remove.
5019 * config/sparc/nbsd.mt: Remove.
5020 * config/sparc/nbsdaout.mh: New file.
5021 * config/sparc/nbsdaout.mt: New file.
5022 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5023 * config/sparc/nbsdelf.mt: New file.
5024 * config/sparc/nm-nbsdaout.h: New file.
5025 * config/sparc/nm-nbsdelf.h: Remove.
5026 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5027 * config/sparc/tm-nbsdaout.h: New file.
5028
257ce470
JT
50292002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5030
5031 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5032 mipsnbsd-tdep.c
5033 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5034
76a6d5fe
JT
50352002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5036
5037 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5038 shnbsd-nat.c.
5039 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5040
45888261
JT
50412002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5042
5043 * NEWS: Note new MIPS NetBSD native configuration.
5044 * configure.host (mips*-*-netbsd*): New host.
5045 * configure.tgt (mips*-*-netbsd*): New target.
5046 * mipsnbsd-nat.c: New file.
5047 * mipsnbsd-tdep.c: New file.
5048 * mipsnbsd-tdep.h: New file.
5049 * config/mips/nbsd.mh: New file.
5050 * config/mips/nbsd.mt: New file.
5051 * config/mips/nm-nbsd.h: New file.
5052 * config/mips/tm-nbsd.h: New file.
5053
70f80edf
JT
50542002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5055
5056 * Makefile.in (SFILES): Add osabi.c.
5057 (COMMON_OBS): Add osabi.o.
5058 (osabi.o): New dependency list.
5059 * osabi.c: New file.
5060 * osabi.h: New file.
5061 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5062
5063 * Makefile.in (alpha_tdep_h): Define and use instead of
5064 alpha-tdep.h.
5065 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5066 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5067 Remove.
5068 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5069 * alpha-tdep.h: Include osabi.h.
5070 (alpha_abi): Remove.
5071 (gdbarch_tdep): Use generic OS ABI framework.
5072 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5073 gdbarch_register_osabi.
5074 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5075 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5076 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5077
5078 * Makefile.in (sh_tdep_h): Add osabi.h.
5079 * sh-tdep.h (sh_osabi): Remove.
5080 (gdbarch_tdep): Use generic OS ABI framework.
5081 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5082 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5083 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5084 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5085
5086 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5087 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5088 gdbarch_register_osabi.
5089 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5090 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5091 (get_elfosabi): Rename to...
5092 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5093 ABI framework support routines.
5094 (arm_gdbarch_init): Use generic OS ABI framework.
5095 (arm_dump_tdep): Likewise.
5096 (_initialize_arm_tdep): Likewise.
5097 * arm-tdep.h: Include osabi.h.
5098 (arm_abi): Remove.
5099 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5100 osabi member.
5101 (arm_gdbarch_register_os_abi): Remove prototype.
5102 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5103 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5104
5105 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5106 * mips-tdep.c: Include osabi.h.
5107 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5108 OS ABI framework.
5109
d194345b
KH
51102002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5111
5112 * h8300-tdep.c: Fix formatting.
5113
70c6b0d1
EZ
51142002-05-20 Elena Zannoni <ezannoni@redhat.com>
5115
5116 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5117 printing vector registers.
5118
165b8e33
AC
51192002-05-19 Andrew Cagney <ac131313@redhat.com>
5120
5121 From Fernando Nasser:
5122 * remote.c (remote_async_open_1): Re-throw the exception when the
5123 connection fails.
5124 (remote_cisco_open): Ditto.
5125 (remote_open_1): Ditto.
5126
36918e70
AC
51272002-05-19 Andrew Cagney <ac131313@redhat.com>
5128
5129 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5130 (remote_start_remote): Add uiout parameter. Pass through to
5131 remote_start_remote_dummy.
5132 (remote_open_1): Use catch_exception instead of catch_errors.
5133 (remote_async_open_1): Ditto.
5134 (remote_cisco_open): Ditto.
5135
ae44c0c4
AC
51362002-05-19 Andrew Cagney <ac131313@redhat.com>
5137
5138 * remote.c (remote_start_remote): Replace PTR with void pointer.
5139 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5140 static.
5141
8efe637d
AC
51422002-05-18 Andrew Cagney <ac131313@redhat.com>
5143
5144 * gdb_indent.sh: Allow the script to be run in the sim directory.
5145
2f1b5984
MK
51462002-05-18 Mark Kettenis <kettenis@gnu.org>
5147
f0f625e2
MK
5148 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5149 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5150
2f1b5984
MK
5151 * corelow.c (core_open): Only call set_gdbarch_from_file if
5152 exec_bfd is NULL.
5153
fc974602
AV
51542002-05-17 Andrey Volkov <avolkov@transas.com>
5155
5156 * h8300-tdep.c: Add support of EXR register
5157 * config/h8300/tm-h8300.h: Ditto.
5158
906709f4
AV
51592002-05-17 Andrey Volkov <avolkov@transas.com>
5160
5161 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5162
6e591d68
AV
51632002-05-17 Andrey Volkov <avolkov@transas.com>
5164
5165 * h8300-tdep.c: Change literal regnums to REGNO.
5166
84f0252a
JB
51672002-05-17 Jim Blandy <jimb@redhat.com>
5168
e0e9281e
JB
5169 * NEWS: Note addition of macro support.
5170
84f0252a
JB
5171 Expand preprocessor macros in C expressions.
5172 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5173 (scan_macro_expansion, scanning_macro_expansion,
5174 finished_macro_expansion): New function declarations.
5175 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5176 variable declarations.
5177 * parser-defs.h (expression_context_pc): New declaration.
5178 * parse.c (expression_context_pc): New variable.
5179 (parse_exp_1): Set expression_context_pc, as well as
5180 expression_context_block.
5181 * c-exp.y (yylex): If we're not already reading the result of a
5182 macro expansion, try to macro-expand the next token. When we're
5183 done scanning a macro expansion, switch back to the mainline text.
5184 Commas and `if's in a macro's expansion don't terminate the input.
5185 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5186 (macro_original_text, macro_expanded_text,
5187 expression_macro_lookup_func, expression_macro_lookup_baton): New
5188 variables.
5189 (scan_macro_expansion, scanning_macro_expansion,
5190 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5191 c_preprocess_and_parse): New functions.
5192 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5193 c_preprocess_and_parse, instead of c_parse.
5194 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5195 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5196
1c509ca8
JR
5197Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5198
5199 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5200 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5201 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5202
2250ee0c
CV
52032002-05-17 Corinna Vinschen <vinschen@redhat.com>
5204
5205 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5206
ab3b8126
JT
52072002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5208
5209 * Makefile.in (sh_tdep_h): Define and use.
5210 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5211 register enum): Move to...
5212 * * sh-tdep.h: ...here.
5213 * sh-tdep.c: Include sh-tdep.h.
5214 * sh3-rom.c: Likewise.
5215 * shnbsd-tdep.c: Likewise.
5216
ed9d4749
MS
52172002-05-16 Michael Snyder <msnyder@redhat.com>
5218
5219 * arm-tdep.c: Spelling fix in comment.
5220
2e276125
JB
52212002-05-16 Jim Blandy <jimb@redhat.com>
5222
6821892e
JB
5223 Add commands for manually expanding macros and showing their
5224 definitions.
5225 * macrocmd.c, macroscope.c, macroscope.h: New files.
5226 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5227 (macroscope_h): New variable.
5228 (HFILES_NO_SRCDIR): Add macroscope.h.
5229 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5230 (macroscope.o, macrocmd.o): New rules.
5231
2e276125
JB
5232 Teach the Dwarf 2 reader to read macro information.
5233 * dwarf2read.c: #include "macrotab.h".
5234 (dwarf_macinfo_buffer): New variable.
5235 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5236 dwarf_macinfo_size.
5237 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5238 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5239 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5240 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5241 dwarf2_macro_spaces_in_definition): New complaints.
5242 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5243 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5244 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5245 the partial symbol table.
5246 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5247 from what's recorded in the partial symbol table.
5248 (read_file_scope): If the compilation unit has a
5249 `DW_AT_macro_info' attribute, read its macro information.
5250 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5251
2f53fe6c
DJ
52522002-05-16 Daniel Jacobowitz <drow@mvista.com>
5253
5254 Fix PR gdb/546
5255 * ser-tcp.c: Don't include <netinet/udp.h>.
5256
2be99286
SC
52572002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5258
5259 * MAINTAINERS: Update my email address.
5260
c9af212b 52612002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5262
5263 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5264 include file of the same name.
5265
bf5f1a52
CV
52662002-05-16 Corinna Vinschen <vinschen@redhat.com>
5267
5268 * configure.tgt: Mark v850 as multi-arched.
5269 * config/v850/tm-v850.h: Remove file.
5270 * config/v850/v850.mt: Eliminate TM_FILE.
5271
435e042a
CV
52722002-05-16 Corinna Vinschen <vinschen@redhat.com>
5273
5274 * v850-tdep.c: Full multi-arch.
5275 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5276 Define GDB_MULTI_ARCH to 2.
5277
9819c6c8
PM
52782002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5279
5280 * p-exp.y (current_type): New static variable.
5281 Carries the type of the expression at the position that is parsed.
5282 (push_current_type, pop_current_type): Two new functions. Used
5283 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5284 (search_field): New static variable. Set to one after parsing a point
5285 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5286 (FIELDNAME): New token. After a point only a token belonging to
5287 current_type type definition is allowed.
5288 (all over token rules): reset and change current_type according
5289 to rules.
5290 (exp '[' rule): insert implicit array index field if
5291 exp is a pascal string type.
5292
3a06899a
CV
52932002-05-16 Corinna Vinschen <vinschen@redhat.com>
5294
5295 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5296 frame info. Use frame_info's saved_regs instead of matching member
5297 in extra_frame_info throughout.
5298 (v850_frame_init_saved_regs): New function.
5299 (v850_init_extra_frame_info): Move most functionality into
5300 v850_frame_init_saved_regs().
5301 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5302 (v850_frame_find_saved_regs): Remove declaration.
5303 (FRAME_FIND_SAVED_REGS): Remove definition.
5304 (v850_frame_init_saved_regs): Add declaration.
5305 (FRAME_INIT_SAVED_REGS): Add definition.
5306
6ed14b0e
CV
53072002-05-16 Corinna Vinschen <vinschen@redhat.com>
5308
5309 * v850-tdep.c: Begin multi-arch'ing v850.
5310 (v850_target_architecture_hook): Remove function.
5311 (v850_gdbarch_init): New function. Add code previously in
5312 v850_target_architecture_hook().
5313 (_initialize_v850_tdep): Don't set target_architecture_hook.
5314 Call register_gdbarch_init() instead.
5315
42725910
DJ
53162002-05-16 Daniel Jacobowitz <drow@mvista.com>
5317
5318 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5319 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5320 (fixup_class_method_type): Likewise.
5321
99d9066e
JB
53222002-05-15 Jim Blandy <jimb@redhat.com>
5323
5324 Add macro structures to GDB's symbol tables. Nobody puts anything
5325 in them yet.
5326 * symtab.h (struct symtab): New member: `macro_table'.
5327 * buildsym.h (pending_macros): New global variable.
5328 * buildsym.c: #include "macrotab.h".
5329 (buildsym_init): Initialize `pending_macros'.
5330 (end_symtab): If we found macro information while reading a CU's
5331 debugging info, do build a symtab structure for it. Make the
5332 symtab point to the macro information, and clear the
5333 `pending_macros' pointer which held it while we were reading the
5334 debug info.
5335 (really_free_pendings): Free any pending macro table.
5336 * objfiles.h (struct objfile): New member: `macro_cache'.
5337 * objfiles.c (allocate_objfile): Set allocate and free functions
5338 for the macro cache's objstack.
5339 (free_objfile): Empty the macro cache's obstack.
5340 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5341 set new allocate and free functions for it.
5342 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5343 free functions for the macro cache's objstack. (Why is this
5344 function building its own objfile?)
5345 * symmisc.c (print_objfile_statistics): Print statistics on the
5346 macro bcache.
5347 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5348
c899585b
RE
53492002-05-15 Richard Earnshaw <rearnsha@arm.com>
5350
5351 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5352 (REGISTER_U_ADDR): Delete definition.
5353 (arm_register_u_addr): Delete declaration.
5354
a6cdd8c5
RE
53552002-05-15 Richard Earnshaw <rearnsha@arm.com>
5356
5357 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5358 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5359
c97dcfc7
AC
53602002-05-14 Andrew Cagney <ac131313@redhat.com>
5361
5362 * regcache.c (register_valid): Revise comments refering to "Not
5363 available" and "unavailable".
5364 * frame.c (frame_register_read): Ditto.
5365 * findvar.c (value_of_register): Ditto.
5366
93021b7d
AC
53672002-05-15 Andrew Cagney <cagney@redhat.com>
5368
5369 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5370 (remote-sim.o): Update dependencies.
5371 (d10v-tdep.o): Specify dependencies.
5372 (sim_d10v_h): Define.
5373
a86bc61c
JB
53742002-05-14 Jim Blandy <jimb@redhat.com>
5375
5376 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5377 * macrotab.c (macro_lookup_inclusion, find_definition,
5378 new_macro_table): Same.
5379
5380 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5381 not `! strcmp ()'. This is a dubious improvement.
5382 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5383
5384 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5385 although it's not necessary, to avoid a warning.
5386
2fdde8f8
DJ
53872002-05-14 Daniel Jacobowitz <drow@mvista.com>
5388
5389 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5390 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5391 TYPE_INSTANCE_FLAGS.
5392 (struct main_type): New.
5393 (struct type): Move most members to struct main_type. Change
5394 cv_type and as_type to new type_chain member. Add instance_flags.
5395 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5396 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5397 (finish_cv_type): Remove prototype.
5398 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5399 Set TYPE_CHAIN.
5400 (alloc_type_instance): New function.
5401 (smash_type): New function.
5402 (make_pointer_type, make_reference_type, make_function_type)
5403 (smash_to_member_type, smash_to_method_type): Call smash_type.
5404 (make_qualified_type): New function.
5405 (make_type_with_address_space): Call make_qualified_type.
5406 (make_cv_type): Likewise.
5407 (finish_cv_type): Remove unnecessary function.
5408 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5409 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5410 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5411 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5412 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5413 * hpread.c (hpread_read_struct_type): Likewise.
5414 * stabsread.c (read_struct_type): Likewise.
5415
843fedf4
EZ
54162002-05-14 Elena Zannoni <ezannoni@redhat.com>
5417
5418 * configure.tgt: Add a catch all sh* target, for cases like
5419 sh[2,3,4]-elf and sh-hms.
5420
05a6c72c
KS
54212002-05-14 Keith Seitz <keiths@redhat.com>
5422
5423 * event-loop.c (create_file_handler): Don't do anything but
5424 update data when we are given a fd which we are already
5425 monitoring.
5426
5d085aaf
ML
54272002-05-14 Michal Ludvig <mludvig@suse.cz>
5428
5429 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5430 (update_context): Use __func__ in warnings.
5431
9db8d71f
DJ
54322002-05-14 Daniel Jacobowitz <drow@mvista.com>
5433
5434 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5435 and tcp_close to net_open and net_close.
5436 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5437 using UDP if requested. Don't try to disable Nagle on UDP
5438 sockets.
5439 * remote.c (remote_serial_open): New function. Warn about UDP.
5440 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5441
5dbc6baa
EZ
54422002-05-13 Elena Zannoni <ezannoni@redhat.com>
5443
5444 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5445
cc3023f7
EZ
54462002-05-13 Elena Zannoni <ezannoni@redhat.com>
5447
5448 * configure.tgt: Remove sh-hms target.
5449 * MAINTAINERS: Don't list sh-hms as a separate target.
5450
ec2bcbe7
JB
54512002-05-13 Jim Blandy <jimb@redhat.com>
5452
5453 Add first preprocessor macro-expansion files.
5454 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5455 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5456 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5457 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5458 (COMMON_OBS): Add macrotab.o, macroexp.o.
5459 (macroexp.o, macrotab.o): New rules.
5460
6d531722
AC
54612002-05-13 Andrew Cagney <ac131313@redhat.com>
5462
5463 * config/m88k/tm-m88k.h: Update copyright.
5464 (m88k_target_write_pc): Declare
5465 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5466 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5467 (SHIFT_INST_REGS): Update definition.
5468 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5469 using old definition of TARGET_WRITE_PC.
5470 * regcache.c (generic_target_write_pc): Delete code handling
5471 NNPC_REGNUM.
5472 * gdbarch.sh (NNPC_REGNUM): Delete.
5473 * gdbarch.h, gdbarch.c: Regenerate.
5474
3e3f2739
RE
54752002-05-13 Richard Earnshaw <rearnsha@arm.com>
5476
5477 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5478 builtin reg number.
5479
0004e5a2
DJ
54802002-05-13 Daniel Jacobowitz <drow@mvista.com>
5481
5482 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5483 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5484 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5485 access macros.
5486 * c-typeprint.c (cp_type_print_method_args): Likewise.
5487 (c_type_print_args): Likewise.
5488 * d10v-tdep.c (d10v_push_arguments): Likewise.
5489 (d10v_extract_return_value): Likewise.
5490 * expprint.c (print_subexp): Likewise.
5491 * gdbtypes.c (lookup_primitive_typename): Likewise.
5492 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5493 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5494 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5495 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5496 (TYPE_VECTOR): Likewise.
5497 * hpread.c (hpread_read_struct_type)
5498 (fix_static_member_physnames, fixup_class_method_type)
5499 (hpread_type_lookup): Likewise.
5500 * mdebugread.c (parse_symbol, parse_type): Likewise.
5501 * p-lang.c (is_pascal_string_type): Likewise.
5502 * valops.c (hand_function_call): Likewise.
5503 * x86-64-tdep.c (classify_argument): Likewise.
5504
5505 * hpread.c (hpread_read_function_type)
5506 (hpread_read_doc_function_type): Call replace_type.
5507 * dstread.c (create_new_type): Delete.
5508 (decode_dst_structure, process_dst_function): Call alloc_type.
5509 Use type access macros.
5510
dff95cc7
MK
55112002-05-12 Mark Kettenis <kettenis@gnu.org>
5512
5513 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5514 the're not supported by the current architecture.
5515 (i387_fill_fxsave): Likewise.
5516
bbcd32ad
FF
55172002-05-12 Fred Fish <fnf@redhat.com>
5518
5519 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5520 sect_index_xxx members to index the first slot in section_offsets
5521 if all of the section_offsets are zero.
5522
89cf4787
MK
55232002-05-12 Mark Kettenis <kettenis@gnu.org>
5524
5525 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5526 checked in with last change.
5527
1f77ffc5
MK
55282002-05-12 Mark Kettenis <kettenis@gnu.org>
5529
5530 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5531 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5532 config.sub.
5533
89b8b4a9
DJ
55342002-05-12 Daniel Jacobowitz <drow@mvista.com>
5535
5536 * Makefile.in: Update dependencies.
5537
14a5e767
AC
55382002-05-11 Andrew Cagney <ac131313@redhat.com>
5539
5540 * language.c (local_hex_string_custom): Simplify. Do not depend
5541 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5542
5543 * memattr.c (mem_info_command): Replace calls to
5544 longest_local_hex_string and longest_local_hex_string_custom.
5545 * buildsym.c (make_blockvector): Ditto.
5546 * solib.c (info_sharedlibrary_command): Ditto.
5547 * tracepoint.c (tracepoints_info): Ditto.
5548 * symtab.c (print_msymbol_info): Ditto.
5549
5550 * language.c (local_hex_string): Delete.
5551 (local_hex_string_custom): Delete.
5552 (longest_local_hex_string): Rename to local_hex_string.
5553 (longest_local_hex_string_custom): Rename to
5554 local_hex_string_custom.
5555 * language.h (local_hex_string): Change parameter type to LONGEST.
5556 (local_hex_string_custom): Ditto.
5557 (longest_local_hex_string): Delete declaration.
5558 (longest_local_hex_string_custom): Ditto.
5559
5560 * solib.c: Update copyright.
5561 * memattr.c: Update copyright.
5562
13d01224
AC
55632002-05-11 Andrew Cagney <ac131313@redhat.com>
5564
5565 * arch-utils.h (legacy_register_to_value): Declare.
5566 (legacy_value_to_register): Declare.
5567 (legacy_convert_register_p): Declare.
5568 * arch-utils.c (legacy_register_to_value): New function.
5569 (legacy_value_to_register): New function.
5570 (legacy_convert_register_p): New function.
5571
5572 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5573 (VALUE_TO_REGISTER): Define.
5574 (CONVERT_REGISTER_P): Define.
5575 * gdbarch.h, gdbarch.c: Regenerate.
5576
5577 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5578 VALUE_TO_REGISTER.
5579 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5580 CONVERT_REGISTER_P.
5581
4a1970e4
DJ
55822005-05-11 Daniel Jacobowitz <drow@mvista.com>
5583 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5584
5585 * Makefile.in: Update dependencies for valops.c.
5586 * valops.c: Include "gdb_assert.h".
5587 (typecmp): Skip THIS parameter to methods.
5588 (find_method_list): Remove static_memfuncp argument,
5589 update callers. Check for stub methods.
5590 (find_value_oload_method_list): Don't set *static_memfuncp.
5591 (find_overload_match): Don't check for stub methods. Assert
5592 that methods are not stubbed. Handle static methods.
5593 (value_find_oload_method_list): Remove static_memfuncp argument.
5594 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5595 to the argument list for static stub methods.
5596 * value.h (value_find_oload_method_list): Update prototype.
5597
b2e75d78
AC
55982002-05-11 Andrew Cagney <ac131313@redhat.com>
5599
5600 * arch-utils.h (generic_register_size): Declare.
5601 (generic_register_raw_size, generic_register_virtual_size): Delete
5602 declarations.
5603 * arch-utils.c (generic_register_raw_size): Delete.
5604 (generic_register_size): New function.
5605 (generic_register_virtual_size): Delete.
5606
5607 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5608 default generic_register_size.
5609 * gdbarch.h, gdbarch.c: Re-generate.
5610
5611 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5612 register_virtual_size.
5613 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5614 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5615
451fbdda
AC
56162002-05-11 Andrew Cagney <ac131313@redhat.com>
5617
5618 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5619 * gdbarch.h, gdbarch.c: Regenerate.
5620 * gnu-v3-abi.c: Update copyright.
5621 (vtable_address_point_offset): Update.
5622 (gnuv3_rtti_type): Update.
5623 (gnuv3_baseclass_offset): Update.
5624 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5625 (init_fetch_link_map_offsets): Update.
5626 * remote.c (get_remote_state): Update.
5627
6d2f5cea
DJ
56282002-05-11 Daniel Jacobowitz <drow@mvista.com>
5629
5630 * TODO: Remove value_headof/value_from_vtable_info comment.
5631 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5632 * values.c (value_headof, value_from_vtable_info): Delete.
5633 * value.h (value_from_vtable_info): Delete prototype.
5634
d2324da4
AC
56352002-05-11 Andrew Cagney <ac131313@redhat.com>
5636
5637 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5638 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5639 $(gdb_regex_h).
5640 (gdb_assert_h): Define.
5641 (gdb_wait_h): Define.
5642 (gdb_regex_h): Define.
5643
5c717440
DJ
56442002-05-11 Daniel Jacobowitz <drow@mvista.com>
5645
5646 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5647 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5648
6c7861b3
JT
56492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5650
5651 * nbsd-tdep.c: Fix comment.
5652
ea5bc2a6
JT
56532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5654
5655 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5656 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5657 (nbsd-tdep.o): New dependency list.
5658 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5659 nbsd-tdep.h.
5660 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5661 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5662 * nbsd-tdep.c: New file.
5663 * nbsd-tdep.h: New file.
5664 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5665 nbsd-tdep.h.
5666 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5667 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5668 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5669 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5670
b28da865
JT
56712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5672
5673 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5674 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5675 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5676 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5677 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5678 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5679
4b8ff1fa
JT
56802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5681
5682 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5683 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5684 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5685 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5686 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5687 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5688 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5689
dfe6eb1f
JT
56902002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5691
5692 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5693 fetch_elfcore_registers to...
5694 * i386nbsd-tdep.c: ...here.
5695 (i386nbsd_use_struct_convention): Rename to...
5696 (i386nbsd_aout_use_struct_convention): ...this.
5697 (i386nbsd_supply_reg): New function.
5698 (i386nbsd_fill_reg): New function.
5699 (fetch_core_registers): Use i386nbsd_supply_reg.
5700 (fetch_elfcore_registers): Likewise.
5701 (_initialize_i386nbsd_tdep): New function.
5702 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5703 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5704 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5705 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5706 (i386nbsd_aout_use_struct_convention): ...this.
5707
20cb8cda
JT
57082002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5709
5710 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5711 (store_inferior_registers): Use shnbsd_fill_reg.
5712 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5713 sh_nbsd_supply_register): Collapse into...
5714 (shnbsd_supply_reg): ...this.
5715 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5716 (shnbsd_fill_reg): ...this.
5717 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5718 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5719 (fetch_core_registers): Use shnbsd_supply_reg.
5720 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5721 (sh_nbsd_core_fns): Rename to...
5722 (shnbsd_core_fns): ...this.
5723 (sh_nbsd_elfcore_fns): Rename to...
5724 (shnbsd_elfcore_fns): ...this.
5725 (sh_nbsd_init_abi): Rename to...
5726 (shnbsd_init_abi): ...this.
5727 (_initialize_sh_nbsd_tdep): Rename to...
5728 (_initialize_shnbsd_tdep): ...this.
5729 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5730 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5731 sh_nbsd_fill_register): Remove prototypes.
5732 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5733
e750d25e
JT
57342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5735
5736 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5737 (i387-nat.o): Delete dependency list.
5738 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5739 (x86-64-linux-nat.o): Likewise.
5740 * i387-nat.c: Delete file, moving contents to...
5741 * i387-tdep.c: ...here.
5742 * i387-nat.h: Rename...
5743 * i387-tdep.h: ...to this.
5744 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5745 * i386-linux-nat.c: Likewise.
5746 * i386bsd-nat.c: Likewise.
5747 * i386gnu-nat.c: Likewise.
5748 * i386nbsd-nat.c: Likewise.
5749 * i386v4-nat.c: Likewise.
5750 * x86-64-linux-nat.c: Likewise.
5751 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5752 * config/i386/go32.mh (NATDEPFILES): Likewise.
5753 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5754 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5755 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5756 * config/i386/linux.mh (NATDEPFILES): Likewise.
5757 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5758 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5759 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5760 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5761
1aee598a
JT
57622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5763
5764 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5765 (alphanbsd-nat.o): Remove dependency list.
5766 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5767 * alphanbsd-nat.c: Delete. Contents moved to...
5768 * alphanbsd-tdep.c: ...here.
5769 (_initialize_alphanbsd_tdep): Register core functions.
5770 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5771
12bcb0fe
JT
57722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5773
5774 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5775 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5776 (alphanbsd-nat.o): Likewise.
5777 (alphabsd-tdep.o): New dependency list.
5778 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5779 (fill_gregset): Use alphabsd_fill_reg.
5780 (supply_fpregset): Use alphabsd_supply_fpreg.
5781 (fill_fpregset): Use alphabsd_fill_fpreg.
5782 (fetch_inferior_registers): Use struct reg and struct fpreg
5783 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5784 and alphabsd_supply_fpreg.
5785 (store_inferior_registers): Use struct reg and struct fpreg
5786 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5787 and alphabsd_fill_fpreg.
5788 * alphabsd-tdep.c: New file.
5789 * alphabsd-tdep.h: New file.
5790 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5791 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5792 alphabsd_supply_fpreg.
5793 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5794 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5795
361d1df0
EC
57962002-05-11 Eric Christopher <echristo@redhat.com>
5797
5798 * mips-tdep.c (mips_double_register_type): Fix thinko.
5799 (mips_single_register_type): Ditto.
5800 * MAINTAINERS: Add self.
5801
92dd7cee
MK
58022002-05-11 Mark Kettenis <kettenis@gnu.org>
5803
5804 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5805 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5806 right thing on architectures with different endianness and/or
5807 integer sizes.
5808
e27da16d
JT
58092002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5810
5811 From Christian Limpach <chris@Pin.LU>
5812 * configure.in: Change sed expression which comments out
5813 NATDEPFILES to also comment out continuation lines.
5814 * configure: Regenerate.
5815
ddde02bd
EZ
58162002-05-10 Elena Zannoni <ezannoni@redhat.com>
5817
5818 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5819 big patch.
5820
1c922164
EZ
58212002-05-10 Elena Zannoni <ezannoni@redhat.com>
5822
5823 * sh-tdep.c: Include correct file.
5824
283150cd
EZ
58252002-05-10 Elena Zannoni <ezannoni@redhat.com>
5826
5827 New support for sh64-elf (sh5) target.
5828
5829 * configure.tgt: For sh64-elf target, default to sh-elf.
5830
5831 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5832 (struct gdbarch_tdep): Add new fields for new registers and ABI
5833 info.
361d1df0 5834
283150cd
EZ
5835 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5836 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5837 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5838 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5839 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5840 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5841 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5842 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5843 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5844 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5845 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5846 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5847 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5848 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5849 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5850 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5851 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5852 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5853 sign_extend, sh64_nofp_frame_init_saved_regs,
5854 sh64_init_extra_frame_info, sh64_get_saved_register,
5855 sh64_extract_struct_value_address, sh64_pop_frame,
5856 sh64_push_arguments, sh64_extract_return_value,
5857 sh64_store_return_value, sh64_show_media_regs,
5858 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5859 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5860 sh_sh64_register_virtual_type,
5861 sh_sh64_register_convert_to_virtual,
5862 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5863 sh64_register_read, sh64_pseudo_register_write,
5864 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5865 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5866 sh64_do_pseudo_register, sh_compact_do_registers_info,
5867 sh64_do_registers_info, sh_gdbarch_init): New functions.
5868
3117ed25
EZ
58692002-05-10 Elena Zannoni <ezannoni@redhat.com>
5870
5871 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5872
2654e6d4
DJ
58732002-05-10 Daniel Jacobowitz <drow@mvista.com>
5874
5875 * linespec.c (decode_line_1): Check for a double quote after
5876 a filename correctly.
5877
9ab3e532
JB
58782002-05-10 Jim Blandy <jimb@redhat.com>
5879
5880 Properly track the size of the current objfile's .debug_line section.
5881 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5882 (DWARF_LINE_SIZE): New macro.
5883 (dwarf2_build_psymtabs_hard): Record the line section's size in
5884 the partial symbol table.
5885 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5886 symbol table.
5887
126fa72d
PS
58882002-05-10 Petr Sorfa <petrs@caldera.com>
5889
5890 * ia64-tdep.c: Handle breakpoints on L instruction type
5891 in MLX instruction bundle by moving the breakpoint to
5892 the third slot (X instruction type) as L holds only data.
5893
1f077a3e
KB
58942002-05-10 Kevin Buettner <kevinb@redhat.com>
5895
5896 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5897 (process_one_symbol): Complain about discarding local symbols
5898 due to a misplaced N_LBRAC entry.
5899
8120c9d5 59002002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5901
5902 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5903 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5904 decrease the depth we are at, in the case of templates.
361d1df0 5905
67b2c998
DJ
59062002-05-09 Daniel Jacobowitz <drow@mvista.com>
5907
5908 * mips-tdep.c (mips_float_register_type): New function.
5909 (mips_double_register_type): New function.
5910 (mips_print_register): Use them.
5911 (do_fp_register_row): Likewise.
5912
fd326606
DJ
59132002-05-09 Daniel Jacobowitz <drow@mvista.com>
5914
6609d9af 5915 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5916 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5917 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5918
bef35864
MS
59192002-05-09 Michael Snyder <msnyder@redhat.com>
5920
5921 * remote-rdp.c (remote_rdp_can_run): Remove.
5922
c55a3f73
TT
59232002-05-09 Tom Tromey <tromey@redhat.com>
5924
5925 * jv-valprint.c (java_val_print): Handle `char' as a special case
5926 of TYPE_CODE_INT.
5927
b8d5e71d
MS
59282002-05-09 Michael Snyder <msnyder@redhat.com>
5929
5930 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5931 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5932 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5933 str r(0123),[sp,#nn].
361d1df0 5934 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5935 order-independent by placing it in a loop.
5936
e2cd42dd
MS
59372002-05-06 Michael Snyder <msnyder@redhat.com>
5938
5939 * stabsread.c (read_type): Add recognition for new attribute:
5940 "@V;" means that an array type is actually a vector.
5941 This is analogous to the vector flag that's been added to dwarf2.
5942
3ce1502b
MK
59432002-05-09 Mark Kettenis <kettenis@gnu.org>
5944
5945 * i386-tdep.h (i386_abi): New enum.
5946 (struct gdbarch_tdep): Replace os_ident member with abi.
5947 (i386_gdbarch_register_os_abi): New prototype.
5948 * i386-tdep.c (i386_abi_names): New array.
5949 (process_note_abi_tag_sections): Removed.
5950 (process_note_sections): New function.
5951 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5952 (struct i386_abi_handler): New struct.
5953 (i386_abi_handler_list): New variable.
5954 (i386_gdbarch_register_os_abi): New function.
5955 (i386_gdbarch_init): Adapt for the changes given above.
5956
084c156a
DJ
59572002-05-08 Daniel Jacobowitz <drow@mvista.com>
5958
5959 * gregset.h: Say "GNU/Linux".
5960
6599f021
EZ
59612002-05-08 Elena Zannoni <ezannoni@redhat.com>
5962
5963 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5964 (build_gdbtypes): Build builtin_type_v2_float.
5965 (_initialize_gdbtypes): Register new builtin type.
5966
40af4b0c
AC
59672002-05-08 Andrew Cagney <ac131313@redhat.com>
5968
5969 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5970 (clear_gdbarch_swap): New function.
5971 (initialize_non_multiarch): Call.
5972 (gdbarch_update_p): Before calling init(), swap out and clear the
5973 existing architecture.
5974 * gdbarch.c: Regenerate.
5975
4fe84f46
JT
59762002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5977
5978 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5979 alphanbsd-tdep.c.
5980
4015edd1
JT
59812002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5982
5983 * sh-nbsd-nat.c: Rename to...
5984 * shnbsd-nat.c: ...this.
5985 * sh-nbsd-tdep.c: Rename to...
5986 * shnbsd-tdep.c: ...this.
5987 * sh-nbsd-tdep.h: Rename to...
5988 * shnbsd-tdep.h: ...this.
5989 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5990 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5991
0e2bd219
RE
59922002-05-08 Richard Earnshaw <rearnsha@arm.com>
5993
5994 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5995 concatenation for command help messages.
5996
13a38d45
JT
59972002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5998
5999 * NEWS: Note new sh*-*-netbsdelf* configuration.
6000 * configure.host: Set gdb_host_cpu to sh for all sh*.
6001 (sh*-*-netbsdelf*): New host.
6002 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6003 (sh*-*-netbsdelf*): New target.
6004 * sh-nbsd-nat.c: New file.
6005 * sh-nbsd-tdep.c: New file.
6006 * sh-nbsd-tdep.h: New file.
6007 * config/sh/nbsd.mh: New file.
6008 * config/sh/nbsd.mt: New file.
6009 * config/sh/nm-nbsd.h: New file.
6010 * config/sh/tm-nbsd.h: New file.
6011
d658f924
JT
60122002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6013
6014 * sh-tdep.c (sh_osabi_names): Declare.
6015 (process_note_abi_tag_sections): New function.
6016 (get_elfosabi): Ditto.
6017 (sh_gdbarch_register_os_abi): Ditto.
6018 (sh_dump_tdep): Ditto.
6019 _initialize_sh_tdep): Use gdbarch_register to register
6020 sh_gdbarch_init and sh_dump_tdep.
6021 * config/sh/tm-sh.h (sh_osabi): Declare.
6022 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6023
848cfffb
AC
60242002-05-07 Andrew Cagney <ac131313@redhat.com>
6025
6026 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6027 (thumb_scan_prologue): Ditto.
6028 (arm_find_callers_reg): Ditto.
6029 (arm_frame_chain): Ditto.
6030 (arm_init_extra_frame_info): Ditto.
6031 (arm_frame_saved_pc): Ditto.
6032 (arm_pop_frame): Ditto.
6033 (arm_push_return_address): New function.
6034 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6035 call_dummy_location, call_dummy_breakpoint_offset_p,
6036 call_dummy_breakpoint_offset, call_dummy_p,
6037 call_dummy_stack_adjust_p, call_dummy_words,
6038 sizeof_call_dummy_words, call_dummy_start_offset,
6039 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6040 call_dummy_address, push_return_address and push_dummy_frame for
6041 generic dummy frames.
6042
e7d717c0
JT
60432002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6044
6045 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6046 size computation for alloca.
6047 (sh_fp_frame_init_saved_regs): Likewise.
6048
7bbcf283
RE
60492002-05-07 Richard Earnshaw <rearnsha@arm.com>
6050
6051 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6052 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6053 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6054 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6055 * remote-rdp.c (remote_rdp_fetch_register): Use
6056 ARM_MAX_REGISTER_RAW_SIZE.
6057 (remote_rdp_store_register): Likewise.
6058
4657573b
ML
60592002-05-07 Michal Ludvig <mludvig@suse.cz>
6060
361d1df0 6061 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6062 added default labels to switch {} statements.
6063 * x86-64-tdep.c: Ditto.
6064 * x86-64-linux-nat.c: Ditto.
6065
010f3b2f
JT
60662002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6067
6068 * solib.h: Protect against multiple inclusion.
6069
debd256d
JB
60702002-05-06 Jim Blandy <jimb@redhat.com>
6071
9ab3e532
JB
6072 Add first preprocessor macro-expansion files.
6073 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6074 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6075 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6076 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6077 (COMMON_OBS): Add macrotab.o, macroexp.o.
6078 (macroexp.o, macrotab.o): New rules.
6079
debd256d
JB
6080 Separate the job of reading the line number info statement program
6081 header (...expialidocious) out into its own function.
6082 * dwarf2read.c (struct line_head, struct filenames, struct
6083 directories): Replace with...
6084 (struct line_header): New structure, containing the full
6085 contents of the statement program header, including the
6086 include directory and file name tables.
6087 (read_file_scope): If we have line number info, instead of just
6088 calling dwarf_decode_lines to do all the work, call
6089 dwarf_decode_line_header first to get a `struct line_header'
6090 containing the data in the statement program header, and then
6091 pass that to dwarf_decode_lines, which will pick up where that
6092 left off. Be sure to clean up the `struct line_header' object.
6093 (dwarf_decode_line_header, free_line_header, add_include_dir,
6094 add_file_name): New functions.
6095 (dwarf_decode_lines): Move all the code to read the statement
6096 program header into dwarf_decode_line_header. Take the line
6097 header it built as the first argument, instead of the offset to
6098 the compilation unit's line number info. Use the new `struct
6099 line_header' type instead of the old structures. No need to do
6100 cleanups here now, since we don't allocate anything.
6101 (dwarf2_statement_list_fits_in_line_number_section,
6102 dwarf2_line_header_too_long): New complaints.
6103
ac3aafc7
EZ
61042002-05-06 Elena Zannoni <ezannoni@redhat.com>
6105
6106 * gdbtypes.c (init_vector_type): New function.
6107 (build_builtin_type_vec128): Simplify the representation of SIMD
6108 registers.
6109 (build_gdbtypes): Initialize new builtin vector types.
6110 (_initialize_gdbtypes): Register new vector types with gdbarch.
6111 (builtin_type_v4_float, builtin_type_v4_int32,
6112 builtin_type_v8_int16, builtin_type_v16_int8,
6113 builtin_type_v2_int32, builtin_type_v4_int16,
6114 builtin_type_v8_int8): New (renamed) SIMD types.
6115
13e49980
MK
61162002-05-06 Mark Kettenis <kettenis@gnu.org>
6117
6118 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6119 (i387_fill_fxsave): Likewise.
6120
997b20b8
AO
61212002-05-05 Alexandre Oliva <aoliva@redhat.com>
6122
6123 * alpha-tdep.c (alpha_extract_return_value): Don't use
6124 non-constant array size in prototype.
6125
535c96ce
AC
61262002-05-04 Andrew Cagney <ac131313@redhat.com>
6127
6128 From Brian Taylor <briant at model dot com>:
6129 * ui-out.c (ui_out_field_core_addr): Use the function
6130 longest_local_hex_string_custom'to format addresses > 32 bits
6131 wide.
6132
6133 * ui-out.c (ui_out_field_core_addr): Update comment.
6134
bedfa57b
AC
61352002-05-04 Andrew Cagney <ac131313@redhat.com>
6136
6137 * stack.c (select_and_print_frame): Make static. Delete the
6138 parameter `level'.
6139 (func_command): Update call.
6140 (select_frame_command): Delete code computing the frame level.
6141 * frame.h (select_and_print_frame): Delete declaration.
6142
f621c63e
AC
61432002-05-04 Andrew Cagney <ac131313@redhat.com>
6144
6145 * sparc-tdep.c (sparc_get_saved_register): Comment why
6146 get_prev_frame call is safe.
6147
0f7d239c
AC
61482002-05-04 Andrew Cagney <ac131313@redhat.com>
6149
6150 * frame.h (select_frame): Delete level parameter.
6151 * stack.c (select_frame): Update. Use frame_relative_level to
6152 obtain the frame's level.
6153 (select_and_print_frame): Update call.
6154 (select_frame_command): Ditto.
6155 (up_silently_base): Ditto.
6156 (down_silently_base): Ditto.
6157 * ocd.c (ocd_start_remote): Ditto.
6158 * remote-rdp.c (remote_rdp_open): Ditto.
6159 * remote-mips.c (mips_initialize): Ditto.
6160 (common_open): Ditto.
6161 * remote-e7000.c (e7000_start_remote): Ditto.
6162 * m3-nat.c (select_thread): Ditto.
6163 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6164 (child_get_current_exception_event): Ditto.
6165 * varobj.c (varobj_create): Ditto.
6166 (varobj_update): Ditto.
6167 (c_value_of_root): Ditto.
6168 * tracepoint.c (finish_tfind_command): Ditto.
6169 * corelow.c (core_open): Ditto.
6170 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6171 * thread.c (info_threads_command): Ditto.
6172 (switch_to_thread): Ditto.
6173 * infrun.c (normal_stop): Ditto.
6174 (restore_selected_frame): Ditto.
6175 (restore_inferior_status): Ditto.
6176 * breakpoint.c (insert_breakpoints): Ditto.
6177 (watchpoint_check): Ditto.
6178 (bpstat_stop_status): Ditto.
6179 (do_enable_breakpoint): Ditto.
6180 * blockframe.c (flush_cached_frames): Ditto.
6181 (reinit_frame_cache): Ditto.
6182
71d6c7b1
AC
61832002-05-04 Andrew Cagney <ac131313@redhat.com>
6184
6185 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6186 maintainer.
6187
cda6c68a
JB
61882002-05-04 Jim Blandy <jimb@redhat.com>
6189
6190 * gdbtypes.c (replace_type): Doc fix.
6191
5c1c87f0
AC
61922002-05-04 Andrew Cagney <ac131313@redhat.com>
6193
6194 * valprint.c (strcat_longest): Delete commented out function.
6195 Update copyright.
6196
cd9bfe15
AC
61972002-05-04 Andrew Cagney <ac131313@redhat.com>
6198
6199 * MAINTAINERS: Mark a29k as deleted.
6200 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6201 Move new configurations to the top.
6202 * configure.tgt: Remove a29k.
6203 * config/a29k/tm-vx29k.h: Delete.
6204 * config/a29k/vx29k.mt: Delete.
6205 * config/a29k/tm-a29k.h: Delete.
6206 * config/a29k/a29k-udi.mt: Delete.
6207 * config/a29k/a29k.mt: Delete.
6208 * a29k-tdep.c: Delete.
6209 * remote-udi.c: Delete.
6210 * remote-mm.c: Delete.
6211 * remote-eb.c: Delete.
6212 * remote-adapt.c: Delete.
6213 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6214 * config/s390/s390x.mt: Ditto.
6215 * config/s390/s390.mt: Ditto.
6216 * config/sparc/sparclynx.mh: Ditto.
6217 * config/sparc/linux.mh: Ditto.
6218 * config/pa/hppaosf.mh: Ditto.
6219 * config/pa/hppabsd.mh: Ditto.
6220 * config/ns32k/nbsd.mt: Ditto.
6221 * config/mips/vr5000.mt: Ditto.
6222 * config/m68k/sun3os4.mh: Ditto.
6223 * config/m68k/nbsd.mt: Ditto.
6224 * config/m68k/m68klynx.mh: Ditto.
6225 * config/m32r/m32r.mt: Ditto.
6226 * config/i386/x86-64linux.mt: Ditto.
6227 * config/i386/nbsdelf.mt: Ditto.
6228 * config/i386/nbsd.mt: Ditto.
6229 * config/i386/i386lynx.mh: Ditto.
6230
bf0c5130
AC
62312002-05-04 Andrew Cagney <ac131313@redhat.com>
6232
6233 * target.c (debug_print_register): New function. Handle oversize
6234 registers.
6235 (debug_to_fetch_registers): Call.
6236 (debug_to_store_registers): Call.
6237
2ae1c2d2
JB
62382002-05-03 Jim Blandy <jimb@redhat.com>
6239
13a393b0
JB
6240 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6241 (read_type): Doc fix.
6242 * gdbtypes.c (replace_type): Doc fix.
6243
2ae1c2d2
JB
6244 * stabsread.c (multiply_defined_struct): New complaint.
6245 (read_struct_type): If the type we were passed isn't empty, or
6246 incomplete, don't read the new struct type into it; complain,
6247 and return the original type unchanged. Take a new `type_code'
6248 argument, which is the type code for the new type.
6249 (read_type): Rather than storing the type's type code here, pass
6250 it as an argument to read_struct_type, and let that take care of
6251 storing it. That way, we don't overwrite the original type code,
6252 so read_struct_type can use it to decide whether we're overwriting
6253 something we shouldn't.
6254 (complain_about_struct_wipeout): New function.
6255
8de9bdc4
AC
62562002-05-03 Andrew Cagney <ac131313@redhat.com>
6257
6258 * gdbarch.sh: Assert that gdbarch is non-NULL.
6259 * gdbarch.c: Regenerate.
6260
f773fdbb
JM
62612002-05-03 Jason Merrill <jason@redhat.com>
6262
6263 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6264 and return NULL.
6265
0e04a514
ML
62662002-05-03 Michal Ludvig <mludvig@suse.cz>
6267
6268 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6269 (x86_64_dwarf2gdb_regno_map_length),
6270 (x86_64_dwarf2_reg_to_regnum): Added.
6271 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6272 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6273 (_initialize_x86_64_tdep): Synced with the change above.
6274 (x86_64_skip_prologue): Reformulated message.
6275
065432a8
PM
62762002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6277
6278 * f-exp.y: Also use new prev_lexptr variable
6279 to improve error reporting. Based on Michael Snyder
6280 2002-04-24 dated patch to c-exp.y.
6281 * jv-exp.y: Likewise.
6282 * m2-exp.y: Likewise.
6283
a3162708
EZ
62842002-05-02 Elena Zannoni <ezannoni@redhat.com>
6285
6286 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6287 we are dealing with vectors.
6288
03620c38
PM
62892002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6290
6291 * config/m68k/tm-nbsd.h: Obvious fix,
6292 correct machine name.
6293
6604db2e
PM
62942002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6295
6296 * p-typeprint.c (pascal_type_print_base): Add support
6297 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6298
0906b739
PM
62992002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6300
6301 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6302 for fondamental pascal 'char' type.
6303
e2625b33
PM
63042002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6305
6306 * p-lang.h (is_pascal_string_type): Declaration changed,
6307 new sixth argument of type char ** added.
361d1df0 6308 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6309 changed. Args length_pos, length_size, string_pos, char_size
6310 can now be NULL. New argument arrayname set to the field
6311 name of the char array. Return value set to char array
6312 field index plus one.
361d1df0 6313 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6314 is_pascal_string_type function.
6315
cf17c188
AC
63162002-05-02 Andrew Cagney <cagney@redhat.com>
6317
6318 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6319 <cagney@redhat.com> change.
6320 * gdbarch.c: Regenerate.
6321
52bca491
AC
63222002-05-02 Andrew Cagney <cagney@redhat.com>
6323
6324 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6325 before probing for a new one. Detect errorenous gdbarch_init
6326 functions.
6327 * gdbarch.c: Regenerate.
6328
d5e72505
AC
63292002-05-01 Andrew Cagney <cagney@redhat.com>
6330
6331 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6332 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6333 * config/v850/tm-v850.h: Ditto. Update copyright.
6334
af566d9f
AC
63352002-04-30 Andrew Cagney <ac131313@redhat.com>
6336
6337 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6338 current_gdbarch.
6339
880d85fa
MS
63402002-04-30 Michael Snyder <msnyder@redhat.com>
6341
94c30b78
MS
6342 * arm-tdep.c: Whitespace clean-ups.
6343 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6344 should have been removed as part of 4/24 change.
6345
6f5987a6
KB
63462002-04-30 Kevin Buettner <kevinb@redhat.com>
6347
6348 * rs6000-tdep.c: Added comment describing how fpscr register
6349 numbers were chosen.
6350
1a113c93
MS
63512002-04-30 Michael Snyder <msnyder@redhat.com>
6352
6353 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6354
9a6f53fe
EZ
63552002-04-29 Elena Zannoni <ezannoni@redhat.com>
6356
6357 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6358 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6359 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6360
11ed25ac
KB
63612002-04-29 Kevin Buettner <kevinb@redhat.com>
6362
6363 From Louis Hamilton <hamilton@redhat.com>:
6364 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6365 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6366 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6367 not bfd-private xcoff data, to determine wordsize.
6368 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6369
ae232405
AC
63702002-04-29 Andrew Cagney <ac131313@redhat.com>
6371
6372 GDB 5.2 released from 5.2 branch.
6373
91fd20f7
ML
63742002-04-29 Michal Ludvig <mludvig@suse.cz>
6375
6376 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6377 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6378 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6379
2dc5091b
EZ
63802002-04-29 Elena Zannoni <ezannoni@redhat.com>
6381
6382 * rs6000-tdep.c (rs6000_extract_return_value,
6383 rs6000_store_return_value): Handle returning vectors.
6384 (rs6000_gdbarch_init): Use
6385 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6386 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6387 New function.
6388 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6389 vectors.
6390 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6391 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6392
2b9848d8
PM
63932002-04-24 Pierre Muller <ics.u-strasbg.fr>
6394
6395 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6396 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6397 with fprintf_unfiltered (gdb_stderr,...).
6398
f8d17dc5
PM
63992002-04-24 Pierre Muller <ics.u-strasbg.fr>
6400
6401 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6402 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6403 Replace fprintf (stderr,...
6404 with fprintf_unfiltered (gdb_stderr,....
6405 * remote-es.c: Likewise.
6406 * remote-os9k.c: Likewise.
6407 * remote-st.c: Likewise.
6408
2f2f1ad1
AS
64092002-04-28 Andreas Schwab <schwab@suse.de>
6410
6411 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6412 linux-proc.o and gcore.o.
6413
b6779aa2
AC
64142002-04-26 Michal Ludvig <mludvig@suse.cz>
6415
6416 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6417 code without frame pointers.
6418
7e57f5f4
AC
64192002-04-26 Andrew Cagney <ac131313@redhat.com>
6420
6421 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6422 ON_STACK is needed.
6423
2ceb85d0
BE
64242002-04-26 Ben Elliston <bje@redhat.com>
6425
6426 * target.c (do_xfer_memory): Correct reference to the new option
6427 "trust-readonly-sections".
6428
f5f8a009
EZ
64292002-04-26 Elena Zannoni <ezannoni@redhat.com>
6430
6431 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6432 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6433 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6434 vectors.
6435 (read_array_type): Record the fact that this array type is really a
6436 vector (i.e. are passed in by value).
6437
5868c862
JT
64382002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6439
6440 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6441 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6442 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6443 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6444 * alpha-linux-tdep.c: Include frame.h.
6445 (alpha_linux_sigcontext_addr): New function.
6446 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6447 alpha_linux_sigcontext_addr.
6448 * alpha-osf1-tdep.c: Include gdbcore.h.
6449 (alpha_osf1_sigcontext_addr): New function.
6450 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6451 alpha_osf1_sigcontext_addr.
6452 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6453 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6454
bfb01f37
AC
64552002-04-26 Andrew Cagney <ac131313@redhat.com>
6456
361d1df0 6457 * stack.c (selected_frame_level):
bfb01f37
AC
6458 (select_frame): Do not set selected_frame_level.
6459 * frame.h (selected_frame_level): Delete declaration.
6460
15813d3f
AC
64612002-04-26 Andrew Cagney <ac131313@redhat.com>
6462
6463 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6464 convert_from_func_ptr-addr when AIX / PowerOpen.
6465
6096c27a
AC
64662002-04-25 Andrew Cagney <ac131313@redhat.com>
6467
6468 * valops.c (hand_function_call): Call
6469 generic_save_call_dummy_addr.
6470 * frame.h (generic_save_call_dummy_addr): Declare.
6471 * blockframe.c (struct dummy_frame): Add fields call_lo and
6472 call_hi.
6473 (generic_find_dummy_frame): Check for PC in range call_lo to
6474 call_hi instead of entry_point_address.
6475 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6476 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6477 (generic_save_call_dummy_addr): New function.
6478
f510d44e
DM
64792002-04-24 David S. Miller <davem@redhat.com>
6480
6481 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6482 sparc_skip_prologue.
6483 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6484 information to find prologue when possible.
6485 (sparc_prologue_frameless_p): Call examine_prologue directly.
6486 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6487 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6488 second argument.
6489 (SKIP_PROLOGUE): Likewise.
6490
15d72a92
JT
64912002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6492
6493 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6494 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6495 indicate that the condition it was testing is always true.
6496 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6497 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6498 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6499
accc6d1f
JT
65002002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6501
6502 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6503 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6504 tdep->jb_pc and tdep->jb_elt_size.
6505 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6506 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6507 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6508 * alpha-nat.c (get_longjmp_target): Remove.
6509 (JB_ELEMENT_SIZE): Ditto.
6510 (JB_PC): Ditto.
6511 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6512 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6513 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6514 to alpha_get_longjmp_target.
6515 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6516 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6517 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6518
1bfdc549
AC
65192002-04-25 Andrew Cagney <ac131313@redhat.com>
6520
6521 * README: Update to GDB 5.2.
6522
1bd316f0
AC
65232002-04-25 Andrew Cagney <ac131313@redhat.com>
6524
6525 * gdbarch.sh (LC_ALL): Set to `c'.
6526
2e5ff58c
TR
65272002-04-25 Theodore A. Roth <troth@verinet.com>
6528
6529 * avr-tdep.c: Ran through gdb_indent.sh.
6530
e33ce519
TR
65312002-04-25 Theodore A. Roth <troth@verinet.com>
6532
6533 * MAINTAINERS: Add myself as AVR maintainer.
6534 * NEWS: Note new target avr.
6535
8818c391
TR
65362002-04-25 Theodore A. Roth <troth@verinet.com>
6537
6538 * Makefile.in: Add support for AVR target.
6539 * configure.tgt: Add support for AVR target.
6540 * avr-tdep.c: New file
6541 * config/avr/avr.mt: New file.
6542
79509c2d
TR
65432002-04-25 Theodore A. Roth <troth@verinet.com>
6544
6545 * MAINTAINERS: Add myself to write-after-approval.
6546
dac8068e
PM
65472002-04-24 Pierre Muller <ics.u-strasbg.fr>
6548
6549 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6550 with fprintf_unfiltered (gdb_stderr,....
6551
25bf3106
PM
65522002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6553
6554 Fix PR gdb/508.
6555 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6556
24467a86
PM
65572002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6558
6559 * p-exp.y: Also use new prev_lexptr variable
6560 to improve error reporting. Based on Michael Snyder
6561 2002-04-24 dated patch to c-exp.y.
6562
95b80706
JT
65632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6564
6565 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6566 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6567 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6568 to 0.
6569 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6570 and struct value.
6571 (FUNCTION_START_OFFSET): Remove.
6572 (BREAKPOINT): Ditto.
6573
e90cc612
JT
65742002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6575
6576 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6577 * NEWS: Ditto.
6578
6c72f9f9
JT
65792002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6580
6581 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6582 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6583 alpha_linux_pc_in_sigtramp.
6584 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6585 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6586 alpha_osf1_pc_in_sigtramp.
6587 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6588 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6589 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6590 alphafbsd_pc_in_sigtramp.
6591 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6592 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6593 alphanbsd_pc_in_sigtramp.
6594 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6595 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6596
5e4f3379
JT
65972002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6598
6599 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6600
da8ca43d
JT
66012002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6602
6603 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6604 alphanbsd-tdep.c.
6605 (alphanbsd-nat.o): New dependency list.
6606 (alphanbsd-tdep.o): Ditto.
6607 * NEWS: Note new native NetBSD/alpha configuration.
6608 * alphanbsd-nat.c: New file.
6609 * alphanbsd-tdep.c: Ditto.
6610 * configure.host (alpha*-*-netbsd*): New host.
6611 * configure.tgt (alpha*-*-netbsd*): New target.
6612 * config/alpha/nbsd.mh: New file.
6613 * config/alpha/nbsd.mt: Ditto.
6614 * config/alpha/nm-nbsd.h: Ditto.
6615 * config/alpha/tm-nbsd.h: Ditto.
6616
36a6271d
JT
66172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6618
6619 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6620 (alpha-osf1-tdep.o): New dependency list.
6621 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6622 and skip_sigtramp_frame members.
6623 * alpha-linux-tdep.c: Include gdbcore.h.
6624 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6625 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6626 * alpha-osf1-tdep.c: New file.
6627 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6628 alpha-osf1-dep.c.
6629 (alpha_frame_past_sigtramp_frame): New function.
6630 (alpha_dynamic_sigtramp_offset): Ditto.
6631 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6632 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6633 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6634 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6635 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6636 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6637 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6638 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6639 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6640 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6641 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6642 to find_solib_trampoline_target.
6643 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6644 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6645 (SKIP_TRAMPOLINE_CODE): Remove.
6646 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6647 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6648 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6649 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6650 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6651 (PROC_SIGTRAMP_MAGIC): Ditto.
6652 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6653 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6654 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6655 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6656 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6657
2f4bc57b
JT
66582002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6659
6660 * NEWS: Note that Alpha targets are now multi-arch.
6661
665132f9
MS
66622002-04-24 Michael Snyder <msnyder@redhat.com>
6663
6664 * parser-defs.h (prev_lexptr): New external variable.
6665 * parse.c (parse_exp_1): Set prev_lexptr to null before
6666 calling the language-specific parser.
6667 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6668 (yyerror): Use prev_lexptr in error reporting.
6669
32872fa7
DJ
66702002-04-24 Daniel Jacobowitz <drow@mvista.com>
6671
6672 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6673 * gregset.h: If FILL_FPXREGSET is defined, provide
6674 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6675 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6676 is defined, call fill_fpxregset.
6677
57e76fac
MS
66782002-04-24 Roland McGrath <roland@frob.com>
6679
6680 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6681 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6682 (supply_gregset, supply_fpregset): New functions.
6683
6684 * gnu-nat.c (gnu_find_memory_regions): New function.
6685 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6686 (gnu_xfer_memory): Add a cast.
6687
f43845b3
MS
66882002-04-24 Michael Snyder <msnyder@redhat.com>
6689
361d1df0 6690 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6691 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6692 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6693 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6694 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6695 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6696
a0abec03
AC
6697Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6698
6699 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6700 NUM_PSEUDO_REGS can be used.
6701
d7bd68ca
AC
67022002-04-24 Andrew Cagney <ac131313@redhat.com>
6703
6704 * arch-utils.h: Update copyright.
6705
6706 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6707 * gdbarch.h, gdbarch.c: Re-generate.
6708
6709 * inferior.h (IN_SIGTRAMP): Delete definition.
6710 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6711 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6712
6713 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6714 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6715 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6716 (find_proc_framesize): Ditto.
6717 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6718 (alpha_init_extra_frame_info): Ditto.
6719 * infrun.c (handle_inferior_event): Ditto.
6720 (handle_inferior_event): Ditto.
6721 (check_sigtramp2): Ditto.
6722 * blockframe.c (create_new_frame): Ditto.
6723 (get_prev_frame): Ditto.
6724 * ppc-linux-tdep.c: Update comments.
6725 * i386-linux-tdep.c: Update comments.
6726 * breakpoint.c (bpstat_what): Update comment.
6727
4867e41e
DM
67282002-04-24 David S. Miller <davem@redhat.com>
6729
21d83aa5
DM
6730 * i960-tdep.c (register_in_window_p): New function.
6731 (i960_find_saved_register): Use it instead of
6732 REGISTER_IN_WINDOW_P.
6733 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6734
4867e41e
DM
6735 * symtab.h (find_stab_function_addr): Kill extern.
6736 * minsyms.c (find_stab_function_addr): Remove from here...
6737 * dbxread.c: ... to here, and mark it static.
6738
69cdf6a2
DM
67392002-04-20 David S. Miller <davem@redhat.com>
6740
6741 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6742 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6743
5a595886
DM
67442002-04-21 David S. Miller <davem@redhat.com>
6745
6746 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6747 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6748 (vx_write_register): Likewise.
6749
1da1a192
JB
67502002-04-23 J. Brobecker <brobecker@gnat.com>
6751
6752 * source.c (is_regular_file): New function.
6753 (openp): Check wether file to open is a regular file
6754 to avoid opening directories.
6755
baa6f10b
JT
67562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6757
6758 * findvar.c (extract_signed_integer): Cast printf argument
6759 to suppress format warning.
6760 (extract_unsigned_integer): Likewise.
6761 * infcmd.c (registers_info): Likewise.
6762 * top.c (get_prompt_1): Likewise.
6763 * valops.c (value_assign): Likewise.
6764 * valprint.c (print_decimal): Likewise.
6765
b2c4da81
L
67662002-04-22 H.J. Lu (hjl@gnu.org)
6767
6768 * c-exp.y (typebase): Support
361d1df0 6769
b2c4da81
L
6770 [long|long long|short] [signed|unsigned] [int|]
6771
6772 and
6773
6774 signed [long|long long|short] int
6775
f267bd6a
JT
67762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6777
6778 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6779 and vax-tdep.h.
6780 * vax-tdep.h: New file.
6781 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6782 Make several routines static.
6783 (vax_get_saved_register): New function.
6784 (vax_gdbarch_init): New function.
6785 (_initialize_vax_tdep): Register vax_gdbarch_init.
6786 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6787 Remove macros now under the control of gdbarch.
6788
da3c6d4a
MS
67892002-04-22 Michael Snyder <msnyder@redhat.com>
6790
11d3b27d
MS
6791 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6792 Some whitespace and coding standards tweaks.
da3c6d4a 6793
a33f7558
JT
67942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6795
6796 * vax-tdep.c: Include regcache.h.
6797 (vax_call_dummy_words): New.
6798 (sizeof_vax_call_dummy_words): New.
6799 (vax_fix_call_dummy): New function.
6800 (vax_saved_pc_after_call): Ditto.
6801 * config/vax/tm-vax.h: Don't include regcache.h.
6802 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6803 (CALL_DUMMY): Remove.
6804 (CALL_DUMMY_WORDS): Define.
6805 (SIZEOF_CALL_DUMMY_WORDS): Define.
6806 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6807
47a73475
MS
68082002-04-18 Michael Snyder <msnyder@redhat.com>
6809
6810 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6811
52efde73
JT
68122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6813
6814 * vax-tdep.c (vax_frame_chain): New function.
6815 (vax_push_dummy_frame): Ditto.
6816 (vax_pop_frame): Ditto.
6817 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6818 (FRAMELESS_FUNCTION_INVOCATION): Use
6819 generic_frameless_function_invocation_not.
6820 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6821 (POP_FRAME): Use vax_pop_frame.
6822
ea74468c
JT
68232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6824
6825 * vax-tdep.c (vax_store_struct_return): New function.
6826 (vax_extract_return_value): Ditto.
6827 (vax_store_return_value): Ditto.
6828 (vax_extract_struct_value_address): Ditto.
6829 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6830 vax_store_struct_return.
6831 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6832 (STORE_RETURN_VALUE): Use vax_store_return_value.
6833 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6834
5516aa92
JT
68352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6836
6837 * vax-tdep.c (vax_frame_saved_pc): New function.
6838 (vax_frame_args_address_correct): Ditto.
6839 (vax_frame_args_address): Ditto.
6840 (vax_frame_locals_address): Ditto.
6841 (vax_frame_num_args): Move code to be in proximity to
6842 other frame-related functions.
6843 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6844 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6845 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6846 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6847 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6848
36af0b35
L
68492002-04-22 H.J. Lu (hjl@gnu.org)
6850
6851 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6852 includedir.
6853
ab62c900
JT
68542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6855
6856 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6857 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6858 (FRAME_INIT_SAVED_REGS): New macro.
6859
7232b100
JT
68602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6861
6862 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6863
b70d2aee
JT
68642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6867 where needed.
6868 (fetch_osf_core_registers): Likewise.
6869 (supply_gregset): Likewise.
6870
a0e8a2d1 68712002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6872
a0e8a2d1
JB
6873 * symfile.h (get_section_index): Define.
6874 * symfile.c (get_section_index): New function.
6875 * mdebugread.c (SC_IS_SBSS): New macro.
6876 (SC_IS_BSS): Return true for the scBss storage class only, as
6877 the scSBss storage class refers to the .sbss section.
6878 (parse_partial_symbols): Discard the symbols which associated
6879 section does not exist.
6880 Make sure to use the .sbss section index for symbols which
6881 storage class is scBss, rather than using the .bss section index.
6882
51eb8b08
JT
68832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6884
6885 * vax-tdep.c: Update copyright years.
6886 (vax_register_name): New function.
6887 (vax_register_byte): Ditto.
6888 (vax_register_raw_size): Ditto.
6889 (vax_register_virtual_size): Ditto.
6890 (vax_register_virtual_type): Ditto.
6891 * config/vax/tm-vax.h: Update copyright years.
6892 (REGISTER_NAMES): Remove.
6893 (REGISTER_NAME): Define.
6894 (REGISTER_BYTE): Use vax_register_byte.
6895 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6896 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6897 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6898
6cc1c0a8
AC
68992002-04-21 Andrew Cagney <ac131313@redhat.com>
6900
6901 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6902 declaration
6903 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6904
9319a2fe
DM
69052002-04-21 David S. Miller <davem@redhat.com>
6906
6907 * arch-utils.c (generic_prologue_frameless_p): Kill
6908 SKIP_PROLOGUE_FRAMELESS_P code.
6909 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6910 references.
6911 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6912 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6913 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6914 references.
6915 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6916 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6917 (sparc_gdbarch_init): Pass it to
6918 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6919
e9ed6d01
JT
69202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6921
6922 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6923 (alphabsd-nat.o): New dependency list.
6924
36012033
JT
69252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6928 alphafbsd-tdep.c.
6929 (alpha-linux-tdep.o): New dependency list.
6930 (alphafbsd-tdep.o): Likewise.
6931
3379287a
JT
69322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6933
6934 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6935 to here...
6936 * alpha-tdep.c: ...from here.
6937 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6938
4bcbd6cb
JT
69392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6940
6941 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6942 prototype from here...
6943 * alpha-tdep.h: ...to here.
6944
b31da25e
AC
69452002-04-21 Andrew Cagney <ac131313@redhat.com>
6946
6947 * frame.h (selected_frame_level): Document as deprecated.
6948 (frame_relative_level): Declare.
6949 * stack.c (frame_relative_level): New function.
6950 (selected_frame_level): Document as deprecated.
6951 (select_frame): Do not set the selected_frame_level.
6952
6953 * stack.c (frame_info, record_selected_frame): Update.
6954 (frame_command, current_frame_command): Update.
6955 (up_silently_base, up_command, down_silently_base): Update.
6956 (down_command): Update.
6957 * inflow.c (kill_command): Update.
6958 * tracepoint.c (finish_tfind_command): Update.
6959 * corelow.c (core_open): Update.
6960 * thread.c (info_threads_command): Update.
6961 (do_captured_thread_select): Update.
6962 * infcmd.c (finish_command): Update.
6963 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6964
9c1d6fe5
JT
69652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6966
6967 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6968
ab89facf
AC
69692002-04-21 Andrew Cagney <ac131313@redhat.com>
6970
6971 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6972 type const.
6973
82a4efa1
JT
69742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6975
6976 * alphafbsd-tdep.c: Update copyright years. Include
6977 alpha-tdep.h.
6978 (alphafbsd_use_struct_convention): Make static.
6979 (alphafbsd_init_abi): New function.
6980 (_initialize_alphafbsd_tdep): New function.
6981 * config/alpha/tm-fbsd.h: Update copyright years.
6982 (USE_STRUCT_CONVENTION): Remove.
6983
44dffaac
JT
69842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6985
6986 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6987 an Alpha ABI variant.
6988 (alpha_abi_handler_list): Declare.
6989 (alpha_gdbarch_register_os_abi): New function.
6990 (alpha_gdbarch_init): Give registered ABI variant handlers a
6991 chance to tweak the gdbarch once we have set up defaults.
6992 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6993
65585be4
JT
69942002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6995
6996 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6997 to standard_coerce_float_to_double.
6998 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6999
d9b023cc
JT
70002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7001
7002 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7003 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7004 from gdbarch_tdep rather than a constant.
7005 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7006 the default text address for all Alpha Unix ABIs.
7007 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7008 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7009
dc129d82
JT
70102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7011
7012 * alpha-tdep.h: New file. Includes several Alpha target constants
7013 taken from...
7014 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7015 let gdbarch deal with.
7016 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7017 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7018 to dependency list.
7019 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7020 Alpha target register names.
7021 * alphabsd-nat.c: Likewise.
7022 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7023 Alpha target register names. Make serveral routines static.
7024 (alpha_get_saved_register): New function.
7025 (alpha_abi_names): New.
7026 (process_note_abi_tag_sections): New function.
7027 (get_elfosabi): New function.
7028 (alpha_gdbarch_init): New function.
7029 (alpha_dump_tdep): New function.
7030 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7031
d49d1e0a
AC
70322002-04-21 Andrew Cagney <ac131313@redhat.com>
7033
7034 * frame.c (find_saved_register): Delete #ifdef
7035 HAVE_REGISTER_WINDOWS code.
7036 * config/sparc/tm-sparc.h: Update comments.
7037 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7038
92e8c9ed
AC
70392002-04-21 Andrew Cagney <ac131313@redhat.com>
7040
7041 * i960-tdep.c (i960_find_saved_register): New function.
7042 (i960_get_saved_register): New function.
7043 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7044 (i960_get_saved_register): Declare.
7045 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7046
e1925118
DM
70472002-04-20 David S. Miller <davem@redhat.com>
7048
7049 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7050
29673b29
AC
70512002-04-20 Andrew Cagney <ac131313@redhat.com>
7052
7053 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7054 instead of NUM_PSEUDO_REGS.
7055
6c86dcd5
DM
70562002-04-20 David S. Miller <davem@redhat.com>
7057
7058 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7059 GDB_MULTI_ARCH_PARTIAL
7060 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7061 define, let tm-sp64.h do it.
7062
aa40ec90
JT
70632002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7064
7065 * frame.c (find_saved_register): Avoid a NULL pointer
7066 dereference and actually walk the frame list.
7067
0f79675b
AC
70682002-04-20 Andrew Cagney <ac131313@redhat.com>
7069
7070 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7071 sorted in most most-recent-used order. Document.
7072 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7073
f91305dd 70742002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7075
7076 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7077 instead of ->prev.
7078 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7079 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7080 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7081 instead of ->prev.
7082
73d322b1
EZ
70832002-04-19 Elena Zannoni <ezannoni@redhat.com>
7084
7085 Fix PR gdb/471.
7086 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7087 (build_builtin_type_vec128): Ditto.
7088 (append_composite_type_field): Fix calculation of type length in
7089 union case.
7090
ccd9a834
EZ
70912002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7092
7093 * config/djgpp/README: Update.
7094
7095 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7096 compiler warnings.
7097
a57f9e49
JT
70982002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7099
7100 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7101 (alpha_setup_arbitrary_frame): ...to this.
7102 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7103 for alpha_setup_arbitrary_frame.
7104
f4f9705a
AC
71052002-04-18 Andrew Cagney <cagney@redhat.com>
7106
7107 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7108 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7109
f4f9705a
AC
7110 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7111 * target.h (memory_breakpoint_from_pc): Update declaration.
7112 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7113
7114 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7115 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7116 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7117 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7118 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7119 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7120 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7121 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7122 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7123 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7124 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7125 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7126
7127 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7128 const pointer.
7129 * monitor.c (monitor_insert_breakpoint): Ditto.
7130 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7131
7132 * config/mcore/tm-mcore.h: Update copyright.
7133 * mem-break.c: Ditto.
7134 * xstormy16-tdep.c: Ditto.
7135
29f319b8
PM
71362002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7137
7138 * p-exp.y: Add precedence rule for '^' token.
7139 This removes the shift/reduce conflicts.
7140 Remove the comment concerning these shift/reduce conflicts.
7141
ebeac11a
EZ
71422002-04-18 Elena Zannoni <ezannoni@redhat.com>
7143
7144 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7145 (registers_powerpc_nofp): New register set for processors
7146 without floating point unit.
7147
27c31547
DM
71482002-04-18 David S. Miller <davem@redhat.com>
7149
7150 * MAINTAINERS: Add myself to write-after-approval.
7151
47a73475
MS
71522002-04-17 Michael Snyder <msnyder@redhat.com>
7153
7154 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7155
953836b2
AC
71562002-04-17 Andrew Cagney <ac131313@redhat.com>
7157
7158 * rs6000-tdep.c (frame_initial_stack_address): Use
7159 frame_register_read to read the alloca_reg.
7160
8b0d4340
AC
71612002-04-17 Andrew Cagney <ac131313@redhat.com>
7162
7163 * frame.c (find_saved_register): Find saved registers in the next
7164 not prev frame.
7165 Fix PR gdb/365.
7166
d8864532
AC
71672002-04-17 Andrew Cagney <ac131313@redhat.com>
7168
7169 * gdbarch.sh (LANG): Set to ``c''.
7170
36cc83a3 71712002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7172
36cc83a3 7173 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7174
2f4150cc 71752002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7176
7177 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7178 Update copyright.
7179
628703c6 7180 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7181 Also fix PR gdb/391.
361d1df0 7182
56157b4a
AC
71832002-04-14 Andrew Cagney <ac131313@redhat.com>
7184
7185 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7186 * aclocal.m4, configure: Re-generate.
7187 Fix PR gdb/391.
361d1df0 7188
6d1e3329
EZ
71892002-04-14 Elena Zannoni <ezannoni@redhat.com>
7190
7191 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7192 instead of tm_print_insn.
7193
cb06fa07
EZ
71942002-04-14 Elena Zannoni <ezannoni@redhat.com>
7195
7196 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7197
f208ba17
AC
71982002-04-14 Andrew Cagney <ac131313@redhat.com>
7199
7200 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7201 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7202 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7203
20f01a46
DH
72042002-04-12 Don Howard <dhoward@redhat.com>
7205
7206 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7207 max_user_call_depth.
7208 (init_cmd_lists): Initialize the new value;
7209 * cli/cli-script.c (execute_user_command): Limit the call depth of
7210 user defined commands. This avoids a core-dump when user commands
7211 are infinitly recursive.
7212
a88376a3
KB
72132002-04-12 Kevin Buettner <kevinb@redhat.com>
7214
7215 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7216 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7217 from tdep struct instead of DEFAULT_LR_SAVE.
7218 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7219 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7220 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7221
f2172603
MS
72222002-04-12 Michael Snyder <msnyder@redhat.com>
7223
694f61fb 7224 * Remote.c: Spelling fix.
20fe79c8
MS
7225 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7226 If no symbol found for "sbrk", try "_sbrk".
7227 (make_output_phdrs): Use bfd_section_name.
7228 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7229 * eval.c: Indentation fix-ups.
169a7369
MS
7230 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7231 in case it gets applied to an address that is already
7232 in the instruction space.
de74f71f
MS
7233 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7234 * symfile.c: Fix indentation, long lines.
f2172603
MS
7235 * source.c: White space fix-up.
7236
cda5a58a
AC
72372002-04-12 Andrew Cagney <cagney@redhat.com>
7238
7239 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7240 * frame.c (frame_register_read): New function. Return non-zero on
7241 success.
7242 (read_relative_register_raw_bytes_for_frame): Delete.
7243 (read_relative_register_raw_bytes): Delete.
7244 * frame.h (frame_register_read): Declare.
7245 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7246 * sh-tdep.c: Ditto.
7247 * infcmd.c (do_registers_info): Ditto.
7248 * hppa-tdep.c: Ditto.
7249 * rs6000-tdep.c: Ditto.
7250 * h8500-tdep.c: Ditto.
7251 * mips-tdep.c: Ditto.
7252 * h8300-tdep.c: Ditto.
7253 * z8k-tdep.c: Ditto.
7254
2ea5f656
KB
72552002-04-12 Kevin Buettner <kevinb@redhat.com>
7256
7257 From Jimi X <jimix@watson.ibm.com>:
7258 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7259 64-bit SysV ABI.
7260
27b15785
KB
72612002-04-12 Kevin Buettner <kevinb@redhat.com>
7262
7263 From Jimi X <jimix@watson.ibm.com>:
7264 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7265 bfd info.
7266
5d57ee30
KB
72672002-04-12 Kevin Buettner <kevinb@redhat.com>
7268
7269 From Jimi X <jimix@watson.ibm.com>:
7270 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7271 register sets for these processor variants.
7272
bc1e36ca
DJ
72732002-04-11 Daniel Jacobowitz <drow@mvista.com>
7274
bc1e36ca
DJ
7275 * regformats/reg-ppc.dat: Support FPSCR.
7276
e3f36dbd
KB
72772002-04-11 Kevin Buettner <kevinb@redhat.com>
7278
7279 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7280 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7281 Add fpscr as an invalid/unfetchable register.
7282 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7283 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7284 (fill_fpregset): Add support for register fpscr.
7285 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7286 (fill_gregset): Account for the fact that register ``mq'' might
7287 not exist.
7288 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7289 (registers_power): Add fpscr to register set at slot 71.
7290 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7291 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7292
943c9c25
MS
72932002-04-11 Michael Snyder <msnyder@redhat.com>
7294
7295 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7296 * configure: Regenerate.
7297 * config.in: Regenerate.
7298 * acconfig.h: Add define for _SYSCALL32.
7299 * core-sol2.c: Remove #define _SYSCALL32.
7300 * solib-legacy.c: Remove #define _SYSCALL32.
7301
d8c0a2e7
AC
73022002-04-10 Andrew Cagney <ac131313@redhat.com>
7303
7304 * stack.c (select_frame): Cleanup internal error message, do not
7305 use %p.
7306
7cc19214
AC
73072002-04-10 Andrew Cagney <ac131313@redhat.com>
7308
7309 * stack.c (select_frame): Check that selected_frame and the
7310 specified level are as expected.
7311 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7312 Update copyright.
7313 * frame.h (struct frame_info): Add field `level'. Update
7314 copyright.
7315 Work-in-progress PR gdb/464.
7316
67a2b77e
AC
73172002-04-10 Andrew Cagney <ac131313@redhat.com>
7318
7319 * maint.c (maint_print_section_info): Rename print_section_info.
7320 (print_bfd_section_info, print_objfile_section_info): Update.
7321 * inferior.h (struct gdbarch): Add opaque declaration.
7322 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7323 * gdbarch.h: Regenerate.
7324
8cfda98c
ML
73252002-04-10 Michal Ludvig <mludvig@suse.cz>
7326
7327 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7328 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7329 (kernel_u_size): Added.
7330 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7331 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7332
ca439ad2 73332002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7334
ca439ad2
JI
7335 * valarith.c (find_size_for_pointer_math): New function, either returns
7336 the size for a pointer's target, returns 1 for void *, or errors for
7337 incomplete types.
7338 (value_add, value_sub): use find_size_for_pointer_math.
7339
2f2893d9
DJ
73402002-04-09 Daniel Jacobowitz <drow@mvista.com>
7341
7342 * linux-low.c (linux_look_up_symbols): New hook.
7343 (linux_target_ops): Add linux_look_up_symbols.
7344 * remote-utils.c (decode_address): New function.
7345 (look_up_one_symbol): New function.
7346 * server.c (handle_query): Call target look_up_symbols hook.
7347 * server.h (look_up_one_symbol): Add prototype.
7348 * target.h (struct target_ops): Add look_up_symbols hook.
7349
96cb11df
AC
73502002-04-09 Andrew Cagney <ac131313@redhat.com>
7351
7352 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7353 override FP_REGNUM with frame->fp. Update copyright.
7354 * parse.c (num_std_regs, std_regs): Delete.
7355 (target_map_name_to_register): Do not search std_regs. Update
7356 function description.
7357 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7358 declarations. Update copyright.
7359 Fix PR gdb/251.
361d1df0 7360
97658e92
DJ
73612002-04-09 Daniel Jacobowitz <drow@mvista.com>
7362
7363 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7364 after the last symbol in a block.
7365
6044e3eb
PM
73662002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7367
7368 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7369 is non zero as a found symbol.
7370
0406ec40
AC
73712002-04-08 Andrew Cagney <ac131313@redhat.com>
7372
7373 * findvar.c: Include "builtin-regs.h".
7374 (value_of_register): Call value_of_builtin_reg when applicable.
7375 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7376 (target_map_name_to_register): Call
7377 builtin_reg_map_name_to_regnum.
7378 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7379 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7380 (builtin_regs_h): Define.
7381 (builtin-regs.o): New target.
7382 (findvar.o): Add $(builtin_regs_h).
7383 * builtin-regs.c, builtin-regs.h: New files.
7384 * std-regs.c: New file.
7385 Partial fix for PR gdb/251.
7386
56a6dfb9
KB
73872002-04-08 Kevin Buettner <kevinb@redhat.com>
7388
7389 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7390 it's no longer required.
7391
3a808432
AC
73922002-04-08 Andrew Cagney <ac131313@redhat.com>
7393
7394 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7395
7c40d541
KB
73962002-04-08 Kevin Buettner <kevinb@redhat.com>
7397
7398 From Jimi X <jimix@watson.ibm.com>:
7399 * rs6000-tdep.c (rs6000_software_single_step): Use
7400 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7401 and size. Use target_insert_breakpoint() and
7402 target_remove_breakpoint() to insert and remove breakpoints
7403 instead of explicit memory reads and writes.
7404
cc9836a8
KB
74052002-04-08 Kevin Buettner <kevinb@redhat.com>
7406
7407 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7408 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7409 ELF_OBJECT_FORMAT ifdef.
7410
7495d1dc
KB
74112002-04-08 Kevin Buettner <kevinb@redhat.com>
7412
7413 From Jimi X <jimix@watson.ibm.com>:
7414 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7415
4288e836
KB
74162002-04-08 Kevin Buettner <kevinb@redhat.com>
7417
7418 From Jimi X <jimix@watson.ibm.com>:
7419 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7420 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7421
a4e4e501
MK
74222002-04-07 Mark Kettenis <kettenis@gnu.org>
7423
7424 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7425 s/asprintf/xasprintf/.
7426 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7427
006defba
AC
74282002-04-07 Andrew Cagney <ac131313@redhat.com>
7429
7430 I believe Jeff Law denies responsability for this one:
7431 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7432 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7433 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7434 Work-around for PR gdb/366.
7435
7aa83cac
EZ
74362002-04-07 Elena Zannoni <ezannoni@redhat.com>
7437
7438 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7439 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7440 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7441
cf1fcca1
EZ
74422002-04-07 Elena Zannoni <ezannoni@redhat.com>
7443
7444 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7445 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7446 information.
7447
3f289e6f
AC
74482002-04-07 Andrew Cagney <ac131313@redhat.com>
7449
7450 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7451 maintainer.
7452
129188f6
AC
74532002-04-07 Andrew Cagney <ac131313@redhat.com>
7454
7455 * README (Reporting Bugs in GDB): Document the bug web page as the
7456 prefered way of submitting bugs.
7457 Fix PR gdb/402.
7458
1200cd6e
AC
74592002-04-06 Andrew Cagney <ac131313@redhat.com>
7460
7461 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7462 -1. Update comment.
7463 * gdbarch.h, gdbarch.c: Re-generate.
7464
2853c33c
AS
74652002-04-07 Andreas Schwab <schwab@suse.de>
7466
7467 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7468 buffer to regcache_collect.
7469
c2169756
AC
74702002-04-06 Andrew Cagney <ac131313@redhat.com>
7471
7472 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7473 * gdbarch.c, gdbarch.h: Re-generate.
7474
25f1b008
AC
74752002-04-06 Andrew Cagney <ac131313@redhat.com>
7476
7477 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7478 declaration. Fix -Werror.
7479
59263426
DJ
74802002-04-05 Daniel Jacobowitz <drow@mvista.com>
7481
7482 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7483 * gdbarch.c: Regenerate.
7484
f5db4da3
MS
74852002-04-05 Michael Snyder <msnyder@redhat.com>
7486
80f8a6eb
MS
7487 * breakpoint.c (clear_command): Rewrite middle section to
7488 combine two loops with identical control conditions.
7489 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7490 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7491
ad3dcc5c
L
74922002-04-05 H.J. Lu (hjl@gnu.org)
7493
7494 * solib-svr4.c (bkpt_names): Add "__start".
7495
f32e7a74
AC
74962002-04-04 Andrew Cagney <ac131313@redhat.com>
7497
7498 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7499 as test for 64 bit target.
7500
8227c0ff
AC
75012002-04-05 Andrew Cagney <ac131313@redhat.com>
7502
7503 * h8500-tdep.c (h8500_write_fp): Delete function.
7504 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7505 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7506 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7508 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7509 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7510 (s390_write_fp):
7511 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7512 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7513 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7514 (d10v_write_fp): Delete function.
7515 * inferior.h (write_fp, generic_target_write_fp): Delete
7516 declarations.
7517 * regcache.c (generic_target_write_fp): Delete function.
7518 (write_fp): Delete function.
7519 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7520 * gdbarch.h, gdbarch.c: Regenerate.
7521 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7522 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7523 (sparc64_write_fp): Delete declaration.
7524 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7525 (h8500_write_fp): Delete declaration.
7526
2757dd86
AC
75272002-04-04 Andrew Cagney <ac131313@redhat.com>
7528
7529 * sparc-tdep.c (sparc64_write_fp): Delete.
7530 (sparc_push_dummy_frame): Replace write_fp call with code to store
7531 the FP directly.
7532 (sparc_gdbarch_init): Do not initialize write_fp.
7533
c69255e1
KB
75342002-04-05 Kevin Buettner <kevinb@redhat.com>
7535
7536 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7537 clause.
7538
ae767bfb
JB
75392002-03-29 Jim Blandy <jimb@redhat.com>
7540
7541 * stack.c (get_selected_block): Add new argument `addr_in_block',
7542 used to return the exact code address we used to select the block,
7543 not just the block.
7544 * blockframe.c (get_frame_block, get_current_block): Same.
7545 * frame.h (get_frame_block, get_current_block,
7546 get_selected_block): Update declarations.
7547 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7548 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7549
84d2ac95
MS
75502002-04-05 Michael Snyder <msnyder@redhat.com>
7551
7552 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7553 warning message.
7554
596aa3bf
JB
75552002-04-05 J. Brobecker <brobecker@gnat.com>
7556
7557 * utils.c (xfullpath): New function.
7558 * defs.h (xfullpath): Add declaration.
7559 * source.c (openp): Use xfullpath in place of gdb_realpath to
7560 avoid resolving the basename part of filenames when the
7561 associated file is a symbolic link. This fixes a potential
7562 inconsistency between the filenames known to GDB and the
7563 filenames it prints in the annotations.
7564 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7565 to be able to match a filename with either the real filename, or
7566 the name of any symbolic link to this file.
7567 (lookup_partial_symtab): Ditto.
7568
c02f5703
MS
75692002-04-04 Michael Snyder <msnyder@redhat.com>
7570
7571 * breakpoint.c: Add support for hardware breakpoints in overlays.
7572 (overlay_events_enabled): New state variable.
7573 (insert_breakpoints): Use overlay_events_enabled to decide
7574 whether to attempt to set a breakpoint at the overlay load addr.
7575 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7576 (remove_breakpoint): Use overlay_events_enabled to decide
7577 whether breakpoints need to be removed from overlay load addr.
7578 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7579 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7580 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7581 disable_overlay_breakpoints): Update overlay_events_enabled.
7582
5fb290d7
DJ
75832002-04-04 Daniel Jacobowitz <drow@mvista.com>
7584
7585 * dwarf2read.c (struct function_range): New.
7586 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7587 (check_cu_functions): New.
7588 (read_file_scope): Initialize global function lists.
7589 Call dwarf_decode_line after processing children.
7590 (read_func_scope): Add to global function list.
7591 (dwarf_decode_lines): Call check_cu_functions everywhere
7592 record_line is called. Call record_line with a linenumber
7593 of 0 to mark sequence ends.
7594
7b3fabf0
ML
75952002-04-04 Michal Ludvig <mludvig@suse.cz>
7596
361d1df0 7597 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7598 change sync with glibc.
7599
bce58c09
JB
76002002-04-03 Jim Blandy <jimb@redhat.com>
7601
7602 * configure.in: Call AC_C_INLINE.
7603 * configure: Regenerated.
361d1df0 7604
2fccf04a
DJ
76052002-04-01 Daniel Jacobowitz <drow@mvista.com>
7606
7607 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7608 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7609
2d1bfe2e
MK
76102002-03-31 Mark Kettenis <kettenis@gnu.org>
7611
a5941fbf
MK
7612 * NEWS: Mention gcore support on FreeBSD/i386.
7613
a90cd31d
MK
7614 * fbsd-proc.c: New file.
7615 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7616 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7617
2d1bfe2e
MK
7618 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7619 while statement.
7620
9eb6e5a1
JB
76212002-03-29 Jim Blandy <jimb@redhat.com>
7622
7623 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7624 unescaped newlines in string literals, but newer ones don't. So
7625 escape them.
7626
f02df580
MS
76272002-03-26 Michael Snyder <msnyder@redhat.com>
7628 Andrew Cagney <cagney@redhat.com>
7629
361d1df0 7630 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7631 restore file to memory.
7632 * cli/cli-dump.h: New file.
7633 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7634 * NEWS: Mention new commands.
f02df580 7635
109f874e
MS
76362002-03-28 Michael Snyder <msnyder@redhat.com>
7637
7638 * symfile.c (symbol_file_add): Move test for null symbols to later.
7639
520f6ade
AC
76402002-03-27 Andrew Cagney <ac131313@redhat.com>
7641
7642 From veksler at il.ibm.com:
7643 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7644 the xstrduped original path.
7645 Fix PR gdb/417.
7646
d4654627
MS
76472002-03-27 Michael Snyder <msnyder@redhat.com>
7648
7649 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7650 * infcmd.c (_initialize_infcmd): Ditto.
7651 * language.c (_initialize_language): Ditto.
7652 * symfile.c (_initialize_symfile): Ditto.
7653 * top.c (_init_main): Ditto.
7654 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7655
6be8bc0c
EZ
76562002-03-27 Elena Zannoni <ezannoni@redhat.com>
7657
7658 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7659 vector registers handling.
7660 (skip_prologue): Handle new AltiVec instructions. Fill in new
7661 fields of frame data.
7662 (frame_get_saved_regs): Fill in information for AltiVec registers.
7663
12af6855
JB
76642002-03-27 Jim Blandy <jimb@redhat.com>
7665
7666 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7667 a function; leave this macro here to invoke that function.
7668 (symbol_init_mangled_name): Declaration for that function.
7669 * symtab.c (symbol_init_mangled_name): New function.
7670
dc672865
AC
76712002-03-27 Andrew Cagney <ac131313@redhat.com>
7672
7673 * valarith.c: Replace strerror with safe_strerror.
7674 * tracepoint.c: Ditto.
7675 * lin-lwp.c: Ditto.
7676 * go32-nat.c: Ditto.
7677 * inflow.c: Ditto.
7678 * gnu-nat.c: Ditto.
7679
d96429cd
AS
76802002-03-27 Andreas Schwab <schwab@suse.de>
7681
7682 * event-top.c (command_line_handler): Remove useless if.
7683
7e336ba1
AJ
76842002-03-27 Andreas Jaeger <aj@suse.de>
7685
7686 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7687 comment.
7688
de220d0f
ML
76892002-03-27 Michal Ludvig <mludvig@suse.cz>
7690
7691 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7692 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7693 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7694 (x86_64_linux_dr_get_status, supply_gregset),
7695 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7696 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7697 (x86_64_register_info_table): Add.
7698 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7699 (x86_64_register_raw_size, x86_64_register_virtual_type),
7700 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7701 general x86_64_register_info_table.
7702 (i386_gdbarch_init): gdbarch_register_bytes is now set
7703 dynamicaly during initialization.
7704 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7705 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7706
0e98d0a7
DJ
77072002-03-27 Daniel Jacobowitz <drow@mvista.com>
7708
7709 * gdbserver/server.c (main): Call target_signal_to_host_p
7710 and target_signal_to_host on signals received from the remote.
7711 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7712 target_signal_from_host on signals sent to the remote.
7713 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7714 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7715
3130066b
DJ
77162002-03-27 Daniel Jacobowitz <drow@mvista.com>
7717
7718 * signals/signals.c: Include "server.h" in gdbserver build.
7719 (target_signal_from_name): Don't use STREQ.
7720 (_initialize_signals): Likewise. Don't include function in
7721 gdbserver build.
7722
9aedf4f4
DJ
77232002-03-27 Daniel Jacobowitz <drow@mvista.com>
7724
7725 * signals.c: Moved to...
7726 * signals/signals.c: Here.
7e336ba1 7727 * Makefile (signals.o): Update.
9aedf4f4 7728
3fa41cdb
JL
77292002-03-26 Jeff Law (law@redhat.com)
7730
7731 * somread.c (som_symtab_read): Remove some commented out code and
7732 updated related comments. Do not set the minimal symbol table to
7733 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7734 in a dynamic executable.
7735 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7736 where we are unable to find the minimal symbol for the given
7737 PC value.
7738
ee677e8d
MS
77392002-03-25 Jeff Law (law@redhat.com)
7740
7741 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7742
e76e1718
ML
77432002-03-25 Michal Ludvig <mludvig@suse.cz>
7744
7745 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7746
18a642a1
AC
77472002-03-23 Andrew Cagney <ac131313@redhat.com>
7748
7749 * command.h: Update copyright.
7750 (struct cmd_list_element): Replace definition with opaque
7751 declaration.
7752 (enum cmd_types): Document that it will eventually be moved to
7753 cli/cli-decode.h
7754 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7755 (MALLOCED_REPLACEMENT): Delete macro.
7756 * Makefile.in (cli_decode_h): Add $(command_h).
7757 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7758 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7759 * completer.c: Include "cli/cli-decode.h".
7760 * maint.c: Include "cli/cli-decode.h".
7761 * cli/cli-decode.h: Include "command.h".
7762 (enum command_class): Delete.
7763 (enum cmd_types): Comment out.
7764 (enum cmd_auto_boolean): Delete.
7765 (enum var_types): Delete.
7766
b2875cc0
AC
77672002-03-23 Andrew Cagney <ac131313@redhat.com>
7768
7769 * cli/cli-decode.c: Include "gdb_assert.h".
7770 (add_set_or_show_cmd): New static function.
7771 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7772 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7773 all fields, such as func, from the set command.
7774
3b45974e
AC
77752002-03-23 Andrew Cagney <ac131313@redhat.com>
7776
7777 * MAINTAINERS (sh-elf): Change warning flag to -w.
7778
823ca731
AC
77792002-03-23 Andrew Cagney <cagney@redhat.com>
7780
7781 * defs.h (error): Add printf format attribute.
7782 * thread-db.c (thread_from_lwp): Fix error format string.
7783 * stack.c (parse_frame_specification): Ditto.
7784 * cli/cli-decode.c (undef_cmd_error): Ditto.
7785 * scm-lang.c (scm_lookup_name): Ditto.
7786 * tracepoint.c (trace_error): Ditto.
7787 * remote-utils.c (usage): Ditto.
7788 * remote.c (compare_sections_command): Ditto.
7789 Fix PR gdb/328.
7790
0e101458
AC
77912002-03-22 Andrew Cagney <ac131313@redhat.com>
7792
7793 * gdbtypes.c (append_composite_type_field): New function.
7794 (init_composite_type): New function.
7795 * gdbtypes.h (append_composite_type_field): Declare.
7796 (init_composite_type): Ditto.
7797
8e0662df
EZ
77982002-03-22 Elena Zannoni <ezannoni@redhat.com>
7799
7800 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7801 function.
8e0662df
EZ
7802 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7803 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7804 structure returning convention for SYSV ABI case, but not
7805 for GNU/Linux, FreeBSD, or NetBSD.
7806
3121eff0
DJ
78072002-03-22 Daniel Jacobowitz <drow@mvista.com>
7808
7809 * symtab.h (lookup_block_symbol): Add mangled_name argument
7810 to prototype.
7811
7812 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7813 with new mangled_name argument.
7814 * linespec.c (decode_line_1): Likewise.
7815 * valops (value_of_this): Likewise.
7816 * symtab.c (lookup_transparent_type): Likewise.
7817 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7818 (lookup_symbol): If we are given a mangled name, pass it down
7819 to lookup_symbol_aux.
7820 (lookup_block_symbol): If we are given a mangled name to check
7821 against, only return symbols which match it.
7822
349b409f
CF
78232002-03-22 Christopher Faylor <cgf@redhat.com>
7824
7825 * win32-nat.c (child_create_inferior): Check for proper shell to use
7826 here, in case the user changes it on the fly.
7827 (_initialize_inftarg): Remove shell path considerations.
7828
2a873819
EZ
78292002-03-21 Elena Zannoni <ezannoni@redhat.com>
7830
7831 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7832 for gdbarch_max_register_raw_size and max_register_virtual_size.
7833 Adjust copyright year.
7834
a1b9830c
DJ
78352002-03-21 Daniel Jacobowitz <drow@mvista.com>
7836
7837 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7838 in a function to cover the entire beginning of the function
7839 as well if it does not already.
7840
8b5790f2
TR
78412002-03-21 Tom Rix <trix@redhat.com>
7842
7843 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7844 (rs6000_ptrace64): Renamed from ptrace64.
7845
bdbe5747
MH
78462002-03-20 Martin M. Hunt <hunt@redhat.com>
7847
7848 * gdbserver/remote-utils.c (remote_open): Don't call
7849 getprotobyname, we're all using TCP here so just use
7850 IPPROTO_TCP.
7e336ba1 7851 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7852
78532002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7854
bdbe5747
MH
7855 * regcache.c (_initialize_regcache): No need to call
7856 build_regcache() at this time; it gets called whenever
7857 the gdbarch changes.
7858
7781cd62
DB
78592002-03-20 David O'Brien <obrien@FreeBSD.org>
7860
7861 * sparc-nat.c: Include sys/param.h where possible.
7862
f65ca430
DJ
78632002-03-20 Daniel Jacobowitz <drow@mvista.com>
7864
7865 Fix PR gdb/422.
7866 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7867 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7868 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7869 complex types.
7870 * stabsread.c (rs6000_builtin_type): Likewise.
7871 (read_sun_floating_type): Likewise.
7872
0c867556
PS
78732002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7874
7875 * stabsread.c (read_member_functions): Remove skip code for duplicate
7876 constructor/destructor methods. Use standard parsing for these
7877 methods and just do not chain them to the list of methods after
7878 parsing.
7879
12b9c64f
AO
78802002-03-19 Alexandre Oliva <aoliva@redhat.com>
7881
7882 * coffread.c: Remove redundant static declarations. Replace
7883 occurrences of `PTR' with `void *'.
7884 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7885 * top.h (quit_cover): Likewise.
7886 * defs.h (catch_errors): Likewise.
7887
349c5d5f
AC
78882002-03-18 Andrew Cagney <ac131313@redhat.com>
7889
7890 * defs.h (XMALLOC): Define.
7891 * gdb-events.sh (XMALLOC): Delete macro.
7892 * gdb-events.c, gdb-events.h: Regenerate.
7893 * gdbarch.sh (XMALLOC): Delete macro.
7894 * gdbarch.c: Regenerate.
7895 * serial.c (XMALLOC): Delete macro.
7896 * ui-file.c (XMALLOC): Ditto.
7897 * ser-unix.h (XMALLOC): Ditto.
7898 * sh-tdep.c (XMALLOC): Ditto.
7899 * ui-out.c (XMALLOC): Ditto.
7900 * utils.c (XMALLOC): Ditto.
7901 * i386-tdep.c (XMALLOC): Ditto.
7902 * gdb-events.c (XMALLOC): Ditto.
7903 * d10v-tdep.c (XMALLOC): Ditto.
7904 * cli-out.c (XMALLOC): Ditto.
7905
7906 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7907 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7908 * ui-file.c, ui-out.c: Ditto.
7909
7d0766f3
AC
79102002-03-18 Andrew Cagney <ac131313@redhat.com>
7911
7912 * command.h (struct cmd_list_element): Add field context.
7913 (set_cmd_context, get_cmd_context): Declare.
7914 * cli/cli-decode.h: Ditto.
7915 * cli/cli-decode.c (get_cmd_context): New function.
7916 (set_cmd_context): New function.
7917 (add_cmd): Initialize context.
7918 Part of fixing PR gdb/145 and PR gdb/146.
7919
5913bcb0
AC
79202002-03-17 Andrew Cagney <ac131313@redhat.com>
7921
1868c04e
AC
7922 * cli/cli-decode.c (cmd_type): New function.
7923 * command.h (cmd_type): Declare.
7924 * infrun.c (set_schedlock_func): Call function cmd_type.
7925 * kod.c (kod_set_os): Call cmd_type.
7926 * cris-tdep.c (cris_version_update): Use function cmd_type.
7927 (cris_mode_update, cris_abi_update): Ditto.
7928
5913bcb0
AC
7929 * command.h: (execute_cmd_post_hook): Declare.
7930 (execute_cmd_pre_hook): Declare.
7931 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7932 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7933 functions. Execute pre/post hook while ensuring that afterwords
7934 hook_in is cleared.
7935 * top.c (execute_command): Use execute_cmd_post_hook, and
7936 execute_cmd_pre_hook to execute pre/post commands.
7937 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7938 hook_stop_stub.
7939 (hook_stop_stub): Call execute_cmd_pre_hook.
7940
b51450c9
AC
79412002-03-17 Andrew Cagney <ac131313@redhat.com>
7942
7943 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7944 set'' and this leads to a core dump. Move xstrdup of
7945 operating_system to after check that it is not NULL.
7946
f66c9f11
AC
79472002-03-17 Andrew Cagney <ac131313@redhat.com>
7948
8e694ecf
AC
7949 * kod.c (kod_set_os): Remove unnecessary check that
7950 ``command->type'' is set_cmd.
7951
f66c9f11
AC
7952 * valprint.c (set_input_radix): Use input_radix.
7953 (set_output_radix): Use output_radix.
7954 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7955 isn't reverted.
7956
9d01611c
AC
79572002-03-16 Andrew Cagney <ac131313@redhat.com>
7958
7959 * value.h (struct value): Delete field ``substring_addr''. Change
7960 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7961 force_core_addr_align and force_pointer_aligh.
7962
7963 * value.h (struct value): Fix typo in above change.
9d01611c 7964
4156bb53
PS
79652002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7966
7967 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7968 to fix internal_error from ``maintenance print architecture''.
7969
0e5e3ea6
PS
79702002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7971
7972 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7973 for gcc versions after gcc-2.8.1.
7974
9b013045
PS
79752002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7976
7977 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7978 for method resolution. Restore adjustment of ``this'' pointer after
7979 calling value_struct_elt, which was accidentally removed during the
7980 HP merge.
7981
376c9600
AC
79822002-03-15 Andrew Cagney <ac131313@redhat.com>
7983
7984 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7985 value_of_register.
7986 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7987 get_saved_register.
7988 * value.h (value_of_register): Update.
7989
a4db0f07
RH
79902002-03-14 Richard Henderson <rth@redhat.com>
7991
7992 * configure.in: Detect declaration for canonicalize_file_name.
7993 * utils.c (canonicalize_file_name): Declare, if needed.
7994 (gdb_realpath): Prefer realpath if available and usable.
7995 * config.in, configure: Rebuild.
7996
96383835
RH
79972002-03-14 Richard Henderson <rth@redhat.com>
7998
7999 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8000 a constant array bound.
8001
8002 * MAINTAINERS: Add myself to write-after-approval.
8003
75245b24
MS
80042002-03-14 Michael Snyder <msnyder@redhat.com>
8005
8006 * symfile.c (syms_from_objfile): Return immediately if no syms.
8007 (symbol_file_add): Return immediately if no syms.
8008 (find_sym_fns): Return immediately if no syms.
8009
e641a1ca
ML
80102002-03-13 Michal Ludvig <mludvig@suse.cz>
8011
8012 * gdbserver/remote-util.c (remote_open): Print remote-side's
8013 IP address when remote debugging over the network.
7e336ba1 8014
df08bfec
DB
80152002-03-12 David O'Brien <obrien@FreeBSD.org>
8016
8017 * config/sparc/fbsd.mh: Fix copyright.
8018 * config/sparc/fbsd.mt: Likewise.
8019
9a57864f
RE
80202002-03-11 Richard Earnshaw <rearnsha@arm.com>
8021
8022 * MAINTAINERS: Fix typo in name of gdb warnings option.
8023 (x86-64): Fix formating so that this can be parsed by awk.
8024
dd7bf85e
DJ
80252002-03-10 Daniel Jacobowitz <drow@mvista.com>
8026
8027 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8028 * defs.h: Include "gdb/signals.h".
8029 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8030
33a0a2ac
ML
80312002-03-10 Michal Ludvig <mludvig@suse.cz>
8032
8033 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8034 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8035 from x86-64-tdep.h
8036
dd824b04
DJ
80372002-03-10 Daniel Jacobowitz <drow@mvista.com>
8038 Don Howard <dhoward@redhat.com>
8039
8040 * mips-tdep.c (ST0_FR): Define.
8041 (mips2_fp_compat): New function, temporarily disabled.
8042 (mips_read_fp_register_single): New function.
8043 (mips_read_fp_register_double): New function.
8044 (mips_print_register): Use them.
8045 (do_fp_register_row): Likewise.
8046
6a41ff59
AC
80472002-03-09 Andrew Cagney <ac131313@redhat.com>
8048
8049 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8050 approval''.
8051
4ea09c10
PS
80522002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8053
8054 * stabsread.c (read_member_functions): Fix is_stub test for
8055 static member functions, improve comment.
8056
6ccc741d
RE
80572002-03-07 Richard Earnshaw <rearnsha@arm.com>
8058
8059 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8060 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8061 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8062 commands that set boolean values.
8063 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8064 (arm_rdi_resume): Always initialize PC.
8065 (arm_rdi_open): Don't use rslt as a boolean.
8066 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8067 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8068 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8069 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8070
438013df
AO
80712002-03-06 Alexandre Oliva <aoliva@redhat.com>
8072
8073 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8074 * configure: Rebuilt.
8075
70ed8774
SC
80762002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8077
8078 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8079 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8080
5ba2abeb
AC
80812002-03-06 Andrew Cagney <ac131313@redhat.com>
8082
8083 * cli/cli-decode.c (set_cmd_completer): New function.
8084 * command.h (set_cmd_completer): Declare.
8085 * cli/cli-decode.h (set_cmd_completer): Ditto.
8086
8087 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8088 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8089 * win32-nat.c (_initialize_inftarg): Ditto.
8090 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8091 * proc-api.c (_initialize_proc_api): Ditto.
8092 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8093 * source.c (_initialize_source): Ditto.
8094 * exec.c (_initialize_exec): Ditto.
8095 * solib.c (_initialize_solib): Ditto.
8096 * top.c (init_main): Ditto.
8097 * tracepoint.c (_initialize_tracepoint): Ditto.
8098 * symfile.c (_initialize_symfile): Ditto.
8099 * printcmd.c (_initialize_printcmd): Ditto.
8100 * infcmd.c (_initialize_infcmd): Ditto.
8101 * corefile.c (_initialize_core): Ditto.
8102
f779ca99
AC
81032002-03-05 Andrew Cagney <ac131313@redhat.com>
8104
8105 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8106
01a3934b
AC
81072002-03-05 Andrew Cagney <ac131313@redhat.com>
8108
8109 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8110
37057839
AC
81112002-03-05 Andrew Cagney <ac131313@redhat.com>
8112
8113 * NEWS: Update headings, 5.2 has branched.
8114
c6ecbae5
DJ
81152002-03-04 Daniel Jacobowitz <drow@mvista.com>
8116
8117 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8118 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8119 (register_addr, REGISTER_RAW_SIZE): Likewise.
8120 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8121 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8122
e9f30c21
ML
81232002-03-03 Michal Ludvig <mludvig@suse.cz>
8124
8125 * MAINTAINERS (x86-64): Add myself.
8126 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8127 changed value_ptr -> struct value *
8128
54394ac3
DB
81292002-03-01 David O'Brien <obrien@FreeBSD.org>
8130
8131 * configure.host (sparc64-*-freebsd): Add.
8132 * configure.tgt: Likewise.
8133 * config/sparc/fbsd.mh: New file.
8134 * config/sparc/fbsd.mt: Likewise.
8135 * config/sparc/nm-fbsd.h: Likewise.
8136 * config/sparc/tm-fbsd.h: Likewise.
8137
bfe95955
DJ
81382002-03-01 Daniel Jacobowitz <drow@mvista.com>
8139
8140 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8141 regformats/reg-s390x.dat.
8142
f33c6cbf
AC
81432002-03-01 Andrew Cagney <ac131313@redhat.com>
8144
8145 * utils.c: Add FIXME explaining true/false problem.
8146
5ecaa7dd
AC
81472002-02-28 Andrew Cagney <ac131313@redhat.com>
8148
8149 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8150
2a251cc2
MC
81512002-02-28 Michael Chastain <mec@shout.net>
8152
8153 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8154
6a8031a3 81552002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8156
8157 * gdbserver/linux-s390-low.c: New file.
8158 * regformats/reg-s390.dat: New file.
8159 * regformats/reg-s390x.dat: New file.
8160 * gdbserver/configure.srv: Add S/390.
8161 * gdbserver/Makefile.in: Add S/390.
8162 * configure.tgt: Enable gdbserver for S/390.
8163
ac469903
EZ
81642002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8165
8166 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8167 first line of the doc string for "info dos", except at the end of
8168 the sentence, since the short help stops at the first period.
8169
985cb1a3
JM
81702002-02-28 Jason Merrill <jason@redhat.com>
8171
8172 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8173
c570663e
FF
81742002-02-27 Fred Fish <fnf@redhat.com>
8175
8176 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8177 comment (dumy -> dummy).
8178
43630227
PS
81792002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8180
8181 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8182
b84911e8
RB
81832002-02-27 Rodney Brown <rbrown64@csc.com.au>
8184
8185 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8186
58caa3dc
DJ
81872002-02-27 Daniel Jacobowitz <drow@mvista.com>
8188
8189 * gdbserver/acconfig.h: New file.
8190 * gdbserver/i387-fp.c: New file.
8191 * gdbserver/i387-fp.h: New file.
8192 * gdbserver/linux-x86-64.c: New file.
8193 * regformats/reg-x86-64.dat: New file.
8194 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8195 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8196 * gdbserver/configure.in: Add support for regsets.
8197 * gdbserver/config.in: Regenerate.
8198 * gdbserver/configure: Regenerate.
8199 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8200 * gdbserver/linux-low.h: New file.
8201 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8202 for regsets.
8203 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8204 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8205 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8206 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8207 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8208 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8209 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8210 "i387-fp.h". Add PTRACE_GETREGS and friends.
8211 * gdbserver/regcache.c (supply_register): New function.
8212 (supply_register_by_name): New function.
8213 (collect_register): New function.
8214 (collect_register_by_name): New function.
8215
93652174
DJ
82162002-02-27 Daniel Jacobowitz <drow@mvista.com>
8217
8218 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8219 (config.status): Add configure.srv dependency.
8220 (server_h): Add config.h dependency.
8221
a02e4a61
DJ
82222002-02-27 Daniel Jacobowitz <drow@mvista.com>
8223
8224 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8225 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8226 * gdbserver/configure.srv: Change i386-*-linux* to use
8227 reg-i386-linux.o.
8228
ce0eebec
AC
82292002-02-26 Andrew Cagney <ac131313@redhat.com>
8230
8231 * x86-64-tdep.c: Re-indent. Update copyright date.
8232
82dbc5f7
AC
82332002-02-26 Andrew Cagney <ac131313@redhat.com>
8234
8235 From Michal Ludvig <mludvig@suse.cz>:
8236 * x86-64-tdep.c (value.h): Delete.
8237 (gdb_assert.h): Include.
8238 (x86_64_register_convert_to_virtual,
8239 x86_64_register_convert_to_raw ): Add check which lets only
8240 floating-point values to be converted.
8241 (value_push): Delete.
8242 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8243 (i386_gdbarch_init): Number of register_bytes fixed.
8244
e4621584
AC
82452002-02-26 Andrew Cagney <ac131313@redhat.com>
8246
8247 * MAINTAINERS: Add x86-64 target.
8248
81a9a963
AC
82492002-02-26 Andrew Cagney <ac131313@redhat.com>
8250
8251 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8252 * osfsolib.c (solib_map_sections): Ditto.
8253 * irix5-nat.c (solib_map_sections): Ditto.
8254 * corelow.c (gdb_check_format): Ditto.
8255 * symfile.c (symfile_bfd_open): Ditto.
8256 * solib.c (solib_map_sections): Ditto.
8257 Fix PR gdb/354.
7e336ba1 8258
0f017ab9
AC
82592002-02-26 Andrew Cagney <ac131313@redhat.com>
8260
8261 * remote.c (_initialize_remote): By default, disable ``e'' and
8262 ``E'' step out-of-range packets.
8263
75738c29
AS
82642002-02-26 Andreas Schwab <schwab@suse.de>
8265
8266 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8267 m68k_linux_frame_saved_pc.
8268 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8269 in_sigtramp.
8270 (SIGCONTEXT_PC_OFFSET): Remove.
8271 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8272 m68k_linux_sigtramp_saved_pc): New functions.
8273 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8274 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8275 (UCONTEXT_PC_OFFSET): Define.
8276 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8277 non-RT and RT signal trampolines.
8278
7e8ed687
RE
82792002-02-26 Richard Earnshaw <rearnsha@arm.com>
8280
8281 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8282 (TARGET_NBPG, STACK_END_ADDR): Delete
8283 (VARIABLES_INSIDE_BLOCK): Delete.
8284
6972bc8b
AC
82852002-02-25 Andrew Cagney <ac131313@redhat.com>
8286
8287 * utils.c (perror_with_name): Make string parameter constant.
8288 (print_sys_errmsg): Ditto.
8289 (query): Ditto.
8290 * defs.h (perror_with_name): Update.
8291 (print_sys_errmsg): Update.
8292 (query): Update.
8293
aa32f823
DJ
82942002-02-25 Daniel Jacobowitz <drow@mvista.com>
8295
8296 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8297 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8298
19caaa45
PS
82992002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8300
8301 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8302 if it already matches the current architecture from the exec file.
8303 Include arch-utils.h for gdbarch_info_init prototype.
8304 * Makefile.in (rs6000-nat.o): Update dependencies.
8305
d951901f
EZ
83062002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8307
8308 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8309 list of exported variables.
8310
7ea81414
DJ
83112002-02-24 Daniel Jacobowitz <drow@mvista.com>
8312
8313 * gdbserver/configure.srv: New file.
8314 * gdbserver/configure.in: Use configure.srv instead
8315 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8316 from it.
8317 * gdbserver/configure: Regenerated.
8318 * gdbserver/terminal.h: New file.
8319 * gdbserver/Makefile.in: Update for configure changes. Remove
8320 more unneeded include paths.
8321
080fe24b
AC
83222002-02-24 Andrew Cagney <ac131313@redhat.com>
8323
8324 From wiz at danbala:
8325 * config/sparc/tm-sp64.h: Fix grammar and typos.
8326 Fix PR gdb/287.
8327
8605d56e
AC
83282002-02-24 Andrew Cagney <ac131313@redhat.com>
8329
8330 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8331 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8332 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8333 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8334 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8335 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8336 * s390-tdep.c: Ditto.
92362027
AC
8337 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8338 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8339 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8340 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8341 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8342 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8343 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8344 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8345 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8346 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8347 Fix PR gdb/378.
7e336ba1 8348
8ed32cc0
AC
83492002-02-23 Andrew Cagney <ac131313@redhat.com>
8350
a3007b6f
AC
8351 * lin-thread.c: Delete file.
8352 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8353 to gdb_proc_service.h.
8354 * configure: Re-generate.
8355
50a9e2f1
AC
8356 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8357 * serial.c (serial_open): Delete check for "ocd".
8358 Fix PR gdb/349.
8359
8b6e7932
AC
8360 * Makefile.in (linux-thread.o): Delete target.
8361 * linux-thread.c: Delete file.
8362
d155c46b
AC
8363 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8364 renamed SH files to be consistent.
8365
8ed32cc0
AC
8366 * symtab.c (sort_search_symbols): Use xfree.
8367
0e18d038
RE
83682002-02-23 Richard Earnshaw <rearnsha@arm.com>
8369
8370 * arm-linux-tdep.c (arm_linux_init_abi): Register
8371 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8372 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8373 definition with undef, since we don't want the sysvr4 definition.
8374 (SKIP_TRAMPOLINE_CODE): Likewise.
8375
27aac7ff
AC
83762002-02-23 Andrew Cagney <ac131313@redhat.com>
8377
8378 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8379
8380 * configure.in: (AC_CHECK_FUNCS) Added test for
8381 canonicalize_file_name Regenerated.
8382 * config.in, configure: Regenerated.
8383 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8384 defined use canonicalize_file_name.
7e336ba1 8385
65a6e0ee
MC
83862002-02-23 Michael Chastain <mec@shout.net>
8387
8388 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8389
47b95330
AC
83902002-02-23 Andrew Cagney <ac131313@redhat.com>
8391
8392 * README: Remove references to cygnus.com.
8393 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8394 dot com'' form. Remove references to cygnus.com and sourceware.
8395
696f451b
AC
83962002-02-23 Andrew Cagney <ac131313@redhat.com>
8397
8398 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8399 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8400 1003.1-2001 no longer allows "head -1".
8401 * gdb/Makefile.in (version.c): Likewise.
8402 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8403 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8404 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8405
bbaca940
AC
84062002-02-23 Andrew Cagney <ac131313@redhat.com>
8407
8408 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8409 * command.h (cmd_cfunc_eq): Declare.
8410 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8411
8412 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8413 ``struct cmd_list_element *''.
8414 * cli/cli-cmds.c (is_complete_command): Update. Use
8415 cmd_cfunc_eq.
8416 * top.c (execute_command): Pass the command to
8417 is_complete_command.
8418 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8419
b8b8b047
AC
84202002-02-23 Andrew Cagney <ac131313@redhat.com>
8421
8422 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8423 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8424 architecture defines.
8425 * s390-tdep.c (s390_gdbarch_init): Likewise.
8426
19d3fc80
RE
84272002-02-23 Richard Earnshaw <rearnsha@arm.com>
8428
8429 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8430 (arm_linux_push_arguments): Likewise.
8431 (arm_linux_init_abi): Register them. Also register linux-specific
8432 call_dummy_words.
8433 (find_minsym_and_objfile): Use strcmp, not STREQ.
8434 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8435 (arm_linux_call_dummy_words): Delete declaration.
8436 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8437 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8438 declarations.
8439 (LOWEST_PC): Delete.
8440
3ab13650
PS
84412002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8442
8443 * maint.c (print_section_info): Do not prepend `0x' to filepos
8444 output, it will be handled by local_hex_string_custom.
8445
19d3fc80 84462002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8447
8448 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8449 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8450 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8451
d85a5daf
JB
84522002-02-22 Jim Blandy <jimb@redhat.com>
8453
8454 Indicate that the bcache functions don't change the strings
8455 they're passed.
8456 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8457 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8458
eeb25b8a
PM
84592002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8460
8461 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8462
6badb179
CF
84632002-02-21 Christopher Faylor <cgf@redhat.com>
8464
8465 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8466 find the complete path to a loaded DLL.
8467
e8717518
FF
84682002-02-21 Fred Fish <fnf@redhat.com>
8469
8470 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8471 that marks the end of the range of a function, enter a line number
8472 entry that has a line number of zero and a PC offset that matches
8473 the end of the function. This starts a range of PC's for which no
8474 line number information is known.
8475 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8476 PC's for which no line number info is found (line number is zero)
8477 then we didn't find any valid line information.
8478 * symtab.h: Document use of zero line number entry.
8479
9abe5450
EZ
84802002-02-21 Elena Zannoni <ezannoni@redhat.com>
8481
8482 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8483 (have_ptrace_getvrregs): Define for run time checks.
8484 (gdb_vrregset_t): New type for Altivec register handling.
8485 (fetch_register, store_register): Fetch/store altivec register
8486 when needed.
8487 (fetch_altivec_register, store_altivec_register): New functions.
8488 (supply_vrregset, fill_vrregset): New functions.
8489 (fetch_altivec_registers, store_altivec_registers): New functions.
8490 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8491 registers as well.
8492
aaa38bb5
AJ
84932002-02-21 Jiri Smid <smid@suse.cz>
8494
8495 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8496
b34db576
RE
84972002-02-21 Richard Earnshaw <rearnsha@arm.com>
8498
8499 * Makefile.in (armnbsd-nat.o): Update dependencies.
8500 * armnbsd-nat.c (supply_gregset): New function. Common code to
8501 supply the integer register set.
8502 (supply_fparegset): New function. Similar for FPA registers.
8503 (fetch_regs, fetch_fp_regs): Use them.
8504 (fetch_core_registers): Likewise.
8505 (fetch_elfcore_registers): New function.
8506 (arm_netbsd_elfcore_fns): New core-file type specification.
8507 (_initialize_arm_netbsd_nat): Register it.
8508
3e56fc4b
RE
85092002-02-21 Richard Earnshaw <rearnsha@arm.com>
8510
8511 * armnbsd-nat.c: Include gdbcore.h.
8512 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8513 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8514 'void' to declaration, to shut up ARI.
8515 (fetch_core_registers): Make static. Rewrite using supply_register.
8516 (arm_netbsd_core_fns): New core-file type specification.
8517 (_initialize_arm_netbsd_nat): New function.
8518
097f6b0b
CF
85192002-02-21 Christopher Faylor <cgf@redhat.com>
8520
8521 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8522 value.
8523
c914e0cc
CF
85242002-02-20 Christopher Faylor <cgf@redhat.com>
8525
8526 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8527 fails.
8528
385fa495
DJ
85292002-02-20 Daniel Jacobowitz <drow@mvista.com>
8530
8531 * jv-exp.y (parse_number): Change type of implicit longs
8532 to builtin_type_uint64.
8533
e5f1222d
DJ
85342002-02-20 Daniel Jacobowitz <drow@mvista.com>
8535
8536 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8537 to be an integer instead of a `union wait'.
8538
75c9abc6
DJ
85392002-02-20 Daniel Jacobowitz <drow@mvista.com>
8540
8541 * mips-linux-nat.c: Call the operating system GNU/Linux.
8542 * mips-linux-tdep.c: Likewise.
8543 * mips-tdep.c: Likewise.
8544
551792a5
DJ
85452002-02-20 Daniel Jacobowitz <drow@mvista.com>
8546
8547 Fix PR gdb/265.
8548 * jv-exp.y (parse_number): Handle 64-bit integers.
8549
ee6e2b82
DJ
85502002-02-20 Daniel Jacobowitz <drow@mvista.com>
8551
8552 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8553 AC_STDC_HEADERS to AC_HEADER_STDC.
8554 * gdbserver/configure: Regenerated.
8555
a48442a0
RE
85562002-02-20 Richard Earnshaw <rearnsha@arm.com>
8557
8558 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8559 is defined.
8560 * sparc-tdep.c (get_longjmp_target): Likewise.
8561
fe419ffc
RE
85622002-02-20 Richard Earnshaw <rearnsha@arm.com>
8563
8564 * News: Add news about ARM and Multi-arch. Mention the new target
8565 arm*-*-netbsd*.
8566
5832ed7e
JB
85672002-02-19 Jim Blandy <jimb@redhat.com>
8568
8569 * stabsread.c (error_type_complaint): Improve error message.
8570
84563040
DJ
85712002-02-19 Daniel Jacobowitz <drow@mvista.com>
8572
8573 * gdbserver/README: Update documentation.
8574 * gdbserver/configure.in: Update configury to match documentation.
8575 * gdbserver/Makefile.in: Likewise.
8576 * gdbserver/configure: Regenerated.
8577 * gdbserver/aclocal.m4: New file, generated by aclocal.
8578 * gdbserver/config.in: New file, generated by autoheader.
8579
375fd65b
RE
85802002-02-19 Richard Earnshaw <rearnsha@arm.com>
8581
8582 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8583 armnbsd-nat.c.
8584
08216dd7
RE
85852002-02-19 Richard Earnshaw <rearnsha@arm.com>
8586
8587 * arm-tdep.h (enum arm_float_model): New enum.
8588 (struct gdbarch_tdep): Add fp_model.
8589 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8590 up floating-point conversions until we know the floating-point model
8591 in use by the inferior. Don't complain about being unable to
8592 determine the ABI of the inferior when we don't have one.
8593 (arm_extract_return_value): Support different floating-point models.
8594 (arm_store_return_value): Likewise.
aaa38bb5 8595 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8596 ARM_FLOAT_SOFT.
8597 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8598
65d6d66a
PS
85992002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8600
8601 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8602 of ``current_gdbarch''.
8603
47221191
RE
86042002-02-19 Richard Earnshaw <rearnsha@arm.com>
8605
8606 * armnbsd-nat.c : ANSIfy all function declarations.
8607 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8608 (fetch_inferior_registers): Re-implement in terms of above.
8609 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8610 (store_inferior_registers): Re-implement in terms of above.
8611
fdf39c9a
RE
86122002-02-19 Richard Earnshaw <rearnsha@arm.com>
8613
aaa38bb5 8614 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8615 kernel.
8616 * arm-linux-tdep.c: Likewise.
8617 * config/arm/tm-linux.h: Likewise.
8618
93247f88
RE
86192002-02-19 Richard Earnshaw <rearnsha@arm.com>
8620
8621 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8622 * config/arm/nbsd.mt (TM_FILE): Delete.
8623 * config/arm/tm-nbsd.h: Delete.
8624
d7b486e7
RE
86252002-02-19 Richard Earnshaw <rearnsha@arm.com>
8626
8627 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8628 Initialize CALL_DUMMY_LENGTH.
8629
41d39a95
RE
86302002-02-19 Richard Earnshaw <rearnsha@arm.com>
8631
8632 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8633 function.
8634 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8635 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8636 defines one thing and that is incorrect for this port.
8637 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8638
e1195560
PM
86392002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8640
8641 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8642
c1748f97
PM
86432002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8644
8645 * win32-nat.c (display_selector): New function. Displays information
8646 about the information returned by GetThreadSelectorEntry API function.
8647 (display_selectors): New function. Displays the infomation of
8648 the selector given as argument, or of CS, DS ans FS selectors
8649 if no argument is given.
8650 ( _initialize_inftarg): Add "w32" as info prefix command.
8651 Add "info w32 selector" as command calling display_selectors.
8652
e41e6bbf
PM
86532002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8654
8655 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8656 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8657 if not defined.
8658
0d3a9f48
RE
86592002-02-18 Richard Earnshaw <rearnsha@arm.com>
8660
8661 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8662
3fb4b924
RE
86632002-02-18 Richard Earnshaw <rearnsha@arm.com>
8664
8665 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8666 (arm_fix_call_dummy): Call it.
8667 (arm_call_dummy_breakpoint_offset): Delete.
8668 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8669 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8670
7f55af32
AC
86712002-02-18 Andrew Cagney <ac131313@redhat.com>
8672
8673 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8674 Default to func_frame_chain_valid.
8675 * gdbarch.h, gdbarch.c: Re-generate.
8676 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8677
05f13b9c
EZ
86782002-02-18 Elena Zannoni <ezannoni@redhat.com>
8679
8680 * ppc-linux-nat.c: Update copyright.
8681 (fetch_register, store_register): Add tid parameter, don't compute
8682 tid here.
8683 (fetch_ppc_registers, store_ppc_registers): Add tid
8684 parameter. Pass it along to callees.
8685 (fetch_inferior_registers, store_inferior_registers): Compute tid
8686 here, and pass it to calleed functions.
8687 (fill_gregset, supply_fpregset): Clean up formatting.
8688
d7afb4c9
RE
86892002-02-18 Richard Earnshaw <rearnsha@arm.com>
8690
8691 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8692 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8693
9df628e0
RE
86942002-02-18 Richard Earnshaw <rearnsha@arm.com>
8695
8696 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8697 * gdbarch.c gdbarch.h: Regenerate.
8698 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8699 function.
8700 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8701 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8702 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8703
8704 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8705 * arm-tdep.c (arm_get_longjmp_target): New function.
8706 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8707 this to a positive value register arm_get_longjmp_target as the
8708 longjmp handler.
8709 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8710 (arm_linux_init_abi): Set up longjmp description in tdep.
8711 * armnbsd-nat.c (get_longjmp_target): Delete.
8712 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8713 description in tdep.
8714 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8715 (get_longjmp_target): Delete declaration.
8716 (GET_LONGJMP_TARGET): Delete.
8717 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8718 (GET_LONGJMP_TARGET): Delete.
8719
57bc8964
KB
87202002-02-17 Kevin Buettner <kevinb@redhat.com>
8721
8722 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8723 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8724 of ``current_gdbarch''.
8725
83d31a92
TT
87262002-02-17 Tom Tromey <tromey@redhat.com>
8727
8728 * cli/cli-cmds.c (compare_strings): New function.
8729 (complete_command): Only print each unique item once.
8730 * completer.h (complete_line): Declare.
8731 * completer.c (complete_line): New function.
8732 (line_completion_function): Use it.
8733
17ef5d92
AC
87342002-02-16 Andrew Cagney <ac131313@redhat.com>
8735
8736 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8737 * gdbarch.h, gdbarch.c: Re-generate.
8738
491b8946
DJ
87392002-02-16 Daniel Jacobowitz <drow@mvista.com>
8740
8741 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8742
87432002-02-16 Daniel Jacobowitz <drow@mvista.com>
8744
8745 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8746 * valops.c (value_arg_coerce): Don't take the address of a reference
8747 to convert an argument to a reference.
8748
dfe7f3ac
CF
87492002-02-15 Christopher Faylor <cgf@redhat.com>
8750
8751 * win32-nat.c (get_image_name): New function.
8752 (handle_load_dll): Use get_image_name function.
8753 (get_child_debug_event): Avoid registering debug events until possibly
8754 execed process is started.
8755 (child_create_inferior): Allow invocation via shell so that command
8756 line redirection, etc. works ok.
8757 (_initialize_inftarg): Add new command: "set shell" to control whether
8758 a shell is used to start a process.
8759
1d33e73a
DJ
87602002-02-15 Daniel Jacobowitz <drow@mvista.com>
8761
8762 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8763 instead of find_register_by_number.
8764 (cannot_store_register): Likewise.
8765
48cd0caa
PM
87662002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8767
aaa38bb5 8768 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8769 fprintf_unfiltered (gdb_stderr, ...).
8770
8656e7d8
DJ
87712002-02-15 Daniel Jacobowitz <drow@mvista.com>
8772
8773 * gdbserver/gdbserver.1: Document --attach.
8774
66e810cd
RE
87752002-02-15 Richard Earnshaw <rearnsha@arm.com>
8776
8777 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8778 descriptions.
8779 * arm-tdep.c (arm_default_arm_le_breakpoint)
8780 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8781 (arm_default_thumb_be_breakpoint): New. Initialize them from
8782 traditional breakpoint defines.
8783 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8784 (arm_gdbarch_init): Initialize new breakpoint variables.
8785 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8786 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8787 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8788 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8789 code out to ...
8790 (arm_netbsd_init_abi_common): ... here; new function.
8791 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8792 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8793 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8794 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8795
97e03143
RE
87962002-02-15 Richard Earnshaw <rearnsha@arm.com>
8797
8798 * arm-tdep.h (enum arm_abi): New enum.
8799 (struct gdbarch_tdep): New structure.
8800 (LOWEST_PC): Provide a default.
8801 (arm_gdbarch_register_os_abi): Declare new function.
8802 * arm-tdep.c (arm_abi_names): New array.
8803 (process_note_abi_tag_sections): New function.
8804 (get_elfosabi): New function.
8805 (arm_gdbarch_register_os_abi): New function.
8806 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8807 support for that ABI has been built in, then call the appropriate
8808 configuration routine. Use gdbarch_num_regs() to get the number
8809 of registers.
8810 (arm_dump_tdep): New function.
8811 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8812 place-holder functions.
8813 (_initialize_arm_tdep): Register them.
8814 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8815
8816 * armnbsd-tdep.c: New file.
8817 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8818 * config/arm/nbsd.mt (TDEPFILES): Add it.
8819 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8820
8821 * armnbsd-nat.c: Include regcache.h.
8822 * Makefile.in (armnbsd-nat.o): Update dependency list.
8823
8824 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8825
ad68be46
DJ
88262002-02-14 Daniel Jacobowitz <drow@mvista.com>
8827
8828 * gdbserver/Makefile.in: Fix typos in target rules.
8829
003d6d1d
DJ
88302002-02-14 Daniel Jacobowitz <drow@mvista.com>
8831
aaa38bb5 8832 Fix part of PR gdb/267.
003d6d1d
DJ
8833 * linespec.c (find_methods): Handle constructors specially for now.
8834
6b230f1b
CV
88352002-02-14 Corinna Vinschen <vinschen@redhat.com>
8836
8837 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8838 handling.
8839 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8840 standard_coerce_float_to_double().
8841
1ea98d12
CF
88422002-02-14 Christopher Faylor <cgf@redhat.com>
8843
8844 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8845 GDBINIT_FILENAME.
8846
dd47e6fd
EZ
88472002-02-14 Elena Zannoni <ezannoni@redhat.com>
8848
8849 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8850 find_variant_by_name, because it confuses the multiarch
8851 framework. Return NULL if there isn't an architecture with the
8852 user supplied name, instead of forcing a different one without
8853 recording the change with the multiarch machinery.
8854 (find_variant_by_name): Delete.
8855
d7e39b9e
PS
88562002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8857
8858 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8859 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8860
76e42a4f
MH
88612002-02-13 Martin M. Hunt <hunt@redhat.com>
8862
aaa38bb5 8863 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8864 print_frame_info_listing_hook, set current_source_symtab.
8865
0a30fbc4
DJ
88662002-02-14 Daniel Jacobowitz <drow@mvista.com>
8867
8868 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8869 and remove unused $(INCLUDE_DIR).
8870 Add regcache.c to OBS.
8871 Add generated register protocol files to clean target.
8872 Update dependencies for new objects, obsolete old target code.
8873
8874 * gdbserver/linux-low.c: Remove all platform-specific code to
8875 new files. Remove various dead code. Update to use regcache
8876 functionality.
8877 * gdbserver/remote-utils.c (fromhex): Add return statement
8878 to quiet warning.
8879 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8880 constant.
8881 (input_interrupt): Add integer parameter to match prototype
8882 of a signal handler.
8883 (outreg): Use register_data ().
8884 (prepare_resume_reply): Use gdbserver_expedite_regs.
8885 * gdbserver/server.c (main): Dynamically allocate own_buf because
8886 PBUFSIZ is no longer constant. Use registers_to_string () and
8887 registers_from_string ().
8888 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8889 for error (), fatal (), and warning (). Update definition of
8890 PBUFSIZ to use regcache functionality. Add include guard.
8891 * gdbserver/utils.c (fatal): Add missing ``const''.
8892 (warning): New function.
8893
8894 * regformats/regdat.sh: Include "regcache.h" in generated files.
8895 Provide init_registers () function.
8896 * regformats/regdef.h: Add prototype for set_register_cache ().
8897 Add include guard.
8898
8899 * gdbserver/linux-arm-low.c: New file.
8900 * gdbserver/linux-i386-low.c: New file.
8901 * gdbserver/linux-ia64-low.c: New file.
8902 * gdbserver/linux-m68k-low.c: New file.
8903 * gdbserver/linux-mips-low.c: New file.
8904 * gdbserver/linux-ppc-low.c: New file.
8905 * gdbserver/linux-sh-low.c: New file.
8906
8907 * gdbserver/regcache.c: New file.
8908 * gdbserver/regcache.h: New file.
8909
8910 * gdbserver/low-linux.c: Removed obsolete file.
8911
4cc841d0
DJ
89122002-02-14 Daniel Jacobowitz <drow@mvista.com>
8913
8914 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8915 * config/i386/linux.mt: Likewise.
8916 * config/ia64/linux.mt: Likewise.
8917 * config/m68k/linux.mh: Likewise.
8918 * config/powerpc/linux.mh: Likewise.
8919 * config/mips/linux.mt: Likewise.
8920
8921 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8922
8923 * config/i386/i386lynx.mh: Mark gdbserver variables
8924 as (currently) obsolete for this target.
8925 * config/i386/nbsd.mt: Likewise.
8926 * config/i386/nbsdelf.mt: Likewise.
8927 * config/m32r/m32r.mt: Likewise.
8928 * config/m68k/m68klynx.mh: Likewise.
8929 * config/m68k/nbsd.mt: Likewise.
8930 * config/m68k/sun3os4.mh: Likewise.
8931 * config/mips/vr5000.mt: Likewise.
8932 * config/ns32k/nbsd.mt: Likewise.
8933 * config/pa/hppabsd.mh: Likewise.
8934 * config/pa/hppaosf.mh: Likewise.
8935 * config/powerpc/nbsd.mt: Likewise.
8936 * config/rs6000/rs6000lynx.mh: Likewise.
8937 * config/s390/s390.mt: Likewise.
8938 * config/s390/s390x.mt: Likewise.
8939 * config/sparc/sparclynx.mh: Likewise.
8940 * config/sparc/sun4os4.mh: Likewise.
8941 * config/i386/x86-64linux.mt: Likewise.
8942 * config/sparc/linux.mh: Likewise.
8943
a85f51e7
DJ
89442002-02-14 Daniel Jacobowitz <drow@mvista.com>
8945
8946 * configure.tgt: Configure gdbserver only for known working
8947 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8948 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8949 SUBDIRS if it is configured. Update comment for ${nativefile}.
8950 * configure: Regenerated.
8951
65554fef
MS
89522002-02-13 Michael Snyder <msnyder@redhat.com>
8953
670a52db
MS
8954 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8955
6dbdc4a3
MS
8956 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8957 (default_gcore_mach): Just return 0, work around a problem in bfd.
8958 (default_gcore_target): OK to return NULL if exec_bfd is null.
8959 (make_mem_sec): Use a cast, avoid a warning.
8960
8961 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8962 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8963 sizeof (host pointer) != sizeof (target pointer)).
8964 (procfs_make_note_section): Avoid overflow in psargs string.
8965
aaa38bb5 8966 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8967 implementation return an error.
8968
89692002-02-13 Rodney Brown <rbrown64@csc.com.au>
8970
8971 * procfs.c (procfs_make_note_section): Provide a default definition
8972 (for alpha-dec-osf4.0f). Fix typos.
8973
1e4d76e7
EZ
89742002-02-13 Elena Zannoni <ezannoni@redhat.com>
8975
8976 * linux-proc.c: Add include of regcache.h.
8977 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8978
b6d1a1d5
AC
89792002-02-13 Andrew Cagney <ac131313@redhat.com>
8980
8981 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8982 * memattr.c (create_mem_region): Disallow useless empty region.
8983 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8984 non-overlapping.
b6d1a1d5 8985
6c6ea35e
MC
89862002-02-13 Michael Chastain <mec@shout.net>
8987
8988 * defs.h: Kill CONST_PTR.
8989 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8990 * c-lang.c (c_builtin_types): Likewise.
8991 * ch-lang.c (ch_builtin_types): Likewise.
8992 * f-lang.c (f_builtin_types): Likewise.
8993 * language.c (unknown_builtin_types): Likewise.
8994 * m2-lang.c (m2_builtin_types): Likewise.
8995 * p-lang.c (pascal_builtin_types): Likewise.
8996 * scm-lang.c (c_builtin_types): Likewise.
8997
3e0b0f48
KS
89982002-02-13 Keith Seitz <keiths@redhat.com>
8999
9000 * arm-tdep.h (arm_get_next_pc): Add declaration.
9001
67255d04
RE
90022002-02-13 Richard Earnshaw <rearnsha@arm.com>
9003
9004 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9005 with other related struct-returning functions.
9006 (arm_extract_struct_value_address): New function.
9007 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9008 initialize float_format, double_format and long_double_format as
9009 appropriate to the endianness of the target.
9010 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9011 (arm_use_struct_convention): Delete declaration.
9012 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9013
079777f6
KS
90142002-02-13 Keith Seitz <keiths@redhat.com>
9015
9016 * defs.h (core_addr_to_string_nz): New function.
9017
34588f23
MK
90182002-02-13 Mark Kettenis <kettenis@gnu.org>
9019
9020 Apply missing bits of 2002-01-15 patch.
9021 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9022 (fill_fpregset): Use i387_fill_fsave.
9023
49b563f9
KS
90242002-02-12 Keith Seitz <keiths@redhat.com>
9025
49b563f9
KS
9026 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9027 (core_addr_to_string_nz): New function.
9028
aeb98c60
RE
90292002-02-11 Richard Earnshaw <rearnsha@arm.com>
9030
9031 * arm-linux-nat.c: Really include arm-tdep.h.
9032 * config/arm/tm-linux.h (struct type, struct value): Declare.
9033
65554fef
MS
90342002-02-11 Michael Snyder <msnyder@redhat.com>
9035
9036 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9037 (gcore section): Ifdef for Solaris and Unixware only.
9038 (procfs_do_thread_registers): Unixware needs one lwpstatus
9039 per thread (not one prstatus or pstatus).
9040 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9041 not over all gdb threads. For unixware, call elfcore_write_pstatus
9042 once before iterating over threads.
9043
34e8f22d
RE
90442002-02-11 Richard Earnshaw <rearnsha@arm.com>
9045
9046 * arm-tdep.h: New file.
9047 * arm-tdep.c: Include arm-tdep.h.
9048 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9049 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9050 (arm_print_float_info, arm_register_type, convert_to_extended)
9051 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9052 (arm_extract_return_value, arm_register_name): Make static.
9053 (arm_software_single_step): Similarly. Fix types in declaration.
9054 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9055 (arm_store_return_value, arm_store_struct_return): New functions.
9056 (arm_gdbarch_init): Register the above functions. Also register
9057 call_dummy_start_offset, sizeof_call_dummy_words,
9058 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9059 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9060 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9061 prologue_cache.saved_regs here, rather than ...
9062 (_initialize_arm_tdep): ... here.
9063 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9064 declarations.
9065 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9066 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9067 (arm_print_float_info, arm_register_type, convert_to_extended)
9068 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9069 (arm_extract_return_value, arm_register_name): Delete declarations.
9070 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9071 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9072 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9073 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9074 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9075 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9076 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9077 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9078 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9079 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9080 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9081 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9082 interface.
9083 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9084 * remote-rdi.c remote-rdp.c: Likewise.
9085 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9086 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9087 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9088 definition.
9089
9090 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9091 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9092 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9093 from non-ARM_ prefixed definitions.
9094 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9095 all uses of above.
9096 * remote-rdi.c remote-rdp.c: Likewise.
9097 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9098
148754e5
RE
90992002-02-11 Richard Earnshaw <rearnsha@arm.com>
9100
9101 * arm-tdep.c (arm_frameless_function_invocation)
9102 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9103 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9104 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9105 (arm_pop_frame, arm_get_next_pc): Make static.
9106 (arm_gdbarch_init): Register above in gdbarch structure.
9107 (arm_read_fp): Renamed from arm_target_read_fp.
9108 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9109 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9110 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9111 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9112 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9113 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9114 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9115 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9116 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9117 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9118 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9119
434d2d4f
DJ
91202002-02-10 Daniel Jacobowitz <drow@mvista.com>
9121
9122 * symtab.c (compare_search_syms): New function.
9123 (sort_search_symbols): New function.
9124 (search_symbols): Sort symbols after searching rather than
9125 before.
9126
55241689
AC
91272002-02-10 Andrew Cagney <ac131313@redhat.com>
9128
9129 * NEWS: Linux -> GNU/Linux.
9130
028c194b
AC
91312002-02-10 Andrew Cagney <ac131313@redhat.com>
9132
9133 * gdbarch.sh: For for level one methods, disallow a definition
9134 when partially multi-arched. Add comments explaining rationale.
9135 * gdbarch.h: Re-generate.
9136
6acf50cd
AC
91372002-02-10 Andrew Cagney <ac131313@redhat.com>
9138
9139 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9140 multi-arch partial.
aaa38bb5 9141
50248794
AC
91422002-02-10 Andrew Cagney <ac131313@redhat.com>
9143
9144 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9145 field. Use diff -u.
9146 * gdbarch.c: Re-generate.
9147
c30e0066
AC
91482002-02-10 Andrew Cagney <ac131313@redhat.com>
9149
9b56c5f3 9150 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9151 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9152 partial.
9153
6e6d6484
AC
91542002-02-10 Andrew Cagney <ac131313@redhat.com>
9155
9156 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9157 multi-arch partial.
9158 (PUSH_ARGUMENTS): Switch to using predefault.
9159 * gdbarch.c: Regenerate.
9160
c203844d
AC
91612002-02-10 Andrew Cagney <ac131313@redhat.com>
9162
9163 * valops.c (PUSH_ARGUMENTS): Delete definition.
9164 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9165 partial. Default to default_push_arguments.
9166 * gdbarch.h, gdbarch.c: Regenerate.
9167
b5a2688f
AC
91682002-02-09 Andrew Cagney <ac131313@redhat.com>
9169
9170 * defs.h (throw_exception): Rename return_to_top_level. Update
9171 comments.
9172 * utils.c (error_stream, internal_verror, quit): Ditto.
9173 * top.c (throw_exception, catcher): Ditto.
9174 * sparclet-rom.c (sparclet_load): Ditto.
9175 * remote.c (interrupt_query, minitelnet): Ditto.
9176 * remote-sds.c (interrupt_query): Ditto.
9177 * remote-mips.c (mips_error, mips_kill): Ditto.
9178 * ocd.c (interrupt_query): Ditto.
9179 * monitor.c (monitor_interrupt_query): Ditto.
9180 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9181 * target.h: Update comment.
aaa38bb5 9182
b5a2688f 9183 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9184
2fa5c1e0
AC
91852002-02-09 Andrew Cagney <ac131313@redhat.com>
9186
9187 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9188 default_double_format.
9189 * gdbarch.h, gdbarch.c: Re-generate.
9190 * findvar.c (floatformat_unknown): Delete variable definition.
9191 * doublest.h (floatformat_unknown): Delete variable declaration.
9192
da966255
JB
91932002-02-09 Jim Blandy <jimb@redhat.com>
9194
9195 * stabsread.c (read_type): Add code to parse Sun's syntax for
9196 prototyped function types.
9197
123a4891
AC
91982002-02-09 Andrew Cagney <ac131313@redhat.com>
9199
9200 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9201 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9202
fb39c8f3
PS
92032002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9204
9205 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9206 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9207 now _initialize_xcoffsolib gets called again and overrides the
9208 commands from solib.c in a native configuration.
9209
0b87a11d
MK
92102002-02-09 Mark Kettenis <kettenis@gnu.org>
9211
9212 * doublest.c (store_typed_floating): Don't try to return a value.
9213 Fixes PR gdb/290.
9214
bdc2fc72
JB
92152002-02-08 Jim Blandy <jimb@redhat.com>
9216
9217 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9218 is prototyped and has no arguments, print its argument list as
9219 `(void)'.
9220
da69bbcf
CD
92212002-02-08 Chris Demetriou <cgd@broadcom.com>
9222
9223 * MAINTAINERS (write-after-approval): Add myself.
9224 (paper-trail): I've escaped!
aaa38bb5 9225
b69571f5
CF
92262002-02-08 Christopher Faylor <cgf@redhat.com>
9227
9228 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9229 changes.
9230 (_initialize_check_for_gdb_ini): Ditto.
9231
f6871398
MH
92322002-02-08 Martin M. Hunt <hunt@redhat.com>
9233
9234 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9235 xaprintf -> xasprintf.
9236
4e52d31c
PM
92372002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9238
9239 * win32-nat.c: Remove use of printf and sprintf functions.
9240
39bbf761
RE
92412002-02-08 Richard Earnshaw <rearnsha@arm.com>
9242
9243 * arm-tdep.c (arm_frame_chain_valid): Make static.
9244 (arm_push_arguments): Likewise.
9245 (arm_gdbarch_init): New function.
9246 (_initialize_arm_tdep): Call it.
9247 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9248 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9249 (FRAME_CHAIN_VALID): Delete.
9250 (arm_frame_chain_valid): Delete declaration.
9251 (PUSH_ARGUMENTS): Delete.
9252 (arm_push_arguments): Delete declaration.
9253 (CALL_DUMMY_P): Delete.
9254
9c9532c9
CV
92552002-02-08 Andrew Cagney <ac131313@redhat.com>
9256 Corinna Vinschen <vinschen@redhat.com>
9257
9258 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9259 on builtin float types.
9260
4e8f7a8b
DJ
92612002-02-08 Daniel Jacobowitz <drow@mvista.com>
9262
9263 * utils.c: Include <curses.h> before "bfd.h".
9264 * tui/tui-hooks.c: Likewise.
9265 * tui/tui.c: Likewise.
9266 * tui/tuiCommand.c: Likewise.
9267 * tui/tuiData.c: Likewise.
9268 * tui/tuiDataWin.c: Likewise.
9269 * tui/tuiDisassem.c: Likewise.
9270 * tui/tuiGeneralWin.c: Likewise.
9271 * tui/tuiIO.c: Likewise.
9272 * tui/tuiLayout.c: Likewise.
9273 * tui/tuiRegs.c: Likewise.
9274 * tui/tuiSource.c: Likewise.
9275 * tui/tuiSourceWin.c: Likewise.
9276 * tui/tuiStack.c: Likewise.
9277 * tui/tuiWin.c: Likewise.
9278
cd4bffcf
EZ
92792002-02-07 Elena Zannoni <ezannoni@redhat.com>
9280
9281 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9282 to include space for pseudoregs as well. Update loops accordingly.
9283 (sh_fp_frame_init_saved_regs): Ditto.
9284 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9285
26806ce2
AC
92862002-02-07 Andrew Cagney <ac131313@redhat.com>
9287
9288 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9289 Add Richard Earnshaw to Arm maintainers.
9290
97fdab62
AC
92912002-02-07 Andrew Cagney <ac131313@redhat.com>
9292
a6b98203
AC
9293 * defs.h (warning_begin): Delete declaration.
9294
97fdab62
AC
9295 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9296 Delete macro.
9297
78b29b40
MS
92982002-02-07 Michael Snyder <msnyder@redhat.com>
9299
aaa38bb5 9300 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9301 Logic bug, remove misplaced else.
9302
d8849953
KD
93032002-02-07 Klee Dienes <klee@apple.com>
9304
9305 * fork-inferior.c (fork_inferior): Add '!' to the list of
9306 characters that need to be quoted when building a string for the
9307 shell. Quote '!' specifically with a backslash, since CSH chokes
9308 when trying to evaluate "str!str".
aaa38bb5 9309
095778a0
NC
93102002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9311
9312 * rdi-share/host.h: Only provide a typedef for bool if it is not
9313 defined.
9314
1900040c
MS
93152002-02-04 Michael Snyder <msnyder@redhat.com>
9316
9317 * breakpoint.h (enum bptype): Add new overlay event bp type.
9318 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9319
1900040c
MS
9320 * breakpoint.c (create_internal_breakpoint): New function.
9321 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9322 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9323 (create_thread_event_breakpoint): Ditto.
9324 (create_solib_event_breakpoint): Ditto.
9325 (create_overlay_event_breakpoint): New function.
9326 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9327 (update_breakpoints_after_exec): Delete and re-initialize
9328 overlay event breakpoints after an exec. Add FIXME comment
9329 about longjmp breakpoint.
9330 (print_it_typical): Ignore overlay event breakpoints.
9331 (print_one_breakpoint): Ditto.
9332 (mention): Ditto.
9333 (bpstat_what): Do not stop for overlay event breakpoints.
9334 (delete_breakpoint): Don't delete overlay event breakpoints.
9335 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9336 (breakpoint_re_set): Re-create overlay event breakpoint.
9337
9338 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9339 (overlay_manual_command): Disable overlay breakpoints.
9340 (overlay_off_command): Disable overlay breakpoints.
9341
082fc60d
RE
93422002-02-06 Richard Earnshaw <rearnsha@arm.com>
9343
9344 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9345 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9346 to here from config/tm-arm.h.
9347 (coff_sym_is_thumb): Make static.
9348 (arm_elf_make_msymbol_special): New function.
9349 (arm_coff_make_msymbol_special): New function.
9350 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9351 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9352 (coff_sym_is_thumb): Delete declaration.
9353 (arm_elf_make_msymbol_special): Declare.
9354 (arm_coff_make_msymbol_special): Declare.
9355 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9356 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9357
039c5766
RE
93582002-02-06 Richard Earnshaw <rearnsha@arm.com>
9359
9360 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9361
93622002-02-06 Richard Earnshaw <rearnsha@arm.com>
9363
9364 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9365 * gdbarch.c gdbarch.h: Regenerate.
9366 * arch-utils.c (default_print_float_info): New function.
9367 * arch-utils.h (default_print_float_info): Prototype it.
9368 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9369 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9370 (PRINT_FLOAT_INFO): Document it.
9371
9372 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9373 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9374 (PRINT_FLOAT_INFO): Define.
9375
58fa08f0
PM
93762002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9377
aaa38bb5 9378 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9379 Add typecast to sprintf argument to suppress a warning.
9380
7393af7c
PM
93812002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9382
58fa08f0 9383 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9384 to allow easier handling of pass state.
9385 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9386 that gives exception name and address.
9387 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9388 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9389 exceptions added.
aaa38bb5
AJ
9390 (child_continue): Correctly report continue_status.
9391 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9392 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9393 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9394 the exception should be passed to debuggee or not.
9395
6af4589c
MS
93962002-02-05 Michael Snyder <msnyder@redhat.com>
9397
9398 * regcache.c (fetch_register): Call target_fetch_register
9399 only if we don't call FETCH_PSEUDO_REGISTER.
9400 (store_register): Call target_store_register only if we
9401 don't call STORE_PSEUDO_REGISTER.
9402
a2cf933a
EZ
94032002-02-05 Elena Zannoni <ezannoni@redhat.com>
9404
9405 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9406 ELF_MAKE_MSYMBOL_SPECIAL.
9407 * gdbarch.c, gdbarch.h: Regenerate.
9408 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9409 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9410 * elfread.c (elf_symtab_read): Compile use of
9411 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9412 multiarched.
9413 * coffread.c (coff_symtab_read): Ditto, for
9414 COFF_MAKE_MSYMBOL_SPECIAL.
9415
6bb7be43
JB
94162002-02-05 Jim Blandy <jimb@redhat.com>
9417
9418 * solib-svr4.c (svr4_truncate_ptr): New function.
9419 (svr4_relocate_section_addresses): Do the address arithmetic with
9420 the appropriate truncation for target addresses, even when
9421 CORE_ADDR is larger than a target address.
9422
e18651ec
DJ
94232002-02-05 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9426 to (int *).
9427
6b2725be
DJ
94282002-02-05 Daniel Jacobowitz <drow@mvista.com>
9429
9430 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9431 code.
9432
fca9e603
DJ
94332002-02-05 Daniel Jacobowitz <drow@mvista.com>
9434
9435 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9436
6c537a52
DJ
94372002-02-05 Daniel Jacobowitz <drow@mvista.com>
9438
9439 * gdbserver/linux-low.c: Remove unused include files.
9440
d844cde6
DJ
94412002-02-05 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9444 (read_inferior_memory): Use it.
9445 (write_inferior_memory): Likewise.
9446
d07c63e7
DJ
94472002-02-05 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9450 grubbing through sys_errlist.
9451
da6d8c04
DJ
94522002-02-05 Daniel Jacobowitz <drow@mvista.com>
9453
9454 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9455
5b421780
PM
94562002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9457 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9458
9f60d481
AC
94592002-02-04 Andrew Cagney <ac131313@redhat.com>
9460
9461 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9462 (do_sfunc, set_cmd_sfunc): New functions.
9463
9464 * command.h (struct cmd_list_element): Add field func.
9465 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9466 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9467 * cli/cli-decode.h: Ditto.
9468
9469 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9470 (help_all, help_cmd_list): Ditto.
9471 (find_cmd, complete_on_cmdlist): Ditto.
9472 * top.c (execute_command): Ditto.
9473
9474 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9475 function.sfunc.
9476
9477 * infcmd.c (notice_args_read): Fix function signature.
9478
9479 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9480 * cli/cli-decode.c (add_set_cmd): Ditto.
9481 * utils.c (initialize_utils): Ditto.
9482 * maint.c (_initialize_maint_cmds): Ditto.
9483 * infrun.c (_initialize_infrun): Ditto.
9484 * demangle.c (_initialize_demangler): Ditto.
9485 * remote.c (add_packet_config_cmd): Ditto.
9486 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9487 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9488 * proc-api.c (_initialize_proc_api): Ditto.
9489 * kod.c (_initialize_kod): Ditto.
9490 * valprint.c (_initialize_valprint): Ditto.
9491 * top.c (init_main): Ditto.
9492 * infcmd.c (_initialize_infcmd): Ditto.
9493 * corefile.c (_initialize_core): Ditto.
9494 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9495 * arch-utils.c (initialize_current_architecture): Ditto.
9496 (_initialize_gdbarch_utils): Ditto.
9497 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9498
9499 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9500 * wince.c (_initialize_inftarg): Ditto.
9501 * symfile.c (_initialize_symfile): Ditto.
9502 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9503 * language.c (_initialize_language): Ditto.
9504 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9505
f9ba0717
MS
95062002-02-04 Michael Snyder <msnyder@redhat.com>
9507
9508 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9509
0c74b2a7
DJ
95102002-02-04 Daniel Jacobowitz <drow@mvista.com>
9511
9512 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9513 Add rules for building the register data files.
9514
c638789f
DJ
95152002-02-04 Daniel Jacobowitz <drow@mvista.com>
9516
9517 * regformats/regdat.sh: Add braces to the definition of
9518 expedite_regs_${arch}.
9519
db253027
DJ
95202002-02-04 Daniel Jacobowitz <drow@mvista.com>
9521
9522 * regformats/regdef.h (struct reg): Add comment describing the
9523 requirements for offset and size fields.
9524
206be19c
AS
95252002-02-04 Andreas Schwab <schwab@suse.de>
9526
9527 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9528 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9529
181c1381
RE
95302002-02-04 Richard Earnshaw <rearnsha@arm.com>
9531
9532 * gdbarch.sh (copyright): Update years in generated header.
9533 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9534 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9535 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9536 * dbxread.c: Likewise.
9537 * dwarfread.c: Likewise.
9538 * elfread.c: Likewise.
9539 * somread.c: Likewise.
9540
9541 * arm-tdep.c (arm_smash_text_address): New function.
9542 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9543
fa4ba8da
PM
95442002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9545
9546 Add support for hardware watchpoints on win32 native.
aaa38bb5 9547 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9548 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9549 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9550 of debug registers.
9551 (debug_registers_changed): New variable. Reflects when debug registers
9552 are changed and need to be written to inferior.
aaa38bb5 9553 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9554 was set, used when new threads are created.
9555 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9556 i386-nat code.
9557 (thread_rec): Set dr array if id is the thread of current_event .
9558 (child_continue, child_resume): Change the debug registers for all
9559 threads if debug_registers_changed.
9560 (child_add_thread): Change the debug registers if debug_registers_used.
9561 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9562 Link nm.h to new nm-cygwin.h file.
9563 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9564 of hardware registers.
9565
a73c86fb
AC
95662002-02-03 Andrew Cagney <ac131313@redhat.com>
9567
9568 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9569 Restore behavour broken by 2002-01-20 Andrew Cagney
9570 <ac131313@redhat.com> IEEE_FLOAT removal.
9571
acf5ed49
DJ
95722002-02-03 Daniel Jacobowitz <drow@mvista.com>
9573
9574 * c-valprint.c (c_val_print): Pass a proper valaddr to
9575 cp_print_class_method.
9576 * valops.c (search_struct_method): If there is only one method
9577 and args is NULL, return that method.
9578
493d28d5
DJ
95792002-02-03 Daniel Jacobowitz <drow@mvista.com>
9580
9581 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9582 accessing tag_name directly.
9583
7495dfdb
DJ
95842002-02-03 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9587 of accessing tag_name directly.
9588
dd6bda65
DJ
95892002-02-03 Daniel Jacobowitz <drow@mvista.com>
9590
9591 PR gdb/280
9592 * gdbtypes.c (replace_type): New function.
9593 * gdbtypes.h (replace_type): Add prototype.
9594 * stabsread.c (read_type): Use replace_type.
9595
88fe217c
RE
95962002-02-03 Richard Earnshaw <rearnsha@arm.com>
9597
9598 * Makefile.in (memattr.o): Add missing dependencies rule.
9599
e5d66720
PS
96002002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9601
9602 * breakpoint.c (break_at_finish_command): Really export.
9603 (break_at_finish_at_depth_command): Ditto.
9604 (tbreak_at_finish_command): Ditto.
9605 * hppa-tdep.c: Include completer.h.
9606 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9607 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9608
fffee0be
AC
96092002-02-01 Andrew Cagney <ac131313@redhat.com>
9610
9611 * utils.c (do_write): New function.
9612 (error_stream): Rewrite combining the code from error_begin and
9613 verror.
9614 (verror): Rewrite using error_stream.
9615 (error_begin): Delete function.
9616
255e7dbf
AC
96172002-02-01 Andrew Cagney <ac131313@redhat.com>
9618
9619 * utils.c (error_begin): Make static.
9620 * defs.h (error_begin): Delete declaration.
9621
9622 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9623 (decode_line_1): Use cplusplus_error instead of error_begin,
9624 cplusplus_hint and return_to_top_level.
9625 * coffread.c (coff_symfile_read): Use error instead of error_begin
9626 and return_to_top_level.
9627 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9628
ddfe3c15
AC
96292002-02-01 Andrew Cagney <ac131313@redhat.com>
9630
9631 * language.h (type_error, range_error): Make string parameter
9632 constant.
9633 * language.c (warning_pre_print): Delete extern declaration.
9634 * dwarfread.c (warning_pre_print): Ditto.
9635 * language.c (type_error, range_error): Rewrite to use verror and
9636 vwarning instead of warning_begin.
9637
03ac34d5
MS
96382002-02-01 Michael Snyder <msnyder@redhat.com>
9639
261c4ca2
MS
9640 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9641 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9642
e00d1dc8
AC
96432002-02-01 Andrew Cagney <ac131313@redhat.com>
9644
9645 * command.h (NO_FUNCTION): Delete macro.
9646 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9647 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9648 * tracepoint.c (_initialize_tracepoint): Ditto.
9649 * cli/cli-decode.c (add_set_cmd): Ditto.
9650 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9651
76b79d6e
DJ
96522002-02-01 Daniel Jacobowitz <drow@mvista.com>
9653
9654 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9655 Update ``this'' pointer when calling virtual functions.
9656
799f9e91
MS
96572002-02-01 Michael Snyder <msnyder@redhat.com>
9658
c7bd442c 9659 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9660 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9661
3cf384d4
DJ
96622002-02-01 Daniel Jacobowitz <drow@mvista.com>
9663
9664 * regformats/reg-arm.dat: New file.
9665 * regformats/reg-i386.dat: New file.
9666 * regformats/reg-ia64.dat: New file.
9667 * regformats/reg-m68k.dat: New file.
9668 * regformats/reg-mips.dat: New file.
9669 * regformats/reg-ppc.dat: New file.
9670 * regformats/reg-sh.dat: New file.
9671 * regformats/regdef.h: New file.
9672 * regformats/regdat.sh: New file.
9673
0defa245
RE
96742002-02-01 Richard Earnshaw <reanrsha@arm.com>
9675
9676 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9677 (arm_frame_args_address, arm_frame_locals_address): New functions.
9678 (arm_frame_num_args): New function.
9679 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9680 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9681 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9682
405f26e6
MS
96832002-01-31 Michael Snyder <msnyder@redhat.com>
9684
502fd408
MS
9685 * breakpoint.c (break_at_finish_command): Export.
9686 (break_at_finish_at_depth_command): Export.
9687 (tbreak_at_finish_command): Export.
9688 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9689 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9690 "tbreak" commands, which are HPPA specific.
9691
7d35e135
MS
9692 * printcmd.c (disassemble_command): Remove an ancient
9693 artifact of an old merge.
9694
aaa38bb5 9695 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9696 Define enum constant values for overlay mode.
9697 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9698 (overlay_is_mapped, overlay_auto_command,
9699 overlay_manual_command): Ditto.
d874f1e2 9700
aaa38bb5
AJ
9701 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9702 breakpoint_here_p, breakpoint_inserted_here_p,
9703 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9704 describe_other_breakpoints, check_duplicates, clear_command):
9705 Coding standard fixes.
9706
8add0441 9707 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9708 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9709 code: check bfd SEC_READONLY flag for section.
9710
e351066e
AC
97112002-01-31 Andrew Cagney <ac131313@redhat.com>
9712
7d35e135 9713 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9714
8a48e967
DJ
97152002-01-30 Daniel Jacobowitz <drow@mvista.com>
9716
9717 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9718 data symbols, since we search based on textlow and texthigh.
9719 (find_pc_sect_symtab): Likewise.
9720
f5a96129
AC
97212002-01-30 Andrew Cagney <ac131313@redhat.com>
9722
9723 * defs.h (vwarning): Declare.
f5a96129
AC
9724 * utils.c (vwarning): New function.
9725 (warning): Call vwarning.
9726 (warning_begin): Delete function.
9727
9728 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9729 the warning message.
9730 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9731 warning_begin.
9732
cefd4ef5
MS
97332002-01-30 Michael Snyder <msnyder@redhat.com>
9734
1a703748
MS
9735 * NEWS: Mention "set trust-readonly-sections" command.
9736 Mention generate-core-file command.
cefd4ef5 9737
3a11626d
MS
97382002-01-15 Michael Snyder <msnyder@redhat.com>
9739
9740 * target.c: New command, "set trust-readonly-sections on".
9741 (do_xfer_memory): Honor the suggestion to trust readonly sections
9742 by reading them from the object file instead of from the target.
9743 (initialize_targets): Register command "set trust-readonly-sections".
9744
d1c7e53b
AC
97452002-01-29 Andrew Cagney <ac131313@redhat.com>
9746
9747 * parse.c (target_map_name_to_register): Simplify, search regs and
9748 pseudo-regs using a single loop.
9749
e2c9a72c
AC
97502002-01-30 Andrew Cagney <ac131313@redhat.com>
9751
9752 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9753
69824b4e
MK
97542002-01-15 Rodney Brown <rbrown64@csc.com.au>
9755
9756 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9757 * config/i386/i386v42mp.mh: Add i387-nat.o .
9758 * i386v4-nat.c: Include i387-nat.h.
9759 (supply_fpregset): Use i387_supply_fsave.
9760 (fill_fpregset): Use i387_fill_fsave.
9761
6eb69eab
RE
97622002-01-30 Richard Earnshaw <rearnsha@arm.com>
9763
9764 * arm-tdep.c (arm_call_dummy_words): Define.
9765 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9766 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9767 (CALL_DUMMY_WORDS): Define.
9768 (arm_call_dummy_words): Declare.
9769 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9770 (arm_linux_call_dummy_words): Declare.
9771
9852326a
AS
97722002-01-30 Andreas Schwab <schwab@suse.de>
9773
9774 * m68klinux-nat.c: Fix last change to use regcache_collect
9775 instead of referencing registers[] directly.
9776
977a3030
AC
97772002-01-29 Andrew Cagney <ac131313@redhat.com>
9778
9779 * parse.c (target_map_name_to_register): Delete code wrapped in
9780 #ifdef REGISTER_NAME_ALIAS_HOOK.
9781
2076c72b
MS
97822002-01-28 Michael Snyder <msnyder@redhat.com>
9783
9784 * regcache.c (legacy_read_register_gen): Need to be able to
9785 read pseudo-register as well as real register.
9786 (legacy_write_register_gen): Ditto.
9787
8fcc723b
AC
97882002-01-28 Andrew Cagney <ac131313@redhat.com>
9789
9790 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9791 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9792 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9793 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9794 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9795 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9796 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9797 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9798 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9799 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9800 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9801 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9802 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9803 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9804 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9805 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9806 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9807 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9808 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9809 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9810
afe64c1a
AC
98112002-01-28 Andrew Cagney <ac131313@redhat.com>
9812
9813 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9814 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9815 (initialize_current_architecture): Update target_byte_order using
9816 information from BFD.
aaa38bb5 9817 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9818 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9819
75bc7ddf
AC
98202002-01-28 Andrew Cagney <ac131313@redhat.com>
9821
9822 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9823 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9824
9825 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9826 #ifdef INVALID_FLOAT.
9827 * infcmd.c (do_registers_info): Ditto.
9828 * values.c (unpack_double): Ditto. Add comment.
9829
9830 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9831 already commented out.
9832
0280a90a
AS
98332002-01-26 Andreas Schwab <schwab@suse.de>
9834
9835 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9836 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9837 registers and add support for PTRACE_GETREGS.
9838
7072a954
AC
98392002-01-24 Andrew Cagney <ac131313@redhat.com>
9840
9841 GDB 5.1.1 released from 5.1 branch.
9842 * NEWS: Add 5.1.1 news.
9843 * README: Sync with 5.1 branch.
9844
86f902e0
FF
98452002-01-23 Fred Fish <fnf@redhat.com>
9846
9847 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9848 stabstring on initial malloc. Reallocing will copy it for us,
9849 if necessary.
9850
8af51c36
EZ
98512002-01-23 Elena Zannoni <ezannoni@redhat.com>
9852
aaa38bb5 9853 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9854 (HFILES_NO_SRCDIR): Remove hpread.h.
9855 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9856 (hpread.o): Update dependencies.
9857 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9858
9859 * hp-psymtab-read.c: Remove file.
9860 * hp-symtab-read.c: Remove file.
9861 * hpread.h: Remove file.
9862
9863 * hpread.c: Merge all contents of hp-psymtab-read.c,
9864 hp-symtab-read.c and hpread.h into this file, as it was prior to
9865 January 1999.
9866
9867 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9868 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9869 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9870 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9871
dc5cfeb6
EZ
98722002-01-23 Elena Zannoni <ezannoni@redhat.com>
9873
9874 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9875 fill_gregset): Call gdbarch_tdep() just once, assign result to
9876 variable and use that, instead of calling the function several
9877 times.
9878
ea87b71b
AO
98792002-01-24 Alexandre Oliva <aoliva@redhat.com>
9880
9881 * configure.host: Accept sparcv9 as alias for sparc64.
9882 * configure.tgt: Likewise.
9883
13fc0c2f
KB
98842002-01-22 Kevin Buettner <kevinb@redhat.com>
9885
9886 * solib-aix5.c (build_so_list_from_mapfile)
9887 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9888 arguments is not reversed.
9889 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9890 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9891
7bd872fe
EZ
98922002-01-22 Elena Zannoni <ezannoni@redhat.com>
9893
9894 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9895 modified version of obsolete sh_fetch_pseudo_register.
9896 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9897 (sh4_register_read): New function.
9898 (sh_pseudo_register_write): New function. Renamed and modified
9899 version of obsolete sh_store_pseudo_register.
9900 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9901 (sh4_register_write): New function.
9902 (sh_gdbarch_init): Remove setting of gdbarch function
9903 fetch_pseudo_register and store_pseudo_register. Remove setting of
9904 register_convert_to_raw, register_convert_to_virtual,
9905 register_convertible.
9906 (sh_sh4_register_convertible): Delete. No longer needed. All is
9907 taken care by architecture specific functions
9908 register_read/register_write.
9909 (sh_sh4_register_convert_to_virtual): Make static.
9910 (sh_sh4_register_convert_to_raw): Ditto.
9911
069e84fd
AC
99122002-01-22 Andrew Cagney <ac131313@redhat.com>
9913
9914 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9915 (floatformat_is_nan, floatformat_mantissa): Ditto.
9916
9917 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9918 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9919 builtin_type_ieee_double_little,
9920 builtin_type_ieee_double_littlebyte_bigword,
9921 builtin_type_m68881_ext, builtin_type_i960_ext,
9922 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9923 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9924 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9925 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9926
211a4f69
CV
99272002-01-22 Corinna Vinschen <vinschen@redhat.com>
9928
9929 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9930 parameter. Set frameless flag if it exists and depended of
9931 whether the scanned function is frameless or not.
9932 (xstormy16_skip_prologue): If function is frameless, return
9933 result of xstormy16_scan_prologue().
9934 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9935 call.
9936
f81353e4
EZ
99372002-01-21 Elena Zannoni <ezannoni@redhat.com>
9938
9939 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9940 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9941 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9942 sh_sh4_register_byte, sh_sh4_register_raw_size,
9943 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9944 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9945 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9946 sh_store_pseudo_register, sh_do_pseudo_register): Call
9947 gdbarch_tdep() just once, assign result to variable and use that,
9948 instead of calling the function several times.
9949
63c73a17
MK
99502002-01-20 Mark Kettenis <kettenis@gnu.org>
9951
9952 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9953 macros instead of LAST_FPU_CTRL_REGNUM.
9954 (store_register): Likewise.
9955
39ad761d
JB
99562002-01-21 Jim Blandy <jimb@redhat.com>
9957
9958 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9959 is up-to-date before running the program, not just when a program
9960 exits.
9961
3d74b771
FF
99622002-01-21 Fred Fish <fnf@redhat.com>
9963
9964 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9965 when we have found all instructions we are looking for.
9966
966fbf70
RE
99672002-01-21 Richard Earnshaw <rearnsha@arm.com>
9968
9969 * arm-tdep.c (arm_register_name): New function.
9970 (arm_registers_names): Make static.
9971 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9972 (arm_register_name): Declare.
9973 (REGISTER_NAME): Use it.
9974
c3b4394c
RE
99752002-01-21 Richard Earnshaw <rearnsha@arm.com>
9976 Kevin Buettner <kevinb@redhat.com>
9977
9978 Convert arm targets to new FRAME interface.
9979 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9980 (arm_frame_find_save_regs): Delete.
9981 (arm_frame_init_saved_regs): New.
9982 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9983 Allocate extra_info as required. Convert all uses of fsr.regs
9984 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9985 to use extra_info.
9986 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9987 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9988 (check_prologue_cache, save_prologue_cache): Likewise.
9989 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9990 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9991 (FRAME_FIND_SAVED_REGS): Delete.
9992 (arm_frame_find_saved_regs): Delete prototype.
9993 (arm_frame_init_saved_regs): New prototype.
9994 (FRAME_INIT_SAVED_REGS): Define.
9995
61d99182
AC
99962002-01-20 Andrew Cagney <ac131313@redhat.com>
9997
9998 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9999
6aaea291
AC
100002002-01-20 Andrew Cagney <ac131313@redhat.com>
10001
10002 From Jeff Law <law@redhat.com>:
10003 * infttrace.c: Include <sys/pstat.h>.
10004 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10005 exec file if the ttrace equivalent fails.
10006
15f698d2
AC
100072002-01-20 Andrew Cagney <ac131313@redhat.com>
10008
10009 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10010 (closeLogFile): Ditto.
10011
f86ddd7c
MC
100122002-01-20 Michael Chastain <mec@shout.net>
10013
10014 * top.c (print_gdb_version): Bump copyright year to 2002.
10015
904507ce
AC
100162002-01-20 Andrew Cagney <ac131313@redhat.com>
10017
10018 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10019 Zannoni and Eli Zaretskii.
10020
d7f0b9ce
DJ
100212002-01-20 Daniel Jacobowitz <drow@mvista.com>
10022
10023 * buildsym.c: Update copyright years.
10024 * c-typeprint.c: Likewise.
10025 * dwarf2read.c: Likewise.
10026 * f-typeprint.c: Likewise.
10027 * gdbtypes.c: Likewise.
10028 * gdbtypes.h: Likewise.
10029 * hp-symtab-read.c: Likewise.
10030 * hpread.c: Likewise.
10031 * mdebugread.c: Likewise.
10032 * p-typeprint.c: Likewise.
10033
3fd3d7d2
AC
100342002-01-20 Andrew Cagney <ac131313@redhat.com>
10035
10036 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10037 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10038 byte-order selectable.
10039 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10040 * arch-utils.c: Ditto.
10041 (set_endian): Ditto.
10042 (set_endian_from_file): Ditto.
10043 * gdbserver/low-sim.c (create_inferior): Ditto.
10044 * gdbarch.sh: Ditto.
10045 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10046 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10047 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10048 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10049 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10050 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10051 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10052 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10053 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10054 macro definition.
10055 * config/mips/tm-wince.h: Remove #undef of macro
10056 TARGET_BYTE_ORDER_SELECTABLE.
10057 * config/sh/tm-wince.h: Ditto.
10058
b02dede2
DJ
100592002-01-20 Daniel Jacobowitz <drow@mvista.com>
10060
10061 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10062 member function fields. Add accessor macro
10063 TYPE_FN_FIELD_ARTIFICIAL.
10064 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10065 * c-typeprint.c (c_type_print_base): Skip artificial member
10066 functions.
10067
c3643761
DJ
100682002-01-20 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * f-typeprint.c: Delete unused function f_type_print_args.
10071 * p-typeprint.c: Delete unused function pascal_type_print_args.
10072
8176bb6d
DJ
100732002-01-20 Daniel Jacobowitz <drow@mvista.com>
10074
10075 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10076 comment. Add ``artificial'' to ``union field_location''.
10077
10078 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10079
10080 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10081 * mdebugread.c (parse_symbol): Likewise.
10082 * stabsread.c (define_symbol): Likewise.
10083 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10084 initializing TYPE_FIELD_BITPOS to n (obsolete).
10085 (hpread_doc_function_type): Likewise.
10086 * hpread.c (hpread_function_type): Likewise.
10087
7fd60527
AC
100882002-01-20 Andrew Cagney <ac131313@redhat.com>
10089
10090 * configure.in (host_makefile_frag): Only require a host makefile
10091 fragment when a native build.
10092 * configure: Re-generate.
10093
c2f05ac9
AC
100942002-01-20 Andrew Cagney <ac131313@redhat.com>
10095
10096 * doublest.h (floatformat_from_type): Declare.
10097 * doublest.c (floatformat_from_type): New function.
10098 (convert_typed_floating): Use.
10099
10100 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10101 call to function floatformat_from_type.
10102
10103 * gdbarch.sh (IEEE_FLOAT): Delete.
10104 * gdbarch.h, gdbarch.c: Re-generate.
10105 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10106 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10107 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10108 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10109 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10110 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10111 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10112 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10113 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10114 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10115 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10116 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10117
10118 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10119 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10120 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10121 * sh-tdep.c (sh_gdbarch_init): Ditto.
10122 * mips-tdep.c (mips_gdbarch_init): Ditto.
10123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10124 * cris-tdep.c (cris_gdbarch_init): Ditto.
10125
abf22e64
AJ
101262002-01-20 Jiri Smid <smid@suse.cz>
10127
10128 * configure.host, configure.tgt: Support x86-64.
10129 * NEWS: Note new target x86-64.
10130
b7c4cbf8
AJ
10131 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10132 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10133 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10134 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10135 x86-64-linux-nat.o): Fix dependencies.
10136
82600034
AC
101372002-01-19 Andrew Cagney <ac131313@redhat.com>
10138
10139 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10140 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10141 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10142 * config/sparc/xm-sun4os4.h: Delete file.
10143 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10144
bbe5c628
AC
101452002-01-19 Andrew Cagney <ac131313@redhat.com>
10146
10147 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10148 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10149 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10150 * config/i386/i386lynx.mh (XM_FILE): Delete.
10151 * config/rs6000/xm-rs6000ly.h: Delete file.
10152 * config/sparc/xm-sparclynx.h: Delete file.
10153 * config/m68k/xm-m68klynx.h: Delete file.
10154 * config/i386/xm-i386lynx.h: Delete file.
10155 * config/xm-lynx.h: Delete file.
10156 * config/djgpp/fnchange.lst: Update.
10157
f8453e34
JT
101582002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10159
10160 * alpha-tdep.c (alpha_register_byte): New function.
10161 (alpha_register_raw_size): Ditto.
10162 (alpha_register_virtual_size): Ditto.
10163 (alpha_skip_prologue_internal): Renamed from
10164 alpha_skip_prologue.
10165 (alpha_skip_prologue): New version that calls
10166 alpha_skip_prologue_internal.
10167 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10168 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10169 second argument from alpha_skip_prologue.
10170 (REGISTER_BYTE): Use alpha_register_byte.
10171 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10172 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10173 (FRAMELESS_FUNCTION_INVOCATION): Use
10174 generic_frameless_function_invocation_not.
10175 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10176 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10177
52d9e613
AC
101782002-01-19 Andrew Cagney <ac131313@redhat.com>
10179
10180 * config/mips/xm-news-mips.h: Delete file.
10181 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10182
10183 * config/m88k/xm-m88k.h: Delete file.
10184 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10185 * config/m88k/xm-delta88v4.h: Ditto.
10186 * config/m88k/xm-delta88.h: Ditto.
10187
10188 * config/alpha/xm-fbsd.h: Delete file.
10189 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10190
10191 * config/sparc/xm-sparc.h: Delete file.
10192 * Makefile.in (xm-sun4os4.h): Delete dependency.
10193 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10194 * config/sparc/xm-sun4os4.h: Ditto.
10195 * config/sparc/xm-linux.h: Ditto.
10196
10197 * config/i386/xm-windows.h: Delete file.
10198
2d1b2124
AC
101992002-01-19 Andrew Cagney <ac131313@redhat.com>
10200
10201 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10202 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10203
ee1f65f0
JT
102042002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10205
10206 * alpha-tdep.c (alpha_call_dummy_words): New.
10207 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10208 (CALL_DUMMY_P): Define.
10209 (CALL_DUMMY_WORDS): Define.
10210 (SIZEOF_CALL_DUMMY_WORDS): Define.
10211
98081e55
PB
102122002-01-19 Per Bothner <per@bothner.com>
10213
10214 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10215 isn't NULL, which can happen with some gcj-3.x-produced code.
10216
0d056799
JT
102172002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10218
10219 * alpha-tdep.c (alpha_register_virtual_type): New function.
10220 (alpha_init_frame_pc_first): Ditto.
10221 (alpha_fix_call_dummy): Ditto.
10222 (alpha_store_struct_return): Ditto.
10223 (alpha_extract_struct_value_address): Ditto.
10224 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10225 alpha_register_virtual_type.
10226 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10227 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10228 alpha_extract_struct_value_address.
10229 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10230 (INIT_FRAME_PC): Use init_frame_pc_noop.
10231 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10232
4604bcad
MK
102332002-01-19 Mark Kettenis <kettenis@gnu.org>
10234
10235 * i386gnu-nat.c: Include "i386-tdep.h".
10236 (fetch_fpregs): Simplify code dealing with uninitialized floating
10237 point states such that it doesn't require FP7_REGNUM.
10238
140f9984
JT
102392002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10240
abf22e64
AJ
10241 * alpha-tdep.c (frame_extra_info): New.
10242 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10243 frame->extra_info.
10244 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10245 (alpha_frame_saved_pc): Use frame->extra_info.
10246 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10247 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10248 (init_extra_frame_info): Rename to...
10249 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10250 (alpha_print_extra_frame_info): New function.
140f9984
JT
10251 (alpha_frame_locals_address): Ditto.
10252 (alpha_frame_args_address): Ditto.
abf22e64 10253 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10254 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10255 alpha_frame_args_address.
abf22e64 10256 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10257 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10258 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10259 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10260 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10261 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10262
d734c450
JT
102632002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10264
10265 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10266 (alpha_cannot_fetch_register): Ditto.
10267 (alpha_cannot_store_register): Ditto.
10268 (alpha_register_convertible): Ditto.
10269 (alpha_use_struct_convention): Ditto.
10270 * config/alpha/tm-alpha.h: Update copyright years.
10271 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10272 (INNER_THAN): Use core_addr_lessthan.
10273 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10274 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10275 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10276 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10277 (FRAME_CHAIN): Remove unnecessary cast.
10278
b4ceaee6
AC
102792002-01-18 Andrew Cagney <ac131313@redhat.com>
10280
10281 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10282 obsolete.
10283
0a65a603
AC
102842002-01-18 Andrew Cagney <ac131313@redhat.com>
10285
10286 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10287 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10288 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10289 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10290 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10291 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10292 * x86-64-linux-nat.c: Ditto.
10293
636a6dfc
JT
102942002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10295
abf22e64 10296 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10297 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10298 (REGISTER_NAME): Define.
10299
acceddb6
JT
103002002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10301
10302 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10303
ec32e4be
JT
103042002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10305
10306 * alpha-tdep.c: Update copyright years.
10307 (alpha_next_pc): New function.
10308 (alpha_software_single_step): Ditto.
10309 * config/alpha/tm-alpha.h: Add prototype for
10310 alpha_software_single_step.
10311
e771a871
JT
103122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10313
10314 * alphabsd-nat.c: Update copyright years.
10315 (fill_gregset): Use regcache_collect.
10316 (fill_fpregset): Likewise.
10317 (fetch_inferior_registers): Only fetch integer registers
10318 if requested to do so.
10319 (store_inferior_registers): Only store integer registers
10320 if requested to do so.
10321
7708fa01
AC
103222002-01-17 Andrew Cagney <ac131313@redhat.com>
10323
10324 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10325 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10326 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10327 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10328 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10329 * config/arm/linux.mh (XDEPFILES): Delete.
10330 * config/arm/nbsd.mh (XDEPFILES): Delete.
10331 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10332 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10333 * config/i386/i386m3.mh (XDEPFILES): Delete.
10334 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10335 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10336 * config/i386/fbsd.mh (XDEPFILES): Delete.
10337 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10338 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10339 * config/i386/i386v4.mh (XDEPFILES): Delete.
10340 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10341 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10342 * config/i386/i386aix.mh (XDEPFILES): Delete.
10343 * config/i386/go32.mh (XDEPFILES): Delete.
10344 * config/i386/cygwin.mh (XDEPFILES): Delete.
10345 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10346 * config/i386/i386mach.mh (XDEPFILES): Delete.
10347 * config/i386/i386v32.mh (XDEPFILES): Delete.
10348 * config/i386/linux.mh (XDEPFILES): Delete.
10349 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10350 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10351 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10352 * config/i386/i386sco.mh (XDEPFILES): Delete.
10353 * config/i386/i386v.mh (XDEPFILES): Delete.
10354 * config/i386/nbsd.mh (XDEPFILES): Delete.
10355 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10356 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10357 * config/i386/symmetry.mh (XDEPFILES): Delete.
10358 * config/i386/obsd.mh (XDEPFILES): Delete.
10359 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10360 * config/ia64/linux.mh (XDEPFILES): Delete.
10361 * config/ia64/aix.mh (XDEPFILES): Delete.
10362 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10363 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10364 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10365 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10366 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10367 * config/m68k/linux.mh (XDEPFILES): Delete.
10368 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10369 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10370 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10371 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10372 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10373 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10374 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10375 * config/m88k/delta88.mh (XDEPFILES): Delete.
10376 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10377 * config/m88k/m88k.mh (XDEPFILES): Delete.
10378 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10379 * config/mips/linux.mh (XDEPFILES): Delete.
10380 * config/mips/irix6.mh (XDEPFILES): Delete.
10381 * config/mips/irix5.mh (XDEPFILES): Delete.
10382 * config/mips/irix4.mh (XDEPFILES): Delete.
10383 * config/mips/irix3.mh (XDEPFILES): Delete.
10384 * config/mips/decstation.mh (XDEPFILES): Delete.
10385 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10386 (NATDEPFILES): Move core-aout.o to here.
10387 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10388 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10389 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10390 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10391 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10392 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10393 * config/pa/hpux11.mh (XDEPFILES): Delete.
10394 * config/powerpc/aix.mh (XDEPFILES): Delete.
10395 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10396 * config/powerpc/linux.mh (XDEPFILES): Delete.
10397 * config/romp/rtbsd.mh: Rename XDEPFILES.
10398 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10399 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10400 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10401 * config/s390/s390.mh (XDEPFILES): Delete.
10402 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10403 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10404 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10405 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10406 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10407 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10408 * config/sparc/linux.mh (XDEPFILES): Delete.
10409 * config/vax/vaxult.mh (XDEPFILES): Delete.
10410 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10411 * Makefile.in (DEPFILES): Remove XDEPFILES.
10412
375fc983
AC
104132002-01-17 Andrew Cagney <ac131313@redhat.com>
10414
10415 * utils.c (internal_verror): Fix comments, default is yes not no.
10416 Update queries to match. Default to quit and dump core.
10417
8926118c
AC
104182002-01-17 Andrew Cagney <ac131313@redhat.com>
10419
10420 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10421 copyright.
10422 * defs.h, event-top.c, gdbcmd.h: Ditto.
10423 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10424 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10425 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10426 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10427 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10428 * mi/mi-main.c:Ditto.
10429
10430 * stack.c, symfile.c: Update copyright.
10431
45b7b345
DJ
104322002-01-17 Daniel Jacobowitz <drow@mvista.com>
10433
db728ff7
DJ
10434 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10435 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10436 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10437 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10438
db728ff7
DJ
104392002-01-17 Daniel Jacobowitz <drow@mvista.com>
10440
10441 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10442 * gdbserver/low-lynx.c (myattach): Likewise.
10443 * gdbserver/low-nbsd.c (myattach): Likewise.
10444 * gdbserver/low-sim.c (myattach): Likewise.
10445 * gdbserver/low-sparc.c (myattach): Likewise.
10446 * gdbserver/low-sun3.c (myattach): Likewise.
10447
10448 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10449
db728ff7 10450 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10451 (main): Handle "--attach".
10452
8de3c354
AC
104532002-01-16 Andrew Cagney <ac131313@redhat.com>
10454
10455 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10456 maintainer.
10457
b0129042
DJ
104582002-01-15 Daniel Jacobowitz <drow@mvista.com>
10459
10460 * c-typeprint.c (is_type_conversion_operator): Add additional
10461 check for non-conversion operators.
10462
ba8679fb 104632002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10464
10465 * linux-proc.c: Add "info proc" command, a la procfs.c.
10466 (read_mapping): New function, abstract and re-use code.
10467 (linux_find_memory_regions): Use new func read_mapping.
10468 (linux_info_proc_cmd): New function, implement "info proc".
10469 (_initialize_linux_proc): Add new command "info proc".
10470
e4f9b4d5
MS
104712002-01-15 Michael Snyder <msnyder@redhat.com>
10472
10473 * symfile.c (generic_load): Use bfd_map_over_sections method
10474 instead of manipulating bfd structure members directly.
10475 (add_section_size_callback): New function, bfd sections callback
10476 used by generic_load.
10477 (load_sections_callback): New function, bfd sections callback
10478 used by generic_load.
10479
08cf96df
EZ
104802002-01-15 Elena Zannoni <ezannoni@redhat.com>
10481
abf22e64 10482 [Based on work by Jim Blandy]
08cf96df
EZ
10483 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10484 (builtin_type_vec128): Export.
10485 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10486 types.
10487 (builtin_type_vec128): New builtin type for 128 bit vector
10488 registers.
10489 (build_gdbtypes): Initialize builtin_type_v16qi and
10490 builtin_type_v8hi. Create the vec128 register builtin type
10491 structure.
10492 (build_builtin_type_vec128): New function.
abf22e64 10493 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10494 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10495 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10496 AltiVec register to new builtin type.
10497
d7242108
DJ
104982001-01-15 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10501 to make_cv_type.
10502
4ee3352d
AC
105032002-01-14 Andrew Cagney <ac131313@redhat.com>
10504
10505 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10506 CLEAN_UP_REGISTER_VALUE.
10507 * regcache.c (supply_register): Update only call.
10508
f015b2e7
AC
105092002-01-14 Andrew Cagney <ac131313@redhat.com>
10510
10511 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10512 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10513 a29k-*-vxworks* targets as obsolete.
10514
356ae49d
MS
105152002-01-14 Michael Snyder <msnyder@redhat.com>
10516
10517 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10518 until we can resolve portability issues.
10519 * gregset.h: Remove references to fpxregs.
10520 * gcore.c (gcore_command): Initialize note_sec to NULL.
10521
ade8f45e
AC
105222002-01-13 Andrew Cagney <ac131313@redhat.com>
10523
10524 * signals.c (target_signal_to_name): Rewrite. Only use
10525 signals[].name when in bounds and non-NULL.
abf22e64 10526
89c49e7a
AC
105272002-01-13 Andrew Cagney <ac131313@redhat.com>
10528
10529 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10530 * signals.c (target_signal_to_name): Verify that SIG is within the
10531 bounds of the signals array.
10532
4daa9f9f
AC
105332002-01-13 Andrew Cagney <ac131313@redhat.com>
10534
10535 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10536
ba4bbdcb
KS
105372002-01-13 Keith Seitz <keiths@redhat.com>
10538
10539 * stack.c (print_frame_info_base): Print the frame's pc
10540 only if when print_frame_info_listing_hook is not defined.
10541
575bbeb6
KS
105422002-01-13 Keith Seitz <keiths@redhat.com>
10543
10544 * varobj.c (varobj_set_value): Make sure that there were no
10545 errors evaluating the object before attempting to set its
10546 value.
10547 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10548 so this offset adjustment is no longer necessary.
10549 (create_child): Don't set the error flag if the child is
10550 a CPLUS_FAKE_CHILD.
10551 (value_of_child): If value_fetch_lazy fails, return NULL
10552 so that callers will be notified that an error occurred.
10553 (c_value_of_variable): Delay check of variable's validity
10554 until later. We actually want all structs and unions to have
10555 the value "{...}".
10556 Do not return "???" for variables which could not be evaluated.
10557 This error condition must be returned to the caller so that it
10558 can get the error condition from gdb.
10559 (cplus_name_of_child): Adjust index for vptr before figuring
10560 out the name of the child.
10561 (cplus_value_of_child): If a child's (real) parent is not valid,
10562 don't even bother trying to give a value for it. Just return
10563 an error. Change all instances in this function.
10564 (cplus_type_of_child): If our parent is one of the "fake"
10565 parents, we need to get at the type of the real parent, and
10566 derive the child's true type using this information.
10567
b76898ab
AC
105682002-01-13 Andrew Cagney <ac131313@redhat.com>
10569
10570 From 2002-01-09 John Marshall <johnm@falch.net>:
10571 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10572 sources.redhat.com, and tweak some related URLs which had
10573 suffered from linkrot.
10574
b6649e88
AC
105752002-01-13 Andrew Cagney <ac131313@redhat.com>
10576
10577 From Jeff law:
10578 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10579 structures passed in registers.
10580
82cc5033
EZ
105812002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10582
10583 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10584 white space which prevented compilation. Reported by DSK
10585 <dsk@student.unsw.edu.au>.
10586
ba5f2f8a
MS
105872002-01-11 Michael Snyder <msnyder@redhat.com>
10588
fbd35540
MS
10589 * symfile.c (build_section_addr_info_from_section_tab):
10590 Use bfd access method instead of manipulating bfd directly.
10591 (syms_from_objfile): Ditto.
10592 (simple_overlay_update_1): Ditto.
10593 (simple_overlay_update): Ditto.
10594 (generic_load): Ditto.
10595 (overlay_unmapped_address): FIXME comment, bfd access methods.
10596 (sections_overlap): FIXME comment, bfd access methods.
10597 (pc_in_mapped_range): FIXME comment, bfd access methods.
10598 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10599 (section_is_mapped): FIXME comment, bfd access methods.
10600 (section_is_overlay): FIXME comment, bfd access methods.
10601
ba5f2f8a
MS
10602 * symfile.c (generic_load): Whitespace and long line cleanups.
10603 Remove duplicate variable, change several local variables to
10604 more appropriate data types.
10605 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10606
17df2af6
AC
106072002-01-12 Andrew Cagney <ac131313@redhat.com>
10608
10609 From Peter Schauer:
10610 * language.c (longest_local_hex_string_custom): Use phex_nz to
10611 convert NUM to a hex string.
10612
ec920329
EZ
106132002-01-12 Elena Zannoni <ezannoni@redhat.com>
10614
10615 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10616 the function.
538a76d6 10617 Update Copyright year.
ec920329 10618
3abd2e01
AC
106192002-01-12 Andrew Cagney <ac131313@redhat.com>
10620
10621 * language.c (longest_raw_hex_string): Delete unused function.
10622
b21b22e0
PS
106232002-01-11 Petr Sorfa <petrs@caldera.com>
10624
10625 * MAINTAINERS (write-after-approval): Add myself.
10626 * dwarf2read.c (read_tag_string_type): Handling of
10627 DW_AT_byte_size.
10628 (read_tag_string_type): FORTRAN fix to prevent propagation of
10629 first string size.
10630 (set_cu_language): Handling of DW_LANG_Fortran95
10631
747fe712
RE
106322002-01-11 Richard Earnshaw <rearnsha@arm.com>
10633
10634 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10635 GETPID(inferior_ptid).
10636 (store_inferior_registers): Likewise.
10637
f1bea926
JM
106382002-01-10 Jason Merrill <jason@redhat.com>
10639
10640 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10641 Fix DW_OP_minus.
10642
ae940673
AC
106432002-01-10 Andrew Cagney <ac131313@redhat.com>
10644
10645 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10646 and bfd/elf32-sh-nbsd.c.
10647
00546b04
MS
106482002-01-10 Michael Snyder <msnyder@redhat.com>
10649
352ed7b4
MS
10650 * NEWS: Mention --pid and corefile/proc-id behavior change.
10651
c18be923
MS
10652 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10653 * gcore.c: Include cli/cli-decode.h instead of command.h.
10654
00546b04
MS
10655 * main.c (captured_main): Add new command line option "--pid".
10656 If the second command line argument (following the symbol-file)
10657 begins with a digit, try to attach to it before trying to open
10658 it as a corefile.
10659 (print_gdb_help): Document the "--pid" argument.
10660
db60ec62
EZ
106612002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10662
10663 * completer.c (command_completer): New function.
10664
10665 * completer.h <command_completer>: Add prototype.
10666
10667 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10668 completer for the "help" command.
10669
39c22d1a
JM
106702002-01-09 Jason Merrill <jason@redhat.com>
10671
10672 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10673
c564377f
MS
106742002-01-09 Michael Snyder <msnyder@redhat.com>
10675
975aec09
MS
10676 * i386-linux-nat.c (fill_fpxregset): Make global.
10677 (store_fpxregset): Ditto.
10678
db4a10fa
MS
10679 * gregset.h (gdb_fpxregset_t): Define.
10680 (supply_fpxregset): Prototype.
10681 (fill_fpxregset): Prototype.
10682
c564377f
MS
10683 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10684
c3d45d70
RE
106852002-01-09 Richard Earnshaw <rearnsha@arm.com>
10686
10687 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10688 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10689 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10690
fcc87af1
AC
106912002-01-09 Andrew Cagney <ac131313@redhat.com>
10692
10693 * MAINTAINERS: Update target maintainer rules so that any
10694 Maintainer can approve a tested patch for a maintenance-only
10695 target.
10696
dd96c05b
RE
106972002-01-09 Richard Earnshaw <rearnsha@arm.com>
10698
d4297db9 10699 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10700
d4297db9 10701 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10702 IN_SIGTRAMP.
10703
145fdc6e
MS
107042002-01-08 Michael Snyder <msnyder@redhat.com>
10705
10706 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10707 real name of the executable, rather than the /proc name.
10708
be4d1333
MS
107092002-01-03 Michael Snyder <msnyder@redhat.com>
10710
10711 Implement a "generate-core-file" command in gdb, save target state.
10712 * gcore.c: New file. Implement new command 'generate-core-file'.
10713 Save a corefile image of the current state of the inferior.
10714 * linux-proc.c: Add linux-specific code for saving corefiles.
10715 * target.h (struct target_ops): Add new target vectors for saving
10716 corefiles; to_find_memory_regions and to_make_corefile_notes.
10717 (target_find_memory_regions): New macro.
10718 (target_make_corefile_notes): New macro.
10719 * target.c (update_current_target): Inherit new target methods.
10720 (dummy_find_memory_regions): New place-holder method.
10721 (dummy_make_corefile_notes): New place-holder method.
10722 (init_dummy_target): Initialize new dummy target vectors.
10723 * exec.c (exec_set_find_memory_regions): New function.
10724 Allow the exec_ops vector for memory regions to be taken over.
10725 (exec_make_note_section): New function, target vector method.
10726 * defs.h (exec_set_find_memory_regions): Export prototype.
10727 * procfs.c (proc_find_memory_regions): New function, corefile method.
10728 (procfs_make_note_section): New function, corefile method.
10729 (init_procfs_ops): Set new target vector pointers.
10730 (find_memory_regions_callback): New function.
10731 (procfs_do_thread_registers): New function.
10732 (procfs_corefile_thread_callback): New function.
10733 * sol-thread.c (sol_find_memory_regions): New function.
10734 (sol_make_note_section): New function.
10735 (init_sol_thread_ops): Initialize new target vectors.
10736 * inftarg.c (inftarg_set_find_memory_regions): New function.
10737 Allow to_find_memory_regions vector to be taken over.
10738 (inftarg_set_make_corefile_notes): New function.
10739 Allow to_make_corefile_notes vector to be taken over.
10740 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10741 interface layer if not target_has_execution (may be a corefile).
10742 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10743 * config/sparc/sun4sol2.mh: Ditto.
10744 * config/alpha/alpha-linux.mh: Ditto.
10745 * config/arm/linux.mh: Ditto.
10746 * config/i386/x86-64linux.mh: Ditto.
10747 * config/ia64/linux.mh: Ditto.
10748 * config/m68k/linux.mh: Ditto.
10749 * config/mips/linux.mh: Ditto.
10750 * config/powerpc/linux.mh: Ditto.
10751 * config/sparc/linux.mh: Ditto.
10752
c6b92abd
MS
107532002-01-07 Michael Snyder <msnyder@redhat.com>
10754
10755 * arm-linux-nat.c: Remove references to regcache.c internal data
10756 (registers[] and register_valid[]).
10757
4b09dc8c
MS
107582002-01-07 Michael Snyder <msnyder@redhat.com>
10759
abf22e64
AJ
10760 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10761 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10762 symbol file and shlibs.
10763 * Makefile.in: Add rule for linux-proc.o.
10764 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10765 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10766 * config/arm/linux.mh: Ditto.
10767 * config/i386/linux.mh: Ditto.
10768 * config/i386/x86-64linux.mh: Ditto.
10769 * config/ia64/linux.mh: Ditto.
10770 * config/m68k/linux.mh: Ditto.
10771 * config/mips/linux.mh: Ditto.
10772 * config/powerpc/linux.mh: Ditto.
10773 * config/sparc/linux.mh: Ditto.
10774
c25b74ac
PM
107752002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10776
10777 * win32-nat.c: Add i386-tdep.h dependency.
10778
94cd915f
MS
107792002-01-07 Michael Snyder <msnyder@redhat.com>
10780
c7cccb76
MS
10781 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10782 instead of bfd_get_arch_size. Don't bail out just because
10783 there's no exec_bfd.
abf22e64 10784
34c0bd93
MS
10785 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10786 * p-valprint.c (pascal_object_print_value): Ditto.
10787 * somread.c (som_symtab_read): Ditto.
10788 * symfile.c (simple_free_overlay_region_table): Ditto.
10789 * valops.c (value_assign): Ditto.
10790
21c1c920
MS
10791 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10792 use tilde_expand and strerror for opening save-tracepoints file.
10793
5bbd998e
MS
10794 * thread-db.c (thread_db_new_objfile): Indendation fix.
10795
94cd915f
MS
10796 * infptrace.c (GDB_MAX_ALLOCA): New define.
10797 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10798 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10799 can be overridden with whatever value is appropriate to the host).
10800 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10801 alloca to allocate potentially large buffer.
10802 * rs6000-nat.c (child_xfer_memory): Ditto.
10803 * symm-nat.c (child_xfer_memory): Ditto.
10804 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10805
494e8a93
JSC
108062002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10807
10808 From Nick Clifton <nickc@redhat.com>
10809 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10810
d0e1d48e
MS
108112002-01-07 Michael Snyder <msnyder@redhat.com>
10812
abf22e64 10813 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10814 Don't use exec_bfd if it's NULL.
10815
290b2c7a
MK
108162002-01-06 Mark Kettenis <kettenis@gnu.org>
10817
abf22e64 10818 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10819
aef21287
AC
108202002-01-06 Andrew Cagney <ac131313@redhat.com>
10821
10822 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10823 * gnu-nat.c: Ditto.
10824
30efa627
AC
108252002-01-06 Andrew Cagney <ac131313@redhat.com>
10826
10827 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10828 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10829 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10830 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10831 z8k-coff have not been multi-arched. Update z8k-coff build
10832 status.
10833
9b4ff276
AC
108342002-01-06 Andrew Cagney <ac131313@redhat.com>
10835
10836 * MAINTAINERS: Mark a29k target as obsolete.
10837 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10838 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10839 comments.
10840 * NEWS: Note that a29k targets are obsolete.
10841 * a29k-tdep.c: Mark as obsolete.
10842 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10843 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10844 a29k-*-vxworks* targets as obsolete.
10845 * remote-adapt.c: Obsolete.
10846 * remote-eb.c: Obsolete.
10847 * remote-mm.c: Obsolete.
10848 * remote-udi.c: Obsolete.
10849 * config/a29k/a29k-udi.mt: Obsolete.
10850 * config/a29k/a29k.mt: Obsolete.
10851 * config/a29k/tm-a29k.h: Obsolete.
10852 * config/a29k/tm-vx29k.h: Obsolete.
10853 * config/a29k/vx29k.mt: Obsolete.
10854
a9011d31
AC
108552002-01-05 Andrew Cagney <ac131313@redhat.com>
10856
10857 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10858 with BFD_ENDIAN_BIG.
10859
9299404e
AC
108602002-01-05 Andrew Cagney <ac131313@redhat.com>
10861
10862 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10863 * configure, config.in: Re-generate.
10864 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10865 * defs.h: Do not include <endian.h>.
10866
7e89e357
JT
108672002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10868
10869 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10870 * config.in: Regenerate.
10871 * configure.in: Update copyright years.
10872 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10873 * configure: Regenerate.
10874 * i386bsd-nat.c: Update copyright years.
10875 (fill_gregset): Use regcache_collect.
10876 (fetch_inferior_registers): Only fetch integer registers
10877 if requested to do so. Add support for XMM registers
10878 using PT_GETXMMREGS.
10879 (store_inferior_registers): Only store integer registers
10880 if requested to do so. Add support for XMM registers
10881 using PT_SETXMMREGS.
10882 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10883 (store_inferior_registers): Remove.
10884 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10885 (fetch_elfcore_registers): New function.
10886 (i386nbsd_elfcore_fns): New.
10887 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10888 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10889 i386bsd-nat.o.
10890 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10891 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10892 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10893 * config/i386/tm-nbsd.h: Update copyright years.
10894 (HAVE_SSE_REGS): Define.
10895 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10896 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10897 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10898 (SIGCONTEXT_PC_OFFSET): Remove.
10899 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10900
a752853e
AC
109012002-01-05 Andrew Cagney <ac131313@redhat.com>
10902
10903 * configure.tgt: Remove powerpc-*-macos* target.
10904 * config/m68k/xm-mpw.h: Delete file.
10905 * config/xm-mpw.h: Delete file.
10906 * ser-mac.c: Delete file.
10907 * mpw-make.sed: Delete file.
10908 * mpw-config.in: Delete file.
10909 * mac-xdep.c: Delete file.
10910 * mac-gdb.r: Delete file.
10911 * mac-defs.h: Delete file.
10912 * mac-nat.c: Delete file.
10913 * config/powerpc/macos.mh: Delete file.
10914 * config/powerpc/macos.mt: Delete file.
10915 * config/powerpc/nm-macos.h: Delete file.
10916 * config/powerpc/tm-macos.h: Delete file.
10917 * source.c (openp, open_source_file): Remove obsolete code.
10918 * top.c (gdb_readline): Ditto.
10919 * utils.c (query): Ditto.
10920 * event-top.c (display_gdb_prompt): Ditto.
10921 * Makefile.in (ser-mac.o): Delete obsolete target.
10922 * NEWS: Update.
10923
d7449b42
AC
109242002-01-04 Andrew Cagney <ac131313@redhat.com>
10925
10926 * defs.h (BIG_ENDIAN): Delete macro definition.
10927 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10928 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10929 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10930 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10931 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10932 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10933 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10934 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10935 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10936 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10937 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10938 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10939 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10940 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10941 * gdbarch.c: Re-generate.
10942
356374e8
DJ
109432002-01-04 Daniel Jacobowitz <drow@mvista.com>
10944
10945 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10946 for core files.
10947
a2b8f8f8
JT
109482002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10949
10950 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10951
12466af9
AC
109522002-01-04 Andrew Cagney <ac131313@redhat.com>
10953
10954 * value.h (value_ptr): Delete typedef.
10955
3549ab40
JT
109562002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10957
10958 * i386nbsd-nat.c: Update copyright years.
10959 Include i386-tdep.h.
10960
fedbd091
EZ
109612002-01-04 Elena Zannoni <ezannoni@redhat.com>
10962
10963 * stabsread.c: Update copyright years.
10964
10965 From Debashis Mahata <debashis.mahata@wipro.com>:
10966 (read_struct_fields): Deal with Sun C compiler erroneous stab
10967 output for structs and unions.
fec8b34f 10968 Fix PR gdb/269.
fedbd091 10969
eb43544b
DJ
109702002-01-04 Daniel Jacobowitz <drow@mvista.com>
10971
10972 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10973 prototype.
10974
1514d34e
DJ
109752002-01-04 Daniel Jacobowitz <drow@mvista.com>
10976
10977 * cp-abi.c: Fix whitespace.
10978 (baseclass_offset): New wrapper function.
10979 * cp-abi.h (baseclass_offset): Add prototype.
10980 (struct cp_abi_ops): Add baseclass_offset pointer.
10981
10982 * valops.c (vb_match): Move to...
10983 * gnu-v2-abi.c (vb_match): here.
10984 * valops.c (baseclass_offset): Move to...
10985 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10986
10987 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10988
10989 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10990 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10991 * hpacc-abi.c (init_hpacc_ops): Likewise.
10992
7f8c9282
DJ
109932002-01-04 Daniel Jacobowitz <drow@mvista.com>
10994
10995 * valops.c (find_overload_match): Accept obj as a
10996 reference parameter. Update it before returning.
10997 * value.h (find_overload_match): Update prototype.
10998 * eval.c (evaluate_subexp_standard): Pass object to
10999 find_overload_match by reference.
11000
f23631e4
AC
110012002-01-03 Andrew Cagney <ac131313@redhat.com>
11002
11003 * valarith.c: Replace value_ptr with struct value pointer. Remove
11004 register attribute from value declarations.
11005 * valops.c: Ditto.
11006 * value.h: Ditto.
11007 * scm-lang.c (scm_lookup_name): Ditto.
11008
79e10fab 110092002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11010
79e10fab
AC
11011 Abstract the functionality of iterating over mapped memory
11012 regions into a general purpose iterator function.
abf22e64 11013 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11014 iterator for memory sections.
11015 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11016 (solib_mappings_callback): New function, callback for above.
11017 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11018 (info_mappings_callback): New function, callback for above.
11019
11020 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11021
c5ad026a
MK
110222002-01-01 Mark Kettenis <kettenis@gnu.org>
11023
d2a7c97a
MK
11024 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11025 * i386-tdep.c: Include "elf-bfd.h".
11026 (process_note_abi_tag_sections): New function.
11027 (i386_gdbarch_init): Add code to recognize various OS/ABI
11028 combinations.
11029
c5ad026a
MK
11030 * maint.c (_initialize_maint_cmds): Add missing \ in
11031 string-literal.
11032
a1a5b71e 11033For older changes see ChangeLog-2001
c906108c
SS
11034\f
11035Local Variables:
11036mode: change-log
11037left-margin: 8
11038fill-column: 74
11039version-control: never
11040End:
This page took 0.810186 seconds and 4 git commands to generate.