* mi-console.exp: Update copyright.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a741e514
TT
12002-09-17 Tom Tromey <tromey@redhat.com>
2
3 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4 is "'".
5
d1a8e808
CV
62002-09-17 Corinna Vinschen <vinschen@redhat.com>
7
8 * MAINTAINERS: Remove "non multi-arched" text from h8300.
9 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
10 NEXT_PROLOGUE_INSN.
11 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
12 NEXT_PROLOGUE_INSN.
13
d9025a18
JB
142002-09-16 Joel Brobecker <brobecker@gnat.com>
15
16 * osfsolib.c: Remove file, replaced by solib-osf.c.
17 * Makefile.in: Remove compilation rules for osfsolib.c.
18
1b2ef1b6
DC
192002-09-16 David Carlton <carlton@math.stanford.edu>
20
21 * cp-valprint.c (cp_print_class_method): Correct args to
22 check_stub_method_group.
23
928e48af
CV
242002-09-16 Corinna Vinschen <vinschen@redhat.com>
25
26 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
27 `set architecture'. Unify naming convention of functions.
28 (h8300_skip_prologue): Improve prologue analysis.
29 (h8300_push_arguments): Rewritten to more closely match GCC's
30 bizarre argument-passing behavior, along with the comment describing
31 said behavior.
32 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
33 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
34 sim, remote-e7000.c, remote-hms.c and remote.c
35
5e3397bb
MK
362002-09-15 Mark Kettenis <kettenis@gnu.org>
37
38 * i386-tdep.c (gdb_print_insn_i386): Removed.
39 (i386_print_insn): New function.
40 (i386_gdbarch_init): Set print_insn to i386_print_insns.
41 (_initialize_i386_tdep): Don't initialize tm_print_insn and
42 tm_print_insn_info.
43
f710f4fc
MK
442002-09-14 Mark Kettenis <kettenis@gnu.org>
45
46 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
47 zero.
48
db54fef4
CV
492002-09-14 Corinna Vinschen <vinschen@redhat.com>
50
51 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
52 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
53 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
54
2becadee
CF
552002-09-13 Christopher Faylor <cgf@redhat.com>
56
57 * win32-nat.c (child_create_inferior): Honor 'tty' command.
58
de17c821
DJ
592002-09-13 Daniel Jacobowitz <drow@mvista.com>
60
61 * gdbtypes.c (check_stub_method): Make static.
62 (check_stub_method_group): New function.
63 * gdbtypes.h: Update prototypes.
64 * cp-support.c: New file.
65 * cp-support.h: New file.
66
67 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
68 (update_method_name_from_physname): New function.
69 (read_member_functions): Correct method names for operators
70 and v3 constructors/destructors. Separate v2 constructors and
71 destructors.
72 * Makefile.in (stabsread.o): Update dependencies.
73 (SFILES): Add cp-support.c.
74 (COMMON_OBS): Add cp-support.o.
75 (cp_support_h, cp-support.o): Add.
76
77 * cp-valprint.c (cp_print_class_method): Call
78 check_stub_method_group instead of check_stub_method. Remove
79 extraneous QUITs.
80 * p-valprint.c (pascal_object_print_class_method): Likewise.
81 * valops.c (search_struct_method): Likewise.
82 (find_method_list, value_struct_elt_for_reference): Likewise.
83
e76cff22
AC
842002-09-13 Andrew Cagney <cagney@redhat.com>
85
86 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
87 * gdbarch.h, gdbarch.c: Regenerate.
88
905abb3f
AC
892002-09-13 Andrew Cagney <ac131313@redhat.com>
90
91 * frame.c (find_saved_register): Delete function.
92 * frame.h (find_saved_register): Delete declaration.
93 Fix PR gdb/631.
94
64159455
AC
95Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
96
97 * mips-tdep.c (read_next_frame_reg): Re-hack using
98 frame_register_unwind.
99
795e1e11
AC
100Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
101
102 * mips-tdep.c (mips_get_saved_register): Re-hack using
103 frame_register_unwind.
104
5720643c
JB
1052002-09-12 Joel Brobecker <brobecker@gnat.com>
106
107 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
108 vector. Will be useful for Interix.
109 * gdbarch.h, gdbarch.c: Regenerate.
110
111 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
112 name of the malloc function by NAME_OF_MALLOC.
113
3bada2a2
JB
1142002-09-12 Joel Brobecker <brobecker@gnat.com>
115
116 * value.h (find_function_in_inferior): Add const keyword to
117 one of the parameters. Allows us to invoke this function with
118 a const char *.
119 * valops.c (find_function_in_inferior): Likewise.
120
3db26b01
JB
1212002-09-12 Joel Brobecker <brobecker@gnat.com>
122
123 * exec.c (xfer_memory): Fix compilation warning with old versions
124 of GCC.
125 * tracepoint.c (trace_find_tracepoint_command): Likewise.
126
17c5ed2c
DC
1272002-09-12 David Carlton <carlton@math.stanford.edu>
128
129 * symtab.h: Run through gdb_indent.h.
130 Add 2002 to Copyright year list.
131
ecd1107e
AM
1322002-09-12 Alan Modra <amodra@bigpond.net.au>
133
134 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
135 mach constants.
136 * MAINTAINERS: Add myself to write after approval list.
137
e64f66d1
JB
1382002-09-11 J. Brobecker <brobecker@gnat.com>
139
140 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
141
f9395794
JB
1422002-09-11 J. Brobecker <brobecker@gnat.com>
143
144 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
145 Interix.
146
1a303dec
MS
1472002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
148
149 * procfs.c (do_detach): Clear current signal, not just fault.
150 Corrects problem with breakpoint trap signal leaking to detached
151 process on Tru64.
152
c0219d42
MS
1532002-09-10 Michael Snyder <msnyder@redhat.com>
154
155 * buildsym.c (finish_block): Protect against null pointer.
156
9d84ac84
AC
1572002-09-10 Andrew Cagney <cagney@redhat.com>
158
159 * infcmd.c (default_print_registers_info): Send all output to
160 ``file'' instead of ``gdb_stdout''.
161
77d8f2b4
MS
1622002-09-10 Michael Snyder <msnyder@redhat.com>
163
164 * mips-tdep.c (mips_extract_struct_value_address): Make val a
165 LONGEST, and use signed register read (addresses are sign-
166 extended for mips).
167
99656a61
SC
1682002-09-10 Stephane Carrez <stcarrez@nerim.fr>
169
170 * event-loop.c (gdb_do_one_event): Make public.
171 * event-loop.h (gdb_do_one_event): Declare.
172
da12f4d8
JL
1732002-09-10 Jeff Law <law@redhat.com>
174
175 * infttrace.c (child_resume): Simplify and rework to avoid
176 TT_PROC_CONTINUE.
177
d0aee0c4
FF
1782002-09-09 Fred Fish <fnf@intrinsity.com>
179
180 * printcmd.c (print_scalar_formatted): "len" is the number of
181 target bytes, NOT the number of target bits.
182
7cb3ec5e
EZ
1832002-09-09 Elena Zannoni <ezannoni@redhat.com>
184
185 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
186 * top.c (init_main): Set rl_terminal_name.
187
4dc81987
AS
1882002-09-08 Aidan Skinner <aidan@velvet.net>
189
190 * ada-lang.c (ada_array_bound, ada_type_match,
191 _initialize_ada_language): Fix K&R definitions.
192 * ada-tasks.c (get_current_task): Fix K&R definitions.
193 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
194
842330b4
CF
1952002-09-07 Christopher Faylor <cgf@redhat.com>
196
197 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
198 Add XP.
199
43156d82
MK
2002002-09-06 Mark Kettenis <kettenis@gnu.org>
201
66da5fd8
MK
202 * i386-tdep.c (i386_register_virtual_type,
203 i386_register_convertible, i386_register_convert_to_virtual,
204 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
205 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
206 (i386_gdbarch_init): Fix comment. Add comments on calls that set
207 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
208 Don't set push_arguments twice.
209
4b218c18
MK
210 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
211 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
212 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
213 sigtramp_end to NULL.
214 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
215 defines.
216 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
217
4cc314d5
MK
218 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
219 whitespace.
220
43156d82
MK
221 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
222 * gdbarch.h, gdbarch.c: Re-generate.
223 * blockframe.c (find_pc_sect_partial_function): Convert to use
224 SIGTRAMP_START_P predicate.
225
6672060b
MS
2262002-09-05 Michael Snyder <msnyder@redhat.com>
227
a90c3637
MS
228 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
229 generic_dummy_frame method and old method. Also distinguish
230 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 231 (arm_extract_return_value): Use new regcache method.
a90c3637 232
6672060b
MS
233 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
234 adjustment that doesn't conform to the ABI.
235 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
236 saved regcache, not from current regcache.
237
299ffc64
AC
2382002-09-05 Andrew Cagney <ac131313@redhat.com>
239
240 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
241 * README: Update.
242
a3a2ee65
JT
2432002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
244
245 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
246 if arm_apcs_32 is false.
247
2bc7eea9
AC
2482002-09-04 Andrew Cagney <ac131313@redhat.com>
249
250 GDB 5.3 branch created.
251
8a55a7c5
TR
2522002-09-03 Theodore A. Roth <troth@verinet.com>
253
254 * gdb/avr-tdep.c (avr_gdbarch_init): Use
255 generic_unwind_get_saved_register.
256
e26fb1d7
DC
2572002-09-03 David Carlton <carlton@math.stanford.edu>
258
259 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
260 argument (PR gdb/653). Update call to smash_to_method_type.
261 (read_structure_scope): Update call to dwarf2_add_member_fn.
262
30d52491
ML
2632002-09-03 Michal Ludvig <mludvig@suse.cz>
264
265 * x86-64-linux-tdep.c: Include gdb_string.h
266 * x86-64-linux-nat.c: Ditto.
267
06891d83
JT
2682002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
269
270 * ada-exp.y (yyname, yyrule): Remap global variables that appear
271 when YYDEBUG is set to 1.
272 * c-exp.y: Likewise.
273 * f-exp.y: Likewise.
274 * jv-exp.y: Likewise.
275 * m2-exp.y: Likewise.
276 * p-exp.y: Likewise.
277
7d400e77
JT
2782002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
279
280 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
281 dependency list.
282 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
283 solib_svr4_fetch_link_map_offsets to
284 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
285 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
286 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
287 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
288 solib-svr4.o, and solib-legacy.o.
289 * config/i386/tm-nbsd.h: Include solib.h.
290
704a27c4
JT
2912002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
292
293 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
294 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
295 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
296 comment noting that this needs its own target configuration.
297 * config/i386/nbsd.mt: New file.
298 * config/i386/nbsdaout.mt: Remove.
299 * config/i386/nbsdelf.mt: Ditto.
300 * config/i386/tm-nbsdaout.h: Ditto.
301
d66198e1
JT
3022002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
303
304 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
305 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
306 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
307 tdep->sigtramp_end.
308 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
309 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
310 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
311
3cac699e
JT
3122002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
313
314 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
315 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
316 * i386-tdep.h (i386bsd_init_abi): New prototype.
317 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
318 function declaration.
319 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
320 for NetBSD-a.out or NetBSD-ELF.
321 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
322 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
323 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
324 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
325 and nbsd-tdep.h.
326 (i386nbsd_pc_in_sigtramp): New function.
327 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
328 i386nbsd_pc_in_sigtramp.
329 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
330 and i386nbsdelf_init_abi OS ABI handlers.
331 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
332 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
333
7010ca0a
MK
3342002-09-02 Mark Kettenis <kettenis@gnu.org>
335
336 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
337 registers if the target really has them.
338
6dd93b72
JT
3392002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
340
341 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
342 than nbsd-tdep.h.
343
2ca8ae21
JT
3442002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
345
346 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
347 list.
348 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
349 (alphanbsd_skip_sigtramp_frame): New functions.
350 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
351 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
352 to alphanbsd_sigcontext_addr.
353
3d9b49b0
JT
3542002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
355
356 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
357 list.
358 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
359 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
360 nbsd_pc_in_sigtramp.
361 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
362 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
363 * nbsd-tdep.c: Include gdb_string.h.
364 (nbsd_pc_in_sigtramp): New function.
365 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
366 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
367 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
368 ppcnbsd_pc_in_sigtramp.
369 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
370 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
371 shnbsd_pc_in_sigtramp.
372 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
373 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
374 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
375
c860120c
PM
3762002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
377
378 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
379 watchpoints to NULL.
380 (insert_breakpoints): set val field of watchpoints if NULL.
381
382
c7612d53
JB
3832002-08-29 Jim Blandy <jimb@redhat.com>
384
385 * symtab.c (lookup_symbol_aux): In the cases where we find a
386 minimal symbol of an appropriate name and use its address to
387 select a symtab to read and search, use `name' (as passed to us)
388 as the demangled name when searching the symtab's global and
389 static blocks, not the minsym's name.
390
66609862
KS
3912002-08-29 Keith Seitz <keiths@redhat.com>
392
393 * stack.c (print_frame_info_base): Always set current_source_symtab
394 and current_source_line.
395
151fefe2
JB
3962002-08-29 Donn Terry <donnte@microsoft.com>
397
398 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
399
bfb3754e
KS
4002002-08-28 Keith Seitz <keiths@redhat.com>
401
402 * stack.c (select_frame): Add FIXME concerning selected-frame
403 events.
404 (select_frame_command): Send selected-frame-level-changed
405 event notification, but only if the level actually changed.
406 (up_silently_base): Add selected-frame-level-changed event
407 notification.
408 (down_silently_base): Likewise.
409
e822a2a0
AC
4102002-08-28 Andrew Cagney <ac131313@redhat.com>
411
412 * Makefile.in: Update dependencies for all gdb/*.c files.
413
309367d4
TT
4142002-08-27 Tom Tromey <tromey@redhat.com>
415
416 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
417 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
418 Update dependencies.
419 * i387-tdep.c: Include gdb_string.h.
420 * osabi.c: Likewise.
421 * i386-linux-nat.c: Likewise.
422 * lin-lwp.c: Likewise.
423 * ax-gdb.c: Likewise.
424 * signals/signals.c: Likewise.
425 * jv-valprint.c: Likewise.
426 * p-lang.c: Likewise.
427 * c-valprint.c: Likewise.
428 * cp-abi.c: Likewise.
429
e1507482
EZ
4302002-08-27 Elena Zannoni <ezannoni@redhat.com>
431
432 * cli/cli-script.h (copy_command_lines): Export.
433 * breakpoint.c: Include cli/cli-script.h.
434 * Makefile.in (breakpoint.o): Update dependencies.
435
c6510018
MS
4362002-08-26 Michael Snyder <msnyder@redhat.com>
437
438 * breakpoint.c (insert_breakpoints): Protect all references
439 to 'process_warning'. Shorten long lines.
440
c2b8ed2c
MS
4412002-08-26 Joel Brobecker <brobecker@gnat.com>
442
443 * cli/cli-script.c (copy_command_lines): New function.
444 * defs.h (copy_command_lines): Export.
445 * testsuite/gdb.base/commands.exp: New tests for commands
446 attached to a temporary breakpoint, and for commands that
447 delete the breakpoint they are attached to.
448
4492002-08-26 Michael Snyder <msnyder@redhat.com>
450
451 * breakpoint.c (bpstat_stop_status): Instead of copying the
452 pointer to the breakpoint commands struct, make a new copy
453 of the struct and point to that.
454 (bpstat_clear): Free the commands struct.
455 (bpstat_clear_actions): Free the commands struct.
456 (bpstat_do_actions): Free the command actions. Also execute
457 the local cleanups, instead of deleting them.
458 (delete_breakpoint): Leave the commands field of the bpstat
459 chain alone -- it will be freed later.
460
64b84175
KB
4612002-08-26 Kevin Buettner <kevinb@redhat.com>
462
463 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
464 deleted in 2002-08-20 commit. This function is still used by
465 ppc-linux-nat.c.
466
55970da6
KS
4672002-08-26 Keith Seitz <keiths@redhat.com>
468
469 * gdb-events.sh: Add selected-frame-level-changed event.
470 * gdb-events.c: Regenerated.
471 * gdb-events.h: Regenerated.
472
a790ad35
SC
4732002-08-26 Stephane Carrez <stcarrez@nerim.fr>
474
475 Fix PR gdb/393:
476 * inflow.c (terminal_save_ours): New function to save terminal
477 settings.
478 * inferior.h (terminal_save_ours): Declare.
479 * target.c (debug_to_terminal_save_ours): New function.
480 (cleanup_target): Defaults to_terminal_save_ours.
481 (update_current_target): Inherit to_terminal_save_ours.
482 (setup_target_debug): Set to_terminal_save_ours.
483 * target.h (target_terminal_save_ours): New to save terminal settings.
484 (target_ops): New member to_terminal_save_ours.
485 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
486 * hpux-thread.c (init_hpux_thread_ops): Likewise.
487 * inftarg.c (init_child_ops): Likewise.
488 * m3-nat.c (init_m3_ops): Likewise.
489 * procfs.c (init_procfs_ops): Likewise.
490 * wince.c (init_child_ops): Likewise.
491 * win32-nat.c (init_child_ops): Likewise.
492 * sol-thread.c (init_sol_thread_ops): Likewise.
493
c00dcbe9
MK
4942002-08-26 Mark Kettenis <kettenis@gnu.org>
495
3d7f4f49
MK
496 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
497 use regcache_* functions.
498 (i386_gdbarch_init): Set store_return_value instead of
499 deprecated_store_return_value.
500
c00dcbe9
MK
501 * regcache.c (regcache_raw_write_signed,
502 regcache_raw_write_unsigned): New functions.
503 * regcache.h (regcache_raw_write_signed,
504 regcache_raw_write_unsigned): New prototypes.
505
0e0d15ca
AC
5062002-08-25 Andrew Cagney <ac131313@redhat.com>
507
508 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
509 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
510 source file dependencies. Cleanup corresponding generator rules.
511
d3b22ed5
AC
5122002-08-25 Andrew Cagney <ac131313@redhat.com>
513
514 * regcache.h (register_offset_hack): Declare.
515 (regcache_cooked_read_using_offset_hack): Declare.
516 (regcache_cooked_write_using_offset_hack): Declare.
517
518 * regcache.c (register_offset_hack): New function.
519 (regcache_cooked_read_using_offset_hack): New function.
520 (regcache_cooked_write_using_offset_hack): New function.
521 (regcache_dump): Check that the registers, according to their
522 offset, are packed hard against each other.
523 (cooked_xfer_using_offset_hack): New function.
524
bb425013
AC
5252002-08-25 Andrew Cagney <ac131313@redhat.com>
526
527 * regcache.c (struct regcache_descr): Add field register_type.
528 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
529 in as a parameter
530 (init_regcache_descr): Initialize register_type. Pass the descr
531 to init_legacy_regcache_descr. Use register_type instead of
532 REGISTER_VIRTUAL_TYPE.
533 (register_type): New function.
534 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
535 * regcache.h (register_type): Declare.
536
d0403e00
AC
5372002-08-25 Andrew Cagney <ac131313@redhat.com>
538
539 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
540 instead of deprecated_store_return_value. Fix fallout from
541 2002-08-23 Andrew Cagney <cagney@redhat.com>.
542
0ed04cce
AC
5432002-08-25 Andrew Cagney <ac131313@redhat.com>
544
545 * regcache.c (max_register_size): New function.
546 (init_legacy_regcache_descr): Ensure that max_register_size is
547 large enough for REGISTER_VIRTUAL_SIZE.
548 * regcache.h (max_register_size): Declare.
549
46d79c04
AC
5502002-08-24 Andrew Cagney <ac131313@redhat.com>
551
552 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
553 store_return_value.
554 (e500_extract_return_value): Change type of valbuf pointer to
555 void.
556
853c7bd0
MK
5572002-08-24 Mark Kettenis <kettenis@gnu.org>
558
cd87e769
MK
559 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
560 workaround.
561
853c7bd0
MK
562 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
563 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
564 long long) to prevent compiler warning on 64-bit systems.
565
ebba8386
AC
5662002-08-23 Andrew Cagney <cagney@redhat.com>
567
568 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
569 (DEPRECATED_STORE_RETURN_VALUE): New method.
570 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
571 * gdbarch.h, gdbarch.c: Re-generate.
572
573 * values.c (set_return_value): Pass current_regcache to
574 STORE_RETURN_VALUE.
575 * arch-utils.h (legacy_store_return_value): Declare.
576 * arch-utils.c (legacy_store_return_value): New function.
577 (legacy_extract_return_value): Update parameters.
578
579 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
580 STORE_RETURN_VALUE.
581 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
582 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
583 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
584 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
585 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
586 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
587 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
588 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
589 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
590 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
591
592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
593 * i386-tdep.c (i386_extract_return_value): Update.
594 * arch-utils.c (legacy_extract_return_value): Update.
595 * frv-tdep.c (frv_gdbarch_init): Update.
596 * cris-tdep.c (cris_gdbarch_init): Update.
597 * d10v-tdep.c (d10v_gdbarch_init): Update.
598 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
599 * m68k-tdep.c (m68k_gdbarch_init): Update.
600 * mcore-tdep.c (mcore_gdbarch_init): Update.
601 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
602 * s390-tdep.c (s390_gdbarch_init): Update.
603 * sparc-tdep.c (sparc_gdbarch_init): Update.
604 * sh-tdep.c (sh_gdbarch_init): Update.
605 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
606 * v850-tdep.c (v850_gdbarch_init): Update.
607 * avr-tdep.c (avr_gdbarch_init): Update.
608 * ia64-tdep.c (ia64_gdbarch_init): Update.
609 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
610 * vax-tdep.c (vax_gdbarch_init): Update.
611 * alpha-tdep.c (alpha_gdbarch_init): Update.
612 * arm-tdep.c (arm_gdbarch_init): Update.
613 * mips-tdep.c (mips_gdbarch_init): Update.
614 * i386-tdep.c (i386_gdbarch_init): Update.
615
5bd8c6d0
AC
6162002-08-23 Andrew Cagney <ac131313@redhat.com>
617
618 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
619 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
620
e73e1724
MK
6212002-08-24 Mark Kettenis <kettenis@gnu.org>
622
623 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
624 problems.
625
3e6564e1
JB
6262002-08-23 Joel Brobecker <brobecker@gnat.com>
627
628 * infrun.c (handle_inferior_event): Move a comment outside of a
629 function call, in order to avoid indent reformatting this part
630 of the code in an unreadable way.
631
81d0cc19
GS
6322002-08-23 Grace Sainsbury <graces@redhat.com>
633
634 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
635 when breakpoints fail. Move general breakpoint error messages to
636 insert_breakpoints.
637 * breakpoint.c (insert_breakpoints): Change warnings when
638 breakpoints are nto inserted to specify the type. Remove call to
639 memory_error when hardware breakpoints can't be inserted. Remove
640 multiple calls to warning so all messages are sent to the user at
641 once.
642 (delete_breakpoints): Make insert error messsages more explicit.
643
17574093
DJ
6442002-08-23 Daniel Jacobowitz <drow@mvista.com>
645
646 * ChangeLog: Move gdbserver entries after GDB 5.2 to
647 gdbserver/ChangeLog.
648
8acc2935
MK
6492002-08-23 Mark Kettenis <kettenis@gnu.org>
650
dfe01d39
MK
651 * i386-tdep.c: Include "objfiles.h".
652 (i386_svr4_init_abi): Set in_solib_call_trampoline and
653 skip_trampoline_code.
654 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
655 (CPLUS_MARKER): Define to '.'.
656
8acc2935
MK
657 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
658 member.
659 (linux_corefile_thread_callback): Increase args->num_notes.
660 (linux_make_note_section): Initialize thread_args.num_notes, and
661 use it to determine whether notes for any threads were created.
662
151fefe2 6632002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
664
665 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
666 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
667 and PCUNKILL.
668 (write_with_trace): Conditionalize out the switch branch handling
669 PCSHOLD if the corresponding macro is not defined. Likewise for
670 PRSABORT and PRSTOP.
671 This change will be needed by the Interix port.
672
e1507482
EZ
6732002-08-22 Elena Zannoni <ezannoni@redhat.com>
674
675 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
676 write_register wherever possible instead of manipulating the
677 register bytes directly.
678 Assign VALUE_CONTENTS to a variable and use that.
679 The GPR numbers are now dependent on the architecture.
680
96ff0de4
EZ
6812002-08-22 Elena Zannoni <ezannoni@redhat.com>
682
683 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
684 ev_offset fields.
685 (skip_prologue): Add support for BookE/e500 instructions.
686 (e500_extract_return_value): New function.
687 (frame_get_saved_regs): Add support for saving ev registers and
688 pseudo gpr's.
689 (e500_store_return_value): New function.
690 (rs6000_gdbarch_init): Move up default intializations of
691 deprecated_extract_return_value and store_return_value. Overwrite
692 init of store_return_value with e500 specific version.
693 Set extract_return_value for e500.
694
fbefca5b
EZ
6952002-08-22 Elena Zannoni <ezannoni@redhat.com>
696
697 * blockframe.c (generic_call_dummy_register_unwind): Use
698 regcache_cooked_read to catch cases in which the variable is
699 stored in a pseudo register.
700
4d210288
AC
7012002-08-22 Andrew Cagney <cagney@redhat.com>
702
703 * NEWS: Mention that the i960 has been made obsolete.
704 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
705 i960-tdep.c
706 (remote-nrom.o): Obsolete target.
707 (remote-nindy.o, i960-tdep.o): Ditto.
708 * remote-nrom.c: Make file obsolete.
709 * remote-nindy.c, remote-vx960.c: Ditto.
710 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
711 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
712 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
713 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
714 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
715 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
716 i960-*-vxworks* obsolete.
717 * MAINTAINERS: Note that the i960 is obsolete.
718
6c0c456d
CV
7192002-08-21 Corinna Vinschen <vinschen@redhat.com
720
721 * aix-thread.c (aix_thread_detach): Disable thread debugging on
722 detach to allow reinitialization.
723
9f9d12b3
AC
7242002-08-22 Andrew Cagney <ac131313@redhat.com>
725
726 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
727 attempt).
728
ebeb39fe
JB
7292002-08-22 Jim Blandy <jimb@redhat.com>
730
731 * coffread.c (coff_symfile_read): Don't try to read the line
732 number table from disk if the image file doesn't have a symbol
733 table; we'll never actually look at the info anyway, and Windows
734 ships DLL's with bogus file offsets for the line number data.
735
5bf1c677
EZ
7362002-08-21 Elena Zannoni <ezannoni@redhat.com>
737
738 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
739 an e500 executable.
740
71b8ef93
MS
7412002-08-21 Michael Snyder <msnyder@redhat.com>
742
743 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
744 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
745 (DEFAULT_MIPS_TYPE): Delete unused macro.
746 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
747 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 748
d174216d
JB
7492002-08-21 Jim Blandy <jimb@redhat.com>
750
751 * valops.c (value_cast): Simplify and correct logic for doing a
752 static cast from a pointer to a base class to a pointer to a
753 derived class.
754
0ab7a791
AC
7552002-08-21 Andrew Cagney <ac131313@redhat.com>
756
757 * infcmd.c (default_print_registers_info): Replace
758 do_registers_info.
759 (registers_info): Use gdbarch_print_registers_info instead of
760 DO_REGISTERS_INFO.
761 * inferior.h (default_print_registers_info): Replace
762 do_registers_info.
763 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
764 (DO_REGISTERS_INFO): Change to a predicate function.
765 * gdbarch.h, gdbarch.c: Regenerate.
766
e23792cc
KS
7672002-08-21 Keith Seitz <keiths@redhat.com>
768
769 * gdb-events.sh: Add target-changed event.
770 * gdb-events.c: Regenerated.
771 * gdb-events.c: Regenerated.
772 * valops.c (value_assign): Add target-changed event notification
773 to inlval_register, lval_memory, and lval_reg_frame_relative.
774
9fb14e79
JB
7752002-08-21 Joel Brobecker <brobecker@gnat.com>
776
777 * NEWS: Add an entry regarding the improvement of the next/step
778 operation on Alpha Tru64 multi-processor machines.
779
6d39a69f
AC
7802002-08-21 Andrew Cagney <ac131313@redhat.com>
781
72acd513
AC
782 * Makefile.in: Update dependencies for mi/ cli/ and tui/
783 directores.
342af04b 784 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
785 * Makefile.in (install-gdbtk): Move to install section.
786 (rdi-share/libangsd.a): Move to end of file.
787
fa5f27c7
AC
7882002-08-19 Andrew Cagney <ac131313@redhat.com>
789
790 * frame.c (frame_register_unwind): When a register, set addrp to
791 the register's byte.
792
5a89d8aa
MS
7932002-08-20 Michael Snyder <msnyder@redhat.com>
794
795 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
796 used locally, so move them from the target machine header to here.
797 (mips_set_processor_type, mips_register_name, mips32_next_pc,
798 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
799 Make static.
800 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
801
822e978b
AC
8022002-08-20 Andrew Cagney <cagney@redhat.com>
803
804 * NEWS: Mention that the Apollo line was made obsolete.
805 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
806 m68*-hp-hpux* obsolete.
807 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
808 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
809 * buildsym.c (make_blockvector): Make static.
810 * buildsym.h (make_blockvector): Make extern declaration obsolete.
811 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
812 (ALLDEPFILES): Remove dstread.c.
813 (dstread.o): Obsolete make rule.
814 * dstread.c: Makefile obsolete.
815 * dst.h: Ditto.
816 * config/m68k/hp300hpux.mt: Ditto.
817 * config/m68k/hp300hpux.mh: Ditto.
818 * config/m68k/hp300bsd.mt: Ditto.
819 * config/m68k/hp300bsd.mh: Ditto.
820 * config/m68k/apollo68b.mt: Ditto.
821 * config/m68k/apollo68v.mh: Ditto.
822 * config/m68k/apollo68b.mh: Ditto.
823
e41b17f0
MS
8242002-08-20 Michael Snyder <msnyder@redhat.com>
825
826 * mips-tdep.c (mips_in_return_stub): Make static.
827 (mips_gdbarch_init): Set in_solib_return_trampoline.
828 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
829
d50355b6
MS
8302002-08-20 Michael Snyder <msnyder@redhat.com>
831
832 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
833 * gdbarch.c, gdbarch.h: Regenerate.
834 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
835 Add.
836 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
837
757a7cc6
MS
8382002-08-20 Michael Snyder <msnyder@redhat.com>
839
840 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
841 (mips_gdbarch_init): Set skip_trampoline_code,
842 in_solib_call_trampoline.
843 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
844 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
845
c8001721
EZ
8462002-08-20 Elena Zannoni <ezannoni@redhat.com>
847
848 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
849
850 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
851 vector type for ev registers.
852 (e500_pseudo_register_read): New function.
853 (e500_pseudo_register_write): New function.
854 (e500_dwarf2_reg_to_regnum): New function.
855 (PPC_UISA_NOFP_SPRS): New macro.
856 (PPC_EV_REGS): New macro.
857 (PPC_GPRS_PSEUDO_REGS): New macro.
858 (registers_e500): New register set for e500.
859 (variants): Add e500 variant.
860 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
861 before setting architectural dependent variations. Initialize ev
862 registers numbers. Add case for e500 architecture. Set the
863 number of pseudo registers.
864
64366f1c
EZ
8652002-08-20 Elena Zannoni <ezannoni@redhat.com>
866
867 * rs6000-tdep.c: Clean up comments.
868
7e78f0ca
AC
8692002-08-20 Andrew Cagney <cagney@redhat.com>
870
871 * h8300-tdep.c: Re-indent file.
872
697f7479
JB
8732002-08-20 Jim Blandy <jimb@redhat.com>
874
875 * Makefile.in (LDFLAGS): Allow the configure script to establish a
876 default for this.
697f7479 877
e86ae29f
KS
8782002-08-20 Keith Seitz <keiths@redhat.com>
879
880 * breakpoints.c (watch_command_1): Use internal breakpoint
881 when setting a watchpoint_scope breakpoint.
882
216b504f
EZ
8832002-08-20 Elena Zannoni <ezannoni@redhat.com>
884
885 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
886 (build_builtin_type_vec64i): Ditto.
887 (build_builtin_type_vec128): Ditto.
888 (build_builtin_type_vec128i): Ditto.
889
f7ab6ec6
MS
8902002-08-19 Michael Snyder <msnyder@redhat.com>
891
892 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
893 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
894 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
895 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
896 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
897 CALL_DUMMY_ADDRESS): Delete.
898 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
899 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
900 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
901 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
902 push_return_address.
903 (mips_register_raw_size, mips_eabi_use_struct_convention,
904 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
905 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
906 mips_init_extra_frame_info, mips_eabi_push_arguments,
907 mips_n32n64_push_arguments, mips_push_return_address,
908 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
909 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
910
b5d1566e
MS
9112002-08-19 Michael Snyder <msnyder@redhat.com>
912
913 * mips-tdep.c (mips_frame_num_args): New function.
914 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
915 frame_saved_pc, frame_args_address, frame_locals_address,
916 frame_num_args, and frame_args_skip.
917 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
918 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
919 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
920 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
921
2f1488ce
MS
9222002-08-20 Michael Snyder <msnyder@redhat.com>
923
924 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
925 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
926 * mips-tdep.c (mips_store_struct_return): New function.
927 (mips_extract_struct_value_address): New function.
928 (mips_gdbarch_init): Set store_struct_return and
929 extract_struct_value_address.
930
41ff2da1
DC
9312002-08-20 David Carlton <carlton@math.stanford.edu>
932
933 * dwarf2read.c (dwarf2_build_psymtabs): Check that
934 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
935 (read_file_scope): Check that line_header is nonzero before
936 decoding macro information.
937
e5451d58
MK
9382002-08-20 Mark Kettenis <kettenis@gnu.org>
939
940 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
941 flag the general-purpose registers as floating-point on targets
942 that don't support the floating-point registers.
943
4a6daafa
EZ
9442002-08-20 Elena Zannoni <ezannoni@redhat.com>
945
946 * rs6000-tdep.c (altivec_register_p): Delete.
947 (rs6000_do_altivec_registers): Delete.
948 (rs6000_altivec_registers_info): Delete.
949 (rs6000_do_registers_info): Delete.
950 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
951 (rs6000_gdbarch_init): Remove setting of do_registers_info.
952
ab4327e0
EZ
9532002-08-20 Elena Zannoni <ezannoni@redhat.com>
954
955 * infcmd.c (do_registers_info): Print vector registers in hex
956 format only.
957 (print_vector_info): Check that printing registers
958 makes sense.
959 (print_float_info): Ditto.
960
cb1d2653
AC
9612002-08-20 Andrew Cagney <ac131313@redhat.com>
962
963 * mips-tdep.c (mips_gdbarch_init): Update.
964 (mips_o32_extract_return_value): Rewrite.
965 (mips_o32_store_return_value): Rewrite.
966 (mips_o32_xfer_return_value): New function.
967 (mips_xfer_register): Tweak debug print message. Allow for
968 buf_offset when dumping the value transfered.
969
dfc3d9b2
AC
9702002-08-20 Andrew Cagney <ac131313@redhat.com>
971
972 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
973 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
974 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
975 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
976 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
977
7807aa61
MS
9782002-08-14 Michael Snyder <msnyder@redhat.com>
979
980 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
981
489461e2
EZ
9822002-08-19 Elena Zannoni <ezannoni@redhat.com>
983
984 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
985 register.
986 (P): New macro to define a register as a pseudo register.
987 (R, R4, R8, R16, FR32, R64, R0): Updated.
988 (struct variant): Add new fields for number of pseudo registers
989 and number of total registers.
990 (tot_num_registers): New macro replacing....
991 (num_registers): ...deleted macro.
992 (num_registers): New function.
993 (num_pseudo_registers): New function.
994 (variants): Update all variants to intialize new fields correctly.
995 Postpone initialization of number of pseudo regs and real regs.
996 (init_variants): New function.
997 (rs6000_gdbarch_init): Initialize variants. Update calculation of
998 registers offsets.
999
fcaffe4c
DC
10002002-08-19 David Carlton <carlton@math.stanford.edu>
1001
2c2738a0
DC
1002 * valops.c (search_struct_field): Change error message to treat
1003 return value of 0 from value_static_field as meaning that field is
1004 optimized out.
1005 (value_struct_elt_for_reference): Ditto.
1006 * values.c (value_static_field): Treat an unresolved location the
1007 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1008 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1009 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1010 * MAINTAINERS: Add self to Write After Approval list.
1011
88658117
AC
10122002-08-19 Andrew Cagney <ac131313@redhat.com>
1013
1014 * mips-tdep.c (mips_xfer_register): New function.
1015 (mips_n32n64_extract_return_value): Rewrite.
1016 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1017 instead of deprecated_extract_return_value.
1018
21283beb
EZ
10192002-08-19 Elena Zannoni <ezannoni@redhat.com>
1020
1021 * rs6000-tdep.c (TDEP): Delete macro.
1022 (branch_dest): Replace use of TDEP macro with its body.
1023 (rs6000_pop_frame): Ditto.
1024 (rs6000_push_arguments): Ditto.
1025 (rs6000_skip_trampoline_code): Ditto.
1026 (rs6000_frame_saved_pc): Ditto.
1027 (rs6000_frame_chain): Ditto.
1028 (rs6000_register_name): Ditto.
1029 (rs6000_register_byte): Ditto.
1030 (rs6000_register_raw_size): Ditto.
1031 (rs6000_register_virtual_type): Ditto.
1032 (rs6000_register_convertible): Ditto.
1033 (rs6000_convert_from_func_ptr_addr): Ditto.
1034
bf072999
DJ
10352002-08-19 Daniel Jacobowitz <drow@mvista.com>
1036
1037 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1038 conditionally.
1039 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1040 MIPS_LINUX_JB_ELEMENT_SIZE.
1041 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1042 for MAX_REGISTER_RAW_SIZE arrays.
1043 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1044 MIPS_LINUX_JB_ELEMENT_SIZE.
1045
9b949a49
PM
10462002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1047
1048 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1049
6d3e79c6
AS
10502002-08-19 Aidan Skinner <aidan@velvet.net>
1051
1052 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1053 ada-valprint.c ada-tasks.c.
1054 (YYFILES): Add ada-exp.y.
1055 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1056 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1057 (ada-exp.tab.o): New target.
1058
06c0b04e
AC
10592002-08-18 Andrew Cagney <ac131313@redhat.com>
1060
1061 * regcache.c (regcache_xfer_part): New function.
1062 (regcache_raw_read_part): New function.
1063 (regcache_raw_write_part): New function.
1064 (regcache_cooked_read_part): New function.
1065 (regcache_cooked_write_part): New function.
1066 * regcache.h (regcache_raw_read_part): Declare.
1067 (regcache_raw_write_part): Declare.
1068 (regcache_cooked_read_part): Declare.
1069 (regcache_cooked_write_part): Declare.
1070
92d1e331
DJ
10712002-08-18 Daniel Jacobowitz <drow@mvista.com>
1072
1073 * remote.c (remote_open_1): Add async_p.
1074 (remote_async_open_1): Delete.
1075 (open_remote_target): Delete.
1076 (remote_open, extended_remote_open): Update calls to remote_open_1.
1077 (remote_async_open, extended_remote_async_open): Call
1078 remote_open_1 instead of remote_async_open_1.
1079
247055de
MK
10802002-08-19 Mark Kettenis <kettenis@gnu.org>
1081
1082 * blockframe.c: Fix a few coding standard violations.
1083
641eda39
MK
10842002-08-19 Mark Kettenis <kettenis@gnu.org>
1085
0b717710
MK
1086 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1087 here from ...
1088 * config/i386/tm-i386sco5.h: ... here. File removed.
1089 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1090
26d28e12 1091 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1092 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1093 (TM_FILE): Set to tm-i386.h.
1094 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1095 * config/i386/tm-i386v.h: Remove file.
1096 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1097 instead of "i386/tm-i386v.h".
1098 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1099 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1100 "i386/tm-i386v.h".
1101 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1102 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1103 "i386/tm-i386.h".
1104
d4e0bab4
MK
11052002-08-18 Mark Kettenis <kettenis@gnu.org>
1106
1107 * config/i386/nm-i386v.h: Add protection against
1108 multiple-inclusion.
1109 (i386_register_u_addr): Remove prototype.
1110 (register_u_addr): New prototype.
1111 (REGISTER_U_ADDR): Redefine accordingly.
1112 * i386v-nat.c: Improve several comments.
1113 (i386_register_u_addr): Change signature and rename to
1114 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1115 ubase variable.
1116
46cac009
AC
11172002-08-18 Andrew Cagney <ac131313@redhat.com>
1118
1119 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1120 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1121 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1122 deprecated_extract_return_value.
1123 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1124 rename mips_o32o64_push_arguments.
1125 (mips_gdbarch_init): Update.
1126 (mips_extract_return_value): Delete.
1127 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1128 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1129 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1130 (mips_n32n64_extract_return_value): Clone
1131 mips_extract_return_value.
1132 (mips_store_return_value): Delete.
1133 (mips_o32_store_return_value): Clone mips_store_return_value.
1134 (mips_o64_store_return_value): Clone mips_store_return_value.
1135 (mips_eabi_store_return_value): Clone mips_store_return_value.
1136 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1137
d2e4a39e
AS
11382002-08-18 Aidan Skinner <aidan@velvet.net>
1139
0c30c098
AS
1140 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1141 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1142
11432002-08-18 Aidan Skinner <aidan@velvet.net>
1144
1145 * ada-lang.c: Run through gdb_indent.sh.
1146 * ada-lang.h: Run through gdb_indent.sh.
1147 * ada-tasks.c: Run through gdb_indent.sh.
1148 * ada-typeprint.c: Run through gdb_indent.sh.
1149 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1150
01fc4e33
AC
11512002-08-18 Andrew Cagney <ac131313@redhat.com>
1152
1153 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1154 ABI.
1155
d8ee244c
MK
11562002-08-18 Mark Kettenis <kettenis@gnu.org>
1157
c38d8261
MK
1158 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1159
222db64c
MK
1160 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1161 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1162
c2848c82
MK
1163 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1164 write_register_gen instead of write_register_bytes.
1165
d8ee244c
MK
1166 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1167 i[3456]-*-osf1mk* configurations have been made obsolete.
1168 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1169 i[3456]86-*-osf1mk* hosts obsolete.
1170 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1171 targets obsolete.
1172 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1173 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1174 config/i386/i386m3.mt, config/i386/nm-m3.h,
1175 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1176 config/i386/i386mk.mh, config/i386/i386mk.mt,
1177 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1178 obsolete.
1179 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1180 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1181 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1182
61d8d407
AC
11832002-08-18 Andrew Cagney <ac131313@redhat.com>
1184
1185 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1186 (hppa_value_returned_from_stack): Declare.
1187 (hppa_extract_return_value): Declare.
1188 * config/pa/hppa.mt: New file.
1189 * configure.tgt: Recognize hppa*-*-*.
1190 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1191
0c52bd59
MK
11922002-08-18 Mark Kettenis <kettenis@gnu.org>
1193
1194 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1195 comment.
1196
b5686e99
MK
11972002-08-17 Mark Kettenis <kettenis@gnu.org>
1198
1199 * top.c (gdb_rl_operate_and_get_next): Make sure
1200 operate-and-get-next functions correctly even when the history
1201 list is completely filled.
1202
c1bab85b
AC
12032002-08-18 Andrew Cagney <ac131313@redhat.com>
1204
1205 * MAINTAINERS (Target Instruction Set Architectures): Rename
1206 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1207 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1208 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1209 already listed under Host/Native.
1210
1211 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1212 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1213 mips*-*-*.
1214
32089c7c
AC
12152002-08-17 Andrew Cagney <ac131313@redhat.com>
1216
1217 * config/ia64/ia64.mt: New file.
1218 * config/alpha/alpha.mt: New file.
1219 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1220 ia64-linux-gnu. Mention that ia64-elf is broken.
1221 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1222
b4671f85
MK
12232002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1224
1225 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1226 generic_func_frame_valid instead of func_frame_valid.
1227
c8edd8b4
JB
12282002-08-16 Joel Brobecker <brobecker@gnat.com>
1229
1230 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1231 procfs appears to be broken when debugging on multi-processor
1232 machines. So enable software single stepping in order to avoid
1233 using the procfs interface to do next/step operations, using
1234 internal breakpoints instead.
1235
1236 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1237 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1238 make this pc address equal to the value it would have if the
1239 system stepping capability was used. Also set a new flag used
1240 to ensure that we don't readjust the PC one more time later.
1241
1242 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1243 address by DECR_PC_AFTER_BREAK when software single step is
1244 in use for this architecture, as this has already been taken
1245 care of in handle_inferior_event().
1246
238617f6
JB
12472002-08-16 Joel Brobecker <brobecker@gnat.com>
1248
1249 * infrun.c (handle_inferior_event): Minor reformatting, to make
1250 a rather long condition expression easier to read.
1251
541a7aac
AC
12522002-08-16 Andrew Cagney <ac131313@redhat.com>
1253
1254 * Makefile.in (gdbtk.o): Move to end of file.
1255 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1256 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1257 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1258 (gdbtk-wrapper.o, gdbres.o): Ditto.
1259
f92d4a7b
AC
12602002-08-16 Andrew Cagney <ac131313@redhat.com>
1261
1262 * Makefile.in (copying.o): Separate out compile rule.
1263 (hpux-thread.o, procfs.o, signals.o): Ditto.
1264 (v850ice.o, z8k-tdep.o): Ditto.
1265 (tui-file.o): Move to TUI section.
1266 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1267 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1268
1cce71eb
JB
12692002-08-16 Joel Brobecker <brobecker@gnat.com>
1270
1271 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1272 skip_trampoline_code, for better namespace-proofing.
1273
1274 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1275
0851f23d
JB
12762002-08-16 Joel Brobecker <brobecker@gnat.com>
1277
1278 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1279
f8d40ec8
JB
12802002-08-16 Joel Brobecker <brobecker@gnat.com>
1281
1282 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1283 signal, check whether we hit a breakpoint before checking for a
1284 single step breakpoint. Otherwise, GDB fails to notice that a
1285 breakpoint has been hit when stepping onto a breakpoint.
1286
63d022e0
KS
12872002-08-16 Keith Seitz <keiths@redhat.com>
1288
1289 * gdb-events.sh (clear_gdb_event_hooks): New function.
1290 * gdb-events.c: Regenerate.
1291 * gdb-events.h: Regenerate.
1292
6e31adb3
AC
12932002-08-16 Andrew Cagney <ac131313@redhat.com>
1294
1295 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1296 not_a_sw_breakpoint.
1297 * breakpoint.h (bpstat_stop_status): Add parameter names.
1298
c8189ed1
GS
12992002-08-16 Grace Sainsbury <graces@redhat.com>
1300
1301 * remote.c (remote_insert_hw_breakpoint)
1302 (remote_remove_hw_breakpoint): Fix calculation of length field
1303 for Z-packet.
1304
d05285fa
MS
13052002-08-15 Michael Snyder <msnyder@redhat.com>
1306
466d7106
MS
1307 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1308 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1309 (supply_fpregset): Ditto.
1310
d05285fa
MS
1311 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1312 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1313 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1314 (TARGET_READ_SP): Delete.
bf1f5b4c 1315 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1316 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1317 Delete.
1318 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1319 from macros to functions.
bf1f5b4c 1320
d05285fa
MS
1321 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1322 (mips_register_convertible, mips_register_convert_to_virtual,
1323 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1324 (mips_read_sp): New function.
1325 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1326 (mips_do_registers_info): Make static.
1327 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1328 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1329 (mips_register_convert_from_type, mips_register_convert_to_type):
1330 New functions.
1331 (mips_gdbarch_init): Set up function_start_offset,
1332 register_virtual_size, pc_in_sigtramp.
d05285fa 1333
e76f1f2e
AC
13342002-08-15 Andrew Cagney <ac131313@redhat.com>
1335
1336 * infcmd.c (vector_info): New function.
1337 (_initialize_infcmd): Add command "info vector".
1338 (print_vector_info): New function.
1339
1340 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1341 * gdbarch.h, gdbarch.c: Regenerate.
1342
4782dc19
AC
13432002-08-15 Andrew Cagney <ac131313@redhat.com>
1344
1345 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1346 ``print_all''. Only print vector registers when ``print_all''.
1347
23e3a7ac
AC
13482002-08-15 Andrew Cagney <ac131313@redhat.com>
1349
8e186fd6
AC
1350 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1351 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1352
23e3a7ac
AC
1353 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1354 Add `args' parameter.
1355 * gdbarch.h, gdbarch.c: Regenerate.
1356
1357 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1358
1359 * infcmd.c (float_info): Call print_float_info.
1360 (print_float_info): New function. By default, print the
1361 floating-point registers.
1362
1363 * arch-utils.h (default_print_float_info): Delete declaration.
1364 * arch-utils.c (default_print_float_info): Delete function.
1365
e0ca2bb9
MK
13662002-08-16 Mark Kettenis <kettenis@gnu.org>
1367
3f733acc
MK
1368 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1369 out define.
1370
7d8d2918
MK
1371 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1372 FRAME.
1373
1c7cc583
MK
1374 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1375 * configure.host: Make i[3456]86-*-aix host obsolete.
1376 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1377 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1378 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1379 config/i386/xm-i386aix.h: Make files obsolete.
1380 * i386aix-nat.c: Make file obsolete.
1381 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1382 (i386aix-nat.o): Make target obsolete.
1383
e0ca2bb9
MK
1384 * config/i386/nm-gnu.h: Removed.
1385 * config/i386/nm-i386gnu.h: New file.
1386 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1387 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1388 Moved here from ...
1389 * config/i386/tm-i386gnu.h: ... here. Removed.
1390 * config/i386/xm-i386gnu.h: Removed.
1391 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1392 (NAT_FILE): Set to nm-i386gnu.h.
1393 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1394 * i386-tdep.c: New file.
1395 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1396 (i386gnu-tdep.o): Specify dependencies.
1397
16057ec7 13982002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1399
6b99ee2e
MK
1400 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1401 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1402 Adjust a few comments to reflect reality a bit closer.
1403 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1404 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1405 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1406 target_insert_watchpoint, target_remove_watchpoint):
1407 Move defines to ...
1408 * config/i386/nm-i386sco5.h: ... here.
1409 (kernel_u_size): Add prototype. Improve a few comments and add
1410 protection against multiple inclusion.
1411
d9a6f65c
MK
1412 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1413 out define.
1414
047eff6a
MK
1415 * uw-thread.c (SP_ARG0): Define if not already defined.
1416 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1417
dcdb1290
MK
1418 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1419
5d2d0b2a
MK
1420 * config/i386/tm-i386.h: Don't include "regcache.h".
1421
61113f8b
MK
1422 * i387-tdep.h (i387_print_float_info): New prototype.
1423 * i387-tdep.c (print_i387_value, print_i387_ext,
1424 print_i387_status_word, print_i387_control_word): Add `struct
1425 ui_file *' argument and use it for output.
1426 (i387_print_float_info): Renamed from i387_float_info. Add
1427 `struct gdbarch *' and `struct ui_file *' arguments and use the
1428 latter for output.
1429 * i386-tdep.c: Include "i387-tdep.h".
1430 (i386_gdbarch_init): Set print_float_info.
1431 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1432 (FLOAT_INFO): Remove define.
1433
46e0f506
MS
14342002-08-13 Michael Snyder <msnyder@redhat.com>
1435
1436 * mips-tdep.c (mips_push_arguments): Rename to
1437 mips_eabi_push_arguments, and tune for EABI.
1438 (MIPS_REGS_HAVE_HOME_P): Delete.
1439 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1440 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1441 Delete references to mips_regs_have_home_p.
1442
409268de
KS
14432002-08-14 Keith Seitz <keiths@redhat.com>
1444
1445 * Makefile.in (install-gdbtk): Create insight plugin directory.
1446 Install plugins.tcl file.
1447
ffc6a242
KS
14482002-08-14 Keith Seitz <keiths@redhat.com>
1449
1450 * configure.in: Move SUBDIRS to near top of the file so that
1451 --enable options may add things to it.
1452 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1453 * configure: Regenerate.
1454
ebafbe83
MS
14552002-08-13 Michael Snyder <msnyder@redhat.com>
1456
1457 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1458 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1459 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1460
32f6f25d
AC
14612002-08-13 Andrew Cagney <ac131313@redhat.com>
1462
1463 * vax-tdep.c (vax_get_saved_register): Delete function.
1464 (vax_gdbarch_init): Update.
1465 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1466 (ns32k_gdbarch_init): Update.
1467 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1468 (alpha_gdbarch_init): Update.
1469
53826de9
AC
14702002-08-13 Andrew Cagney <cagney@redhat.com>
1471
1472 * regcache.c (init_regcache_descr): Overallocate the
1473 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1474 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1475 nr_raw_registers.
1476 (set_register_cached): Add range checking assertions. Use
1477 current_regcache.
1478
16057ec7 14792002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1480
1481 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1482 numbers for MMX registers.
1483
7b4c2dce
AC
14842002-08-13 Andrew Cagney <cagney@redhat.com>
1485
1486 * i386-tdep.c (i386_gdbarch_init): Use
1487 generic_unwind_get_saved_register.
1488
1e03ad20
KB
14892002-08-13 Kevin Buettner <kevinb@redhat.com>
1490
1491 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1492 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1493 target vector.
1494 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1495 Delete. Add comment regarding this now-deleted target method.
1496
548bcbec
SC
14972002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1498
1499 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1500 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1501 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1502 real PC and the page number (if it's within the memory bank window).
1503 (m68hc11_pseudo_register_write): Likewise when saving.
1504 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1505 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1506 (m68hc11_register_raw_size): And use 32-bit for it.
1507 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1508 16K memory bank is used by the prog; also use the virtual pc.
1509
7df11f59
SC
15102002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1511
1512 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1513 (m68hc11_gdbarch_init): Install it in gdbarch.
1514 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1515 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1516 (MSYMBOL_SIZE): New for documentation.
1517 (insn_return_kind): Enum to specify how a function returns.
1518 (frame_extra_info): Cleanup and record the return mode.
1519 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1520 register in address computation.
1521 (m68hc11_get_return_insn): New to obtain the return instruction used
1522 by the function.
1523 (m68hc11_frame_init_saved_regs): Take into account the return
1524 instruction used by the function for far and interrupt functions.
1525 (m68hc11_init_extra_frame_info): Take into account page register.
1526 (m68hc11_frame_args_address): Adjust according to the return mode.
1527 (show_regs): Print page register only when it's used.
1528
5706502a
SC
15292002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1530
1531 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1532 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1533 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1534 registers.
1535 (m68hc11_register_raw_size): Likewise.
1536
28fc6740
AC
15372002-08-13 Andrew Cagney <cagney@redhat.com>
1538
1539 * i386-tdep.c (i386_register_name): Handle mmx registers.
1540 (mmx_regnum_p): New function.
1541 (i386_mmx_names): New array.
1542 (mmx_num_regs): New variable.
1543 (i386_pseudo_register_read): New function.
1544 (i386_pseudo_register_write): New function.
1545 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1546
1547 * regcache.c (regcache_raw_read_unsigned): New function.
1548 (regcache_raw_read_signed): New function.
1549 * regcache.h (regcache_raw_read_unsigned): Declare.
1550 (regcache_raw_read_signed): Declare.
1551
a378f419
AC
15522002-08-13 Andrew Cagney <cagney@redhat.com>
1553
1554 * regcache.c (regcache_raw_read_as_address): Delete function.
1555 (regcache_cooked_read_signed): New function.
1556 (regcache_cooked_read_unsigned): New function.
1557 * regcache.h (regcache_cooked_read_signed): Declare.
1558 (regcache_cooked_read_unsigned): Declare.
1559 (regcache_raw_read_as_address): Delete declaration.
1560
1561 * blockframe.c (generic_read_register_dummy): Use
1562 regcache_cooked_read_unsigned.
1563 * i386-tdep.c (i386_extract_struct_value_address): Use
1564 regcache_cooked_read_unsigned.
1565
81967506
SC
15662002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1567
1568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1569 double sizes according to ELF ABI flags.
1570 (gdbarch_tdep): Record elf_flags.
1571
ffe1f3ee
SC
15722002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1573
1574 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1575 (m6812_prolog): They can appear in 68HC12 function prologue.
1576 (m68hc11_frame_chain): Cleanup.
1577
98216c5d
AC
15782002-08-12 Andrew Cagney <cagney@redhat.com>
1579
1580 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1581 declarations.
1582 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1583 (i386_linux_register_raw_size): Delete function.
1584 (i386_linux_init_abi): Update.
1585 * i386-tdep.c (i386_register_raw_size): Delete function.
1586 (i386_register_byte): Delete function.
1587 (i386_gdbarch_init): Update.
1588 (i386_register_size): Delete array.
1589 (i386_register_offset): Delete array.
1590
1591 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1592 (REGISTER_RAW_SIZE): Delete macro.
1593 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1594 (REGISTER_BYTE): Delete macro.
1595
3b19021e
AS
15962002-08-11 Aidan Skinner <aidan@velvet.net>
1597
1598 * ada-lang.c (ada_lookup_partial_symbol)
1599 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1600 prototype names so that grep ^func works properly.
1601
1602 * ada-lang.c (ada_array_element_type)
1603 (ada_lookup_partial_symbol): Fix typos in parameter list.
1604
1605 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1606 Fix prototype names so that grep ^func works properly.
1607
b063e7a2
AC
16082002-08-10 Andrew Cagney <cagney@redhat.com>
1609 Elena Zannoni <ezannoni@redhat.com>
1610 Martin M. Hunt <hunt@redhat.com>
1611
1612 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1613 (build_builtin_type_vec128i): Set the vector bit.
1614 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1615 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1616 (build_builtin_type_vec64): New function.
1617 (build_builtin_type_vec64i): New function.
1618 (build_gdbtypes): Initialize builtin_type_vec64 and
1619 builtin_type_vec64i.
1620
a7e3c2ad
AC
16212002-08-09 Andrew Cagney <cagney@redhat.com>
1622
1623 * regcache.c (regcache_dump): Compare the register offset
1624 with REGISTER_BYTE.
1625 * arch-utils.c (generic_register_byte): New function.
1626 * arch-utils.h (generic_register_byte): Declare.
1627 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1628 * gdbarch.h, gdbarch.c: Regenerate.
1629
af030b9a
AC
16302002-08-09 Andrew Cagney <cagney@redhat.com>
1631
1632 * regcache.c: Include "gdbcmd.h"
1633 (_initialize_regcache): Add commands "maintenance print
1634 registers", "maintenance print raw-registers" and "maintenance
1635 print cooked-registers".
1636 (enum regcache_dump_what): Define.
1637 (dump_endian_bytes): New function.
1638 (regcache_dump): New function.
1639 (regcache_print): New function.
1640 (maintenance_print_registers): New function.
1641 (maintenance_print_raw_registers): New function.
1642 (maintenance_print_cooked_registers): New function.
1643 * Makefile.in (regcache.o): Update dependencies.
1644
cb3d25d1
MS
16452002-08-09 Michael Snyder <msnyder@redhat.com>
1646
1647 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1648 (mips_push_arguments): Correct some comments. Use paddr_nz
1649 for printing addresses in debug output. Replace static
1650 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1651 (mips_n32n64_push_arguments): New function, cloned from
1652 mips_push_arguments and tuned for the n32/n64 ABI.
1653 (mips_push_register): Buffer needs dynamic allocation.
1654 (mips_print_register): Ditto.
1655 (do_gp_register_row): Ditto.
1656 (mips_store_return_value): Ditto.
1657 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1658
2163ab9d
DH
16592002-08-09 Don Howard <dhoward@redhat.com>
1660
1661 * memattr.c (mem_info_command): Print special case of upper bound
1662 as max CORE_ADDR + 1.
1663
b78bcb18
MS
16642002-08-08 Michael Snyder <msnyder@redhat.com>
1665
1666 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1667 returns structs by ref if they're too big to fit in two registers.
1668
ffabd70d
KB
16692002-08-09 Kevin Buettner <kevinb@redhat.com>
1670
1671 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1672 saved regs value.
1673 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1674 mips_find_saved_regs().
1675 (mips_pop_frame): Likewise.
1676
fbcdb4a3
KB
16772002-08-09 Kevin Buettner <kevinb@redhat.com>
1678
1679 * blockframe.c (frame_saved_regs_register_unwind): Revise
1680 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1681 frames are in use.
1682
3c3bea1c
GS
16832002-08-09 Grace Sainsbury <graces@redhat.com>
1684
1685 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1686 T-packets; the 'a' is not taken as a register number.
1687 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1688 (remote_stopped_data_address): New functions; add to target
1689 vector.
1690 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1691 prototypes to match other implementations of this
1692 function. replace integer argument with pointer -- the length
1693 field in the Z-packet is the length of what is pointed to or 1 if
1694 pointer is null. Add to target vector.
1695 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1696 target vector.
1697
1698 From Mark Salter:
1699 * remote.c (remote_wait): Add support to extract optional
1700 watchpoint information from T-packet. Ignore unrecognized
1701 optional info in T-packet.
1702 (remote_async_wait): Ditto.
1703
5d1d95de
CV
17042002-08-09 Corinna Vinschen <vinschen@redhat.com>
1705
1706 * cli/cli-dump.c: Change fopen modes to use binary open modes
1707 as defined in include/fopen-bin.h throughout.
1708
c86b5b38
MS
17092002-08-08 Michael Snyder <msnyder@redhat.com>
1710
1711 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1712
b30590dc
KB
17132002-08-08 Kevin Buettner <kevinb@redhat.com>
1714
1715 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1716 assertion failure by returning early after a warning.
1717
498868ed
KB
17182002-08-08 Kevin Buettner <kevinb@redhat.com>
1719
1720 * mips-tdep.c (mips_find_saved_regs): Make static.
1721 (mips_frame_init_saved_regs): New function.
1722 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1723 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1724 (mips_find_saved_regs): Delete declaration.
1725
b2dd6311
GS
17262002-08-08 Grace Sainsbury <graces@redhat.com>
1727
3c3bea1c
GS
1728 * remote.c (remote_wait, remote_async_wait): Change
1729 thread_num from int to ULONGEST.
1730 (unpack_varlen_hex): Change result parameter from
1731 int * to ULONGEST *.
b2dd6311 1732
ea47855f
AC
17332002-08-08 Andrew Cagney <ac131313@redhat.com>
1734
1735 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1736 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1737 powerpc*-*-*.
1738 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1739
69db8bae
AC
17402002-08-08 Andrew Cagney <cagney@redhat.com>
1741
1742 * gcore.c (override_derive_stack_segment): Delete variable.
1743 (preempt_derive_stack_segment): Delete function.
1744 (derive_stack_segment): Delete function.
1745 (default_derive_stack_segment): Renamed to derive_stack_segment.
1746 (override_derive_heap_segment): Delete variable.
1747 (preempt_derive_heap_segment): Delete function.
1748 (derive_heap_segment): Delete function.
1749 (default_derive_heap_segment): Rename to derive_heap_segment.
1750
cb811fe7
MS
17512002-08-06 Michael Snyder <msnyder@redhat.com>
1752
1753 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1754 * mips-tdep.c (mips_EABI_use_struct_convention,
1755 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1756 New functions. (mips_use_struct_convention): Delete.
1757 (mips_gdbarch_init): set use_gdbarch_convention.
1758
8b389c40
MS
17592002-08-06 Michael Snyder <msnyder@redhat.com>
1760
1761 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1762 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1763 mips_o32_reg_struct_has_addr): New functions.
1764 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1765
5c27f28a
AC
17662002-08-07 Andrew Cagney <ac131313@redhat.com>
1767
1768 * regcache.c (pseudo_register): Delete function.
1769 (fetch_register): Delete function.
1770 (store_register): Delete function.
1771 (regcache_raw_read, legacy_read_register_gen): Use
1772 target_fetch_registers instead of fetch_register.
1773 (legacy_write_register_gen, regcache_raw_write): Use
1774 target_store_register instead of store_register.
1775 (write_register_bytes): Ditto.
1776
1777 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1778 (STORE_PSEUDO_REGISTER): Delete.
1779 * gdbarch.h, gdbarch.c: Regenerate.
1780
5b331675
CV
17812002-08-06 Corinna Vinschen <vinschen@redhat.com>
1782
1783 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1784 write dump file binary.
1785
6acdf5c7
MS
17862002-08-05 Michael Snyder <msnyder@redhat.com>
1787
1788 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1789 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1790 (mips_gdbarch_init): Set N32 target to be mips64.
1791
b2f01c35
KB
17922002-08-06 Kevin Buettner <kevinb@redhat.com>
1793
1794 * frame.c (find_saved_register): Break out of loop once saved
1795 register address is found. Don't mention sparc in loop comment
1796 anymore.
1797
63db5580
KB
17982002-08-06 Kevin Buettner <kevinb@redhat.com>
1799
1800 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1801 mips_default_saved_regsize to 8.
1802
5e34e75e
AC
18032002-08-06 Andrew Cagney <ac131313@redhat.com>
1804
1805 * gcore.c: Do not include <sys/procfs.h>.
1806 * Makefile.in (gcore.o): Update dependencies.
1807
eb4c54a2
AC
18082002-08-06 Andrew Cagney <cagney@redhat.com>
1809
1810 * configure.tgt: Make arc-*-* obsolete.
1811 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1812 * MAINTAINERS: Make arc-elf obsolete.
1813 * arc-tdep.c: Make file obsolete.
1814 * config/arc/arc.mt: Ditto.
1815 * config/arc/tm-arc.h: Ditto.
1816
ced15480
TR
18172002-08-05 Theodore A. Roth <troth@verinet.com>
1818
c1bab85b 1819 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1820
b4743822
AC
18212002-08-05 Andrew Cagney <ac131313@redhat.com>
1822
1823 * mcore-tdep.c (mcore_gdbarch_init): Use
1824 generic_unwind_get_saved_register instead of
1825 generic_get_saved_register.
1826 * v850-tdep.c (v850_gdbarch_init): Ditto.
1827 * frv-tdep.c (frv_gdbarch_init): Ditto.
1828 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1829 * s390-tdep.c (s390_gdbarch_init): Ditto.
1830 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1831 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1832 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1833
3956d554
JB
18342002-08-05 Joel Brobecker <brobecker@gnat.com>
1835
1836 * objfiles.h: Add missing #include "symfile.h"
1837
1838 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1839
8249c0d6
AC
18402002-08-04 Andrew Cagney <ac131313@redhat.com>
1841
1842 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1843 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1844 of FIELD_BITSIZE.
1845
b9d14705
DJ
18462002-08-04 Daniel Jacobowitz <drow@mvista.com>
1847
1848 * NEWS: Cleanup and nitpick.
1849
dd73b9bb
AC
18502002-08-03 Andrew Cagney <ac131313@redhat.com>
1851
1852 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1853
043a27f8
AC
18542002-08-03 Andrew Cagney <ac131313@redhat.com>
1855
1856 * Makefile.in (gdbtk-bp.o): Update dependencies.
1857 (gdbtk-register.o): Ditto.
1858 (gdbtk-varobj.o): Ditto.
1859
46ce284d
AC
18602002-08-03 Andrew Cagney <cagney@redhat.com>
1861
1862 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1863 m68hc11_fetch_pseudo_register.
1864 (m68hc11_pseudo_register_write): Replace
1865 m68hc11_store_pseudo_register.
1866 (m68hc11_gdbarch_init): Update.
1867
b66d6d2e
AC
1868Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1869
1870 * gdbarch.sh: Include "gdb_string.h".
1871 * gdbarch.c: Regenerate.
1872
1873 * regcache.c: Include "gdb_string.h".
1874 * ax-general.c: Ditto.
1875 * varobj.c: Ditto.
1876 * std-regs.c: Ditto.
1877 * fbsd-proc.c: Ditto.
1878 * thread.c: Ditto.
1879
1880 * Makefile.in (regcache.o): Update dependencies.
1881 (thread.o, gdbarch.o): Ditto.
1882 (ax-general.o, gdbarch.o): Ditto.
1883 (varobj.o, std-regs.o): Ditto.
1884 (fbsd-proc.o): Specify dependencies.
1885
29e1842b
AC
18862002-08-02 Andrew Cagney <cagney@redhat.com>
1887
1888 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1889 regnum.
1890 (regcache_cooked_write): Ditto.
1891
68365089
AC
18922002-08-02 Andrew Cagney <ac131313@redhat.com>
1893
1894 * regcache.c (regcache_cooked_read): New function.
1895 (regcache_cooked_write): New function.
1896 (read_register_gen): Rewrite using regcache_cooked_read.
1897 (write_register_gen): Rewrite using regcache_cooked_write.
1898
1899 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1900 Declare.
1901
d8124050
AC
19022002-08-02 Andrew Cagney <cagney@redhat.com>
1903
1904 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1905 Replace the architecture methods register_read and register_write.
1906 * gdbarch.h, gdbarch.c: Regenerate.
1907 * regcache.c (init_regcache_descr): Update.
1908 (read_register_gen): Update.
1909 (write_register_gen): Update.
1910 (supply_register): Update comment.
1911
1912 * sh-tdep.c (sh_gdbarch_init): Update.
1913 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1914 `regcache' and `gdbarch' parameters. Make `buffer' a void
1915 pointer. Update code.
1916 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1917 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1918 void pointer. Update code.
1919 (sh64_register_write): Delete.
1920 (sh4_register_read): Delete.
1921 (sh64_register_read): Delete.
1922 (sh4_register_write): Delete.
1923 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1924 void pointer, `to' parameter a void pointer.
1925 (sh_sh64_register_convert_to_raw): Ditto.
1926
a6425924
KB
19272002-08-01 Kevin Buettner <kevinb@redhat.com>
1928
1929 * mips-tdep.c (mips_register_virtual_type): Use architecture
1930 invariant return values.
1931
ff5922b5
AC
19322002-08-01 Andrew Cagney <cagney@redhat.com>
1933
1934 * linux-proc.c: Include "gdb_string.h".
1935 * Makefile.in (linux-proc.o): Update dependency list.
1936
32a6503c
KB
19372002-08-01 Kevin Buettner <kevinb@redhat.com>
1938
1939 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1940 comment.
1941
ccaa32c7
GS
19422002-08-01 Grace Sainsbury <graces@redhat.com>
1943
1944 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1945 to_insert_watchpoint, to_remove_watchpoint,
1946 to_stopped_by_watchpoint, to_stopped_data_address,
1947 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1948 target vecctor. Define their corresponding macros so they call
1949 them.
1950
1951 * target.c: Add default and debug versions of for
1952 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1953 to_insert_watchpoint, to_remove_watchpoint,
1954 to_stopped_by_watchpoint, to_stopped_data_address,
1955 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1956
78fde5f8
KB
19572002-08-01 Kevin Buettner <kevinb@redhat.com>
1958
1959 * mips-tdep.c (mips_register_virtual_type): New function.
1960 (mips_gdbarch_init): Register mips_register_virtual_type()
1961 with gdbarch machinery.
1962 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1963 this file instead of tm-bigmips.h.
1964 (MIPS_REGSIZE): Delete this macro.
1965 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1966 multiarch version in mips-tdep.c will be found.
1967
db034ac5
AC
19682002-08-01 Andrew Cagney <cagney@redhat.com>
1969
1970 * NEWS: Menion that CHILL has been made obsolete.
1971
1972 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1973 * stabsread.c (read_range_type): Ditto.
1974 * gdbtypes.h: Ditto.
1975 * language.c (binop_type_check): Ditto.
1976 (binop_result_type): Ditto.
1977 (integral_type): Ditto.
1978 (character_type): Ditto.
1979 (string_type): Ditto.
1980 (boolean_type): Ditto.
1981 (structured_type): Ditto.
1982 (lang_bool_type): Ditto.
1983 (binop_type_check): Ditto.
1984 * language.h (_LANG_chill): Ditto.
1985 * dwarfread.c (set_cu_language): Ditto.
1986 * dwarfread.c (CHILL_PRODUCER): Ditto.
1987 * dwarfread.c (handle_producer): Ditto.
1988 * expression.h (enum exp_opcode): Ditto.
1989 * eval.c: Ditto for comments.
1990 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1991 * expprint.c (print_subexp): Ditto.
1992 (print_subexp): Ditto.
1993 * valops.c (value_cast): Ditto.
1994 (search_struct_field): Ditto.
1995 * value.h (COERCE_VARYING_ARRAY): Ditto.
1996 * symfile.c (init_filename_language_table): Ditto.
1997 (add_psymbol_with_dem_name_to_list): Ditto.
1998 * valarith.c (value_binop): Ditto.
1999 (value_neg): Ditto.
2000 * valops.c (value_slice): Ditto.
2001 * symtab.h (union language_specific): Ditto.
2002 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2003 (SYMBOL_DEMANGLED_NAME): Ditto.
2004 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2005 * defs.h (enum language): Ditto.
2006 * symtab.c (got_symtab): Ditto.
2007 * utils.c (fprintf_symbol_filtered): Ditto.
2008
2009 * ch-typeprint.c: Make file obsolete.
2010 * ch-valprint.c: Make file obsolete.
2011 * ch-lang.h: Make file obsolete.
2012 * ch-exp.c: Make file obsolete.
2013 * ch-lang.c: Make file obsolete.
2014
2015 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2016 CHILL_LIB.
2017 (TARGET_FLAGS_TO_PASS): Ditto.
2018 (CHILLFLAGS): Obsolete.
2019 (CHILL): Obsolete.
2020 (CHILL_FOR_TARGET): Obsolete.
2021 (CHILL_LIB): Obsolete.
2022 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2023 ch-valprint.c.
2024 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2025 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2026 ch-lang.o.
2027 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2028 targets.
2029
8aaf0b47
JB
20302002-07-31 Joel Brobecker <brobecker@gnat.com>
2031
2032 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2033 This does not change anything at the moment, but will be helpful
2034 later when full Ada support is integrated.
2035
f3a7b3a5
KB
20362002-07-31 Kevin Buettner <kevinb@redhat.com>
2037
2038 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2039 help message.
2040
fb850278
KB
20412002-07-31 Kevin Buettner <kevinb@redhat.com>
2042
2043 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2044 and save it in a local variable. Use variable in later test.
2045
e3bddbfa
KB
20462002-07-31 Kevin Buettner <kevinb@redhat.com>
2047
2048 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2049 test. (Thanks to Daniel Jacobowitz.)
2050
28d169de
KB
20512002-07-31 Kevin Buettner <kevinb@redhat.com>
2052
2053 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2054 (mips_abi_strings): Add "n64".
2055 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2056
7fe7e44e
KB
20572002-07-31 Kevin Buettner <kevinb@redhat.com>
2058
2059 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2060 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2061
c6caf090
KB
20622002-07-31 Kevin Buettner <kevinb@redhat.com>
2063
2064 * utils.c (host_pointer_to_address, address_to_host_pointer):
2065 Use gdb_assert() instead of explicit call to internal_error().
2066
c41669e0
KB
20672002-07-30 Kevin Buettner <kevinb@redhat.com>
2068
2069 * Makefile.in (rs6000-nat.o): Update dependencies.
2070
2071 From Nicholas Duffek:
2072 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2073 (aix-thread.o): New rule.
2074 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2075 * config/powerpc/aix432.mh: New file.
2076
2fda4977
DJ
20772002-07-30 Daniel Jacobowitz <drow@mvista.com>
2078
2079 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2080 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2081 (fetch_core_registers, ppc_linux_supply_gregset)
2082 (ppc_linux_supply_fpregset): New functions.
2083 (ppc_linux_regset_core_fns): New.
2084 (_initialize_ppc_linux_tdep): Call add_core_fns.
2085 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2086 and ppc_linux_supply_gregset.
2087 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2088 (supply_fpregset): Call ppc_linux_supply_fpregset.
2089 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2090 corelow.o.
2091 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2092
729051e6
DJ
20932002-07-30 Daniel Jacobowitz <drow@mvista.com>
2094
2095 * symtab.c (lookup_symbol): Demangle before lowercasing.
2096
5f8a3188
AC
20972002-07-30 Andrew Cagney <ac131313@redhat.com>
2098
2099 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2100 declaration.
2101 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2102 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2103 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2104 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2105 "gdb_string.h".
2106 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2107 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2108 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2109 (avr-tdep.o, mon960-rom.o): Ditto.
2110 (aout_stabs_gnu_h): Define.
2111 (symtab_h): Remove $(gdb_obstack_h).
2112
67f07146
JB
21132002-07-30 Jim Blandy <jimb@redhat.com>
2114
2115 Patch from David Carlton <carlton@math.stanford.edu>:
2116 * gdbinit.in: Move the `dir' commands that add GDB's own source
2117 directory to the search path to the end, so that the `gdb' source
2118 directory will be searched first.
2119
04ea0df1
AC
21202002-07-29 Andrew Cagney <ac131313@redhat.com>
2121
2122 * gdb_obstack.h: New file.
2123 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2124 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2125 * objfiles.h: Include "gdb_obstack.h".
2126 * Makefile.in (gdb_obstack_h): Define.
2127 (symtab_h): Add $(gdb_obstack_h).
2128 (objfiles_h): Add $(gdb_obstack_h).
2129
2130 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2131 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2132 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2133 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2134 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2135 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2136 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2137 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2138
2139 * Makefile.in (bcache.o): Update dependencies.
2140 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2141 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2142 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2143 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2144 (stabsread.o, symfile.o, symmisc.o): Ditto.
2145 (symtab.o, typeprint.o, macroexp.o): Ditto.
2146 (macrotab.o, mdebugread.o): Ditto.
2147 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2148 (coff_ecoff_h, aout_aout64_h): Define.
2149 (aout_stabs_gnu_h, libaout_h): Define.
2150
d138e37a
AC
21512002-07-29 Andrew Cagney <cagney@redhat.com>
2152
2153 * regcache.c (struct regcache_descr): Rename nr_registers to
2154 nr_cooked_registers. Revise comments describing the structure
2155 member fields.
2156 (init_regcache_descr): Update.
2157 (init_legacy_regcache_descr): Update.
2158 (read_register_gen, write_register_gen): When a cooked register in
2159 the raw register range, directly access the value from the raw
2160 register cache.
2161
460e6ec3
AC
21622002-07-29 Andrew Cagney <ac131313@redhat.com>
2163
2164 * z8k-tdep.c: Do not include "obstack.h".
2165 * h8300-tdep.c, h8500-tdep.c: Ditto.
2166 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2167 * valprint.c, v850-tdep.c: Ditto.
2168 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2169 * mn10200-tdep.c: Ditto.
2170
2171 * Makefile.in (z8k-tdep.o): Update dependencies.
2172 (m68hc11-tdep.o, valprint.o): Ditto.
2173 (v850-tdep.o, d10v-tdep.o): Ditto.
2174 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2175 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2176 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2177 (sh_opc_h, gdb_sim_sh_h): Define.
2178 (elf_sh_h, elf_bfd_h): Define.
2179 (opcode_m68hc11_h): Define.
2180 (OPCODES_SRC, OPCODES_DIR): define.
2181 (OPCODES): Use $(OPCODES_DIR).
2182 (gdb_sim_d10v_h): Rename sim_d10v_h.
2183 (gdb_sim_arm_h): Rename sim_arm_h.
2184
790c9cf0
KB
21852002-07-26 Kevin Buettner <kevinb@redhat.com>
2186
2187 * utils.c (host_pointer_to_address, address_to_host_pointer):
2188 Change internal_error() message to indicate function responsible
2189 for the error.
2190
9647fa49
KB
21912002-07-26 Kevin Buettner <kevinb@redhat.com>
2192
2193 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2194 calls to local_hex_string_custom().
2195
dabbe2c0
KB
21962002-07-26 Kevin Buettner <kevinb@redhat.com>
2197
2198 * irix5-nat.c: Move IRIX shared library support from here...
2199 * solib-irix.c: ...to here. Revised substantially to work with
2200 generic solib framework.
2201
b96d0a4e
KB
2202 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2203 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2204 * mips-irix-tdep.c: New file.
2205
313fb2f6
KB
2206 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2207 (mips-irix-tdep.o, solib-irix.o): New rules.
2208 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2209 solib-irix.o.
2210 * config/mips/irix6.mt (TDEPFILES): Likewise.
2211 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2212
ab2eaf26
KB
22132002-07-26 Kevin Buettner <kevinb@redhat.com>
2214
177e4768 2215 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2216 disabled (via ``#if 0'') includes.
2217
7244546a
KB
22182002-07-26 Kevin Buettner <kevinb@redhat.com>
2219
2220 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2221 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2222 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2223 Add support for the fpscr register.
2224 * rs6000-nat.c (regmap, fetch_inferior_registers)
2225 (store_inferior_registers, fetch_core_registers): Likewise.
2226
dd7be90a
KB
22272002-07-26 Kevin Buettner <kevinb@redhat.com>
2228
2229 * rs6000-nat.c (language.h): Include.
2230 (special_regs): Delete this array.
2231 (regmap): New function.
2232 (fetch_register, store_register): Use regmap() to map gdb
2233 register numbers to ptrace register numbers. Also, use
2234 outputs from regmap() to make decisions regarding type of
2235 ptrace() call to make. In particular, don't compare against
2236 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2237 (fetch_inferior_registers, store_inferior_registers): Where
2238 possible, obtain register numbers from tdep struct. Don't
2239 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2240 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2241 (LAST_UISA_SP_REGNUM): Delete.
2242
11bf77db
KB
22432002-07-25 Kevin Buettner <kevinb@redhat.com>
2244
2245 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2246 (fetch_registers, store_register, fetch_core_registers): Don't
2247 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2248 regcache_collect() as appropriate.
2249 (find_toc_address): Format hex address with local_hex_string().
2250
06afebeb
AC
22512002-07-25 Andrew Cagney <ac131313@redhat.com>
2252
2253 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2254 bfd/elf32-frv.c.
2255
8c554d79
TT
22562002-07-24 Tom Tromey <tromey@redhat.com>
2257
2258 * jv-exp.y: Marked all strings with _().
2259 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2260 internal_error.
2261 (MethodInvocation, CastExpression, parse_number, yyerror,
2262 java_type_from_name, push_expression_name, yylex): Typo fixes.
2263
e4c242d9
DJ
22642002-07-24 Daniel Jacobowitz <drow@mvista.com>
2265
2266 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2267 (tee_file_flush, tee_file_write, tee_file_fputs)
2268 (tee_file_isatty): New.
2269 * ui-file.h (tee_file_new): Add prototype.
2270
ebf56fd3
AS
22712002-07-24 Aidan Skinner <aidan@velvet.net>
2272
2273 * ada-lang.c: Change k&r style function definitions to prototyped
2274 form.
2275 * ada-typeprint.c: Change k&r style function definitions to prototyped
2276 form.
2277 * ada-valprint.c: Change k&r style function definitions to prototyped
2278 form.
2279
7fb623f7
AC
22802002-07-24 Andrew Cagney <cagney@redhat.com>
2281
2282 * README: Remove reference to remote-bug.
2283 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2284 remote-bug.c.
2285 (m88k-nat.o): Delete rule.
2286 (m88k-tdep.o): Delete rule.
2287 (remote-bug.o): Delete rule.
2288 * MAINTAINERS: Mark as obsolete.
2289 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2290 * m88k-tdep.c: Make file obsolete.
2291 * config/m88k/m88k.mh: Ditto.
2292 * config/m88k/delta88v4.mh: Ditto.
2293 * config/m88k/delta88v4.mt: Ditto.
2294 * config/m88k/delta88.mt: Ditto.
2295 * config/m88k/delta88.mh: Ditto.
2296 * remote-bug.c: Ditto.
2297 * config/m88k/tm-delta88.h: Ditto.
2298 * config/m88k/nm-delta88v4.h: Ditto.
2299 * config/m88k/xm-delta88.h: Ditto.
2300 * config/m88k/xm-dgux.h: Ditto.
2301 * config/m88k/tm-m88k.h: Ditto.
2302 * config/m88k/nm-m88k.h: Ditto.
2303 * config/m88k/tm-delta88v4.h: Ditto.
2304 * m88k-nat.c: Ditto.
2305 * cxux-nat.c: Ditto.
2306 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2307 and m88*-*-* obsolete.
2308 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2309 m88*-*-* obsolete.
2310
37611a2b
AC
23112002-07-24 Andrew Cagney <cagney@redhat.com>
2312
2313 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2314 constant. Same for local pointer variables.
2315 (extract_signed_integer): Ditto.
2316 * defs.h (extract_unsigned_integer): Update.
2317 (extract_signed_integer): Update.
2318
1aaa5f99
AC
23192002-07-24 Andrew Cagney <cagney@redhat.com>
2320
2321 * regcache.c (regcache_raw_write): Change buf parameter to a
2322 constant void pointer.
2323 (regcache_raw_read): Change buf parameter to a void pointer.
2324 (legacy_write_register_gen): Change myaddr parameter a constant
2325 void pointer.
2326 (supply_register): Change val parameter to a const void pointer.
2327 * regcache.h (regcache_raw_write): Update declaration.
2328 (regcache_raw_read): Update declaration.
2329 (supply_register): Update declaration.
2330
b4f5539f
TT
23312002-07-24 Tom Tromey <tromey@redhat.com>
2332
2333 * defs.h (gdb_readline_wrapper): Declare.
2334 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2335 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2336 * top.c (gdb_readline_wrapper): New function.
2337 (command_line_input): Use it.
2338
0818c12a
AC
23392002-07-24 Andrew Cagney <cagney@redhat.com>
2340
2341 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2342 regcache_read and regcache_write.
2343 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2344 * regcache.c: Update.
2345 * sh-tdep.c (sh64_push_arguments): Update comment.
2346 (sh_pseudo_register_read): Update.
2347 (sh_pseudo_register_write): Update.
2348 (sh4_register_read): Update.
2349 (sh4_register_write): Update.
2350 (sh64_pseudo_register_read): Update.
2351 (sh64_pseudo_register_write): Update.
2352 (sh64_register_read): Update.
2353 (sh64_register_write): Update.
2354 * i386-tdep.c (i386_extract_return_value): Update.
2355 (i386_extract_struct_value_address): Update.
2356 (i386_extract_return_value): Update.
2357 * blockframe.c (generic_read_register_dummy): Update.
2358 (generic_call_dummy_register_unwind): Update
2359 * infrun.c (write_inferior_status_register): Update.
2360
f7321c06
JB
23612002-07-23 Jim Blandy <jimb@redhat.com>
2362
2363 * parser-defs.h (expression_context_pc): Make this extern.
2364 (Thanks to Michael Snyder.)
2365
2037aebb
AC
23662002-07-23 Andrew Cagney <ac131313@redhat.com>
2367
2368 GDB 5.2.1 released from 5.2 branch.
2369 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2370 * README: Update to mention 5.2.1.
2371
66504d44
MS
23722002-07-23 Mark Salter <msalter@redhat.com>
2373
2374 * remote.c (remote_read_bytes): Fix check for error.
2375
27bae383
KB
23762002-07-22 Kevin Buettner <kevinb@redhat.com>
2377
2378 * aix-thread.c (language.h): Include.
2379 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2380 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2381 Print newlines at end of debug messages.
2382 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2383 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2384
23852002-07-22 Kevin Buettner <kevinb@redhat.com>
2386
2387 * aix-thread.c (ppc-tdep.h): Include.
2388 (special_register_p): New function.
2389 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2390 (store_regs_user_thread): Use register number information from
2391 gdbarch_tdep struct instead of hardcoded offsets relative to
2392 FIRST_UISA_SP_REGNUM.
2393 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2394 special_register_p() instead of using FPLAST_REGNUM and
2395 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2396 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2397 will be MQ's register number.
2398
23992002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2400
2401 * aix-thread.c (ops): Rename to aix_thread_ops.
2402 (base_ops): Rename to base_target.
2403 (ops_attach): Rename to aix_thread_attach.
2404 (ops_detach): Rename to aix_thread_detach.
2405 (ops_resume): Rename to aix_thread_detach.
2406 (ops_wait): Rename to aix_thread_wait.
2407 (ops_kill): Rename to aix_thread_kill.
2408 (init_ops): Rename to init_aix_thread_ops.
2409 (ops_fetch_register): Rename to aix_thread_fetch_register.
2410 (ops_store_register): Rename to aix_thread_store_register.
2411 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2412 (ops_thread_alive): Rename to aix_thread_thread_alive.
2413 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2414 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2415 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2416 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2417 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2418 (store_regs_lib): Rename to store_regs_user_thread.
2419 (store_regs_kern): Rename to store_regs_kernel_thread.
2420
27bae383 24212002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2422
2423 * aix-thread.c (ops_prepare_to_store): Eliminate.
2424 (init_ops): Don't initialize ops.prepare_to_store.
2425 (store_regs_kern): Pre-fetch register buffers from child,
2426 because some registers may not be in the cache. Copy
2427 regs from register cache only if they are cached.
2428 (store_regs_lib): Copy regs from register cache only
2429 if they are cached.
2430 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2431 fill_gprs64): Ditto.
2432
61c5da0b
KB
24332002-07-22 Kevin Buettner <kevinb@redhat.com>
2434
2435 * aix-thread.c (gdb_assert.h): Include.
2436 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2437 register sizes (from register cache) match size of buffer holding
2438 register data.
2439 (fill_sprs32): Change parameter types to match those in the ptrace()
2440 buffer.
2441 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2442 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2443
24442002-07-22 Michael Snyder <msnyder@redhat.com>
2445
2446 * aix-thread.c (supply_sprs64): Cosmetic change.
2447 (supply_sprs32): Cosmetic change.
2448 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2449 (fill_sprs64): Use regcache_collect instead of read_register.
2450 (store_regs_lib): Use regcache_collect instead of
2451 read_register. Use fill_sprs32 instead of fill_sprs64,
2452 if debugging a 32-bit architecture.
2453 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2454 out of the register cache, instead of passing a pointer into
2455 the register cache directly to ptrace. Use regcache_collect
2456 insteaad of read_register.
2457 (ops_prepare_to_store): Use target_read_registers instead
2458 of read_register_bytes.
2459
36479eb1
AS
24602002-07-20 Aidan Skinner <aidan@velvet.net>
2461
2462 * MAINTAINERS: Add self under write after approval.
2463
80ae6ee2
AS
24642002-07-20 Aidan Skinner <aidan@velvet.net>
2465
2466 * ada-tasks.c: Change k&r style function definitions to prototyped
2467 form.
2468
8a8ab2b9
AC
24692002-07-19 Andrew Cagney <ac131313@redhat.com>
2470
2471 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2472 * x86-64-tdep.c: Include "objfiles.h".
2473 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2474 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2475
fb16b900
ML
24762002-07-17 Michal Ludvig <michal@suse.cz>
2477
2478 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2479 (update_context): Initialise cfa variable.
2480
0fe7bf7b
MS
24812002-07-17 Michael Snyder <msnyder@redhat.com>
2482
2483 * aix-thread.c: Shorten some long lines.
2484 Bring comments into line with code spec.
2485
488f131b
JB
24862002-07-18 Joel Brobecker <brobecker@gnat.com>
2487
2488 * infrun.c: Re-indent using gdb_indent.sh.
2489
46c415d2
JB
24902002-07-18 Joel Brobecker <brobecker@gnat.com>
2491
2492 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2493 Leave the indentation temporarily untouched, to minimize the diffs.
2494
cdecafbe
EZ
24952002-07-18 Elena Zannoni <ezannoni@redhat.com>
2496
2497 * stabsread.c: Make os9k sections of the code obsolete,
2498 for real this time.
2499 * stabsread.h: Make os9k sections of the code obsolete.
2500
7b6aa020
ML
25012002-07-18 Michal Ludvig <mludvig@suse.cz>
2502
09ec9b38
ML
2503 * linux-low.c (regsets_store_inferior_registers): Add free()
2504 at the end of a loop to prevent memory leak.
2505 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2506 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2507 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2508 line a comment.
4894ac5d 2509 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2510
233282cd
JB
25112002-07-17 Jim Blandy <jimb@redhat.com>
2512
2513 * macrocmd.c (info_macro_command): Remove newline from error
2514 message.
2515
7b6aa020 25162002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2517
2518 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2519 (sh_gdbarch_init): Use it for sh-dsp.
2520
f7ef9339
KB
25212002-07-16 Kevin Buettner <kevinb@redhat.com>
2522
2523 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2524 64-bit DWARF2 format.
2525
8dd72958
JB
25262002-07-16 Joel Brobecker <brobecker@gnat.com>
2527
2528 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2529 <sys/proc.h> when not available.
2530
a99a9e1b
AC
25312002-07-16 Andrew Cagney <ac131313@redhat.com>
2532
2533 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2534 * stabsread.c: Make os9k sections of the code obsolete.
2535 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2536 * config/i386/i386os9k.mt: Make file obsolete.
2537 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2538 (COMMON_OBS): Remove os9kread.o
2539 (SFILES): Remove os9kread.c.
2540 (os9kread.o, remote-os9k.o): Make target obsolete.
2541 * remote-os9k.c: Make file obsolete.
2542 * os9kread.c: Make file obsolete.
2543 * Makefile.in
2544
7a3085c1
AC
25452002-07-16 Andrew Cagney <ac131313@redhat.com>
2546
2547 * NEWS: Mention that the FR30 has been made obsolete.
2548 * fr30-tdep.c: Make file obsolete.
2549 * config/fr30/tm-fr30.h: Ditto.
2550 * config/fr30/fr30.mt: Ditto.
2551 * configure.tgt: Make fr30-*-elf obsolete.
2552 * MAINTAINERS: Make fr30-elf obsolete.
2553
28a93f5a
PM
25542002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2555
2556 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2557 found is not inside a section.
2558
be006b8b
KB
25592002-07-15 Kevin Buettner <kevinb@redhat.com>
2560
2561 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2562 strerror().
2563 (pdc_realloc): Use xrealloc() instead of realloc().
2564
14fa3751
KB
25652002-07-15 Kevin Buettner <kevinb@redhat.com>
2566
2567 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2568 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2569 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2570 macros.
2571
42cc437f
KB
25722002-07-15 Kevin Buettner <kevinb@redhat.com>
2573
2574 * aix-thread.c (ptrace_check): Eliminate goto.
2575 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2576 problem.
2577
8e2c28d4
KB
25782002-07-15 Kevin Buettner <kevinb@redhat.com>
2579
2580 * aix-thread.c (gdbcmd.h): Include.
2581 (DEBUG, DBG, DBG2, dbg): Eliminate.
2582 (debug_aix_thread): New static global.
2583 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2584 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2585 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2586 invocations to DBG and DBG2 macros to test against
2587 ``debug_aix_thread'' and call fprintf_unfiltered().
2588 (_initialize_aix_thread): Add new command "set debug aix-thread".
2589
30413464
AC
25902002-07-15 Andrew Cagney <ac131313@redhat.com>
2591
2592 From Gerhard Tonn <TON@de.ibm.com>:
2593 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2594 instead of supply_register.
2595
7c43edc1
AC
25962002-07-15 Andrew Cagney <ac131313@redhat.com>
2597
2598 * dwarf2cfi.c: Include "gdb_assert.h".
2599 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2600 non-NULL.
2601 (update_context): Do not use __func__. Add missing ``break''.
2602 (update_context): Do not use __func__.
2603
9364a0ef
EZ
26042002-07-15 Elena Zannoni <ezannoni@redhat.com>
2605
2606 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2607 and its setting. Set gdbarch instruction printing functions
2608 directly. For non-rs6000 case use new function
2609 gdb_print_insn_powerpc.
2610 (gdb_print_insn_powerpc): New function.
2611
3fbeef0b
AC
26122002-07-13 Andrew Cagney <ac131313@redhat.com>
2613
92eb23c5 2614 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2615 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2616 * configure.tgt: Mark d30v-*-* as obsolete.
2617 * d30v-tdep.c: Mark file as obsolete.
2618 * config/d30v/d30v.mt: Ditto.
2619 * config/d30v/tm-d30v.h: Ditto.
2620
aacb1f0a
AS
26212002-07-13 Aidan Skinner <aidan@velvet.net>
2622
2623 * ada-tasks.c (add_task_entry): replace calls to
2624 malloc() with xmalloc
2625 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2626
2627 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2628 ada_finish_decode_line_1, all_sals_for_line
2629 ada_breakpoint_rewrite): replace calls to free() with xfree()
2630
c11d79f2
KB
26312002-07-12 Kevin Buettner <kevinb@redhat.com>
2632
2633 From Nicholas Duffek (with minor changes by Martin Hunt,
2634 Louis Hamilton, and Kevin Buettner):
2635 * aix-thread.c: New file.
2636
8e19ed76
PS
26372002-07-12 Petr Sorfa <petrs@caldera.com>
2638
2639 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2640 complaint for invalid attribute class or form.
2641 (read_func_scope): DW_AT_frame_base
2642 better handling of DW_AT_block*.
2643 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2644 better handling of DW_AT_block*.
2645 (read_common_block): DW_AT_location
2646 better handling of DW_AT_block*.
2647 (read_partial_die): DW_AT_location better handling
2648 of DW_AT_block*.
2649 (new_symbol): DW_AT_external better handling of
2650 DW_AT_block*. Proper initialization of variable
2651 "addr".
2652 (attr_form_is_block): New function that returns true
2653 if the attribute's form is of DW_FORM_block*.
2654
295401f7
DJ
26552002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2656
2657 * valops.c (find_method_list): Remove comment about
2658 removed STATIC_MEMFUNCP argument.
2659 (value_find_oload_method_list): Likewise.
2660
e42dc924
KB
26612002-07-12 Kevin Buettner <kevinb@redhat.com>
2662
2663 From Nicholas Duffek:
2664 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2665 target_new_objfile_hook.
2666
6904b546
KB
26672002-07-12 Kevin Buettner <kevinb@redhat.com>
2668
2669 From Nicholas Duffek:
2670 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2671 csect.
2672
53fe9346
AC
26732002-07-12 Andrew Cagney <cagney@redhat.com>
2674
2675 * MAINTAINERS: Mention --enable-sim-build-warnings.
2676 (m68hc11-elf): Disable sim build warnings.
2677 (m32r-elf): Mark as broken obsolete candidate.
2678 (x86_64-linux-gnu): Mark as buildable with -Werror.
2679 (arm-elf): Change -w to ``,'' which enables warnings but not
2680 -Werror.
2681
af5f3db6
AC
26822002-07-12 Andrew Cagney <ac131313@redhat.com>
2683
2684 * bcache.h: Update copyright.
2685 (struct bstring, struct bcache): Move definition to "bcache.c".
2686 Replaced by opaque declaration.
2687 (bcache_xfree): Replace free_bcache.
2688 (bcache_xmalloc, bcache_memory_used): Declare.
2689
2690 * bcache.c: Update copyright.
2691 (struct bstring, struct bcache): Moved to here from "bcache.h".
2692 Update comments.
2693 (bcache_xmalloc, bcache_memory_used): New functions.
2694 (bcache_xfree): Replace function free_bcache.
2695
2696 * Makefile.in (objfiles.o): Add $(bcache_h).
2697 (objfiles_h): Remove $(bcache_h).
2698 (symfile.o): Add $(bcache_h).
2699
2700 * symmisc.c: Update copyright.
2701 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2702 (print_objfile_statistics): Use bcache_memory_used.
2703
2704 * symfile.c: Include "bcache.h".
2705 (reread_symbols): Use bcache_xfree.
2706 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2707 (add_psymbol_to_list): Pass psymbol_cache by value.
2708 (add_psymbol_with_dem_name_to_list): Ditto.
2709
2710 * objfiles.h: Update copyright.
2711 (struct bcache): Declare opaque. Do not include "bcache.h".
2712 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2713 bcache'' pointers.
2714 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2715
2716 * objfiles.c: Include "bcache.h". Update copyright.
2717 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2718 macro_cache.
2719 (free_objfile): Use bcache_xfree.
2720
444199e7
GS
27212002-07-11 Grace Sainsbury <graces@redhat.com>
2722
2723 * monitor.c (monitor_fetch_register): Make name a constant.
2724 (monitor_store_register): Same.
2725
261397f8
DJ
27262002-07-11 Daniel Jacobowitz <drow@mvista.com>
2727
2728 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2729 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2730 (finish_block) For non-function blocks, hash the symbol table. For
2731 function blocks, mark the symbol table as unhashed.
2732 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2733 (msymbol_hash_iw): Likewise.
2734 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2735 value.
2736 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2737 (lookup_minimal_symbol): Likewise for both.
2738 * symtab.h (struct block): Add `hashtable' flag. Comment the
2739 hashtable.
2740 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2741 (ALL_BLOCK_SYMBOLS): Update.
2742 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2743 (struct symbol): Add `hash_next' pointer.
2744 * symtab.c (lookup_block_symbol): Search using the hash table when
2745 possible.
2746 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2747 (search_symbols, find_addr_symbol): Likewise.
2748
2749 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2750 (read_dst_symtab): Likewise.
2751 * jv-lang.c (get_java_class_symtab): Likewise.
2752 * mdebugread.c: Include "gdb_assert.h".
2753 (shrink_block): Assert that the block being modified is not hashed.
2754 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2755 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2756 symbols.
2757 (dump_symtab): Recognize hashed blocks.
2758 * printcmd.c (print_frame_args): Assert that function blocks do not
2759 have hashed symbol tables.
2760 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2761 (fill_in_ada_prototype, debug_print_block): Likewise.
2762 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2763
6f0eaa01
CV
27642002-07-11 Corinna Vinschen <vinschen@redhat.com>
2765
2766 * stack.c (print_frame): Use result of frame_address_in_block()
2767 instead of fi->pc when evaluating symbols.
2768 (backtrace_command_1): Ditto.
2769
a208b0cb
AC
27702002-07-11 Andrew Cagney <cagney@redhat.com>
2771
2772 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2773 Make static.
2774
2775 * arm-tdep.c (arm_register_name): Make return type constant.
2776
a6b6b089
AC
27772002-07-10 Andrew Cagney <ac131313@redhat.com>
2778
5ae5f592
AC
2779 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2780 prototype.
2781 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2782 * s390-tdep.c (s390_fp_regnum): Ditto.
2783 (s390_read_fp): Ditto.
2784 (s390_pop_frame): Ditto.
2785 (_initialize_s390_tdep): Ditto.
2786 * remote.c (get_remote_state): Ditto.
2787 * procfs.c (mappingflags): Ditto.
2788 * memattr.c (_initialize_mem): Ditto.
2789 * mcore-tdep.c (mcore_pop_frame): Ditto.
2790 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2791 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2792 * language.c (set_case_str): Ditto.
2793 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2794 * frv-tdep.c (new_variant): Ditto.
2795 (frv_stopped_data_address): Ditto.
2796 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2797 (context_alloc): Ditto.
2798 (frame_state_alloc): Ditto.
2799 (unwind_tmp_obstack_init): Ditto.
2800 (unwind_tmp_obstack_free): Ditto.
2801 (cfi_read_fp): Ditto.
2802 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2803 (cris_pop_frame): Ditto.
2804 * c-lang.c (scanning_macro_expansion): Ditto.
2805 (finished_macro_expansion): Ditto.
2806 (c_preprocess_and_parse): Ditto.
2807 * gdbarch.sh: Ditto.
2808 * gdbarch.h, gdbarch.c: Regenerate.
2809 * config/mn10200/tm-mn10200.h: Adjust indentation.
2810 * target.c: Adjust indentation.
2811 * symtab.h: Adjust indentation.
2812 * stabsread.h: Adjust indentation.
2813 * remote-es.c: Adjust indentation.
2814 * os9kread.c: Adjust indentation.
2815
28162002-07-10 Andrew Cagney <ac131313@redhat.com>
2817
a6b6b089
AC
2818 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2819 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2820
a1789893
GS
28212002-07-10 Grace Sainsbury <graces@redhat.com>
2822
2823 * NEWS: Mention m68k, mcore multi-arching.
2824 * MAINTAINERS: Change status of m68k, mcore to reflect
2825 multi-arching.
2826
02f0d45d
DJ
28272002-07-10 Daniel Jacobowitz <drow@mvista.com>
2828
2829 * valops.c (find_overload_match): Free oload_syms.
2830
f15f768e
JB
28312002-07-09 Joel Brobecker <brobecker@gnat.com>
2832
2833 Define HAVE_SYS_PROC_H if sys/proc.h exists
2834 * configure.in: Add check for sys/proc.h
2835 * config.in: Regenerate.
2836 * configure: Regenerate.
2837
902a7139
GS
28382002-07-09 Grace Sainsbury <graces@redhat.com>
2839
2840 * config/m68k/tm-m68k.h: Remove macros wrapped in
2841 #if !GDB_MULTI_ARCH.
2842
a534e424
AC
28432002-07-08 Andrew Cagney <ac131313@redhat.com>
2844
2845 * config.in, configure: Regenerate.
2846
9b94f7bf
MK
28472002-07-08 Mark Kettenis <kettenis@gnu.org>
2848
2849 * dwarf2cfi.c: Include "gcore.h".
2850 (execute_stack_op): Fix implementation of the
2851 DW_OP_deref and DW_OP_deref_size operators by letting do their
2852 lookup in the target.
2853
1d34db41
MK
28542002-07-07 Mark Kettenis <kettenis@gnu.org>
2855
2856 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2857 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2858 tdep->sc_sp_offset.
2859
79d5b63a
DJ
28602002-07-05 Daniel Jacobowitz <drow@mvista.com>
2861
2862 Fix PR gdb/595, gdb/602
2863 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2864 Don't call value_cast, just read the vtable pointer; update comments
2865 to match.
2866
3bb912e8
GS
28672002-07-05 Grace Sainsbury <graces@redhat.com>
2868
2869 * config/mcore/tm-mcore.h: Remove file.
2870 * config/mcore/mcore.mt: Remove definition of TM_FILE
2871 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2872
ca39387d
MK
28732002-07-05 Mark Kettenis <kettenis@gnu.org>
2874
2875 * i386bsd-tdep.c: Include "gdb_string.h".
2876
efdc1108
GS
28772002-07-04 Grace Sainsbury <graces@redhat.com>
2878
2879 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2880 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2881 mcore-tdep.
2882 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2883 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2884 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2885 (RETVAL_REGNUM): Move macros from tm-mcore.h
2886 (mcore_reg_struct_has_addr): New function.
2887 (mcore_gdbarch_init): Added initializations for the macros removed
2888 from tm-mcore.h.
2889
bb21884d
MK
28902002-07-04 Mark Kettenis <kettenis@gnu.org>
2891
2892 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2893 traditonal string branding within the ELF header.
2894
228c6d41
DJ
28952002-07-04 Daniel Jacobowitz <drow@mvista.com>
2896
2897 * symtab.c (remove_params): New function.
2898 (make_symbol_overload_list): Use it instead of cplus_demangle.
2899 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2900
2404952e
MK
29012002-07-04 Mark Kettenis <kettenis@gnu.org>
2902
e5e4acad
MK
2903 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2904
baadce09
MK
2905 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2906 New variables.
2907 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2908 and tdep->sigtramp_end.
2909 * i386obsd-nat.c: New file.
2910 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2911
2404952e
MK
2912 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2913 Don't call get_current_frame().
2914
9b4f1ba7
PM
29152002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2916
2917 * i386-nat.c (child_post_startup_inferior): New function
2918 calling i386_cleanup_dregs if
2919 I386_USE_GENERIC_WATCHPOINTS is defined.
2920 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2921 conditional to acknowledge that i386-nat.c has its
2922 own child_post_startup_inferior function.
2923
c0d1d883
MK
29242002-07-04 Mark Kettenis <kettenis@gnu.org>
2925
00f8375e
MK
2926 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2927 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2928 instead of MAX_REGISTER_RAW_SIZE.
2929 (i386_extract_return_value, i386_extract_struct_value_address):
2930 Convert to use regcache.
2931 (i386_gdbarch_init): Set max_register_raw_size and
2932 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2933 Set extract_return_value and extract_struct_value_address instead
2934 of their deprecated variants.
2935
c0d1d883
MK
2936 Convert i386 target to generic dummy frames.
2937 * i386-tdep.c: Include "symfile.h".
2938 (i386_frameless_signal_p): Consider a function to be frameless if
2939 the pc points at the first instruction of the function.
2940 (i386_frame_chain): Handle (generic) call dummies.
2941 (i386_frame_saved_pc): Likewise.
2942 (i386_frame_init_saved_regs): Remove code dealing with call
2943 dummies on the stack.
2944 (i386_push_dummy_frame): Removed.
2945 (i386_call_dummy_words): Removed.
2946 (i386_fix_call_dummy): Removed.
2947 (i386_push_return_address): New function.
2948 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2949 parameter, and don't call get_current_frame.
2950 (i386_pop_frame): New function.
2951 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2952 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2953 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2954 call_dummy_length to 0, set call_dummy_words to NULL, set
2955 sizeof_call_dummy_words to 0, set fix_call_dummy to
2956 generic_fix_call_dummy, set pc_in_call_dummy to
2957 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2958 generic_push_dummy_frame, set push_return_address to
2959 i386_push_return_address and set frame_chain_valid to
2960 generic_file_frame_chain_valid.
2961
049ee0e4
AC
29622002-07-03 Andrew Cagney <ac131313@redhat.com>
2963
2964 * gdbarch.sh (struct regcache): Add opaque declaration.
2965 (EXTRACT_RETURN_VALUE): New architecture method.
2966 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2967 * gdbarch.h, gdbarch.c: Regenerate.
2968 * arch-utils.c (legacy_extract_return_value): New function.
2969 * arch-utils.h (legacy_extract_return_value): Declare.
2970 * values.c (value_being_returned): Re-enable code handling
2971 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2972 deprecated_grub_regcache_for_registers call to block handling
2973 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2974 (EXTRACT_RETURN_VALUE): Do not define.
2975
4e0d9804
GS
29762002-07-03 Grace Sainsbury <graces@redhat.com>
2977
2978 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2979 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2980 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2981 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2982 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2983 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2984 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2985 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2986 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2987 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2988 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2989 argument so the function fits the prototype in the architecture
2990 vector.
2991 (mcore_pop_frame): Remove argument so the function fits the
2992 prototype. Use get_current_frame instead of the argument.
2993 (mcore_push_arguments): Change type of struct_return so the
2994 function can be used in the architecture vector.
2995 (mcore_store_struct_return): Add.
2996 (mcore_frame_init_saved_regs): Add.
2997 (mcore_gdbarch_init): Add function calls to replace the macros
2998 removed from tm-mcore.h
2999
36160dc4
AC
30002002-07-03 Andrew Cagney <ac131313@redhat.com>
3001
3002 * infcmd.c (print_return_value): Remove compatibility code calling
3003 deprecated_grub_regcache_for_registers.
3004
3005 * values.c: Include "regcache.h".
3006 (value_being_returned): Update. Use
3007 deprecated_grub_regcache_for_registers to extract the register
3008 buffer address.
3009 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3010 ``struct regcache''.
3011 * Makefile.in (values.o): Add dependency on $(regcache_h).
3012
3013 * inferior.h (run_stack_dummy): Change type of second parameter to
3014 a ``struct regcache''.
3015 * valops.c (hand_function_call): Change type of retbuf to ``struct
3016 regcache''. Allocate using regcache_xmalloc, clean using
3017 make_cleanup_regcache_xfree.
3018 * infcmd.c (run_stack_dummy): Update. Use
3019 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3020
3021 * regcache.c (do_regcache_xfree): New function.
3022 (make_cleanup_regcache_xfree): New function.
3023 * regcache.h (make_cleanup_regcache_xfree): Declare.
3024
e64d9b3d
MH
30252002-07-03 Martin M. Hunt <hunt@redhat.com>
3026
4dd79c29
MH
3027 * event-top.c (command_line_handler): Don't read past
3028 beginning of buffer.
e64d9b3d 3029
4dd79c29
MH
30302002-07-03 Martin M. Hunt <hunt@redhat.com>
3031
e64d9b3d
MH
3032 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3033 struct frame_id.
3034 (varobj_create): Store frame_id for root.
3035 (varobj_gen_name): Use xasprintf.
3036 (varobj_update): Save and restore frame using get_frame_id() and
3037 frame_find_by_id().
3038 (create_child): Use xasprintf.
3039 (new_root_variable): Initialize frame_id.
3040 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3041 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3042 to prevent memory leak.
3043
26e6c56a
AC
30442002-07-03 Andrew Cagney <ac131313@redhat.com>
3045
3046 * valops.c (hand_function_call): Move declaration of retbuf to
3047 start of function, allocate using malloc, add a cleanup but before
3048 the inf_status cleanup, cleanup the buffer. Rename local variable
3049 old_chain to inf_status_cleanup.
3050
f436dd25
MH
30512002-07-03 Martin M. Hunt <hunt@redhat.com>
3052
3053 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3054
3055 * cli/cli-decode.c (cmd_func_p): New function.
3056 (cmd_func): New function.
3057
3058 * command.h: Add cmd_func() and cmd_func_p().
3059
4cfe2084
GS
30602002-07-03 Grace Sainsbury <graces@redhat.com>
3061
3062 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3063 (REGISTER_SIZE): Remove.
3064 (MAX_REGISTER_RAW_SIZE): Remove.
3065 (REGISTER_VIRTUAL_TYPE): Remove.
3066 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3067 (REGISTER_NAME): Remove.
3068 (USE_GENERIC_DUMMY_FRAMES): Remove.
3069 (CALL_DUMMY): Remove.
3070 (CALL_DUMMY_START_OFFSET): Remove.
3071 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3072 (CALL_DUMMY_LOCATION): Remove.
3073 (FIX_CALL_DUMMY): Remove.
3074 (CALL_DUMMY_ADDRESS): Remove.
3075 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3076 (SAVE_DUMMY_FRAME_TOS): Remove.
3077 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3078 (mcore_register_virtual_type): New function.
3079 (mcore_register_byte): New function.
3080 (mcore_register_size): New function.
3081 (mcore_register_name): New function.
3082 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3083 macros removed from tm-mcore.h.
3084 (mcore_dump_tdep): Add.
3085 (_initialize_mcore_tdep): Add gdbarch_register call.
3086
4fd667e9
MK
30872002-07-03 Mark Kettenis <kettenis@gnu.org>
3088
3089 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3090 frameless_look_for_prologue, such that we actually call this
3091 function.
3092
42f99ac2
JB
30932002-07-02 Joel Brobecker <brobecker@gnat.com>
3094
3095 * frame.h (frame_address_in_block): New function.
3096
3097 * blockframe.c (frame_address_in_block): New function extracted
3098 from get_frame_block().
3099 (get_frame_block): Use frame_address_in_block().
3100 (block_innermost_frame): Use frame_address_in_block() to match
3101 the frame pc address against the block boundaries rather than
3102 the frame pc directly. This prevents a failure when a frame pc
3103 is actually a return-address pointing immediately after the end
3104 of the given block.
3105
103a1597 31062002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3107
3108 * MAINTAINERS: Add self under write after approval.
3109
31102002-07-02 Grace Sainsbury <graces@redhat.com>
3111
103a1597
GS
3112 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3113 used in architecture vector. The default is
3114 m68k_local_breakpoint_from_pc.
3115 (m68k_local_breakpoint_from_pc): Add.
3116 (enum): Add register numbers from tm-m68k.h.
3117 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3118 vector.
3119 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3120 GDB_MULTI_ARCH_PARTIAL.
3121 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3122 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3123 m68k-tdep.c.
3124 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3125 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3126 to enum in m68k-tdep.c
3127
7a5a0534
JB
31282002-07-02 Joel Brobecker <brobecker@gnat.com>
3129
3130 * solib-osf.c (open_map): Compute the list of shared libraries
3131 loaded by the inferior, rather than the list of libraries loaded
3132 by GDB itself. Otherwise, GDB ends up reading the symbols from
3133 the wrong shared libraries...
3134
6f558d74
MK
31352002-07-02 Mark Kettenis <kettenis@gnu.org>
3136
b7d15bf7
MK
3137 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3138 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3139 macros.
3140 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3141 Remove functions.
3142 (FRAMELESS_SIGNAL): Remove function.
3143 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3144 i386_linux_saved_pc_after_call): Removed.
3145 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3146 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3147 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3148
6bff26de
MK
3149 * i386-tdep.c (i386_frameless_signal_p): New function.
3150 (i386_frame_chain): Deal with frameless signals.
3151 (i386_sigtramp_saved_sp): New function.
3152 (i386_frame_saved_pc): Deal with frameless signals.
3153 (i386_saved_pc_after_call): Make sure the correct value is
3154 returned just after entry into a sigtramp.
3155 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3156 i386fbsd4_sc_sp_offset): New variables.
3157 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3158 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3159 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3160 similiar to what we already did for sc_pc_offset.
3161 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3162 tdep->sc_sp_offset.
3163
6f558d74
MK
3164 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3165
145564b7
ML
31662002-07-02 Michal Ludvig <mludvig@suse.cz>
3167
3168 * config/i386/tm-x86-64linux.h: New.
3169 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3170 definitions.
3171 * config/i386/nm-x86-64.h: Rename to ...
3172 * config/i386/nm-x86-64linux.h: ... this one.
3173 * config/i386/x86-64linux.mh: Reflect the above change.
3174
3a1e71e3
MK
31752002-07-01 Mark Kettenis <kettenis@gnu.org>
3176
21d0e8a4
MK
3177 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3178 with sigcontext_addr. Add sc_sp_offset.
3179 (i386bsd_sigtramp_saved_pc): Remove prototype.
3180 (i386bsd_sicontext_addr): Add prototype.
3181 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3182 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3183 (i386_svr4_sigtramp_saved_pc): Removed.
3184 (i386_svr4_sigcontext_addr): New function.
3185 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3186 Initialize tdep->sigcontext_addr instead. Initialize
3187 tdep->sc_pc_offset and tdep->sc_sp_offset.
3188 (i386_gdbarch_init): Likewise.
3189 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3190 any more.
3191 (i386bsd_sigtramp_saved_pc): Remove function.
3192 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3193 Initialize tdep->sigcontext_addr instead. Initialize
3194 tdep->sc_pc_offset.
3195 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3196 of tdep->sigtramp_saved_pc.
3197 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3198 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3199 instead.
3200
3a1e71e3
MK
3201 * i386-tdep.c (i386_frameless_function_invocation,
3202 i386_frame_num_args, i386_frame_init_saved_regs,
3203 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3204 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3205 i386_extract_return_value, i386_store_return_value,
3206 i386_extract_struct_value_address, i386_register_virtual_type,
3207 i386_register_convertible, i386_register_convert_to_virtual,
3208 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3209 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3210 static.
3211
52e9098c
MK
32122002-07-01 Mark Kettenis <kettenis@gnu.org>
3213
77b13a25
MK
3214 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3215
52e9098c
MK
3216 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3217 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3218 this macro. Include "value.h".
3219
1b372fff
AS
32202002-06-30 Aidan Skinner <aidan@velvet.net>
3221
3222 * ada-exp.tab.c: remove as it's a generated file
3223 * ada-lex.c: remove as it's a generated file
3224
9c5045b5
MK
32252002-06-30 Mark Kettenis <kettenis@gnu.org>
3226
4a93c5bb
MK
3227 * config/i386/tm-i386.h (struct frame_info, struct
3228 frame_saved_regs, struct value, struct type): Remove forward
3229 declarations.
3230
322d4fe0
MK
3231 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3232 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3233 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3234 (FILL_FPXREGSET): Define.
3235
fdd8263d
MK
3236 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3237
482e577b
MK
3238 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3239 i[3456]86-*-netbsd* case.
3240 * config/i386/tm-obsd.h: Removed.
3241 * config/i386/obsd.mt: Removed.
3242 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3243 core-aout.o.
3244 (MH_CFLAGS): Add -DYYDEBUG=0.
3245
6916549a
MK
3246 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3247 i386nbsd_sc_pc_offset on OpenBSD too.
3248
9c5045b5
MK
3249 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3250 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3251 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3252 define.
3253 * i386bsd-tdep.c: Include "arch-utils.h".
3254 (i386bsd_aout_in_solib_call_trampoline): New function.
3255 (i386bsd_init_abi): Set in_solib_call_trampoline to
3256 i386bsd_aout_in_solib_call_trampoline.
3257 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3258 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3259
aa84d1bb
AC
32602002-06-28 Andrew Cagney <ac131313@redhat.com>
3261
3262 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3263 (struct obstack, struct bcache): Add opaque declarations.
3264 * Makefile.in (macrotab_h): Update
3265
b4d83933
AC
32662002-06-28 Andrew Cagney <ac131313@redhat.com>
3267
3268 * blockframe.c (generic_find_dummy_frame): Change return type to
3269 ``struct regcache''.
3270 (struct dummy_frame): Replace field ``registers'' with regcache, a
3271 struct regcache object.
3272 (generic_find_dummy_frame): Update.
3273 (generic_push_dummy_frame): Update. Use regcache_xfree,
3274 regcache_xmalloc and regcache_cpy.
3275 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3276 regcache_xfree.
3277 (deprecated_generic_find_dummy_frame): Update.
3278 (generic_read_register_dummy): Update. Use
3279 regcache_read_as_address.
3280 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3281 (generic_get_saved_register): Update. Use regcache_read.
3282
08c0b5bc
AC
32832002-06-28 Andrew Cagney <ac131313@redhat.com>
3284
3285 * Makefile.in (objfiles_h): Add $(bcache_h).
3286 * objfiles.h: Include "bcache.h".
3287
3288 * Makefile.in (symtab_h): Remove $(bcache_h).
3289 * symtab.h: Do not include "bcache.h".
3290
1f89801a
AC
32912002-06-28 Andrew Cagney <ac131313@redhat.com>
3292
3293 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3294 generic_func_frame_chain_valid.
3295
b9644b58
DB
32962002-06-28 David O'Brien <obrien@FreeBSD.org>
3297
3298 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3299 * config/i386/tm-fbsd.h: Likewise.
3300
dd486634
AC
33012002-06-28 Andrew Cagney <ac131313@redhat.com>
3302
3303 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3304 generic_unwind_get_saved_register.
3305
0b434a00
AC
33062002-06-27 Andrew Cagney <ac131313@redhat.com>
3307
3308 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3309 * regcache.c (supply_register): Add missing argument to
3310 register_buffer call.
3311
f30e5a77
AC
33122002-06-27 Andrew Cagney <ac131313@redhat.com>
3313
3314 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3315 Solaris /bin/grep does not not like it. From Peter Schauer.
3316
9f064c95
TT
33172002-06-26 Tom Tromey <tromey@redhat.com>
3318
3319 * command.h (add_setshow_cmd): Declare.
3320 (add_setshow_cmd_full): Declare.
3321 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3322 returns void. Use add_setshow_cmd_full.
3323 (add_setshow_cmd_full): New function.
3324 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3325 (add_setshow_boolean_cmd): Likewise.
3326
099c7589
JT
33272002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3328
3329 * config/vax/tm-vax.h: Protect from multiple inclusion.
3330 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3331 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3332 * config/vax/tm-vaxbsd.h: ...here. New file.
3333 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3334
1d049c5e
JT
33352002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3336
3337 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3338 (BELIEVE_PCC_PROMOTION): Remove.
3339 (AP_REGNUM): Move to...
3340 * config/vax/nm-vax.h: ...here.
3341 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3342 (vax_breakpoint_from_pc): New function.
3343 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3344 and gdbarch_believe_pcc_promotion.
3345
4791e091
JT
33462002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3347
3348 * Makefile.in (vax_tdep_h): Define.
3349 (vax-tdep.o): Use $(vax_tdep_h).
3350 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3351 (vax_dump_tdep): New function.
3352 (_initialize_vax_tdep): Register vax_dump_tdep.
3353 * vax-tdep.h: Include osabi.h.
3354 (struct gdbarch_tdep): New.
3355
da130f98
AC
33562002-06-26 Andrew Cagney <cagney@redhat.com>
3357
3358 * frame.h (deprecated_generic_find_dummy_frame): Rename
3359 generic_find_dummy_frame.
3360 * blockframe.c (generic_find_dummy_frame): Make static.
3361 (deprecated_generic_find_dummy_frame): New function.
3362 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3363 generic_find_dummy_frame with deprecated_find_dummy_frame.
3364 (sh64_nofp_frame_init_saved_regs): Ditto.
3365 (sh_fp_frame_init_saved_regs): Ditto.
3366 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3367 (s390_frame_chain): Ditto.
3368 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3369
6300c360
GS
33702002-06-26 Grace Sainsbury <graces@redhat.com>
3371
3372 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3373 gdbarch vector are at the top.
3374 (NUM_REGS): Remove.
3375 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3376 (FRAME_ARGS_ADDRESS): Remove.
3377 (FRAME_LOCALS_ADDRESS): Remove.
3378 (FRAME_NUM_ARGS): Remove.
3379 (FRAME_ARGS_SKIP): Remove.
3380 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3381 (m68k_gdbarch_init): Add gdbarch initializations for macros
3382 undefined in tm-m68k.h
3383
1c617db8
GS
33842002-06-26 Grace Sainsbury <graces@redhat.com>
3385
3386 * monitor.h: Add the function regname to monitor_ops
3387 structure. This way NUM_REGS does not have to be a constant.
3388 * monitor.c (monitor_fetch_register): Added support for regname
3389 function. The function is called if the array regnames is NULL.
3390 (monitor_store_register): Same.
da130f98
AC
3391 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3392 regnames array.
1c617db8
GS
3393 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3394 cpu32bug_cmds.regname to point to new function.
3395 * abug-rom.c (abug_regname): Same as above.
3396 (init_abug_cmds): Same.
3397 * dbug-rom.c (dbug_regname): Same as above.
3398 (init_dbug_cmds): Same.
3399 * remote-est.c (est_regname): Same.
3400 (init_est_cmds): Same.
3401 * rom68k-rom.c (rom68k_regname): Same.
3402 (init_rom68k_cmds): Same.
3403
ea9365bb
TT
34042002-06-25 Tom Tromey <tromey@redhat.com>
3405
3406 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3407
72cec141
AC
34082002-06-25 Andrew Cagney <cagney@redhat.com>
3409
3410 * infrun.c (stop_registers): Change variable's type to ``struct
3411 regcache'''.
3412 (xmalloc_inferior_status): Delete function.
3413 (free_inferior_status): Delete function.
3414 (normal_stop): Use regcache_cpy.
3415 (struct inferior_status): Change type of fields ``stop_registers''
3416 and ``registers'' to ``struct regcache''.
3417 (write_inferior_status_register): Use regcache_write.
3418 (save_inferior_status): Instead of calling
3419 xmalloc_inferior_status, allocate the inf_status buffer directly.
3420 Use regcache_dup_no_passthrough and regcache_dup to save the
3421 buffers.
3422 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3423 Replace the stop_registers regcache instead of overriding it. Use
3424 regcache_xfree. Instead of calling free_inferior_status, xfree
3425 the buffer directly.
3426 (discard_inferior_status): Use regcache_xfree. Instead of calling
3427 free_inferior_status, xfree the buffer directly.
3428 (build_infrun): Use regcache_xmalloc.
3429 (_initialize_infrun): Delete redundant call to build_infrun.
3430
3431 * Makefile.in (infcmd.o): Add $(regcache_h).
3432
3433 * infcmd.c: Include "regcache.h".
3434 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3435 obtain the address of `stop_registers' register buffer.
3436 (print_return_value): Ditto.
3437
3438 * inferior.h (struct regcache): Add opaque declaration.
3439 (stop_registers): Change variable's declared type to ``struct
3440 regcache''.
3441
defc6f8c
TT
34422002-06-24 Tom Tromey <tromey@redhat.com>
3443
c0e624e7
TT
3444 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3445 * target.c (initialize_targets): Fixed typo in
3446 trust-readonly-sections `show' documentation.
3447
defc6f8c
TT
3448 * main.c: Marked all strings with _().
3449
2b236d82
DH
34502002-06-24 Don Howard <dhoward@redhat.com>
3451
3452 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3453 that means max CORE_ADDR+1.
3454 (lookup_mem_region): Ditto.
3455 (mem_info_command): Ditto.
3456
942dc0e9
GS
34572002-06-24 Grace Sainsbury <graces@redhat.com>
3458
3459 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3460 (REGISTER_BYTES_OK): Remove.
3461 (REGISTER_BYTES): Remove.
3462 (STORE_STRUCT_RETURN): Remove.
3463 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3464 (STORE_RETURN_VALUE): Remove.
3465 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3466 (FRAME_CHAIN): Remove.
3467 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3468 (FRAME_SAVED_PC): Remove.
3469 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3470 (m68k_store_struct_return): Add.
3471 (m68k_deprecated_extract_return_value): Add.
3472 (m68k_deprecated_extract_struct_value_address): Add.
3473 (m68k_store_return_value): Add.
3474 (m68k_frame_chain): Add.
3475 (m68k_frameless_function_invocation): Add.
3476 (m68k_frame_saved_pc): Add.
3477 (m68k_gdbarch_init): added set_gdbarch calls for new
3478 functions and deleted macros.
3479
03c30d4d
TT
34802002-06-23 Tom Tromey <tromey@redhat.com>
3481
3482 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3483 (ALLDEPFILES): Likewise.
3484 (udiheaders): Removed.
3485 (udip2soc.o): Likewise.
3486 (udi2go32.o): Likewise.
3487 (udr.o): Likewise.
3488 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3489
37e71372
AC
34902002-06-22 Andrew Cagney <ac131313@redhat.com>
3491
06a6ac57
AC
3492 * infrun.c (_initialize_infrun): Delete unnecessary call to
3493 build_infrun.
3494
37e71372
AC
3495 * regcache.h: Update comments describing the regcache_cpy family
3496 of functions.
3497 (regcache_save, regcache_restore): Delete declaration.
3498 (regcache_save_no_passthrough): Delete declaration.
3499 (regcache_restore_no_passthrough): Delete declaration.
3500 * regcache.c (regcache_save): Delete function.
3501 (regcache_save_no_passthrough): Delete function.
3502 (regcache_restore): Delete function.
3503 (regcache_restore_no_passthrough): Delete function.
3504
78f6d055
AC
35052002-06-21 Andrew Cagney <ac131313@redhat.com>
3506
3507 * config/m68k/tm-m68k.h: Fix typo.
3508 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3509 (m68k_frame_init_saved_regs): Declare.
3510
78b119cb
JB
35112002-06-21 Jim Blandy <jimb@redhat.com>
3512
3513 Remove some vestiges of Harris 88k support.
3514 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3515 register numbering quirk.
3516 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3517 odd symbols occurring in Harris 88k ELF targets.
3518
0fbb3da7
TT
35192002-06-21 Tom Tromey <tromey@redhat.com>
3520
3521 * gdb_locale.h: New file.
3522 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3523 (defs_h): Added gdb_locale.h.
3524 * configure, config.in: Rebuilt.
3525 * configure.in (PACKAGE): Define.
3526 * defs.h: Include gdb_locale.h.
3527 * main.c (captured_main): Call setlocale, bindtextdomain,
3528 textdomain.
3529
456f8b9d
DB
35302002-06-21 Dave Brolley <brolley@redhat.com>
3531
3532 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3533 * config/frv/frv.mt: New file.
3534 * config/frv/tm-frv.h: New file.
3535 * configure.tgt: Support frv-*-*.
3536 * Makefile.in (frv-tdep.o): New target.
3537 * frv-tdep.c: New file.
3538 * NEWS: Mention frv.
3539
cdd463f9
DB
35402002-06-21 Dave Brolley <brolley@redhat.com>
3541
3542 * MAINTAINERS: Add self to "Write After Approval" list.
3543
5d3ed2e3
GS
35442002-06-21 Grace Sainsbury <graces@redhat.com>
3545
3546 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3547 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3548 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3549 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3550 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3551
3552 * m68k-tdep.c: Include arch-utils.h
3553 (m68k_register_raw_size): Add.
3554 (m68k_register_virtual_size): Add.
3555 (m68k_register_virtual_type): Add.
3556 (m68k_register_name): Add.
3557 (m68k_stack_align): Add.
3558 (m68k_register_byte): Add.
3559 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3560 tm-m68k.h.
3561
7f8e7424
GS
35622002-06-21 Grace Sainsbury <graces@redhat.com>
3563
a2c6a6d5 3564 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3565 m68k_find_saved_regs.
3566 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3567 references to it with frame->saved_regs.
7f8e7424
GS
3568 (m68k_gdbarch_init): Added function calls to initialize the
3569 gdbarch structure.
a2c6a6d5
GS
3570 (m68k_fix_call_dummy): Add.
3571 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3572 (CALL_DUMMY): Remove.
3573 (CALL_DUMMY_LENGTH): Remove.
3574 (CALL_DUMMY_START_OFFSET): Remove.
3575 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3576 (FIX_CALL_DUMMY): Remove.
3577 (PUSH_DUMMY_FRAME): Remove.
3578 (POP_FRAME): Remove.
7f8e7424 3579
f461f5cf
PM
35802002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3581
3582 * parse.c (parse_fprintf): New function used to avoid calls to
3583 fprintf in bison parser generated debug code.
3584 * parser-defs.h: Declaration of new parse_fprintf function.
3585 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3586 Set YYDEBUG to 1 by default.
3587 Set YYFPRINTF as parse_fprintf.
3588
7f0c12ed
ML
35892002-06-21 Michal Ludvig <mludvig@suse.cz>
3590
3591 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3592 encoding anymore.
3593 (pointer_encoding, enum ptr_encoding): New.
3594 (execute_cfa_program): Take care about pointer encoding.
3595 (dwarf2_build_frame_info): Only call parse_frame_info for
3596 .debug_frame and .eh_frame.
3597 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3598 fixed augmentation handling, added relative addressing,
3599 ignore duplicate FDEs. Added comments.
19d833a2 3600 * dwarf2cfi.c: Reindented.
7f0c12ed 3601
87c4a039
EZ
36022002-06-20 Elena Zannoni <ezannoni@redhat.com>
3603
3604 * event-top.c (command_handler): Don't use space_at_cmd_start
3605 unless there is sbrk() on the host. Assign time and space data
3606 to union fields of the appropriate length.
3607
1cf877ad
ML
36082002-06-20 Michal Ludvig <mludvig@suse.cz>
3609
3610 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3611 x86_64_register_name. Return type changed to 'const char *'.
3612 (x86_64_register_name2nr): Rename to x86_64_register_number.
3613 (x86_64_gdbarch_init): Update to reflect the change.
3614 * x86-64-tdep.h: Ditto.
3615 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3616 (supply_fpregset): Ditto.
3617
3fadccb3
AC
36182002-06-19 Andrew Cagney <cagney@redhat.com>
3619
3620 * regcache.h: Update copyright.
3621 (struct regcache, struct gdbarch): Add opaque declarations.
3622 (current_regcache): Declare global variable.
3623 (regcache_read, regcache_write): Add gdbarch parameter.
3624 (regcache_save, regcache_save_no_passthrough)
3625 (regcache_restore, regcache_restore_no_passthrough)
3626 (regcache_dup, regcache_dup_no_passthrough)
3627 (regcache_cpy, regcache_cpy_no_passthrough)
3628 (deprecated_grub_regcache_for_registers)
3629 (deprecated_grub_regcache_for_register_valid)
3630 (regcache_valid_p): Add function declarations.
3631
3632 * regcache.c: Update copyright.
3633 (regcache_descr_handle): New global variable.
3634 (struct regcache_descr): Define.
3635 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3636 (regcache_descr, xfree_regcache_descr): New functions.
3637 (struct regcache): Define.
3638 (regcache_xmalloc, regcache_xfree): New functions.
3639 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3640 (regcache_dup, regcache_dup_no_passthrough): New functions.
3641 (regcache_valid_p, regcache_read_as_address): New functions.
3642 (deprecated_grub_regcache_for_registers): New function.
3643 (deprecated_grub_regcache_for_register_valid): New function.
3644 (current_regcache): New global variable.
3645 (register_buffer): Add regcache parameter. Update calls.
3646 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3647 (read_register_gen, write_register_gen): Update register_buffer
3648 call. Test for legacy_p instead of gdbarch_register_read_p or
3649 gdbarch_register_write_p.
3650 (regcache_collect): Update register_buffer call.
3651 (build_regcache): Rewrite. Use deprecated grub functions.
3652 (regcache_save, regcache_save_no_passthrough): New functions.
3653 (regcache_restore, regcache_restore_no_passthrough): New
3654 functions.
3655 (_initialize_regcache): Create the regcache_data_handle. Swap
3656 current_regcache global variable.
3657
3658 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3659 parameter to regcache_read and regcache_write calls.
3660 (sh4_register_read): Ditto.
3661 (sh64_pseudo_register_read): Ditto.
3662 (sh64_register_read): Ditto.
3663 (sh_pseudo_register_write): Ditto.
3664 (sh4_register_write): Ditto.
3665 (sh64_pseudo_register_write): Ditto.
3666 (sh64_register_write): Ditto.
3667
3668 * defs.h (XCALLOC): Define.
3669
152d9db6
GS
36702002-06-19 Grace Sainsbury <graces@redhat.com>
3671
3672 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3673 * m68k-tdep.c (m68k_gdbarch_init): Added.
3674 (m68k_dump_tdep): Added.
3675
170911c7
DJ
36762002-06-19 Daniel Jacobowitz <drow@mvista.com>
3677
3678 * ada-lang.c (fill_in_ada_prototype): Update comment.
3679
2e4ebe70
DJ
36802002-06-19 Daniel Jacobowitz <drow@mvista.com>
3681
3682 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3683 MIPS_ABI_LAST.
3684 (mips_abi_string, mips_abi_strings): New.
3685 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3686 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3687 tdep->mips_abi_string. Honor mips_abi_string. Default to
3688 O32 if no ABI is found.
3689 (mips_dump_tdep): Use mips_abi_strings.
3690 (mips_abi_update): New function.
3691 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3692 ``set mips abi'' and ``show mips abi''. Check the size of
3693 mips_abi_strings.
3694
16775908
AC
36952002-06-19 Andrew Cagney <cagney@redhat.com>
3696
3697 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3698 constant.
3699
5051bfa4 37002002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3701
5051bfa4
JB
3702 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3703 current frame using only the first stack size adjustment. All
3704 subsequent size adjustments are not considered to be part of
3705 the "static" part of the current frame.
3706 Compute the address of the saved registers relative to the
3707 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3708 in use in this frame.
3709
56468235
DH
37102002-06-18 Don Howard <dhoward@redhat.com>
3711
3712 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3713 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3714 suggesting this solution.
3715
0b624158
AC
37162002-06-18 Andrew Cagney <ac131313@redhat.com>
3717
3718 * config/romp/xm-rtbsd.h: Delete file.
3719 * config/romp/rtbsd.mh: Delete file.
3720
221ea385
KS
37212002-06-18 Keith Seitz <keiths@redhat.com>
3722
3723 * breakpoint.c (condition_command): Post breakpoint_modify
3724 when a condition is added to an existing breakpoint.
3725 (commands_command): Likewise for commands.
3726 (set_ignore_count): Likewise for ignore counts.
3727 If no tty, do not simply return, still need to send event
3728 notification.
3729 (ignore_command): Only print a newline if the command came
3730 from a tty.
3731 Don't call breakpoints_changed, since this is now properly
3732 handled by set_ignore_count.
3733
5402eed1
AC
37342002-06-18 Andrew Cagney <cagney@redhat.com>
3735
3736 * MAINTAINERS: Note that cris-elf target can be compiled with
3737 -Werror.
3738 * cris-tdep.c (cris_register_name): Make return type constant.
3739 (cris_breakpoint_from_pc): Ditto.
3740
cc22880b
ML
37412002-06-18 Michal Ludvig <mludvig@suse.cz>
3742
3743 * frame.h (struct frame_info): Change type of context to
3744 'struct context'.
3745
fa88f677
AC
37462002-06-17 Andrew Cagney <cagney@redhat.com>
3747
3748 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3749 pointer.
3750 * gdbarch.h, gdbarch.c: Regenerate.
3751 * config/mips/tm-mips.h (mips_register_name): Update.
3752 * i386-tdep.h (i386_register_name): Update.
3753 * mips-tdep.c (mips_register_name): Update
3754 * alpha-tdep.c (alpha_register_name): Update.
3755 * arch-utils.c (legacy_register_name): Update.
3756 * arch-utils.h (legacy_register_name): Update.
3757 * avr-tdep.c (avr_register_name): Update.
3758 * ia64-tdep.c (ia64_register_name): Update.
3759 * i386-tdep.c (i386_register_name): Update.
3760 * sparc-tdep.c (sparc32_register_name): Update.
3761 (sparc64_register_name): Update.
3762 (sparclite_register_name): Update.
3763 (sparclet_register_name): Update.
3764 * sh-tdep.c (sh_generic_register_name): Update.
3765 (sh_sh_register_name): Update.
3766 (sh_sh3_register_name): Update.
3767 (sh_sh3e_register_name): Update.
3768 (sh_sh_dsp_register_name): Update.
3769 (sh_sh3_dsp_register_name): Update.
3770 (sh_sh4_register_name): Update.
3771 (sh_sh64_register_name): Update.
3772 * s390-tdep.c (s390_register_name): Update.
3773 * rs6000-tdep.c (rs6000_register_name): Update.
3774 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3775 (ns32k_register_name_32382): Update.
3776 * d10v-tdep.c (d10v_ts2_register_name): Update.
3777 (d10v_ts3_register_name): Update.
3778 * xstormy16-tdep.c (xstormy16_register_name): Update.
3779 * vax-tdep.c (vax_register_name): Update.
3780 * v850-tdep.c (v850_register_name): Update.
3781 * m68hc11-tdep.c (m68hc11_register_name): Update.
3782 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3783 (am33_register_name): Update.
3784
ea1e7ef6
GS
37852002-06-17 Grace Sainsbury <graces@redhat.com>
3786
3787 * m68k-tdep.c: Reindented.
3788
9b02dd1b
AC
37892002-06-17 Andrew Cagney <ac131313@redhat.com>
3790
3791 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3792 list of predefined types.
3793
8758dec1
MK
37942002-06-16 Mark Kettenis <kettenis@gnu.org>
3795
b6197528
MK
3796 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3797 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3798 REGISTER_CONVERT_TO_RAW): Remove defines.
3799 (i386_register_virtual_type, i386_register_convertible,
3800 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3801 Remove prototypes.
3802 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3803 macros mentioned above.
3804
82b47e62
MK
3805 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3806 (i386lynx_saved_pc_after_call): Remove prototype.
3807 * i386ly-tdep.c: Include "i386-tdep.h".
3808 (i386lynx_saved_pc_after_call): Make static. Use
3809 read_memory_nobpt instead of read_memory. Use
3810 read_memory_unsigned_integer instead of read_memory_integer.
3811 (i386lynx_init_abi): New function.
3812 (i386lynx_coff_osabi_sniffer): New function.
3813 (_initialize_i386bsd_tdep): New function.
3814
8758dec1
MK
3815 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3816 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3817 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3818 (i386_fix_call_dummy): Remove prototype.
3819 * i386-tdep.c (i386_call_dummy_words): New variable.
3820 (i386_gdbarch_init): Adjust for removal of the
3821 macros mentioned above.
3822
e9e68a56
AC
38232002-06-15 Andrew Cagney <ac131313@redhat.com>
3824
3825 * command.h (add_setshow_auto_boolean_cmd): Replace
3826 add_set_auto_boolean_cmd.
3827 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3828 add_set_auto_boolean_cmd.
3829 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3830 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3831 mask-address'' command.
3832 (show_mask_address): Add cmd parameter.
3833 * remote.c (add_packet_config_cmd): Update. Change type of
3834 set_func and show_func to cmd_sfunc_ftype.
3835 (_initialize_remote): Update `set remote Z-packet'
3836 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3837 (show_remote_protocol_e_packet_cmd): Ditto.
3838 (show_remote_protocol_E_packet_cmd): Ditto.
3839 (show_remote_protocol_P_packet_cmd): Ditto.
3840 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3841 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3842 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3843 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3844 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3845 (show_remote_protocol_Z_packet_cmd): Ditto.
3846 (show_remote_protocol_binary_download_cmd): Ditto.
3847 (show_remote_cmd): Pass NULL to all of above.
3848
fc08ec52
MK
38492002-06-15 Mark Kettenis <kettenis@gnu.org>
3850
3851 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3852 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3853 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3854 POP_FRAME): Remove defines.
3855 (i386_push_arguments, i386_store_struct_return,
3856 i386_extract_return_value, i386_store_return_value,
3857 i386_extract_struct_value_address, i386_push_dummy_frame,
3858 i386_pop_frame): Renove prototypes.
3859 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3860 macros mentioned above.
3861
e707bbc2
AC
38622002-06-15 Andrew Cagney <ac131313@redhat.com>
3863
3864 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3865 add_set_boolean_cmd.
3866 (add_setshow_cmd): New function.
3867 * command.h (add_setshow_boolean_cmd): Replace
3868 add_set_boolean_cmd.
3869 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3870 and ``set rdiromatzero''.
3871 * maint.c (_initialize_maint_cmds): Update commented out code.
3872 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3873 * target.c (initialize_targets): Update `set
3874 trust-readonly-sections'.
3875 * remote.c (_initialize_remote): Update `set remotebreak'.
3876
42fdc8df
MK
38772002-06-15 Mark Kettenis <kettenis@gnu.org>
3878
93924b6b
MK
3879 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3880 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3881 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3882 fit into multi-arch framework.
3883 (i386_breakpoint_from_pc): New function.
3884 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3885 above.
3886
42fdc8df
MK
3887 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3888 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3889 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3890 (i386_frameless_function_invocation, i386_frame_num_args,
3891 i386_frame_init_saved_regs): Remove prototypes.
3892 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3893 macros mentioned above.
3894
9773a94b
AC
38952002-06-15 Andrew Cagney <ac131313@redhat.com>
3896
3897 * cli/cli-decode.c (set_cmd_cfunc): Update.
3898 (set_cmd_sfunc): Update.
3899 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3900 (set_cmd_sfunc, set_cmd_cfunc): Update.
3901 * cli/cli-decode.h: Update.
3902
6e157172
MK
39032002-06-15 Mark Kettenis <kettenis@gnu.org>
3904
3905 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3906 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3907
7f19b9a2
AC
39082002-06-15 Andrew Cagney <ac131313@redhat.com>
3909
3910 * defs.h (auto_boolean): Declare enum.
3911 * command.h (cmd_auto_boolean): Delete enum.
3912 * mips-tdep.c (mask_address_var): Update.
3913 (mips_mask_address_p): Update.
3914 (show_mask_address): Update.
3915 * remote.c (struct packet_config): Update.
3916 (update_packet_config): Update.
3917 (show_packet_config_cmd): Update.
3918 (packet_ok): Update.
3919 (add_packet_config_cmd): Update.
3920 (_initialize_remote):
3921 * command.h: Update.
3922 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3923 (do_setshow_command): Update.
3924 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3925 * cli/cli-decode.h: Update.
3926
1cf88de5
MK
39272002-06-15 Mark Kettenis <kettenis@gnu.org>
3928
22ba8cf2
MK
3929 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3930 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3931 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3932 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3933 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3934 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3935
762c5349
MK
3936 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3937 list of DJGPP COFF targets.
3938
091198bb
MK
3939 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3940 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3941 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3942 (FP0_REGNUM): Remove define.
3943 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3944 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3945 (i386_register_virtual_size): Remove protoype.
3946 * i386-tdep.c (i386_register_virtual_size): Removed.
3947 (i386_extract_return_value, i386_store_return_value): Use
3948 FP0_REGNUM instead of NUM_FREGS to determine whether the
3949 floating-point registers are available.
3950 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3951 Adjust for removal of macros mentioned above.
3952
39532002-06-15 Mark Kettenis <kettenis@gnu.org>
3954
fcc9bf01
MK
3955 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3956 comments.
3957 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3958 Remove prototypes.
3959 (supply_gregset, fill_gregset): Remove use of register keyword and
3960 remove declaration for regmap. Use I386_NUM_GREGS instead of
3961 NUM_REGS and NUM_FREGS.
3962 (FPREGSET_FSAVE_OFFSET): Remove.
3963 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3964 NUM_FREGS to determine whether the floating-point registers are
3965 available.
3966
65e78234
MK
3967 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3968 gnu_store_registers): Replace usage of NUM_GREGS with
3969 I386_NUM_GREGS.
3970
98df6387
MK
3971 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3972 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3973 usage of NUM_GREGS with I386_NUM_GREGS.
3974
099a9414
MK
3975 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3976
57976e88
MK
3977 * i386bsd-nat.c: Include "i386-tdep.h".
3978 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3979 I386_NUM_GREGS.
3980
b335f4a6
MK
3981 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3982 and associated comment. They no longer make any sense, since we
3983 don't use this file anymore on Linux.
3984
1cf88de5
MK
3985 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3986 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3987 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3988 elements in these arrays.
3989 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3990 MAX_NUM_REGS.
3991
daa66587
MK
39922002-06-15 Mark Kettenis <kettenis@gnu.org>
3993
3994 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3995 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3996
26e9b323
AC
39972002-06-14 Andrew Cagney <cagney@redhat.com>
3998
3999 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4000 EXTRACT_RETURN_VALUE.
4001 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4002 EXTRACT_STRUCT_VALUE_ADDRESS.
4003 * gdbarch.h, gdbarch.c: Regenerate.
4004
4005 * values.c (value_being_returned): Handle
4006 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4007 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4008
4009 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4010 * arm-tdep.c (arm_gdbarch_init): Update.
4011 * avr-tdep.c (avr_gdbarch_init): Update.
4012 * cris-tdep.c (cris_gdbarch_init): Update.
4013 * d10v-tdep.c (d10v_gdbarch_init): Update.
4014 * ia64-tdep.c (ia64_gdbarch_init): Update.
4015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4016 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4017 * s390-tdep.c (s390_gdbarch_init): Update.
4018 * sh-tdep.c (sh_gdbarch_init): Update.
4019 * s390-tdep.c (s390_gdbarch_init): Update.
4020 * sparc-tdep.c (sparc_gdbarch_init): Update.
4021 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4022 * v850-tdep.c (v850_gdbarch_init): Update.
4023 * vax-tdep.c (vax_gdbarch_init): Update.
4024 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4026
4027 * config/arc/tm-arc.h: Update.
4028 * config/d30v/tm-d30v.h: Update.
4029 * config/fr30/tm-fr30.h: Update.
4030 * config/h8300/tm-h8300.h: Update.
4031 * config/h8500/tm-h8500.h: Update.
4032 * config/i386/tm-i386.h: Update.
4033 * config/i386/tm-ptx.h: Update.
4034 * config/i386/tm-symmetry.h: Update.
4035 * config/i960/tm-i960.h: Update.
4036 * config/m32r/tm-m32r.h: Update.
4037 * config/m68k/tm-delta68.h: Update.
4038 * config/m68k/tm-linux.h: Update.
4039 * config/m68k/tm-m68k.h: Update.
4040 * config/m88k/tm-m88k.h: Update.
4041 * config/mcore/tm-mcore.h: Update.
4042 * config/mips/tm-mips.h: Update.
4043 * config/mn10200/tm-mn10200.h: Update.
4044 * config/pa/tm-hppa.h: Update.
4045 * config/pa/tm-hppa64.h: Update.
4046 * config/sparc/tm-sp64.h: Update.
4047 * config/sparc/tm-sparc.h: Update.
4048 * config/sparc/tm-sparclet.h: Update.
4049 * config/z8k/tm-z8k.h: Update.
4050
5179e78f
AC
40512002-06-14 Andrew Cagney <cagney@redhat.com>
4052
4053 * Makefile.in (i386_linux_tdep_h): Define.
4054 (i386_tdep_h, i387_tdep_h): Define.
4055 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4056 $(i386_tdep_h) and $(i387_tdep_h).
4057 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4058
8201327c
MK
40592002-06-14 Mark Kettenis <kettenis@gnu.org>
4060
edf393ac
MK
4061 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4062 Already covered by the default.
4063
896fb97d
MK
4064 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4065 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4066 (i386_gdbarch_init): Initialize long_double_format and long_double
4067 bit.
4068
8201327c
MK
4069 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4070 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4071 Move these to ...
4072 * config/i386/i386sol2.mh: ... here.
4073 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4074 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4075 (SIGCONTEXT_PC_OFFSET): Remove define.
4076 (IN_SIGTRAMP): Remove define.
4077 * i386-sol2-tdep.c: New file.
4078
4079 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4080 * config/i386/tm-i386nw.h: Removed.
4081
4082 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4083 USE_STRUCT_CONVENTION): Remove defines.
4084 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4085 (get_longjmp_target): Remove prototype.
4086 (IN_SIGTRAMP): Remove define.
4087 (i386bsd_in_sigtramp): Remove prototype.
4088 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4089 function. Update comment accordingly
4090 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4091 (FRAME_SAVED_PC): Remove define.
4092 (i386bsd_frame_saved_pc): Remove prototype.
4093 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4094 GET_LONGJMP_TARGET): Remove defines.
4095 (get_longjmp_target): Remove prototype.
4096 (IN_SIGTRAMP): Remove define.
4097 (i386bsd_in_sigtramp): Remove prototype.
4098 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4099 function. Update comment accordingly
4100 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4101 (FRAME_SAVED_PC): Remove define.
4102 (i386bsd_frame_saved_pc): Remove prototype.
4103 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4104 Remove prototype.
4105 (USE_STRUCT_CONVENTION): Remove prototype.
4106 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4107 declaration.
4108 (_initialize_i386bsd_nat): Revise logic to determine some
4109 constants at compile time when compiling a native GDB. Warn if
4110 things don't match up with what we expect.
4111 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4112 Remove variables.
4113 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4114 to use date stored in `struct gdbarch_tdep'.
4115 (i386bsd_sigcontext_offset): Remove varaible.
4116 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4117 stored in `struct gdbarch_tdep'.
4118 (i386bsd_frame_saved_pc): Make static.
4119 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4120 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4121 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4122 i386fbsd4_sc_pc_offset): New variables.
4123 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4124 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4125 functions.
4126 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4127 functions.
4128 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4129 Modify the value of i386fbsd_sigtramp_start and
4130 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4131 i386fbsd_sigtramp_end.
4132 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4133 function.
4134
4135 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4136 define to i386-linux-tdep.h.
4137 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4138 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4139 defines.
4140 (i386_linux_register_name, i386_linux_register_byte,
4141 i386_linux_register_raw_size): Remove prototypes.
4142 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4143 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4144 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4145 TARGET_WRITE_PC): Remove defines.
4146 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4147 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4148 i386_linux_write_pc): Remove prototypes.
4149 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4150 (get_longjmp_target): Remove prototype.
4151 * i386-linux-tdep.h: New file.
4152 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4153 * i386-linux-tdep.c: Include "i386-tdep.h" and
4154 "i386-linux-tdep.h".
4155 (i386_linux_register_name, i386_linux_register_byte,
4156 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4157 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4158 Make static.
4159 (i386_linux_init_abi): New function.
4160 (_initialize_i386_linux_tdep): New function.
4161
4162 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4163 (i386_saved_pc_after_call): Remove prototype.
4164 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4165 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4166 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4167 (i386_register_name, i386_stab_reg_to_regnum,
4168 i386_dwarf_reg_to_regnum): Remove prototypes.
4169 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4170 SIZEOF_SSE_REGS): Remove defines.
4171 (REGISTER_BYTES): Remove define.
4172 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4173 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4174 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4175 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4176 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4177 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4178 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4179 (get_longjmp_target): Remove prototype.
4180 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4181 (sigtramp_saved_pc): Remove define.
4182 (i386v4_sigtramp_saved_pc): Remove prototype.
4183 * config/i386/tm-go32.h (FRAME_CHAIN,
4184 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4185 (i386go32_frame_saved_pc): Remove prototype.
4186 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4187 (get_longjmp_target): Remove prototype.
4188 * i386-tdep.h: Include "osabi.h".
4189 (enum i386_abi): Removed.
4190 (enum struct_return): New enum.
4191 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4192 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4193 sc_pc_offset members.
4194 (i386_gdbarch_register_os_abi): Remove prototype.
4195 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4196 I386_SSE_NUM_REGS): New defines.
4197 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4198 I386_SSE_SIZEOF_REGS): New defines.
4199 (i386_register_name, i386_register_byte, i386_register_raw_size):
4200 New prototypes.
4201 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4202 (i386bsd_sigtramp_saved_pc): New prototype.
4203 * i386-tdep.c: Don't include "elf-bfd.h".
4204 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4205 i386_frame_chain, i386_saved_pc_after_call): Make static.
4206 (i386_frame_saved_pc): Rewrite to call architecture dependent
4207 function to deal with signal handlers. Make static.
4208 (i386go32_frame_saved_pc): Removed.
4209 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4210 Removed.
4211 (i386_get_longjmp_target): New function.
4212 (default_struct_convention, pcc_struct_convention,
4213 reg_struct_convention, valid_conventions, struct_convention): New
4214 variables.
4215 (i386_use_struct_convention): New function.
4216 (i386v4_sigtramp_saved_pc): Renamed to
4217 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4218 (i386_pc_in_sigtramp): New function.
4219 (i386_abi_names): Removed.
4220 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4221 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4222 Removed.
4223 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4224 i386_gdbarch_register_os_abi): Removed.
4225 (struct i386_abi_handler): Removed.
4226 (i386_abi_handler_list): Removed.
4227 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4228 functions.
4229 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4230 i386_nw_init_abi): New functions.
4231 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4232 Use set_gdbarch_xxx() calls instead of relying on macros for a
4233 number of calls.
4234 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4235 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4236 Register the various architecture variants defined in this file.
4237
ad2f7632
DJ
42382002-06-14 Daniel Jacobowitz <drow@mvista.com>
4239
4240 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4241 (struct main_type): Remove arg_types member. Update comments for
4242 struct field.
4243 (TYPE_ARG_TYPES): Remove.
4244 (TYPE_FN_FIELD_ARGS): Update.
4245 (smash_to_method_type): Update prototype.
4246
4247 * c-typeprint.c (cp_type_print_method_args): Take method type
4248 instead of argument list. Use new argument layout. Simplify.
4249 (c_type_print_args): Use new argument layout. Simplify.
4250 (c_type_print_base): Update call to cp_type_print_method_args.
4251 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4252 argument; use die->type instead. Update call to
4253 smash_to_method_type.
4254 (read_structure_scope): Update call to dwarf2_add_member_fn.
4255 * gdbtypes.c (allocate_stub_method): Update comment.
4256 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4257 Use new argument layout.
4258 (check_stub_method): Use new argument layout. Don't count
4259 void as an argument.
4260 (print_arg_types): Update comments. Use new argument layout.
4261 (recursive_dump_type): Don't print arg_types member.
4262 * hpread.c (hpread_read_struct_type): Use new argument layout.
4263 (fixup_class_method_type): Likewise.
4264 (hpread_type_lookup): Likewise.
4265 * stabsread.c (read_type): Update calls to read_args and
4266 smash_to_method_type.
4267 (read_args): Use new argument layout. Simplify.
4268 * valops.c (typecmp): Use new argument layout. Update parameters
4269 and comments. Simplify.
4270 (hand_function_call): Use new argument layout.
4271 (search_struct_method): Update call to typecmp.
4272 (find_overload_match): Use new argument layout.
4273
6da02953
DJ
42742002-06-13 Daniel Jacobowitz <drow@mvista.com>
4275
4276 * NEWS: Mention multithreaded debug support for gdbserver.
4277
519b2366
DJ
42782002-06-13 Daniel Jacobowitz <drow@mvista.com>
4279
4280 * MAINTAINERS: Mention NEWS.
4281
6c0d6680
DJ
42822002-06-13 Daniel Jacobowitz <drow@mvista.com>
4283
4284 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4285 (struct mips_objfile_private, compare_pdr_entries): New.
4286 (non_heuristic_proc_desc): Read the ".pdr" section if it
4287 is present.
4288
6529d2dd
AC
42892002-06-12 Andrew Cagney <ac131313@redhat.com>
4290
4291 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4292 (arm_debug): New static variable.
4293 (_initialize_arm_tdep): Add ``set debug arm'' command.
4294
26216b98
AC
42952002-06-12 Andrew Cagney <ac131313@redhat.com>
4296
4297 * Makefile.in (sim_arm_h): Define.
4298 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4299 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4300 (arm_register_sim_regno): New function, map an internal REGNUM
4301 onto a simulator register number.
4302 (arm_gdbarch_init): Set register_sim_regno.
4303
814b3ba0
AH
43042002-06-09 Aldy Hernandez <aldyh@redhat.com>
4305
4306 * MAINTAINERS: Add self.
4307
475b0867
JB
43082002-06-11 Jim Blandy <jimb@redhat.com>
4309
919d772c
JB
4310 * source.c (source_info): Mention whether the symtab has
4311 information about preprocessor macros.
4312
475b0867
JB
4313 Call the command `info macro', not `show macro'.
4314 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4315 Fix error message.
4316 (_initialize_macrocmd): Register `info_macro_command' in
4317 `infolist', not `showlist'.
4318
9e364162
DJ
43192002-06-11 Daniel Jacobowitz <drow@mvista.com>
4320
4321 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4322 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4323 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4324 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4325 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4326 unconditionally.
4327 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4328 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4329 (_initialize_mips_tdep): Remove dead code.
4330 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4331 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4332 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4333 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4334 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4335 MIPS_LAST_FP_ARG_REGNUM): Remove.
4336
23aa4c72
ML
43372002-06-11 Michal Ludvig <mludvig@suse.cz>
4338
4339 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4340 (unwind_tmp_obstack_free, parse_frame_info)
4341 (update_context, cfi_read_fp, cfi_write_fp)
4342 (cfi_frame_chain, cfi_init_extra_frame_info)
4343 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4344 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4345
70eb15a4
CV
43462002-06-11 Corinna Vinschen <vinschen@redhat.com>
4347
4348 * v850-tdep.c (v850_type_is_scalar): New function.
4349 (v850_use_struct_convention): Match current gcc implementation
4350 as close as possible.
4351 (v850_push_arguments): Fix stack_offset handling. Don't write
4352 struct_addr into register. This is done by v850_store_struct_return.
4353 (v850_extract_return_value): Care for structs.
4354 (v850_store_return_value): Ditto.
4355 (v850_store_struct_return): Actually write address.
4356
482a4d06
ML
43572002-06-11 Michal Ludvig <mludvig@suse.cz>
4358
4359 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4360 without debug information too.
4361
d855c300
AC
43622002-06-10 Andrew Cagney <ac131313@redhat.com>
4363
4364 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4365 Make multi-arch pure.
4366 * gdbarch.h, gdbarch.c: Re-generate.
4367 * arm-tdep.c (arm_print_float_info): Update.
4368 * arch-utils.h (default_print_float_info): Update.
4369 * arch-utils.c (default_print_float_info): Update.
4370 * infcmd.c (float_info): Update call.
4371
dd12a101
AC
43722002-06-10 Andrew Cagney <ac131313@redhat.com>
4373
4374 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4375 the front of the initialize list.
4376
101dcfbe
AC
43772002-06-10 Andrew Cagney <ac131313@redhat.com>
4378
4379 * infrun.c (struct inferior_status): Replace fields
4380 selected_frame_address and selected_level with field
4381 selected_frame_id.
4382 (save_inferior_status): Update. Use get_frame_id.
4383 (struct restore_selected_frame_args): Delete.
4384 (restore_selected_frame): Update. Use frame_find_by_id.
4385 (restore_inferior_status): Update.
4386
4387 * breakpoint.h (struct breakpoint): Change type of
4388 watchpoint_frame to frame_id.
4389 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4390 call to get_current_frame.
4391 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4392 get_current_frame.
4393 (watchpoint_check): Use frame_find_by_id.
4394
4395 * frame.h (record_selected_frame): Delete declaration.
4396 * stack.c (record_selected_frame): Delete function.
4397
4398 * frame.h (struct frame_id): Define.
4399 (get_frame_id): Declare.
4400 (frame_find_by_id): Declare.
4401 * frame.c (frame_find_by_id): New function.
4402 (get_frame_id): New function.
4403
304270b6
AV
44042002-06-10 Andrey Volkov <avolkov@transas.com>
4405
4406 * ser-e7kpc.c: Fix duplicated define and call of
4407 _initialize_ser_e7000pc
4408
2f2cf184
DJ
44092002-06-09 Daniel Jacobowitz <drow@mvista.com>
4410
4411 * signals/signals.c (target_signal_from_host): Fix #ifdef
4412 SIGRTMIN case.
4413 (do_target_signal_to_host): Likewise.
4414
caaa3122
DJ
44152002-06-09 Daniel Jacobowitz <drow@mvista.com>
4416
4417 * mips-tdep.c (mips_find_abi_section): New function.
4418 (mips_gdbarch_init): Call it.
4419
6ac5df3a
MK
44202002-06-09 Mark Kettenis <kettenis@gnu.org>
4421
4422 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4423 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4424 after Andrew's 2002-06-08 gdbarch change.
4425
82ea117a
MK
44262002-06-09 Mark Kettenis <kettenis@gnu.org>
4427
4428 * i386-linux-nat.c (suppy_gregset): Don't supply
4429 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4430 register cache.
4431 (fill_gregset): Don't fetch it under the same circumstances.
4432
3c25f8c7
AC
44332002-06-09 Andrew Cagney <cagney@redhat.com>
4434
4435 * Makefile.in (callback_h): Define.
4436 (remote_sim_h): Update path to remote-sim.h.
4437 (remote-rdp.o): Add $(callback_h).
4438 (remote-sim.o): Use $(callback_h).
4439 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4440 * remote-rdp.c: Include "gdb/callback.h".
4441
1029b7fa
MK
44422002-06-09 Mark Kettenis <kettenis@gnu.org>
4443
4444 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4445 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4446
616675d3
AC
44472002-06-08 Andrew Cagney <ac131313@redhat.com>
4448
a3efda28
AC
4449 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4450 * rdi-share/serpardr.c: Ditto.
4451 * rdi-share/unixcomm.c: Ditto.
4452 * rdi-share/serdrv.c: Ditto.
4453 * rdi-share/hostchan.h: Ditto.
4454 * rdi-share/hostchan.c: Ditto.
4455 * rdi-share/host.h: Ditto.
4456 * rdi-share/devsw.c: Ditto.
4457
c5f10366
AC
4458 * objfiles.h: Change type of obj_private to void pointer.
4459 * pa64solib.c: Update copyright. Don't include "assert.h", use
4460 strcmp instead of STREQ, use LONGEST, do not use PTR
4461 * somsolib.c: Ditto.
4462
616675d3
AC
4463 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4464 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4465 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4466
e4b415d9
AC
44672002-06-08 Andrew Cagney <ac131313@redhat.com>
4468
4469 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4470 (default_get_saved_register): Delete function.
4471 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4472 generic_unwind_get_saved_register.
4473 * gdbarch.h, gdbarch.c: Re-generate.
4474
ca0d0b52
AC
44752002-06-08 Andrew Cagney <ac131313@redhat.com>
4476
4477 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4478 generic_func_frame_chain_valid.
4479 * gdbarch.h, gdbarch.c: Re-generate.
4480 * blockframe.c (generic_func_frame_chain_valid): Only check
4481 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4482 passing FP to PC_IN_CALL_DUMMY.
4483 Fix PR gdb/360.
4484
76860b5f
AC
44852002-06-08 Andrew Cagney <ac131313@redhat.com>
4486
4487 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4488 (register_gdbarch_data): Initialize init_p.
4489 (gdbarch_data): Initialize data pointer using the init function.
4490 (init_gdbarch_data): Delete function.
4491 (gdbarch_update_p): Update.
4492 (initialize_non_multiarch): Update.
4493 (struct gdbarch): Add field initialized_p.
4494 * gdbarch.h, gdbarch.c: Re-generate.
4495
8dda9770
ML
44962002-06-07 Michal Ludvig <mludvig@suse.cz>
4497
4498 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4499 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4500 better do the things actually here.
4501 * x86-64-tdep.c (x86_64_register_name2nr): New.
4502 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4503 (x86_64_gdbarch_init): Respect the above change.
4504 * x86-64-tdep.h (x86_64_register_name2nr)
4505 (x86_64_register_nr2name): Add prototypes.
4506 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4507
3d79a47c
MS
45082002-06-06 Michael Snyder <msnyder@redhat.com>
4509
7bd91a28
MS
4510 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4511 Delete extra braces and re-indent.
4512 (d10v_store_return_value): Char return values
3d79a47c
MS
4513 must be shifted over by one byte in R0.
4514 (d10v_extract_return_value): Delete extra braces, re-indent.
4515
095a4c96
EZ
45162002-06-06 Elena Zannoni <ezannoni@redhat.com>
4517
4518 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4519 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4520 (d10v_integer_to_address): Rewrite.
4521 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4522 the d10v specific functions which take care of converting to the
4523 correct space.
4524
e8a77ca4
EZ
45252002-06-06 Elena Zannoni <ezannoni@redhat.com>
4526
4527 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4528 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4529
4f2e4a4f
AC
45302002-06-02 Andrew Cagney <ac131313@redhat.com>
4531
4532 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4533 includes.
4534 * config/tm-linux.h: Ditto.
4535 * config/alpha/tm-alphalinux.h: Ditto.
4536 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4537 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4538 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4539 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4540 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4541 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4542 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4543 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4544 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4545 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4546 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4547 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4548 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4549 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4550 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4551 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4552 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4553 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4554 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4555 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4556 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4557 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4558 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4559 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4560 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4561 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4562 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4563 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4564 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4565 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4566 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4567 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4568 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4569 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4570 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4571 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4572 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4573
ae2ab2ce
AS
45742002-05-04 Aidan Skinner <aidan@velvet.net>
4575
4576 * ada-exp.tab.c: New file
4577 * ada-exp.y: New file
4578 * ada-lang.c: New file
4579 * ada-lang.h: New file
4580 * ada-lex.c: New file
4581 * ada-lex.l: New file
4582 * ada-tasks.c: New file
4583 * ada-typeprint.c: New file
4584 * ada-valprint.c: New file
4585
0ddd0135
JT
45862002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4587
4588 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4589 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4590
750fbacc
JT
45912002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4592
4593 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4594 insetead of ppc-linux-tdep.o.
4595 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4596 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4597
df94e18a
AC
45982002-06-02 Andrew Cagney <ac131313@redhat.com>
4599
4600 2002-05-07 Christian Groessler <chris@groessler.org>
4601 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4602 bit register contents for little endian hosts.
4603
1a38ab75
AC
46042002-06-01 Andrew Cagney <ac131313@redhat.com>
4605
4606 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4607 any maintainer.
4608
8b1632ac
AC
46092002-06-01 Andrew Cagney <ac131313@redhat.com>
4610
4611 * gdbarch.h: Regenerate.
4612
627054c8
AC
46132002-06-01 Andrew Cagney <ac131313@redhat.com>
4614
4615 * MAINTAINERS: Add everyone to write-after-approval list.
4616
4f460812
AC
46172002-06-01 Andrew Cagney <ac131313@redhat.com>
4618
4619 * stack.c (frame_info): Use frame_register_unwind instead of
4620 saved_regs. Mention when the SP is on the stack or in a register.
4621
4622 * frame.h (frame_register_unwind_ftype): Define. Document.
4623 (struct frame_info): Add field register_unwind and
4624 register_unwind_cache.
4625 (frame_register_unwind): Declare.
4626 (generic_unwind_get_saved_register): Declare.
4627
4628 * frame.c (frame_register_unwind): New function.
4629 (generic_unwind_get_saved_register): New function.
4630
4631 * blockframe.c (generic_call_dummy_register_unwind): New function.
4632 (frame_saved_regs_register_unwind): New function.
4633 (set_unwind_by_pc): New function.
4634 (create_new_frame): New function.
4635 (get_prev_frame): New function.
4636
de888f76
AC
46372002-05-30 Andrew Cagney <ac131313@redhat.com>
4638
4639 * a29k-share/: Delete directory.
4640 * remote-vx29k.c: Delete file.
4641
2f2c3626
JT
46422002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4643
4644 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4645 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4646
9ce5c36a
JT
46472002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4648
4649 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4650 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4651 (sparc64nbsd-nat.o)
4652 (sparcnbsd-nat.o)
4653 (sparcnbsd-tdep.o): New dependency lists.
4654 * NEWS: Note new UltraSPARC NetBSD native configuration.
4655 * configure.host (sparc64-*-netbsd*): New host.
4656 * configure.tgt (sparc-*-netbsdelf*)
4657 (sparc-*-netbsd*): Set gdb_target to nbsd.
4658 (sparc64-*-netbsd*): New target.
4659 * sparc64nbsd-nat.c: New file.
4660 * sparcnbsd-nat.c: New file.
4661 * sparcnbsd-tdep.c: New file.
4662 * sparcnbsd-tdep.h: New file.
4663 * config/sparc/nbsd.mt: New file.
4664 * config/sparc/nbsd64.mh: New file.
4665 * config/sparc/nbsd64.mt: New file.
4666 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4667 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4668 (HOST_IPC): Remove.
4669 * config/sparc/nbsdaout.mt: Remove.
4670 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4671 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4672 (HOST_IPC): Remove.
4673 * config/sparc/nbsdelf.mt: Remove.
4674 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4675 sparc-nat.c compatiblity defines.
4676 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4677 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4678 * config/sparc/tm-nbsd64.h: New file.
4679 * config/sparc/tm-nbsdaout.h: Remove.
4680 * config/sparc/xm-nbsd.h: Remove.
4681
ef3cf062
JT
46822002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4683
4684 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4685 * sparc-tdep.c: Include osabi.h.
4686 (gdbarch_tdep): Add osabi member.
4687 (_initialize_sparc_tdep): Use gdbarch_register.
4688 (sparc_gdbarch_init): Use generic OS ABI framework.
4689 (sparc_dump_tdep): New function.
4690
ee8ff470
KB
46912002-05-30 Kevin Buettner <kevinb@redhat.com>
4692
4693 * corefile.c (do_captured_read_memory_integer): Return non-zero
4694 result.
4695 (safe_read_memory_integer): Copy result of memory read when
4696 status is non-zero. Also, add comments.
4697
7b112f9c
JT
46982002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4699
4700 * Makefile.in (ppc_tdep_h): Define.
4701 (ppc-linux-nat.o)
4702 (ppc-linux-tdep.o)
4703 (rs6000-tdep.o): Use $(ppc_tdep_h).
4704 (ppc-sysv-tdep.o)
4705 (ppcnbsd-nat.o)
4706 (ppcnbsd-tdep.o): New dependency lists.
4707 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4708 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4709 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4710 (ppc_sysv_abi_broken_use_struct_convention)
4711 (ppc_sysv_abi_use_struct_convention)
4712 (ppc_sysv_abi_push_arguments): Move to...
4713 * ppc-sysv-tdep.c: ...here.
4714 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4715 * rs6000-tdep.c (process_note_abi_tag_sections)
4716 (get_elfosabi): Remove.
4717 (rs6000_gdbarch_init): Use generic OS ABI framework.
4718 (rs6000_dump_tdep): New function.
4719 (_initialize_rs6000_tdep): Use gdbarch_register.
4720 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4721 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4722 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4723 of ppc-linux-tdep.o.
4724 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4725 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4726 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4727 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4728 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4729 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4730
480dd42a
JB
47312002-05-29 Jim Blandy <jimb@redhat.com>
4732
4733 * macroscope.c (default_macro_scope): Put `void' in empty argument
4734 list.
4735
4182591f
AC
47362002-05-29 Andrew Cagney <ac131313@redhat.com>
4737
4738 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4739 * arch-utils.c: Include "sim-regno.h".
4740 * gdbarch.sh: Don't include "sim-regno.h".
4741 * gdbarch.h, gdbarch.c: Regenerate.
4742 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4743 here.
4744 * arch-utils.h (legacy_register_sim_regno): To here.
4745 * remote-sim.c (legacy_register_sim_regno): Move function from
4746 here.
4747 * arch-utils.c (legacy_register_sim_regno): To here.
4748
8238d0bf
AC
47492002-05-28 Andrew Cagney <ac131313@redhat.com>
4750
4751 * sim-regno.h: New file.
4752 * Makefile.in (sim_regno_h): Define.
4753 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4754 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4755 (legacy_register_sim_regno): New function.
4756 (one2one_register_sim_regno): New function.
4757 (gdbsim_fetch_register): Rewrite.
4758 (gdbsim_store_register): Only store a register when
4759 REGISTER_SIM_REGNO is valid.
4760 * d10v-tdep.c: Include "sim-regno.h".
4761 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4762 (d10v_ts3_register_sim_regno): Ditto.
4763 * gdbarch.sh: Include "sim-regno.h".
4764 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4765 * gdbarch.h, gdbarch.c: Regenerate.
4766 * arch-utils.h (default_register_sim_regno): Delete declaration.
4767 * arch-utils.c (default_register_sim_regno): Delete function.
4768
485721b1
JT
47692002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4770
4771 * ppcnbsd-nat.c: Rewrite.
4772 * ppcnbsd-tdep.c: New file.
4773 * ppcnbsd-tdep.h: New file.
4774 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4775 solib.o, and solib-svr4.o.
4776 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4777 nbsd-tdep.o, and corelow.o.
4778
697f244d
AC
47792002-05-28 Andrew Cagney <ac131313@redhat.com>
4780
4781 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4782 `tr' and `sed'. Mention that `broken' targets are not expected to
4783 build.
4784
f08caad1 47852002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4786
4787 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4788 Let PC point right after the prologue before looking up symbols.
4789
3139facc
MH
47902002-05-27 Martin M. Hunt <hunt@redhat.com>
4791
4792 * i386-tdep.c (i386_register_virtual_type): Return
4793 builtin_type_vec128i for SSE registers.
4794
4795 * gdbtypes.h (builtin_type_vec128i): Declare.
4796
4797 * gdbtypes.c (build_builtin_type_vec128i): New function.
4798 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4799 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4800 (build_gdbtypes): Initialize new builtin vector types.
4801 (_initialize_gdbtypes): Register new vector types with gdbarch.
4802
6e3ba3b8
JT
48032002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4804
4805 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4806 since it has been multi-arch'd.
4807 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4808 Move Alpha and VAX multi-arch news entries to same section
4809 as other multi-arch news.
4810
93d5585d
JT
48112002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4812
4813 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4814 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4815 static. Rename some register numbers to put them in ns32k-tdep
4816 private namespace.
4817 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4818 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4819 functions.
4820 (_initialize_ns32k_tdep): Use gdbarch_register.
4821 * ns32k-tdep.h: New file.
4822 * ns32knbsd-tdep.c: New file.
4823 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4824 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4825 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4826 REGISTER_BYTES, REGISTER_BYTE): Remove.
4827 * config/ns32k/tm-ns32k.h: New file.
4828 * config/ns32k/tm-umax.h: Remove.
4829
efb2c70e
JT
48302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4831
4832 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4833 ns32k_store_struct_return, ns32k_extract_return_value,
4834 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4835 functions.
4836 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4837 ns32k_saved_pc_after_call.
4838 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4839 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4840 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4841 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4842 ns32k_extract_struct_value_address.
4843
7bcc927b
JT
48442002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4845
4846 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4847 ns32k_fix_call_dummy): New.
4848 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4849 ns32k_call_dummy_words.
4850 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4851 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4852 CALL_DUMMY_NARGS): Remove.
4853 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4854
78f9d765
JT
48552002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4856
4857 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4858 ns32k_frame_saved_pc, ns32k_frame_args_address,
4859 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4860 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4861 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4862 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4863 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4864 (BREAKPOINT): Remove..
4865 (FRAME_CHAIN): Define as ns32k_frame_chain.
4866 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4867 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4868 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4869 (FRAME_FIND_SAVED_REGS): Remove.
4870 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4871 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4872 (POP_FRAME): Define as ns32k_pop_frame.
4873
f2c762e0
JT
48742002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4875
4876 * ns32k-tdep.c (ns32k_register_byte_32082,
4877 ns32k_register_byte_32382, ns32k_register_raw_size,
4878 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4879 functions.
4880 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4881 ns32k_register_byte_32382.
4882 * config/ns32k/tm-umax.h: Update copyright years.
4883 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4884 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4885 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4886 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4887 (ns32k_get_enter_addr): Fix prototype.
4888
af137673
JT
48892002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4890
4891 * ns32k-tdep.c: Update copyright years.
4892 (ns32k_register_name_32082): New function.
4893 (ns32k_register_name_32382): Ditto.
4894 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4895 (REGISTER_NAME): Define as ns32k_register_name_32382.
4896 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4897 (REGISTER_NAME): Define as ns32k_register_name_32082.
4898
a8bc7b56
JB
48992002-05-24 Jim Blandy <jimb@redhat.com>
4900
4901 * dwarf2read.c (free_line_header): Use xfree, not free.
4902
83a45910
JT
49032002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4904
4905 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4906 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4907
0db71247
AC
49082002-05-23 Andrew Cagney <ac131313@redhat.com>
4909
4910 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4911
b9e5e4dd
AC
49122002-05-23 Andrew Cagney <ac131313@redhat.com>
4913
4914 From Ross Alexander at NEC Europe:
4915 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4916
de530e84
MS
49172002-05-23 Michael Snyder <msnyder@redhat.com>
4918
4919 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4920 for input, rather than parse_and_eval_address.
4921
b91b96f4
AC
49222002-05-23 Andrew Cagney <ac131313@redhat.com>
4923
4924 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4925 * Makefile.in (sim_d10v_h): Update definition.
4926
8b279e7a
AC
49272002-05-24 Andrew Cagney <cagney@redhat.com>
4928
4929 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4930 change `2002-05-22 Michael Snyder' below.
4931 (d10v_push_arguments): Ditto.
4932 (d10v_extract_return_value): Ditto.
4933
0a3d0425
JB
49342002-05-23 Jim Blandy <jimb@redhat.com>
4935
4936 * macrotab.c (check_for_redefinition): Don't complain if the new
4937 definition is the same as the previous one. Take more arguments
4938 to allow the comparison.
4939 (macro_define_object, macro_define_function): Pass more arguments
4940 to check_for_redefinition.
4941
78eac43e
MS
49422002-05-22 Michael Snyder <msnyder@redhat.com>
4943
4944 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4945 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4946 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4947 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4948 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4949 Add a temp variable to save a call (and a memory read).
4950 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4951 if possible (so that PC_IN_CALL_DUMMY will work).
4952
9bc1edb8
CV
49532002-05-22 Corinna Vinschen <vinschen@redhat.com>
4954
4955 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4956
005ef3d2
ML
49572002-05-22 Michal Ludvig <mludvig@suse.cz>
4958
4959 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4960 fde->cie_ptr.
4961 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4962 (dwarf2_build_frame_info): Add offset to fde->initial_location
4963 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4964 (execute_stack_op): Change type of 'result' from ULONGEST to
4965 CORE_ADDR.
005ef3d2 4966
fcf4f891
JT
49672002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4968
4969 * config/alpha/tm-nbsd.h: Include solib.h.
4970
cfef91e4
JT
49712002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4972
4973 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4974 assumptions about the host's byte order.
4975
9964235a
JT
49762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4977
4978 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4979 to dependency list.
4980 * alphanbsd-tdep.c: Include solib-svr4.h.
4981 * shnbsd-tdep.c: Ditto.
4982
9eeef8ef
JT
49832002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4984
4985 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4986 nbsd-tdep.h to dependency list.
4987 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4988 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4989 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4990 nbsdaout.mh and nbsdelf.mh consistently.
4991 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4992 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4993 nbsdaout.mt and nbsdelf.mh consistently.
4994 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4995 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4996 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4997 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4998 a.out shared library stuff from here...
4999 * config/nm-nbsdaout.h: ...to here.
5000 * config/tm-nbsd.h: Remove.
5001 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5002 * config/arm/nbsd.mh: Remove.
5003 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5004 nbsd-tdep.o.
5005 * config/arm/nbsdaout.mh: New file.
5006 * config/arm/nbsdelf.mh: New file.
5007 * config/arm/nm-nbsdaout.h: New file.
5008 * config/i386/nbsd.mh: Remove.
5009 * config/i386/nbsd.mt: Remove.
5010 * config/i386/nbsdaout.mh: New file.
5011 * config/i386/nbsdaout.mt: New file.
5012 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5013 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5014 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5015 i386_register_u_addr): Remove.
5016 * config/i386/nm-nbsdaout.h: New file.
5017 * config/i386/nm-nbsdelf.h: Remove.
5018 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5019 (USE_STRUCT_CONVENTION): Remove.
5020 * config/i386/tm-nbsdaout.h: New file.
5021 * config/i386/tm-nbsdelf.h: Remove.
5022 * config/m68k/nbsd.mh: Remove.
5023 * config/m68k/nbsd.mt: Remove.
5024 * config/m68k/nbsdaout.mh: New file.
5025 * config/m68k/nbsdaout.mt: New file.
5026 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5027 * config/m68k/nm-nbsdaout.h: New file.
5028 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5029 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5030 * config/ns32k/nbsd.mh: Remove.
5031 * config/ns32k/nbsd.mt: Remove.
5032 * config/ns32k/nbsdaout.mh: New file.
5033 * config/ns32k/nbsdaout.mt: New file.
5034 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5035 * config/ns32k/nm-nbsdaout.h: New file.
5036 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5037 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5038 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5039 (SVR4_SHARED_LIBS): Remove.
5040 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5041 * config/sparc/nbsd.mh: Remove.
5042 * config/sparc/nbsd.mt: Remove.
5043 * config/sparc/nbsdaout.mh: New file.
5044 * config/sparc/nbsdaout.mt: New file.
5045 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5046 * config/sparc/nbsdelf.mt: New file.
5047 * config/sparc/nm-nbsdaout.h: New file.
5048 * config/sparc/nm-nbsdelf.h: Remove.
5049 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5050 * config/sparc/tm-nbsdaout.h: New file.
5051
257ce470
JT
50522002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5053
5054 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5055 mipsnbsd-tdep.c
5056 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5057
76a6d5fe
JT
50582002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5059
5060 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5061 shnbsd-nat.c.
5062 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5063
45888261
JT
50642002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5065
5066 * NEWS: Note new MIPS NetBSD native configuration.
5067 * configure.host (mips*-*-netbsd*): New host.
5068 * configure.tgt (mips*-*-netbsd*): New target.
5069 * mipsnbsd-nat.c: New file.
5070 * mipsnbsd-tdep.c: New file.
5071 * mipsnbsd-tdep.h: New file.
5072 * config/mips/nbsd.mh: New file.
5073 * config/mips/nbsd.mt: New file.
5074 * config/mips/nm-nbsd.h: New file.
5075 * config/mips/tm-nbsd.h: New file.
5076
70f80edf
JT
50772002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5078
5079 * Makefile.in (SFILES): Add osabi.c.
5080 (COMMON_OBS): Add osabi.o.
5081 (osabi.o): New dependency list.
5082 * osabi.c: New file.
5083 * osabi.h: New file.
5084 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5085
5086 * Makefile.in (alpha_tdep_h): Define and use instead of
5087 alpha-tdep.h.
5088 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5089 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5090 Remove.
5091 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5092 * alpha-tdep.h: Include osabi.h.
5093 (alpha_abi): Remove.
5094 (gdbarch_tdep): Use generic OS ABI framework.
5095 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5096 gdbarch_register_osabi.
5097 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5098 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5099 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5100
5101 * Makefile.in (sh_tdep_h): Add osabi.h.
5102 * sh-tdep.h (sh_osabi): Remove.
5103 (gdbarch_tdep): Use generic OS ABI framework.
5104 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5105 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5106 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5107 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5108
5109 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5110 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5111 gdbarch_register_osabi.
5112 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5113 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5114 (get_elfosabi): Rename to...
5115 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5116 ABI framework support routines.
5117 (arm_gdbarch_init): Use generic OS ABI framework.
5118 (arm_dump_tdep): Likewise.
5119 (_initialize_arm_tdep): Likewise.
5120 * arm-tdep.h: Include osabi.h.
5121 (arm_abi): Remove.
5122 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5123 osabi member.
5124 (arm_gdbarch_register_os_abi): Remove prototype.
5125 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5126 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5127
5128 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5129 * mips-tdep.c: Include osabi.h.
5130 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5131 OS ABI framework.
5132
d194345b
KH
51332002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5134
5135 * h8300-tdep.c: Fix formatting.
5136
70c6b0d1
EZ
51372002-05-20 Elena Zannoni <ezannoni@redhat.com>
5138
5139 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5140 printing vector registers.
5141
165b8e33
AC
51422002-05-19 Andrew Cagney <ac131313@redhat.com>
5143
5144 From Fernando Nasser:
5145 * remote.c (remote_async_open_1): Re-throw the exception when the
5146 connection fails.
5147 (remote_cisco_open): Ditto.
5148 (remote_open_1): Ditto.
5149
36918e70
AC
51502002-05-19 Andrew Cagney <ac131313@redhat.com>
5151
5152 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5153 (remote_start_remote): Add uiout parameter. Pass through to
5154 remote_start_remote_dummy.
5155 (remote_open_1): Use catch_exception instead of catch_errors.
5156 (remote_async_open_1): Ditto.
5157 (remote_cisco_open): Ditto.
5158
ae44c0c4
AC
51592002-05-19 Andrew Cagney <ac131313@redhat.com>
5160
5161 * remote.c (remote_start_remote): Replace PTR with void pointer.
5162 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5163 static.
5164
8efe637d
AC
51652002-05-18 Andrew Cagney <ac131313@redhat.com>
5166
5167 * gdb_indent.sh: Allow the script to be run in the sim directory.
5168
2f1b5984
MK
51692002-05-18 Mark Kettenis <kettenis@gnu.org>
5170
f0f625e2
MK
5171 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5172 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5173
2f1b5984
MK
5174 * corelow.c (core_open): Only call set_gdbarch_from_file if
5175 exec_bfd is NULL.
5176
fc974602
AV
51772002-05-17 Andrey Volkov <avolkov@transas.com>
5178
5179 * h8300-tdep.c: Add support of EXR register
5180 * config/h8300/tm-h8300.h: Ditto.
5181
906709f4
AV
51822002-05-17 Andrey Volkov <avolkov@transas.com>
5183
5184 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5185
6e591d68
AV
51862002-05-17 Andrey Volkov <avolkov@transas.com>
5187
5188 * h8300-tdep.c: Change literal regnums to REGNO.
5189
84f0252a
JB
51902002-05-17 Jim Blandy <jimb@redhat.com>
5191
e0e9281e
JB
5192 * NEWS: Note addition of macro support.
5193
84f0252a
JB
5194 Expand preprocessor macros in C expressions.
5195 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5196 (scan_macro_expansion, scanning_macro_expansion,
5197 finished_macro_expansion): New function declarations.
5198 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5199 variable declarations.
5200 * parser-defs.h (expression_context_pc): New declaration.
5201 * parse.c (expression_context_pc): New variable.
5202 (parse_exp_1): Set expression_context_pc, as well as
5203 expression_context_block.
5204 * c-exp.y (yylex): If we're not already reading the result of a
5205 macro expansion, try to macro-expand the next token. When we're
5206 done scanning a macro expansion, switch back to the mainline text.
5207 Commas and `if's in a macro's expansion don't terminate the input.
5208 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5209 (macro_original_text, macro_expanded_text,
5210 expression_macro_lookup_func, expression_macro_lookup_baton): New
5211 variables.
5212 (scan_macro_expansion, scanning_macro_expansion,
5213 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5214 c_preprocess_and_parse): New functions.
5215 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5216 c_preprocess_and_parse, instead of c_parse.
5217 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5218 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5219
1c509ca8
JR
5220Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5221
5222 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5223 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5224 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5225
2250ee0c
CV
52262002-05-17 Corinna Vinschen <vinschen@redhat.com>
5227
5228 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5229
ab3b8126
JT
52302002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5231
5232 * Makefile.in (sh_tdep_h): Define and use.
5233 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5234 register enum): Move to...
5235 * * sh-tdep.h: ...here.
5236 * sh-tdep.c: Include sh-tdep.h.
5237 * sh3-rom.c: Likewise.
5238 * shnbsd-tdep.c: Likewise.
5239
ed9d4749
MS
52402002-05-16 Michael Snyder <msnyder@redhat.com>
5241
5242 * arm-tdep.c: Spelling fix in comment.
5243
2e276125
JB
52442002-05-16 Jim Blandy <jimb@redhat.com>
5245
6821892e
JB
5246 Add commands for manually expanding macros and showing their
5247 definitions.
5248 * macrocmd.c, macroscope.c, macroscope.h: New files.
5249 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5250 (macroscope_h): New variable.
5251 (HFILES_NO_SRCDIR): Add macroscope.h.
5252 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5253 (macroscope.o, macrocmd.o): New rules.
5254
2e276125
JB
5255 Teach the Dwarf 2 reader to read macro information.
5256 * dwarf2read.c: #include "macrotab.h".
5257 (dwarf_macinfo_buffer): New variable.
5258 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5259 dwarf_macinfo_size.
5260 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5261 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5262 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5263 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5264 dwarf2_macro_spaces_in_definition): New complaints.
5265 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5266 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5267 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5268 the partial symbol table.
5269 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5270 from what's recorded in the partial symbol table.
5271 (read_file_scope): If the compilation unit has a
5272 `DW_AT_macro_info' attribute, read its macro information.
5273 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5274
2f53fe6c
DJ
52752002-05-16 Daniel Jacobowitz <drow@mvista.com>
5276
5277 Fix PR gdb/546
5278 * ser-tcp.c: Don't include <netinet/udp.h>.
5279
2be99286
SC
52802002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5281
5282 * MAINTAINERS: Update my email address.
5283
c9af212b 52842002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5285
5286 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5287 include file of the same name.
5288
bf5f1a52
CV
52892002-05-16 Corinna Vinschen <vinschen@redhat.com>
5290
5291 * configure.tgt: Mark v850 as multi-arched.
5292 * config/v850/tm-v850.h: Remove file.
5293 * config/v850/v850.mt: Eliminate TM_FILE.
5294
435e042a
CV
52952002-05-16 Corinna Vinschen <vinschen@redhat.com>
5296
5297 * v850-tdep.c: Full multi-arch.
5298 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5299 Define GDB_MULTI_ARCH to 2.
5300
9819c6c8
PM
53012002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5302
5303 * p-exp.y (current_type): New static variable.
5304 Carries the type of the expression at the position that is parsed.
5305 (push_current_type, pop_current_type): Two new functions. Used
5306 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5307 (search_field): New static variable. Set to one after parsing a point
5308 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5309 (FIELDNAME): New token. After a point only a token belonging to
5310 current_type type definition is allowed.
5311 (all over token rules): reset and change current_type according
5312 to rules.
5313 (exp '[' rule): insert implicit array index field if
5314 exp is a pascal string type.
5315
3a06899a
CV
53162002-05-16 Corinna Vinschen <vinschen@redhat.com>
5317
5318 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5319 frame info. Use frame_info's saved_regs instead of matching member
5320 in extra_frame_info throughout.
5321 (v850_frame_init_saved_regs): New function.
5322 (v850_init_extra_frame_info): Move most functionality into
5323 v850_frame_init_saved_regs().
5324 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5325 (v850_frame_find_saved_regs): Remove declaration.
5326 (FRAME_FIND_SAVED_REGS): Remove definition.
5327 (v850_frame_init_saved_regs): Add declaration.
5328 (FRAME_INIT_SAVED_REGS): Add definition.
5329
6ed14b0e
CV
53302002-05-16 Corinna Vinschen <vinschen@redhat.com>
5331
5332 * v850-tdep.c: Begin multi-arch'ing v850.
5333 (v850_target_architecture_hook): Remove function.
5334 (v850_gdbarch_init): New function. Add code previously in
5335 v850_target_architecture_hook().
5336 (_initialize_v850_tdep): Don't set target_architecture_hook.
5337 Call register_gdbarch_init() instead.
5338
42725910
DJ
53392002-05-16 Daniel Jacobowitz <drow@mvista.com>
5340
5341 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5342 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5343 (fixup_class_method_type): Likewise.
5344
99d9066e
JB
53452002-05-15 Jim Blandy <jimb@redhat.com>
5346
5347 Add macro structures to GDB's symbol tables. Nobody puts anything
5348 in them yet.
5349 * symtab.h (struct symtab): New member: `macro_table'.
5350 * buildsym.h (pending_macros): New global variable.
5351 * buildsym.c: #include "macrotab.h".
5352 (buildsym_init): Initialize `pending_macros'.
5353 (end_symtab): If we found macro information while reading a CU's
5354 debugging info, do build a symtab structure for it. Make the
5355 symtab point to the macro information, and clear the
5356 `pending_macros' pointer which held it while we were reading the
5357 debug info.
5358 (really_free_pendings): Free any pending macro table.
5359 * objfiles.h (struct objfile): New member: `macro_cache'.
5360 * objfiles.c (allocate_objfile): Set allocate and free functions
5361 for the macro cache's objstack.
5362 (free_objfile): Empty the macro cache's obstack.
5363 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5364 set new allocate and free functions for it.
5365 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5366 free functions for the macro cache's objstack. (Why is this
5367 function building its own objfile?)
5368 * symmisc.c (print_objfile_statistics): Print statistics on the
5369 macro bcache.
5370 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5371
c899585b
RE
53722002-05-15 Richard Earnshaw <rearnsha@arm.com>
5373
5374 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5375 (REGISTER_U_ADDR): Delete definition.
5376 (arm_register_u_addr): Delete declaration.
5377
a6cdd8c5
RE
53782002-05-15 Richard Earnshaw <rearnsha@arm.com>
5379
5380 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5381 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5382
c97dcfc7
AC
53832002-05-14 Andrew Cagney <ac131313@redhat.com>
5384
5385 * regcache.c (register_valid): Revise comments refering to "Not
5386 available" and "unavailable".
5387 * frame.c (frame_register_read): Ditto.
5388 * findvar.c (value_of_register): Ditto.
5389
93021b7d
AC
53902002-05-15 Andrew Cagney <cagney@redhat.com>
5391
5392 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5393 (remote-sim.o): Update dependencies.
5394 (d10v-tdep.o): Specify dependencies.
5395 (sim_d10v_h): Define.
5396
a86bc61c
JB
53972002-05-14 Jim Blandy <jimb@redhat.com>
5398
5399 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5400 * macrotab.c (macro_lookup_inclusion, find_definition,
5401 new_macro_table): Same.
5402
5403 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5404 not `! strcmp ()'. This is a dubious improvement.
5405 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5406
5407 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5408 although it's not necessary, to avoid a warning.
5409
2fdde8f8
DJ
54102002-05-14 Daniel Jacobowitz <drow@mvista.com>
5411
5412 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5413 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5414 TYPE_INSTANCE_FLAGS.
5415 (struct main_type): New.
5416 (struct type): Move most members to struct main_type. Change
5417 cv_type and as_type to new type_chain member. Add instance_flags.
5418 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5419 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5420 (finish_cv_type): Remove prototype.
5421 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5422 Set TYPE_CHAIN.
5423 (alloc_type_instance): New function.
5424 (smash_type): New function.
5425 (make_pointer_type, make_reference_type, make_function_type)
5426 (smash_to_member_type, smash_to_method_type): Call smash_type.
5427 (make_qualified_type): New function.
5428 (make_type_with_address_space): Call make_qualified_type.
5429 (make_cv_type): Likewise.
5430 (finish_cv_type): Remove unnecessary function.
5431 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5432 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5433 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5434 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5435 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5436 * hpread.c (hpread_read_struct_type): Likewise.
5437 * stabsread.c (read_struct_type): Likewise.
5438
843fedf4
EZ
54392002-05-14 Elena Zannoni <ezannoni@redhat.com>
5440
5441 * configure.tgt: Add a catch all sh* target, for cases like
5442 sh[2,3,4]-elf and sh-hms.
5443
05a6c72c
KS
54442002-05-14 Keith Seitz <keiths@redhat.com>
5445
5446 * event-loop.c (create_file_handler): Don't do anything but
5447 update data when we are given a fd which we are already
5448 monitoring.
5449
5d085aaf
ML
54502002-05-14 Michal Ludvig <mludvig@suse.cz>
5451
5452 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5453 (update_context): Use __func__ in warnings.
5454
9db8d71f
DJ
54552002-05-14 Daniel Jacobowitz <drow@mvista.com>
5456
5457 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5458 and tcp_close to net_open and net_close.
5459 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5460 using UDP if requested. Don't try to disable Nagle on UDP
5461 sockets.
5462 * remote.c (remote_serial_open): New function. Warn about UDP.
5463 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5464
5dbc6baa
EZ
54652002-05-13 Elena Zannoni <ezannoni@redhat.com>
5466
5467 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5468
cc3023f7
EZ
54692002-05-13 Elena Zannoni <ezannoni@redhat.com>
5470
5471 * configure.tgt: Remove sh-hms target.
5472 * MAINTAINERS: Don't list sh-hms as a separate target.
5473
ec2bcbe7
JB
54742002-05-13 Jim Blandy <jimb@redhat.com>
5475
5476 Add first preprocessor macro-expansion files.
5477 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5478 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5479 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5480 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5481 (COMMON_OBS): Add macrotab.o, macroexp.o.
5482 (macroexp.o, macrotab.o): New rules.
5483
6d531722
AC
54842002-05-13 Andrew Cagney <ac131313@redhat.com>
5485
5486 * config/m88k/tm-m88k.h: Update copyright.
5487 (m88k_target_write_pc): Declare
5488 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5489 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5490 (SHIFT_INST_REGS): Update definition.
5491 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5492 using old definition of TARGET_WRITE_PC.
5493 * regcache.c (generic_target_write_pc): Delete code handling
5494 NNPC_REGNUM.
5495 * gdbarch.sh (NNPC_REGNUM): Delete.
5496 * gdbarch.h, gdbarch.c: Regenerate.
5497
3e3f2739
RE
54982002-05-13 Richard Earnshaw <rearnsha@arm.com>
5499
5500 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5501 builtin reg number.
5502
0004e5a2
DJ
55032002-05-13 Daniel Jacobowitz <drow@mvista.com>
5504
5505 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5506 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5507 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5508 access macros.
5509 * c-typeprint.c (cp_type_print_method_args): Likewise.
5510 (c_type_print_args): Likewise.
5511 * d10v-tdep.c (d10v_push_arguments): Likewise.
5512 (d10v_extract_return_value): Likewise.
5513 * expprint.c (print_subexp): Likewise.
5514 * gdbtypes.c (lookup_primitive_typename): Likewise.
5515 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5516 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5517 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5518 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5519 (TYPE_VECTOR): Likewise.
5520 * hpread.c (hpread_read_struct_type)
5521 (fix_static_member_physnames, fixup_class_method_type)
5522 (hpread_type_lookup): Likewise.
5523 * mdebugread.c (parse_symbol, parse_type): Likewise.
5524 * p-lang.c (is_pascal_string_type): Likewise.
5525 * valops.c (hand_function_call): Likewise.
5526 * x86-64-tdep.c (classify_argument): Likewise.
5527
5528 * hpread.c (hpread_read_function_type)
5529 (hpread_read_doc_function_type): Call replace_type.
5530 * dstread.c (create_new_type): Delete.
5531 (decode_dst_structure, process_dst_function): Call alloc_type.
5532 Use type access macros.
5533
dff95cc7
MK
55342002-05-12 Mark Kettenis <kettenis@gnu.org>
5535
5536 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5537 the're not supported by the current architecture.
5538 (i387_fill_fxsave): Likewise.
5539
bbcd32ad
FF
55402002-05-12 Fred Fish <fnf@redhat.com>
5541
5542 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5543 sect_index_xxx members to index the first slot in section_offsets
5544 if all of the section_offsets are zero.
5545
89cf4787
MK
55462002-05-12 Mark Kettenis <kettenis@gnu.org>
5547
5548 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5549 checked in with last change.
5550
1f77ffc5
MK
55512002-05-12 Mark Kettenis <kettenis@gnu.org>
5552
5553 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5554 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5555 config.sub.
5556
89b8b4a9
DJ
55572002-05-12 Daniel Jacobowitz <drow@mvista.com>
5558
5559 * Makefile.in: Update dependencies.
5560
14a5e767
AC
55612002-05-11 Andrew Cagney <ac131313@redhat.com>
5562
5563 * language.c (local_hex_string_custom): Simplify. Do not depend
5564 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5565
5566 * memattr.c (mem_info_command): Replace calls to
5567 longest_local_hex_string and longest_local_hex_string_custom.
5568 * buildsym.c (make_blockvector): Ditto.
5569 * solib.c (info_sharedlibrary_command): Ditto.
5570 * tracepoint.c (tracepoints_info): Ditto.
5571 * symtab.c (print_msymbol_info): Ditto.
5572
5573 * language.c (local_hex_string): Delete.
5574 (local_hex_string_custom): Delete.
5575 (longest_local_hex_string): Rename to local_hex_string.
5576 (longest_local_hex_string_custom): Rename to
5577 local_hex_string_custom.
5578 * language.h (local_hex_string): Change parameter type to LONGEST.
5579 (local_hex_string_custom): Ditto.
5580 (longest_local_hex_string): Delete declaration.
5581 (longest_local_hex_string_custom): Ditto.
5582
5583 * solib.c: Update copyright.
5584 * memattr.c: Update copyright.
5585
13d01224
AC
55862002-05-11 Andrew Cagney <ac131313@redhat.com>
5587
5588 * arch-utils.h (legacy_register_to_value): Declare.
5589 (legacy_value_to_register): Declare.
5590 (legacy_convert_register_p): Declare.
5591 * arch-utils.c (legacy_register_to_value): New function.
5592 (legacy_value_to_register): New function.
5593 (legacy_convert_register_p): New function.
5594
5595 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5596 (VALUE_TO_REGISTER): Define.
5597 (CONVERT_REGISTER_P): Define.
5598 * gdbarch.h, gdbarch.c: Regenerate.
5599
5600 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5601 VALUE_TO_REGISTER.
5602 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5603 CONVERT_REGISTER_P.
5604
4a1970e4
DJ
56052005-05-11 Daniel Jacobowitz <drow@mvista.com>
5606 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5607
5608 * Makefile.in: Update dependencies for valops.c.
5609 * valops.c: Include "gdb_assert.h".
5610 (typecmp): Skip THIS parameter to methods.
5611 (find_method_list): Remove static_memfuncp argument,
5612 update callers. Check for stub methods.
5613 (find_value_oload_method_list): Don't set *static_memfuncp.
5614 (find_overload_match): Don't check for stub methods. Assert
5615 that methods are not stubbed. Handle static methods.
5616 (value_find_oload_method_list): Remove static_memfuncp argument.
5617 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5618 to the argument list for static stub methods.
5619 * value.h (value_find_oload_method_list): Update prototype.
5620
b2e75d78
AC
56212002-05-11 Andrew Cagney <ac131313@redhat.com>
5622
5623 * arch-utils.h (generic_register_size): Declare.
5624 (generic_register_raw_size, generic_register_virtual_size): Delete
5625 declarations.
5626 * arch-utils.c (generic_register_raw_size): Delete.
5627 (generic_register_size): New function.
5628 (generic_register_virtual_size): Delete.
5629
5630 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5631 default generic_register_size.
5632 * gdbarch.h, gdbarch.c: Re-generate.
5633
5634 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5635 register_virtual_size.
5636 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5637 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5638
451fbdda
AC
56392002-05-11 Andrew Cagney <ac131313@redhat.com>
5640
5641 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5642 * gdbarch.h, gdbarch.c: Regenerate.
5643 * gnu-v3-abi.c: Update copyright.
5644 (vtable_address_point_offset): Update.
5645 (gnuv3_rtti_type): Update.
5646 (gnuv3_baseclass_offset): Update.
5647 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5648 (init_fetch_link_map_offsets): Update.
5649 * remote.c (get_remote_state): Update.
5650
6d2f5cea
DJ
56512002-05-11 Daniel Jacobowitz <drow@mvista.com>
5652
5653 * TODO: Remove value_headof/value_from_vtable_info comment.
5654 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5655 * values.c (value_headof, value_from_vtable_info): Delete.
5656 * value.h (value_from_vtable_info): Delete prototype.
5657
d2324da4
AC
56582002-05-11 Andrew Cagney <ac131313@redhat.com>
5659
5660 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5661 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5662 $(gdb_regex_h).
5663 (gdb_assert_h): Define.
5664 (gdb_wait_h): Define.
5665 (gdb_regex_h): Define.
5666
5c717440
DJ
56672002-05-11 Daniel Jacobowitz <drow@mvista.com>
5668
5669 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5670 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5671
6c7861b3
JT
56722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5673
5674 * nbsd-tdep.c: Fix comment.
5675
ea5bc2a6
JT
56762002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5677
5678 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5679 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5680 (nbsd-tdep.o): New dependency list.
5681 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5682 nbsd-tdep.h.
5683 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5684 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5685 * nbsd-tdep.c: New file.
5686 * nbsd-tdep.h: New file.
5687 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5688 nbsd-tdep.h.
5689 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5690 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5691 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5692 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5693
b28da865
JT
56942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5695
5696 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5697 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5698 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5699 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5700 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5701 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5702
4b8ff1fa
JT
57032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5704
5705 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5706 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5707 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5708 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5709 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5710 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5711 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5712
dfe6eb1f
JT
57132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5714
5715 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5716 fetch_elfcore_registers to...
5717 * i386nbsd-tdep.c: ...here.
5718 (i386nbsd_use_struct_convention): Rename to...
5719 (i386nbsd_aout_use_struct_convention): ...this.
5720 (i386nbsd_supply_reg): New function.
5721 (i386nbsd_fill_reg): New function.
5722 (fetch_core_registers): Use i386nbsd_supply_reg.
5723 (fetch_elfcore_registers): Likewise.
5724 (_initialize_i386nbsd_tdep): New function.
5725 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5726 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5727 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5728 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5729 (i386nbsd_aout_use_struct_convention): ...this.
5730
20cb8cda
JT
57312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5732
5733 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5734 (store_inferior_registers): Use shnbsd_fill_reg.
5735 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5736 sh_nbsd_supply_register): Collapse into...
5737 (shnbsd_supply_reg): ...this.
5738 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5739 (shnbsd_fill_reg): ...this.
5740 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5741 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5742 (fetch_core_registers): Use shnbsd_supply_reg.
5743 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5744 (sh_nbsd_core_fns): Rename to...
5745 (shnbsd_core_fns): ...this.
5746 (sh_nbsd_elfcore_fns): Rename to...
5747 (shnbsd_elfcore_fns): ...this.
5748 (sh_nbsd_init_abi): Rename to...
5749 (shnbsd_init_abi): ...this.
5750 (_initialize_sh_nbsd_tdep): Rename to...
5751 (_initialize_shnbsd_tdep): ...this.
5752 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5753 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5754 sh_nbsd_fill_register): Remove prototypes.
5755 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5756
e750d25e
JT
57572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5758
5759 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5760 (i387-nat.o): Delete dependency list.
5761 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5762 (x86-64-linux-nat.o): Likewise.
5763 * i387-nat.c: Delete file, moving contents to...
5764 * i387-tdep.c: ...here.
5765 * i387-nat.h: Rename...
5766 * i387-tdep.h: ...to this.
5767 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5768 * i386-linux-nat.c: Likewise.
5769 * i386bsd-nat.c: Likewise.
5770 * i386gnu-nat.c: Likewise.
5771 * i386nbsd-nat.c: Likewise.
5772 * i386v4-nat.c: Likewise.
5773 * x86-64-linux-nat.c: Likewise.
5774 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5775 * config/i386/go32.mh (NATDEPFILES): Likewise.
5776 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5777 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5778 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5779 * config/i386/linux.mh (NATDEPFILES): Likewise.
5780 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5781 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5782 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5783 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5784
1aee598a
JT
57852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5786
5787 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5788 (alphanbsd-nat.o): Remove dependency list.
5789 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5790 * alphanbsd-nat.c: Delete. Contents moved to...
5791 * alphanbsd-tdep.c: ...here.
5792 (_initialize_alphanbsd_tdep): Register core functions.
5793 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5794
12bcb0fe
JT
57952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5796
5797 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5798 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5799 (alphanbsd-nat.o): Likewise.
5800 (alphabsd-tdep.o): New dependency list.
5801 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5802 (fill_gregset): Use alphabsd_fill_reg.
5803 (supply_fpregset): Use alphabsd_supply_fpreg.
5804 (fill_fpregset): Use alphabsd_fill_fpreg.
5805 (fetch_inferior_registers): Use struct reg and struct fpreg
5806 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5807 and alphabsd_supply_fpreg.
5808 (store_inferior_registers): Use struct reg and struct fpreg
5809 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5810 and alphabsd_fill_fpreg.
5811 * alphabsd-tdep.c: New file.
5812 * alphabsd-tdep.h: New file.
5813 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5814 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5815 alphabsd_supply_fpreg.
5816 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5817 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5818
361d1df0
EC
58192002-05-11 Eric Christopher <echristo@redhat.com>
5820
5821 * mips-tdep.c (mips_double_register_type): Fix thinko.
5822 (mips_single_register_type): Ditto.
5823 * MAINTAINERS: Add self.
5824
92dd7cee
MK
58252002-05-11 Mark Kettenis <kettenis@gnu.org>
5826
5827 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5828 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5829 right thing on architectures with different endianness and/or
5830 integer sizes.
5831
e27da16d
JT
58322002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5833
5834 From Christian Limpach <chris@Pin.LU>
5835 * configure.in: Change sed expression which comments out
5836 NATDEPFILES to also comment out continuation lines.
5837 * configure: Regenerate.
5838
ddde02bd
EZ
58392002-05-10 Elena Zannoni <ezannoni@redhat.com>
5840
5841 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5842 big patch.
5843
1c922164
EZ
58442002-05-10 Elena Zannoni <ezannoni@redhat.com>
5845
5846 * sh-tdep.c: Include correct file.
5847
283150cd
EZ
58482002-05-10 Elena Zannoni <ezannoni@redhat.com>
5849
5850 New support for sh64-elf (sh5) target.
5851
5852 * configure.tgt: For sh64-elf target, default to sh-elf.
5853
5854 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5855 (struct gdbarch_tdep): Add new fields for new registers and ABI
5856 info.
361d1df0 5857
283150cd
EZ
5858 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5859 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5860 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5861 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5862 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5863 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5864 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5865 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5866 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5867 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5868 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5869 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5870 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5871 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5872 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5873 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5874 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5875 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5876 sign_extend, sh64_nofp_frame_init_saved_regs,
5877 sh64_init_extra_frame_info, sh64_get_saved_register,
5878 sh64_extract_struct_value_address, sh64_pop_frame,
5879 sh64_push_arguments, sh64_extract_return_value,
5880 sh64_store_return_value, sh64_show_media_regs,
5881 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5882 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5883 sh_sh64_register_virtual_type,
5884 sh_sh64_register_convert_to_virtual,
5885 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5886 sh64_register_read, sh64_pseudo_register_write,
5887 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5888 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5889 sh64_do_pseudo_register, sh_compact_do_registers_info,
5890 sh64_do_registers_info, sh_gdbarch_init): New functions.
5891
3117ed25
EZ
58922002-05-10 Elena Zannoni <ezannoni@redhat.com>
5893
5894 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5895
2654e6d4
DJ
58962002-05-10 Daniel Jacobowitz <drow@mvista.com>
5897
5898 * linespec.c (decode_line_1): Check for a double quote after
5899 a filename correctly.
5900
9ab3e532
JB
59012002-05-10 Jim Blandy <jimb@redhat.com>
5902
5903 Properly track the size of the current objfile's .debug_line section.
5904 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5905 (DWARF_LINE_SIZE): New macro.
5906 (dwarf2_build_psymtabs_hard): Record the line section's size in
5907 the partial symbol table.
5908 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5909 symbol table.
5910
126fa72d
PS
59112002-05-10 Petr Sorfa <petrs@caldera.com>
5912
5913 * ia64-tdep.c: Handle breakpoints on L instruction type
5914 in MLX instruction bundle by moving the breakpoint to
5915 the third slot (X instruction type) as L holds only data.
5916
1f077a3e
KB
59172002-05-10 Kevin Buettner <kevinb@redhat.com>
5918
5919 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5920 (process_one_symbol): Complain about discarding local symbols
5921 due to a misplaced N_LBRAC entry.
5922
8120c9d5 59232002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5924
5925 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5926 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5927 decrease the depth we are at, in the case of templates.
361d1df0 5928
67b2c998
DJ
59292002-05-09 Daniel Jacobowitz <drow@mvista.com>
5930
5931 * mips-tdep.c (mips_float_register_type): New function.
5932 (mips_double_register_type): New function.
5933 (mips_print_register): Use them.
5934 (do_fp_register_row): Likewise.
5935
fd326606
DJ
59362002-05-09 Daniel Jacobowitz <drow@mvista.com>
5937
6609d9af 5938 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5939 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5940 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5941
bef35864
MS
59422002-05-09 Michael Snyder <msnyder@redhat.com>
5943
5944 * remote-rdp.c (remote_rdp_can_run): Remove.
5945
c55a3f73
TT
59462002-05-09 Tom Tromey <tromey@redhat.com>
5947
5948 * jv-valprint.c (java_val_print): Handle `char' as a special case
5949 of TYPE_CODE_INT.
5950
b8d5e71d
MS
59512002-05-09 Michael Snyder <msnyder@redhat.com>
5952
5953 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5954 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5955 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5956 str r(0123),[sp,#nn].
361d1df0 5957 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5958 order-independent by placing it in a loop.
5959
e2cd42dd
MS
59602002-05-06 Michael Snyder <msnyder@redhat.com>
5961
5962 * stabsread.c (read_type): Add recognition for new attribute:
5963 "@V;" means that an array type is actually a vector.
5964 This is analogous to the vector flag that's been added to dwarf2.
5965
3ce1502b
MK
59662002-05-09 Mark Kettenis <kettenis@gnu.org>
5967
5968 * i386-tdep.h (i386_abi): New enum.
5969 (struct gdbarch_tdep): Replace os_ident member with abi.
5970 (i386_gdbarch_register_os_abi): New prototype.
5971 * i386-tdep.c (i386_abi_names): New array.
5972 (process_note_abi_tag_sections): Removed.
5973 (process_note_sections): New function.
5974 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5975 (struct i386_abi_handler): New struct.
5976 (i386_abi_handler_list): New variable.
5977 (i386_gdbarch_register_os_abi): New function.
5978 (i386_gdbarch_init): Adapt for the changes given above.
5979
084c156a
DJ
59802002-05-08 Daniel Jacobowitz <drow@mvista.com>
5981
5982 * gregset.h: Say "GNU/Linux".
5983
6599f021
EZ
59842002-05-08 Elena Zannoni <ezannoni@redhat.com>
5985
5986 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5987 (build_gdbtypes): Build builtin_type_v2_float.
5988 (_initialize_gdbtypes): Register new builtin type.
5989
40af4b0c
AC
59902002-05-08 Andrew Cagney <ac131313@redhat.com>
5991
5992 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5993 (clear_gdbarch_swap): New function.
5994 (initialize_non_multiarch): Call.
5995 (gdbarch_update_p): Before calling init(), swap out and clear the
5996 existing architecture.
5997 * gdbarch.c: Regenerate.
5998
4fe84f46
JT
59992002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6000
6001 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6002 alphanbsd-tdep.c.
6003
4015edd1
JT
60042002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6005
6006 * sh-nbsd-nat.c: Rename to...
6007 * shnbsd-nat.c: ...this.
6008 * sh-nbsd-tdep.c: Rename to...
6009 * shnbsd-tdep.c: ...this.
6010 * sh-nbsd-tdep.h: Rename to...
6011 * shnbsd-tdep.h: ...this.
6012 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6013 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6014
0e2bd219
RE
60152002-05-08 Richard Earnshaw <rearnsha@arm.com>
6016
6017 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6018 concatenation for command help messages.
6019
13a38d45
JT
60202002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6021
6022 * NEWS: Note new sh*-*-netbsdelf* configuration.
6023 * configure.host: Set gdb_host_cpu to sh for all sh*.
6024 (sh*-*-netbsdelf*): New host.
6025 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6026 (sh*-*-netbsdelf*): New target.
6027 * sh-nbsd-nat.c: New file.
6028 * sh-nbsd-tdep.c: New file.
6029 * sh-nbsd-tdep.h: New file.
6030 * config/sh/nbsd.mh: New file.
6031 * config/sh/nbsd.mt: New file.
6032 * config/sh/nm-nbsd.h: New file.
6033 * config/sh/tm-nbsd.h: New file.
6034
d658f924
JT
60352002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6036
6037 * sh-tdep.c (sh_osabi_names): Declare.
6038 (process_note_abi_tag_sections): New function.
6039 (get_elfosabi): Ditto.
6040 (sh_gdbarch_register_os_abi): Ditto.
6041 (sh_dump_tdep): Ditto.
6042 _initialize_sh_tdep): Use gdbarch_register to register
6043 sh_gdbarch_init and sh_dump_tdep.
6044 * config/sh/tm-sh.h (sh_osabi): Declare.
6045 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6046
848cfffb
AC
60472002-05-07 Andrew Cagney <ac131313@redhat.com>
6048
6049 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6050 (thumb_scan_prologue): Ditto.
6051 (arm_find_callers_reg): Ditto.
6052 (arm_frame_chain): Ditto.
6053 (arm_init_extra_frame_info): Ditto.
6054 (arm_frame_saved_pc): Ditto.
6055 (arm_pop_frame): Ditto.
6056 (arm_push_return_address): New function.
6057 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6058 call_dummy_location, call_dummy_breakpoint_offset_p,
6059 call_dummy_breakpoint_offset, call_dummy_p,
6060 call_dummy_stack_adjust_p, call_dummy_words,
6061 sizeof_call_dummy_words, call_dummy_start_offset,
6062 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6063 call_dummy_address, push_return_address and push_dummy_frame for
6064 generic dummy frames.
6065
e7d717c0
JT
60662002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6067
6068 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6069 size computation for alloca.
6070 (sh_fp_frame_init_saved_regs): Likewise.
6071
7bbcf283
RE
60722002-05-07 Richard Earnshaw <rearnsha@arm.com>
6073
6074 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6075 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6076 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6077 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6078 * remote-rdp.c (remote_rdp_fetch_register): Use
6079 ARM_MAX_REGISTER_RAW_SIZE.
6080 (remote_rdp_store_register): Likewise.
6081
4657573b
ML
60822002-05-07 Michal Ludvig <mludvig@suse.cz>
6083
361d1df0 6084 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6085 added default labels to switch {} statements.
6086 * x86-64-tdep.c: Ditto.
6087 * x86-64-linux-nat.c: Ditto.
6088
010f3b2f
JT
60892002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6090
6091 * solib.h: Protect against multiple inclusion.
6092
debd256d
JB
60932002-05-06 Jim Blandy <jimb@redhat.com>
6094
9ab3e532
JB
6095 Add first preprocessor macro-expansion files.
6096 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6097 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6098 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6099 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6100 (COMMON_OBS): Add macrotab.o, macroexp.o.
6101 (macroexp.o, macrotab.o): New rules.
6102
debd256d
JB
6103 Separate the job of reading the line number info statement program
6104 header (...expialidocious) out into its own function.
6105 * dwarf2read.c (struct line_head, struct filenames, struct
6106 directories): Replace with...
6107 (struct line_header): New structure, containing the full
6108 contents of the statement program header, including the
6109 include directory and file name tables.
6110 (read_file_scope): If we have line number info, instead of just
6111 calling dwarf_decode_lines to do all the work, call
6112 dwarf_decode_line_header first to get a `struct line_header'
6113 containing the data in the statement program header, and then
6114 pass that to dwarf_decode_lines, which will pick up where that
6115 left off. Be sure to clean up the `struct line_header' object.
6116 (dwarf_decode_line_header, free_line_header, add_include_dir,
6117 add_file_name): New functions.
6118 (dwarf_decode_lines): Move all the code to read the statement
6119 program header into dwarf_decode_line_header. Take the line
6120 header it built as the first argument, instead of the offset to
6121 the compilation unit's line number info. Use the new `struct
6122 line_header' type instead of the old structures. No need to do
6123 cleanups here now, since we don't allocate anything.
6124 (dwarf2_statement_list_fits_in_line_number_section,
6125 dwarf2_line_header_too_long): New complaints.
6126
ac3aafc7
EZ
61272002-05-06 Elena Zannoni <ezannoni@redhat.com>
6128
6129 * gdbtypes.c (init_vector_type): New function.
6130 (build_builtin_type_vec128): Simplify the representation of SIMD
6131 registers.
6132 (build_gdbtypes): Initialize new builtin vector types.
6133 (_initialize_gdbtypes): Register new vector types with gdbarch.
6134 (builtin_type_v4_float, builtin_type_v4_int32,
6135 builtin_type_v8_int16, builtin_type_v16_int8,
6136 builtin_type_v2_int32, builtin_type_v4_int16,
6137 builtin_type_v8_int8): New (renamed) SIMD types.
6138
13e49980
MK
61392002-05-06 Mark Kettenis <kettenis@gnu.org>
6140
6141 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6142 (i387_fill_fxsave): Likewise.
6143
997b20b8
AO
61442002-05-05 Alexandre Oliva <aoliva@redhat.com>
6145
6146 * alpha-tdep.c (alpha_extract_return_value): Don't use
6147 non-constant array size in prototype.
6148
535c96ce
AC
61492002-05-04 Andrew Cagney <ac131313@redhat.com>
6150
6151 From Brian Taylor <briant at model dot com>:
6152 * ui-out.c (ui_out_field_core_addr): Use the function
6153 longest_local_hex_string_custom'to format addresses > 32 bits
6154 wide.
6155
6156 * ui-out.c (ui_out_field_core_addr): Update comment.
6157
bedfa57b
AC
61582002-05-04 Andrew Cagney <ac131313@redhat.com>
6159
6160 * stack.c (select_and_print_frame): Make static. Delete the
6161 parameter `level'.
6162 (func_command): Update call.
6163 (select_frame_command): Delete code computing the frame level.
6164 * frame.h (select_and_print_frame): Delete declaration.
6165
f621c63e
AC
61662002-05-04 Andrew Cagney <ac131313@redhat.com>
6167
6168 * sparc-tdep.c (sparc_get_saved_register): Comment why
6169 get_prev_frame call is safe.
6170
0f7d239c
AC
61712002-05-04 Andrew Cagney <ac131313@redhat.com>
6172
6173 * frame.h (select_frame): Delete level parameter.
6174 * stack.c (select_frame): Update. Use frame_relative_level to
6175 obtain the frame's level.
6176 (select_and_print_frame): Update call.
6177 (select_frame_command): Ditto.
6178 (up_silently_base): Ditto.
6179 (down_silently_base): Ditto.
6180 * ocd.c (ocd_start_remote): Ditto.
6181 * remote-rdp.c (remote_rdp_open): Ditto.
6182 * remote-mips.c (mips_initialize): Ditto.
6183 (common_open): Ditto.
6184 * remote-e7000.c (e7000_start_remote): Ditto.
6185 * m3-nat.c (select_thread): Ditto.
6186 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6187 (child_get_current_exception_event): Ditto.
6188 * varobj.c (varobj_create): Ditto.
6189 (varobj_update): Ditto.
6190 (c_value_of_root): Ditto.
6191 * tracepoint.c (finish_tfind_command): Ditto.
6192 * corelow.c (core_open): Ditto.
6193 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6194 * thread.c (info_threads_command): Ditto.
6195 (switch_to_thread): Ditto.
6196 * infrun.c (normal_stop): Ditto.
6197 (restore_selected_frame): Ditto.
6198 (restore_inferior_status): Ditto.
6199 * breakpoint.c (insert_breakpoints): Ditto.
6200 (watchpoint_check): Ditto.
6201 (bpstat_stop_status): Ditto.
6202 (do_enable_breakpoint): Ditto.
6203 * blockframe.c (flush_cached_frames): Ditto.
6204 (reinit_frame_cache): Ditto.
6205
71d6c7b1
AC
62062002-05-04 Andrew Cagney <ac131313@redhat.com>
6207
6208 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6209 maintainer.
6210
cda6c68a
JB
62112002-05-04 Jim Blandy <jimb@redhat.com>
6212
6213 * gdbtypes.c (replace_type): Doc fix.
6214
5c1c87f0
AC
62152002-05-04 Andrew Cagney <ac131313@redhat.com>
6216
6217 * valprint.c (strcat_longest): Delete commented out function.
6218 Update copyright.
6219
cd9bfe15
AC
62202002-05-04 Andrew Cagney <ac131313@redhat.com>
6221
6222 * MAINTAINERS: Mark a29k as deleted.
6223 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6224 Move new configurations to the top.
6225 * configure.tgt: Remove a29k.
6226 * config/a29k/tm-vx29k.h: Delete.
6227 * config/a29k/vx29k.mt: Delete.
6228 * config/a29k/tm-a29k.h: Delete.
6229 * config/a29k/a29k-udi.mt: Delete.
6230 * config/a29k/a29k.mt: Delete.
6231 * a29k-tdep.c: Delete.
6232 * remote-udi.c: Delete.
6233 * remote-mm.c: Delete.
6234 * remote-eb.c: Delete.
6235 * remote-adapt.c: Delete.
6236 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6237 * config/s390/s390x.mt: Ditto.
6238 * config/s390/s390.mt: Ditto.
6239 * config/sparc/sparclynx.mh: Ditto.
6240 * config/sparc/linux.mh: Ditto.
6241 * config/pa/hppaosf.mh: Ditto.
6242 * config/pa/hppabsd.mh: Ditto.
6243 * config/ns32k/nbsd.mt: Ditto.
6244 * config/mips/vr5000.mt: Ditto.
6245 * config/m68k/sun3os4.mh: Ditto.
6246 * config/m68k/nbsd.mt: Ditto.
6247 * config/m68k/m68klynx.mh: Ditto.
6248 * config/m32r/m32r.mt: Ditto.
6249 * config/i386/x86-64linux.mt: Ditto.
6250 * config/i386/nbsdelf.mt: Ditto.
6251 * config/i386/nbsd.mt: Ditto.
6252 * config/i386/i386lynx.mh: Ditto.
6253
bf0c5130
AC
62542002-05-04 Andrew Cagney <ac131313@redhat.com>
6255
6256 * target.c (debug_print_register): New function. Handle oversize
6257 registers.
6258 (debug_to_fetch_registers): Call.
6259 (debug_to_store_registers): Call.
6260
2ae1c2d2
JB
62612002-05-03 Jim Blandy <jimb@redhat.com>
6262
13a393b0
JB
6263 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6264 (read_type): Doc fix.
6265 * gdbtypes.c (replace_type): Doc fix.
6266
2ae1c2d2
JB
6267 * stabsread.c (multiply_defined_struct): New complaint.
6268 (read_struct_type): If the type we were passed isn't empty, or
6269 incomplete, don't read the new struct type into it; complain,
6270 and return the original type unchanged. Take a new `type_code'
6271 argument, which is the type code for the new type.
6272 (read_type): Rather than storing the type's type code here, pass
6273 it as an argument to read_struct_type, and let that take care of
6274 storing it. That way, we don't overwrite the original type code,
6275 so read_struct_type can use it to decide whether we're overwriting
6276 something we shouldn't.
6277 (complain_about_struct_wipeout): New function.
6278
8de9bdc4
AC
62792002-05-03 Andrew Cagney <ac131313@redhat.com>
6280
6281 * gdbarch.sh: Assert that gdbarch is non-NULL.
6282 * gdbarch.c: Regenerate.
6283
f773fdbb
JM
62842002-05-03 Jason Merrill <jason@redhat.com>
6285
6286 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6287 and return NULL.
6288
0e04a514
ML
62892002-05-03 Michal Ludvig <mludvig@suse.cz>
6290
6291 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6292 (x86_64_dwarf2gdb_regno_map_length),
6293 (x86_64_dwarf2_reg_to_regnum): Added.
6294 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6295 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6296 (_initialize_x86_64_tdep): Synced with the change above.
6297 (x86_64_skip_prologue): Reformulated message.
6298
065432a8
PM
62992002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6300
6301 * f-exp.y: Also use new prev_lexptr variable
6302 to improve error reporting. Based on Michael Snyder
6303 2002-04-24 dated patch to c-exp.y.
6304 * jv-exp.y: Likewise.
6305 * m2-exp.y: Likewise.
6306
a3162708
EZ
63072002-05-02 Elena Zannoni <ezannoni@redhat.com>
6308
6309 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6310 we are dealing with vectors.
6311
03620c38
PM
63122002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6313
6314 * config/m68k/tm-nbsd.h: Obvious fix,
6315 correct machine name.
6316
6604db2e
PM
63172002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6318
6319 * p-typeprint.c (pascal_type_print_base): Add support
6320 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6321
0906b739
PM
63222002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6323
6324 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6325 for fondamental pascal 'char' type.
6326
e2625b33
PM
63272002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6328
6329 * p-lang.h (is_pascal_string_type): Declaration changed,
6330 new sixth argument of type char ** added.
361d1df0 6331 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6332 changed. Args length_pos, length_size, string_pos, char_size
6333 can now be NULL. New argument arrayname set to the field
6334 name of the char array. Return value set to char array
6335 field index plus one.
361d1df0 6336 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6337 is_pascal_string_type function.
6338
cf17c188
AC
63392002-05-02 Andrew Cagney <cagney@redhat.com>
6340
6341 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6342 <cagney@redhat.com> change.
6343 * gdbarch.c: Regenerate.
6344
52bca491
AC
63452002-05-02 Andrew Cagney <cagney@redhat.com>
6346
6347 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6348 before probing for a new one. Detect errorenous gdbarch_init
6349 functions.
6350 * gdbarch.c: Regenerate.
6351
d5e72505
AC
63522002-05-01 Andrew Cagney <cagney@redhat.com>
6353
6354 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6355 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6356 * config/v850/tm-v850.h: Ditto. Update copyright.
6357
af566d9f
AC
63582002-04-30 Andrew Cagney <ac131313@redhat.com>
6359
6360 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6361 current_gdbarch.
6362
880d85fa
MS
63632002-04-30 Michael Snyder <msnyder@redhat.com>
6364
94c30b78
MS
6365 * arm-tdep.c: Whitespace clean-ups.
6366 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6367 should have been removed as part of 4/24 change.
6368
6f5987a6
KB
63692002-04-30 Kevin Buettner <kevinb@redhat.com>
6370
6371 * rs6000-tdep.c: Added comment describing how fpscr register
6372 numbers were chosen.
6373
1a113c93
MS
63742002-04-30 Michael Snyder <msnyder@redhat.com>
6375
6376 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6377
9a6f53fe
EZ
63782002-04-29 Elena Zannoni <ezannoni@redhat.com>
6379
6380 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6381 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6382 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6383
11ed25ac
KB
63842002-04-29 Kevin Buettner <kevinb@redhat.com>
6385
6386 From Louis Hamilton <hamilton@redhat.com>:
6387 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6388 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6389 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6390 not bfd-private xcoff data, to determine wordsize.
6391 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6392
ae232405
AC
63932002-04-29 Andrew Cagney <ac131313@redhat.com>
6394
6395 GDB 5.2 released from 5.2 branch.
6396
91fd20f7
ML
63972002-04-29 Michal Ludvig <mludvig@suse.cz>
6398
6399 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6400 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6401 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6402
2dc5091b
EZ
64032002-04-29 Elena Zannoni <ezannoni@redhat.com>
6404
6405 * rs6000-tdep.c (rs6000_extract_return_value,
6406 rs6000_store_return_value): Handle returning vectors.
6407 (rs6000_gdbarch_init): Use
6408 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6409 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6410 New function.
6411 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6412 vectors.
6413 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6414 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6415
2b9848d8
PM
64162002-04-24 Pierre Muller <ics.u-strasbg.fr>
6417
6418 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6419 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6420 with fprintf_unfiltered (gdb_stderr,...).
6421
f8d17dc5
PM
64222002-04-24 Pierre Muller <ics.u-strasbg.fr>
6423
6424 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6425 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6426 Replace fprintf (stderr,...
6427 with fprintf_unfiltered (gdb_stderr,....
6428 * remote-es.c: Likewise.
6429 * remote-os9k.c: Likewise.
6430 * remote-st.c: Likewise.
6431
2f2f1ad1
AS
64322002-04-28 Andreas Schwab <schwab@suse.de>
6433
6434 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6435 linux-proc.o and gcore.o.
6436
b6779aa2
AC
64372002-04-26 Michal Ludvig <mludvig@suse.cz>
6438
6439 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6440 code without frame pointers.
6441
7e57f5f4
AC
64422002-04-26 Andrew Cagney <ac131313@redhat.com>
6443
6444 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6445 ON_STACK is needed.
6446
2ceb85d0
BE
64472002-04-26 Ben Elliston <bje@redhat.com>
6448
6449 * target.c (do_xfer_memory): Correct reference to the new option
6450 "trust-readonly-sections".
6451
f5f8a009
EZ
64522002-04-26 Elena Zannoni <ezannoni@redhat.com>
6453
6454 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6455 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6456 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6457 vectors.
6458 (read_array_type): Record the fact that this array type is really a
6459 vector (i.e. are passed in by value).
6460
5868c862
JT
64612002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6462
6463 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6464 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6465 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6466 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6467 * alpha-linux-tdep.c: Include frame.h.
6468 (alpha_linux_sigcontext_addr): New function.
6469 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6470 alpha_linux_sigcontext_addr.
6471 * alpha-osf1-tdep.c: Include gdbcore.h.
6472 (alpha_osf1_sigcontext_addr): New function.
6473 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6474 alpha_osf1_sigcontext_addr.
6475 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6476 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6477
bfb01f37
AC
64782002-04-26 Andrew Cagney <ac131313@redhat.com>
6479
361d1df0 6480 * stack.c (selected_frame_level):
bfb01f37
AC
6481 (select_frame): Do not set selected_frame_level.
6482 * frame.h (selected_frame_level): Delete declaration.
6483
15813d3f
AC
64842002-04-26 Andrew Cagney <ac131313@redhat.com>
6485
6486 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6487 convert_from_func_ptr-addr when AIX / PowerOpen.
6488
6096c27a
AC
64892002-04-25 Andrew Cagney <ac131313@redhat.com>
6490
6491 * valops.c (hand_function_call): Call
6492 generic_save_call_dummy_addr.
6493 * frame.h (generic_save_call_dummy_addr): Declare.
6494 * blockframe.c (struct dummy_frame): Add fields call_lo and
6495 call_hi.
6496 (generic_find_dummy_frame): Check for PC in range call_lo to
6497 call_hi instead of entry_point_address.
6498 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6499 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6500 (generic_save_call_dummy_addr): New function.
6501
f510d44e
DM
65022002-04-24 David S. Miller <davem@redhat.com>
6503
6504 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6505 sparc_skip_prologue.
6506 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6507 information to find prologue when possible.
6508 (sparc_prologue_frameless_p): Call examine_prologue directly.
6509 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6510 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6511 second argument.
6512 (SKIP_PROLOGUE): Likewise.
6513
15d72a92
JT
65142002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6515
6516 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6517 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6518 indicate that the condition it was testing is always true.
6519 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6520 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6521 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6522
accc6d1f
JT
65232002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6524
6525 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6526 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6527 tdep->jb_pc and tdep->jb_elt_size.
6528 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6529 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6530 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6531 * alpha-nat.c (get_longjmp_target): Remove.
6532 (JB_ELEMENT_SIZE): Ditto.
6533 (JB_PC): Ditto.
6534 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6535 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6536 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6537 to alpha_get_longjmp_target.
6538 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6539 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6540 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6541
1bfdc549
AC
65422002-04-25 Andrew Cagney <ac131313@redhat.com>
6543
6544 * README: Update to GDB 5.2.
6545
1bd316f0
AC
65462002-04-25 Andrew Cagney <ac131313@redhat.com>
6547
6548 * gdbarch.sh (LC_ALL): Set to `c'.
6549
2e5ff58c
TR
65502002-04-25 Theodore A. Roth <troth@verinet.com>
6551
6552 * avr-tdep.c: Ran through gdb_indent.sh.
6553
e33ce519
TR
65542002-04-25 Theodore A. Roth <troth@verinet.com>
6555
6556 * MAINTAINERS: Add myself as AVR maintainer.
6557 * NEWS: Note new target avr.
6558
8818c391
TR
65592002-04-25 Theodore A. Roth <troth@verinet.com>
6560
6561 * Makefile.in: Add support for AVR target.
6562 * configure.tgt: Add support for AVR target.
6563 * avr-tdep.c: New file
6564 * config/avr/avr.mt: New file.
6565
79509c2d
TR
65662002-04-25 Theodore A. Roth <troth@verinet.com>
6567
6568 * MAINTAINERS: Add myself to write-after-approval.
6569
dac8068e
PM
65702002-04-24 Pierre Muller <ics.u-strasbg.fr>
6571
6572 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6573 with fprintf_unfiltered (gdb_stderr,....
6574
25bf3106
PM
65752002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6576
6577 Fix PR gdb/508.
6578 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6579
24467a86
PM
65802002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6581
6582 * p-exp.y: Also use new prev_lexptr variable
6583 to improve error reporting. Based on Michael Snyder
6584 2002-04-24 dated patch to c-exp.y.
6585
95b80706
JT
65862002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6587
6588 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6589 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6590 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6591 to 0.
6592 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6593 and struct value.
6594 (FUNCTION_START_OFFSET): Remove.
6595 (BREAKPOINT): Ditto.
6596
e90cc612
JT
65972002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6598
6599 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6600 * NEWS: Ditto.
6601
6c72f9f9
JT
66022002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6603
6604 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6605 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6606 alpha_linux_pc_in_sigtramp.
6607 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6608 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6609 alpha_osf1_pc_in_sigtramp.
6610 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6611 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6612 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6613 alphafbsd_pc_in_sigtramp.
6614 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6615 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6616 alphanbsd_pc_in_sigtramp.
6617 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6618 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6619
5e4f3379
JT
66202002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6621
6622 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6623
da8ca43d
JT
66242002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6625
6626 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6627 alphanbsd-tdep.c.
6628 (alphanbsd-nat.o): New dependency list.
6629 (alphanbsd-tdep.o): Ditto.
6630 * NEWS: Note new native NetBSD/alpha configuration.
6631 * alphanbsd-nat.c: New file.
6632 * alphanbsd-tdep.c: Ditto.
6633 * configure.host (alpha*-*-netbsd*): New host.
6634 * configure.tgt (alpha*-*-netbsd*): New target.
6635 * config/alpha/nbsd.mh: New file.
6636 * config/alpha/nbsd.mt: Ditto.
6637 * config/alpha/nm-nbsd.h: Ditto.
6638 * config/alpha/tm-nbsd.h: Ditto.
6639
36a6271d
JT
66402002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6641
6642 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6643 (alpha-osf1-tdep.o): New dependency list.
6644 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6645 and skip_sigtramp_frame members.
6646 * alpha-linux-tdep.c: Include gdbcore.h.
6647 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6648 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6649 * alpha-osf1-tdep.c: New file.
6650 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6651 alpha-osf1-dep.c.
6652 (alpha_frame_past_sigtramp_frame): New function.
6653 (alpha_dynamic_sigtramp_offset): Ditto.
6654 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6655 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6656 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6657 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6658 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6659 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6660 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6661 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6662 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6663 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6664 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6665 to find_solib_trampoline_target.
6666 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6667 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6668 (SKIP_TRAMPOLINE_CODE): Remove.
6669 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6670 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6671 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6672 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6673 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6674 (PROC_SIGTRAMP_MAGIC): Ditto.
6675 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6676 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6677 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6678 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6679 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6680
2f4bc57b
JT
66812002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6682
6683 * NEWS: Note that Alpha targets are now multi-arch.
6684
665132f9
MS
66852002-04-24 Michael Snyder <msnyder@redhat.com>
6686
6687 * parser-defs.h (prev_lexptr): New external variable.
6688 * parse.c (parse_exp_1): Set prev_lexptr to null before
6689 calling the language-specific parser.
6690 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6691 (yyerror): Use prev_lexptr in error reporting.
6692
32872fa7
DJ
66932002-04-24 Daniel Jacobowitz <drow@mvista.com>
6694
6695 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6696 * gregset.h: If FILL_FPXREGSET is defined, provide
6697 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6698 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6699 is defined, call fill_fpxregset.
6700
57e76fac
MS
67012002-04-24 Roland McGrath <roland@frob.com>
6702
6703 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6704 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6705 (supply_gregset, supply_fpregset): New functions.
6706
6707 * gnu-nat.c (gnu_find_memory_regions): New function.
6708 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6709 (gnu_xfer_memory): Add a cast.
6710
f43845b3
MS
67112002-04-24 Michael Snyder <msnyder@redhat.com>
6712
361d1df0 6713 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6714 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6715 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6716 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6717 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6718 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6719
a0abec03
AC
6720Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6721
6722 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6723 NUM_PSEUDO_REGS can be used.
6724
d7bd68ca
AC
67252002-04-24 Andrew Cagney <ac131313@redhat.com>
6726
6727 * arch-utils.h: Update copyright.
6728
6729 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6730 * gdbarch.h, gdbarch.c: Re-generate.
6731
6732 * inferior.h (IN_SIGTRAMP): Delete definition.
6733 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6734 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6735
6736 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6737 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6738 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6739 (find_proc_framesize): Ditto.
6740 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6741 (alpha_init_extra_frame_info): Ditto.
6742 * infrun.c (handle_inferior_event): Ditto.
6743 (handle_inferior_event): Ditto.
6744 (check_sigtramp2): Ditto.
6745 * blockframe.c (create_new_frame): Ditto.
6746 (get_prev_frame): Ditto.
6747 * ppc-linux-tdep.c: Update comments.
6748 * i386-linux-tdep.c: Update comments.
6749 * breakpoint.c (bpstat_what): Update comment.
6750
4867e41e
DM
67512002-04-24 David S. Miller <davem@redhat.com>
6752
21d83aa5
DM
6753 * i960-tdep.c (register_in_window_p): New function.
6754 (i960_find_saved_register): Use it instead of
6755 REGISTER_IN_WINDOW_P.
6756 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6757
4867e41e
DM
6758 * symtab.h (find_stab_function_addr): Kill extern.
6759 * minsyms.c (find_stab_function_addr): Remove from here...
6760 * dbxread.c: ... to here, and mark it static.
6761
69cdf6a2
DM
67622002-04-20 David S. Miller <davem@redhat.com>
6763
6764 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6765 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6766
5a595886
DM
67672002-04-21 David S. Miller <davem@redhat.com>
6768
6769 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6770 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6771 (vx_write_register): Likewise.
6772
1da1a192
JB
67732002-04-23 J. Brobecker <brobecker@gnat.com>
6774
6775 * source.c (is_regular_file): New function.
6776 (openp): Check wether file to open is a regular file
6777 to avoid opening directories.
6778
baa6f10b
JT
67792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6780
6781 * findvar.c (extract_signed_integer): Cast printf argument
6782 to suppress format warning.
6783 (extract_unsigned_integer): Likewise.
6784 * infcmd.c (registers_info): Likewise.
6785 * top.c (get_prompt_1): Likewise.
6786 * valops.c (value_assign): Likewise.
6787 * valprint.c (print_decimal): Likewise.
6788
b2c4da81
L
67892002-04-22 H.J. Lu (hjl@gnu.org)
6790
6791 * c-exp.y (typebase): Support
361d1df0 6792
b2c4da81
L
6793 [long|long long|short] [signed|unsigned] [int|]
6794
6795 and
6796
6797 signed [long|long long|short] int
6798
f267bd6a
JT
67992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6800
6801 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6802 and vax-tdep.h.
6803 * vax-tdep.h: New file.
6804 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6805 Make several routines static.
6806 (vax_get_saved_register): New function.
6807 (vax_gdbarch_init): New function.
6808 (_initialize_vax_tdep): Register vax_gdbarch_init.
6809 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6810 Remove macros now under the control of gdbarch.
6811
da3c6d4a
MS
68122002-04-22 Michael Snyder <msnyder@redhat.com>
6813
11d3b27d
MS
6814 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6815 Some whitespace and coding standards tweaks.
da3c6d4a 6816
a33f7558
JT
68172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6818
6819 * vax-tdep.c: Include regcache.h.
6820 (vax_call_dummy_words): New.
6821 (sizeof_vax_call_dummy_words): New.
6822 (vax_fix_call_dummy): New function.
6823 (vax_saved_pc_after_call): Ditto.
6824 * config/vax/tm-vax.h: Don't include regcache.h.
6825 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6826 (CALL_DUMMY): Remove.
6827 (CALL_DUMMY_WORDS): Define.
6828 (SIZEOF_CALL_DUMMY_WORDS): Define.
6829 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6830
47a73475
MS
68312002-04-18 Michael Snyder <msnyder@redhat.com>
6832
6833 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6834
52efde73
JT
68352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6836
6837 * vax-tdep.c (vax_frame_chain): New function.
6838 (vax_push_dummy_frame): Ditto.
6839 (vax_pop_frame): Ditto.
6840 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6841 (FRAMELESS_FUNCTION_INVOCATION): Use
6842 generic_frameless_function_invocation_not.
6843 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6844 (POP_FRAME): Use vax_pop_frame.
6845
ea74468c
JT
68462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6847
6848 * vax-tdep.c (vax_store_struct_return): New function.
6849 (vax_extract_return_value): Ditto.
6850 (vax_store_return_value): Ditto.
6851 (vax_extract_struct_value_address): Ditto.
6852 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6853 vax_store_struct_return.
6854 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6855 (STORE_RETURN_VALUE): Use vax_store_return_value.
6856 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6857
5516aa92
JT
68582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6859
6860 * vax-tdep.c (vax_frame_saved_pc): New function.
6861 (vax_frame_args_address_correct): Ditto.
6862 (vax_frame_args_address): Ditto.
6863 (vax_frame_locals_address): Ditto.
6864 (vax_frame_num_args): Move code to be in proximity to
6865 other frame-related functions.
6866 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6867 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6868 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6869 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6870 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6871
36af0b35
L
68722002-04-22 H.J. Lu (hjl@gnu.org)
6873
6874 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6875 includedir.
6876
ab62c900
JT
68772002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6878
6879 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6880 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6881 (FRAME_INIT_SAVED_REGS): New macro.
6882
7232b100
JT
68832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6884
6885 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6886
b70d2aee
JT
68872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6888
6889 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6890 where needed.
6891 (fetch_osf_core_registers): Likewise.
6892 (supply_gregset): Likewise.
6893
a0e8a2d1 68942002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6895
a0e8a2d1
JB
6896 * symfile.h (get_section_index): Define.
6897 * symfile.c (get_section_index): New function.
6898 * mdebugread.c (SC_IS_SBSS): New macro.
6899 (SC_IS_BSS): Return true for the scBss storage class only, as
6900 the scSBss storage class refers to the .sbss section.
6901 (parse_partial_symbols): Discard the symbols which associated
6902 section does not exist.
6903 Make sure to use the .sbss section index for symbols which
6904 storage class is scBss, rather than using the .bss section index.
6905
51eb8b08
JT
69062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6907
6908 * vax-tdep.c: Update copyright years.
6909 (vax_register_name): New function.
6910 (vax_register_byte): Ditto.
6911 (vax_register_raw_size): Ditto.
6912 (vax_register_virtual_size): Ditto.
6913 (vax_register_virtual_type): Ditto.
6914 * config/vax/tm-vax.h: Update copyright years.
6915 (REGISTER_NAMES): Remove.
6916 (REGISTER_NAME): Define.
6917 (REGISTER_BYTE): Use vax_register_byte.
6918 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6919 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6920 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6921
6cc1c0a8
AC
69222002-04-21 Andrew Cagney <ac131313@redhat.com>
6923
6924 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6925 declaration
6926 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6927
9319a2fe
DM
69282002-04-21 David S. Miller <davem@redhat.com>
6929
6930 * arch-utils.c (generic_prologue_frameless_p): Kill
6931 SKIP_PROLOGUE_FRAMELESS_P code.
6932 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6933 references.
6934 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6935 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6936 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6937 references.
6938 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6939 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6940 (sparc_gdbarch_init): Pass it to
6941 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6942
e9ed6d01
JT
69432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6944
6945 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6946 (alphabsd-nat.o): New dependency list.
6947
36012033
JT
69482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6949
6950 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6951 alphafbsd-tdep.c.
6952 (alpha-linux-tdep.o): New dependency list.
6953 (alphafbsd-tdep.o): Likewise.
6954
3379287a
JT
69552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6956
6957 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6958 to here...
6959 * alpha-tdep.c: ...from here.
6960 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6961
4bcbd6cb
JT
69622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6963
6964 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6965 prototype from here...
6966 * alpha-tdep.h: ...to here.
6967
b31da25e
AC
69682002-04-21 Andrew Cagney <ac131313@redhat.com>
6969
6970 * frame.h (selected_frame_level): Document as deprecated.
6971 (frame_relative_level): Declare.
6972 * stack.c (frame_relative_level): New function.
6973 (selected_frame_level): Document as deprecated.
6974 (select_frame): Do not set the selected_frame_level.
6975
6976 * stack.c (frame_info, record_selected_frame): Update.
6977 (frame_command, current_frame_command): Update.
6978 (up_silently_base, up_command, down_silently_base): Update.
6979 (down_command): Update.
6980 * inflow.c (kill_command): Update.
6981 * tracepoint.c (finish_tfind_command): Update.
6982 * corelow.c (core_open): Update.
6983 * thread.c (info_threads_command): Update.
6984 (do_captured_thread_select): Update.
6985 * infcmd.c (finish_command): Update.
6986 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6987
9c1d6fe5
JT
69882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6989
6990 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6991
ab89facf
AC
69922002-04-21 Andrew Cagney <ac131313@redhat.com>
6993
6994 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6995 type const.
6996
82a4efa1
JT
69972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6998
6999 * alphafbsd-tdep.c: Update copyright years. Include
7000 alpha-tdep.h.
7001 (alphafbsd_use_struct_convention): Make static.
7002 (alphafbsd_init_abi): New function.
7003 (_initialize_alphafbsd_tdep): New function.
7004 * config/alpha/tm-fbsd.h: Update copyright years.
7005 (USE_STRUCT_CONVENTION): Remove.
7006
44dffaac
JT
70072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7008
7009 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7010 an Alpha ABI variant.
7011 (alpha_abi_handler_list): Declare.
7012 (alpha_gdbarch_register_os_abi): New function.
7013 (alpha_gdbarch_init): Give registered ABI variant handlers a
7014 chance to tweak the gdbarch once we have set up defaults.
7015 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7016
65585be4
JT
70172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7018
7019 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7020 to standard_coerce_float_to_double.
7021 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7022
d9b023cc
JT
70232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7024
7025 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7026 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7027 from gdbarch_tdep rather than a constant.
7028 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7029 the default text address for all Alpha Unix ABIs.
7030 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7031 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7032
dc129d82
JT
70332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7034
7035 * alpha-tdep.h: New file. Includes several Alpha target constants
7036 taken from...
7037 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7038 let gdbarch deal with.
7039 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7040 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7041 to dependency list.
7042 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7043 Alpha target register names.
7044 * alphabsd-nat.c: Likewise.
7045 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7046 Alpha target register names. Make serveral routines static.
7047 (alpha_get_saved_register): New function.
7048 (alpha_abi_names): New.
7049 (process_note_abi_tag_sections): New function.
7050 (get_elfosabi): New function.
7051 (alpha_gdbarch_init): New function.
7052 (alpha_dump_tdep): New function.
7053 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7054
d49d1e0a
AC
70552002-04-21 Andrew Cagney <ac131313@redhat.com>
7056
7057 * frame.c (find_saved_register): Delete #ifdef
7058 HAVE_REGISTER_WINDOWS code.
7059 * config/sparc/tm-sparc.h: Update comments.
7060 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7061
92e8c9ed
AC
70622002-04-21 Andrew Cagney <ac131313@redhat.com>
7063
7064 * i960-tdep.c (i960_find_saved_register): New function.
7065 (i960_get_saved_register): New function.
7066 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7067 (i960_get_saved_register): Declare.
7068 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7069
e1925118
DM
70702002-04-20 David S. Miller <davem@redhat.com>
7071
7072 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7073
29673b29
AC
70742002-04-20 Andrew Cagney <ac131313@redhat.com>
7075
7076 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7077 instead of NUM_PSEUDO_REGS.
7078
6c86dcd5
DM
70792002-04-20 David S. Miller <davem@redhat.com>
7080
7081 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7082 GDB_MULTI_ARCH_PARTIAL
7083 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7084 define, let tm-sp64.h do it.
7085
aa40ec90
JT
70862002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7087
7088 * frame.c (find_saved_register): Avoid a NULL pointer
7089 dereference and actually walk the frame list.
7090
0f79675b
AC
70912002-04-20 Andrew Cagney <ac131313@redhat.com>
7092
7093 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7094 sorted in most most-recent-used order. Document.
7095 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7096
f91305dd 70972002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7098
7099 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7100 instead of ->prev.
7101 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7102 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7103 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7104 instead of ->prev.
7105
73d322b1
EZ
71062002-04-19 Elena Zannoni <ezannoni@redhat.com>
7107
7108 Fix PR gdb/471.
7109 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7110 (build_builtin_type_vec128): Ditto.
7111 (append_composite_type_field): Fix calculation of type length in
7112 union case.
7113
ccd9a834
EZ
71142002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7115
7116 * config/djgpp/README: Update.
7117
7118 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7119 compiler warnings.
7120
a57f9e49
JT
71212002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7122
7123 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7124 (alpha_setup_arbitrary_frame): ...to this.
7125 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7126 for alpha_setup_arbitrary_frame.
7127
f4f9705a
AC
71282002-04-18 Andrew Cagney <cagney@redhat.com>
7129
7130 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7131 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7132
f4f9705a
AC
7133 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7134 * target.h (memory_breakpoint_from_pc): Update declaration.
7135 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7136
7137 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7138 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7139 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7140 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7141 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7142 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7143 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7144 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7145 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7146 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7147 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7148 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7149
7150 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7151 const pointer.
7152 * monitor.c (monitor_insert_breakpoint): Ditto.
7153 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7154
7155 * config/mcore/tm-mcore.h: Update copyright.
7156 * mem-break.c: Ditto.
7157 * xstormy16-tdep.c: Ditto.
7158
29f319b8
PM
71592002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7160
7161 * p-exp.y: Add precedence rule for '^' token.
7162 This removes the shift/reduce conflicts.
7163 Remove the comment concerning these shift/reduce conflicts.
7164
ebeac11a
EZ
71652002-04-18 Elena Zannoni <ezannoni@redhat.com>
7166
7167 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7168 (registers_powerpc_nofp): New register set for processors
7169 without floating point unit.
7170
27c31547
DM
71712002-04-18 David S. Miller <davem@redhat.com>
7172
7173 * MAINTAINERS: Add myself to write-after-approval.
7174
47a73475
MS
71752002-04-17 Michael Snyder <msnyder@redhat.com>
7176
7177 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7178
953836b2
AC
71792002-04-17 Andrew Cagney <ac131313@redhat.com>
7180
7181 * rs6000-tdep.c (frame_initial_stack_address): Use
7182 frame_register_read to read the alloca_reg.
7183
8b0d4340
AC
71842002-04-17 Andrew Cagney <ac131313@redhat.com>
7185
7186 * frame.c (find_saved_register): Find saved registers in the next
7187 not prev frame.
7188 Fix PR gdb/365.
7189
d8864532
AC
71902002-04-17 Andrew Cagney <ac131313@redhat.com>
7191
7192 * gdbarch.sh (LANG): Set to ``c''.
7193
36cc83a3 71942002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7195
36cc83a3 7196 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7197
2f4150cc 71982002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7199
7200 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7201 Update copyright.
7202
628703c6 7203 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7204 Also fix PR gdb/391.
361d1df0 7205
56157b4a
AC
72062002-04-14 Andrew Cagney <ac131313@redhat.com>
7207
7208 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7209 * aclocal.m4, configure: Re-generate.
7210 Fix PR gdb/391.
361d1df0 7211
6d1e3329
EZ
72122002-04-14 Elena Zannoni <ezannoni@redhat.com>
7213
7214 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7215 instead of tm_print_insn.
7216
cb06fa07
EZ
72172002-04-14 Elena Zannoni <ezannoni@redhat.com>
7218
7219 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7220
f208ba17
AC
72212002-04-14 Andrew Cagney <ac131313@redhat.com>
7222
7223 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7224 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7225 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7226
20f01a46
DH
72272002-04-12 Don Howard <dhoward@redhat.com>
7228
7229 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7230 max_user_call_depth.
7231 (init_cmd_lists): Initialize the new value;
7232 * cli/cli-script.c (execute_user_command): Limit the call depth of
7233 user defined commands. This avoids a core-dump when user commands
7234 are infinitly recursive.
7235
a88376a3
KB
72362002-04-12 Kevin Buettner <kevinb@redhat.com>
7237
7238 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7239 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7240 from tdep struct instead of DEFAULT_LR_SAVE.
7241 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7242 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7243 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7244
f2172603
MS
72452002-04-12 Michael Snyder <msnyder@redhat.com>
7246
694f61fb 7247 * Remote.c: Spelling fix.
20fe79c8
MS
7248 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7249 If no symbol found for "sbrk", try "_sbrk".
7250 (make_output_phdrs): Use bfd_section_name.
7251 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7252 * eval.c: Indentation fix-ups.
169a7369
MS
7253 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7254 in case it gets applied to an address that is already
7255 in the instruction space.
de74f71f
MS
7256 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7257 * symfile.c: Fix indentation, long lines.
f2172603
MS
7258 * source.c: White space fix-up.
7259
cda5a58a
AC
72602002-04-12 Andrew Cagney <cagney@redhat.com>
7261
7262 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7263 * frame.c (frame_register_read): New function. Return non-zero on
7264 success.
7265 (read_relative_register_raw_bytes_for_frame): Delete.
7266 (read_relative_register_raw_bytes): Delete.
7267 * frame.h (frame_register_read): Declare.
7268 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7269 * sh-tdep.c: Ditto.
7270 * infcmd.c (do_registers_info): Ditto.
7271 * hppa-tdep.c: Ditto.
7272 * rs6000-tdep.c: Ditto.
7273 * h8500-tdep.c: Ditto.
7274 * mips-tdep.c: Ditto.
7275 * h8300-tdep.c: Ditto.
7276 * z8k-tdep.c: Ditto.
7277
2ea5f656
KB
72782002-04-12 Kevin Buettner <kevinb@redhat.com>
7279
7280 From Jimi X <jimix@watson.ibm.com>:
7281 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7282 64-bit SysV ABI.
7283
27b15785
KB
72842002-04-12 Kevin Buettner <kevinb@redhat.com>
7285
7286 From Jimi X <jimix@watson.ibm.com>:
7287 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7288 bfd info.
7289
5d57ee30
KB
72902002-04-12 Kevin Buettner <kevinb@redhat.com>
7291
7292 From Jimi X <jimix@watson.ibm.com>:
7293 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7294 register sets for these processor variants.
7295
bc1e36ca
DJ
72962002-04-11 Daniel Jacobowitz <drow@mvista.com>
7297
bc1e36ca
DJ
7298 * regformats/reg-ppc.dat: Support FPSCR.
7299
e3f36dbd
KB
73002002-04-11 Kevin Buettner <kevinb@redhat.com>
7301
7302 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7303 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7304 Add fpscr as an invalid/unfetchable register.
7305 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7306 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7307 (fill_fpregset): Add support for register fpscr.
7308 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7309 (fill_gregset): Account for the fact that register ``mq'' might
7310 not exist.
7311 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7312 (registers_power): Add fpscr to register set at slot 71.
7313 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7314 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7315
943c9c25
MS
73162002-04-11 Michael Snyder <msnyder@redhat.com>
7317
7318 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7319 * configure: Regenerate.
7320 * config.in: Regenerate.
7321 * acconfig.h: Add define for _SYSCALL32.
7322 * core-sol2.c: Remove #define _SYSCALL32.
7323 * solib-legacy.c: Remove #define _SYSCALL32.
7324
d8c0a2e7
AC
73252002-04-10 Andrew Cagney <ac131313@redhat.com>
7326
7327 * stack.c (select_frame): Cleanup internal error message, do not
7328 use %p.
7329
7cc19214
AC
73302002-04-10 Andrew Cagney <ac131313@redhat.com>
7331
7332 * stack.c (select_frame): Check that selected_frame and the
7333 specified level are as expected.
7334 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7335 Update copyright.
7336 * frame.h (struct frame_info): Add field `level'. Update
7337 copyright.
7338 Work-in-progress PR gdb/464.
7339
67a2b77e
AC
73402002-04-10 Andrew Cagney <ac131313@redhat.com>
7341
7342 * maint.c (maint_print_section_info): Rename print_section_info.
7343 (print_bfd_section_info, print_objfile_section_info): Update.
7344 * inferior.h (struct gdbarch): Add opaque declaration.
7345 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7346 * gdbarch.h: Regenerate.
7347
8cfda98c
ML
73482002-04-10 Michal Ludvig <mludvig@suse.cz>
7349
7350 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7351 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7352 (kernel_u_size): Added.
7353 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7354 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7355
ca439ad2 73562002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7357
ca439ad2
JI
7358 * valarith.c (find_size_for_pointer_math): New function, either returns
7359 the size for a pointer's target, returns 1 for void *, or errors for
7360 incomplete types.
7361 (value_add, value_sub): use find_size_for_pointer_math.
7362
2f2893d9
DJ
73632002-04-09 Daniel Jacobowitz <drow@mvista.com>
7364
7365 * linux-low.c (linux_look_up_symbols): New hook.
7366 (linux_target_ops): Add linux_look_up_symbols.
7367 * remote-utils.c (decode_address): New function.
7368 (look_up_one_symbol): New function.
7369 * server.c (handle_query): Call target look_up_symbols hook.
7370 * server.h (look_up_one_symbol): Add prototype.
7371 * target.h (struct target_ops): Add look_up_symbols hook.
7372
96cb11df
AC
73732002-04-09 Andrew Cagney <ac131313@redhat.com>
7374
7375 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7376 override FP_REGNUM with frame->fp. Update copyright.
7377 * parse.c (num_std_regs, std_regs): Delete.
7378 (target_map_name_to_register): Do not search std_regs. Update
7379 function description.
7380 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7381 declarations. Update copyright.
7382 Fix PR gdb/251.
361d1df0 7383
97658e92
DJ
73842002-04-09 Daniel Jacobowitz <drow@mvista.com>
7385
7386 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7387 after the last symbol in a block.
7388
6044e3eb
PM
73892002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7390
7391 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7392 is non zero as a found symbol.
7393
0406ec40
AC
73942002-04-08 Andrew Cagney <ac131313@redhat.com>
7395
7396 * findvar.c: Include "builtin-regs.h".
7397 (value_of_register): Call value_of_builtin_reg when applicable.
7398 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7399 (target_map_name_to_register): Call
7400 builtin_reg_map_name_to_regnum.
7401 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7402 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7403 (builtin_regs_h): Define.
7404 (builtin-regs.o): New target.
7405 (findvar.o): Add $(builtin_regs_h).
7406 * builtin-regs.c, builtin-regs.h: New files.
7407 * std-regs.c: New file.
7408 Partial fix for PR gdb/251.
7409
56a6dfb9
KB
74102002-04-08 Kevin Buettner <kevinb@redhat.com>
7411
7412 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7413 it's no longer required.
7414
3a808432
AC
74152002-04-08 Andrew Cagney <ac131313@redhat.com>
7416
7417 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7418
7c40d541
KB
74192002-04-08 Kevin Buettner <kevinb@redhat.com>
7420
7421 From Jimi X <jimix@watson.ibm.com>:
7422 * rs6000-tdep.c (rs6000_software_single_step): Use
7423 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7424 and size. Use target_insert_breakpoint() and
7425 target_remove_breakpoint() to insert and remove breakpoints
7426 instead of explicit memory reads and writes.
7427
cc9836a8
KB
74282002-04-08 Kevin Buettner <kevinb@redhat.com>
7429
7430 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7431 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7432 ELF_OBJECT_FORMAT ifdef.
7433
7495d1dc
KB
74342002-04-08 Kevin Buettner <kevinb@redhat.com>
7435
7436 From Jimi X <jimix@watson.ibm.com>:
7437 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7438
4288e836
KB
74392002-04-08 Kevin Buettner <kevinb@redhat.com>
7440
7441 From Jimi X <jimix@watson.ibm.com>:
7442 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7443 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7444
a4e4e501
MK
74452002-04-07 Mark Kettenis <kettenis@gnu.org>
7446
7447 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7448 s/asprintf/xasprintf/.
7449 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7450
006defba
AC
74512002-04-07 Andrew Cagney <ac131313@redhat.com>
7452
7453 I believe Jeff Law denies responsability for this one:
7454 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7455 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7456 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7457 Work-around for PR gdb/366.
7458
7aa83cac
EZ
74592002-04-07 Elena Zannoni <ezannoni@redhat.com>
7460
7461 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7462 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7463 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7464
cf1fcca1
EZ
74652002-04-07 Elena Zannoni <ezannoni@redhat.com>
7466
7467 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7468 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7469 information.
7470
3f289e6f
AC
74712002-04-07 Andrew Cagney <ac131313@redhat.com>
7472
7473 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7474 maintainer.
7475
129188f6
AC
74762002-04-07 Andrew Cagney <ac131313@redhat.com>
7477
7478 * README (Reporting Bugs in GDB): Document the bug web page as the
7479 prefered way of submitting bugs.
7480 Fix PR gdb/402.
7481
1200cd6e
AC
74822002-04-06 Andrew Cagney <ac131313@redhat.com>
7483
7484 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7485 -1. Update comment.
7486 * gdbarch.h, gdbarch.c: Re-generate.
7487
2853c33c
AS
74882002-04-07 Andreas Schwab <schwab@suse.de>
7489
7490 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7491 buffer to regcache_collect.
7492
c2169756
AC
74932002-04-06 Andrew Cagney <ac131313@redhat.com>
7494
7495 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7496 * gdbarch.c, gdbarch.h: Re-generate.
7497
25f1b008
AC
74982002-04-06 Andrew Cagney <ac131313@redhat.com>
7499
7500 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7501 declaration. Fix -Werror.
7502
59263426
DJ
75032002-04-05 Daniel Jacobowitz <drow@mvista.com>
7504
7505 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7506 * gdbarch.c: Regenerate.
7507
f5db4da3
MS
75082002-04-05 Michael Snyder <msnyder@redhat.com>
7509
80f8a6eb
MS
7510 * breakpoint.c (clear_command): Rewrite middle section to
7511 combine two loops with identical control conditions.
7512 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7513 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7514
ad3dcc5c
L
75152002-04-05 H.J. Lu (hjl@gnu.org)
7516
7517 * solib-svr4.c (bkpt_names): Add "__start".
7518
f32e7a74
AC
75192002-04-04 Andrew Cagney <ac131313@redhat.com>
7520
7521 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7522 as test for 64 bit target.
7523
8227c0ff
AC
75242002-04-05 Andrew Cagney <ac131313@redhat.com>
7525
7526 * h8500-tdep.c (h8500_write_fp): Delete function.
7527 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7528 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7529 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7531 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7532 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7533 (s390_write_fp):
7534 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7535 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7536 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7537 (d10v_write_fp): Delete function.
7538 * inferior.h (write_fp, generic_target_write_fp): Delete
7539 declarations.
7540 * regcache.c (generic_target_write_fp): Delete function.
7541 (write_fp): Delete function.
7542 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7543 * gdbarch.h, gdbarch.c: Regenerate.
7544 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7545 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7546 (sparc64_write_fp): Delete declaration.
7547 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7548 (h8500_write_fp): Delete declaration.
7549
2757dd86
AC
75502002-04-04 Andrew Cagney <ac131313@redhat.com>
7551
7552 * sparc-tdep.c (sparc64_write_fp): Delete.
7553 (sparc_push_dummy_frame): Replace write_fp call with code to store
7554 the FP directly.
7555 (sparc_gdbarch_init): Do not initialize write_fp.
7556
c69255e1
KB
75572002-04-05 Kevin Buettner <kevinb@redhat.com>
7558
7559 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7560 clause.
7561
ae767bfb
JB
75622002-03-29 Jim Blandy <jimb@redhat.com>
7563
7564 * stack.c (get_selected_block): Add new argument `addr_in_block',
7565 used to return the exact code address we used to select the block,
7566 not just the block.
7567 * blockframe.c (get_frame_block, get_current_block): Same.
7568 * frame.h (get_frame_block, get_current_block,
7569 get_selected_block): Update declarations.
7570 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7571 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7572
84d2ac95
MS
75732002-04-05 Michael Snyder <msnyder@redhat.com>
7574
7575 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7576 warning message.
7577
596aa3bf
JB
75782002-04-05 J. Brobecker <brobecker@gnat.com>
7579
7580 * utils.c (xfullpath): New function.
7581 * defs.h (xfullpath): Add declaration.
7582 * source.c (openp): Use xfullpath in place of gdb_realpath to
7583 avoid resolving the basename part of filenames when the
7584 associated file is a symbolic link. This fixes a potential
7585 inconsistency between the filenames known to GDB and the
7586 filenames it prints in the annotations.
7587 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7588 to be able to match a filename with either the real filename, or
7589 the name of any symbolic link to this file.
7590 (lookup_partial_symtab): Ditto.
7591
c02f5703
MS
75922002-04-04 Michael Snyder <msnyder@redhat.com>
7593
7594 * breakpoint.c: Add support for hardware breakpoints in overlays.
7595 (overlay_events_enabled): New state variable.
7596 (insert_breakpoints): Use overlay_events_enabled to decide
7597 whether to attempt to set a breakpoint at the overlay load addr.
7598 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7599 (remove_breakpoint): Use overlay_events_enabled to decide
7600 whether breakpoints need to be removed from overlay load addr.
7601 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7602 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7603 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7604 disable_overlay_breakpoints): Update overlay_events_enabled.
7605
5fb290d7
DJ
76062002-04-04 Daniel Jacobowitz <drow@mvista.com>
7607
7608 * dwarf2read.c (struct function_range): New.
7609 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7610 (check_cu_functions): New.
7611 (read_file_scope): Initialize global function lists.
7612 Call dwarf_decode_line after processing children.
7613 (read_func_scope): Add to global function list.
7614 (dwarf_decode_lines): Call check_cu_functions everywhere
7615 record_line is called. Call record_line with a linenumber
7616 of 0 to mark sequence ends.
7617
7b3fabf0
ML
76182002-04-04 Michal Ludvig <mludvig@suse.cz>
7619
361d1df0 7620 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7621 change sync with glibc.
7622
bce58c09
JB
76232002-04-03 Jim Blandy <jimb@redhat.com>
7624
7625 * configure.in: Call AC_C_INLINE.
7626 * configure: Regenerated.
361d1df0 7627
2fccf04a
DJ
76282002-04-01 Daniel Jacobowitz <drow@mvista.com>
7629
7630 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7631 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7632
2d1bfe2e
MK
76332002-03-31 Mark Kettenis <kettenis@gnu.org>
7634
a5941fbf
MK
7635 * NEWS: Mention gcore support on FreeBSD/i386.
7636
a90cd31d
MK
7637 * fbsd-proc.c: New file.
7638 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7639 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7640
2d1bfe2e
MK
7641 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7642 while statement.
7643
9eb6e5a1
JB
76442002-03-29 Jim Blandy <jimb@redhat.com>
7645
7646 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7647 unescaped newlines in string literals, but newer ones don't. So
7648 escape them.
7649
f02df580
MS
76502002-03-26 Michael Snyder <msnyder@redhat.com>
7651 Andrew Cagney <cagney@redhat.com>
7652
361d1df0 7653 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7654 restore file to memory.
7655 * cli/cli-dump.h: New file.
7656 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7657 * NEWS: Mention new commands.
f02df580 7658
109f874e
MS
76592002-03-28 Michael Snyder <msnyder@redhat.com>
7660
7661 * symfile.c (symbol_file_add): Move test for null symbols to later.
7662
520f6ade
AC
76632002-03-27 Andrew Cagney <ac131313@redhat.com>
7664
7665 From veksler at il.ibm.com:
7666 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7667 the xstrduped original path.
7668 Fix PR gdb/417.
7669
d4654627
MS
76702002-03-27 Michael Snyder <msnyder@redhat.com>
7671
7672 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7673 * infcmd.c (_initialize_infcmd): Ditto.
7674 * language.c (_initialize_language): Ditto.
7675 * symfile.c (_initialize_symfile): Ditto.
7676 * top.c (_init_main): Ditto.
7677 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7678
6be8bc0c
EZ
76792002-03-27 Elena Zannoni <ezannoni@redhat.com>
7680
7681 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7682 vector registers handling.
7683 (skip_prologue): Handle new AltiVec instructions. Fill in new
7684 fields of frame data.
7685 (frame_get_saved_regs): Fill in information for AltiVec registers.
7686
12af6855
JB
76872002-03-27 Jim Blandy <jimb@redhat.com>
7688
7689 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7690 a function; leave this macro here to invoke that function.
7691 (symbol_init_mangled_name): Declaration for that function.
7692 * symtab.c (symbol_init_mangled_name): New function.
7693
dc672865
AC
76942002-03-27 Andrew Cagney <ac131313@redhat.com>
7695
7696 * valarith.c: Replace strerror with safe_strerror.
7697 * tracepoint.c: Ditto.
7698 * lin-lwp.c: Ditto.
7699 * go32-nat.c: Ditto.
7700 * inflow.c: Ditto.
7701 * gnu-nat.c: Ditto.
7702
d96429cd
AS
77032002-03-27 Andreas Schwab <schwab@suse.de>
7704
7705 * event-top.c (command_line_handler): Remove useless if.
7706
7e336ba1
AJ
77072002-03-27 Andreas Jaeger <aj@suse.de>
7708
7709 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7710 comment.
7711
de220d0f
ML
77122002-03-27 Michal Ludvig <mludvig@suse.cz>
7713
7714 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7715 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7716 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7717 (x86_64_linux_dr_get_status, supply_gregset),
7718 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7719 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7720 (x86_64_register_info_table): Add.
7721 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7722 (x86_64_register_raw_size, x86_64_register_virtual_type),
7723 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7724 general x86_64_register_info_table.
7725 (i386_gdbarch_init): gdbarch_register_bytes is now set
7726 dynamicaly during initialization.
7727 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7728 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7729
0e98d0a7
DJ
77302002-03-27 Daniel Jacobowitz <drow@mvista.com>
7731
7732 * gdbserver/server.c (main): Call target_signal_to_host_p
7733 and target_signal_to_host on signals received from the remote.
7734 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7735 target_signal_from_host on signals sent to the remote.
7736 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7737 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7738
3130066b
DJ
77392002-03-27 Daniel Jacobowitz <drow@mvista.com>
7740
7741 * signals/signals.c: Include "server.h" in gdbserver build.
7742 (target_signal_from_name): Don't use STREQ.
7743 (_initialize_signals): Likewise. Don't include function in
7744 gdbserver build.
7745
9aedf4f4
DJ
77462002-03-27 Daniel Jacobowitz <drow@mvista.com>
7747
7748 * signals.c: Moved to...
7749 * signals/signals.c: Here.
7e336ba1 7750 * Makefile (signals.o): Update.
9aedf4f4 7751
3fa41cdb
JL
77522002-03-26 Jeff Law (law@redhat.com)
7753
7754 * somread.c (som_symtab_read): Remove some commented out code and
7755 updated related comments. Do not set the minimal symbol table to
7756 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7757 in a dynamic executable.
7758 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7759 where we are unable to find the minimal symbol for the given
7760 PC value.
7761
ee677e8d
MS
77622002-03-25 Jeff Law (law@redhat.com)
7763
7764 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7765
e76e1718
ML
77662002-03-25 Michal Ludvig <mludvig@suse.cz>
7767
7768 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7769
18a642a1
AC
77702002-03-23 Andrew Cagney <ac131313@redhat.com>
7771
7772 * command.h: Update copyright.
7773 (struct cmd_list_element): Replace definition with opaque
7774 declaration.
7775 (enum cmd_types): Document that it will eventually be moved to
7776 cli/cli-decode.h
7777 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7778 (MALLOCED_REPLACEMENT): Delete macro.
7779 * Makefile.in (cli_decode_h): Add $(command_h).
7780 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7781 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7782 * completer.c: Include "cli/cli-decode.h".
7783 * maint.c: Include "cli/cli-decode.h".
7784 * cli/cli-decode.h: Include "command.h".
7785 (enum command_class): Delete.
7786 (enum cmd_types): Comment out.
7787 (enum cmd_auto_boolean): Delete.
7788 (enum var_types): Delete.
7789
b2875cc0
AC
77902002-03-23 Andrew Cagney <ac131313@redhat.com>
7791
7792 * cli/cli-decode.c: Include "gdb_assert.h".
7793 (add_set_or_show_cmd): New static function.
7794 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7795 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7796 all fields, such as func, from the set command.
7797
3b45974e
AC
77982002-03-23 Andrew Cagney <ac131313@redhat.com>
7799
7800 * MAINTAINERS (sh-elf): Change warning flag to -w.
7801
823ca731
AC
78022002-03-23 Andrew Cagney <cagney@redhat.com>
7803
7804 * defs.h (error): Add printf format attribute.
7805 * thread-db.c (thread_from_lwp): Fix error format string.
7806 * stack.c (parse_frame_specification): Ditto.
7807 * cli/cli-decode.c (undef_cmd_error): Ditto.
7808 * scm-lang.c (scm_lookup_name): Ditto.
7809 * tracepoint.c (trace_error): Ditto.
7810 * remote-utils.c (usage): Ditto.
7811 * remote.c (compare_sections_command): Ditto.
7812 Fix PR gdb/328.
7813
0e101458
AC
78142002-03-22 Andrew Cagney <ac131313@redhat.com>
7815
7816 * gdbtypes.c (append_composite_type_field): New function.
7817 (init_composite_type): New function.
7818 * gdbtypes.h (append_composite_type_field): Declare.
7819 (init_composite_type): Ditto.
7820
8e0662df
EZ
78212002-03-22 Elena Zannoni <ezannoni@redhat.com>
7822
7823 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7824 function.
8e0662df
EZ
7825 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7826 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7827 structure returning convention for SYSV ABI case, but not
7828 for GNU/Linux, FreeBSD, or NetBSD.
7829
3121eff0
DJ
78302002-03-22 Daniel Jacobowitz <drow@mvista.com>
7831
7832 * symtab.h (lookup_block_symbol): Add mangled_name argument
7833 to prototype.
7834
7835 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7836 with new mangled_name argument.
7837 * linespec.c (decode_line_1): Likewise.
7838 * valops (value_of_this): Likewise.
7839 * symtab.c (lookup_transparent_type): Likewise.
7840 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7841 (lookup_symbol): If we are given a mangled name, pass it down
7842 to lookup_symbol_aux.
7843 (lookup_block_symbol): If we are given a mangled name to check
7844 against, only return symbols which match it.
7845
349b409f
CF
78462002-03-22 Christopher Faylor <cgf@redhat.com>
7847
7848 * win32-nat.c (child_create_inferior): Check for proper shell to use
7849 here, in case the user changes it on the fly.
7850 (_initialize_inftarg): Remove shell path considerations.
7851
2a873819
EZ
78522002-03-21 Elena Zannoni <ezannoni@redhat.com>
7853
7854 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7855 for gdbarch_max_register_raw_size and max_register_virtual_size.
7856 Adjust copyright year.
7857
a1b9830c
DJ
78582002-03-21 Daniel Jacobowitz <drow@mvista.com>
7859
7860 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7861 in a function to cover the entire beginning of the function
7862 as well if it does not already.
7863
8b5790f2
TR
78642002-03-21 Tom Rix <trix@redhat.com>
7865
7866 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7867 (rs6000_ptrace64): Renamed from ptrace64.
7868
bdbe5747
MH
78692002-03-20 Martin M. Hunt <hunt@redhat.com>
7870
7871 * gdbserver/remote-utils.c (remote_open): Don't call
7872 getprotobyname, we're all using TCP here so just use
7873 IPPROTO_TCP.
7e336ba1 7874 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7875
78762002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7877
bdbe5747
MH
7878 * regcache.c (_initialize_regcache): No need to call
7879 build_regcache() at this time; it gets called whenever
7880 the gdbarch changes.
7881
7781cd62
DB
78822002-03-20 David O'Brien <obrien@FreeBSD.org>
7883
7884 * sparc-nat.c: Include sys/param.h where possible.
7885
f65ca430
DJ
78862002-03-20 Daniel Jacobowitz <drow@mvista.com>
7887
7888 Fix PR gdb/422.
7889 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7890 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7891 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7892 complex types.
7893 * stabsread.c (rs6000_builtin_type): Likewise.
7894 (read_sun_floating_type): Likewise.
7895
0c867556
PS
78962002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7897
7898 * stabsread.c (read_member_functions): Remove skip code for duplicate
7899 constructor/destructor methods. Use standard parsing for these
7900 methods and just do not chain them to the list of methods after
7901 parsing.
7902
12b9c64f
AO
79032002-03-19 Alexandre Oliva <aoliva@redhat.com>
7904
7905 * coffread.c: Remove redundant static declarations. Replace
7906 occurrences of `PTR' with `void *'.
7907 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7908 * top.h (quit_cover): Likewise.
7909 * defs.h (catch_errors): Likewise.
7910
349c5d5f
AC
79112002-03-18 Andrew Cagney <ac131313@redhat.com>
7912
7913 * defs.h (XMALLOC): Define.
7914 * gdb-events.sh (XMALLOC): Delete macro.
7915 * gdb-events.c, gdb-events.h: Regenerate.
7916 * gdbarch.sh (XMALLOC): Delete macro.
7917 * gdbarch.c: Regenerate.
7918 * serial.c (XMALLOC): Delete macro.
7919 * ui-file.c (XMALLOC): Ditto.
7920 * ser-unix.h (XMALLOC): Ditto.
7921 * sh-tdep.c (XMALLOC): Ditto.
7922 * ui-out.c (XMALLOC): Ditto.
7923 * utils.c (XMALLOC): Ditto.
7924 * i386-tdep.c (XMALLOC): Ditto.
7925 * gdb-events.c (XMALLOC): Ditto.
7926 * d10v-tdep.c (XMALLOC): Ditto.
7927 * cli-out.c (XMALLOC): Ditto.
7928
7929 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7930 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7931 * ui-file.c, ui-out.c: Ditto.
7932
7d0766f3
AC
79332002-03-18 Andrew Cagney <ac131313@redhat.com>
7934
7935 * command.h (struct cmd_list_element): Add field context.
7936 (set_cmd_context, get_cmd_context): Declare.
7937 * cli/cli-decode.h: Ditto.
7938 * cli/cli-decode.c (get_cmd_context): New function.
7939 (set_cmd_context): New function.
7940 (add_cmd): Initialize context.
7941 Part of fixing PR gdb/145 and PR gdb/146.
7942
5913bcb0
AC
79432002-03-17 Andrew Cagney <ac131313@redhat.com>
7944
1868c04e
AC
7945 * cli/cli-decode.c (cmd_type): New function.
7946 * command.h (cmd_type): Declare.
7947 * infrun.c (set_schedlock_func): Call function cmd_type.
7948 * kod.c (kod_set_os): Call cmd_type.
7949 * cris-tdep.c (cris_version_update): Use function cmd_type.
7950 (cris_mode_update, cris_abi_update): Ditto.
7951
5913bcb0
AC
7952 * command.h: (execute_cmd_post_hook): Declare.
7953 (execute_cmd_pre_hook): Declare.
7954 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7955 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7956 functions. Execute pre/post hook while ensuring that afterwords
7957 hook_in is cleared.
7958 * top.c (execute_command): Use execute_cmd_post_hook, and
7959 execute_cmd_pre_hook to execute pre/post commands.
7960 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7961 hook_stop_stub.
7962 (hook_stop_stub): Call execute_cmd_pre_hook.
7963
b51450c9
AC
79642002-03-17 Andrew Cagney <ac131313@redhat.com>
7965
7966 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7967 set'' and this leads to a core dump. Move xstrdup of
7968 operating_system to after check that it is not NULL.
7969
f66c9f11
AC
79702002-03-17 Andrew Cagney <ac131313@redhat.com>
7971
8e694ecf
AC
7972 * kod.c (kod_set_os): Remove unnecessary check that
7973 ``command->type'' is set_cmd.
7974
f66c9f11
AC
7975 * valprint.c (set_input_radix): Use input_radix.
7976 (set_output_radix): Use output_radix.
7977 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7978 isn't reverted.
7979
9d01611c
AC
79802002-03-16 Andrew Cagney <ac131313@redhat.com>
7981
7982 * value.h (struct value): Delete field ``substring_addr''. Change
7983 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7984 force_core_addr_align and force_pointer_aligh.
7985
7986 * value.h (struct value): Fix typo in above change.
9d01611c 7987
4156bb53
PS
79882002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7989
7990 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7991 to fix internal_error from ``maintenance print architecture''.
7992
0e5e3ea6
PS
79932002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7994
7995 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7996 for gcc versions after gcc-2.8.1.
7997
9b013045
PS
79982002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7999
8000 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8001 for method resolution. Restore adjustment of ``this'' pointer after
8002 calling value_struct_elt, which was accidentally removed during the
8003 HP merge.
8004
376c9600
AC
80052002-03-15 Andrew Cagney <ac131313@redhat.com>
8006
8007 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8008 value_of_register.
8009 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8010 get_saved_register.
8011 * value.h (value_of_register): Update.
8012
a4db0f07
RH
80132002-03-14 Richard Henderson <rth@redhat.com>
8014
8015 * configure.in: Detect declaration for canonicalize_file_name.
8016 * utils.c (canonicalize_file_name): Declare, if needed.
8017 (gdb_realpath): Prefer realpath if available and usable.
8018 * config.in, configure: Rebuild.
8019
96383835
RH
80202002-03-14 Richard Henderson <rth@redhat.com>
8021
8022 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8023 a constant array bound.
8024
8025 * MAINTAINERS: Add myself to write-after-approval.
8026
75245b24
MS
80272002-03-14 Michael Snyder <msnyder@redhat.com>
8028
8029 * symfile.c (syms_from_objfile): Return immediately if no syms.
8030 (symbol_file_add): Return immediately if no syms.
8031 (find_sym_fns): Return immediately if no syms.
8032
e641a1ca
ML
80332002-03-13 Michal Ludvig <mludvig@suse.cz>
8034
8035 * gdbserver/remote-util.c (remote_open): Print remote-side's
8036 IP address when remote debugging over the network.
7e336ba1 8037
df08bfec
DB
80382002-03-12 David O'Brien <obrien@FreeBSD.org>
8039
8040 * config/sparc/fbsd.mh: Fix copyright.
8041 * config/sparc/fbsd.mt: Likewise.
8042
9a57864f
RE
80432002-03-11 Richard Earnshaw <rearnsha@arm.com>
8044
8045 * MAINTAINERS: Fix typo in name of gdb warnings option.
8046 (x86-64): Fix formating so that this can be parsed by awk.
8047
dd7bf85e
DJ
80482002-03-10 Daniel Jacobowitz <drow@mvista.com>
8049
8050 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8051 * defs.h: Include "gdb/signals.h".
8052 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8053
33a0a2ac
ML
80542002-03-10 Michal Ludvig <mludvig@suse.cz>
8055
8056 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8057 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8058 from x86-64-tdep.h
8059
dd824b04
DJ
80602002-03-10 Daniel Jacobowitz <drow@mvista.com>
8061 Don Howard <dhoward@redhat.com>
8062
8063 * mips-tdep.c (ST0_FR): Define.
8064 (mips2_fp_compat): New function, temporarily disabled.
8065 (mips_read_fp_register_single): New function.
8066 (mips_read_fp_register_double): New function.
8067 (mips_print_register): Use them.
8068 (do_fp_register_row): Likewise.
8069
6a41ff59
AC
80702002-03-09 Andrew Cagney <ac131313@redhat.com>
8071
8072 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8073 approval''.
8074
4ea09c10
PS
80752002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8076
8077 * stabsread.c (read_member_functions): Fix is_stub test for
8078 static member functions, improve comment.
8079
6ccc741d
RE
80802002-03-07 Richard Earnshaw <rearnsha@arm.com>
8081
8082 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8083 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8084 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8085 commands that set boolean values.
8086 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8087 (arm_rdi_resume): Always initialize PC.
8088 (arm_rdi_open): Don't use rslt as a boolean.
8089 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8090 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8091 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8092 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8093
438013df
AO
80942002-03-06 Alexandre Oliva <aoliva@redhat.com>
8095
8096 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8097 * configure: Rebuilt.
8098
70ed8774
SC
80992002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8100
8101 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8102 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8103
5ba2abeb
AC
81042002-03-06 Andrew Cagney <ac131313@redhat.com>
8105
8106 * cli/cli-decode.c (set_cmd_completer): New function.
8107 * command.h (set_cmd_completer): Declare.
8108 * cli/cli-decode.h (set_cmd_completer): Ditto.
8109
8110 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8111 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8112 * win32-nat.c (_initialize_inftarg): Ditto.
8113 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8114 * proc-api.c (_initialize_proc_api): Ditto.
8115 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8116 * source.c (_initialize_source): Ditto.
8117 * exec.c (_initialize_exec): Ditto.
8118 * solib.c (_initialize_solib): Ditto.
8119 * top.c (init_main): Ditto.
8120 * tracepoint.c (_initialize_tracepoint): Ditto.
8121 * symfile.c (_initialize_symfile): Ditto.
8122 * printcmd.c (_initialize_printcmd): Ditto.
8123 * infcmd.c (_initialize_infcmd): Ditto.
8124 * corefile.c (_initialize_core): Ditto.
8125
f779ca99
AC
81262002-03-05 Andrew Cagney <ac131313@redhat.com>
8127
8128 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8129
01a3934b
AC
81302002-03-05 Andrew Cagney <ac131313@redhat.com>
8131
8132 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8133
37057839
AC
81342002-03-05 Andrew Cagney <ac131313@redhat.com>
8135
8136 * NEWS: Update headings, 5.2 has branched.
8137
c6ecbae5
DJ
81382002-03-04 Daniel Jacobowitz <drow@mvista.com>
8139
8140 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8141 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8142 (register_addr, REGISTER_RAW_SIZE): Likewise.
8143 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8144 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8145
e9f30c21
ML
81462002-03-03 Michal Ludvig <mludvig@suse.cz>
8147
8148 * MAINTAINERS (x86-64): Add myself.
8149 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8150 changed value_ptr -> struct value *
8151
54394ac3
DB
81522002-03-01 David O'Brien <obrien@FreeBSD.org>
8153
8154 * configure.host (sparc64-*-freebsd): Add.
8155 * configure.tgt: Likewise.
8156 * config/sparc/fbsd.mh: New file.
8157 * config/sparc/fbsd.mt: Likewise.
8158 * config/sparc/nm-fbsd.h: Likewise.
8159 * config/sparc/tm-fbsd.h: Likewise.
8160
bfe95955
DJ
81612002-03-01 Daniel Jacobowitz <drow@mvista.com>
8162
8163 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8164 regformats/reg-s390x.dat.
8165
f33c6cbf
AC
81662002-03-01 Andrew Cagney <ac131313@redhat.com>
8167
8168 * utils.c: Add FIXME explaining true/false problem.
8169
5ecaa7dd
AC
81702002-02-28 Andrew Cagney <ac131313@redhat.com>
8171
8172 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8173
2a251cc2
MC
81742002-02-28 Michael Chastain <mec@shout.net>
8175
8176 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8177
6a8031a3 81782002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8179
8180 * gdbserver/linux-s390-low.c: New file.
8181 * regformats/reg-s390.dat: New file.
8182 * regformats/reg-s390x.dat: New file.
8183 * gdbserver/configure.srv: Add S/390.
8184 * gdbserver/Makefile.in: Add S/390.
8185 * configure.tgt: Enable gdbserver for S/390.
8186
ac469903
EZ
81872002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8188
8189 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8190 first line of the doc string for "info dos", except at the end of
8191 the sentence, since the short help stops at the first period.
8192
985cb1a3
JM
81932002-02-28 Jason Merrill <jason@redhat.com>
8194
8195 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8196
c570663e
FF
81972002-02-27 Fred Fish <fnf@redhat.com>
8198
8199 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8200 comment (dumy -> dummy).
8201
43630227
PS
82022002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8203
8204 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8205
b84911e8
RB
82062002-02-27 Rodney Brown <rbrown64@csc.com.au>
8207
8208 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8209
58caa3dc
DJ
82102002-02-27 Daniel Jacobowitz <drow@mvista.com>
8211
8212 * gdbserver/acconfig.h: New file.
8213 * gdbserver/i387-fp.c: New file.
8214 * gdbserver/i387-fp.h: New file.
8215 * gdbserver/linux-x86-64.c: New file.
8216 * regformats/reg-x86-64.dat: New file.
8217 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8218 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8219 * gdbserver/configure.in: Add support for regsets.
8220 * gdbserver/config.in: Regenerate.
8221 * gdbserver/configure: Regenerate.
8222 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8223 * gdbserver/linux-low.h: New file.
8224 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8225 for regsets.
8226 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8227 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8228 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8229 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8230 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8231 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8232 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8233 "i387-fp.h". Add PTRACE_GETREGS and friends.
8234 * gdbserver/regcache.c (supply_register): New function.
8235 (supply_register_by_name): New function.
8236 (collect_register): New function.
8237 (collect_register_by_name): New function.
8238
93652174
DJ
82392002-02-27 Daniel Jacobowitz <drow@mvista.com>
8240
8241 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8242 (config.status): Add configure.srv dependency.
8243 (server_h): Add config.h dependency.
8244
a02e4a61
DJ
82452002-02-27 Daniel Jacobowitz <drow@mvista.com>
8246
8247 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8248 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8249 * gdbserver/configure.srv: Change i386-*-linux* to use
8250 reg-i386-linux.o.
8251
ce0eebec
AC
82522002-02-26 Andrew Cagney <ac131313@redhat.com>
8253
8254 * x86-64-tdep.c: Re-indent. Update copyright date.
8255
82dbc5f7
AC
82562002-02-26 Andrew Cagney <ac131313@redhat.com>
8257
8258 From Michal Ludvig <mludvig@suse.cz>:
8259 * x86-64-tdep.c (value.h): Delete.
8260 (gdb_assert.h): Include.
8261 (x86_64_register_convert_to_virtual,
8262 x86_64_register_convert_to_raw ): Add check which lets only
8263 floating-point values to be converted.
8264 (value_push): Delete.
8265 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8266 (i386_gdbarch_init): Number of register_bytes fixed.
8267
e4621584
AC
82682002-02-26 Andrew Cagney <ac131313@redhat.com>
8269
8270 * MAINTAINERS: Add x86-64 target.
8271
81a9a963
AC
82722002-02-26 Andrew Cagney <ac131313@redhat.com>
8273
8274 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8275 * osfsolib.c (solib_map_sections): Ditto.
8276 * irix5-nat.c (solib_map_sections): Ditto.
8277 * corelow.c (gdb_check_format): Ditto.
8278 * symfile.c (symfile_bfd_open): Ditto.
8279 * solib.c (solib_map_sections): Ditto.
8280 Fix PR gdb/354.
7e336ba1 8281
0f017ab9
AC
82822002-02-26 Andrew Cagney <ac131313@redhat.com>
8283
8284 * remote.c (_initialize_remote): By default, disable ``e'' and
8285 ``E'' step out-of-range packets.
8286
75738c29
AS
82872002-02-26 Andreas Schwab <schwab@suse.de>
8288
8289 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8290 m68k_linux_frame_saved_pc.
8291 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8292 in_sigtramp.
8293 (SIGCONTEXT_PC_OFFSET): Remove.
8294 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8295 m68k_linux_sigtramp_saved_pc): New functions.
8296 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8297 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8298 (UCONTEXT_PC_OFFSET): Define.
8299 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8300 non-RT and RT signal trampolines.
8301
7e8ed687
RE
83022002-02-26 Richard Earnshaw <rearnsha@arm.com>
8303
8304 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8305 (TARGET_NBPG, STACK_END_ADDR): Delete
8306 (VARIABLES_INSIDE_BLOCK): Delete.
8307
6972bc8b
AC
83082002-02-25 Andrew Cagney <ac131313@redhat.com>
8309
8310 * utils.c (perror_with_name): Make string parameter constant.
8311 (print_sys_errmsg): Ditto.
8312 (query): Ditto.
8313 * defs.h (perror_with_name): Update.
8314 (print_sys_errmsg): Update.
8315 (query): Update.
8316
aa32f823
DJ
83172002-02-25 Daniel Jacobowitz <drow@mvista.com>
8318
8319 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8320 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8321
19caaa45
PS
83222002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8323
8324 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8325 if it already matches the current architecture from the exec file.
8326 Include arch-utils.h for gdbarch_info_init prototype.
8327 * Makefile.in (rs6000-nat.o): Update dependencies.
8328
d951901f
EZ
83292002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8330
8331 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8332 list of exported variables.
8333
7ea81414
DJ
83342002-02-24 Daniel Jacobowitz <drow@mvista.com>
8335
8336 * gdbserver/configure.srv: New file.
8337 * gdbserver/configure.in: Use configure.srv instead
8338 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8339 from it.
8340 * gdbserver/configure: Regenerated.
8341 * gdbserver/terminal.h: New file.
8342 * gdbserver/Makefile.in: Update for configure changes. Remove
8343 more unneeded include paths.
8344
080fe24b
AC
83452002-02-24 Andrew Cagney <ac131313@redhat.com>
8346
8347 From wiz at danbala:
8348 * config/sparc/tm-sp64.h: Fix grammar and typos.
8349 Fix PR gdb/287.
8350
8605d56e
AC
83512002-02-24 Andrew Cagney <ac131313@redhat.com>
8352
8353 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8354 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8355 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8356 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8357 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8358 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8359 * s390-tdep.c: Ditto.
92362027
AC
8360 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8361 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8362 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8363 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8364 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8365 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8366 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8367 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8368 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8369 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8370 Fix PR gdb/378.
7e336ba1 8371
8ed32cc0
AC
83722002-02-23 Andrew Cagney <ac131313@redhat.com>
8373
a3007b6f
AC
8374 * lin-thread.c: Delete file.
8375 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8376 to gdb_proc_service.h.
8377 * configure: Re-generate.
8378
50a9e2f1
AC
8379 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8380 * serial.c (serial_open): Delete check for "ocd".
8381 Fix PR gdb/349.
8382
8b6e7932
AC
8383 * Makefile.in (linux-thread.o): Delete target.
8384 * linux-thread.c: Delete file.
8385
d155c46b
AC
8386 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8387 renamed SH files to be consistent.
8388
8ed32cc0
AC
8389 * symtab.c (sort_search_symbols): Use xfree.
8390
0e18d038
RE
83912002-02-23 Richard Earnshaw <rearnsha@arm.com>
8392
8393 * arm-linux-tdep.c (arm_linux_init_abi): Register
8394 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8395 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8396 definition with undef, since we don't want the sysvr4 definition.
8397 (SKIP_TRAMPOLINE_CODE): Likewise.
8398
27aac7ff
AC
83992002-02-23 Andrew Cagney <ac131313@redhat.com>
8400
8401 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8402
8403 * configure.in: (AC_CHECK_FUNCS) Added test for
8404 canonicalize_file_name Regenerated.
8405 * config.in, configure: Regenerated.
8406 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8407 defined use canonicalize_file_name.
7e336ba1 8408
65a6e0ee
MC
84092002-02-23 Michael Chastain <mec@shout.net>
8410
8411 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8412
47b95330
AC
84132002-02-23 Andrew Cagney <ac131313@redhat.com>
8414
8415 * README: Remove references to cygnus.com.
8416 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8417 dot com'' form. Remove references to cygnus.com and sourceware.
8418
696f451b
AC
84192002-02-23 Andrew Cagney <ac131313@redhat.com>
8420
8421 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8422 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8423 1003.1-2001 no longer allows "head -1".
8424 * gdb/Makefile.in (version.c): Likewise.
8425 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8426 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8427 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8428
bbaca940
AC
84292002-02-23 Andrew Cagney <ac131313@redhat.com>
8430
8431 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8432 * command.h (cmd_cfunc_eq): Declare.
8433 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8434
8435 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8436 ``struct cmd_list_element *''.
8437 * cli/cli-cmds.c (is_complete_command): Update. Use
8438 cmd_cfunc_eq.
8439 * top.c (execute_command): Pass the command to
8440 is_complete_command.
8441 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8442
b8b8b047
AC
84432002-02-23 Andrew Cagney <ac131313@redhat.com>
8444
8445 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8446 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8447 architecture defines.
8448 * s390-tdep.c (s390_gdbarch_init): Likewise.
8449
19d3fc80
RE
84502002-02-23 Richard Earnshaw <rearnsha@arm.com>
8451
8452 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8453 (arm_linux_push_arguments): Likewise.
8454 (arm_linux_init_abi): Register them. Also register linux-specific
8455 call_dummy_words.
8456 (find_minsym_and_objfile): Use strcmp, not STREQ.
8457 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8458 (arm_linux_call_dummy_words): Delete declaration.
8459 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8460 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8461 declarations.
8462 (LOWEST_PC): Delete.
8463
3ab13650
PS
84642002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8465
8466 * maint.c (print_section_info): Do not prepend `0x' to filepos
8467 output, it will be handled by local_hex_string_custom.
8468
19d3fc80 84692002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8470
8471 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8472 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8473 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8474
d85a5daf
JB
84752002-02-22 Jim Blandy <jimb@redhat.com>
8476
8477 Indicate that the bcache functions don't change the strings
8478 they're passed.
8479 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8480 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8481
eeb25b8a
PM
84822002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8483
8484 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8485
6badb179
CF
84862002-02-21 Christopher Faylor <cgf@redhat.com>
8487
8488 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8489 find the complete path to a loaded DLL.
8490
e8717518
FF
84912002-02-21 Fred Fish <fnf@redhat.com>
8492
8493 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8494 that marks the end of the range of a function, enter a line number
8495 entry that has a line number of zero and a PC offset that matches
8496 the end of the function. This starts a range of PC's for which no
8497 line number information is known.
8498 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8499 PC's for which no line number info is found (line number is zero)
8500 then we didn't find any valid line information.
8501 * symtab.h: Document use of zero line number entry.
8502
9abe5450
EZ
85032002-02-21 Elena Zannoni <ezannoni@redhat.com>
8504
8505 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8506 (have_ptrace_getvrregs): Define for run time checks.
8507 (gdb_vrregset_t): New type for Altivec register handling.
8508 (fetch_register, store_register): Fetch/store altivec register
8509 when needed.
8510 (fetch_altivec_register, store_altivec_register): New functions.
8511 (supply_vrregset, fill_vrregset): New functions.
8512 (fetch_altivec_registers, store_altivec_registers): New functions.
8513 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8514 registers as well.
8515
aaa38bb5
AJ
85162002-02-21 Jiri Smid <smid@suse.cz>
8517
8518 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8519
b34db576
RE
85202002-02-21 Richard Earnshaw <rearnsha@arm.com>
8521
8522 * Makefile.in (armnbsd-nat.o): Update dependencies.
8523 * armnbsd-nat.c (supply_gregset): New function. Common code to
8524 supply the integer register set.
8525 (supply_fparegset): New function. Similar for FPA registers.
8526 (fetch_regs, fetch_fp_regs): Use them.
8527 (fetch_core_registers): Likewise.
8528 (fetch_elfcore_registers): New function.
8529 (arm_netbsd_elfcore_fns): New core-file type specification.
8530 (_initialize_arm_netbsd_nat): Register it.
8531
3e56fc4b
RE
85322002-02-21 Richard Earnshaw <rearnsha@arm.com>
8533
8534 * armnbsd-nat.c: Include gdbcore.h.
8535 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8536 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8537 'void' to declaration, to shut up ARI.
8538 (fetch_core_registers): Make static. Rewrite using supply_register.
8539 (arm_netbsd_core_fns): New core-file type specification.
8540 (_initialize_arm_netbsd_nat): New function.
8541
097f6b0b
CF
85422002-02-21 Christopher Faylor <cgf@redhat.com>
8543
8544 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8545 value.
8546
c914e0cc
CF
85472002-02-20 Christopher Faylor <cgf@redhat.com>
8548
8549 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8550 fails.
8551
385fa495
DJ
85522002-02-20 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * jv-exp.y (parse_number): Change type of implicit longs
8555 to builtin_type_uint64.
8556
e5f1222d
DJ
85572002-02-20 Daniel Jacobowitz <drow@mvista.com>
8558
8559 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8560 to be an integer instead of a `union wait'.
8561
75c9abc6
DJ
85622002-02-20 Daniel Jacobowitz <drow@mvista.com>
8563
8564 * mips-linux-nat.c: Call the operating system GNU/Linux.
8565 * mips-linux-tdep.c: Likewise.
8566 * mips-tdep.c: Likewise.
8567
551792a5
DJ
85682002-02-20 Daniel Jacobowitz <drow@mvista.com>
8569
8570 Fix PR gdb/265.
8571 * jv-exp.y (parse_number): Handle 64-bit integers.
8572
ee6e2b82
DJ
85732002-02-20 Daniel Jacobowitz <drow@mvista.com>
8574
8575 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8576 AC_STDC_HEADERS to AC_HEADER_STDC.
8577 * gdbserver/configure: Regenerated.
8578
a48442a0
RE
85792002-02-20 Richard Earnshaw <rearnsha@arm.com>
8580
8581 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8582 is defined.
8583 * sparc-tdep.c (get_longjmp_target): Likewise.
8584
fe419ffc
RE
85852002-02-20 Richard Earnshaw <rearnsha@arm.com>
8586
8587 * News: Add news about ARM and Multi-arch. Mention the new target
8588 arm*-*-netbsd*.
8589
5832ed7e
JB
85902002-02-19 Jim Blandy <jimb@redhat.com>
8591
8592 * stabsread.c (error_type_complaint): Improve error message.
8593
84563040
DJ
85942002-02-19 Daniel Jacobowitz <drow@mvista.com>
8595
8596 * gdbserver/README: Update documentation.
8597 * gdbserver/configure.in: Update configury to match documentation.
8598 * gdbserver/Makefile.in: Likewise.
8599 * gdbserver/configure: Regenerated.
8600 * gdbserver/aclocal.m4: New file, generated by aclocal.
8601 * gdbserver/config.in: New file, generated by autoheader.
8602
375fd65b
RE
86032002-02-19 Richard Earnshaw <rearnsha@arm.com>
8604
8605 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8606 armnbsd-nat.c.
8607
08216dd7
RE
86082002-02-19 Richard Earnshaw <rearnsha@arm.com>
8609
8610 * arm-tdep.h (enum arm_float_model): New enum.
8611 (struct gdbarch_tdep): Add fp_model.
8612 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8613 up floating-point conversions until we know the floating-point model
8614 in use by the inferior. Don't complain about being unable to
8615 determine the ABI of the inferior when we don't have one.
8616 (arm_extract_return_value): Support different floating-point models.
8617 (arm_store_return_value): Likewise.
aaa38bb5 8618 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8619 ARM_FLOAT_SOFT.
8620 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8621
65d6d66a
PS
86222002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8623
8624 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8625 of ``current_gdbarch''.
8626
47221191
RE
86272002-02-19 Richard Earnshaw <rearnsha@arm.com>
8628
8629 * armnbsd-nat.c : ANSIfy all function declarations.
8630 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8631 (fetch_inferior_registers): Re-implement in terms of above.
8632 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8633 (store_inferior_registers): Re-implement in terms of above.
8634
fdf39c9a
RE
86352002-02-19 Richard Earnshaw <rearnsha@arm.com>
8636
aaa38bb5 8637 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8638 kernel.
8639 * arm-linux-tdep.c: Likewise.
8640 * config/arm/tm-linux.h: Likewise.
8641
93247f88
RE
86422002-02-19 Richard Earnshaw <rearnsha@arm.com>
8643
8644 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8645 * config/arm/nbsd.mt (TM_FILE): Delete.
8646 * config/arm/tm-nbsd.h: Delete.
8647
d7b486e7
RE
86482002-02-19 Richard Earnshaw <rearnsha@arm.com>
8649
8650 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8651 Initialize CALL_DUMMY_LENGTH.
8652
41d39a95
RE
86532002-02-19 Richard Earnshaw <rearnsha@arm.com>
8654
8655 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8656 function.
8657 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8658 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8659 defines one thing and that is incorrect for this port.
8660 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8661
e1195560
PM
86622002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8663
8664 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8665
c1748f97
PM
86662002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8667
8668 * win32-nat.c (display_selector): New function. Displays information
8669 about the information returned by GetThreadSelectorEntry API function.
8670 (display_selectors): New function. Displays the infomation of
8671 the selector given as argument, or of CS, DS ans FS selectors
8672 if no argument is given.
8673 ( _initialize_inftarg): Add "w32" as info prefix command.
8674 Add "info w32 selector" as command calling display_selectors.
8675
e41e6bbf
PM
86762002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8677
8678 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8679 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8680 if not defined.
8681
0d3a9f48
RE
86822002-02-18 Richard Earnshaw <rearnsha@arm.com>
8683
8684 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8685
3fb4b924
RE
86862002-02-18 Richard Earnshaw <rearnsha@arm.com>
8687
8688 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8689 (arm_fix_call_dummy): Call it.
8690 (arm_call_dummy_breakpoint_offset): Delete.
8691 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8692 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8693
7f55af32
AC
86942002-02-18 Andrew Cagney <ac131313@redhat.com>
8695
8696 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8697 Default to func_frame_chain_valid.
8698 * gdbarch.h, gdbarch.c: Re-generate.
8699 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8700
05f13b9c
EZ
87012002-02-18 Elena Zannoni <ezannoni@redhat.com>
8702
8703 * ppc-linux-nat.c: Update copyright.
8704 (fetch_register, store_register): Add tid parameter, don't compute
8705 tid here.
8706 (fetch_ppc_registers, store_ppc_registers): Add tid
8707 parameter. Pass it along to callees.
8708 (fetch_inferior_registers, store_inferior_registers): Compute tid
8709 here, and pass it to calleed functions.
8710 (fill_gregset, supply_fpregset): Clean up formatting.
8711
d7afb4c9
RE
87122002-02-18 Richard Earnshaw <rearnsha@arm.com>
8713
8714 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8715 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8716
9df628e0
RE
87172002-02-18 Richard Earnshaw <rearnsha@arm.com>
8718
8719 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8720 * gdbarch.c gdbarch.h: Regenerate.
8721 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8722 function.
8723 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8724 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8725 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8726
8727 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8728 * arm-tdep.c (arm_get_longjmp_target): New function.
8729 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8730 this to a positive value register arm_get_longjmp_target as the
8731 longjmp handler.
8732 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8733 (arm_linux_init_abi): Set up longjmp description in tdep.
8734 * armnbsd-nat.c (get_longjmp_target): Delete.
8735 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8736 description in tdep.
8737 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8738 (get_longjmp_target): Delete declaration.
8739 (GET_LONGJMP_TARGET): Delete.
8740 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8741 (GET_LONGJMP_TARGET): Delete.
8742
57bc8964
KB
87432002-02-17 Kevin Buettner <kevinb@redhat.com>
8744
8745 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8746 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8747 of ``current_gdbarch''.
8748
83d31a92
TT
87492002-02-17 Tom Tromey <tromey@redhat.com>
8750
8751 * cli/cli-cmds.c (compare_strings): New function.
8752 (complete_command): Only print each unique item once.
8753 * completer.h (complete_line): Declare.
8754 * completer.c (complete_line): New function.
8755 (line_completion_function): Use it.
8756
17ef5d92
AC
87572002-02-16 Andrew Cagney <ac131313@redhat.com>
8758
8759 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8760 * gdbarch.h, gdbarch.c: Re-generate.
8761
491b8946
DJ
87622002-02-16 Daniel Jacobowitz <drow@mvista.com>
8763
8764 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8765
87662002-02-16 Daniel Jacobowitz <drow@mvista.com>
8767
8768 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8769 * valops.c (value_arg_coerce): Don't take the address of a reference
8770 to convert an argument to a reference.
8771
dfe7f3ac
CF
87722002-02-15 Christopher Faylor <cgf@redhat.com>
8773
8774 * win32-nat.c (get_image_name): New function.
8775 (handle_load_dll): Use get_image_name function.
8776 (get_child_debug_event): Avoid registering debug events until possibly
8777 execed process is started.
8778 (child_create_inferior): Allow invocation via shell so that command
8779 line redirection, etc. works ok.
8780 (_initialize_inftarg): Add new command: "set shell" to control whether
8781 a shell is used to start a process.
8782
1d33e73a
DJ
87832002-02-15 Daniel Jacobowitz <drow@mvista.com>
8784
8785 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8786 instead of find_register_by_number.
8787 (cannot_store_register): Likewise.
8788
48cd0caa
PM
87892002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8790
aaa38bb5 8791 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8792 fprintf_unfiltered (gdb_stderr, ...).
8793
8656e7d8
DJ
87942002-02-15 Daniel Jacobowitz <drow@mvista.com>
8795
8796 * gdbserver/gdbserver.1: Document --attach.
8797
66e810cd
RE
87982002-02-15 Richard Earnshaw <rearnsha@arm.com>
8799
8800 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8801 descriptions.
8802 * arm-tdep.c (arm_default_arm_le_breakpoint)
8803 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8804 (arm_default_thumb_be_breakpoint): New. Initialize them from
8805 traditional breakpoint defines.
8806 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8807 (arm_gdbarch_init): Initialize new breakpoint variables.
8808 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8809 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8810 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8811 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8812 code out to ...
8813 (arm_netbsd_init_abi_common): ... here; new function.
8814 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8815 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8816 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8817 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8818
97e03143
RE
88192002-02-15 Richard Earnshaw <rearnsha@arm.com>
8820
8821 * arm-tdep.h (enum arm_abi): New enum.
8822 (struct gdbarch_tdep): New structure.
8823 (LOWEST_PC): Provide a default.
8824 (arm_gdbarch_register_os_abi): Declare new function.
8825 * arm-tdep.c (arm_abi_names): New array.
8826 (process_note_abi_tag_sections): New function.
8827 (get_elfosabi): New function.
8828 (arm_gdbarch_register_os_abi): New function.
8829 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8830 support for that ABI has been built in, then call the appropriate
8831 configuration routine. Use gdbarch_num_regs() to get the number
8832 of registers.
8833 (arm_dump_tdep): New function.
8834 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8835 place-holder functions.
8836 (_initialize_arm_tdep): Register them.
8837 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8838
8839 * armnbsd-tdep.c: New file.
8840 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8841 * config/arm/nbsd.mt (TDEPFILES): Add it.
8842 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8843
8844 * armnbsd-nat.c: Include regcache.h.
8845 * Makefile.in (armnbsd-nat.o): Update dependency list.
8846
8847 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8848
ad68be46
DJ
88492002-02-14 Daniel Jacobowitz <drow@mvista.com>
8850
8851 * gdbserver/Makefile.in: Fix typos in target rules.
8852
003d6d1d
DJ
88532002-02-14 Daniel Jacobowitz <drow@mvista.com>
8854
aaa38bb5 8855 Fix part of PR gdb/267.
003d6d1d
DJ
8856 * linespec.c (find_methods): Handle constructors specially for now.
8857
6b230f1b
CV
88582002-02-14 Corinna Vinschen <vinschen@redhat.com>
8859
8860 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8861 handling.
8862 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8863 standard_coerce_float_to_double().
8864
1ea98d12
CF
88652002-02-14 Christopher Faylor <cgf@redhat.com>
8866
8867 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8868 GDBINIT_FILENAME.
8869
dd47e6fd
EZ
88702002-02-14 Elena Zannoni <ezannoni@redhat.com>
8871
8872 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8873 find_variant_by_name, because it confuses the multiarch
8874 framework. Return NULL if there isn't an architecture with the
8875 user supplied name, instead of forcing a different one without
8876 recording the change with the multiarch machinery.
8877 (find_variant_by_name): Delete.
8878
d7e39b9e
PS
88792002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8880
8881 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8882 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8883
76e42a4f
MH
88842002-02-13 Martin M. Hunt <hunt@redhat.com>
8885
aaa38bb5 8886 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8887 print_frame_info_listing_hook, set current_source_symtab.
8888
0a30fbc4
DJ
88892002-02-14 Daniel Jacobowitz <drow@mvista.com>
8890
8891 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8892 and remove unused $(INCLUDE_DIR).
8893 Add regcache.c to OBS.
8894 Add generated register protocol files to clean target.
8895 Update dependencies for new objects, obsolete old target code.
8896
8897 * gdbserver/linux-low.c: Remove all platform-specific code to
8898 new files. Remove various dead code. Update to use regcache
8899 functionality.
8900 * gdbserver/remote-utils.c (fromhex): Add return statement
8901 to quiet warning.
8902 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8903 constant.
8904 (input_interrupt): Add integer parameter to match prototype
8905 of a signal handler.
8906 (outreg): Use register_data ().
8907 (prepare_resume_reply): Use gdbserver_expedite_regs.
8908 * gdbserver/server.c (main): Dynamically allocate own_buf because
8909 PBUFSIZ is no longer constant. Use registers_to_string () and
8910 registers_from_string ().
8911 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8912 for error (), fatal (), and warning (). Update definition of
8913 PBUFSIZ to use regcache functionality. Add include guard.
8914 * gdbserver/utils.c (fatal): Add missing ``const''.
8915 (warning): New function.
8916
8917 * regformats/regdat.sh: Include "regcache.h" in generated files.
8918 Provide init_registers () function.
8919 * regformats/regdef.h: Add prototype for set_register_cache ().
8920 Add include guard.
8921
8922 * gdbserver/linux-arm-low.c: New file.
8923 * gdbserver/linux-i386-low.c: New file.
8924 * gdbserver/linux-ia64-low.c: New file.
8925 * gdbserver/linux-m68k-low.c: New file.
8926 * gdbserver/linux-mips-low.c: New file.
8927 * gdbserver/linux-ppc-low.c: New file.
8928 * gdbserver/linux-sh-low.c: New file.
8929
8930 * gdbserver/regcache.c: New file.
8931 * gdbserver/regcache.h: New file.
8932
8933 * gdbserver/low-linux.c: Removed obsolete file.
8934
4cc841d0
DJ
89352002-02-14 Daniel Jacobowitz <drow@mvista.com>
8936
8937 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8938 * config/i386/linux.mt: Likewise.
8939 * config/ia64/linux.mt: Likewise.
8940 * config/m68k/linux.mh: Likewise.
8941 * config/powerpc/linux.mh: Likewise.
8942 * config/mips/linux.mt: Likewise.
8943
8944 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8945
8946 * config/i386/i386lynx.mh: Mark gdbserver variables
8947 as (currently) obsolete for this target.
8948 * config/i386/nbsd.mt: Likewise.
8949 * config/i386/nbsdelf.mt: Likewise.
8950 * config/m32r/m32r.mt: Likewise.
8951 * config/m68k/m68klynx.mh: Likewise.
8952 * config/m68k/nbsd.mt: Likewise.
8953 * config/m68k/sun3os4.mh: Likewise.
8954 * config/mips/vr5000.mt: Likewise.
8955 * config/ns32k/nbsd.mt: Likewise.
8956 * config/pa/hppabsd.mh: Likewise.
8957 * config/pa/hppaosf.mh: Likewise.
8958 * config/powerpc/nbsd.mt: Likewise.
8959 * config/rs6000/rs6000lynx.mh: Likewise.
8960 * config/s390/s390.mt: Likewise.
8961 * config/s390/s390x.mt: Likewise.
8962 * config/sparc/sparclynx.mh: Likewise.
8963 * config/sparc/sun4os4.mh: Likewise.
8964 * config/i386/x86-64linux.mt: Likewise.
8965 * config/sparc/linux.mh: Likewise.
8966
a85f51e7
DJ
89672002-02-14 Daniel Jacobowitz <drow@mvista.com>
8968
8969 * configure.tgt: Configure gdbserver only for known working
8970 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8971 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8972 SUBDIRS if it is configured. Update comment for ${nativefile}.
8973 * configure: Regenerated.
8974
65554fef
MS
89752002-02-13 Michael Snyder <msnyder@redhat.com>
8976
670a52db
MS
8977 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8978
6dbdc4a3
MS
8979 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8980 (default_gcore_mach): Just return 0, work around a problem in bfd.
8981 (default_gcore_target): OK to return NULL if exec_bfd is null.
8982 (make_mem_sec): Use a cast, avoid a warning.
8983
8984 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8985 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8986 sizeof (host pointer) != sizeof (target pointer)).
8987 (procfs_make_note_section): Avoid overflow in psargs string.
8988
aaa38bb5 8989 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8990 implementation return an error.
8991
89922002-02-13 Rodney Brown <rbrown64@csc.com.au>
8993
8994 * procfs.c (procfs_make_note_section): Provide a default definition
8995 (for alpha-dec-osf4.0f). Fix typos.
8996
1e4d76e7
EZ
89972002-02-13 Elena Zannoni <ezannoni@redhat.com>
8998
8999 * linux-proc.c: Add include of regcache.h.
9000 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9001
b6d1a1d5
AC
90022002-02-13 Andrew Cagney <ac131313@redhat.com>
9003
9004 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9005 * memattr.c (create_mem_region): Disallow useless empty region.
9006 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9007 non-overlapping.
b6d1a1d5 9008
6c6ea35e
MC
90092002-02-13 Michael Chastain <mec@shout.net>
9010
9011 * defs.h: Kill CONST_PTR.
9012 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9013 * c-lang.c (c_builtin_types): Likewise.
9014 * ch-lang.c (ch_builtin_types): Likewise.
9015 * f-lang.c (f_builtin_types): Likewise.
9016 * language.c (unknown_builtin_types): Likewise.
9017 * m2-lang.c (m2_builtin_types): Likewise.
9018 * p-lang.c (pascal_builtin_types): Likewise.
9019 * scm-lang.c (c_builtin_types): Likewise.
9020
3e0b0f48
KS
90212002-02-13 Keith Seitz <keiths@redhat.com>
9022
9023 * arm-tdep.h (arm_get_next_pc): Add declaration.
9024
67255d04
RE
90252002-02-13 Richard Earnshaw <rearnsha@arm.com>
9026
9027 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9028 with other related struct-returning functions.
9029 (arm_extract_struct_value_address): New function.
9030 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9031 initialize float_format, double_format and long_double_format as
9032 appropriate to the endianness of the target.
9033 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9034 (arm_use_struct_convention): Delete declaration.
9035 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9036
079777f6
KS
90372002-02-13 Keith Seitz <keiths@redhat.com>
9038
9039 * defs.h (core_addr_to_string_nz): New function.
9040
34588f23
MK
90412002-02-13 Mark Kettenis <kettenis@gnu.org>
9042
9043 Apply missing bits of 2002-01-15 patch.
9044 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9045 (fill_fpregset): Use i387_fill_fsave.
9046
49b563f9
KS
90472002-02-12 Keith Seitz <keiths@redhat.com>
9048
49b563f9
KS
9049 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9050 (core_addr_to_string_nz): New function.
9051
aeb98c60
RE
90522002-02-11 Richard Earnshaw <rearnsha@arm.com>
9053
9054 * arm-linux-nat.c: Really include arm-tdep.h.
9055 * config/arm/tm-linux.h (struct type, struct value): Declare.
9056
65554fef
MS
90572002-02-11 Michael Snyder <msnyder@redhat.com>
9058
9059 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9060 (gcore section): Ifdef for Solaris and Unixware only.
9061 (procfs_do_thread_registers): Unixware needs one lwpstatus
9062 per thread (not one prstatus or pstatus).
9063 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9064 not over all gdb threads. For unixware, call elfcore_write_pstatus
9065 once before iterating over threads.
9066
34e8f22d
RE
90672002-02-11 Richard Earnshaw <rearnsha@arm.com>
9068
9069 * arm-tdep.h: New file.
9070 * arm-tdep.c: Include arm-tdep.h.
9071 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9072 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9073 (arm_print_float_info, arm_register_type, convert_to_extended)
9074 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9075 (arm_extract_return_value, arm_register_name): Make static.
9076 (arm_software_single_step): Similarly. Fix types in declaration.
9077 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9078 (arm_store_return_value, arm_store_struct_return): New functions.
9079 (arm_gdbarch_init): Register the above functions. Also register
9080 call_dummy_start_offset, sizeof_call_dummy_words,
9081 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9082 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9083 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9084 prologue_cache.saved_regs here, rather than ...
9085 (_initialize_arm_tdep): ... here.
9086 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9087 declarations.
9088 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9089 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9090 (arm_print_float_info, arm_register_type, convert_to_extended)
9091 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9092 (arm_extract_return_value, arm_register_name): Delete declarations.
9093 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9094 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9095 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9096 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9097 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9098 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9099 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9100 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9101 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9102 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9103 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9104 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9105 interface.
9106 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9107 * remote-rdi.c remote-rdp.c: Likewise.
9108 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9109 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9110 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9111 definition.
9112
9113 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9114 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9115 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9116 from non-ARM_ prefixed definitions.
9117 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9118 all uses of above.
9119 * remote-rdi.c remote-rdp.c: Likewise.
9120 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9121
148754e5
RE
91222002-02-11 Richard Earnshaw <rearnsha@arm.com>
9123
9124 * arm-tdep.c (arm_frameless_function_invocation)
9125 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9126 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9127 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9128 (arm_pop_frame, arm_get_next_pc): Make static.
9129 (arm_gdbarch_init): Register above in gdbarch structure.
9130 (arm_read_fp): Renamed from arm_target_read_fp.
9131 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9132 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9133 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9134 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9135 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9136 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9137 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9138 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9139 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9140 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9141 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9142
434d2d4f
DJ
91432002-02-10 Daniel Jacobowitz <drow@mvista.com>
9144
9145 * symtab.c (compare_search_syms): New function.
9146 (sort_search_symbols): New function.
9147 (search_symbols): Sort symbols after searching rather than
9148 before.
9149
55241689
AC
91502002-02-10 Andrew Cagney <ac131313@redhat.com>
9151
9152 * NEWS: Linux -> GNU/Linux.
9153
028c194b
AC
91542002-02-10 Andrew Cagney <ac131313@redhat.com>
9155
9156 * gdbarch.sh: For for level one methods, disallow a definition
9157 when partially multi-arched. Add comments explaining rationale.
9158 * gdbarch.h: Re-generate.
9159
6acf50cd
AC
91602002-02-10 Andrew Cagney <ac131313@redhat.com>
9161
9162 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9163 multi-arch partial.
aaa38bb5 9164
50248794
AC
91652002-02-10 Andrew Cagney <ac131313@redhat.com>
9166
9167 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9168 field. Use diff -u.
9169 * gdbarch.c: Re-generate.
9170
c30e0066
AC
91712002-02-10 Andrew Cagney <ac131313@redhat.com>
9172
9b56c5f3 9173 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9174 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9175 partial.
9176
6e6d6484
AC
91772002-02-10 Andrew Cagney <ac131313@redhat.com>
9178
9179 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9180 multi-arch partial.
9181 (PUSH_ARGUMENTS): Switch to using predefault.
9182 * gdbarch.c: Regenerate.
9183
c203844d
AC
91842002-02-10 Andrew Cagney <ac131313@redhat.com>
9185
9186 * valops.c (PUSH_ARGUMENTS): Delete definition.
9187 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9188 partial. Default to default_push_arguments.
9189 * gdbarch.h, gdbarch.c: Regenerate.
9190
b5a2688f
AC
91912002-02-09 Andrew Cagney <ac131313@redhat.com>
9192
9193 * defs.h (throw_exception): Rename return_to_top_level. Update
9194 comments.
9195 * utils.c (error_stream, internal_verror, quit): Ditto.
9196 * top.c (throw_exception, catcher): Ditto.
9197 * sparclet-rom.c (sparclet_load): Ditto.
9198 * remote.c (interrupt_query, minitelnet): Ditto.
9199 * remote-sds.c (interrupt_query): Ditto.
9200 * remote-mips.c (mips_error, mips_kill): Ditto.
9201 * ocd.c (interrupt_query): Ditto.
9202 * monitor.c (monitor_interrupt_query): Ditto.
9203 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9204 * target.h: Update comment.
aaa38bb5 9205
b5a2688f 9206 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9207
2fa5c1e0
AC
92082002-02-09 Andrew Cagney <ac131313@redhat.com>
9209
9210 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9211 default_double_format.
9212 * gdbarch.h, gdbarch.c: Re-generate.
9213 * findvar.c (floatformat_unknown): Delete variable definition.
9214 * doublest.h (floatformat_unknown): Delete variable declaration.
9215
da966255
JB
92162002-02-09 Jim Blandy <jimb@redhat.com>
9217
9218 * stabsread.c (read_type): Add code to parse Sun's syntax for
9219 prototyped function types.
9220
123a4891
AC
92212002-02-09 Andrew Cagney <ac131313@redhat.com>
9222
9223 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9224 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9225
fb39c8f3
PS
92262002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9227
9228 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9229 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9230 now _initialize_xcoffsolib gets called again and overrides the
9231 commands from solib.c in a native configuration.
9232
0b87a11d
MK
92332002-02-09 Mark Kettenis <kettenis@gnu.org>
9234
9235 * doublest.c (store_typed_floating): Don't try to return a value.
9236 Fixes PR gdb/290.
9237
bdc2fc72
JB
92382002-02-08 Jim Blandy <jimb@redhat.com>
9239
9240 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9241 is prototyped and has no arguments, print its argument list as
9242 `(void)'.
9243
da69bbcf
CD
92442002-02-08 Chris Demetriou <cgd@broadcom.com>
9245
9246 * MAINTAINERS (write-after-approval): Add myself.
9247 (paper-trail): I've escaped!
aaa38bb5 9248
b69571f5
CF
92492002-02-08 Christopher Faylor <cgf@redhat.com>
9250
9251 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9252 changes.
9253 (_initialize_check_for_gdb_ini): Ditto.
9254
f6871398
MH
92552002-02-08 Martin M. Hunt <hunt@redhat.com>
9256
9257 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9258 xaprintf -> xasprintf.
9259
4e52d31c
PM
92602002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9261
9262 * win32-nat.c: Remove use of printf and sprintf functions.
9263
39bbf761
RE
92642002-02-08 Richard Earnshaw <rearnsha@arm.com>
9265
9266 * arm-tdep.c (arm_frame_chain_valid): Make static.
9267 (arm_push_arguments): Likewise.
9268 (arm_gdbarch_init): New function.
9269 (_initialize_arm_tdep): Call it.
9270 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9271 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9272 (FRAME_CHAIN_VALID): Delete.
9273 (arm_frame_chain_valid): Delete declaration.
9274 (PUSH_ARGUMENTS): Delete.
9275 (arm_push_arguments): Delete declaration.
9276 (CALL_DUMMY_P): Delete.
9277
9c9532c9
CV
92782002-02-08 Andrew Cagney <ac131313@redhat.com>
9279 Corinna Vinschen <vinschen@redhat.com>
9280
9281 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9282 on builtin float types.
9283
4e8f7a8b
DJ
92842002-02-08 Daniel Jacobowitz <drow@mvista.com>
9285
9286 * utils.c: Include <curses.h> before "bfd.h".
9287 * tui/tui-hooks.c: Likewise.
9288 * tui/tui.c: Likewise.
9289 * tui/tuiCommand.c: Likewise.
9290 * tui/tuiData.c: Likewise.
9291 * tui/tuiDataWin.c: Likewise.
9292 * tui/tuiDisassem.c: Likewise.
9293 * tui/tuiGeneralWin.c: Likewise.
9294 * tui/tuiIO.c: Likewise.
9295 * tui/tuiLayout.c: Likewise.
9296 * tui/tuiRegs.c: Likewise.
9297 * tui/tuiSource.c: Likewise.
9298 * tui/tuiSourceWin.c: Likewise.
9299 * tui/tuiStack.c: Likewise.
9300 * tui/tuiWin.c: Likewise.
9301
cd4bffcf
EZ
93022002-02-07 Elena Zannoni <ezannoni@redhat.com>
9303
9304 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9305 to include space for pseudoregs as well. Update loops accordingly.
9306 (sh_fp_frame_init_saved_regs): Ditto.
9307 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9308
26806ce2
AC
93092002-02-07 Andrew Cagney <ac131313@redhat.com>
9310
9311 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9312 Add Richard Earnshaw to Arm maintainers.
9313
97fdab62
AC
93142002-02-07 Andrew Cagney <ac131313@redhat.com>
9315
a6b98203
AC
9316 * defs.h (warning_begin): Delete declaration.
9317
97fdab62
AC
9318 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9319 Delete macro.
9320
78b29b40
MS
93212002-02-07 Michael Snyder <msnyder@redhat.com>
9322
aaa38bb5 9323 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9324 Logic bug, remove misplaced else.
9325
d8849953
KD
93262002-02-07 Klee Dienes <klee@apple.com>
9327
9328 * fork-inferior.c (fork_inferior): Add '!' to the list of
9329 characters that need to be quoted when building a string for the
9330 shell. Quote '!' specifically with a backslash, since CSH chokes
9331 when trying to evaluate "str!str".
aaa38bb5 9332
095778a0
NC
93332002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9334
9335 * rdi-share/host.h: Only provide a typedef for bool if it is not
9336 defined.
9337
1900040c
MS
93382002-02-04 Michael Snyder <msnyder@redhat.com>
9339
9340 * breakpoint.h (enum bptype): Add new overlay event bp type.
9341 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9342
1900040c
MS
9343 * breakpoint.c (create_internal_breakpoint): New function.
9344 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9345 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9346 (create_thread_event_breakpoint): Ditto.
9347 (create_solib_event_breakpoint): Ditto.
9348 (create_overlay_event_breakpoint): New function.
9349 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9350 (update_breakpoints_after_exec): Delete and re-initialize
9351 overlay event breakpoints after an exec. Add FIXME comment
9352 about longjmp breakpoint.
9353 (print_it_typical): Ignore overlay event breakpoints.
9354 (print_one_breakpoint): Ditto.
9355 (mention): Ditto.
9356 (bpstat_what): Do not stop for overlay event breakpoints.
9357 (delete_breakpoint): Don't delete overlay event breakpoints.
9358 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9359 (breakpoint_re_set): Re-create overlay event breakpoint.
9360
9361 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9362 (overlay_manual_command): Disable overlay breakpoints.
9363 (overlay_off_command): Disable overlay breakpoints.
9364
082fc60d
RE
93652002-02-06 Richard Earnshaw <rearnsha@arm.com>
9366
9367 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9368 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9369 to here from config/tm-arm.h.
9370 (coff_sym_is_thumb): Make static.
9371 (arm_elf_make_msymbol_special): New function.
9372 (arm_coff_make_msymbol_special): New function.
9373 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9374 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9375 (coff_sym_is_thumb): Delete declaration.
9376 (arm_elf_make_msymbol_special): Declare.
9377 (arm_coff_make_msymbol_special): Declare.
9378 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9379 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9380
039c5766
RE
93812002-02-06 Richard Earnshaw <rearnsha@arm.com>
9382
9383 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9384
93852002-02-06 Richard Earnshaw <rearnsha@arm.com>
9386
9387 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9388 * gdbarch.c gdbarch.h: Regenerate.
9389 * arch-utils.c (default_print_float_info): New function.
9390 * arch-utils.h (default_print_float_info): Prototype it.
9391 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9392 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9393 (PRINT_FLOAT_INFO): Document it.
9394
9395 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9396 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9397 (PRINT_FLOAT_INFO): Define.
9398
58fa08f0
PM
93992002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9400
aaa38bb5 9401 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9402 Add typecast to sprintf argument to suppress a warning.
9403
7393af7c
PM
94042002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9405
58fa08f0 9406 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9407 to allow easier handling of pass state.
9408 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9409 that gives exception name and address.
9410 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9411 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9412 exceptions added.
aaa38bb5
AJ
9413 (child_continue): Correctly report continue_status.
9414 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9415 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9416 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9417 the exception should be passed to debuggee or not.
9418
6af4589c
MS
94192002-02-05 Michael Snyder <msnyder@redhat.com>
9420
9421 * regcache.c (fetch_register): Call target_fetch_register
9422 only if we don't call FETCH_PSEUDO_REGISTER.
9423 (store_register): Call target_store_register only if we
9424 don't call STORE_PSEUDO_REGISTER.
9425
a2cf933a
EZ
94262002-02-05 Elena Zannoni <ezannoni@redhat.com>
9427
9428 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9429 ELF_MAKE_MSYMBOL_SPECIAL.
9430 * gdbarch.c, gdbarch.h: Regenerate.
9431 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9432 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9433 * elfread.c (elf_symtab_read): Compile use of
9434 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9435 multiarched.
9436 * coffread.c (coff_symtab_read): Ditto, for
9437 COFF_MAKE_MSYMBOL_SPECIAL.
9438
6bb7be43
JB
94392002-02-05 Jim Blandy <jimb@redhat.com>
9440
9441 * solib-svr4.c (svr4_truncate_ptr): New function.
9442 (svr4_relocate_section_addresses): Do the address arithmetic with
9443 the appropriate truncation for target addresses, even when
9444 CORE_ADDR is larger than a target address.
9445
e18651ec
DJ
94462002-02-05 Daniel Jacobowitz <drow@mvista.com>
9447
9448 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9449 to (int *).
9450
6b2725be
DJ
94512002-02-05 Daniel Jacobowitz <drow@mvista.com>
9452
9453 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9454 code.
9455
fca9e603
DJ
94562002-02-05 Daniel Jacobowitz <drow@mvista.com>
9457
9458 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9459
6c537a52
DJ
94602002-02-05 Daniel Jacobowitz <drow@mvista.com>
9461
9462 * gdbserver/linux-low.c: Remove unused include files.
9463
d844cde6
DJ
94642002-02-05 Daniel Jacobowitz <drow@mvista.com>
9465
9466 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9467 (read_inferior_memory): Use it.
9468 (write_inferior_memory): Likewise.
9469
d07c63e7
DJ
94702002-02-05 Daniel Jacobowitz <drow@mvista.com>
9471
9472 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9473 grubbing through sys_errlist.
9474
da6d8c04
DJ
94752002-02-05 Daniel Jacobowitz <drow@mvista.com>
9476
9477 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9478
5b421780
PM
94792002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9480 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9481
9f60d481
AC
94822002-02-04 Andrew Cagney <ac131313@redhat.com>
9483
9484 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9485 (do_sfunc, set_cmd_sfunc): New functions.
9486
9487 * command.h (struct cmd_list_element): Add field func.
9488 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9489 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9490 * cli/cli-decode.h: Ditto.
9491
9492 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9493 (help_all, help_cmd_list): Ditto.
9494 (find_cmd, complete_on_cmdlist): Ditto.
9495 * top.c (execute_command): Ditto.
9496
9497 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9498 function.sfunc.
9499
9500 * infcmd.c (notice_args_read): Fix function signature.
9501
9502 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9503 * cli/cli-decode.c (add_set_cmd): Ditto.
9504 * utils.c (initialize_utils): Ditto.
9505 * maint.c (_initialize_maint_cmds): Ditto.
9506 * infrun.c (_initialize_infrun): Ditto.
9507 * demangle.c (_initialize_demangler): Ditto.
9508 * remote.c (add_packet_config_cmd): Ditto.
9509 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9510 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9511 * proc-api.c (_initialize_proc_api): Ditto.
9512 * kod.c (_initialize_kod): Ditto.
9513 * valprint.c (_initialize_valprint): Ditto.
9514 * top.c (init_main): Ditto.
9515 * infcmd.c (_initialize_infcmd): Ditto.
9516 * corefile.c (_initialize_core): Ditto.
9517 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9518 * arch-utils.c (initialize_current_architecture): Ditto.
9519 (_initialize_gdbarch_utils): Ditto.
9520 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9521
9522 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9523 * wince.c (_initialize_inftarg): Ditto.
9524 * symfile.c (_initialize_symfile): Ditto.
9525 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9526 * language.c (_initialize_language): Ditto.
9527 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9528
f9ba0717
MS
95292002-02-04 Michael Snyder <msnyder@redhat.com>
9530
9531 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9532
0c74b2a7
DJ
95332002-02-04 Daniel Jacobowitz <drow@mvista.com>
9534
9535 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9536 Add rules for building the register data files.
9537
c638789f
DJ
95382002-02-04 Daniel Jacobowitz <drow@mvista.com>
9539
9540 * regformats/regdat.sh: Add braces to the definition of
9541 expedite_regs_${arch}.
9542
db253027
DJ
95432002-02-04 Daniel Jacobowitz <drow@mvista.com>
9544
9545 * regformats/regdef.h (struct reg): Add comment describing the
9546 requirements for offset and size fields.
9547
206be19c
AS
95482002-02-04 Andreas Schwab <schwab@suse.de>
9549
9550 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9551 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9552
181c1381
RE
95532002-02-04 Richard Earnshaw <rearnsha@arm.com>
9554
9555 * gdbarch.sh (copyright): Update years in generated header.
9556 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9557 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9558 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9559 * dbxread.c: Likewise.
9560 * dwarfread.c: Likewise.
9561 * elfread.c: Likewise.
9562 * somread.c: Likewise.
9563
9564 * arm-tdep.c (arm_smash_text_address): New function.
9565 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9566
fa4ba8da
PM
95672002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9568
9569 Add support for hardware watchpoints on win32 native.
aaa38bb5 9570 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9571 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9572 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9573 of debug registers.
9574 (debug_registers_changed): New variable. Reflects when debug registers
9575 are changed and need to be written to inferior.
aaa38bb5 9576 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9577 was set, used when new threads are created.
9578 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9579 i386-nat code.
9580 (thread_rec): Set dr array if id is the thread of current_event .
9581 (child_continue, child_resume): Change the debug registers for all
9582 threads if debug_registers_changed.
9583 (child_add_thread): Change the debug registers if debug_registers_used.
9584 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9585 Link nm.h to new nm-cygwin.h file.
9586 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9587 of hardware registers.
9588
a73c86fb
AC
95892002-02-03 Andrew Cagney <ac131313@redhat.com>
9590
9591 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9592 Restore behavour broken by 2002-01-20 Andrew Cagney
9593 <ac131313@redhat.com> IEEE_FLOAT removal.
9594
acf5ed49
DJ
95952002-02-03 Daniel Jacobowitz <drow@mvista.com>
9596
9597 * c-valprint.c (c_val_print): Pass a proper valaddr to
9598 cp_print_class_method.
9599 * valops.c (search_struct_method): If there is only one method
9600 and args is NULL, return that method.
9601
493d28d5
DJ
96022002-02-03 Daniel Jacobowitz <drow@mvista.com>
9603
9604 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9605 accessing tag_name directly.
9606
7495dfdb
DJ
96072002-02-03 Daniel Jacobowitz <drow@mvista.com>
9608
9609 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9610 of accessing tag_name directly.
9611
dd6bda65
DJ
96122002-02-03 Daniel Jacobowitz <drow@mvista.com>
9613
9614 PR gdb/280
9615 * gdbtypes.c (replace_type): New function.
9616 * gdbtypes.h (replace_type): Add prototype.
9617 * stabsread.c (read_type): Use replace_type.
9618
88fe217c
RE
96192002-02-03 Richard Earnshaw <rearnsha@arm.com>
9620
9621 * Makefile.in (memattr.o): Add missing dependencies rule.
9622
e5d66720
PS
96232002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9624
9625 * breakpoint.c (break_at_finish_command): Really export.
9626 (break_at_finish_at_depth_command): Ditto.
9627 (tbreak_at_finish_command): Ditto.
9628 * hppa-tdep.c: Include completer.h.
9629 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9630 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9631
fffee0be
AC
96322002-02-01 Andrew Cagney <ac131313@redhat.com>
9633
9634 * utils.c (do_write): New function.
9635 (error_stream): Rewrite combining the code from error_begin and
9636 verror.
9637 (verror): Rewrite using error_stream.
9638 (error_begin): Delete function.
9639
255e7dbf
AC
96402002-02-01 Andrew Cagney <ac131313@redhat.com>
9641
9642 * utils.c (error_begin): Make static.
9643 * defs.h (error_begin): Delete declaration.
9644
9645 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9646 (decode_line_1): Use cplusplus_error instead of error_begin,
9647 cplusplus_hint and return_to_top_level.
9648 * coffread.c (coff_symfile_read): Use error instead of error_begin
9649 and return_to_top_level.
9650 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9651
ddfe3c15
AC
96522002-02-01 Andrew Cagney <ac131313@redhat.com>
9653
9654 * language.h (type_error, range_error): Make string parameter
9655 constant.
9656 * language.c (warning_pre_print): Delete extern declaration.
9657 * dwarfread.c (warning_pre_print): Ditto.
9658 * language.c (type_error, range_error): Rewrite to use verror and
9659 vwarning instead of warning_begin.
9660
03ac34d5
MS
96612002-02-01 Michael Snyder <msnyder@redhat.com>
9662
261c4ca2
MS
9663 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9664 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9665
e00d1dc8
AC
96662002-02-01 Andrew Cagney <ac131313@redhat.com>
9667
9668 * command.h (NO_FUNCTION): Delete macro.
9669 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9670 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9671 * tracepoint.c (_initialize_tracepoint): Ditto.
9672 * cli/cli-decode.c (add_set_cmd): Ditto.
9673 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9674
76b79d6e
DJ
96752002-02-01 Daniel Jacobowitz <drow@mvista.com>
9676
9677 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9678 Update ``this'' pointer when calling virtual functions.
9679
799f9e91
MS
96802002-02-01 Michael Snyder <msnyder@redhat.com>
9681
c7bd442c 9682 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9683 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9684
3cf384d4
DJ
96852002-02-01 Daniel Jacobowitz <drow@mvista.com>
9686
9687 * regformats/reg-arm.dat: New file.
9688 * regformats/reg-i386.dat: New file.
9689 * regformats/reg-ia64.dat: New file.
9690 * regformats/reg-m68k.dat: New file.
9691 * regformats/reg-mips.dat: New file.
9692 * regformats/reg-ppc.dat: New file.
9693 * regformats/reg-sh.dat: New file.
9694 * regformats/regdef.h: New file.
9695 * regformats/regdat.sh: New file.
9696
0defa245
RE
96972002-02-01 Richard Earnshaw <reanrsha@arm.com>
9698
9699 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9700 (arm_frame_args_address, arm_frame_locals_address): New functions.
9701 (arm_frame_num_args): New function.
9702 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9703 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9704 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9705
405f26e6
MS
97062002-01-31 Michael Snyder <msnyder@redhat.com>
9707
502fd408
MS
9708 * breakpoint.c (break_at_finish_command): Export.
9709 (break_at_finish_at_depth_command): Export.
9710 (tbreak_at_finish_command): Export.
9711 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9712 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9713 "tbreak" commands, which are HPPA specific.
9714
7d35e135
MS
9715 * printcmd.c (disassemble_command): Remove an ancient
9716 artifact of an old merge.
9717
aaa38bb5 9718 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9719 Define enum constant values for overlay mode.
9720 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9721 (overlay_is_mapped, overlay_auto_command,
9722 overlay_manual_command): Ditto.
d874f1e2 9723
aaa38bb5
AJ
9724 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9725 breakpoint_here_p, breakpoint_inserted_here_p,
9726 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9727 describe_other_breakpoints, check_duplicates, clear_command):
9728 Coding standard fixes.
9729
8add0441 9730 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9731 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9732 code: check bfd SEC_READONLY flag for section.
9733
e351066e
AC
97342002-01-31 Andrew Cagney <ac131313@redhat.com>
9735
7d35e135 9736 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9737
8a48e967
DJ
97382002-01-30 Daniel Jacobowitz <drow@mvista.com>
9739
9740 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9741 data symbols, since we search based on textlow and texthigh.
9742 (find_pc_sect_symtab): Likewise.
9743
f5a96129
AC
97442002-01-30 Andrew Cagney <ac131313@redhat.com>
9745
9746 * defs.h (vwarning): Declare.
f5a96129
AC
9747 * utils.c (vwarning): New function.
9748 (warning): Call vwarning.
9749 (warning_begin): Delete function.
9750
9751 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9752 the warning message.
9753 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9754 warning_begin.
9755
cefd4ef5
MS
97562002-01-30 Michael Snyder <msnyder@redhat.com>
9757
1a703748
MS
9758 * NEWS: Mention "set trust-readonly-sections" command.
9759 Mention generate-core-file command.
cefd4ef5 9760
3a11626d
MS
97612002-01-15 Michael Snyder <msnyder@redhat.com>
9762
9763 * target.c: New command, "set trust-readonly-sections on".
9764 (do_xfer_memory): Honor the suggestion to trust readonly sections
9765 by reading them from the object file instead of from the target.
9766 (initialize_targets): Register command "set trust-readonly-sections".
9767
d1c7e53b
AC
97682002-01-29 Andrew Cagney <ac131313@redhat.com>
9769
9770 * parse.c (target_map_name_to_register): Simplify, search regs and
9771 pseudo-regs using a single loop.
9772
e2c9a72c
AC
97732002-01-30 Andrew Cagney <ac131313@redhat.com>
9774
9775 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9776
69824b4e
MK
97772002-01-15 Rodney Brown <rbrown64@csc.com.au>
9778
9779 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9780 * config/i386/i386v42mp.mh: Add i387-nat.o .
9781 * i386v4-nat.c: Include i387-nat.h.
9782 (supply_fpregset): Use i387_supply_fsave.
9783 (fill_fpregset): Use i387_fill_fsave.
9784
6eb69eab
RE
97852002-01-30 Richard Earnshaw <rearnsha@arm.com>
9786
9787 * arm-tdep.c (arm_call_dummy_words): Define.
9788 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9789 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9790 (CALL_DUMMY_WORDS): Define.
9791 (arm_call_dummy_words): Declare.
9792 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9793 (arm_linux_call_dummy_words): Declare.
9794
9852326a
AS
97952002-01-30 Andreas Schwab <schwab@suse.de>
9796
9797 * m68klinux-nat.c: Fix last change to use regcache_collect
9798 instead of referencing registers[] directly.
9799
977a3030
AC
98002002-01-29 Andrew Cagney <ac131313@redhat.com>
9801
9802 * parse.c (target_map_name_to_register): Delete code wrapped in
9803 #ifdef REGISTER_NAME_ALIAS_HOOK.
9804
2076c72b
MS
98052002-01-28 Michael Snyder <msnyder@redhat.com>
9806
9807 * regcache.c (legacy_read_register_gen): Need to be able to
9808 read pseudo-register as well as real register.
9809 (legacy_write_register_gen): Ditto.
9810
8fcc723b
AC
98112002-01-28 Andrew Cagney <ac131313@redhat.com>
9812
9813 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9814 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9815 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9816 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9817 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9818 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9819 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9820 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9821 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9822 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9823 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9824 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9825 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9826 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9827 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9828 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9829 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9830 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9831 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9832 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9833
afe64c1a
AC
98342002-01-28 Andrew Cagney <ac131313@redhat.com>
9835
9836 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9837 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9838 (initialize_current_architecture): Update target_byte_order using
9839 information from BFD.
aaa38bb5 9840 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9841 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9842
75bc7ddf
AC
98432002-01-28 Andrew Cagney <ac131313@redhat.com>
9844
9845 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9846 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9847
9848 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9849 #ifdef INVALID_FLOAT.
9850 * infcmd.c (do_registers_info): Ditto.
9851 * values.c (unpack_double): Ditto. Add comment.
9852
9853 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9854 already commented out.
9855
0280a90a
AS
98562002-01-26 Andreas Schwab <schwab@suse.de>
9857
9858 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9859 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9860 registers and add support for PTRACE_GETREGS.
9861
7072a954
AC
98622002-01-24 Andrew Cagney <ac131313@redhat.com>
9863
9864 GDB 5.1.1 released from 5.1 branch.
9865 * NEWS: Add 5.1.1 news.
9866 * README: Sync with 5.1 branch.
9867
86f902e0
FF
98682002-01-23 Fred Fish <fnf@redhat.com>
9869
9870 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9871 stabstring on initial malloc. Reallocing will copy it for us,
9872 if necessary.
9873
8af51c36
EZ
98742002-01-23 Elena Zannoni <ezannoni@redhat.com>
9875
aaa38bb5 9876 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9877 (HFILES_NO_SRCDIR): Remove hpread.h.
9878 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9879 (hpread.o): Update dependencies.
9880 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9881
9882 * hp-psymtab-read.c: Remove file.
9883 * hp-symtab-read.c: Remove file.
9884 * hpread.h: Remove file.
9885
9886 * hpread.c: Merge all contents of hp-psymtab-read.c,
9887 hp-symtab-read.c and hpread.h into this file, as it was prior to
9888 January 1999.
9889
9890 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9891 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9892 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9893 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9894
dc5cfeb6
EZ
98952002-01-23 Elena Zannoni <ezannoni@redhat.com>
9896
9897 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9898 fill_gregset): Call gdbarch_tdep() just once, assign result to
9899 variable and use that, instead of calling the function several
9900 times.
9901
ea87b71b
AO
99022002-01-24 Alexandre Oliva <aoliva@redhat.com>
9903
9904 * configure.host: Accept sparcv9 as alias for sparc64.
9905 * configure.tgt: Likewise.
9906
13fc0c2f
KB
99072002-01-22 Kevin Buettner <kevinb@redhat.com>
9908
9909 * solib-aix5.c (build_so_list_from_mapfile)
9910 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9911 arguments is not reversed.
9912 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9913 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9914
7bd872fe
EZ
99152002-01-22 Elena Zannoni <ezannoni@redhat.com>
9916
9917 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9918 modified version of obsolete sh_fetch_pseudo_register.
9919 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9920 (sh4_register_read): New function.
9921 (sh_pseudo_register_write): New function. Renamed and modified
9922 version of obsolete sh_store_pseudo_register.
9923 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9924 (sh4_register_write): New function.
9925 (sh_gdbarch_init): Remove setting of gdbarch function
9926 fetch_pseudo_register and store_pseudo_register. Remove setting of
9927 register_convert_to_raw, register_convert_to_virtual,
9928 register_convertible.
9929 (sh_sh4_register_convertible): Delete. No longer needed. All is
9930 taken care by architecture specific functions
9931 register_read/register_write.
9932 (sh_sh4_register_convert_to_virtual): Make static.
9933 (sh_sh4_register_convert_to_raw): Ditto.
9934
069e84fd
AC
99352002-01-22 Andrew Cagney <ac131313@redhat.com>
9936
9937 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9938 (floatformat_is_nan, floatformat_mantissa): Ditto.
9939
9940 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9941 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9942 builtin_type_ieee_double_little,
9943 builtin_type_ieee_double_littlebyte_bigword,
9944 builtin_type_m68881_ext, builtin_type_i960_ext,
9945 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9946 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9947 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9948 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9949
211a4f69
CV
99502002-01-22 Corinna Vinschen <vinschen@redhat.com>
9951
9952 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9953 parameter. Set frameless flag if it exists and depended of
9954 whether the scanned function is frameless or not.
9955 (xstormy16_skip_prologue): If function is frameless, return
9956 result of xstormy16_scan_prologue().
9957 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9958 call.
9959
f81353e4
EZ
99602002-01-21 Elena Zannoni <ezannoni@redhat.com>
9961
9962 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9963 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9964 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9965 sh_sh4_register_byte, sh_sh4_register_raw_size,
9966 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9967 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9968 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9969 sh_store_pseudo_register, sh_do_pseudo_register): Call
9970 gdbarch_tdep() just once, assign result to variable and use that,
9971 instead of calling the function several times.
9972
63c73a17
MK
99732002-01-20 Mark Kettenis <kettenis@gnu.org>
9974
9975 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9976 macros instead of LAST_FPU_CTRL_REGNUM.
9977 (store_register): Likewise.
9978
39ad761d
JB
99792002-01-21 Jim Blandy <jimb@redhat.com>
9980
9981 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9982 is up-to-date before running the program, not just when a program
9983 exits.
9984
3d74b771
FF
99852002-01-21 Fred Fish <fnf@redhat.com>
9986
9987 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9988 when we have found all instructions we are looking for.
9989
966fbf70
RE
99902002-01-21 Richard Earnshaw <rearnsha@arm.com>
9991
9992 * arm-tdep.c (arm_register_name): New function.
9993 (arm_registers_names): Make static.
9994 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9995 (arm_register_name): Declare.
9996 (REGISTER_NAME): Use it.
9997
c3b4394c
RE
99982002-01-21 Richard Earnshaw <rearnsha@arm.com>
9999 Kevin Buettner <kevinb@redhat.com>
10000
10001 Convert arm targets to new FRAME interface.
10002 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10003 (arm_frame_find_save_regs): Delete.
10004 (arm_frame_init_saved_regs): New.
10005 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10006 Allocate extra_info as required. Convert all uses of fsr.regs
10007 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10008 to use extra_info.
10009 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10010 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10011 (check_prologue_cache, save_prologue_cache): Likewise.
10012 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10013 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10014 (FRAME_FIND_SAVED_REGS): Delete.
10015 (arm_frame_find_saved_regs): Delete prototype.
10016 (arm_frame_init_saved_regs): New prototype.
10017 (FRAME_INIT_SAVED_REGS): Define.
10018
61d99182
AC
100192002-01-20 Andrew Cagney <ac131313@redhat.com>
10020
10021 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10022
6aaea291
AC
100232002-01-20 Andrew Cagney <ac131313@redhat.com>
10024
10025 From Jeff Law <law@redhat.com>:
10026 * infttrace.c: Include <sys/pstat.h>.
10027 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10028 exec file if the ttrace equivalent fails.
10029
15f698d2
AC
100302002-01-20 Andrew Cagney <ac131313@redhat.com>
10031
10032 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10033 (closeLogFile): Ditto.
10034
f86ddd7c
MC
100352002-01-20 Michael Chastain <mec@shout.net>
10036
10037 * top.c (print_gdb_version): Bump copyright year to 2002.
10038
904507ce
AC
100392002-01-20 Andrew Cagney <ac131313@redhat.com>
10040
10041 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10042 Zannoni and Eli Zaretskii.
10043
d7f0b9ce
DJ
100442002-01-20 Daniel Jacobowitz <drow@mvista.com>
10045
10046 * buildsym.c: Update copyright years.
10047 * c-typeprint.c: Likewise.
10048 * dwarf2read.c: Likewise.
10049 * f-typeprint.c: Likewise.
10050 * gdbtypes.c: Likewise.
10051 * gdbtypes.h: Likewise.
10052 * hp-symtab-read.c: Likewise.
10053 * hpread.c: Likewise.
10054 * mdebugread.c: Likewise.
10055 * p-typeprint.c: Likewise.
10056
3fd3d7d2
AC
100572002-01-20 Andrew Cagney <ac131313@redhat.com>
10058
10059 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10060 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10061 byte-order selectable.
10062 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10063 * arch-utils.c: Ditto.
10064 (set_endian): Ditto.
10065 (set_endian_from_file): Ditto.
10066 * gdbserver/low-sim.c (create_inferior): Ditto.
10067 * gdbarch.sh: Ditto.
10068 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10069 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10070 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10071 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10072 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10073 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10074 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10075 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10076 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10077 macro definition.
10078 * config/mips/tm-wince.h: Remove #undef of macro
10079 TARGET_BYTE_ORDER_SELECTABLE.
10080 * config/sh/tm-wince.h: Ditto.
10081
b02dede2
DJ
100822002-01-20 Daniel Jacobowitz <drow@mvista.com>
10083
10084 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10085 member function fields. Add accessor macro
10086 TYPE_FN_FIELD_ARTIFICIAL.
10087 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10088 * c-typeprint.c (c_type_print_base): Skip artificial member
10089 functions.
10090
c3643761
DJ
100912002-01-20 Daniel Jacobowitz <drow@mvista.com>
10092
10093 * f-typeprint.c: Delete unused function f_type_print_args.
10094 * p-typeprint.c: Delete unused function pascal_type_print_args.
10095
8176bb6d
DJ
100962002-01-20 Daniel Jacobowitz <drow@mvista.com>
10097
10098 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10099 comment. Add ``artificial'' to ``union field_location''.
10100
10101 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10102
10103 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10104 * mdebugread.c (parse_symbol): Likewise.
10105 * stabsread.c (define_symbol): Likewise.
10106 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10107 initializing TYPE_FIELD_BITPOS to n (obsolete).
10108 (hpread_doc_function_type): Likewise.
10109 * hpread.c (hpread_function_type): Likewise.
10110
7fd60527
AC
101112002-01-20 Andrew Cagney <ac131313@redhat.com>
10112
10113 * configure.in (host_makefile_frag): Only require a host makefile
10114 fragment when a native build.
10115 * configure: Re-generate.
10116
c2f05ac9
AC
101172002-01-20 Andrew Cagney <ac131313@redhat.com>
10118
10119 * doublest.h (floatformat_from_type): Declare.
10120 * doublest.c (floatformat_from_type): New function.
10121 (convert_typed_floating): Use.
10122
10123 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10124 call to function floatformat_from_type.
10125
10126 * gdbarch.sh (IEEE_FLOAT): Delete.
10127 * gdbarch.h, gdbarch.c: Re-generate.
10128 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10129 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10130 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10131 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10132 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10133 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10134 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10135 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10136 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10137 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10138 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10139 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10140
10141 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10142 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10143 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10144 * sh-tdep.c (sh_gdbarch_init): Ditto.
10145 * mips-tdep.c (mips_gdbarch_init): Ditto.
10146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10147 * cris-tdep.c (cris_gdbarch_init): Ditto.
10148
abf22e64
AJ
101492002-01-20 Jiri Smid <smid@suse.cz>
10150
10151 * configure.host, configure.tgt: Support x86-64.
10152 * NEWS: Note new target x86-64.
10153
b7c4cbf8
AJ
10154 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10155 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10156 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10157 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10158 x86-64-linux-nat.o): Fix dependencies.
10159
82600034
AC
101602002-01-19 Andrew Cagney <ac131313@redhat.com>
10161
10162 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10163 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10164 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10165 * config/sparc/xm-sun4os4.h: Delete file.
10166 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10167
bbe5c628
AC
101682002-01-19 Andrew Cagney <ac131313@redhat.com>
10169
10170 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10171 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10172 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10173 * config/i386/i386lynx.mh (XM_FILE): Delete.
10174 * config/rs6000/xm-rs6000ly.h: Delete file.
10175 * config/sparc/xm-sparclynx.h: Delete file.
10176 * config/m68k/xm-m68klynx.h: Delete file.
10177 * config/i386/xm-i386lynx.h: Delete file.
10178 * config/xm-lynx.h: Delete file.
10179 * config/djgpp/fnchange.lst: Update.
10180
f8453e34
JT
101812002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10182
10183 * alpha-tdep.c (alpha_register_byte): New function.
10184 (alpha_register_raw_size): Ditto.
10185 (alpha_register_virtual_size): Ditto.
10186 (alpha_skip_prologue_internal): Renamed from
10187 alpha_skip_prologue.
10188 (alpha_skip_prologue): New version that calls
10189 alpha_skip_prologue_internal.
10190 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10191 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10192 second argument from alpha_skip_prologue.
10193 (REGISTER_BYTE): Use alpha_register_byte.
10194 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10195 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10196 (FRAMELESS_FUNCTION_INVOCATION): Use
10197 generic_frameless_function_invocation_not.
10198 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10199 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10200
52d9e613
AC
102012002-01-19 Andrew Cagney <ac131313@redhat.com>
10202
10203 * config/mips/xm-news-mips.h: Delete file.
10204 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10205
10206 * config/m88k/xm-m88k.h: Delete file.
10207 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10208 * config/m88k/xm-delta88v4.h: Ditto.
10209 * config/m88k/xm-delta88.h: Ditto.
10210
10211 * config/alpha/xm-fbsd.h: Delete file.
10212 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10213
10214 * config/sparc/xm-sparc.h: Delete file.
10215 * Makefile.in (xm-sun4os4.h): Delete dependency.
10216 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10217 * config/sparc/xm-sun4os4.h: Ditto.
10218 * config/sparc/xm-linux.h: Ditto.
10219
10220 * config/i386/xm-windows.h: Delete file.
10221
2d1b2124
AC
102222002-01-19 Andrew Cagney <ac131313@redhat.com>
10223
10224 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10225 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10226
ee1f65f0
JT
102272002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10228
10229 * alpha-tdep.c (alpha_call_dummy_words): New.
10230 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10231 (CALL_DUMMY_P): Define.
10232 (CALL_DUMMY_WORDS): Define.
10233 (SIZEOF_CALL_DUMMY_WORDS): Define.
10234
98081e55
PB
102352002-01-19 Per Bothner <per@bothner.com>
10236
10237 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10238 isn't NULL, which can happen with some gcj-3.x-produced code.
10239
0d056799
JT
102402002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10241
10242 * alpha-tdep.c (alpha_register_virtual_type): New function.
10243 (alpha_init_frame_pc_first): Ditto.
10244 (alpha_fix_call_dummy): Ditto.
10245 (alpha_store_struct_return): Ditto.
10246 (alpha_extract_struct_value_address): Ditto.
10247 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10248 alpha_register_virtual_type.
10249 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10250 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10251 alpha_extract_struct_value_address.
10252 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10253 (INIT_FRAME_PC): Use init_frame_pc_noop.
10254 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10255
4604bcad
MK
102562002-01-19 Mark Kettenis <kettenis@gnu.org>
10257
10258 * i386gnu-nat.c: Include "i386-tdep.h".
10259 (fetch_fpregs): Simplify code dealing with uninitialized floating
10260 point states such that it doesn't require FP7_REGNUM.
10261
140f9984
JT
102622002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10263
abf22e64
AJ
10264 * alpha-tdep.c (frame_extra_info): New.
10265 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10266 frame->extra_info.
10267 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10268 (alpha_frame_saved_pc): Use frame->extra_info.
10269 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10270 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10271 (init_extra_frame_info): Rename to...
10272 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10273 (alpha_print_extra_frame_info): New function.
140f9984
JT
10274 (alpha_frame_locals_address): Ditto.
10275 (alpha_frame_args_address): Ditto.
abf22e64 10276 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10277 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10278 alpha_frame_args_address.
abf22e64 10279 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10280 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10281 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10282 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10283 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10284 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10285
d734c450
JT
102862002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10287
10288 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10289 (alpha_cannot_fetch_register): Ditto.
10290 (alpha_cannot_store_register): Ditto.
10291 (alpha_register_convertible): Ditto.
10292 (alpha_use_struct_convention): Ditto.
10293 * config/alpha/tm-alpha.h: Update copyright years.
10294 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10295 (INNER_THAN): Use core_addr_lessthan.
10296 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10297 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10298 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10299 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10300 (FRAME_CHAIN): Remove unnecessary cast.
10301
b4ceaee6
AC
103022002-01-18 Andrew Cagney <ac131313@redhat.com>
10303
10304 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10305 obsolete.
10306
0a65a603
AC
103072002-01-18 Andrew Cagney <ac131313@redhat.com>
10308
10309 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10310 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10311 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10312 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10313 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10314 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10315 * x86-64-linux-nat.c: Ditto.
10316
636a6dfc
JT
103172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10318
abf22e64 10319 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10320 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10321 (REGISTER_NAME): Define.
10322
acceddb6
JT
103232002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10324
10325 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10326
ec32e4be
JT
103272002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10328
10329 * alpha-tdep.c: Update copyright years.
10330 (alpha_next_pc): New function.
10331 (alpha_software_single_step): Ditto.
10332 * config/alpha/tm-alpha.h: Add prototype for
10333 alpha_software_single_step.
10334
e771a871
JT
103352002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10336
10337 * alphabsd-nat.c: Update copyright years.
10338 (fill_gregset): Use regcache_collect.
10339 (fill_fpregset): Likewise.
10340 (fetch_inferior_registers): Only fetch integer registers
10341 if requested to do so.
10342 (store_inferior_registers): Only store integer registers
10343 if requested to do so.
10344
7708fa01
AC
103452002-01-17 Andrew Cagney <ac131313@redhat.com>
10346
10347 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10348 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10349 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10350 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10351 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10352 * config/arm/linux.mh (XDEPFILES): Delete.
10353 * config/arm/nbsd.mh (XDEPFILES): Delete.
10354 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10355 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10356 * config/i386/i386m3.mh (XDEPFILES): Delete.
10357 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10358 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10359 * config/i386/fbsd.mh (XDEPFILES): Delete.
10360 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10361 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10362 * config/i386/i386v4.mh (XDEPFILES): Delete.
10363 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10364 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10365 * config/i386/i386aix.mh (XDEPFILES): Delete.
10366 * config/i386/go32.mh (XDEPFILES): Delete.
10367 * config/i386/cygwin.mh (XDEPFILES): Delete.
10368 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10369 * config/i386/i386mach.mh (XDEPFILES): Delete.
10370 * config/i386/i386v32.mh (XDEPFILES): Delete.
10371 * config/i386/linux.mh (XDEPFILES): Delete.
10372 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10373 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10374 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10375 * config/i386/i386sco.mh (XDEPFILES): Delete.
10376 * config/i386/i386v.mh (XDEPFILES): Delete.
10377 * config/i386/nbsd.mh (XDEPFILES): Delete.
10378 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10379 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10380 * config/i386/symmetry.mh (XDEPFILES): Delete.
10381 * config/i386/obsd.mh (XDEPFILES): Delete.
10382 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10383 * config/ia64/linux.mh (XDEPFILES): Delete.
10384 * config/ia64/aix.mh (XDEPFILES): Delete.
10385 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10386 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10387 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10388 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10389 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10390 * config/m68k/linux.mh (XDEPFILES): Delete.
10391 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10392 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10393 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10394 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10395 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10396 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10397 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10398 * config/m88k/delta88.mh (XDEPFILES): Delete.
10399 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10400 * config/m88k/m88k.mh (XDEPFILES): Delete.
10401 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10402 * config/mips/linux.mh (XDEPFILES): Delete.
10403 * config/mips/irix6.mh (XDEPFILES): Delete.
10404 * config/mips/irix5.mh (XDEPFILES): Delete.
10405 * config/mips/irix4.mh (XDEPFILES): Delete.
10406 * config/mips/irix3.mh (XDEPFILES): Delete.
10407 * config/mips/decstation.mh (XDEPFILES): Delete.
10408 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10409 (NATDEPFILES): Move core-aout.o to here.
10410 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10411 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10412 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10413 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10414 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10415 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10416 * config/pa/hpux11.mh (XDEPFILES): Delete.
10417 * config/powerpc/aix.mh (XDEPFILES): Delete.
10418 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10419 * config/powerpc/linux.mh (XDEPFILES): Delete.
10420 * config/romp/rtbsd.mh: Rename XDEPFILES.
10421 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10422 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10423 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10424 * config/s390/s390.mh (XDEPFILES): Delete.
10425 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10426 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10427 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10428 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10429 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10430 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10431 * config/sparc/linux.mh (XDEPFILES): Delete.
10432 * config/vax/vaxult.mh (XDEPFILES): Delete.
10433 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10434 * Makefile.in (DEPFILES): Remove XDEPFILES.
10435
375fc983
AC
104362002-01-17 Andrew Cagney <ac131313@redhat.com>
10437
10438 * utils.c (internal_verror): Fix comments, default is yes not no.
10439 Update queries to match. Default to quit and dump core.
10440
8926118c
AC
104412002-01-17 Andrew Cagney <ac131313@redhat.com>
10442
10443 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10444 copyright.
10445 * defs.h, event-top.c, gdbcmd.h: Ditto.
10446 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10447 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10448 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10449 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10450 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10451 * mi/mi-main.c:Ditto.
10452
10453 * stack.c, symfile.c: Update copyright.
10454
45b7b345
DJ
104552002-01-17 Daniel Jacobowitz <drow@mvista.com>
10456
db728ff7
DJ
10457 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10458 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10459 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10460 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10461
db728ff7
DJ
104622002-01-17 Daniel Jacobowitz <drow@mvista.com>
10463
10464 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10465 * gdbserver/low-lynx.c (myattach): Likewise.
10466 * gdbserver/low-nbsd.c (myattach): Likewise.
10467 * gdbserver/low-sim.c (myattach): Likewise.
10468 * gdbserver/low-sparc.c (myattach): Likewise.
10469 * gdbserver/low-sun3.c (myattach): Likewise.
10470
10471 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10472
db728ff7 10473 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10474 (main): Handle "--attach".
10475
8de3c354
AC
104762002-01-16 Andrew Cagney <ac131313@redhat.com>
10477
10478 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10479 maintainer.
10480
b0129042
DJ
104812002-01-15 Daniel Jacobowitz <drow@mvista.com>
10482
10483 * c-typeprint.c (is_type_conversion_operator): Add additional
10484 check for non-conversion operators.
10485
ba8679fb 104862002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10487
10488 * linux-proc.c: Add "info proc" command, a la procfs.c.
10489 (read_mapping): New function, abstract and re-use code.
10490 (linux_find_memory_regions): Use new func read_mapping.
10491 (linux_info_proc_cmd): New function, implement "info proc".
10492 (_initialize_linux_proc): Add new command "info proc".
10493
e4f9b4d5
MS
104942002-01-15 Michael Snyder <msnyder@redhat.com>
10495
10496 * symfile.c (generic_load): Use bfd_map_over_sections method
10497 instead of manipulating bfd structure members directly.
10498 (add_section_size_callback): New function, bfd sections callback
10499 used by generic_load.
10500 (load_sections_callback): New function, bfd sections callback
10501 used by generic_load.
10502
08cf96df
EZ
105032002-01-15 Elena Zannoni <ezannoni@redhat.com>
10504
abf22e64 10505 [Based on work by Jim Blandy]
08cf96df
EZ
10506 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10507 (builtin_type_vec128): Export.
10508 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10509 types.
10510 (builtin_type_vec128): New builtin type for 128 bit vector
10511 registers.
10512 (build_gdbtypes): Initialize builtin_type_v16qi and
10513 builtin_type_v8hi. Create the vec128 register builtin type
10514 structure.
10515 (build_builtin_type_vec128): New function.
abf22e64 10516 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10517 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10518 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10519 AltiVec register to new builtin type.
10520
d7242108
DJ
105212001-01-15 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10524 to make_cv_type.
10525
4ee3352d
AC
105262002-01-14 Andrew Cagney <ac131313@redhat.com>
10527
10528 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10529 CLEAN_UP_REGISTER_VALUE.
10530 * regcache.c (supply_register): Update only call.
10531
f015b2e7
AC
105322002-01-14 Andrew Cagney <ac131313@redhat.com>
10533
10534 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10535 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10536 a29k-*-vxworks* targets as obsolete.
10537
356ae49d
MS
105382002-01-14 Michael Snyder <msnyder@redhat.com>
10539
10540 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10541 until we can resolve portability issues.
10542 * gregset.h: Remove references to fpxregs.
10543 * gcore.c (gcore_command): Initialize note_sec to NULL.
10544
ade8f45e
AC
105452002-01-13 Andrew Cagney <ac131313@redhat.com>
10546
10547 * signals.c (target_signal_to_name): Rewrite. Only use
10548 signals[].name when in bounds and non-NULL.
abf22e64 10549
89c49e7a
AC
105502002-01-13 Andrew Cagney <ac131313@redhat.com>
10551
10552 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10553 * signals.c (target_signal_to_name): Verify that SIG is within the
10554 bounds of the signals array.
10555
4daa9f9f
AC
105562002-01-13 Andrew Cagney <ac131313@redhat.com>
10557
10558 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10559
ba4bbdcb
KS
105602002-01-13 Keith Seitz <keiths@redhat.com>
10561
10562 * stack.c (print_frame_info_base): Print the frame's pc
10563 only if when print_frame_info_listing_hook is not defined.
10564
575bbeb6
KS
105652002-01-13 Keith Seitz <keiths@redhat.com>
10566
10567 * varobj.c (varobj_set_value): Make sure that there were no
10568 errors evaluating the object before attempting to set its
10569 value.
10570 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10571 so this offset adjustment is no longer necessary.
10572 (create_child): Don't set the error flag if the child is
10573 a CPLUS_FAKE_CHILD.
10574 (value_of_child): If value_fetch_lazy fails, return NULL
10575 so that callers will be notified that an error occurred.
10576 (c_value_of_variable): Delay check of variable's validity
10577 until later. We actually want all structs and unions to have
10578 the value "{...}".
10579 Do not return "???" for variables which could not be evaluated.
10580 This error condition must be returned to the caller so that it
10581 can get the error condition from gdb.
10582 (cplus_name_of_child): Adjust index for vptr before figuring
10583 out the name of the child.
10584 (cplus_value_of_child): If a child's (real) parent is not valid,
10585 don't even bother trying to give a value for it. Just return
10586 an error. Change all instances in this function.
10587 (cplus_type_of_child): If our parent is one of the "fake"
10588 parents, we need to get at the type of the real parent, and
10589 derive the child's true type using this information.
10590
b76898ab
AC
105912002-01-13 Andrew Cagney <ac131313@redhat.com>
10592
10593 From 2002-01-09 John Marshall <johnm@falch.net>:
10594 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10595 sources.redhat.com, and tweak some related URLs which had
10596 suffered from linkrot.
10597
b6649e88
AC
105982002-01-13 Andrew Cagney <ac131313@redhat.com>
10599
10600 From Jeff law:
10601 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10602 structures passed in registers.
10603
82cc5033
EZ
106042002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10605
10606 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10607 white space which prevented compilation. Reported by DSK
10608 <dsk@student.unsw.edu.au>.
10609
ba5f2f8a
MS
106102002-01-11 Michael Snyder <msnyder@redhat.com>
10611
fbd35540
MS
10612 * symfile.c (build_section_addr_info_from_section_tab):
10613 Use bfd access method instead of manipulating bfd directly.
10614 (syms_from_objfile): Ditto.
10615 (simple_overlay_update_1): Ditto.
10616 (simple_overlay_update): Ditto.
10617 (generic_load): Ditto.
10618 (overlay_unmapped_address): FIXME comment, bfd access methods.
10619 (sections_overlap): FIXME comment, bfd access methods.
10620 (pc_in_mapped_range): FIXME comment, bfd access methods.
10621 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10622 (section_is_mapped): FIXME comment, bfd access methods.
10623 (section_is_overlay): FIXME comment, bfd access methods.
10624
ba5f2f8a
MS
10625 * symfile.c (generic_load): Whitespace and long line cleanups.
10626 Remove duplicate variable, change several local variables to
10627 more appropriate data types.
10628 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10629
17df2af6
AC
106302002-01-12 Andrew Cagney <ac131313@redhat.com>
10631
10632 From Peter Schauer:
10633 * language.c (longest_local_hex_string_custom): Use phex_nz to
10634 convert NUM to a hex string.
10635
ec920329
EZ
106362002-01-12 Elena Zannoni <ezannoni@redhat.com>
10637
10638 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10639 the function.
538a76d6 10640 Update Copyright year.
ec920329 10641
3abd2e01
AC
106422002-01-12 Andrew Cagney <ac131313@redhat.com>
10643
10644 * language.c (longest_raw_hex_string): Delete unused function.
10645
b21b22e0
PS
106462002-01-11 Petr Sorfa <petrs@caldera.com>
10647
10648 * MAINTAINERS (write-after-approval): Add myself.
10649 * dwarf2read.c (read_tag_string_type): Handling of
10650 DW_AT_byte_size.
10651 (read_tag_string_type): FORTRAN fix to prevent propagation of
10652 first string size.
10653 (set_cu_language): Handling of DW_LANG_Fortran95
10654
747fe712
RE
106552002-01-11 Richard Earnshaw <rearnsha@arm.com>
10656
10657 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10658 GETPID(inferior_ptid).
10659 (store_inferior_registers): Likewise.
10660
f1bea926
JM
106612002-01-10 Jason Merrill <jason@redhat.com>
10662
10663 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10664 Fix DW_OP_minus.
10665
ae940673
AC
106662002-01-10 Andrew Cagney <ac131313@redhat.com>
10667
10668 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10669 and bfd/elf32-sh-nbsd.c.
10670
00546b04
MS
106712002-01-10 Michael Snyder <msnyder@redhat.com>
10672
352ed7b4
MS
10673 * NEWS: Mention --pid and corefile/proc-id behavior change.
10674
c18be923
MS
10675 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10676 * gcore.c: Include cli/cli-decode.h instead of command.h.
10677
00546b04
MS
10678 * main.c (captured_main): Add new command line option "--pid".
10679 If the second command line argument (following the symbol-file)
10680 begins with a digit, try to attach to it before trying to open
10681 it as a corefile.
10682 (print_gdb_help): Document the "--pid" argument.
10683
db60ec62
EZ
106842002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10685
10686 * completer.c (command_completer): New function.
10687
10688 * completer.h <command_completer>: Add prototype.
10689
10690 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10691 completer for the "help" command.
10692
39c22d1a
JM
106932002-01-09 Jason Merrill <jason@redhat.com>
10694
10695 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10696
c564377f
MS
106972002-01-09 Michael Snyder <msnyder@redhat.com>
10698
975aec09
MS
10699 * i386-linux-nat.c (fill_fpxregset): Make global.
10700 (store_fpxregset): Ditto.
10701
db4a10fa
MS
10702 * gregset.h (gdb_fpxregset_t): Define.
10703 (supply_fpxregset): Prototype.
10704 (fill_fpxregset): Prototype.
10705
c564377f
MS
10706 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10707
c3d45d70
RE
107082002-01-09 Richard Earnshaw <rearnsha@arm.com>
10709
10710 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10711 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10712 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10713
fcc87af1
AC
107142002-01-09 Andrew Cagney <ac131313@redhat.com>
10715
10716 * MAINTAINERS: Update target maintainer rules so that any
10717 Maintainer can approve a tested patch for a maintenance-only
10718 target.
10719
dd96c05b
RE
107202002-01-09 Richard Earnshaw <rearnsha@arm.com>
10721
d4297db9 10722 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10723
d4297db9 10724 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10725 IN_SIGTRAMP.
10726
145fdc6e
MS
107272002-01-08 Michael Snyder <msnyder@redhat.com>
10728
10729 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10730 real name of the executable, rather than the /proc name.
10731
be4d1333
MS
107322002-01-03 Michael Snyder <msnyder@redhat.com>
10733
10734 Implement a "generate-core-file" command in gdb, save target state.
10735 * gcore.c: New file. Implement new command 'generate-core-file'.
10736 Save a corefile image of the current state of the inferior.
10737 * linux-proc.c: Add linux-specific code for saving corefiles.
10738 * target.h (struct target_ops): Add new target vectors for saving
10739 corefiles; to_find_memory_regions and to_make_corefile_notes.
10740 (target_find_memory_regions): New macro.
10741 (target_make_corefile_notes): New macro.
10742 * target.c (update_current_target): Inherit new target methods.
10743 (dummy_find_memory_regions): New place-holder method.
10744 (dummy_make_corefile_notes): New place-holder method.
10745 (init_dummy_target): Initialize new dummy target vectors.
10746 * exec.c (exec_set_find_memory_regions): New function.
10747 Allow the exec_ops vector for memory regions to be taken over.
10748 (exec_make_note_section): New function, target vector method.
10749 * defs.h (exec_set_find_memory_regions): Export prototype.
10750 * procfs.c (proc_find_memory_regions): New function, corefile method.
10751 (procfs_make_note_section): New function, corefile method.
10752 (init_procfs_ops): Set new target vector pointers.
10753 (find_memory_regions_callback): New function.
10754 (procfs_do_thread_registers): New function.
10755 (procfs_corefile_thread_callback): New function.
10756 * sol-thread.c (sol_find_memory_regions): New function.
10757 (sol_make_note_section): New function.
10758 (init_sol_thread_ops): Initialize new target vectors.
10759 * inftarg.c (inftarg_set_find_memory_regions): New function.
10760 Allow to_find_memory_regions vector to be taken over.
10761 (inftarg_set_make_corefile_notes): New function.
10762 Allow to_make_corefile_notes vector to be taken over.
10763 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10764 interface layer if not target_has_execution (may be a corefile).
10765 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10766 * config/sparc/sun4sol2.mh: Ditto.
10767 * config/alpha/alpha-linux.mh: Ditto.
10768 * config/arm/linux.mh: Ditto.
10769 * config/i386/x86-64linux.mh: Ditto.
10770 * config/ia64/linux.mh: Ditto.
10771 * config/m68k/linux.mh: Ditto.
10772 * config/mips/linux.mh: Ditto.
10773 * config/powerpc/linux.mh: Ditto.
10774 * config/sparc/linux.mh: Ditto.
10775
c6b92abd
MS
107762002-01-07 Michael Snyder <msnyder@redhat.com>
10777
10778 * arm-linux-nat.c: Remove references to regcache.c internal data
10779 (registers[] and register_valid[]).
10780
4b09dc8c
MS
107812002-01-07 Michael Snyder <msnyder@redhat.com>
10782
abf22e64
AJ
10783 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10784 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10785 symbol file and shlibs.
10786 * Makefile.in: Add rule for linux-proc.o.
10787 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10788 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10789 * config/arm/linux.mh: Ditto.
10790 * config/i386/linux.mh: Ditto.
10791 * config/i386/x86-64linux.mh: Ditto.
10792 * config/ia64/linux.mh: Ditto.
10793 * config/m68k/linux.mh: Ditto.
10794 * config/mips/linux.mh: Ditto.
10795 * config/powerpc/linux.mh: Ditto.
10796 * config/sparc/linux.mh: Ditto.
10797
c25b74ac
PM
107982002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10799
10800 * win32-nat.c: Add i386-tdep.h dependency.
10801
94cd915f
MS
108022002-01-07 Michael Snyder <msnyder@redhat.com>
10803
c7cccb76
MS
10804 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10805 instead of bfd_get_arch_size. Don't bail out just because
10806 there's no exec_bfd.
abf22e64 10807
34c0bd93
MS
10808 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10809 * p-valprint.c (pascal_object_print_value): Ditto.
10810 * somread.c (som_symtab_read): Ditto.
10811 * symfile.c (simple_free_overlay_region_table): Ditto.
10812 * valops.c (value_assign): Ditto.
10813
21c1c920
MS
10814 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10815 use tilde_expand and strerror for opening save-tracepoints file.
10816
5bbd998e
MS
10817 * thread-db.c (thread_db_new_objfile): Indendation fix.
10818
94cd915f
MS
10819 * infptrace.c (GDB_MAX_ALLOCA): New define.
10820 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10821 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10822 can be overridden with whatever value is appropriate to the host).
10823 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10824 alloca to allocate potentially large buffer.
10825 * rs6000-nat.c (child_xfer_memory): Ditto.
10826 * symm-nat.c (child_xfer_memory): Ditto.
10827 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10828
494e8a93
JSC
108292002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10830
10831 From Nick Clifton <nickc@redhat.com>
10832 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10833
d0e1d48e
MS
108342002-01-07 Michael Snyder <msnyder@redhat.com>
10835
abf22e64 10836 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10837 Don't use exec_bfd if it's NULL.
10838
290b2c7a
MK
108392002-01-06 Mark Kettenis <kettenis@gnu.org>
10840
abf22e64 10841 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10842
aef21287
AC
108432002-01-06 Andrew Cagney <ac131313@redhat.com>
10844
10845 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10846 * gnu-nat.c: Ditto.
10847
30efa627
AC
108482002-01-06 Andrew Cagney <ac131313@redhat.com>
10849
10850 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10851 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10852 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10853 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10854 z8k-coff have not been multi-arched. Update z8k-coff build
10855 status.
10856
9b4ff276
AC
108572002-01-06 Andrew Cagney <ac131313@redhat.com>
10858
10859 * MAINTAINERS: Mark a29k target as obsolete.
10860 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10861 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10862 comments.
10863 * NEWS: Note that a29k targets are obsolete.
10864 * a29k-tdep.c: Mark as obsolete.
10865 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10866 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10867 a29k-*-vxworks* targets as obsolete.
10868 * remote-adapt.c: Obsolete.
10869 * remote-eb.c: Obsolete.
10870 * remote-mm.c: Obsolete.
10871 * remote-udi.c: Obsolete.
10872 * config/a29k/a29k-udi.mt: Obsolete.
10873 * config/a29k/a29k.mt: Obsolete.
10874 * config/a29k/tm-a29k.h: Obsolete.
10875 * config/a29k/tm-vx29k.h: Obsolete.
10876 * config/a29k/vx29k.mt: Obsolete.
10877
a9011d31
AC
108782002-01-05 Andrew Cagney <ac131313@redhat.com>
10879
10880 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10881 with BFD_ENDIAN_BIG.
10882
9299404e
AC
108832002-01-05 Andrew Cagney <ac131313@redhat.com>
10884
10885 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10886 * configure, config.in: Re-generate.
10887 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10888 * defs.h: Do not include <endian.h>.
10889
7e89e357
JT
108902002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10891
10892 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10893 * config.in: Regenerate.
10894 * configure.in: Update copyright years.
10895 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10896 * configure: Regenerate.
10897 * i386bsd-nat.c: Update copyright years.
10898 (fill_gregset): Use regcache_collect.
10899 (fetch_inferior_registers): Only fetch integer registers
10900 if requested to do so. Add support for XMM registers
10901 using PT_GETXMMREGS.
10902 (store_inferior_registers): Only store integer registers
10903 if requested to do so. Add support for XMM registers
10904 using PT_SETXMMREGS.
10905 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10906 (store_inferior_registers): Remove.
10907 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10908 (fetch_elfcore_registers): New function.
10909 (i386nbsd_elfcore_fns): New.
10910 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10911 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10912 i386bsd-nat.o.
10913 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10914 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10915 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10916 * config/i386/tm-nbsd.h: Update copyright years.
10917 (HAVE_SSE_REGS): Define.
10918 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10919 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10920 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10921 (SIGCONTEXT_PC_OFFSET): Remove.
10922 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10923
a752853e
AC
109242002-01-05 Andrew Cagney <ac131313@redhat.com>
10925
10926 * configure.tgt: Remove powerpc-*-macos* target.
10927 * config/m68k/xm-mpw.h: Delete file.
10928 * config/xm-mpw.h: Delete file.
10929 * ser-mac.c: Delete file.
10930 * mpw-make.sed: Delete file.
10931 * mpw-config.in: Delete file.
10932 * mac-xdep.c: Delete file.
10933 * mac-gdb.r: Delete file.
10934 * mac-defs.h: Delete file.
10935 * mac-nat.c: Delete file.
10936 * config/powerpc/macos.mh: Delete file.
10937 * config/powerpc/macos.mt: Delete file.
10938 * config/powerpc/nm-macos.h: Delete file.
10939 * config/powerpc/tm-macos.h: Delete file.
10940 * source.c (openp, open_source_file): Remove obsolete code.
10941 * top.c (gdb_readline): Ditto.
10942 * utils.c (query): Ditto.
10943 * event-top.c (display_gdb_prompt): Ditto.
10944 * Makefile.in (ser-mac.o): Delete obsolete target.
10945 * NEWS: Update.
10946
d7449b42
AC
109472002-01-04 Andrew Cagney <ac131313@redhat.com>
10948
10949 * defs.h (BIG_ENDIAN): Delete macro definition.
10950 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10951 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10952 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10953 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10954 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10955 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10956 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10957 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10958 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10959 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10960 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10961 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10962 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10963 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10964 * gdbarch.c: Re-generate.
10965
356374e8
DJ
109662002-01-04 Daniel Jacobowitz <drow@mvista.com>
10967
10968 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10969 for core files.
10970
a2b8f8f8
JT
109712002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10972
10973 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10974
12466af9
AC
109752002-01-04 Andrew Cagney <ac131313@redhat.com>
10976
10977 * value.h (value_ptr): Delete typedef.
10978
3549ab40
JT
109792002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10980
10981 * i386nbsd-nat.c: Update copyright years.
10982 Include i386-tdep.h.
10983
fedbd091
EZ
109842002-01-04 Elena Zannoni <ezannoni@redhat.com>
10985
10986 * stabsread.c: Update copyright years.
10987
10988 From Debashis Mahata <debashis.mahata@wipro.com>:
10989 (read_struct_fields): Deal with Sun C compiler erroneous stab
10990 output for structs and unions.
fec8b34f 10991 Fix PR gdb/269.
fedbd091 10992
eb43544b
DJ
109932002-01-04 Daniel Jacobowitz <drow@mvista.com>
10994
10995 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10996 prototype.
10997
1514d34e
DJ
109982002-01-04 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * cp-abi.c: Fix whitespace.
11001 (baseclass_offset): New wrapper function.
11002 * cp-abi.h (baseclass_offset): Add prototype.
11003 (struct cp_abi_ops): Add baseclass_offset pointer.
11004
11005 * valops.c (vb_match): Move to...
11006 * gnu-v2-abi.c (vb_match): here.
11007 * valops.c (baseclass_offset): Move to...
11008 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11009
11010 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11011
11012 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11013 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11014 * hpacc-abi.c (init_hpacc_ops): Likewise.
11015
7f8c9282
DJ
110162002-01-04 Daniel Jacobowitz <drow@mvista.com>
11017
11018 * valops.c (find_overload_match): Accept obj as a
11019 reference parameter. Update it before returning.
11020 * value.h (find_overload_match): Update prototype.
11021 * eval.c (evaluate_subexp_standard): Pass object to
11022 find_overload_match by reference.
11023
f23631e4
AC
110242002-01-03 Andrew Cagney <ac131313@redhat.com>
11025
11026 * valarith.c: Replace value_ptr with struct value pointer. Remove
11027 register attribute from value declarations.
11028 * valops.c: Ditto.
11029 * value.h: Ditto.
11030 * scm-lang.c (scm_lookup_name): Ditto.
11031
79e10fab 110322002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11033
79e10fab
AC
11034 Abstract the functionality of iterating over mapped memory
11035 regions into a general purpose iterator function.
abf22e64 11036 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11037 iterator for memory sections.
11038 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11039 (solib_mappings_callback): New function, callback for above.
11040 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11041 (info_mappings_callback): New function, callback for above.
11042
11043 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11044
c5ad026a
MK
110452002-01-01 Mark Kettenis <kettenis@gnu.org>
11046
d2a7c97a
MK
11047 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11048 * i386-tdep.c: Include "elf-bfd.h".
11049 (process_note_abi_tag_sections): New function.
11050 (i386_gdbarch_init): Add code to recognize various OS/ABI
11051 combinations.
11052
c5ad026a
MK
11053 * maint.c (_initialize_maint_cmds): Add missing \ in
11054 string-literal.
11055
a1a5b71e 11056For older changes see ChangeLog-2001
c906108c
SS
11057\f
11058Local Variables:
11059mode: change-log
11060left-margin: 8
11061fill-column: 74
11062version-control: never
11063End:
This page took 0.938024 seconds and 4 git commands to generate.