* symtab.c (lookup_symbol_aux): In the cases where we find a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c7612d53
JB
12002-08-29 Jim Blandy <jimb@redhat.com>
2
3 * symtab.c (lookup_symbol_aux): In the cases where we find a
4 minimal symbol of an appropriate name and use its address to
5 select a symtab to read and search, use `name' (as passed to us)
6 as the demangled name when searching the symtab's global and
7 static blocks, not the minsym's name.
8
66609862
KS
92002-08-29 Keith Seitz <keiths@redhat.com>
10
11 * stack.c (print_frame_info_base): Always set current_source_symtab
12 and current_source_line.
13
151fefe2
JB
142002-08-29 Donn Terry <donnte@microsoft.com>
15
16 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
17
bfb3754e
KS
182002-08-28 Keith Seitz <keiths@redhat.com>
19
20 * stack.c (select_frame): Add FIXME concerning selected-frame
21 events.
22 (select_frame_command): Send selected-frame-level-changed
23 event notification, but only if the level actually changed.
24 (up_silently_base): Add selected-frame-level-changed event
25 notification.
26 (down_silently_base): Likewise.
27
e822a2a0
AC
282002-08-28 Andrew Cagney <ac131313@redhat.com>
29
30 * Makefile.in: Update dependencies for all gdb/*.c files.
31
309367d4
TT
322002-08-27 Tom Tromey <tromey@redhat.com>
33
34 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
35 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
36 Update dependencies.
37 * i387-tdep.c: Include gdb_string.h.
38 * osabi.c: Likewise.
39 * i386-linux-nat.c: Likewise.
40 * lin-lwp.c: Likewise.
41 * ax-gdb.c: Likewise.
42 * signals/signals.c: Likewise.
43 * jv-valprint.c: Likewise.
44 * p-lang.c: Likewise.
45 * c-valprint.c: Likewise.
46 * cp-abi.c: Likewise.
47
e1507482
EZ
482002-08-27 Elena Zannoni <ezannoni@redhat.com>
49
50 * cli/cli-script.h (copy_command_lines): Export.
51 * breakpoint.c: Include cli/cli-script.h.
52 * Makefile.in (breakpoint.o): Update dependencies.
53
c2b8ed2c
MS
542002-08-26 Joel Brobecker <brobecker@gnat.com>
55
56 * cli/cli-script.c (copy_command_lines): New function.
57 * defs.h (copy_command_lines): Export.
58 * testsuite/gdb.base/commands.exp: New tests for commands
59 attached to a temporary breakpoint, and for commands that
60 delete the breakpoint they are attached to.
61
622002-08-26 Michael Snyder <msnyder@redhat.com>
63
64 * breakpoint.c (bpstat_stop_status): Instead of copying the
65 pointer to the breakpoint commands struct, make a new copy
66 of the struct and point to that.
67 (bpstat_clear): Free the commands struct.
68 (bpstat_clear_actions): Free the commands struct.
69 (bpstat_do_actions): Free the command actions. Also execute
70 the local cleanups, instead of deleting them.
71 (delete_breakpoint): Leave the commands field of the bpstat
72 chain alone -- it will be freed later.
73
64b84175
KB
742002-08-26 Kevin Buettner <kevinb@redhat.com>
75
76 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
77 deleted in 2002-08-20 commit. This function is still used by
78 ppc-linux-nat.c.
79
55970da6
KS
802002-08-26 Keith Seitz <keiths@redhat.com>
81
82 * gdb-events.sh: Add selected-frame-level-changed event.
83 * gdb-events.c: Regenerated.
84 * gdb-events.h: Regenerated.
85
a790ad35
SC
862002-08-26 Stephane Carrez <stcarrez@nerim.fr>
87
88 Fix PR gdb/393:
89 * inflow.c (terminal_save_ours): New function to save terminal
90 settings.
91 * inferior.h (terminal_save_ours): Declare.
92 * target.c (debug_to_terminal_save_ours): New function.
93 (cleanup_target): Defaults to_terminal_save_ours.
94 (update_current_target): Inherit to_terminal_save_ours.
95 (setup_target_debug): Set to_terminal_save_ours.
96 * target.h (target_terminal_save_ours): New to save terminal settings.
97 (target_ops): New member to_terminal_save_ours.
98 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
99 * hpux-thread.c (init_hpux_thread_ops): Likewise.
100 * inftarg.c (init_child_ops): Likewise.
101 * m3-nat.c (init_m3_ops): Likewise.
102 * procfs.c (init_procfs_ops): Likewise.
103 * wince.c (init_child_ops): Likewise.
104 * win32-nat.c (init_child_ops): Likewise.
105 * sol-thread.c (init_sol_thread_ops): Likewise.
106
c00dcbe9
MK
1072002-08-26 Mark Kettenis <kettenis@gnu.org>
108
3d7f4f49
MK
109 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
110 use regcache_* functions.
111 (i386_gdbarch_init): Set store_return_value instead of
112 deprecated_store_return_value.
113
c00dcbe9
MK
114 * regcache.c (regcache_raw_write_signed,
115 regcache_raw_write_unsigned): New functions.
116 * regcache.h (regcache_raw_write_signed,
117 regcache_raw_write_unsigned): New prototypes.
118
0e0d15ca
AC
1192002-08-25 Andrew Cagney <ac131313@redhat.com>
120
121 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
122 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
123 source file dependencies. Cleanup corresponding generator rules.
124
d3b22ed5
AC
1252002-08-25 Andrew Cagney <ac131313@redhat.com>
126
127 * regcache.h (register_offset_hack): Declare.
128 (regcache_cooked_read_using_offset_hack): Declare.
129 (regcache_cooked_write_using_offset_hack): Declare.
130
131 * regcache.c (register_offset_hack): New function.
132 (regcache_cooked_read_using_offset_hack): New function.
133 (regcache_cooked_write_using_offset_hack): New function.
134 (regcache_dump): Check that the registers, according to their
135 offset, are packed hard against each other.
136 (cooked_xfer_using_offset_hack): New function.
137
bb425013
AC
1382002-08-25 Andrew Cagney <ac131313@redhat.com>
139
140 * regcache.c (struct regcache_descr): Add field register_type.
141 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
142 in as a parameter
143 (init_regcache_descr): Initialize register_type. Pass the descr
144 to init_legacy_regcache_descr. Use register_type instead of
145 REGISTER_VIRTUAL_TYPE.
146 (register_type): New function.
147 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
148 * regcache.h (register_type): Declare.
149
d0403e00
AC
1502002-08-25 Andrew Cagney <ac131313@redhat.com>
151
152 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
153 instead of deprecated_store_return_value. Fix fallout from
154 2002-08-23 Andrew Cagney <cagney@redhat.com>.
155
0ed04cce
AC
1562002-08-25 Andrew Cagney <ac131313@redhat.com>
157
158 * regcache.c (max_register_size): New function.
159 (init_legacy_regcache_descr): Ensure that max_register_size is
160 large enough for REGISTER_VIRTUAL_SIZE.
161 * regcache.h (max_register_size): Declare.
162
46d79c04
AC
1632002-08-24 Andrew Cagney <ac131313@redhat.com>
164
165 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
166 store_return_value.
167 (e500_extract_return_value): Change type of valbuf pointer to
168 void.
169
853c7bd0
MK
1702002-08-24 Mark Kettenis <kettenis@gnu.org>
171
cd87e769
MK
172 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
173 workaround.
174
853c7bd0
MK
175 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
176 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
177 long long) to prevent compiler warning on 64-bit systems.
178
ebba8386
AC
1792002-08-23 Andrew Cagney <cagney@redhat.com>
180
181 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
182 (DEPRECATED_STORE_RETURN_VALUE): New method.
183 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
184 * gdbarch.h, gdbarch.c: Re-generate.
185
186 * values.c (set_return_value): Pass current_regcache to
187 STORE_RETURN_VALUE.
188 * arch-utils.h (legacy_store_return_value): Declare.
189 * arch-utils.c (legacy_store_return_value): New function.
190 (legacy_extract_return_value): Update parameters.
191
192 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
193 STORE_RETURN_VALUE.
194 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
195 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
196 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
197 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
198 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
199 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
200 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
201 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
202 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
203 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
204
205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
206 * i386-tdep.c (i386_extract_return_value): Update.
207 * arch-utils.c (legacy_extract_return_value): Update.
208 * frv-tdep.c (frv_gdbarch_init): Update.
209 * cris-tdep.c (cris_gdbarch_init): Update.
210 * d10v-tdep.c (d10v_gdbarch_init): Update.
211 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
212 * m68k-tdep.c (m68k_gdbarch_init): Update.
213 * mcore-tdep.c (mcore_gdbarch_init): Update.
214 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
215 * s390-tdep.c (s390_gdbarch_init): Update.
216 * sparc-tdep.c (sparc_gdbarch_init): Update.
217 * sh-tdep.c (sh_gdbarch_init): Update.
218 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
219 * v850-tdep.c (v850_gdbarch_init): Update.
220 * avr-tdep.c (avr_gdbarch_init): Update.
221 * ia64-tdep.c (ia64_gdbarch_init): Update.
222 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
223 * vax-tdep.c (vax_gdbarch_init): Update.
224 * alpha-tdep.c (alpha_gdbarch_init): Update.
225 * arm-tdep.c (arm_gdbarch_init): Update.
226 * mips-tdep.c (mips_gdbarch_init): Update.
227 * i386-tdep.c (i386_gdbarch_init): Update.
228
5bd8c6d0
AC
2292002-08-23 Andrew Cagney <ac131313@redhat.com>
230
231 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
232 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
233
e73e1724
MK
2342002-08-24 Mark Kettenis <kettenis@gnu.org>
235
236 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
237 problems.
238
3e6564e1
JB
2392002-08-23 Joel Brobecker <brobecker@gnat.com>
240
241 * infrun.c (handle_inferior_event): Move a comment outside of a
242 function call, in order to avoid indent reformatting this part
243 of the code in an unreadable way.
244
81d0cc19
GS
2452002-08-23 Grace Sainsbury <graces@redhat.com>
246
247 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
248 when breakpoints fail. Move general breakpoint error messages to
249 insert_breakpoints.
250 * breakpoint.c (insert_breakpoints): Change warnings when
251 breakpoints are nto inserted to specify the type. Remove call to
252 memory_error when hardware breakpoints can't be inserted. Remove
253 multiple calls to warning so all messages are sent to the user at
254 once.
255 (delete_breakpoints): Make insert error messsages more explicit.
256
17574093
DJ
2572002-08-23 Daniel Jacobowitz <drow@mvista.com>
258
259 * ChangeLog: Move gdbserver entries after GDB 5.2 to
260 gdbserver/ChangeLog.
261
8acc2935
MK
2622002-08-23 Mark Kettenis <kettenis@gnu.org>
263
dfe01d39
MK
264 * i386-tdep.c: Include "objfiles.h".
265 (i386_svr4_init_abi): Set in_solib_call_trampoline and
266 skip_trampoline_code.
267 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
268 (CPLUS_MARKER): Define to '.'.
269
8acc2935
MK
270 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
271 member.
272 (linux_corefile_thread_callback): Increase args->num_notes.
273 (linux_make_note_section): Initialize thread_args.num_notes, and
274 use it to determine whether notes for any threads were created.
275
151fefe2 2762002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
277
278 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
279 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
280 and PCUNKILL.
281 (write_with_trace): Conditionalize out the switch branch handling
282 PCSHOLD if the corresponding macro is not defined. Likewise for
283 PRSABORT and PRSTOP.
284 This change will be needed by the Interix port.
285
e1507482
EZ
2862002-08-22 Elena Zannoni <ezannoni@redhat.com>
287
288 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
289 write_register wherever possible instead of manipulating the
290 register bytes directly.
291 Assign VALUE_CONTENTS to a variable and use that.
292 The GPR numbers are now dependent on the architecture.
293
96ff0de4
EZ
2942002-08-22 Elena Zannoni <ezannoni@redhat.com>
295
296 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
297 ev_offset fields.
298 (skip_prologue): Add support for BookE/e500 instructions.
299 (e500_extract_return_value): New function.
300 (frame_get_saved_regs): Add support for saving ev registers and
301 pseudo gpr's.
302 (e500_store_return_value): New function.
303 (rs6000_gdbarch_init): Move up default intializations of
304 deprecated_extract_return_value and store_return_value. Overwrite
305 init of store_return_value with e500 specific version.
306 Set extract_return_value for e500.
307
fbefca5b
EZ
3082002-08-22 Elena Zannoni <ezannoni@redhat.com>
309
310 * blockframe.c (generic_call_dummy_register_unwind): Use
311 regcache_cooked_read to catch cases in which the variable is
312 stored in a pseudo register.
313
4d210288
AC
3142002-08-22 Andrew Cagney <cagney@redhat.com>
315
316 * NEWS: Mention that the i960 has been made obsolete.
317 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
318 i960-tdep.c
319 (remote-nrom.o): Obsolete target.
320 (remote-nindy.o, i960-tdep.o): Ditto.
321 * remote-nrom.c: Make file obsolete.
322 * remote-nindy.c, remote-vx960.c: Ditto.
323 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
324 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
325 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
326 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
327 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
328 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
329 i960-*-vxworks* obsolete.
330 * MAINTAINERS: Note that the i960 is obsolete.
331
6c0c456d
CV
3322002-08-21 Corinna Vinschen <vinschen@redhat.com
333
334 * aix-thread.c (aix_thread_detach): Disable thread debugging on
335 detach to allow reinitialization.
336
9f9d12b3
AC
3372002-08-22 Andrew Cagney <ac131313@redhat.com>
338
339 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
340 attempt).
341
ebeb39fe
JB
3422002-08-22 Jim Blandy <jimb@redhat.com>
343
344 * coffread.c (coff_symfile_read): Don't try to read the line
345 number table from disk if the image file doesn't have a symbol
346 table; we'll never actually look at the info anyway, and Windows
347 ships DLL's with bogus file offsets for the line number data.
348
5bf1c677
EZ
3492002-08-21 Elena Zannoni <ezannoni@redhat.com>
350
351 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
352 an e500 executable.
353
71b8ef93
MS
3542002-08-21 Michael Snyder <msnyder@redhat.com>
355
356 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
357 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
358 (DEFAULT_MIPS_TYPE): Delete unused macro.
359 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
360 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 361
d174216d
JB
3622002-08-21 Jim Blandy <jimb@redhat.com>
363
364 * valops.c (value_cast): Simplify and correct logic for doing a
365 static cast from a pointer to a base class to a pointer to a
366 derived class.
367
0ab7a791
AC
3682002-08-21 Andrew Cagney <ac131313@redhat.com>
369
370 * infcmd.c (default_print_registers_info): Replace
371 do_registers_info.
372 (registers_info): Use gdbarch_print_registers_info instead of
373 DO_REGISTERS_INFO.
374 * inferior.h (default_print_registers_info): Replace
375 do_registers_info.
376 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
377 (DO_REGISTERS_INFO): Change to a predicate function.
378 * gdbarch.h, gdbarch.c: Regenerate.
379
e23792cc
KS
3802002-08-21 Keith Seitz <keiths@redhat.com>
381
382 * gdb-events.sh: Add target-changed event.
383 * gdb-events.c: Regenerated.
384 * gdb-events.c: Regenerated.
385 * valops.c (value_assign): Add target-changed event notification
386 to inlval_register, lval_memory, and lval_reg_frame_relative.
387
9fb14e79
JB
3882002-08-21 Joel Brobecker <brobecker@gnat.com>
389
390 * NEWS: Add an entry regarding the improvement of the next/step
391 operation on Alpha Tru64 multi-processor machines.
392
6d39a69f
AC
3932002-08-21 Andrew Cagney <ac131313@redhat.com>
394
72acd513
AC
395 * Makefile.in: Update dependencies for mi/ cli/ and tui/
396 directores.
342af04b 397 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
398 * Makefile.in (install-gdbtk): Move to install section.
399 (rdi-share/libangsd.a): Move to end of file.
400
fa5f27c7
AC
4012002-08-19 Andrew Cagney <ac131313@redhat.com>
402
403 * frame.c (frame_register_unwind): When a register, set addrp to
404 the register's byte.
405
5a89d8aa
MS
4062002-08-20 Michael Snyder <msnyder@redhat.com>
407
408 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
409 used locally, so move them from the target machine header to here.
410 (mips_set_processor_type, mips_register_name, mips32_next_pc,
411 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
412 Make static.
413 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
414
822e978b
AC
4152002-08-20 Andrew Cagney <cagney@redhat.com>
416
417 * NEWS: Mention that the Apollo line was made obsolete.
418 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
419 m68*-hp-hpux* obsolete.
420 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
421 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
422 * buildsym.c (make_blockvector): Make static.
423 * buildsym.h (make_blockvector): Make extern declaration obsolete.
424 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
425 (ALLDEPFILES): Remove dstread.c.
426 (dstread.o): Obsolete make rule.
427 * dstread.c: Makefile obsolete.
428 * dst.h: Ditto.
429 * config/m68k/hp300hpux.mt: Ditto.
430 * config/m68k/hp300hpux.mh: Ditto.
431 * config/m68k/hp300bsd.mt: Ditto.
432 * config/m68k/hp300bsd.mh: Ditto.
433 * config/m68k/apollo68b.mt: Ditto.
434 * config/m68k/apollo68v.mh: Ditto.
435 * config/m68k/apollo68b.mh: Ditto.
436
e41b17f0
MS
4372002-08-20 Michael Snyder <msnyder@redhat.com>
438
439 * mips-tdep.c (mips_in_return_stub): Make static.
440 (mips_gdbarch_init): Set in_solib_return_trampoline.
441 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
442
d50355b6
MS
4432002-08-20 Michael Snyder <msnyder@redhat.com>
444
445 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
446 * gdbarch.c, gdbarch.h: Regenerate.
447 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
448 Add.
449 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
450
757a7cc6
MS
4512002-08-20 Michael Snyder <msnyder@redhat.com>
452
453 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
454 (mips_gdbarch_init): Set skip_trampoline_code,
455 in_solib_call_trampoline.
456 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
457 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
458
c8001721
EZ
4592002-08-20 Elena Zannoni <ezannoni@redhat.com>
460
461 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
462
463 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
464 vector type for ev registers.
465 (e500_pseudo_register_read): New function.
466 (e500_pseudo_register_write): New function.
467 (e500_dwarf2_reg_to_regnum): New function.
468 (PPC_UISA_NOFP_SPRS): New macro.
469 (PPC_EV_REGS): New macro.
470 (PPC_GPRS_PSEUDO_REGS): New macro.
471 (registers_e500): New register set for e500.
472 (variants): Add e500 variant.
473 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
474 before setting architectural dependent variations. Initialize ev
475 registers numbers. Add case for e500 architecture. Set the
476 number of pseudo registers.
477
64366f1c
EZ
4782002-08-20 Elena Zannoni <ezannoni@redhat.com>
479
480 * rs6000-tdep.c: Clean up comments.
481
7e78f0ca
AC
4822002-08-20 Andrew Cagney <cagney@redhat.com>
483
484 * h8300-tdep.c: Re-indent file.
485
697f7479
JB
4862002-08-20 Jim Blandy <jimb@redhat.com>
487
488 * Makefile.in (LDFLAGS): Allow the configure script to establish a
489 default for this.
697f7479 490
e86ae29f
KS
4912002-08-20 Keith Seitz <keiths@redhat.com>
492
493 * breakpoints.c (watch_command_1): Use internal breakpoint
494 when setting a watchpoint_scope breakpoint.
495
216b504f
EZ
4962002-08-20 Elena Zannoni <ezannoni@redhat.com>
497
498 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
499 (build_builtin_type_vec64i): Ditto.
500 (build_builtin_type_vec128): Ditto.
501 (build_builtin_type_vec128i): Ditto.
502
f7ab6ec6
MS
5032002-08-19 Michael Snyder <msnyder@redhat.com>
504
505 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
506 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
507 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
508 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
509 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
510 CALL_DUMMY_ADDRESS): Delete.
511 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
512 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
513 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
514 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
515 push_return_address.
516 (mips_register_raw_size, mips_eabi_use_struct_convention,
517 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
518 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
519 mips_init_extra_frame_info, mips_eabi_push_arguments,
520 mips_n32n64_push_arguments, mips_push_return_address,
521 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
522 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
523
b5d1566e
MS
5242002-08-19 Michael Snyder <msnyder@redhat.com>
525
526 * mips-tdep.c (mips_frame_num_args): New function.
527 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
528 frame_saved_pc, frame_args_address, frame_locals_address,
529 frame_num_args, and frame_args_skip.
530 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
531 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
532 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
533 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
534
2f1488ce
MS
5352002-08-20 Michael Snyder <msnyder@redhat.com>
536
537 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
538 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
539 * mips-tdep.c (mips_store_struct_return): New function.
540 (mips_extract_struct_value_address): New function.
541 (mips_gdbarch_init): Set store_struct_return and
542 extract_struct_value_address.
543
41ff2da1
DC
5442002-08-20 David Carlton <carlton@math.stanford.edu>
545
546 * dwarf2read.c (dwarf2_build_psymtabs): Check that
547 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
548 (read_file_scope): Check that line_header is nonzero before
549 decoding macro information.
550
e5451d58
MK
5512002-08-20 Mark Kettenis <kettenis@gnu.org>
552
553 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
554 flag the general-purpose registers as floating-point on targets
555 that don't support the floating-point registers.
556
4a6daafa
EZ
5572002-08-20 Elena Zannoni <ezannoni@redhat.com>
558
559 * rs6000-tdep.c (altivec_register_p): Delete.
560 (rs6000_do_altivec_registers): Delete.
561 (rs6000_altivec_registers_info): Delete.
562 (rs6000_do_registers_info): Delete.
563 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
564 (rs6000_gdbarch_init): Remove setting of do_registers_info.
565
ab4327e0
EZ
5662002-08-20 Elena Zannoni <ezannoni@redhat.com>
567
568 * infcmd.c (do_registers_info): Print vector registers in hex
569 format only.
570 (print_vector_info): Check that printing registers
571 makes sense.
572 (print_float_info): Ditto.
573
cb1d2653
AC
5742002-08-20 Andrew Cagney <ac131313@redhat.com>
575
576 * mips-tdep.c (mips_gdbarch_init): Update.
577 (mips_o32_extract_return_value): Rewrite.
578 (mips_o32_store_return_value): Rewrite.
579 (mips_o32_xfer_return_value): New function.
580 (mips_xfer_register): Tweak debug print message. Allow for
581 buf_offset when dumping the value transfered.
582
dfc3d9b2
AC
5832002-08-20 Andrew Cagney <ac131313@redhat.com>
584
585 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
586 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
587 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
588 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
589 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
590
7807aa61
MS
5912002-08-14 Michael Snyder <msnyder@redhat.com>
592
593 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
594
489461e2
EZ
5952002-08-19 Elena Zannoni <ezannoni@redhat.com>
596
597 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
598 register.
599 (P): New macro to define a register as a pseudo register.
600 (R, R4, R8, R16, FR32, R64, R0): Updated.
601 (struct variant): Add new fields for number of pseudo registers
602 and number of total registers.
603 (tot_num_registers): New macro replacing....
604 (num_registers): ...deleted macro.
605 (num_registers): New function.
606 (num_pseudo_registers): New function.
607 (variants): Update all variants to intialize new fields correctly.
608 Postpone initialization of number of pseudo regs and real regs.
609 (init_variants): New function.
610 (rs6000_gdbarch_init): Initialize variants. Update calculation of
611 registers offsets.
612
fcaffe4c
DC
6132002-08-19 David Carlton <carlton@math.stanford.edu>
614
2c2738a0
DC
615 * valops.c (search_struct_field): Change error message to treat
616 return value of 0 from value_static_field as meaning that field is
617 optimized out.
618 (value_struct_elt_for_reference): Ditto.
619 * values.c (value_static_field): Treat an unresolved location the
620 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
621 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
622 enclosed. Fix PR gdb/574.
fcaffe4c
DC
623 * MAINTAINERS: Add self to Write After Approval list.
624
88658117
AC
6252002-08-19 Andrew Cagney <ac131313@redhat.com>
626
627 * mips-tdep.c (mips_xfer_register): New function.
628 (mips_n32n64_extract_return_value): Rewrite.
629 (mips_gdbarch_init): For N32 and N64, set extract_return_value
630 instead of deprecated_extract_return_value.
631
21283beb
EZ
6322002-08-19 Elena Zannoni <ezannoni@redhat.com>
633
634 * rs6000-tdep.c (TDEP): Delete macro.
635 (branch_dest): Replace use of TDEP macro with its body.
636 (rs6000_pop_frame): Ditto.
637 (rs6000_push_arguments): Ditto.
638 (rs6000_skip_trampoline_code): Ditto.
639 (rs6000_frame_saved_pc): Ditto.
640 (rs6000_frame_chain): Ditto.
641 (rs6000_register_name): Ditto.
642 (rs6000_register_byte): Ditto.
643 (rs6000_register_raw_size): Ditto.
644 (rs6000_register_virtual_type): Ditto.
645 (rs6000_register_convertible): Ditto.
646 (rs6000_convert_from_func_ptr_addr): Ditto.
647
bf072999
DJ
6482002-08-19 Daniel Jacobowitz <drow@mvista.com>
649
650 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
651 conditionally.
652 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
653 MIPS_LINUX_JB_ELEMENT_SIZE.
654 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
655 for MAX_REGISTER_RAW_SIZE arrays.
656 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
657 MIPS_LINUX_JB_ELEMENT_SIZE.
658
9b949a49
PM
6592002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
660
661 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
662
6d3e79c6
AS
6632002-08-19 Aidan Skinner <aidan@velvet.net>
664
665 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
666 ada-valprint.c ada-tasks.c.
667 (YYFILES): Add ada-exp.y.
668 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
669 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
670 (ada-exp.tab.o): New target.
671
06c0b04e
AC
6722002-08-18 Andrew Cagney <ac131313@redhat.com>
673
674 * regcache.c (regcache_xfer_part): New function.
675 (regcache_raw_read_part): New function.
676 (regcache_raw_write_part): New function.
677 (regcache_cooked_read_part): New function.
678 (regcache_cooked_write_part): New function.
679 * regcache.h (regcache_raw_read_part): Declare.
680 (regcache_raw_write_part): Declare.
681 (regcache_cooked_read_part): Declare.
682 (regcache_cooked_write_part): Declare.
683
92d1e331
DJ
6842002-08-18 Daniel Jacobowitz <drow@mvista.com>
685
686 * remote.c (remote_open_1): Add async_p.
687 (remote_async_open_1): Delete.
688 (open_remote_target): Delete.
689 (remote_open, extended_remote_open): Update calls to remote_open_1.
690 (remote_async_open, extended_remote_async_open): Call
691 remote_open_1 instead of remote_async_open_1.
692
247055de
MK
6932002-08-19 Mark Kettenis <kettenis@gnu.org>
694
695 * blockframe.c: Fix a few coding standard violations.
696
641eda39
MK
6972002-08-19 Mark Kettenis <kettenis@gnu.org>
698
0b717710
MK
699 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
700 here from ...
701 * config/i386/tm-i386sco5.h: ... here. File removed.
702 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
703
26d28e12 704 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
705 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
706 (TM_FILE): Set to tm-i386.h.
707 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
708 * config/i386/tm-i386v.h: Remove file.
709 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
710 instead of "i386/tm-i386v.h".
711 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
712 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
713 "i386/tm-i386v.h".
714 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
715 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
716 "i386/tm-i386.h".
717
d4e0bab4
MK
7182002-08-18 Mark Kettenis <kettenis@gnu.org>
719
720 * config/i386/nm-i386v.h: Add protection against
721 multiple-inclusion.
722 (i386_register_u_addr): Remove prototype.
723 (register_u_addr): New prototype.
724 (REGISTER_U_ADDR): Redefine accordingly.
725 * i386v-nat.c: Improve several comments.
726 (i386_register_u_addr): Change signature and rename to
727 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
728 ubase variable.
729
46cac009
AC
7302002-08-18 Andrew Cagney <ac131313@redhat.com>
731
732 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
733 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
734 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
735 deprecated_extract_return_value.
736 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
737 rename mips_o32o64_push_arguments.
738 (mips_gdbarch_init): Update.
739 (mips_extract_return_value): Delete.
740 (mips_o32_extract_return_value): Clone mips_extract_return_value.
741 (mips_o64_extract_return_value): Clone mips_extract_return_value.
742 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
743 (mips_n32n64_extract_return_value): Clone
744 mips_extract_return_value.
745 (mips_store_return_value): Delete.
746 (mips_o32_store_return_value): Clone mips_store_return_value.
747 (mips_o64_store_return_value): Clone mips_store_return_value.
748 (mips_eabi_store_return_value): Clone mips_store_return_value.
749 (mips_n32n64_store_return_value): Clone mips_store_return_value.
750
d2e4a39e
AS
7512002-08-18 Aidan Skinner <aidan@velvet.net>
752
0c30c098
AS
753 * ada-lang.c: Use gdb_string.h instead of <string.h>.
754 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
755
7562002-08-18 Aidan Skinner <aidan@velvet.net>
757
758 * ada-lang.c: Run through gdb_indent.sh.
759 * ada-lang.h: Run through gdb_indent.sh.
760 * ada-tasks.c: Run through gdb_indent.sh.
761 * ada-typeprint.c: Run through gdb_indent.sh.
762 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 763
01fc4e33
AC
7642002-08-18 Andrew Cagney <ac131313@redhat.com>
765
766 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
767 ABI.
768
d8ee244c
MK
7692002-08-18 Mark Kettenis <kettenis@gnu.org>
770
c38d8261
MK
771 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
772
222db64c
MK
773 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
774 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
775
c2848c82
MK
776 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
777 write_register_gen instead of write_register_bytes.
778
d8ee244c
MK
779 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
780 i[3456]-*-osf1mk* configurations have been made obsolete.
781 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
782 i[3456]86-*-osf1mk* hosts obsolete.
783 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
784 targets obsolete.
785 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
786 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
787 config/i386/i386m3.mt, config/i386/nm-m3.h,
788 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
789 config/i386/i386mk.mh, config/i386/i386mk.mt,
790 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
791 obsolete.
792 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
793 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
794 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
795
61d8d407
AC
7962002-08-18 Andrew Cagney <ac131313@redhat.com>
797
798 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
799 (hppa_value_returned_from_stack): Declare.
800 (hppa_extract_return_value): Declare.
801 * config/pa/hppa.mt: New file.
802 * configure.tgt: Recognize hppa*-*-*.
803 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
804
0c52bd59
MK
8052002-08-18 Mark Kettenis <kettenis@gnu.org>
806
807 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
808 comment.
809
b5686e99
MK
8102002-08-17 Mark Kettenis <kettenis@gnu.org>
811
812 * top.c (gdb_rl_operate_and_get_next): Make sure
813 operate-and-get-next functions correctly even when the history
814 list is completely filled.
815
c1bab85b
AC
8162002-08-18 Andrew Cagney <ac131313@redhat.com>
817
818 * MAINTAINERS (Target Instruction Set Architectures): Rename
819 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
820 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
821 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
822 already listed under Host/Native.
823
824 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
825 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
826 mips*-*-*.
827
32089c7c
AC
8282002-08-17 Andrew Cagney <ac131313@redhat.com>
829
830 * config/ia64/ia64.mt: New file.
831 * config/alpha/alpha.mt: New file.
832 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
833 ia64-linux-gnu. Mention that ia64-elf is broken.
834 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
835
b4671f85
MK
8362002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
837
838 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
839 generic_func_frame_valid instead of func_frame_valid.
840
c8edd8b4
JB
8412002-08-16 Joel Brobecker <brobecker@gnat.com>
842
843 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
844 procfs appears to be broken when debugging on multi-processor
845 machines. So enable software single stepping in order to avoid
846 using the procfs interface to do next/step operations, using
847 internal breakpoints instead.
848
849 * infrun.c (handle_inferior_event): Readjust the stop_pc by
850 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
851 make this pc address equal to the value it would have if the
852 system stepping capability was used. Also set a new flag used
853 to ensure that we don't readjust the PC one more time later.
854
855 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
856 address by DECR_PC_AFTER_BREAK when software single step is
857 in use for this architecture, as this has already been taken
858 care of in handle_inferior_event().
859
238617f6
JB
8602002-08-16 Joel Brobecker <brobecker@gnat.com>
861
862 * infrun.c (handle_inferior_event): Minor reformatting, to make
863 a rather long condition expression easier to read.
864
541a7aac
AC
8652002-08-16 Andrew Cagney <ac131313@redhat.com>
866
867 * Makefile.in (gdbtk.o): Move to end of file.
868 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
869 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
870 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
871 (gdbtk-wrapper.o, gdbres.o): Ditto.
872
f92d4a7b
AC
8732002-08-16 Andrew Cagney <ac131313@redhat.com>
874
875 * Makefile.in (copying.o): Separate out compile rule.
876 (hpux-thread.o, procfs.o, signals.o): Ditto.
877 (v850ice.o, z8k-tdep.o): Ditto.
878 (tui-file.o): Move to TUI section.
879 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
880 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
881
1cce71eb
JB
8822002-08-16 Joel Brobecker <brobecker@gnat.com>
883
884 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
885 skip_trampoline_code, for better namespace-proofing.
886
887 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
888
0851f23d
JB
8892002-08-16 Joel Brobecker <brobecker@gnat.com>
890
891 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
892
f8d40ec8
JB
8932002-08-16 Joel Brobecker <brobecker@gnat.com>
894
895 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
896 signal, check whether we hit a breakpoint before checking for a
897 single step breakpoint. Otherwise, GDB fails to notice that a
898 breakpoint has been hit when stepping onto a breakpoint.
899
63d022e0
KS
9002002-08-16 Keith Seitz <keiths@redhat.com>
901
902 * gdb-events.sh (clear_gdb_event_hooks): New function.
903 * gdb-events.c: Regenerate.
904 * gdb-events.h: Regenerate.
905
6e31adb3
AC
9062002-08-16 Andrew Cagney <ac131313@redhat.com>
907
908 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
909 not_a_sw_breakpoint.
910 * breakpoint.h (bpstat_stop_status): Add parameter names.
911
c8189ed1
GS
9122002-08-16 Grace Sainsbury <graces@redhat.com>
913
914 * remote.c (remote_insert_hw_breakpoint)
915 (remote_remove_hw_breakpoint): Fix calculation of length field
916 for Z-packet.
917
d05285fa
MS
9182002-08-15 Michael Snyder <msnyder@redhat.com>
919
466d7106
MS
920 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
921 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
922 (supply_fpregset): Ditto.
923
d05285fa
MS
924 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
925 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
926 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 927 (TARGET_READ_SP): Delete.
bf1f5b4c 928 (DO_REGISTERS_INFO): Delete.
102182a9
MS
929 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
930 Delete.
931 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
932 from macros to functions.
bf1f5b4c 933
d05285fa
MS
934 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
935 (mips_register_convertible, mips_register_convert_to_virtual,
936 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
937 (mips_read_sp): New function.
938 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
939 (mips_do_registers_info): Make static.
940 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
941 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
942 (mips_register_convert_from_type, mips_register_convert_to_type):
943 New functions.
944 (mips_gdbarch_init): Set up function_start_offset,
945 register_virtual_size, pc_in_sigtramp.
d05285fa 946
e76f1f2e
AC
9472002-08-15 Andrew Cagney <ac131313@redhat.com>
948
949 * infcmd.c (vector_info): New function.
950 (_initialize_infcmd): Add command "info vector".
951 (print_vector_info): New function.
952
953 * gdbarch.sh (PRINT_VECTOR_INFO): New method
954 * gdbarch.h, gdbarch.c: Regenerate.
955
4782dc19
AC
9562002-08-15 Andrew Cagney <ac131313@redhat.com>
957
958 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
959 ``print_all''. Only print vector registers when ``print_all''.
960
23e3a7ac
AC
9612002-08-15 Andrew Cagney <ac131313@redhat.com>
962
8e186fd6
AC
963 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
964 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
965
23e3a7ac
AC
966 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
967 Add `args' parameter.
968 * gdbarch.h, gdbarch.c: Regenerate.
969
970 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
971
972 * infcmd.c (float_info): Call print_float_info.
973 (print_float_info): New function. By default, print the
974 floating-point registers.
975
976 * arch-utils.h (default_print_float_info): Delete declaration.
977 * arch-utils.c (default_print_float_info): Delete function.
978
e0ca2bb9
MK
9792002-08-16 Mark Kettenis <kettenis@gnu.org>
980
3f733acc
MK
981 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
982 out define.
983
7d8d2918
MK
984 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
985 FRAME.
986
1c7cc583
MK
987 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
988 * configure.host: Make i[3456]86-*-aix host obsolete.
989 * configure.tgt: Make i[3456]86-*-aix target obsolete.
990 * config/i386/i386aix.mh, config/i386/i386aix.mt,
991 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
992 config/i386/xm-i386aix.h: Make files obsolete.
993 * i386aix-nat.c: Make file obsolete.
994 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
995 (i386aix-nat.o): Make target obsolete.
996
e0ca2bb9
MK
997 * config/i386/nm-gnu.h: Removed.
998 * config/i386/nm-i386gnu.h: New file.
999 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1000 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1001 Moved here from ...
1002 * config/i386/tm-i386gnu.h: ... here. Removed.
1003 * config/i386/xm-i386gnu.h: Removed.
1004 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1005 (NAT_FILE): Set to nm-i386gnu.h.
1006 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1007 * i386-tdep.c: New file.
1008 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1009 (i386gnu-tdep.o): Specify dependencies.
1010
16057ec7 10112002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1012
6b99ee2e
MK
1013 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1014 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1015 Adjust a few comments to reflect reality a bit closer.
1016 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1017 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1018 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1019 target_insert_watchpoint, target_remove_watchpoint):
1020 Move defines to ...
1021 * config/i386/nm-i386sco5.h: ... here.
1022 (kernel_u_size): Add prototype. Improve a few comments and add
1023 protection against multiple inclusion.
1024
d9a6f65c
MK
1025 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1026 out define.
1027
047eff6a
MK
1028 * uw-thread.c (SP_ARG0): Define if not already defined.
1029 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1030
dcdb1290
MK
1031 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1032
5d2d0b2a
MK
1033 * config/i386/tm-i386.h: Don't include "regcache.h".
1034
61113f8b
MK
1035 * i387-tdep.h (i387_print_float_info): New prototype.
1036 * i387-tdep.c (print_i387_value, print_i387_ext,
1037 print_i387_status_word, print_i387_control_word): Add `struct
1038 ui_file *' argument and use it for output.
1039 (i387_print_float_info): Renamed from i387_float_info. Add
1040 `struct gdbarch *' and `struct ui_file *' arguments and use the
1041 latter for output.
1042 * i386-tdep.c: Include "i387-tdep.h".
1043 (i386_gdbarch_init): Set print_float_info.
1044 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1045 (FLOAT_INFO): Remove define.
1046
46e0f506
MS
10472002-08-13 Michael Snyder <msnyder@redhat.com>
1048
1049 * mips-tdep.c (mips_push_arguments): Rename to
1050 mips_eabi_push_arguments, and tune for EABI.
1051 (MIPS_REGS_HAVE_HOME_P): Delete.
1052 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1053 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1054 Delete references to mips_regs_have_home_p.
1055
409268de
KS
10562002-08-14 Keith Seitz <keiths@redhat.com>
1057
1058 * Makefile.in (install-gdbtk): Create insight plugin directory.
1059 Install plugins.tcl file.
1060
ffc6a242
KS
10612002-08-14 Keith Seitz <keiths@redhat.com>
1062
1063 * configure.in: Move SUBDIRS to near top of the file so that
1064 --enable options may add things to it.
1065 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1066 * configure: Regenerate.
1067
ebafbe83
MS
10682002-08-13 Michael Snyder <msnyder@redhat.com>
1069
1070 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1071 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1072 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1073
32f6f25d
AC
10742002-08-13 Andrew Cagney <ac131313@redhat.com>
1075
1076 * vax-tdep.c (vax_get_saved_register): Delete function.
1077 (vax_gdbarch_init): Update.
1078 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1079 (ns32k_gdbarch_init): Update.
1080 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1081 (alpha_gdbarch_init): Update.
1082
53826de9
AC
10832002-08-13 Andrew Cagney <cagney@redhat.com>
1084
1085 * regcache.c (init_regcache_descr): Overallocate the
1086 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1087 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1088 nr_raw_registers.
1089 (set_register_cached): Add range checking assertions. Use
1090 current_regcache.
1091
16057ec7 10922002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1093
1094 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1095 numbers for MMX registers.
1096
7b4c2dce
AC
10972002-08-13 Andrew Cagney <cagney@redhat.com>
1098
1099 * i386-tdep.c (i386_gdbarch_init): Use
1100 generic_unwind_get_saved_register.
1101
1e03ad20
KB
11022002-08-13 Kevin Buettner <kevinb@redhat.com>
1103
1104 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1105 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1106 target vector.
1107 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1108 Delete. Add comment regarding this now-deleted target method.
1109
548bcbec
SC
11102002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1111
1112 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1113 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1114 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1115 real PC and the page number (if it's within the memory bank window).
1116 (m68hc11_pseudo_register_write): Likewise when saving.
1117 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1118 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1119 (m68hc11_register_raw_size): And use 32-bit for it.
1120 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1121 16K memory bank is used by the prog; also use the virtual pc.
1122
7df11f59
SC
11232002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1124
1125 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1126 (m68hc11_gdbarch_init): Install it in gdbarch.
1127 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1128 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1129 (MSYMBOL_SIZE): New for documentation.
1130 (insn_return_kind): Enum to specify how a function returns.
1131 (frame_extra_info): Cleanup and record the return mode.
1132 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1133 register in address computation.
1134 (m68hc11_get_return_insn): New to obtain the return instruction used
1135 by the function.
1136 (m68hc11_frame_init_saved_regs): Take into account the return
1137 instruction used by the function for far and interrupt functions.
1138 (m68hc11_init_extra_frame_info): Take into account page register.
1139 (m68hc11_frame_args_address): Adjust according to the return mode.
1140 (show_regs): Print page register only when it's used.
1141
5706502a
SC
11422002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1143
1144 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1145 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1146 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1147 registers.
1148 (m68hc11_register_raw_size): Likewise.
1149
28fc6740
AC
11502002-08-13 Andrew Cagney <cagney@redhat.com>
1151
1152 * i386-tdep.c (i386_register_name): Handle mmx registers.
1153 (mmx_regnum_p): New function.
1154 (i386_mmx_names): New array.
1155 (mmx_num_regs): New variable.
1156 (i386_pseudo_register_read): New function.
1157 (i386_pseudo_register_write): New function.
1158 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1159
1160 * regcache.c (regcache_raw_read_unsigned): New function.
1161 (regcache_raw_read_signed): New function.
1162 * regcache.h (regcache_raw_read_unsigned): Declare.
1163 (regcache_raw_read_signed): Declare.
1164
a378f419
AC
11652002-08-13 Andrew Cagney <cagney@redhat.com>
1166
1167 * regcache.c (regcache_raw_read_as_address): Delete function.
1168 (regcache_cooked_read_signed): New function.
1169 (regcache_cooked_read_unsigned): New function.
1170 * regcache.h (regcache_cooked_read_signed): Declare.
1171 (regcache_cooked_read_unsigned): Declare.
1172 (regcache_raw_read_as_address): Delete declaration.
1173
1174 * blockframe.c (generic_read_register_dummy): Use
1175 regcache_cooked_read_unsigned.
1176 * i386-tdep.c (i386_extract_struct_value_address): Use
1177 regcache_cooked_read_unsigned.
1178
81967506
SC
11792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1180
1181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1182 double sizes according to ELF ABI flags.
1183 (gdbarch_tdep): Record elf_flags.
1184
ffe1f3ee
SC
11852002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1186
1187 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1188 (m6812_prolog): They can appear in 68HC12 function prologue.
1189 (m68hc11_frame_chain): Cleanup.
1190
98216c5d
AC
11912002-08-12 Andrew Cagney <cagney@redhat.com>
1192
1193 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1194 declarations.
1195 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1196 (i386_linux_register_raw_size): Delete function.
1197 (i386_linux_init_abi): Update.
1198 * i386-tdep.c (i386_register_raw_size): Delete function.
1199 (i386_register_byte): Delete function.
1200 (i386_gdbarch_init): Update.
1201 (i386_register_size): Delete array.
1202 (i386_register_offset): Delete array.
1203
1204 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1205 (REGISTER_RAW_SIZE): Delete macro.
1206 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1207 (REGISTER_BYTE): Delete macro.
1208
3b19021e
AS
12092002-08-11 Aidan Skinner <aidan@velvet.net>
1210
1211 * ada-lang.c (ada_lookup_partial_symbol)
1212 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1213 prototype names so that grep ^func works properly.
1214
1215 * ada-lang.c (ada_array_element_type)
1216 (ada_lookup_partial_symbol): Fix typos in parameter list.
1217
1218 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1219 Fix prototype names so that grep ^func works properly.
1220
b063e7a2
AC
12212002-08-10 Andrew Cagney <cagney@redhat.com>
1222 Elena Zannoni <ezannoni@redhat.com>
1223 Martin M. Hunt <hunt@redhat.com>
1224
1225 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1226 (build_builtin_type_vec128i): Set the vector bit.
1227 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1228 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1229 (build_builtin_type_vec64): New function.
1230 (build_builtin_type_vec64i): New function.
1231 (build_gdbtypes): Initialize builtin_type_vec64 and
1232 builtin_type_vec64i.
1233
a7e3c2ad
AC
12342002-08-09 Andrew Cagney <cagney@redhat.com>
1235
1236 * regcache.c (regcache_dump): Compare the register offset
1237 with REGISTER_BYTE.
1238 * arch-utils.c (generic_register_byte): New function.
1239 * arch-utils.h (generic_register_byte): Declare.
1240 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1241 * gdbarch.h, gdbarch.c: Regenerate.
1242
af030b9a
AC
12432002-08-09 Andrew Cagney <cagney@redhat.com>
1244
1245 * regcache.c: Include "gdbcmd.h"
1246 (_initialize_regcache): Add commands "maintenance print
1247 registers", "maintenance print raw-registers" and "maintenance
1248 print cooked-registers".
1249 (enum regcache_dump_what): Define.
1250 (dump_endian_bytes): New function.
1251 (regcache_dump): New function.
1252 (regcache_print): New function.
1253 (maintenance_print_registers): New function.
1254 (maintenance_print_raw_registers): New function.
1255 (maintenance_print_cooked_registers): New function.
1256 * Makefile.in (regcache.o): Update dependencies.
1257
cb3d25d1
MS
12582002-08-09 Michael Snyder <msnyder@redhat.com>
1259
1260 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1261 (mips_push_arguments): Correct some comments. Use paddr_nz
1262 for printing addresses in debug output. Replace static
1263 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1264 (mips_n32n64_push_arguments): New function, cloned from
1265 mips_push_arguments and tuned for the n32/n64 ABI.
1266 (mips_push_register): Buffer needs dynamic allocation.
1267 (mips_print_register): Ditto.
1268 (do_gp_register_row): Ditto.
1269 (mips_store_return_value): Ditto.
1270 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1271
2163ab9d
DH
12722002-08-09 Don Howard <dhoward@redhat.com>
1273
1274 * memattr.c (mem_info_command): Print special case of upper bound
1275 as max CORE_ADDR + 1.
1276
b78bcb18
MS
12772002-08-08 Michael Snyder <msnyder@redhat.com>
1278
1279 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1280 returns structs by ref if they're too big to fit in two registers.
1281
ffabd70d
KB
12822002-08-09 Kevin Buettner <kevinb@redhat.com>
1283
1284 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1285 saved regs value.
1286 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1287 mips_find_saved_regs().
1288 (mips_pop_frame): Likewise.
1289
fbcdb4a3
KB
12902002-08-09 Kevin Buettner <kevinb@redhat.com>
1291
1292 * blockframe.c (frame_saved_regs_register_unwind): Revise
1293 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1294 frames are in use.
1295
3c3bea1c
GS
12962002-08-09 Grace Sainsbury <graces@redhat.com>
1297
1298 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1299 T-packets; the 'a' is not taken as a register number.
1300 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1301 (remote_stopped_data_address): New functions; add to target
1302 vector.
1303 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1304 prototypes to match other implementations of this
1305 function. replace integer argument with pointer -- the length
1306 field in the Z-packet is the length of what is pointed to or 1 if
1307 pointer is null. Add to target vector.
1308 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1309 target vector.
1310
1311 From Mark Salter:
1312 * remote.c (remote_wait): Add support to extract optional
1313 watchpoint information from T-packet. Ignore unrecognized
1314 optional info in T-packet.
1315 (remote_async_wait): Ditto.
1316
5d1d95de
CV
13172002-08-09 Corinna Vinschen <vinschen@redhat.com>
1318
1319 * cli/cli-dump.c: Change fopen modes to use binary open modes
1320 as defined in include/fopen-bin.h throughout.
1321
c86b5b38
MS
13222002-08-08 Michael Snyder <msnyder@redhat.com>
1323
1324 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1325
b30590dc
KB
13262002-08-08 Kevin Buettner <kevinb@redhat.com>
1327
1328 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1329 assertion failure by returning early after a warning.
1330
498868ed
KB
13312002-08-08 Kevin Buettner <kevinb@redhat.com>
1332
1333 * mips-tdep.c (mips_find_saved_regs): Make static.
1334 (mips_frame_init_saved_regs): New function.
1335 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1336 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1337 (mips_find_saved_regs): Delete declaration.
1338
b2dd6311
GS
13392002-08-08 Grace Sainsbury <graces@redhat.com>
1340
3c3bea1c
GS
1341 * remote.c (remote_wait, remote_async_wait): Change
1342 thread_num from int to ULONGEST.
1343 (unpack_varlen_hex): Change result parameter from
1344 int * to ULONGEST *.
b2dd6311 1345
ea47855f
AC
13462002-08-08 Andrew Cagney <ac131313@redhat.com>
1347
1348 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1349 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1350 powerpc*-*-*.
1351 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1352
69db8bae
AC
13532002-08-08 Andrew Cagney <cagney@redhat.com>
1354
1355 * gcore.c (override_derive_stack_segment): Delete variable.
1356 (preempt_derive_stack_segment): Delete function.
1357 (derive_stack_segment): Delete function.
1358 (default_derive_stack_segment): Renamed to derive_stack_segment.
1359 (override_derive_heap_segment): Delete variable.
1360 (preempt_derive_heap_segment): Delete function.
1361 (derive_heap_segment): Delete function.
1362 (default_derive_heap_segment): Rename to derive_heap_segment.
1363
cb811fe7
MS
13642002-08-06 Michael Snyder <msnyder@redhat.com>
1365
1366 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1367 * mips-tdep.c (mips_EABI_use_struct_convention,
1368 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1369 New functions. (mips_use_struct_convention): Delete.
1370 (mips_gdbarch_init): set use_gdbarch_convention.
1371
8b389c40
MS
13722002-08-06 Michael Snyder <msnyder@redhat.com>
1373
1374 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1375 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1376 mips_o32_reg_struct_has_addr): New functions.
1377 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1378
5c27f28a
AC
13792002-08-07 Andrew Cagney <ac131313@redhat.com>
1380
1381 * regcache.c (pseudo_register): Delete function.
1382 (fetch_register): Delete function.
1383 (store_register): Delete function.
1384 (regcache_raw_read, legacy_read_register_gen): Use
1385 target_fetch_registers instead of fetch_register.
1386 (legacy_write_register_gen, regcache_raw_write): Use
1387 target_store_register instead of store_register.
1388 (write_register_bytes): Ditto.
1389
1390 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1391 (STORE_PSEUDO_REGISTER): Delete.
1392 * gdbarch.h, gdbarch.c: Regenerate.
1393
5b331675
CV
13942002-08-06 Corinna Vinschen <vinschen@redhat.com>
1395
1396 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1397 write dump file binary.
1398
6acdf5c7
MS
13992002-08-05 Michael Snyder <msnyder@redhat.com>
1400
1401 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1402 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1403 (mips_gdbarch_init): Set N32 target to be mips64.
1404
b2f01c35
KB
14052002-08-06 Kevin Buettner <kevinb@redhat.com>
1406
1407 * frame.c (find_saved_register): Break out of loop once saved
1408 register address is found. Don't mention sparc in loop comment
1409 anymore.
1410
63db5580
KB
14112002-08-06 Kevin Buettner <kevinb@redhat.com>
1412
1413 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1414 mips_default_saved_regsize to 8.
1415
5e34e75e
AC
14162002-08-06 Andrew Cagney <ac131313@redhat.com>
1417
1418 * gcore.c: Do not include <sys/procfs.h>.
1419 * Makefile.in (gcore.o): Update dependencies.
1420
eb4c54a2
AC
14212002-08-06 Andrew Cagney <cagney@redhat.com>
1422
1423 * configure.tgt: Make arc-*-* obsolete.
1424 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1425 * MAINTAINERS: Make arc-elf obsolete.
1426 * arc-tdep.c: Make file obsolete.
1427 * config/arc/arc.mt: Ditto.
1428 * config/arc/tm-arc.h: Ditto.
1429
ced15480
TR
14302002-08-05 Theodore A. Roth <troth@verinet.com>
1431
c1bab85b 1432 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1433
b4743822
AC
14342002-08-05 Andrew Cagney <ac131313@redhat.com>
1435
1436 * mcore-tdep.c (mcore_gdbarch_init): Use
1437 generic_unwind_get_saved_register instead of
1438 generic_get_saved_register.
1439 * v850-tdep.c (v850_gdbarch_init): Ditto.
1440 * frv-tdep.c (frv_gdbarch_init): Ditto.
1441 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1442 * s390-tdep.c (s390_gdbarch_init): Ditto.
1443 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1444 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1445 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1446
3956d554
JB
14472002-08-05 Joel Brobecker <brobecker@gnat.com>
1448
1449 * objfiles.h: Add missing #include "symfile.h"
1450
1451 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1452
8249c0d6
AC
14532002-08-04 Andrew Cagney <ac131313@redhat.com>
1454
1455 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1456 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1457 of FIELD_BITSIZE.
1458
b9d14705
DJ
14592002-08-04 Daniel Jacobowitz <drow@mvista.com>
1460
1461 * NEWS: Cleanup and nitpick.
1462
dd73b9bb
AC
14632002-08-03 Andrew Cagney <ac131313@redhat.com>
1464
1465 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1466
043a27f8
AC
14672002-08-03 Andrew Cagney <ac131313@redhat.com>
1468
1469 * Makefile.in (gdbtk-bp.o): Update dependencies.
1470 (gdbtk-register.o): Ditto.
1471 (gdbtk-varobj.o): Ditto.
1472
46ce284d
AC
14732002-08-03 Andrew Cagney <cagney@redhat.com>
1474
1475 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1476 m68hc11_fetch_pseudo_register.
1477 (m68hc11_pseudo_register_write): Replace
1478 m68hc11_store_pseudo_register.
1479 (m68hc11_gdbarch_init): Update.
1480
b66d6d2e
AC
1481Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1482
1483 * gdbarch.sh: Include "gdb_string.h".
1484 * gdbarch.c: Regenerate.
1485
1486 * regcache.c: Include "gdb_string.h".
1487 * ax-general.c: Ditto.
1488 * varobj.c: Ditto.
1489 * std-regs.c: Ditto.
1490 * fbsd-proc.c: Ditto.
1491 * thread.c: Ditto.
1492
1493 * Makefile.in (regcache.o): Update dependencies.
1494 (thread.o, gdbarch.o): Ditto.
1495 (ax-general.o, gdbarch.o): Ditto.
1496 (varobj.o, std-regs.o): Ditto.
1497 (fbsd-proc.o): Specify dependencies.
1498
29e1842b
AC
14992002-08-02 Andrew Cagney <cagney@redhat.com>
1500
1501 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1502 regnum.
1503 (regcache_cooked_write): Ditto.
1504
68365089
AC
15052002-08-02 Andrew Cagney <ac131313@redhat.com>
1506
1507 * regcache.c (regcache_cooked_read): New function.
1508 (regcache_cooked_write): New function.
1509 (read_register_gen): Rewrite using regcache_cooked_read.
1510 (write_register_gen): Rewrite using regcache_cooked_write.
1511
1512 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1513 Declare.
1514
d8124050
AC
15152002-08-02 Andrew Cagney <cagney@redhat.com>
1516
1517 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1518 Replace the architecture methods register_read and register_write.
1519 * gdbarch.h, gdbarch.c: Regenerate.
1520 * regcache.c (init_regcache_descr): Update.
1521 (read_register_gen): Update.
1522 (write_register_gen): Update.
1523 (supply_register): Update comment.
1524
1525 * sh-tdep.c (sh_gdbarch_init): Update.
1526 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1527 `regcache' and `gdbarch' parameters. Make `buffer' a void
1528 pointer. Update code.
1529 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1530 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1531 void pointer. Update code.
1532 (sh64_register_write): Delete.
1533 (sh4_register_read): Delete.
1534 (sh64_register_read): Delete.
1535 (sh4_register_write): Delete.
1536 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1537 void pointer, `to' parameter a void pointer.
1538 (sh_sh64_register_convert_to_raw): Ditto.
1539
a6425924
KB
15402002-08-01 Kevin Buettner <kevinb@redhat.com>
1541
1542 * mips-tdep.c (mips_register_virtual_type): Use architecture
1543 invariant return values.
1544
ff5922b5
AC
15452002-08-01 Andrew Cagney <cagney@redhat.com>
1546
1547 * linux-proc.c: Include "gdb_string.h".
1548 * Makefile.in (linux-proc.o): Update dependency list.
1549
32a6503c
KB
15502002-08-01 Kevin Buettner <kevinb@redhat.com>
1551
1552 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1553 comment.
1554
ccaa32c7
GS
15552002-08-01 Grace Sainsbury <graces@redhat.com>
1556
1557 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1558 to_insert_watchpoint, to_remove_watchpoint,
1559 to_stopped_by_watchpoint, to_stopped_data_address,
1560 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1561 target vecctor. Define their corresponding macros so they call
1562 them.
1563
1564 * target.c: Add default and debug versions of for
1565 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1566 to_insert_watchpoint, to_remove_watchpoint,
1567 to_stopped_by_watchpoint, to_stopped_data_address,
1568 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1569
78fde5f8
KB
15702002-08-01 Kevin Buettner <kevinb@redhat.com>
1571
1572 * mips-tdep.c (mips_register_virtual_type): New function.
1573 (mips_gdbarch_init): Register mips_register_virtual_type()
1574 with gdbarch machinery.
1575 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1576 this file instead of tm-bigmips.h.
1577 (MIPS_REGSIZE): Delete this macro.
1578 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1579 multiarch version in mips-tdep.c will be found.
1580
db034ac5
AC
15812002-08-01 Andrew Cagney <cagney@redhat.com>
1582
1583 * NEWS: Menion that CHILL has been made obsolete.
1584
1585 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1586 * stabsread.c (read_range_type): Ditto.
1587 * gdbtypes.h: Ditto.
1588 * language.c (binop_type_check): Ditto.
1589 (binop_result_type): Ditto.
1590 (integral_type): Ditto.
1591 (character_type): Ditto.
1592 (string_type): Ditto.
1593 (boolean_type): Ditto.
1594 (structured_type): Ditto.
1595 (lang_bool_type): Ditto.
1596 (binop_type_check): Ditto.
1597 * language.h (_LANG_chill): Ditto.
1598 * dwarfread.c (set_cu_language): Ditto.
1599 * dwarfread.c (CHILL_PRODUCER): Ditto.
1600 * dwarfread.c (handle_producer): Ditto.
1601 * expression.h (enum exp_opcode): Ditto.
1602 * eval.c: Ditto for comments.
1603 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1604 * expprint.c (print_subexp): Ditto.
1605 (print_subexp): Ditto.
1606 * valops.c (value_cast): Ditto.
1607 (search_struct_field): Ditto.
1608 * value.h (COERCE_VARYING_ARRAY): Ditto.
1609 * symfile.c (init_filename_language_table): Ditto.
1610 (add_psymbol_with_dem_name_to_list): Ditto.
1611 * valarith.c (value_binop): Ditto.
1612 (value_neg): Ditto.
1613 * valops.c (value_slice): Ditto.
1614 * symtab.h (union language_specific): Ditto.
1615 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1616 (SYMBOL_DEMANGLED_NAME): Ditto.
1617 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1618 * defs.h (enum language): Ditto.
1619 * symtab.c (got_symtab): Ditto.
1620 * utils.c (fprintf_symbol_filtered): Ditto.
1621
1622 * ch-typeprint.c: Make file obsolete.
1623 * ch-valprint.c: Make file obsolete.
1624 * ch-lang.h: Make file obsolete.
1625 * ch-exp.c: Make file obsolete.
1626 * ch-lang.c: Make file obsolete.
1627
1628 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1629 CHILL_LIB.
1630 (TARGET_FLAGS_TO_PASS): Ditto.
1631 (CHILLFLAGS): Obsolete.
1632 (CHILL): Obsolete.
1633 (CHILL_FOR_TARGET): Obsolete.
1634 (CHILL_LIB): Obsolete.
1635 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1636 ch-valprint.c.
1637 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1638 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1639 ch-lang.o.
1640 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1641 targets.
1642
8aaf0b47
JB
16432002-07-31 Joel Brobecker <brobecker@gnat.com>
1644
1645 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1646 This does not change anything at the moment, but will be helpful
1647 later when full Ada support is integrated.
1648
f3a7b3a5
KB
16492002-07-31 Kevin Buettner <kevinb@redhat.com>
1650
1651 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1652 help message.
1653
fb850278
KB
16542002-07-31 Kevin Buettner <kevinb@redhat.com>
1655
1656 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1657 and save it in a local variable. Use variable in later test.
1658
e3bddbfa
KB
16592002-07-31 Kevin Buettner <kevinb@redhat.com>
1660
1661 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1662 test. (Thanks to Daniel Jacobowitz.)
1663
28d169de
KB
16642002-07-31 Kevin Buettner <kevinb@redhat.com>
1665
1666 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1667 (mips_abi_strings): Add "n64".
1668 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1669
7fe7e44e
KB
16702002-07-31 Kevin Buettner <kevinb@redhat.com>
1671
1672 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1673 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1674
c6caf090
KB
16752002-07-31 Kevin Buettner <kevinb@redhat.com>
1676
1677 * utils.c (host_pointer_to_address, address_to_host_pointer):
1678 Use gdb_assert() instead of explicit call to internal_error().
1679
c41669e0
KB
16802002-07-30 Kevin Buettner <kevinb@redhat.com>
1681
1682 * Makefile.in (rs6000-nat.o): Update dependencies.
1683
1684 From Nicholas Duffek:
1685 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1686 (aix-thread.o): New rule.
1687 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1688 * config/powerpc/aix432.mh: New file.
1689
2fda4977
DJ
16902002-07-30 Daniel Jacobowitz <drow@mvista.com>
1691
1692 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1693 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1694 (fetch_core_registers, ppc_linux_supply_gregset)
1695 (ppc_linux_supply_fpregset): New functions.
1696 (ppc_linux_regset_core_fns): New.
1697 (_initialize_ppc_linux_tdep): Call add_core_fns.
1698 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1699 and ppc_linux_supply_gregset.
1700 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1701 (supply_fpregset): Call ppc_linux_supply_fpregset.
1702 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1703 corelow.o.
1704 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1705
729051e6
DJ
17062002-07-30 Daniel Jacobowitz <drow@mvista.com>
1707
1708 * symtab.c (lookup_symbol): Demangle before lowercasing.
1709
5f8a3188
AC
17102002-07-30 Andrew Cagney <ac131313@redhat.com>
1711
1712 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1713 declaration.
1714 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1715 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1716 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1717 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1718 "gdb_string.h".
1719 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1720 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1721 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1722 (avr-tdep.o, mon960-rom.o): Ditto.
1723 (aout_stabs_gnu_h): Define.
1724 (symtab_h): Remove $(gdb_obstack_h).
1725
67f07146
JB
17262002-07-30 Jim Blandy <jimb@redhat.com>
1727
1728 Patch from David Carlton <carlton@math.stanford.edu>:
1729 * gdbinit.in: Move the `dir' commands that add GDB's own source
1730 directory to the search path to the end, so that the `gdb' source
1731 directory will be searched first.
1732
04ea0df1
AC
17332002-07-29 Andrew Cagney <ac131313@redhat.com>
1734
1735 * gdb_obstack.h: New file.
1736 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1737 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1738 * objfiles.h: Include "gdb_obstack.h".
1739 * Makefile.in (gdb_obstack_h): Define.
1740 (symtab_h): Add $(gdb_obstack_h).
1741 (objfiles_h): Add $(gdb_obstack_h).
1742
1743 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1744 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1745 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1746 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1747 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1748 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1749 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1750 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1751
1752 * Makefile.in (bcache.o): Update dependencies.
1753 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1754 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1755 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1756 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1757 (stabsread.o, symfile.o, symmisc.o): Ditto.
1758 (symtab.o, typeprint.o, macroexp.o): Ditto.
1759 (macrotab.o, mdebugread.o): Ditto.
1760 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1761 (coff_ecoff_h, aout_aout64_h): Define.
1762 (aout_stabs_gnu_h, libaout_h): Define.
1763
d138e37a
AC
17642002-07-29 Andrew Cagney <cagney@redhat.com>
1765
1766 * regcache.c (struct regcache_descr): Rename nr_registers to
1767 nr_cooked_registers. Revise comments describing the structure
1768 member fields.
1769 (init_regcache_descr): Update.
1770 (init_legacy_regcache_descr): Update.
1771 (read_register_gen, write_register_gen): When a cooked register in
1772 the raw register range, directly access the value from the raw
1773 register cache.
1774
460e6ec3
AC
17752002-07-29 Andrew Cagney <ac131313@redhat.com>
1776
1777 * z8k-tdep.c: Do not include "obstack.h".
1778 * h8300-tdep.c, h8500-tdep.c: Ditto.
1779 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1780 * valprint.c, v850-tdep.c: Ditto.
1781 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1782 * mn10200-tdep.c: Ditto.
1783
1784 * Makefile.in (z8k-tdep.o): Update dependencies.
1785 (m68hc11-tdep.o, valprint.o): Ditto.
1786 (v850-tdep.o, d10v-tdep.o): Ditto.
1787 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1788 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1789 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1790 (sh_opc_h, gdb_sim_sh_h): Define.
1791 (elf_sh_h, elf_bfd_h): Define.
1792 (opcode_m68hc11_h): Define.
1793 (OPCODES_SRC, OPCODES_DIR): define.
1794 (OPCODES): Use $(OPCODES_DIR).
1795 (gdb_sim_d10v_h): Rename sim_d10v_h.
1796 (gdb_sim_arm_h): Rename sim_arm_h.
1797
790c9cf0
KB
17982002-07-26 Kevin Buettner <kevinb@redhat.com>
1799
1800 * utils.c (host_pointer_to_address, address_to_host_pointer):
1801 Change internal_error() message to indicate function responsible
1802 for the error.
1803
9647fa49
KB
18042002-07-26 Kevin Buettner <kevinb@redhat.com>
1805
1806 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1807 calls to local_hex_string_custom().
1808
dabbe2c0
KB
18092002-07-26 Kevin Buettner <kevinb@redhat.com>
1810
1811 * irix5-nat.c: Move IRIX shared library support from here...
1812 * solib-irix.c: ...to here. Revised substantially to work with
1813 generic solib framework.
1814
b96d0a4e
KB
1815 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1816 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1817 * mips-irix-tdep.c: New file.
1818
313fb2f6
KB
1819 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1820 (mips-irix-tdep.o, solib-irix.o): New rules.
1821 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1822 solib-irix.o.
1823 * config/mips/irix6.mt (TDEPFILES): Likewise.
1824 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1825
ab2eaf26
KB
18262002-07-26 Kevin Buettner <kevinb@redhat.com>
1827
177e4768 1828 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1829 disabled (via ``#if 0'') includes.
1830
7244546a
KB
18312002-07-26 Kevin Buettner <kevinb@redhat.com>
1832
1833 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1834 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1835 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1836 Add support for the fpscr register.
1837 * rs6000-nat.c (regmap, fetch_inferior_registers)
1838 (store_inferior_registers, fetch_core_registers): Likewise.
1839
dd7be90a
KB
18402002-07-26 Kevin Buettner <kevinb@redhat.com>
1841
1842 * rs6000-nat.c (language.h): Include.
1843 (special_regs): Delete this array.
1844 (regmap): New function.
1845 (fetch_register, store_register): Use regmap() to map gdb
1846 register numbers to ptrace register numbers. Also, use
1847 outputs from regmap() to make decisions regarding type of
1848 ptrace() call to make. In particular, don't compare against
1849 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1850 (fetch_inferior_registers, store_inferior_registers): Where
1851 possible, obtain register numbers from tdep struct. Don't
1852 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1853 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1854 (LAST_UISA_SP_REGNUM): Delete.
1855
11bf77db
KB
18562002-07-25 Kevin Buettner <kevinb@redhat.com>
1857
1858 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1859 (fetch_registers, store_register, fetch_core_registers): Don't
1860 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1861 regcache_collect() as appropriate.
1862 (find_toc_address): Format hex address with local_hex_string().
1863
06afebeb
AC
18642002-07-25 Andrew Cagney <ac131313@redhat.com>
1865
1866 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1867 bfd/elf32-frv.c.
1868
8c554d79
TT
18692002-07-24 Tom Tromey <tromey@redhat.com>
1870
1871 * jv-exp.y: Marked all strings with _().
1872 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1873 internal_error.
1874 (MethodInvocation, CastExpression, parse_number, yyerror,
1875 java_type_from_name, push_expression_name, yylex): Typo fixes.
1876
e4c242d9
DJ
18772002-07-24 Daniel Jacobowitz <drow@mvista.com>
1878
1879 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1880 (tee_file_flush, tee_file_write, tee_file_fputs)
1881 (tee_file_isatty): New.
1882 * ui-file.h (tee_file_new): Add prototype.
1883
ebf56fd3
AS
18842002-07-24 Aidan Skinner <aidan@velvet.net>
1885
1886 * ada-lang.c: Change k&r style function definitions to prototyped
1887 form.
1888 * ada-typeprint.c: Change k&r style function definitions to prototyped
1889 form.
1890 * ada-valprint.c: Change k&r style function definitions to prototyped
1891 form.
1892
7fb623f7
AC
18932002-07-24 Andrew Cagney <cagney@redhat.com>
1894
1895 * README: Remove reference to remote-bug.
1896 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1897 remote-bug.c.
1898 (m88k-nat.o): Delete rule.
1899 (m88k-tdep.o): Delete rule.
1900 (remote-bug.o): Delete rule.
1901 * MAINTAINERS: Mark as obsolete.
1902 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1903 * m88k-tdep.c: Make file obsolete.
1904 * config/m88k/m88k.mh: Ditto.
1905 * config/m88k/delta88v4.mh: Ditto.
1906 * config/m88k/delta88v4.mt: Ditto.
1907 * config/m88k/delta88.mt: Ditto.
1908 * config/m88k/delta88.mh: Ditto.
1909 * remote-bug.c: Ditto.
1910 * config/m88k/tm-delta88.h: Ditto.
1911 * config/m88k/nm-delta88v4.h: Ditto.
1912 * config/m88k/xm-delta88.h: Ditto.
1913 * config/m88k/xm-dgux.h: Ditto.
1914 * config/m88k/tm-m88k.h: Ditto.
1915 * config/m88k/nm-m88k.h: Ditto.
1916 * config/m88k/tm-delta88v4.h: Ditto.
1917 * m88k-nat.c: Ditto.
1918 * cxux-nat.c: Ditto.
1919 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1920 and m88*-*-* obsolete.
1921 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1922 m88*-*-* obsolete.
1923
37611a2b
AC
19242002-07-24 Andrew Cagney <cagney@redhat.com>
1925
1926 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1927 constant. Same for local pointer variables.
1928 (extract_signed_integer): Ditto.
1929 * defs.h (extract_unsigned_integer): Update.
1930 (extract_signed_integer): Update.
1931
1aaa5f99
AC
19322002-07-24 Andrew Cagney <cagney@redhat.com>
1933
1934 * regcache.c (regcache_raw_write): Change buf parameter to a
1935 constant void pointer.
1936 (regcache_raw_read): Change buf parameter to a void pointer.
1937 (legacy_write_register_gen): Change myaddr parameter a constant
1938 void pointer.
1939 (supply_register): Change val parameter to a const void pointer.
1940 * regcache.h (regcache_raw_write): Update declaration.
1941 (regcache_raw_read): Update declaration.
1942 (supply_register): Update declaration.
1943
b4f5539f
TT
19442002-07-24 Tom Tromey <tromey@redhat.com>
1945
1946 * defs.h (gdb_readline_wrapper): Declare.
1947 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1948 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1949 * top.c (gdb_readline_wrapper): New function.
1950 (command_line_input): Use it.
1951
0818c12a
AC
19522002-07-24 Andrew Cagney <cagney@redhat.com>
1953
1954 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1955 regcache_read and regcache_write.
1956 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1957 * regcache.c: Update.
1958 * sh-tdep.c (sh64_push_arguments): Update comment.
1959 (sh_pseudo_register_read): Update.
1960 (sh_pseudo_register_write): Update.
1961 (sh4_register_read): Update.
1962 (sh4_register_write): Update.
1963 (sh64_pseudo_register_read): Update.
1964 (sh64_pseudo_register_write): Update.
1965 (sh64_register_read): Update.
1966 (sh64_register_write): Update.
1967 * i386-tdep.c (i386_extract_return_value): Update.
1968 (i386_extract_struct_value_address): Update.
1969 (i386_extract_return_value): Update.
1970 * blockframe.c (generic_read_register_dummy): Update.
1971 (generic_call_dummy_register_unwind): Update
1972 * infrun.c (write_inferior_status_register): Update.
1973
f7321c06
JB
19742002-07-23 Jim Blandy <jimb@redhat.com>
1975
1976 * parser-defs.h (expression_context_pc): Make this extern.
1977 (Thanks to Michael Snyder.)
1978
2037aebb
AC
19792002-07-23 Andrew Cagney <ac131313@redhat.com>
1980
1981 GDB 5.2.1 released from 5.2 branch.
1982 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1983 * README: Update to mention 5.2.1.
1984
66504d44
MS
19852002-07-23 Mark Salter <msalter@redhat.com>
1986
1987 * remote.c (remote_read_bytes): Fix check for error.
1988
27bae383
KB
19892002-07-22 Kevin Buettner <kevinb@redhat.com>
1990
1991 * aix-thread.c (language.h): Include.
1992 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1993 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1994 Print newlines at end of debug messages.
1995 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1996 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1997
19982002-07-22 Kevin Buettner <kevinb@redhat.com>
1999
2000 * aix-thread.c (ppc-tdep.h): Include.
2001 (special_register_p): New function.
2002 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2003 (store_regs_user_thread): Use register number information from
2004 gdbarch_tdep struct instead of hardcoded offsets relative to
2005 FIRST_UISA_SP_REGNUM.
2006 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2007 special_register_p() instead of using FPLAST_REGNUM and
2008 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2009 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2010 will be MQ's register number.
2011
20122002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2013
2014 * aix-thread.c (ops): Rename to aix_thread_ops.
2015 (base_ops): Rename to base_target.
2016 (ops_attach): Rename to aix_thread_attach.
2017 (ops_detach): Rename to aix_thread_detach.
2018 (ops_resume): Rename to aix_thread_detach.
2019 (ops_wait): Rename to aix_thread_wait.
2020 (ops_kill): Rename to aix_thread_kill.
2021 (init_ops): Rename to init_aix_thread_ops.
2022 (ops_fetch_register): Rename to aix_thread_fetch_register.
2023 (ops_store_register): Rename to aix_thread_store_register.
2024 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2025 (ops_thread_alive): Rename to aix_thread_thread_alive.
2026 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2027 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2028 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2029 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2030 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2031 (store_regs_lib): Rename to store_regs_user_thread.
2032 (store_regs_kern): Rename to store_regs_kernel_thread.
2033
27bae383 20342002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2035
2036 * aix-thread.c (ops_prepare_to_store): Eliminate.
2037 (init_ops): Don't initialize ops.prepare_to_store.
2038 (store_regs_kern): Pre-fetch register buffers from child,
2039 because some registers may not be in the cache. Copy
2040 regs from register cache only if they are cached.
2041 (store_regs_lib): Copy regs from register cache only
2042 if they are cached.
2043 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2044 fill_gprs64): Ditto.
2045
61c5da0b
KB
20462002-07-22 Kevin Buettner <kevinb@redhat.com>
2047
2048 * aix-thread.c (gdb_assert.h): Include.
2049 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2050 register sizes (from register cache) match size of buffer holding
2051 register data.
2052 (fill_sprs32): Change parameter types to match those in the ptrace()
2053 buffer.
2054 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2055 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2056
20572002-07-22 Michael Snyder <msnyder@redhat.com>
2058
2059 * aix-thread.c (supply_sprs64): Cosmetic change.
2060 (supply_sprs32): Cosmetic change.
2061 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2062 (fill_sprs64): Use regcache_collect instead of read_register.
2063 (store_regs_lib): Use regcache_collect instead of
2064 read_register. Use fill_sprs32 instead of fill_sprs64,
2065 if debugging a 32-bit architecture.
2066 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2067 out of the register cache, instead of passing a pointer into
2068 the register cache directly to ptrace. Use regcache_collect
2069 insteaad of read_register.
2070 (ops_prepare_to_store): Use target_read_registers instead
2071 of read_register_bytes.
2072
36479eb1
AS
20732002-07-20 Aidan Skinner <aidan@velvet.net>
2074
2075 * MAINTAINERS: Add self under write after approval.
2076
80ae6ee2
AS
20772002-07-20 Aidan Skinner <aidan@velvet.net>
2078
2079 * ada-tasks.c: Change k&r style function definitions to prototyped
2080 form.
2081
8a8ab2b9
AC
20822002-07-19 Andrew Cagney <ac131313@redhat.com>
2083
2084 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2085 * x86-64-tdep.c: Include "objfiles.h".
2086 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2087 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2088
fb16b900
ML
20892002-07-17 Michal Ludvig <michal@suse.cz>
2090
2091 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2092 (update_context): Initialise cfa variable.
2093
0fe7bf7b
MS
20942002-07-17 Michael Snyder <msnyder@redhat.com>
2095
2096 * aix-thread.c: Shorten some long lines.
2097 Bring comments into line with code spec.
2098
488f131b
JB
20992002-07-18 Joel Brobecker <brobecker@gnat.com>
2100
2101 * infrun.c: Re-indent using gdb_indent.sh.
2102
46c415d2
JB
21032002-07-18 Joel Brobecker <brobecker@gnat.com>
2104
2105 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2106 Leave the indentation temporarily untouched, to minimize the diffs.
2107
cdecafbe
EZ
21082002-07-18 Elena Zannoni <ezannoni@redhat.com>
2109
2110 * stabsread.c: Make os9k sections of the code obsolete,
2111 for real this time.
2112 * stabsread.h: Make os9k sections of the code obsolete.
2113
7b6aa020
ML
21142002-07-18 Michal Ludvig <mludvig@suse.cz>
2115
09ec9b38
ML
2116 * linux-low.c (regsets_store_inferior_registers): Add free()
2117 at the end of a loop to prevent memory leak.
2118 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2119 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2120 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2121 line a comment.
4894ac5d 2122 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2123
233282cd
JB
21242002-07-17 Jim Blandy <jimb@redhat.com>
2125
2126 * macrocmd.c (info_macro_command): Remove newline from error
2127 message.
2128
7b6aa020 21292002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2130
2131 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2132 (sh_gdbarch_init): Use it for sh-dsp.
2133
f7ef9339
KB
21342002-07-16 Kevin Buettner <kevinb@redhat.com>
2135
2136 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2137 64-bit DWARF2 format.
2138
8dd72958
JB
21392002-07-16 Joel Brobecker <brobecker@gnat.com>
2140
2141 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2142 <sys/proc.h> when not available.
2143
a99a9e1b
AC
21442002-07-16 Andrew Cagney <ac131313@redhat.com>
2145
2146 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2147 * stabsread.c: Make os9k sections of the code obsolete.
2148 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2149 * config/i386/i386os9k.mt: Make file obsolete.
2150 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2151 (COMMON_OBS): Remove os9kread.o
2152 (SFILES): Remove os9kread.c.
2153 (os9kread.o, remote-os9k.o): Make target obsolete.
2154 * remote-os9k.c: Make file obsolete.
2155 * os9kread.c: Make file obsolete.
2156 * Makefile.in
2157
7a3085c1
AC
21582002-07-16 Andrew Cagney <ac131313@redhat.com>
2159
2160 * NEWS: Mention that the FR30 has been made obsolete.
2161 * fr30-tdep.c: Make file obsolete.
2162 * config/fr30/tm-fr30.h: Ditto.
2163 * config/fr30/fr30.mt: Ditto.
2164 * configure.tgt: Make fr30-*-elf obsolete.
2165 * MAINTAINERS: Make fr30-elf obsolete.
2166
28a93f5a
PM
21672002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2168
2169 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2170 found is not inside a section.
2171
be006b8b
KB
21722002-07-15 Kevin Buettner <kevinb@redhat.com>
2173
2174 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2175 strerror().
2176 (pdc_realloc): Use xrealloc() instead of realloc().
2177
14fa3751
KB
21782002-07-15 Kevin Buettner <kevinb@redhat.com>
2179
2180 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2181 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2182 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2183 macros.
2184
42cc437f
KB
21852002-07-15 Kevin Buettner <kevinb@redhat.com>
2186
2187 * aix-thread.c (ptrace_check): Eliminate goto.
2188 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2189 problem.
2190
8e2c28d4
KB
21912002-07-15 Kevin Buettner <kevinb@redhat.com>
2192
2193 * aix-thread.c (gdbcmd.h): Include.
2194 (DEBUG, DBG, DBG2, dbg): Eliminate.
2195 (debug_aix_thread): New static global.
2196 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2197 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2198 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2199 invocations to DBG and DBG2 macros to test against
2200 ``debug_aix_thread'' and call fprintf_unfiltered().
2201 (_initialize_aix_thread): Add new command "set debug aix-thread".
2202
30413464
AC
22032002-07-15 Andrew Cagney <ac131313@redhat.com>
2204
2205 From Gerhard Tonn <TON@de.ibm.com>:
2206 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2207 instead of supply_register.
2208
7c43edc1
AC
22092002-07-15 Andrew Cagney <ac131313@redhat.com>
2210
2211 * dwarf2cfi.c: Include "gdb_assert.h".
2212 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2213 non-NULL.
2214 (update_context): Do not use __func__. Add missing ``break''.
2215 (update_context): Do not use __func__.
2216
9364a0ef
EZ
22172002-07-15 Elena Zannoni <ezannoni@redhat.com>
2218
2219 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2220 and its setting. Set gdbarch instruction printing functions
2221 directly. For non-rs6000 case use new function
2222 gdb_print_insn_powerpc.
2223 (gdb_print_insn_powerpc): New function.
2224
3fbeef0b
AC
22252002-07-13 Andrew Cagney <ac131313@redhat.com>
2226
92eb23c5 2227 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2228 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2229 * configure.tgt: Mark d30v-*-* as obsolete.
2230 * d30v-tdep.c: Mark file as obsolete.
2231 * config/d30v/d30v.mt: Ditto.
2232 * config/d30v/tm-d30v.h: Ditto.
2233
aacb1f0a
AS
22342002-07-13 Aidan Skinner <aidan@velvet.net>
2235
2236 * ada-tasks.c (add_task_entry): replace calls to
2237 malloc() with xmalloc
2238 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2239
2240 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2241 ada_finish_decode_line_1, all_sals_for_line
2242 ada_breakpoint_rewrite): replace calls to free() with xfree()
2243
c11d79f2
KB
22442002-07-12 Kevin Buettner <kevinb@redhat.com>
2245
2246 From Nicholas Duffek (with minor changes by Martin Hunt,
2247 Louis Hamilton, and Kevin Buettner):
2248 * aix-thread.c: New file.
2249
8e19ed76
PS
22502002-07-12 Petr Sorfa <petrs@caldera.com>
2251
2252 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2253 complaint for invalid attribute class or form.
2254 (read_func_scope): DW_AT_frame_base
2255 better handling of DW_AT_block*.
2256 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2257 better handling of DW_AT_block*.
2258 (read_common_block): DW_AT_location
2259 better handling of DW_AT_block*.
2260 (read_partial_die): DW_AT_location better handling
2261 of DW_AT_block*.
2262 (new_symbol): DW_AT_external better handling of
2263 DW_AT_block*. Proper initialization of variable
2264 "addr".
2265 (attr_form_is_block): New function that returns true
2266 if the attribute's form is of DW_FORM_block*.
2267
295401f7
DJ
22682002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2269
2270 * valops.c (find_method_list): Remove comment about
2271 removed STATIC_MEMFUNCP argument.
2272 (value_find_oload_method_list): Likewise.
2273
e42dc924
KB
22742002-07-12 Kevin Buettner <kevinb@redhat.com>
2275
2276 From Nicholas Duffek:
2277 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2278 target_new_objfile_hook.
2279
6904b546
KB
22802002-07-12 Kevin Buettner <kevinb@redhat.com>
2281
2282 From Nicholas Duffek:
2283 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2284 csect.
2285
53fe9346
AC
22862002-07-12 Andrew Cagney <cagney@redhat.com>
2287
2288 * MAINTAINERS: Mention --enable-sim-build-warnings.
2289 (m68hc11-elf): Disable sim build warnings.
2290 (m32r-elf): Mark as broken obsolete candidate.
2291 (x86_64-linux-gnu): Mark as buildable with -Werror.
2292 (arm-elf): Change -w to ``,'' which enables warnings but not
2293 -Werror.
2294
af5f3db6
AC
22952002-07-12 Andrew Cagney <ac131313@redhat.com>
2296
2297 * bcache.h: Update copyright.
2298 (struct bstring, struct bcache): Move definition to "bcache.c".
2299 Replaced by opaque declaration.
2300 (bcache_xfree): Replace free_bcache.
2301 (bcache_xmalloc, bcache_memory_used): Declare.
2302
2303 * bcache.c: Update copyright.
2304 (struct bstring, struct bcache): Moved to here from "bcache.h".
2305 Update comments.
2306 (bcache_xmalloc, bcache_memory_used): New functions.
2307 (bcache_xfree): Replace function free_bcache.
2308
2309 * Makefile.in (objfiles.o): Add $(bcache_h).
2310 (objfiles_h): Remove $(bcache_h).
2311 (symfile.o): Add $(bcache_h).
2312
2313 * symmisc.c: Update copyright.
2314 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2315 (print_objfile_statistics): Use bcache_memory_used.
2316
2317 * symfile.c: Include "bcache.h".
2318 (reread_symbols): Use bcache_xfree.
2319 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2320 (add_psymbol_to_list): Pass psymbol_cache by value.
2321 (add_psymbol_with_dem_name_to_list): Ditto.
2322
2323 * objfiles.h: Update copyright.
2324 (struct bcache): Declare opaque. Do not include "bcache.h".
2325 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2326 bcache'' pointers.
2327 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2328
2329 * objfiles.c: Include "bcache.h". Update copyright.
2330 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2331 macro_cache.
2332 (free_objfile): Use bcache_xfree.
2333
444199e7
GS
23342002-07-11 Grace Sainsbury <graces@redhat.com>
2335
2336 * monitor.c (monitor_fetch_register): Make name a constant.
2337 (monitor_store_register): Same.
2338
261397f8
DJ
23392002-07-11 Daniel Jacobowitz <drow@mvista.com>
2340
2341 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2342 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2343 (finish_block) For non-function blocks, hash the symbol table. For
2344 function blocks, mark the symbol table as unhashed.
2345 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2346 (msymbol_hash_iw): Likewise.
2347 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2348 value.
2349 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2350 (lookup_minimal_symbol): Likewise for both.
2351 * symtab.h (struct block): Add `hashtable' flag. Comment the
2352 hashtable.
2353 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2354 (ALL_BLOCK_SYMBOLS): Update.
2355 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2356 (struct symbol): Add `hash_next' pointer.
2357 * symtab.c (lookup_block_symbol): Search using the hash table when
2358 possible.
2359 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2360 (search_symbols, find_addr_symbol): Likewise.
2361
2362 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2363 (read_dst_symtab): Likewise.
2364 * jv-lang.c (get_java_class_symtab): Likewise.
2365 * mdebugread.c: Include "gdb_assert.h".
2366 (shrink_block): Assert that the block being modified is not hashed.
2367 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2368 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2369 symbols.
2370 (dump_symtab): Recognize hashed blocks.
2371 * printcmd.c (print_frame_args): Assert that function blocks do not
2372 have hashed symbol tables.
2373 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2374 (fill_in_ada_prototype, debug_print_block): Likewise.
2375 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2376
6f0eaa01
CV
23772002-07-11 Corinna Vinschen <vinschen@redhat.com>
2378
2379 * stack.c (print_frame): Use result of frame_address_in_block()
2380 instead of fi->pc when evaluating symbols.
2381 (backtrace_command_1): Ditto.
2382
a208b0cb
AC
23832002-07-11 Andrew Cagney <cagney@redhat.com>
2384
2385 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2386 Make static.
2387
2388 * arm-tdep.c (arm_register_name): Make return type constant.
2389
a6b6b089
AC
23902002-07-10 Andrew Cagney <ac131313@redhat.com>
2391
5ae5f592
AC
2392 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2393 prototype.
2394 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2395 * s390-tdep.c (s390_fp_regnum): Ditto.
2396 (s390_read_fp): Ditto.
2397 (s390_pop_frame): Ditto.
2398 (_initialize_s390_tdep): Ditto.
2399 * remote.c (get_remote_state): Ditto.
2400 * procfs.c (mappingflags): Ditto.
2401 * memattr.c (_initialize_mem): Ditto.
2402 * mcore-tdep.c (mcore_pop_frame): Ditto.
2403 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2404 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2405 * language.c (set_case_str): Ditto.
2406 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2407 * frv-tdep.c (new_variant): Ditto.
2408 (frv_stopped_data_address): Ditto.
2409 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2410 (context_alloc): Ditto.
2411 (frame_state_alloc): Ditto.
2412 (unwind_tmp_obstack_init): Ditto.
2413 (unwind_tmp_obstack_free): Ditto.
2414 (cfi_read_fp): Ditto.
2415 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2416 (cris_pop_frame): Ditto.
2417 * c-lang.c (scanning_macro_expansion): Ditto.
2418 (finished_macro_expansion): Ditto.
2419 (c_preprocess_and_parse): Ditto.
2420 * gdbarch.sh: Ditto.
2421 * gdbarch.h, gdbarch.c: Regenerate.
2422 * config/mn10200/tm-mn10200.h: Adjust indentation.
2423 * target.c: Adjust indentation.
2424 * symtab.h: Adjust indentation.
2425 * stabsread.h: Adjust indentation.
2426 * remote-es.c: Adjust indentation.
2427 * os9kread.c: Adjust indentation.
2428
24292002-07-10 Andrew Cagney <ac131313@redhat.com>
2430
a6b6b089
AC
2431 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2432 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2433
a1789893
GS
24342002-07-10 Grace Sainsbury <graces@redhat.com>
2435
2436 * NEWS: Mention m68k, mcore multi-arching.
2437 * MAINTAINERS: Change status of m68k, mcore to reflect
2438 multi-arching.
2439
02f0d45d
DJ
24402002-07-10 Daniel Jacobowitz <drow@mvista.com>
2441
2442 * valops.c (find_overload_match): Free oload_syms.
2443
f15f768e
JB
24442002-07-09 Joel Brobecker <brobecker@gnat.com>
2445
2446 Define HAVE_SYS_PROC_H if sys/proc.h exists
2447 * configure.in: Add check for sys/proc.h
2448 * config.in: Regenerate.
2449 * configure: Regenerate.
2450
902a7139
GS
24512002-07-09 Grace Sainsbury <graces@redhat.com>
2452
2453 * config/m68k/tm-m68k.h: Remove macros wrapped in
2454 #if !GDB_MULTI_ARCH.
2455
a534e424
AC
24562002-07-08 Andrew Cagney <ac131313@redhat.com>
2457
2458 * config.in, configure: Regenerate.
2459
9b94f7bf
MK
24602002-07-08 Mark Kettenis <kettenis@gnu.org>
2461
2462 * dwarf2cfi.c: Include "gcore.h".
2463 (execute_stack_op): Fix implementation of the
2464 DW_OP_deref and DW_OP_deref_size operators by letting do their
2465 lookup in the target.
2466
1d34db41
MK
24672002-07-07 Mark Kettenis <kettenis@gnu.org>
2468
2469 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2470 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2471 tdep->sc_sp_offset.
2472
79d5b63a
DJ
24732002-07-05 Daniel Jacobowitz <drow@mvista.com>
2474
2475 Fix PR gdb/595, gdb/602
2476 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2477 Don't call value_cast, just read the vtable pointer; update comments
2478 to match.
2479
3bb912e8
GS
24802002-07-05 Grace Sainsbury <graces@redhat.com>
2481
2482 * config/mcore/tm-mcore.h: Remove file.
2483 * config/mcore/mcore.mt: Remove definition of TM_FILE
2484 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2485
ca39387d
MK
24862002-07-05 Mark Kettenis <kettenis@gnu.org>
2487
2488 * i386bsd-tdep.c: Include "gdb_string.h".
2489
efdc1108
GS
24902002-07-04 Grace Sainsbury <graces@redhat.com>
2491
2492 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2493 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2494 mcore-tdep.
2495 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2496 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2497 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2498 (RETVAL_REGNUM): Move macros from tm-mcore.h
2499 (mcore_reg_struct_has_addr): New function.
2500 (mcore_gdbarch_init): Added initializations for the macros removed
2501 from tm-mcore.h.
2502
bb21884d
MK
25032002-07-04 Mark Kettenis <kettenis@gnu.org>
2504
2505 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2506 traditonal string branding within the ELF header.
2507
228c6d41
DJ
25082002-07-04 Daniel Jacobowitz <drow@mvista.com>
2509
2510 * symtab.c (remove_params): New function.
2511 (make_symbol_overload_list): Use it instead of cplus_demangle.
2512 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2513
2404952e
MK
25142002-07-04 Mark Kettenis <kettenis@gnu.org>
2515
e5e4acad
MK
2516 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2517
baadce09
MK
2518 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2519 New variables.
2520 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2521 and tdep->sigtramp_end.
2522 * i386obsd-nat.c: New file.
2523 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2524
2404952e
MK
2525 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2526 Don't call get_current_frame().
2527
9b4f1ba7
PM
25282002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2529
2530 * i386-nat.c (child_post_startup_inferior): New function
2531 calling i386_cleanup_dregs if
2532 I386_USE_GENERIC_WATCHPOINTS is defined.
2533 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2534 conditional to acknowledge that i386-nat.c has its
2535 own child_post_startup_inferior function.
2536
c0d1d883
MK
25372002-07-04 Mark Kettenis <kettenis@gnu.org>
2538
00f8375e
MK
2539 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2540 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2541 instead of MAX_REGISTER_RAW_SIZE.
2542 (i386_extract_return_value, i386_extract_struct_value_address):
2543 Convert to use regcache.
2544 (i386_gdbarch_init): Set max_register_raw_size and
2545 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2546 Set extract_return_value and extract_struct_value_address instead
2547 of their deprecated variants.
2548
c0d1d883
MK
2549 Convert i386 target to generic dummy frames.
2550 * i386-tdep.c: Include "symfile.h".
2551 (i386_frameless_signal_p): Consider a function to be frameless if
2552 the pc points at the first instruction of the function.
2553 (i386_frame_chain): Handle (generic) call dummies.
2554 (i386_frame_saved_pc): Likewise.
2555 (i386_frame_init_saved_regs): Remove code dealing with call
2556 dummies on the stack.
2557 (i386_push_dummy_frame): Removed.
2558 (i386_call_dummy_words): Removed.
2559 (i386_fix_call_dummy): Removed.
2560 (i386_push_return_address): New function.
2561 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2562 parameter, and don't call get_current_frame.
2563 (i386_pop_frame): New function.
2564 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2565 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2566 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2567 call_dummy_length to 0, set call_dummy_words to NULL, set
2568 sizeof_call_dummy_words to 0, set fix_call_dummy to
2569 generic_fix_call_dummy, set pc_in_call_dummy to
2570 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2571 generic_push_dummy_frame, set push_return_address to
2572 i386_push_return_address and set frame_chain_valid to
2573 generic_file_frame_chain_valid.
2574
049ee0e4
AC
25752002-07-03 Andrew Cagney <ac131313@redhat.com>
2576
2577 * gdbarch.sh (struct regcache): Add opaque declaration.
2578 (EXTRACT_RETURN_VALUE): New architecture method.
2579 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2580 * gdbarch.h, gdbarch.c: Regenerate.
2581 * arch-utils.c (legacy_extract_return_value): New function.
2582 * arch-utils.h (legacy_extract_return_value): Declare.
2583 * values.c (value_being_returned): Re-enable code handling
2584 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2585 deprecated_grub_regcache_for_registers call to block handling
2586 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2587 (EXTRACT_RETURN_VALUE): Do not define.
2588
4e0d9804
GS
25892002-07-03 Grace Sainsbury <graces@redhat.com>
2590
2591 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2592 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2593 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2594 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2595 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2596 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2597 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2598 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2599 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2600 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2601 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2602 argument so the function fits the prototype in the architecture
2603 vector.
2604 (mcore_pop_frame): Remove argument so the function fits the
2605 prototype. Use get_current_frame instead of the argument.
2606 (mcore_push_arguments): Change type of struct_return so the
2607 function can be used in the architecture vector.
2608 (mcore_store_struct_return): Add.
2609 (mcore_frame_init_saved_regs): Add.
2610 (mcore_gdbarch_init): Add function calls to replace the macros
2611 removed from tm-mcore.h
2612
36160dc4
AC
26132002-07-03 Andrew Cagney <ac131313@redhat.com>
2614
2615 * infcmd.c (print_return_value): Remove compatibility code calling
2616 deprecated_grub_regcache_for_registers.
2617
2618 * values.c: Include "regcache.h".
2619 (value_being_returned): Update. Use
2620 deprecated_grub_regcache_for_registers to extract the register
2621 buffer address.
2622 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2623 ``struct regcache''.
2624 * Makefile.in (values.o): Add dependency on $(regcache_h).
2625
2626 * inferior.h (run_stack_dummy): Change type of second parameter to
2627 a ``struct regcache''.
2628 * valops.c (hand_function_call): Change type of retbuf to ``struct
2629 regcache''. Allocate using regcache_xmalloc, clean using
2630 make_cleanup_regcache_xfree.
2631 * infcmd.c (run_stack_dummy): Update. Use
2632 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2633
2634 * regcache.c (do_regcache_xfree): New function.
2635 (make_cleanup_regcache_xfree): New function.
2636 * regcache.h (make_cleanup_regcache_xfree): Declare.
2637
e64d9b3d
MH
26382002-07-03 Martin M. Hunt <hunt@redhat.com>
2639
4dd79c29
MH
2640 * event-top.c (command_line_handler): Don't read past
2641 beginning of buffer.
e64d9b3d 2642
4dd79c29
MH
26432002-07-03 Martin M. Hunt <hunt@redhat.com>
2644
e64d9b3d
MH
2645 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2646 struct frame_id.
2647 (varobj_create): Store frame_id for root.
2648 (varobj_gen_name): Use xasprintf.
2649 (varobj_update): Save and restore frame using get_frame_id() and
2650 frame_find_by_id().
2651 (create_child): Use xasprintf.
2652 (new_root_variable): Initialize frame_id.
2653 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2654 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2655 to prevent memory leak.
2656
26e6c56a
AC
26572002-07-03 Andrew Cagney <ac131313@redhat.com>
2658
2659 * valops.c (hand_function_call): Move declaration of retbuf to
2660 start of function, allocate using malloc, add a cleanup but before
2661 the inf_status cleanup, cleanup the buffer. Rename local variable
2662 old_chain to inf_status_cleanup.
2663
f436dd25
MH
26642002-07-03 Martin M. Hunt <hunt@redhat.com>
2665
2666 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2667
2668 * cli/cli-decode.c (cmd_func_p): New function.
2669 (cmd_func): New function.
2670
2671 * command.h: Add cmd_func() and cmd_func_p().
2672
4cfe2084
GS
26732002-07-03 Grace Sainsbury <graces@redhat.com>
2674
2675 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2676 (REGISTER_SIZE): Remove.
2677 (MAX_REGISTER_RAW_SIZE): Remove.
2678 (REGISTER_VIRTUAL_TYPE): Remove.
2679 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2680 (REGISTER_NAME): Remove.
2681 (USE_GENERIC_DUMMY_FRAMES): Remove.
2682 (CALL_DUMMY): Remove.
2683 (CALL_DUMMY_START_OFFSET): Remove.
2684 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2685 (CALL_DUMMY_LOCATION): Remove.
2686 (FIX_CALL_DUMMY): Remove.
2687 (CALL_DUMMY_ADDRESS): Remove.
2688 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2689 (SAVE_DUMMY_FRAME_TOS): Remove.
2690 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2691 (mcore_register_virtual_type): New function.
2692 (mcore_register_byte): New function.
2693 (mcore_register_size): New function.
2694 (mcore_register_name): New function.
2695 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2696 macros removed from tm-mcore.h.
2697 (mcore_dump_tdep): Add.
2698 (_initialize_mcore_tdep): Add gdbarch_register call.
2699
4fd667e9
MK
27002002-07-03 Mark Kettenis <kettenis@gnu.org>
2701
2702 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2703 frameless_look_for_prologue, such that we actually call this
2704 function.
2705
42f99ac2
JB
27062002-07-02 Joel Brobecker <brobecker@gnat.com>
2707
2708 * frame.h (frame_address_in_block): New function.
2709
2710 * blockframe.c (frame_address_in_block): New function extracted
2711 from get_frame_block().
2712 (get_frame_block): Use frame_address_in_block().
2713 (block_innermost_frame): Use frame_address_in_block() to match
2714 the frame pc address against the block boundaries rather than
2715 the frame pc directly. This prevents a failure when a frame pc
2716 is actually a return-address pointing immediately after the end
2717 of the given block.
2718
103a1597 27192002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2720
2721 * MAINTAINERS: Add self under write after approval.
2722
27232002-07-02 Grace Sainsbury <graces@redhat.com>
2724
103a1597
GS
2725 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2726 used in architecture vector. The default is
2727 m68k_local_breakpoint_from_pc.
2728 (m68k_local_breakpoint_from_pc): Add.
2729 (enum): Add register numbers from tm-m68k.h.
2730 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2731 vector.
2732 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2733 GDB_MULTI_ARCH_PARTIAL.
2734 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2735 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2736 m68k-tdep.c.
2737 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2738 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2739 to enum in m68k-tdep.c
2740
7a5a0534
JB
27412002-07-02 Joel Brobecker <brobecker@gnat.com>
2742
2743 * solib-osf.c (open_map): Compute the list of shared libraries
2744 loaded by the inferior, rather than the list of libraries loaded
2745 by GDB itself. Otherwise, GDB ends up reading the symbols from
2746 the wrong shared libraries...
2747
6f558d74
MK
27482002-07-02 Mark Kettenis <kettenis@gnu.org>
2749
b7d15bf7
MK
2750 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2751 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2752 macros.
2753 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2754 Remove functions.
2755 (FRAMELESS_SIGNAL): Remove function.
2756 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2757 i386_linux_saved_pc_after_call): Removed.
2758 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2759 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2760 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2761
6bff26de
MK
2762 * i386-tdep.c (i386_frameless_signal_p): New function.
2763 (i386_frame_chain): Deal with frameless signals.
2764 (i386_sigtramp_saved_sp): New function.
2765 (i386_frame_saved_pc): Deal with frameless signals.
2766 (i386_saved_pc_after_call): Make sure the correct value is
2767 returned just after entry into a sigtramp.
2768 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2769 i386fbsd4_sc_sp_offset): New variables.
2770 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2771 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2772 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2773 similiar to what we already did for sc_pc_offset.
2774 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2775 tdep->sc_sp_offset.
2776
6f558d74
MK
2777 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2778
145564b7
ML
27792002-07-02 Michal Ludvig <mludvig@suse.cz>
2780
2781 * config/i386/tm-x86-64linux.h: New.
2782 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2783 definitions.
2784 * config/i386/nm-x86-64.h: Rename to ...
2785 * config/i386/nm-x86-64linux.h: ... this one.
2786 * config/i386/x86-64linux.mh: Reflect the above change.
2787
3a1e71e3
MK
27882002-07-01 Mark Kettenis <kettenis@gnu.org>
2789
21d0e8a4
MK
2790 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2791 with sigcontext_addr. Add sc_sp_offset.
2792 (i386bsd_sigtramp_saved_pc): Remove prototype.
2793 (i386bsd_sicontext_addr): Add prototype.
2794 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2795 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2796 (i386_svr4_sigtramp_saved_pc): Removed.
2797 (i386_svr4_sigcontext_addr): New function.
2798 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2799 Initialize tdep->sigcontext_addr instead. Initialize
2800 tdep->sc_pc_offset and tdep->sc_sp_offset.
2801 (i386_gdbarch_init): Likewise.
2802 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2803 any more.
2804 (i386bsd_sigtramp_saved_pc): Remove function.
2805 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2806 Initialize tdep->sigcontext_addr instead. Initialize
2807 tdep->sc_pc_offset.
2808 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2809 of tdep->sigtramp_saved_pc.
2810 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2811 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2812 instead.
2813
3a1e71e3
MK
2814 * i386-tdep.c (i386_frameless_function_invocation,
2815 i386_frame_num_args, i386_frame_init_saved_regs,
2816 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2817 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2818 i386_extract_return_value, i386_store_return_value,
2819 i386_extract_struct_value_address, i386_register_virtual_type,
2820 i386_register_convertible, i386_register_convert_to_virtual,
2821 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2822 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2823 static.
2824
52e9098c
MK
28252002-07-01 Mark Kettenis <kettenis@gnu.org>
2826
77b13a25
MK
2827 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2828
52e9098c
MK
2829 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2830 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2831 this macro. Include "value.h".
2832
1b372fff
AS
28332002-06-30 Aidan Skinner <aidan@velvet.net>
2834
2835 * ada-exp.tab.c: remove as it's a generated file
2836 * ada-lex.c: remove as it's a generated file
2837
9c5045b5
MK
28382002-06-30 Mark Kettenis <kettenis@gnu.org>
2839
4a93c5bb
MK
2840 * config/i386/tm-i386.h (struct frame_info, struct
2841 frame_saved_regs, struct value, struct type): Remove forward
2842 declarations.
2843
322d4fe0
MK
2844 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2845 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2846 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2847 (FILL_FPXREGSET): Define.
2848
fdd8263d
MK
2849 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2850
482e577b
MK
2851 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2852 i[3456]86-*-netbsd* case.
2853 * config/i386/tm-obsd.h: Removed.
2854 * config/i386/obsd.mt: Removed.
2855 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2856 core-aout.o.
2857 (MH_CFLAGS): Add -DYYDEBUG=0.
2858
6916549a
MK
2859 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2860 i386nbsd_sc_pc_offset on OpenBSD too.
2861
9c5045b5
MK
2862 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2863 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2864 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2865 define.
2866 * i386bsd-tdep.c: Include "arch-utils.h".
2867 (i386bsd_aout_in_solib_call_trampoline): New function.
2868 (i386bsd_init_abi): Set in_solib_call_trampoline to
2869 i386bsd_aout_in_solib_call_trampoline.
2870 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2871 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2872
aa84d1bb
AC
28732002-06-28 Andrew Cagney <ac131313@redhat.com>
2874
2875 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2876 (struct obstack, struct bcache): Add opaque declarations.
2877 * Makefile.in (macrotab_h): Update
2878
b4d83933
AC
28792002-06-28 Andrew Cagney <ac131313@redhat.com>
2880
2881 * blockframe.c (generic_find_dummy_frame): Change return type to
2882 ``struct regcache''.
2883 (struct dummy_frame): Replace field ``registers'' with regcache, a
2884 struct regcache object.
2885 (generic_find_dummy_frame): Update.
2886 (generic_push_dummy_frame): Update. Use regcache_xfree,
2887 regcache_xmalloc and regcache_cpy.
2888 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2889 regcache_xfree.
2890 (deprecated_generic_find_dummy_frame): Update.
2891 (generic_read_register_dummy): Update. Use
2892 regcache_read_as_address.
2893 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2894 (generic_get_saved_register): Update. Use regcache_read.
2895
08c0b5bc
AC
28962002-06-28 Andrew Cagney <ac131313@redhat.com>
2897
2898 * Makefile.in (objfiles_h): Add $(bcache_h).
2899 * objfiles.h: Include "bcache.h".
2900
2901 * Makefile.in (symtab_h): Remove $(bcache_h).
2902 * symtab.h: Do not include "bcache.h".
2903
1f89801a
AC
29042002-06-28 Andrew Cagney <ac131313@redhat.com>
2905
2906 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2907 generic_func_frame_chain_valid.
2908
b9644b58
DB
29092002-06-28 David O'Brien <obrien@FreeBSD.org>
2910
2911 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2912 * config/i386/tm-fbsd.h: Likewise.
2913
dd486634
AC
29142002-06-28 Andrew Cagney <ac131313@redhat.com>
2915
2916 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2917 generic_unwind_get_saved_register.
2918
0b434a00
AC
29192002-06-27 Andrew Cagney <ac131313@redhat.com>
2920
2921 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2922 * regcache.c (supply_register): Add missing argument to
2923 register_buffer call.
2924
f30e5a77
AC
29252002-06-27 Andrew Cagney <ac131313@redhat.com>
2926
2927 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2928 Solaris /bin/grep does not not like it. From Peter Schauer.
2929
9f064c95
TT
29302002-06-26 Tom Tromey <tromey@redhat.com>
2931
2932 * command.h (add_setshow_cmd): Declare.
2933 (add_setshow_cmd_full): Declare.
2934 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2935 returns void. Use add_setshow_cmd_full.
2936 (add_setshow_cmd_full): New function.
2937 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2938 (add_setshow_boolean_cmd): Likewise.
2939
099c7589
JT
29402002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2941
2942 * config/vax/tm-vax.h: Protect from multiple inclusion.
2943 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2944 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2945 * config/vax/tm-vaxbsd.h: ...here. New file.
2946 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2947
1d049c5e
JT
29482002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2949
2950 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2951 (BELIEVE_PCC_PROMOTION): Remove.
2952 (AP_REGNUM): Move to...
2953 * config/vax/nm-vax.h: ...here.
2954 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2955 (vax_breakpoint_from_pc): New function.
2956 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2957 and gdbarch_believe_pcc_promotion.
2958
4791e091
JT
29592002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2960
2961 * Makefile.in (vax_tdep_h): Define.
2962 (vax-tdep.o): Use $(vax_tdep_h).
2963 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2964 (vax_dump_tdep): New function.
2965 (_initialize_vax_tdep): Register vax_dump_tdep.
2966 * vax-tdep.h: Include osabi.h.
2967 (struct gdbarch_tdep): New.
2968
da130f98
AC
29692002-06-26 Andrew Cagney <cagney@redhat.com>
2970
2971 * frame.h (deprecated_generic_find_dummy_frame): Rename
2972 generic_find_dummy_frame.
2973 * blockframe.c (generic_find_dummy_frame): Make static.
2974 (deprecated_generic_find_dummy_frame): New function.
2975 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2976 generic_find_dummy_frame with deprecated_find_dummy_frame.
2977 (sh64_nofp_frame_init_saved_regs): Ditto.
2978 (sh_fp_frame_init_saved_regs): Ditto.
2979 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2980 (s390_frame_chain): Ditto.
2981 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2982
6300c360
GS
29832002-06-26 Grace Sainsbury <graces@redhat.com>
2984
2985 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2986 gdbarch vector are at the top.
2987 (NUM_REGS): Remove.
2988 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2989 (FRAME_ARGS_ADDRESS): Remove.
2990 (FRAME_LOCALS_ADDRESS): Remove.
2991 (FRAME_NUM_ARGS): Remove.
2992 (FRAME_ARGS_SKIP): Remove.
2993 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2994 (m68k_gdbarch_init): Add gdbarch initializations for macros
2995 undefined in tm-m68k.h
2996
1c617db8
GS
29972002-06-26 Grace Sainsbury <graces@redhat.com>
2998
2999 * monitor.h: Add the function regname to monitor_ops
3000 structure. This way NUM_REGS does not have to be a constant.
3001 * monitor.c (monitor_fetch_register): Added support for regname
3002 function. The function is called if the array regnames is NULL.
3003 (monitor_store_register): Same.
da130f98
AC
3004 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3005 regnames array.
1c617db8
GS
3006 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3007 cpu32bug_cmds.regname to point to new function.
3008 * abug-rom.c (abug_regname): Same as above.
3009 (init_abug_cmds): Same.
3010 * dbug-rom.c (dbug_regname): Same as above.
3011 (init_dbug_cmds): Same.
3012 * remote-est.c (est_regname): Same.
3013 (init_est_cmds): Same.
3014 * rom68k-rom.c (rom68k_regname): Same.
3015 (init_rom68k_cmds): Same.
3016
ea9365bb
TT
30172002-06-25 Tom Tromey <tromey@redhat.com>
3018
3019 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3020
72cec141
AC
30212002-06-25 Andrew Cagney <cagney@redhat.com>
3022
3023 * infrun.c (stop_registers): Change variable's type to ``struct
3024 regcache'''.
3025 (xmalloc_inferior_status): Delete function.
3026 (free_inferior_status): Delete function.
3027 (normal_stop): Use regcache_cpy.
3028 (struct inferior_status): Change type of fields ``stop_registers''
3029 and ``registers'' to ``struct regcache''.
3030 (write_inferior_status_register): Use regcache_write.
3031 (save_inferior_status): Instead of calling
3032 xmalloc_inferior_status, allocate the inf_status buffer directly.
3033 Use regcache_dup_no_passthrough and regcache_dup to save the
3034 buffers.
3035 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3036 Replace the stop_registers regcache instead of overriding it. Use
3037 regcache_xfree. Instead of calling free_inferior_status, xfree
3038 the buffer directly.
3039 (discard_inferior_status): Use regcache_xfree. Instead of calling
3040 free_inferior_status, xfree the buffer directly.
3041 (build_infrun): Use regcache_xmalloc.
3042 (_initialize_infrun): Delete redundant call to build_infrun.
3043
3044 * Makefile.in (infcmd.o): Add $(regcache_h).
3045
3046 * infcmd.c: Include "regcache.h".
3047 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3048 obtain the address of `stop_registers' register buffer.
3049 (print_return_value): Ditto.
3050
3051 * inferior.h (struct regcache): Add opaque declaration.
3052 (stop_registers): Change variable's declared type to ``struct
3053 regcache''.
3054
defc6f8c
TT
30552002-06-24 Tom Tromey <tromey@redhat.com>
3056
c0e624e7
TT
3057 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3058 * target.c (initialize_targets): Fixed typo in
3059 trust-readonly-sections `show' documentation.
3060
defc6f8c
TT
3061 * main.c: Marked all strings with _().
3062
2b236d82
DH
30632002-06-24 Don Howard <dhoward@redhat.com>
3064
3065 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3066 that means max CORE_ADDR+1.
3067 (lookup_mem_region): Ditto.
3068 (mem_info_command): Ditto.
3069
942dc0e9
GS
30702002-06-24 Grace Sainsbury <graces@redhat.com>
3071
3072 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3073 (REGISTER_BYTES_OK): Remove.
3074 (REGISTER_BYTES): Remove.
3075 (STORE_STRUCT_RETURN): Remove.
3076 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3077 (STORE_RETURN_VALUE): Remove.
3078 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3079 (FRAME_CHAIN): Remove.
3080 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3081 (FRAME_SAVED_PC): Remove.
3082 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3083 (m68k_store_struct_return): Add.
3084 (m68k_deprecated_extract_return_value): Add.
3085 (m68k_deprecated_extract_struct_value_address): Add.
3086 (m68k_store_return_value): Add.
3087 (m68k_frame_chain): Add.
3088 (m68k_frameless_function_invocation): Add.
3089 (m68k_frame_saved_pc): Add.
3090 (m68k_gdbarch_init): added set_gdbarch calls for new
3091 functions and deleted macros.
3092
03c30d4d
TT
30932002-06-23 Tom Tromey <tromey@redhat.com>
3094
3095 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3096 (ALLDEPFILES): Likewise.
3097 (udiheaders): Removed.
3098 (udip2soc.o): Likewise.
3099 (udi2go32.o): Likewise.
3100 (udr.o): Likewise.
3101 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3102
37e71372
AC
31032002-06-22 Andrew Cagney <ac131313@redhat.com>
3104
06a6ac57
AC
3105 * infrun.c (_initialize_infrun): Delete unnecessary call to
3106 build_infrun.
3107
37e71372
AC
3108 * regcache.h: Update comments describing the regcache_cpy family
3109 of functions.
3110 (regcache_save, regcache_restore): Delete declaration.
3111 (regcache_save_no_passthrough): Delete declaration.
3112 (regcache_restore_no_passthrough): Delete declaration.
3113 * regcache.c (regcache_save): Delete function.
3114 (regcache_save_no_passthrough): Delete function.
3115 (regcache_restore): Delete function.
3116 (regcache_restore_no_passthrough): Delete function.
3117
78f6d055
AC
31182002-06-21 Andrew Cagney <ac131313@redhat.com>
3119
3120 * config/m68k/tm-m68k.h: Fix typo.
3121 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3122 (m68k_frame_init_saved_regs): Declare.
3123
78b119cb
JB
31242002-06-21 Jim Blandy <jimb@redhat.com>
3125
3126 Remove some vestiges of Harris 88k support.
3127 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3128 register numbering quirk.
3129 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3130 odd symbols occurring in Harris 88k ELF targets.
3131
0fbb3da7
TT
31322002-06-21 Tom Tromey <tromey@redhat.com>
3133
3134 * gdb_locale.h: New file.
3135 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3136 (defs_h): Added gdb_locale.h.
3137 * configure, config.in: Rebuilt.
3138 * configure.in (PACKAGE): Define.
3139 * defs.h: Include gdb_locale.h.
3140 * main.c (captured_main): Call setlocale, bindtextdomain,
3141 textdomain.
3142
456f8b9d
DB
31432002-06-21 Dave Brolley <brolley@redhat.com>
3144
3145 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3146 * config/frv/frv.mt: New file.
3147 * config/frv/tm-frv.h: New file.
3148 * configure.tgt: Support frv-*-*.
3149 * Makefile.in (frv-tdep.o): New target.
3150 * frv-tdep.c: New file.
3151 * NEWS: Mention frv.
3152
cdd463f9
DB
31532002-06-21 Dave Brolley <brolley@redhat.com>
3154
3155 * MAINTAINERS: Add self to "Write After Approval" list.
3156
5d3ed2e3
GS
31572002-06-21 Grace Sainsbury <graces@redhat.com>
3158
3159 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3160 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3161 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3162 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3163 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3164
3165 * m68k-tdep.c: Include arch-utils.h
3166 (m68k_register_raw_size): Add.
3167 (m68k_register_virtual_size): Add.
3168 (m68k_register_virtual_type): Add.
3169 (m68k_register_name): Add.
3170 (m68k_stack_align): Add.
3171 (m68k_register_byte): Add.
3172 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3173 tm-m68k.h.
3174
7f8e7424
GS
31752002-06-21 Grace Sainsbury <graces@redhat.com>
3176
a2c6a6d5 3177 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3178 m68k_find_saved_regs.
3179 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3180 references to it with frame->saved_regs.
7f8e7424
GS
3181 (m68k_gdbarch_init): Added function calls to initialize the
3182 gdbarch structure.
a2c6a6d5
GS
3183 (m68k_fix_call_dummy): Add.
3184 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3185 (CALL_DUMMY): Remove.
3186 (CALL_DUMMY_LENGTH): Remove.
3187 (CALL_DUMMY_START_OFFSET): Remove.
3188 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3189 (FIX_CALL_DUMMY): Remove.
3190 (PUSH_DUMMY_FRAME): Remove.
3191 (POP_FRAME): Remove.
7f8e7424 3192
f461f5cf
PM
31932002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3194
3195 * parse.c (parse_fprintf): New function used to avoid calls to
3196 fprintf in bison parser generated debug code.
3197 * parser-defs.h: Declaration of new parse_fprintf function.
3198 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3199 Set YYDEBUG to 1 by default.
3200 Set YYFPRINTF as parse_fprintf.
3201
7f0c12ed
ML
32022002-06-21 Michal Ludvig <mludvig@suse.cz>
3203
3204 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3205 encoding anymore.
3206 (pointer_encoding, enum ptr_encoding): New.
3207 (execute_cfa_program): Take care about pointer encoding.
3208 (dwarf2_build_frame_info): Only call parse_frame_info for
3209 .debug_frame and .eh_frame.
3210 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3211 fixed augmentation handling, added relative addressing,
3212 ignore duplicate FDEs. Added comments.
19d833a2 3213 * dwarf2cfi.c: Reindented.
7f0c12ed 3214
87c4a039
EZ
32152002-06-20 Elena Zannoni <ezannoni@redhat.com>
3216
3217 * event-top.c (command_handler): Don't use space_at_cmd_start
3218 unless there is sbrk() on the host. Assign time and space data
3219 to union fields of the appropriate length.
3220
1cf877ad
ML
32212002-06-20 Michal Ludvig <mludvig@suse.cz>
3222
3223 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3224 x86_64_register_name. Return type changed to 'const char *'.
3225 (x86_64_register_name2nr): Rename to x86_64_register_number.
3226 (x86_64_gdbarch_init): Update to reflect the change.
3227 * x86-64-tdep.h: Ditto.
3228 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3229 (supply_fpregset): Ditto.
3230
3fadccb3
AC
32312002-06-19 Andrew Cagney <cagney@redhat.com>
3232
3233 * regcache.h: Update copyright.
3234 (struct regcache, struct gdbarch): Add opaque declarations.
3235 (current_regcache): Declare global variable.
3236 (regcache_read, regcache_write): Add gdbarch parameter.
3237 (regcache_save, regcache_save_no_passthrough)
3238 (regcache_restore, regcache_restore_no_passthrough)
3239 (regcache_dup, regcache_dup_no_passthrough)
3240 (regcache_cpy, regcache_cpy_no_passthrough)
3241 (deprecated_grub_regcache_for_registers)
3242 (deprecated_grub_regcache_for_register_valid)
3243 (regcache_valid_p): Add function declarations.
3244
3245 * regcache.c: Update copyright.
3246 (regcache_descr_handle): New global variable.
3247 (struct regcache_descr): Define.
3248 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3249 (regcache_descr, xfree_regcache_descr): New functions.
3250 (struct regcache): Define.
3251 (regcache_xmalloc, regcache_xfree): New functions.
3252 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3253 (regcache_dup, regcache_dup_no_passthrough): New functions.
3254 (regcache_valid_p, regcache_read_as_address): New functions.
3255 (deprecated_grub_regcache_for_registers): New function.
3256 (deprecated_grub_regcache_for_register_valid): New function.
3257 (current_regcache): New global variable.
3258 (register_buffer): Add regcache parameter. Update calls.
3259 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3260 (read_register_gen, write_register_gen): Update register_buffer
3261 call. Test for legacy_p instead of gdbarch_register_read_p or
3262 gdbarch_register_write_p.
3263 (regcache_collect): Update register_buffer call.
3264 (build_regcache): Rewrite. Use deprecated grub functions.
3265 (regcache_save, regcache_save_no_passthrough): New functions.
3266 (regcache_restore, regcache_restore_no_passthrough): New
3267 functions.
3268 (_initialize_regcache): Create the regcache_data_handle. Swap
3269 current_regcache global variable.
3270
3271 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3272 parameter to regcache_read and regcache_write calls.
3273 (sh4_register_read): Ditto.
3274 (sh64_pseudo_register_read): Ditto.
3275 (sh64_register_read): Ditto.
3276 (sh_pseudo_register_write): Ditto.
3277 (sh4_register_write): Ditto.
3278 (sh64_pseudo_register_write): Ditto.
3279 (sh64_register_write): Ditto.
3280
3281 * defs.h (XCALLOC): Define.
3282
152d9db6
GS
32832002-06-19 Grace Sainsbury <graces@redhat.com>
3284
3285 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3286 * m68k-tdep.c (m68k_gdbarch_init): Added.
3287 (m68k_dump_tdep): Added.
3288
170911c7
DJ
32892002-06-19 Daniel Jacobowitz <drow@mvista.com>
3290
3291 * ada-lang.c (fill_in_ada_prototype): Update comment.
3292
2e4ebe70
DJ
32932002-06-19 Daniel Jacobowitz <drow@mvista.com>
3294
3295 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3296 MIPS_ABI_LAST.
3297 (mips_abi_string, mips_abi_strings): New.
3298 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3299 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3300 tdep->mips_abi_string. Honor mips_abi_string. Default to
3301 O32 if no ABI is found.
3302 (mips_dump_tdep): Use mips_abi_strings.
3303 (mips_abi_update): New function.
3304 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3305 ``set mips abi'' and ``show mips abi''. Check the size of
3306 mips_abi_strings.
3307
16775908
AC
33082002-06-19 Andrew Cagney <cagney@redhat.com>
3309
3310 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3311 constant.
3312
5051bfa4 33132002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3314
5051bfa4
JB
3315 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3316 current frame using only the first stack size adjustment. All
3317 subsequent size adjustments are not considered to be part of
3318 the "static" part of the current frame.
3319 Compute the address of the saved registers relative to the
3320 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3321 in use in this frame.
3322
56468235
DH
33232002-06-18 Don Howard <dhoward@redhat.com>
3324
3325 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3326 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3327 suggesting this solution.
3328
0b624158
AC
33292002-06-18 Andrew Cagney <ac131313@redhat.com>
3330
3331 * config/romp/xm-rtbsd.h: Delete file.
3332 * config/romp/rtbsd.mh: Delete file.
3333
221ea385
KS
33342002-06-18 Keith Seitz <keiths@redhat.com>
3335
3336 * breakpoint.c (condition_command): Post breakpoint_modify
3337 when a condition is added to an existing breakpoint.
3338 (commands_command): Likewise for commands.
3339 (set_ignore_count): Likewise for ignore counts.
3340 If no tty, do not simply return, still need to send event
3341 notification.
3342 (ignore_command): Only print a newline if the command came
3343 from a tty.
3344 Don't call breakpoints_changed, since this is now properly
3345 handled by set_ignore_count.
3346
5402eed1
AC
33472002-06-18 Andrew Cagney <cagney@redhat.com>
3348
3349 * MAINTAINERS: Note that cris-elf target can be compiled with
3350 -Werror.
3351 * cris-tdep.c (cris_register_name): Make return type constant.
3352 (cris_breakpoint_from_pc): Ditto.
3353
cc22880b
ML
33542002-06-18 Michal Ludvig <mludvig@suse.cz>
3355
3356 * frame.h (struct frame_info): Change type of context to
3357 'struct context'.
3358
fa88f677
AC
33592002-06-17 Andrew Cagney <cagney@redhat.com>
3360
3361 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3362 pointer.
3363 * gdbarch.h, gdbarch.c: Regenerate.
3364 * config/mips/tm-mips.h (mips_register_name): Update.
3365 * i386-tdep.h (i386_register_name): Update.
3366 * mips-tdep.c (mips_register_name): Update
3367 * alpha-tdep.c (alpha_register_name): Update.
3368 * arch-utils.c (legacy_register_name): Update.
3369 * arch-utils.h (legacy_register_name): Update.
3370 * avr-tdep.c (avr_register_name): Update.
3371 * ia64-tdep.c (ia64_register_name): Update.
3372 * i386-tdep.c (i386_register_name): Update.
3373 * sparc-tdep.c (sparc32_register_name): Update.
3374 (sparc64_register_name): Update.
3375 (sparclite_register_name): Update.
3376 (sparclet_register_name): Update.
3377 * sh-tdep.c (sh_generic_register_name): Update.
3378 (sh_sh_register_name): Update.
3379 (sh_sh3_register_name): Update.
3380 (sh_sh3e_register_name): Update.
3381 (sh_sh_dsp_register_name): Update.
3382 (sh_sh3_dsp_register_name): Update.
3383 (sh_sh4_register_name): Update.
3384 (sh_sh64_register_name): Update.
3385 * s390-tdep.c (s390_register_name): Update.
3386 * rs6000-tdep.c (rs6000_register_name): Update.
3387 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3388 (ns32k_register_name_32382): Update.
3389 * d10v-tdep.c (d10v_ts2_register_name): Update.
3390 (d10v_ts3_register_name): Update.
3391 * xstormy16-tdep.c (xstormy16_register_name): Update.
3392 * vax-tdep.c (vax_register_name): Update.
3393 * v850-tdep.c (v850_register_name): Update.
3394 * m68hc11-tdep.c (m68hc11_register_name): Update.
3395 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3396 (am33_register_name): Update.
3397
ea1e7ef6
GS
33982002-06-17 Grace Sainsbury <graces@redhat.com>
3399
3400 * m68k-tdep.c: Reindented.
3401
9b02dd1b
AC
34022002-06-17 Andrew Cagney <ac131313@redhat.com>
3403
3404 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3405 list of predefined types.
3406
8758dec1
MK
34072002-06-16 Mark Kettenis <kettenis@gnu.org>
3408
b6197528
MK
3409 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3410 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3411 REGISTER_CONVERT_TO_RAW): Remove defines.
3412 (i386_register_virtual_type, i386_register_convertible,
3413 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3414 Remove prototypes.
3415 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3416 macros mentioned above.
3417
82b47e62
MK
3418 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3419 (i386lynx_saved_pc_after_call): Remove prototype.
3420 * i386ly-tdep.c: Include "i386-tdep.h".
3421 (i386lynx_saved_pc_after_call): Make static. Use
3422 read_memory_nobpt instead of read_memory. Use
3423 read_memory_unsigned_integer instead of read_memory_integer.
3424 (i386lynx_init_abi): New function.
3425 (i386lynx_coff_osabi_sniffer): New function.
3426 (_initialize_i386bsd_tdep): New function.
3427
8758dec1
MK
3428 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3429 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3430 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3431 (i386_fix_call_dummy): Remove prototype.
3432 * i386-tdep.c (i386_call_dummy_words): New variable.
3433 (i386_gdbarch_init): Adjust for removal of the
3434 macros mentioned above.
3435
e9e68a56
AC
34362002-06-15 Andrew Cagney <ac131313@redhat.com>
3437
3438 * command.h (add_setshow_auto_boolean_cmd): Replace
3439 add_set_auto_boolean_cmd.
3440 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3441 add_set_auto_boolean_cmd.
3442 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3443 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3444 mask-address'' command.
3445 (show_mask_address): Add cmd parameter.
3446 * remote.c (add_packet_config_cmd): Update. Change type of
3447 set_func and show_func to cmd_sfunc_ftype.
3448 (_initialize_remote): Update `set remote Z-packet'
3449 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3450 (show_remote_protocol_e_packet_cmd): Ditto.
3451 (show_remote_protocol_E_packet_cmd): Ditto.
3452 (show_remote_protocol_P_packet_cmd): Ditto.
3453 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3454 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3455 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3456 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3457 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3458 (show_remote_protocol_Z_packet_cmd): Ditto.
3459 (show_remote_protocol_binary_download_cmd): Ditto.
3460 (show_remote_cmd): Pass NULL to all of above.
3461
fc08ec52
MK
34622002-06-15 Mark Kettenis <kettenis@gnu.org>
3463
3464 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3465 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3466 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3467 POP_FRAME): Remove defines.
3468 (i386_push_arguments, i386_store_struct_return,
3469 i386_extract_return_value, i386_store_return_value,
3470 i386_extract_struct_value_address, i386_push_dummy_frame,
3471 i386_pop_frame): Renove prototypes.
3472 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3473 macros mentioned above.
3474
e707bbc2
AC
34752002-06-15 Andrew Cagney <ac131313@redhat.com>
3476
3477 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3478 add_set_boolean_cmd.
3479 (add_setshow_cmd): New function.
3480 * command.h (add_setshow_boolean_cmd): Replace
3481 add_set_boolean_cmd.
3482 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3483 and ``set rdiromatzero''.
3484 * maint.c (_initialize_maint_cmds): Update commented out code.
3485 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3486 * target.c (initialize_targets): Update `set
3487 trust-readonly-sections'.
3488 * remote.c (_initialize_remote): Update `set remotebreak'.
3489
42fdc8df
MK
34902002-06-15 Mark Kettenis <kettenis@gnu.org>
3491
93924b6b
MK
3492 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3493 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3494 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3495 fit into multi-arch framework.
3496 (i386_breakpoint_from_pc): New function.
3497 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3498 above.
3499
42fdc8df
MK
3500 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3501 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3502 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3503 (i386_frameless_function_invocation, i386_frame_num_args,
3504 i386_frame_init_saved_regs): Remove prototypes.
3505 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3506 macros mentioned above.
3507
9773a94b
AC
35082002-06-15 Andrew Cagney <ac131313@redhat.com>
3509
3510 * cli/cli-decode.c (set_cmd_cfunc): Update.
3511 (set_cmd_sfunc): Update.
3512 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3513 (set_cmd_sfunc, set_cmd_cfunc): Update.
3514 * cli/cli-decode.h: Update.
3515
6e157172
MK
35162002-06-15 Mark Kettenis <kettenis@gnu.org>
3517
3518 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3519 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3520
7f19b9a2
AC
35212002-06-15 Andrew Cagney <ac131313@redhat.com>
3522
3523 * defs.h (auto_boolean): Declare enum.
3524 * command.h (cmd_auto_boolean): Delete enum.
3525 * mips-tdep.c (mask_address_var): Update.
3526 (mips_mask_address_p): Update.
3527 (show_mask_address): Update.
3528 * remote.c (struct packet_config): Update.
3529 (update_packet_config): Update.
3530 (show_packet_config_cmd): Update.
3531 (packet_ok): Update.
3532 (add_packet_config_cmd): Update.
3533 (_initialize_remote):
3534 * command.h: Update.
3535 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3536 (do_setshow_command): Update.
3537 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3538 * cli/cli-decode.h: Update.
3539
1cf88de5
MK
35402002-06-15 Mark Kettenis <kettenis@gnu.org>
3541
22ba8cf2
MK
3542 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3543 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3544 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3545 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3546 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3547 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3548
762c5349
MK
3549 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3550 list of DJGPP COFF targets.
3551
091198bb
MK
3552 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3553 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3554 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3555 (FP0_REGNUM): Remove define.
3556 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3557 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3558 (i386_register_virtual_size): Remove protoype.
3559 * i386-tdep.c (i386_register_virtual_size): Removed.
3560 (i386_extract_return_value, i386_store_return_value): Use
3561 FP0_REGNUM instead of NUM_FREGS to determine whether the
3562 floating-point registers are available.
3563 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3564 Adjust for removal of macros mentioned above.
3565
35662002-06-15 Mark Kettenis <kettenis@gnu.org>
3567
fcc9bf01
MK
3568 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3569 comments.
3570 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3571 Remove prototypes.
3572 (supply_gregset, fill_gregset): Remove use of register keyword and
3573 remove declaration for regmap. Use I386_NUM_GREGS instead of
3574 NUM_REGS and NUM_FREGS.
3575 (FPREGSET_FSAVE_OFFSET): Remove.
3576 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3577 NUM_FREGS to determine whether the floating-point registers are
3578 available.
3579
65e78234
MK
3580 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3581 gnu_store_registers): Replace usage of NUM_GREGS with
3582 I386_NUM_GREGS.
3583
98df6387
MK
3584 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3585 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3586 usage of NUM_GREGS with I386_NUM_GREGS.
3587
099a9414
MK
3588 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3589
57976e88
MK
3590 * i386bsd-nat.c: Include "i386-tdep.h".
3591 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3592 I386_NUM_GREGS.
3593
b335f4a6
MK
3594 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3595 and associated comment. They no longer make any sense, since we
3596 don't use this file anymore on Linux.
3597
1cf88de5
MK
3598 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3599 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3600 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3601 elements in these arrays.
3602 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3603 MAX_NUM_REGS.
3604
daa66587
MK
36052002-06-15 Mark Kettenis <kettenis@gnu.org>
3606
3607 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3608 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3609
26e9b323
AC
36102002-06-14 Andrew Cagney <cagney@redhat.com>
3611
3612 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3613 EXTRACT_RETURN_VALUE.
3614 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3615 EXTRACT_STRUCT_VALUE_ADDRESS.
3616 * gdbarch.h, gdbarch.c: Regenerate.
3617
3618 * values.c (value_being_returned): Handle
3619 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3620 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3621
3622 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3623 * arm-tdep.c (arm_gdbarch_init): Update.
3624 * avr-tdep.c (avr_gdbarch_init): Update.
3625 * cris-tdep.c (cris_gdbarch_init): Update.
3626 * d10v-tdep.c (d10v_gdbarch_init): Update.
3627 * ia64-tdep.c (ia64_gdbarch_init): Update.
3628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3629 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3630 * s390-tdep.c (s390_gdbarch_init): Update.
3631 * sh-tdep.c (sh_gdbarch_init): Update.
3632 * s390-tdep.c (s390_gdbarch_init): Update.
3633 * sparc-tdep.c (sparc_gdbarch_init): Update.
3634 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3635 * v850-tdep.c (v850_gdbarch_init): Update.
3636 * vax-tdep.c (vax_gdbarch_init): Update.
3637 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3639
3640 * config/arc/tm-arc.h: Update.
3641 * config/d30v/tm-d30v.h: Update.
3642 * config/fr30/tm-fr30.h: Update.
3643 * config/h8300/tm-h8300.h: Update.
3644 * config/h8500/tm-h8500.h: Update.
3645 * config/i386/tm-i386.h: Update.
3646 * config/i386/tm-ptx.h: Update.
3647 * config/i386/tm-symmetry.h: Update.
3648 * config/i960/tm-i960.h: Update.
3649 * config/m32r/tm-m32r.h: Update.
3650 * config/m68k/tm-delta68.h: Update.
3651 * config/m68k/tm-linux.h: Update.
3652 * config/m68k/tm-m68k.h: Update.
3653 * config/m88k/tm-m88k.h: Update.
3654 * config/mcore/tm-mcore.h: Update.
3655 * config/mips/tm-mips.h: Update.
3656 * config/mn10200/tm-mn10200.h: Update.
3657 * config/pa/tm-hppa.h: Update.
3658 * config/pa/tm-hppa64.h: Update.
3659 * config/sparc/tm-sp64.h: Update.
3660 * config/sparc/tm-sparc.h: Update.
3661 * config/sparc/tm-sparclet.h: Update.
3662 * config/z8k/tm-z8k.h: Update.
3663
5179e78f
AC
36642002-06-14 Andrew Cagney <cagney@redhat.com>
3665
3666 * Makefile.in (i386_linux_tdep_h): Define.
3667 (i386_tdep_h, i387_tdep_h): Define.
3668 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3669 $(i386_tdep_h) and $(i387_tdep_h).
3670 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3671
8201327c
MK
36722002-06-14 Mark Kettenis <kettenis@gnu.org>
3673
edf393ac
MK
3674 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3675 Already covered by the default.
3676
896fb97d
MK
3677 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3678 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3679 (i386_gdbarch_init): Initialize long_double_format and long_double
3680 bit.
3681
8201327c
MK
3682 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3683 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3684 Move these to ...
3685 * config/i386/i386sol2.mh: ... here.
3686 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3687 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3688 (SIGCONTEXT_PC_OFFSET): Remove define.
3689 (IN_SIGTRAMP): Remove define.
3690 * i386-sol2-tdep.c: New file.
3691
3692 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3693 * config/i386/tm-i386nw.h: Removed.
3694
3695 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3696 USE_STRUCT_CONVENTION): Remove defines.
3697 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3698 (get_longjmp_target): Remove prototype.
3699 (IN_SIGTRAMP): Remove define.
3700 (i386bsd_in_sigtramp): Remove prototype.
3701 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3702 function. Update comment accordingly
3703 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3704 (FRAME_SAVED_PC): Remove define.
3705 (i386bsd_frame_saved_pc): Remove prototype.
3706 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3707 GET_LONGJMP_TARGET): Remove defines.
3708 (get_longjmp_target): Remove prototype.
3709 (IN_SIGTRAMP): Remove define.
3710 (i386bsd_in_sigtramp): Remove prototype.
3711 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3712 function. Update comment accordingly
3713 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3714 (FRAME_SAVED_PC): Remove define.
3715 (i386bsd_frame_saved_pc): Remove prototype.
3716 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3717 Remove prototype.
3718 (USE_STRUCT_CONVENTION): Remove prototype.
3719 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3720 declaration.
3721 (_initialize_i386bsd_nat): Revise logic to determine some
3722 constants at compile time when compiling a native GDB. Warn if
3723 things don't match up with what we expect.
3724 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3725 Remove variables.
3726 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3727 to use date stored in `struct gdbarch_tdep'.
3728 (i386bsd_sigcontext_offset): Remove varaible.
3729 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3730 stored in `struct gdbarch_tdep'.
3731 (i386bsd_frame_saved_pc): Make static.
3732 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3733 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3734 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3735 i386fbsd4_sc_pc_offset): New variables.
3736 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3737 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3738 functions.
3739 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3740 functions.
3741 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3742 Modify the value of i386fbsd_sigtramp_start and
3743 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3744 i386fbsd_sigtramp_end.
3745 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3746 function.
3747
3748 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3749 define to i386-linux-tdep.h.
3750 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3751 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3752 defines.
3753 (i386_linux_register_name, i386_linux_register_byte,
3754 i386_linux_register_raw_size): Remove prototypes.
3755 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3756 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3757 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3758 TARGET_WRITE_PC): Remove defines.
3759 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3760 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3761 i386_linux_write_pc): Remove prototypes.
3762 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3763 (get_longjmp_target): Remove prototype.
3764 * i386-linux-tdep.h: New file.
3765 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3766 * i386-linux-tdep.c: Include "i386-tdep.h" and
3767 "i386-linux-tdep.h".
3768 (i386_linux_register_name, i386_linux_register_byte,
3769 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3770 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3771 Make static.
3772 (i386_linux_init_abi): New function.
3773 (_initialize_i386_linux_tdep): New function.
3774
3775 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3776 (i386_saved_pc_after_call): Remove prototype.
3777 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3778 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3779 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3780 (i386_register_name, i386_stab_reg_to_regnum,
3781 i386_dwarf_reg_to_regnum): Remove prototypes.
3782 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3783 SIZEOF_SSE_REGS): Remove defines.
3784 (REGISTER_BYTES): Remove define.
3785 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3786 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3787 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3788 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3789 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3790 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3791 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3792 (get_longjmp_target): Remove prototype.
3793 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3794 (sigtramp_saved_pc): Remove define.
3795 (i386v4_sigtramp_saved_pc): Remove prototype.
3796 * config/i386/tm-go32.h (FRAME_CHAIN,
3797 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3798 (i386go32_frame_saved_pc): Remove prototype.
3799 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3800 (get_longjmp_target): Remove prototype.
3801 * i386-tdep.h: Include "osabi.h".
3802 (enum i386_abi): Removed.
3803 (enum struct_return): New enum.
3804 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3805 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3806 sc_pc_offset members.
3807 (i386_gdbarch_register_os_abi): Remove prototype.
3808 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3809 I386_SSE_NUM_REGS): New defines.
3810 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3811 I386_SSE_SIZEOF_REGS): New defines.
3812 (i386_register_name, i386_register_byte, i386_register_raw_size):
3813 New prototypes.
3814 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3815 (i386bsd_sigtramp_saved_pc): New prototype.
3816 * i386-tdep.c: Don't include "elf-bfd.h".
3817 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3818 i386_frame_chain, i386_saved_pc_after_call): Make static.
3819 (i386_frame_saved_pc): Rewrite to call architecture dependent
3820 function to deal with signal handlers. Make static.
3821 (i386go32_frame_saved_pc): Removed.
3822 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3823 Removed.
3824 (i386_get_longjmp_target): New function.
3825 (default_struct_convention, pcc_struct_convention,
3826 reg_struct_convention, valid_conventions, struct_convention): New
3827 variables.
3828 (i386_use_struct_convention): New function.
3829 (i386v4_sigtramp_saved_pc): Renamed to
3830 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3831 (i386_pc_in_sigtramp): New function.
3832 (i386_abi_names): Removed.
3833 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3834 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3835 Removed.
3836 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3837 i386_gdbarch_register_os_abi): Removed.
3838 (struct i386_abi_handler): Removed.
3839 (i386_abi_handler_list): Removed.
3840 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3841 functions.
3842 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3843 i386_nw_init_abi): New functions.
3844 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3845 Use set_gdbarch_xxx() calls instead of relying on macros for a
3846 number of calls.
3847 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3848 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3849 Register the various architecture variants defined in this file.
3850
ad2f7632
DJ
38512002-06-14 Daniel Jacobowitz <drow@mvista.com>
3852
3853 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3854 (struct main_type): Remove arg_types member. Update comments for
3855 struct field.
3856 (TYPE_ARG_TYPES): Remove.
3857 (TYPE_FN_FIELD_ARGS): Update.
3858 (smash_to_method_type): Update prototype.
3859
3860 * c-typeprint.c (cp_type_print_method_args): Take method type
3861 instead of argument list. Use new argument layout. Simplify.
3862 (c_type_print_args): Use new argument layout. Simplify.
3863 (c_type_print_base): Update call to cp_type_print_method_args.
3864 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3865 argument; use die->type instead. Update call to
3866 smash_to_method_type.
3867 (read_structure_scope): Update call to dwarf2_add_member_fn.
3868 * gdbtypes.c (allocate_stub_method): Update comment.
3869 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3870 Use new argument layout.
3871 (check_stub_method): Use new argument layout. Don't count
3872 void as an argument.
3873 (print_arg_types): Update comments. Use new argument layout.
3874 (recursive_dump_type): Don't print arg_types member.
3875 * hpread.c (hpread_read_struct_type): Use new argument layout.
3876 (fixup_class_method_type): Likewise.
3877 (hpread_type_lookup): Likewise.
3878 * stabsread.c (read_type): Update calls to read_args and
3879 smash_to_method_type.
3880 (read_args): Use new argument layout. Simplify.
3881 * valops.c (typecmp): Use new argument layout. Update parameters
3882 and comments. Simplify.
3883 (hand_function_call): Use new argument layout.
3884 (search_struct_method): Update call to typecmp.
3885 (find_overload_match): Use new argument layout.
3886
6da02953
DJ
38872002-06-13 Daniel Jacobowitz <drow@mvista.com>
3888
3889 * NEWS: Mention multithreaded debug support for gdbserver.
3890
519b2366
DJ
38912002-06-13 Daniel Jacobowitz <drow@mvista.com>
3892
3893 * MAINTAINERS: Mention NEWS.
3894
6c0d6680
DJ
38952002-06-13 Daniel Jacobowitz <drow@mvista.com>
3896
3897 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3898 (struct mips_objfile_private, compare_pdr_entries): New.
3899 (non_heuristic_proc_desc): Read the ".pdr" section if it
3900 is present.
3901
6529d2dd
AC
39022002-06-12 Andrew Cagney <ac131313@redhat.com>
3903
3904 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3905 (arm_debug): New static variable.
3906 (_initialize_arm_tdep): Add ``set debug arm'' command.
3907
26216b98
AC
39082002-06-12 Andrew Cagney <ac131313@redhat.com>
3909
3910 * Makefile.in (sim_arm_h): Define.
3911 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3912 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3913 (arm_register_sim_regno): New function, map an internal REGNUM
3914 onto a simulator register number.
3915 (arm_gdbarch_init): Set register_sim_regno.
3916
814b3ba0
AH
39172002-06-09 Aldy Hernandez <aldyh@redhat.com>
3918
3919 * MAINTAINERS: Add self.
3920
475b0867
JB
39212002-06-11 Jim Blandy <jimb@redhat.com>
3922
919d772c
JB
3923 * source.c (source_info): Mention whether the symtab has
3924 information about preprocessor macros.
3925
475b0867
JB
3926 Call the command `info macro', not `show macro'.
3927 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3928 Fix error message.
3929 (_initialize_macrocmd): Register `info_macro_command' in
3930 `infolist', not `showlist'.
3931
9e364162
DJ
39322002-06-11 Daniel Jacobowitz <drow@mvista.com>
3933
3934 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3935 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3936 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3937 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3938 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3939 unconditionally.
3940 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3941 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3942 (_initialize_mips_tdep): Remove dead code.
3943 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3944 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3945 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3946 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3947 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3948 MIPS_LAST_FP_ARG_REGNUM): Remove.
3949
23aa4c72
ML
39502002-06-11 Michal Ludvig <mludvig@suse.cz>
3951
3952 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3953 (unwind_tmp_obstack_free, parse_frame_info)
3954 (update_context, cfi_read_fp, cfi_write_fp)
3955 (cfi_frame_chain, cfi_init_extra_frame_info)
3956 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3957 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3958
70eb15a4
CV
39592002-06-11 Corinna Vinschen <vinschen@redhat.com>
3960
3961 * v850-tdep.c (v850_type_is_scalar): New function.
3962 (v850_use_struct_convention): Match current gcc implementation
3963 as close as possible.
3964 (v850_push_arguments): Fix stack_offset handling. Don't write
3965 struct_addr into register. This is done by v850_store_struct_return.
3966 (v850_extract_return_value): Care for structs.
3967 (v850_store_return_value): Ditto.
3968 (v850_store_struct_return): Actually write address.
3969
482a4d06
ML
39702002-06-11 Michal Ludvig <mludvig@suse.cz>
3971
3972 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3973 without debug information too.
3974
d855c300
AC
39752002-06-10 Andrew Cagney <ac131313@redhat.com>
3976
3977 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3978 Make multi-arch pure.
3979 * gdbarch.h, gdbarch.c: Re-generate.
3980 * arm-tdep.c (arm_print_float_info): Update.
3981 * arch-utils.h (default_print_float_info): Update.
3982 * arch-utils.c (default_print_float_info): Update.
3983 * infcmd.c (float_info): Update call.
3984
dd12a101
AC
39852002-06-10 Andrew Cagney <ac131313@redhat.com>
3986
3987 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3988 the front of the initialize list.
3989
101dcfbe
AC
39902002-06-10 Andrew Cagney <ac131313@redhat.com>
3991
3992 * infrun.c (struct inferior_status): Replace fields
3993 selected_frame_address and selected_level with field
3994 selected_frame_id.
3995 (save_inferior_status): Update. Use get_frame_id.
3996 (struct restore_selected_frame_args): Delete.
3997 (restore_selected_frame): Update. Use frame_find_by_id.
3998 (restore_inferior_status): Update.
3999
4000 * breakpoint.h (struct breakpoint): Change type of
4001 watchpoint_frame to frame_id.
4002 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4003 call to get_current_frame.
4004 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4005 get_current_frame.
4006 (watchpoint_check): Use frame_find_by_id.
4007
4008 * frame.h (record_selected_frame): Delete declaration.
4009 * stack.c (record_selected_frame): Delete function.
4010
4011 * frame.h (struct frame_id): Define.
4012 (get_frame_id): Declare.
4013 (frame_find_by_id): Declare.
4014 * frame.c (frame_find_by_id): New function.
4015 (get_frame_id): New function.
4016
304270b6
AV
40172002-06-10 Andrey Volkov <avolkov@transas.com>
4018
4019 * ser-e7kpc.c: Fix duplicated define and call of
4020 _initialize_ser_e7000pc
4021
2f2cf184
DJ
40222002-06-09 Daniel Jacobowitz <drow@mvista.com>
4023
4024 * signals/signals.c (target_signal_from_host): Fix #ifdef
4025 SIGRTMIN case.
4026 (do_target_signal_to_host): Likewise.
4027
caaa3122
DJ
40282002-06-09 Daniel Jacobowitz <drow@mvista.com>
4029
4030 * mips-tdep.c (mips_find_abi_section): New function.
4031 (mips_gdbarch_init): Call it.
4032
6ac5df3a
MK
40332002-06-09 Mark Kettenis <kettenis@gnu.org>
4034
4035 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4036 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4037 after Andrew's 2002-06-08 gdbarch change.
4038
82ea117a
MK
40392002-06-09 Mark Kettenis <kettenis@gnu.org>
4040
4041 * i386-linux-nat.c (suppy_gregset): Don't supply
4042 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4043 register cache.
4044 (fill_gregset): Don't fetch it under the same circumstances.
4045
3c25f8c7
AC
40462002-06-09 Andrew Cagney <cagney@redhat.com>
4047
4048 * Makefile.in (callback_h): Define.
4049 (remote_sim_h): Update path to remote-sim.h.
4050 (remote-rdp.o): Add $(callback_h).
4051 (remote-sim.o): Use $(callback_h).
4052 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4053 * remote-rdp.c: Include "gdb/callback.h".
4054
1029b7fa
MK
40552002-06-09 Mark Kettenis <kettenis@gnu.org>
4056
4057 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4058 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4059
616675d3
AC
40602002-06-08 Andrew Cagney <ac131313@redhat.com>
4061
a3efda28
AC
4062 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4063 * rdi-share/serpardr.c: Ditto.
4064 * rdi-share/unixcomm.c: Ditto.
4065 * rdi-share/serdrv.c: Ditto.
4066 * rdi-share/hostchan.h: Ditto.
4067 * rdi-share/hostchan.c: Ditto.
4068 * rdi-share/host.h: Ditto.
4069 * rdi-share/devsw.c: Ditto.
4070
c5f10366
AC
4071 * objfiles.h: Change type of obj_private to void pointer.
4072 * pa64solib.c: Update copyright. Don't include "assert.h", use
4073 strcmp instead of STREQ, use LONGEST, do not use PTR
4074 * somsolib.c: Ditto.
4075
616675d3
AC
4076 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4077 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4078 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4079
e4b415d9
AC
40802002-06-08 Andrew Cagney <ac131313@redhat.com>
4081
4082 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4083 (default_get_saved_register): Delete function.
4084 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4085 generic_unwind_get_saved_register.
4086 * gdbarch.h, gdbarch.c: Re-generate.
4087
ca0d0b52
AC
40882002-06-08 Andrew Cagney <ac131313@redhat.com>
4089
4090 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4091 generic_func_frame_chain_valid.
4092 * gdbarch.h, gdbarch.c: Re-generate.
4093 * blockframe.c (generic_func_frame_chain_valid): Only check
4094 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4095 passing FP to PC_IN_CALL_DUMMY.
4096 Fix PR gdb/360.
4097
76860b5f
AC
40982002-06-08 Andrew Cagney <ac131313@redhat.com>
4099
4100 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4101 (register_gdbarch_data): Initialize init_p.
4102 (gdbarch_data): Initialize data pointer using the init function.
4103 (init_gdbarch_data): Delete function.
4104 (gdbarch_update_p): Update.
4105 (initialize_non_multiarch): Update.
4106 (struct gdbarch): Add field initialized_p.
4107 * gdbarch.h, gdbarch.c: Re-generate.
4108
8dda9770
ML
41092002-06-07 Michal Ludvig <mludvig@suse.cz>
4110
4111 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4112 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4113 better do the things actually here.
4114 * x86-64-tdep.c (x86_64_register_name2nr): New.
4115 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4116 (x86_64_gdbarch_init): Respect the above change.
4117 * x86-64-tdep.h (x86_64_register_name2nr)
4118 (x86_64_register_nr2name): Add prototypes.
4119 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4120
3d79a47c
MS
41212002-06-06 Michael Snyder <msnyder@redhat.com>
4122
7bd91a28
MS
4123 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4124 Delete extra braces and re-indent.
4125 (d10v_store_return_value): Char return values
3d79a47c
MS
4126 must be shifted over by one byte in R0.
4127 (d10v_extract_return_value): Delete extra braces, re-indent.
4128
095a4c96
EZ
41292002-06-06 Elena Zannoni <ezannoni@redhat.com>
4130
4131 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4132 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4133 (d10v_integer_to_address): Rewrite.
4134 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4135 the d10v specific functions which take care of converting to the
4136 correct space.
4137
e8a77ca4
EZ
41382002-06-06 Elena Zannoni <ezannoni@redhat.com>
4139
4140 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4141 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4142
4f2e4a4f
AC
41432002-06-02 Andrew Cagney <ac131313@redhat.com>
4144
4145 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4146 includes.
4147 * config/tm-linux.h: Ditto.
4148 * config/alpha/tm-alphalinux.h: Ditto.
4149 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4150 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4151 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4152 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4153 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4154 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4155 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4156 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4157 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4158 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4159 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4160 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4161 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4162 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4163 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4164 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4165 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4166 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4167 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4168 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4169 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4170 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4171 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4172 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4173 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4174 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4175 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4176 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4177 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4178 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4179 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4180 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4181 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4182 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4183 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4184 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4185 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4186
ae2ab2ce
AS
41872002-05-04 Aidan Skinner <aidan@velvet.net>
4188
4189 * ada-exp.tab.c: New file
4190 * ada-exp.y: New file
4191 * ada-lang.c: New file
4192 * ada-lang.h: New file
4193 * ada-lex.c: New file
4194 * ada-lex.l: New file
4195 * ada-tasks.c: New file
4196 * ada-typeprint.c: New file
4197 * ada-valprint.c: New file
4198
0ddd0135
JT
41992002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4200
4201 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4202 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4203
750fbacc
JT
42042002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4205
4206 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4207 insetead of ppc-linux-tdep.o.
4208 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4209 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4210
df94e18a
AC
42112002-06-02 Andrew Cagney <ac131313@redhat.com>
4212
4213 2002-05-07 Christian Groessler <chris@groessler.org>
4214 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4215 bit register contents for little endian hosts.
4216
1a38ab75
AC
42172002-06-01 Andrew Cagney <ac131313@redhat.com>
4218
4219 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4220 any maintainer.
4221
8b1632ac
AC
42222002-06-01 Andrew Cagney <ac131313@redhat.com>
4223
4224 * gdbarch.h: Regenerate.
4225
627054c8
AC
42262002-06-01 Andrew Cagney <ac131313@redhat.com>
4227
4228 * MAINTAINERS: Add everyone to write-after-approval list.
4229
4f460812
AC
42302002-06-01 Andrew Cagney <ac131313@redhat.com>
4231
4232 * stack.c (frame_info): Use frame_register_unwind instead of
4233 saved_regs. Mention when the SP is on the stack or in a register.
4234
4235 * frame.h (frame_register_unwind_ftype): Define. Document.
4236 (struct frame_info): Add field register_unwind and
4237 register_unwind_cache.
4238 (frame_register_unwind): Declare.
4239 (generic_unwind_get_saved_register): Declare.
4240
4241 * frame.c (frame_register_unwind): New function.
4242 (generic_unwind_get_saved_register): New function.
4243
4244 * blockframe.c (generic_call_dummy_register_unwind): New function.
4245 (frame_saved_regs_register_unwind): New function.
4246 (set_unwind_by_pc): New function.
4247 (create_new_frame): New function.
4248 (get_prev_frame): New function.
4249
de888f76
AC
42502002-05-30 Andrew Cagney <ac131313@redhat.com>
4251
4252 * a29k-share/: Delete directory.
4253 * remote-vx29k.c: Delete file.
4254
2f2c3626
JT
42552002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4256
4257 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4258 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4259
9ce5c36a
JT
42602002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4261
4262 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4263 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4264 (sparc64nbsd-nat.o)
4265 (sparcnbsd-nat.o)
4266 (sparcnbsd-tdep.o): New dependency lists.
4267 * NEWS: Note new UltraSPARC NetBSD native configuration.
4268 * configure.host (sparc64-*-netbsd*): New host.
4269 * configure.tgt (sparc-*-netbsdelf*)
4270 (sparc-*-netbsd*): Set gdb_target to nbsd.
4271 (sparc64-*-netbsd*): New target.
4272 * sparc64nbsd-nat.c: New file.
4273 * sparcnbsd-nat.c: New file.
4274 * sparcnbsd-tdep.c: New file.
4275 * sparcnbsd-tdep.h: New file.
4276 * config/sparc/nbsd.mt: New file.
4277 * config/sparc/nbsd64.mh: New file.
4278 * config/sparc/nbsd64.mt: New file.
4279 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4280 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4281 (HOST_IPC): Remove.
4282 * config/sparc/nbsdaout.mt: Remove.
4283 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4284 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4285 (HOST_IPC): Remove.
4286 * config/sparc/nbsdelf.mt: Remove.
4287 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4288 sparc-nat.c compatiblity defines.
4289 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4290 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4291 * config/sparc/tm-nbsd64.h: New file.
4292 * config/sparc/tm-nbsdaout.h: Remove.
4293 * config/sparc/xm-nbsd.h: Remove.
4294
ef3cf062
JT
42952002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4296
4297 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4298 * sparc-tdep.c: Include osabi.h.
4299 (gdbarch_tdep): Add osabi member.
4300 (_initialize_sparc_tdep): Use gdbarch_register.
4301 (sparc_gdbarch_init): Use generic OS ABI framework.
4302 (sparc_dump_tdep): New function.
4303
ee8ff470
KB
43042002-05-30 Kevin Buettner <kevinb@redhat.com>
4305
4306 * corefile.c (do_captured_read_memory_integer): Return non-zero
4307 result.
4308 (safe_read_memory_integer): Copy result of memory read when
4309 status is non-zero. Also, add comments.
4310
7b112f9c
JT
43112002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4312
4313 * Makefile.in (ppc_tdep_h): Define.
4314 (ppc-linux-nat.o)
4315 (ppc-linux-tdep.o)
4316 (rs6000-tdep.o): Use $(ppc_tdep_h).
4317 (ppc-sysv-tdep.o)
4318 (ppcnbsd-nat.o)
4319 (ppcnbsd-tdep.o): New dependency lists.
4320 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4321 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4322 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4323 (ppc_sysv_abi_broken_use_struct_convention)
4324 (ppc_sysv_abi_use_struct_convention)
4325 (ppc_sysv_abi_push_arguments): Move to...
4326 * ppc-sysv-tdep.c: ...here.
4327 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4328 * rs6000-tdep.c (process_note_abi_tag_sections)
4329 (get_elfosabi): Remove.
4330 (rs6000_gdbarch_init): Use generic OS ABI framework.
4331 (rs6000_dump_tdep): New function.
4332 (_initialize_rs6000_tdep): Use gdbarch_register.
4333 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4334 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4335 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4336 of ppc-linux-tdep.o.
4337 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4338 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4339 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4340 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4341 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4342 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4343
480dd42a
JB
43442002-05-29 Jim Blandy <jimb@redhat.com>
4345
4346 * macroscope.c (default_macro_scope): Put `void' in empty argument
4347 list.
4348
4182591f
AC
43492002-05-29 Andrew Cagney <ac131313@redhat.com>
4350
4351 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4352 * arch-utils.c: Include "sim-regno.h".
4353 * gdbarch.sh: Don't include "sim-regno.h".
4354 * gdbarch.h, gdbarch.c: Regenerate.
4355 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4356 here.
4357 * arch-utils.h (legacy_register_sim_regno): To here.
4358 * remote-sim.c (legacy_register_sim_regno): Move function from
4359 here.
4360 * arch-utils.c (legacy_register_sim_regno): To here.
4361
8238d0bf
AC
43622002-05-28 Andrew Cagney <ac131313@redhat.com>
4363
4364 * sim-regno.h: New file.
4365 * Makefile.in (sim_regno_h): Define.
4366 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4367 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4368 (legacy_register_sim_regno): New function.
4369 (one2one_register_sim_regno): New function.
4370 (gdbsim_fetch_register): Rewrite.
4371 (gdbsim_store_register): Only store a register when
4372 REGISTER_SIM_REGNO is valid.
4373 * d10v-tdep.c: Include "sim-regno.h".
4374 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4375 (d10v_ts3_register_sim_regno): Ditto.
4376 * gdbarch.sh: Include "sim-regno.h".
4377 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4378 * gdbarch.h, gdbarch.c: Regenerate.
4379 * arch-utils.h (default_register_sim_regno): Delete declaration.
4380 * arch-utils.c (default_register_sim_regno): Delete function.
4381
485721b1
JT
43822002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4383
4384 * ppcnbsd-nat.c: Rewrite.
4385 * ppcnbsd-tdep.c: New file.
4386 * ppcnbsd-tdep.h: New file.
4387 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4388 solib.o, and solib-svr4.o.
4389 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4390 nbsd-tdep.o, and corelow.o.
4391
697f244d
AC
43922002-05-28 Andrew Cagney <ac131313@redhat.com>
4393
4394 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4395 `tr' and `sed'. Mention that `broken' targets are not expected to
4396 build.
4397
f08caad1 43982002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4399
4400 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4401 Let PC point right after the prologue before looking up symbols.
4402
3139facc
MH
44032002-05-27 Martin M. Hunt <hunt@redhat.com>
4404
4405 * i386-tdep.c (i386_register_virtual_type): Return
4406 builtin_type_vec128i for SSE registers.
4407
4408 * gdbtypes.h (builtin_type_vec128i): Declare.
4409
4410 * gdbtypes.c (build_builtin_type_vec128i): New function.
4411 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4412 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4413 (build_gdbtypes): Initialize new builtin vector types.
4414 (_initialize_gdbtypes): Register new vector types with gdbarch.
4415
6e3ba3b8
JT
44162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4417
4418 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4419 since it has been multi-arch'd.
4420 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4421 Move Alpha and VAX multi-arch news entries to same section
4422 as other multi-arch news.
4423
93d5585d
JT
44242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4425
4426 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4427 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4428 static. Rename some register numbers to put them in ns32k-tdep
4429 private namespace.
4430 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4431 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4432 functions.
4433 (_initialize_ns32k_tdep): Use gdbarch_register.
4434 * ns32k-tdep.h: New file.
4435 * ns32knbsd-tdep.c: New file.
4436 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4437 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4438 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4439 REGISTER_BYTES, REGISTER_BYTE): Remove.
4440 * config/ns32k/tm-ns32k.h: New file.
4441 * config/ns32k/tm-umax.h: Remove.
4442
efb2c70e
JT
44432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4444
4445 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4446 ns32k_store_struct_return, ns32k_extract_return_value,
4447 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4448 functions.
4449 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4450 ns32k_saved_pc_after_call.
4451 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4452 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4453 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4454 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4455 ns32k_extract_struct_value_address.
4456
7bcc927b
JT
44572002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4458
4459 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4460 ns32k_fix_call_dummy): New.
4461 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4462 ns32k_call_dummy_words.
4463 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4464 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4465 CALL_DUMMY_NARGS): Remove.
4466 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4467
78f9d765
JT
44682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4469
4470 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4471 ns32k_frame_saved_pc, ns32k_frame_args_address,
4472 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4473 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4474 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4475 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4476 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4477 (BREAKPOINT): Remove..
4478 (FRAME_CHAIN): Define as ns32k_frame_chain.
4479 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4480 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4481 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4482 (FRAME_FIND_SAVED_REGS): Remove.
4483 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4484 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4485 (POP_FRAME): Define as ns32k_pop_frame.
4486
f2c762e0
JT
44872002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4488
4489 * ns32k-tdep.c (ns32k_register_byte_32082,
4490 ns32k_register_byte_32382, ns32k_register_raw_size,
4491 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4492 functions.
4493 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4494 ns32k_register_byte_32382.
4495 * config/ns32k/tm-umax.h: Update copyright years.
4496 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4497 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4498 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4499 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4500 (ns32k_get_enter_addr): Fix prototype.
4501
af137673
JT
45022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4503
4504 * ns32k-tdep.c: Update copyright years.
4505 (ns32k_register_name_32082): New function.
4506 (ns32k_register_name_32382): Ditto.
4507 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4508 (REGISTER_NAME): Define as ns32k_register_name_32382.
4509 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4510 (REGISTER_NAME): Define as ns32k_register_name_32082.
4511
a8bc7b56
JB
45122002-05-24 Jim Blandy <jimb@redhat.com>
4513
4514 * dwarf2read.c (free_line_header): Use xfree, not free.
4515
83a45910
JT
45162002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4517
4518 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4519 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4520
0db71247
AC
45212002-05-23 Andrew Cagney <ac131313@redhat.com>
4522
4523 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4524
b9e5e4dd
AC
45252002-05-23 Andrew Cagney <ac131313@redhat.com>
4526
4527 From Ross Alexander at NEC Europe:
4528 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4529
de530e84
MS
45302002-05-23 Michael Snyder <msnyder@redhat.com>
4531
4532 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4533 for input, rather than parse_and_eval_address.
4534
b91b96f4
AC
45352002-05-23 Andrew Cagney <ac131313@redhat.com>
4536
4537 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4538 * Makefile.in (sim_d10v_h): Update definition.
4539
8b279e7a
AC
45402002-05-24 Andrew Cagney <cagney@redhat.com>
4541
4542 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4543 change `2002-05-22 Michael Snyder' below.
4544 (d10v_push_arguments): Ditto.
4545 (d10v_extract_return_value): Ditto.
4546
0a3d0425
JB
45472002-05-23 Jim Blandy <jimb@redhat.com>
4548
4549 * macrotab.c (check_for_redefinition): Don't complain if the new
4550 definition is the same as the previous one. Take more arguments
4551 to allow the comparison.
4552 (macro_define_object, macro_define_function): Pass more arguments
4553 to check_for_redefinition.
4554
78eac43e
MS
45552002-05-22 Michael Snyder <msnyder@redhat.com>
4556
4557 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4558 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4559 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4560 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4561 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4562 Add a temp variable to save a call (and a memory read).
4563 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4564 if possible (so that PC_IN_CALL_DUMMY will work).
4565
9bc1edb8
CV
45662002-05-22 Corinna Vinschen <vinschen@redhat.com>
4567
4568 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4569
005ef3d2
ML
45702002-05-22 Michal Ludvig <mludvig@suse.cz>
4571
4572 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4573 fde->cie_ptr.
4574 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4575 (dwarf2_build_frame_info): Add offset to fde->initial_location
4576 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4577 (execute_stack_op): Change type of 'result' from ULONGEST to
4578 CORE_ADDR.
005ef3d2 4579
fcf4f891
JT
45802002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4581
4582 * config/alpha/tm-nbsd.h: Include solib.h.
4583
cfef91e4
JT
45842002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4585
4586 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4587 assumptions about the host's byte order.
4588
9964235a
JT
45892002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4590
4591 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4592 to dependency list.
4593 * alphanbsd-tdep.c: Include solib-svr4.h.
4594 * shnbsd-tdep.c: Ditto.
4595
9eeef8ef
JT
45962002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4597
4598 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4599 nbsd-tdep.h to dependency list.
4600 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4601 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4602 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4603 nbsdaout.mh and nbsdelf.mh consistently.
4604 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4605 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4606 nbsdaout.mt and nbsdelf.mh consistently.
4607 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4608 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4609 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4610 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4611 a.out shared library stuff from here...
4612 * config/nm-nbsdaout.h: ...to here.
4613 * config/tm-nbsd.h: Remove.
4614 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4615 * config/arm/nbsd.mh: Remove.
4616 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4617 nbsd-tdep.o.
4618 * config/arm/nbsdaout.mh: New file.
4619 * config/arm/nbsdelf.mh: New file.
4620 * config/arm/nm-nbsdaout.h: New file.
4621 * config/i386/nbsd.mh: Remove.
4622 * config/i386/nbsd.mt: Remove.
4623 * config/i386/nbsdaout.mh: New file.
4624 * config/i386/nbsdaout.mt: New file.
4625 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4626 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4627 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4628 i386_register_u_addr): Remove.
4629 * config/i386/nm-nbsdaout.h: New file.
4630 * config/i386/nm-nbsdelf.h: Remove.
4631 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4632 (USE_STRUCT_CONVENTION): Remove.
4633 * config/i386/tm-nbsdaout.h: New file.
4634 * config/i386/tm-nbsdelf.h: Remove.
4635 * config/m68k/nbsd.mh: Remove.
4636 * config/m68k/nbsd.mt: Remove.
4637 * config/m68k/nbsdaout.mh: New file.
4638 * config/m68k/nbsdaout.mt: New file.
4639 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4640 * config/m68k/nm-nbsdaout.h: New file.
4641 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4642 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4643 * config/ns32k/nbsd.mh: Remove.
4644 * config/ns32k/nbsd.mt: Remove.
4645 * config/ns32k/nbsdaout.mh: New file.
4646 * config/ns32k/nbsdaout.mt: New file.
4647 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4648 * config/ns32k/nm-nbsdaout.h: New file.
4649 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4650 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4651 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4652 (SVR4_SHARED_LIBS): Remove.
4653 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4654 * config/sparc/nbsd.mh: Remove.
4655 * config/sparc/nbsd.mt: Remove.
4656 * config/sparc/nbsdaout.mh: New file.
4657 * config/sparc/nbsdaout.mt: New file.
4658 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4659 * config/sparc/nbsdelf.mt: New file.
4660 * config/sparc/nm-nbsdaout.h: New file.
4661 * config/sparc/nm-nbsdelf.h: Remove.
4662 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4663 * config/sparc/tm-nbsdaout.h: New file.
4664
257ce470
JT
46652002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4666
4667 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4668 mipsnbsd-tdep.c
4669 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4670
76a6d5fe
JT
46712002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4672
4673 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4674 shnbsd-nat.c.
4675 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4676
45888261
JT
46772002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4678
4679 * NEWS: Note new MIPS NetBSD native configuration.
4680 * configure.host (mips*-*-netbsd*): New host.
4681 * configure.tgt (mips*-*-netbsd*): New target.
4682 * mipsnbsd-nat.c: New file.
4683 * mipsnbsd-tdep.c: New file.
4684 * mipsnbsd-tdep.h: New file.
4685 * config/mips/nbsd.mh: New file.
4686 * config/mips/nbsd.mt: New file.
4687 * config/mips/nm-nbsd.h: New file.
4688 * config/mips/tm-nbsd.h: New file.
4689
70f80edf
JT
46902002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4691
4692 * Makefile.in (SFILES): Add osabi.c.
4693 (COMMON_OBS): Add osabi.o.
4694 (osabi.o): New dependency list.
4695 * osabi.c: New file.
4696 * osabi.h: New file.
4697 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4698
4699 * Makefile.in (alpha_tdep_h): Define and use instead of
4700 alpha-tdep.h.
4701 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4702 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4703 Remove.
4704 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4705 * alpha-tdep.h: Include osabi.h.
4706 (alpha_abi): Remove.
4707 (gdbarch_tdep): Use generic OS ABI framework.
4708 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4709 gdbarch_register_osabi.
4710 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4711 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4712 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4713
4714 * Makefile.in (sh_tdep_h): Add osabi.h.
4715 * sh-tdep.h (sh_osabi): Remove.
4716 (gdbarch_tdep): Use generic OS ABI framework.
4717 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4718 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4719 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4720 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4721
4722 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4723 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4724 gdbarch_register_osabi.
4725 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4726 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4727 (get_elfosabi): Rename to...
4728 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4729 ABI framework support routines.
4730 (arm_gdbarch_init): Use generic OS ABI framework.
4731 (arm_dump_tdep): Likewise.
4732 (_initialize_arm_tdep): Likewise.
4733 * arm-tdep.h: Include osabi.h.
4734 (arm_abi): Remove.
4735 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4736 osabi member.
4737 (arm_gdbarch_register_os_abi): Remove prototype.
4738 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4739 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4740
4741 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4742 * mips-tdep.c: Include osabi.h.
4743 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4744 OS ABI framework.
4745
d194345b
KH
47462002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4747
4748 * h8300-tdep.c: Fix formatting.
4749
70c6b0d1
EZ
47502002-05-20 Elena Zannoni <ezannoni@redhat.com>
4751
4752 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4753 printing vector registers.
4754
165b8e33
AC
47552002-05-19 Andrew Cagney <ac131313@redhat.com>
4756
4757 From Fernando Nasser:
4758 * remote.c (remote_async_open_1): Re-throw the exception when the
4759 connection fails.
4760 (remote_cisco_open): Ditto.
4761 (remote_open_1): Ditto.
4762
36918e70
AC
47632002-05-19 Andrew Cagney <ac131313@redhat.com>
4764
4765 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4766 (remote_start_remote): Add uiout parameter. Pass through to
4767 remote_start_remote_dummy.
4768 (remote_open_1): Use catch_exception instead of catch_errors.
4769 (remote_async_open_1): Ditto.
4770 (remote_cisco_open): Ditto.
4771
ae44c0c4
AC
47722002-05-19 Andrew Cagney <ac131313@redhat.com>
4773
4774 * remote.c (remote_start_remote): Replace PTR with void pointer.
4775 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4776 static.
4777
8efe637d
AC
47782002-05-18 Andrew Cagney <ac131313@redhat.com>
4779
4780 * gdb_indent.sh: Allow the script to be run in the sim directory.
4781
2f1b5984
MK
47822002-05-18 Mark Kettenis <kettenis@gnu.org>
4783
f0f625e2
MK
4784 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4785 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4786
2f1b5984
MK
4787 * corelow.c (core_open): Only call set_gdbarch_from_file if
4788 exec_bfd is NULL.
4789
fc974602
AV
47902002-05-17 Andrey Volkov <avolkov@transas.com>
4791
4792 * h8300-tdep.c: Add support of EXR register
4793 * config/h8300/tm-h8300.h: Ditto.
4794
906709f4
AV
47952002-05-17 Andrey Volkov <avolkov@transas.com>
4796
4797 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4798
6e591d68
AV
47992002-05-17 Andrey Volkov <avolkov@transas.com>
4800
4801 * h8300-tdep.c: Change literal regnums to REGNO.
4802
84f0252a
JB
48032002-05-17 Jim Blandy <jimb@redhat.com>
4804
e0e9281e
JB
4805 * NEWS: Note addition of macro support.
4806
84f0252a
JB
4807 Expand preprocessor macros in C expressions.
4808 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4809 (scan_macro_expansion, scanning_macro_expansion,
4810 finished_macro_expansion): New function declarations.
4811 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4812 variable declarations.
4813 * parser-defs.h (expression_context_pc): New declaration.
4814 * parse.c (expression_context_pc): New variable.
4815 (parse_exp_1): Set expression_context_pc, as well as
4816 expression_context_block.
4817 * c-exp.y (yylex): If we're not already reading the result of a
4818 macro expansion, try to macro-expand the next token. When we're
4819 done scanning a macro expansion, switch back to the mainline text.
4820 Commas and `if's in a macro's expansion don't terminate the input.
4821 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4822 (macro_original_text, macro_expanded_text,
4823 expression_macro_lookup_func, expression_macro_lookup_baton): New
4824 variables.
4825 (scan_macro_expansion, scanning_macro_expansion,
4826 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4827 c_preprocess_and_parse): New functions.
4828 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4829 c_preprocess_and_parse, instead of c_parse.
4830 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4831 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4832
1c509ca8
JR
4833Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4834
4835 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4836 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4837 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4838
2250ee0c
CV
48392002-05-17 Corinna Vinschen <vinschen@redhat.com>
4840
4841 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4842
ab3b8126
JT
48432002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4844
4845 * Makefile.in (sh_tdep_h): Define and use.
4846 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4847 register enum): Move to...
4848 * * sh-tdep.h: ...here.
4849 * sh-tdep.c: Include sh-tdep.h.
4850 * sh3-rom.c: Likewise.
4851 * shnbsd-tdep.c: Likewise.
4852
ed9d4749
MS
48532002-05-16 Michael Snyder <msnyder@redhat.com>
4854
4855 * arm-tdep.c: Spelling fix in comment.
4856
2e276125
JB
48572002-05-16 Jim Blandy <jimb@redhat.com>
4858
6821892e
JB
4859 Add commands for manually expanding macros and showing their
4860 definitions.
4861 * macrocmd.c, macroscope.c, macroscope.h: New files.
4862 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4863 (macroscope_h): New variable.
4864 (HFILES_NO_SRCDIR): Add macroscope.h.
4865 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4866 (macroscope.o, macrocmd.o): New rules.
4867
2e276125
JB
4868 Teach the Dwarf 2 reader to read macro information.
4869 * dwarf2read.c: #include "macrotab.h".
4870 (dwarf_macinfo_buffer): New variable.
4871 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4872 dwarf_macinfo_size.
4873 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4874 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4875 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4876 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4877 dwarf2_macro_spaces_in_definition): New complaints.
4878 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4879 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4880 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4881 the partial symbol table.
4882 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4883 from what's recorded in the partial symbol table.
4884 (read_file_scope): If the compilation unit has a
4885 `DW_AT_macro_info' attribute, read its macro information.
4886 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4887
2f53fe6c
DJ
48882002-05-16 Daniel Jacobowitz <drow@mvista.com>
4889
4890 Fix PR gdb/546
4891 * ser-tcp.c: Don't include <netinet/udp.h>.
4892
2be99286
SC
48932002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4894
4895 * MAINTAINERS: Update my email address.
4896
c9af212b 48972002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4898
4899 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4900 include file of the same name.
4901
bf5f1a52
CV
49022002-05-16 Corinna Vinschen <vinschen@redhat.com>
4903
4904 * configure.tgt: Mark v850 as multi-arched.
4905 * config/v850/tm-v850.h: Remove file.
4906 * config/v850/v850.mt: Eliminate TM_FILE.
4907
435e042a
CV
49082002-05-16 Corinna Vinschen <vinschen@redhat.com>
4909
4910 * v850-tdep.c: Full multi-arch.
4911 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4912 Define GDB_MULTI_ARCH to 2.
4913
9819c6c8
PM
49142002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4915
4916 * p-exp.y (current_type): New static variable.
4917 Carries the type of the expression at the position that is parsed.
4918 (push_current_type, pop_current_type): Two new functions. Used
4919 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4920 (search_field): New static variable. Set to one after parsing a point
4921 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4922 (FIELDNAME): New token. After a point only a token belonging to
4923 current_type type definition is allowed.
4924 (all over token rules): reset and change current_type according
4925 to rules.
4926 (exp '[' rule): insert implicit array index field if
4927 exp is a pascal string type.
4928
3a06899a
CV
49292002-05-16 Corinna Vinschen <vinschen@redhat.com>
4930
4931 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4932 frame info. Use frame_info's saved_regs instead of matching member
4933 in extra_frame_info throughout.
4934 (v850_frame_init_saved_regs): New function.
4935 (v850_init_extra_frame_info): Move most functionality into
4936 v850_frame_init_saved_regs().
4937 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4938 (v850_frame_find_saved_regs): Remove declaration.
4939 (FRAME_FIND_SAVED_REGS): Remove definition.
4940 (v850_frame_init_saved_regs): Add declaration.
4941 (FRAME_INIT_SAVED_REGS): Add definition.
4942
6ed14b0e
CV
49432002-05-16 Corinna Vinschen <vinschen@redhat.com>
4944
4945 * v850-tdep.c: Begin multi-arch'ing v850.
4946 (v850_target_architecture_hook): Remove function.
4947 (v850_gdbarch_init): New function. Add code previously in
4948 v850_target_architecture_hook().
4949 (_initialize_v850_tdep): Don't set target_architecture_hook.
4950 Call register_gdbarch_init() instead.
4951
42725910
DJ
49522002-05-16 Daniel Jacobowitz <drow@mvista.com>
4953
4954 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4955 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4956 (fixup_class_method_type): Likewise.
4957
99d9066e
JB
49582002-05-15 Jim Blandy <jimb@redhat.com>
4959
4960 Add macro structures to GDB's symbol tables. Nobody puts anything
4961 in them yet.
4962 * symtab.h (struct symtab): New member: `macro_table'.
4963 * buildsym.h (pending_macros): New global variable.
4964 * buildsym.c: #include "macrotab.h".
4965 (buildsym_init): Initialize `pending_macros'.
4966 (end_symtab): If we found macro information while reading a CU's
4967 debugging info, do build a symtab structure for it. Make the
4968 symtab point to the macro information, and clear the
4969 `pending_macros' pointer which held it while we were reading the
4970 debug info.
4971 (really_free_pendings): Free any pending macro table.
4972 * objfiles.h (struct objfile): New member: `macro_cache'.
4973 * objfiles.c (allocate_objfile): Set allocate and free functions
4974 for the macro cache's objstack.
4975 (free_objfile): Empty the macro cache's obstack.
4976 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4977 set new allocate and free functions for it.
4978 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4979 free functions for the macro cache's objstack. (Why is this
4980 function building its own objfile?)
4981 * symmisc.c (print_objfile_statistics): Print statistics on the
4982 macro bcache.
4983 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4984
c899585b
RE
49852002-05-15 Richard Earnshaw <rearnsha@arm.com>
4986
4987 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4988 (REGISTER_U_ADDR): Delete definition.
4989 (arm_register_u_addr): Delete declaration.
4990
a6cdd8c5
RE
49912002-05-15 Richard Earnshaw <rearnsha@arm.com>
4992
4993 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4994 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4995
c97dcfc7
AC
49962002-05-14 Andrew Cagney <ac131313@redhat.com>
4997
4998 * regcache.c (register_valid): Revise comments refering to "Not
4999 available" and "unavailable".
5000 * frame.c (frame_register_read): Ditto.
5001 * findvar.c (value_of_register): Ditto.
5002
93021b7d
AC
50032002-05-15 Andrew Cagney <cagney@redhat.com>
5004
5005 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5006 (remote-sim.o): Update dependencies.
5007 (d10v-tdep.o): Specify dependencies.
5008 (sim_d10v_h): Define.
5009
a86bc61c
JB
50102002-05-14 Jim Blandy <jimb@redhat.com>
5011
5012 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5013 * macrotab.c (macro_lookup_inclusion, find_definition,
5014 new_macro_table): Same.
5015
5016 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5017 not `! strcmp ()'. This is a dubious improvement.
5018 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5019
5020 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5021 although it's not necessary, to avoid a warning.
5022
2fdde8f8
DJ
50232002-05-14 Daniel Jacobowitz <drow@mvista.com>
5024
5025 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5026 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5027 TYPE_INSTANCE_FLAGS.
5028 (struct main_type): New.
5029 (struct type): Move most members to struct main_type. Change
5030 cv_type and as_type to new type_chain member. Add instance_flags.
5031 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5032 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5033 (finish_cv_type): Remove prototype.
5034 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5035 Set TYPE_CHAIN.
5036 (alloc_type_instance): New function.
5037 (smash_type): New function.
5038 (make_pointer_type, make_reference_type, make_function_type)
5039 (smash_to_member_type, smash_to_method_type): Call smash_type.
5040 (make_qualified_type): New function.
5041 (make_type_with_address_space): Call make_qualified_type.
5042 (make_cv_type): Likewise.
5043 (finish_cv_type): Remove unnecessary function.
5044 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5045 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5046 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5047 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5048 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5049 * hpread.c (hpread_read_struct_type): Likewise.
5050 * stabsread.c (read_struct_type): Likewise.
5051
843fedf4
EZ
50522002-05-14 Elena Zannoni <ezannoni@redhat.com>
5053
5054 * configure.tgt: Add a catch all sh* target, for cases like
5055 sh[2,3,4]-elf and sh-hms.
5056
05a6c72c
KS
50572002-05-14 Keith Seitz <keiths@redhat.com>
5058
5059 * event-loop.c (create_file_handler): Don't do anything but
5060 update data when we are given a fd which we are already
5061 monitoring.
5062
5d085aaf
ML
50632002-05-14 Michal Ludvig <mludvig@suse.cz>
5064
5065 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5066 (update_context): Use __func__ in warnings.
5067
9db8d71f
DJ
50682002-05-14 Daniel Jacobowitz <drow@mvista.com>
5069
5070 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5071 and tcp_close to net_open and net_close.
5072 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5073 using UDP if requested. Don't try to disable Nagle on UDP
5074 sockets.
5075 * remote.c (remote_serial_open): New function. Warn about UDP.
5076 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5077
5dbc6baa
EZ
50782002-05-13 Elena Zannoni <ezannoni@redhat.com>
5079
5080 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5081
cc3023f7
EZ
50822002-05-13 Elena Zannoni <ezannoni@redhat.com>
5083
5084 * configure.tgt: Remove sh-hms target.
5085 * MAINTAINERS: Don't list sh-hms as a separate target.
5086
ec2bcbe7
JB
50872002-05-13 Jim Blandy <jimb@redhat.com>
5088
5089 Add first preprocessor macro-expansion files.
5090 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5091 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5092 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5093 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5094 (COMMON_OBS): Add macrotab.o, macroexp.o.
5095 (macroexp.o, macrotab.o): New rules.
5096
6d531722
AC
50972002-05-13 Andrew Cagney <ac131313@redhat.com>
5098
5099 * config/m88k/tm-m88k.h: Update copyright.
5100 (m88k_target_write_pc): Declare
5101 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5102 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5103 (SHIFT_INST_REGS): Update definition.
5104 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5105 using old definition of TARGET_WRITE_PC.
5106 * regcache.c (generic_target_write_pc): Delete code handling
5107 NNPC_REGNUM.
5108 * gdbarch.sh (NNPC_REGNUM): Delete.
5109 * gdbarch.h, gdbarch.c: Regenerate.
5110
3e3f2739
RE
51112002-05-13 Richard Earnshaw <rearnsha@arm.com>
5112
5113 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5114 builtin reg number.
5115
0004e5a2
DJ
51162002-05-13 Daniel Jacobowitz <drow@mvista.com>
5117
5118 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5119 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5120 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5121 access macros.
5122 * c-typeprint.c (cp_type_print_method_args): Likewise.
5123 (c_type_print_args): Likewise.
5124 * d10v-tdep.c (d10v_push_arguments): Likewise.
5125 (d10v_extract_return_value): Likewise.
5126 * expprint.c (print_subexp): Likewise.
5127 * gdbtypes.c (lookup_primitive_typename): Likewise.
5128 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5129 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5130 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5131 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5132 (TYPE_VECTOR): Likewise.
5133 * hpread.c (hpread_read_struct_type)
5134 (fix_static_member_physnames, fixup_class_method_type)
5135 (hpread_type_lookup): Likewise.
5136 * mdebugread.c (parse_symbol, parse_type): Likewise.
5137 * p-lang.c (is_pascal_string_type): Likewise.
5138 * valops.c (hand_function_call): Likewise.
5139 * x86-64-tdep.c (classify_argument): Likewise.
5140
5141 * hpread.c (hpread_read_function_type)
5142 (hpread_read_doc_function_type): Call replace_type.
5143 * dstread.c (create_new_type): Delete.
5144 (decode_dst_structure, process_dst_function): Call alloc_type.
5145 Use type access macros.
5146
dff95cc7
MK
51472002-05-12 Mark Kettenis <kettenis@gnu.org>
5148
5149 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5150 the're not supported by the current architecture.
5151 (i387_fill_fxsave): Likewise.
5152
bbcd32ad
FF
51532002-05-12 Fred Fish <fnf@redhat.com>
5154
5155 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5156 sect_index_xxx members to index the first slot in section_offsets
5157 if all of the section_offsets are zero.
5158
89cf4787
MK
51592002-05-12 Mark Kettenis <kettenis@gnu.org>
5160
5161 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5162 checked in with last change.
5163
1f77ffc5
MK
51642002-05-12 Mark Kettenis <kettenis@gnu.org>
5165
5166 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5167 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5168 config.sub.
5169
89b8b4a9
DJ
51702002-05-12 Daniel Jacobowitz <drow@mvista.com>
5171
5172 * Makefile.in: Update dependencies.
5173
14a5e767
AC
51742002-05-11 Andrew Cagney <ac131313@redhat.com>
5175
5176 * language.c (local_hex_string_custom): Simplify. Do not depend
5177 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5178
5179 * memattr.c (mem_info_command): Replace calls to
5180 longest_local_hex_string and longest_local_hex_string_custom.
5181 * buildsym.c (make_blockvector): Ditto.
5182 * solib.c (info_sharedlibrary_command): Ditto.
5183 * tracepoint.c (tracepoints_info): Ditto.
5184 * symtab.c (print_msymbol_info): Ditto.
5185
5186 * language.c (local_hex_string): Delete.
5187 (local_hex_string_custom): Delete.
5188 (longest_local_hex_string): Rename to local_hex_string.
5189 (longest_local_hex_string_custom): Rename to
5190 local_hex_string_custom.
5191 * language.h (local_hex_string): Change parameter type to LONGEST.
5192 (local_hex_string_custom): Ditto.
5193 (longest_local_hex_string): Delete declaration.
5194 (longest_local_hex_string_custom): Ditto.
5195
5196 * solib.c: Update copyright.
5197 * memattr.c: Update copyright.
5198
13d01224
AC
51992002-05-11 Andrew Cagney <ac131313@redhat.com>
5200
5201 * arch-utils.h (legacy_register_to_value): Declare.
5202 (legacy_value_to_register): Declare.
5203 (legacy_convert_register_p): Declare.
5204 * arch-utils.c (legacy_register_to_value): New function.
5205 (legacy_value_to_register): New function.
5206 (legacy_convert_register_p): New function.
5207
5208 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5209 (VALUE_TO_REGISTER): Define.
5210 (CONVERT_REGISTER_P): Define.
5211 * gdbarch.h, gdbarch.c: Regenerate.
5212
5213 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5214 VALUE_TO_REGISTER.
5215 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5216 CONVERT_REGISTER_P.
5217
4a1970e4
DJ
52182005-05-11 Daniel Jacobowitz <drow@mvista.com>
5219 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5220
5221 * Makefile.in: Update dependencies for valops.c.
5222 * valops.c: Include "gdb_assert.h".
5223 (typecmp): Skip THIS parameter to methods.
5224 (find_method_list): Remove static_memfuncp argument,
5225 update callers. Check for stub methods.
5226 (find_value_oload_method_list): Don't set *static_memfuncp.
5227 (find_overload_match): Don't check for stub methods. Assert
5228 that methods are not stubbed. Handle static methods.
5229 (value_find_oload_method_list): Remove static_memfuncp argument.
5230 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5231 to the argument list for static stub methods.
5232 * value.h (value_find_oload_method_list): Update prototype.
5233
b2e75d78
AC
52342002-05-11 Andrew Cagney <ac131313@redhat.com>
5235
5236 * arch-utils.h (generic_register_size): Declare.
5237 (generic_register_raw_size, generic_register_virtual_size): Delete
5238 declarations.
5239 * arch-utils.c (generic_register_raw_size): Delete.
5240 (generic_register_size): New function.
5241 (generic_register_virtual_size): Delete.
5242
5243 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5244 default generic_register_size.
5245 * gdbarch.h, gdbarch.c: Re-generate.
5246
5247 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5248 register_virtual_size.
5249 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5250 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5251
451fbdda
AC
52522002-05-11 Andrew Cagney <ac131313@redhat.com>
5253
5254 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5255 * gdbarch.h, gdbarch.c: Regenerate.
5256 * gnu-v3-abi.c: Update copyright.
5257 (vtable_address_point_offset): Update.
5258 (gnuv3_rtti_type): Update.
5259 (gnuv3_baseclass_offset): Update.
5260 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5261 (init_fetch_link_map_offsets): Update.
5262 * remote.c (get_remote_state): Update.
5263
6d2f5cea
DJ
52642002-05-11 Daniel Jacobowitz <drow@mvista.com>
5265
5266 * TODO: Remove value_headof/value_from_vtable_info comment.
5267 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5268 * values.c (value_headof, value_from_vtable_info): Delete.
5269 * value.h (value_from_vtable_info): Delete prototype.
5270
d2324da4
AC
52712002-05-11 Andrew Cagney <ac131313@redhat.com>
5272
5273 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5274 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5275 $(gdb_regex_h).
5276 (gdb_assert_h): Define.
5277 (gdb_wait_h): Define.
5278 (gdb_regex_h): Define.
5279
5c717440
DJ
52802002-05-11 Daniel Jacobowitz <drow@mvista.com>
5281
5282 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5283 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5284
6c7861b3
JT
52852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5286
5287 * nbsd-tdep.c: Fix comment.
5288
ea5bc2a6
JT
52892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5290
5291 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5292 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5293 (nbsd-tdep.o): New dependency list.
5294 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5295 nbsd-tdep.h.
5296 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5297 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5298 * nbsd-tdep.c: New file.
5299 * nbsd-tdep.h: New file.
5300 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5301 nbsd-tdep.h.
5302 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5303 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5304 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5305 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5306
b28da865
JT
53072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5308
5309 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5310 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5311 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5312 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5313 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5314 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5315
4b8ff1fa
JT
53162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5317
5318 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5319 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5320 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5321 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5322 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5323 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5324 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5325
dfe6eb1f
JT
53262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5327
5328 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5329 fetch_elfcore_registers to...
5330 * i386nbsd-tdep.c: ...here.
5331 (i386nbsd_use_struct_convention): Rename to...
5332 (i386nbsd_aout_use_struct_convention): ...this.
5333 (i386nbsd_supply_reg): New function.
5334 (i386nbsd_fill_reg): New function.
5335 (fetch_core_registers): Use i386nbsd_supply_reg.
5336 (fetch_elfcore_registers): Likewise.
5337 (_initialize_i386nbsd_tdep): New function.
5338 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5339 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5340 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5341 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5342 (i386nbsd_aout_use_struct_convention): ...this.
5343
20cb8cda
JT
53442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5345
5346 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5347 (store_inferior_registers): Use shnbsd_fill_reg.
5348 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5349 sh_nbsd_supply_register): Collapse into...
5350 (shnbsd_supply_reg): ...this.
5351 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5352 (shnbsd_fill_reg): ...this.
5353 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5354 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5355 (fetch_core_registers): Use shnbsd_supply_reg.
5356 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5357 (sh_nbsd_core_fns): Rename to...
5358 (shnbsd_core_fns): ...this.
5359 (sh_nbsd_elfcore_fns): Rename to...
5360 (shnbsd_elfcore_fns): ...this.
5361 (sh_nbsd_init_abi): Rename to...
5362 (shnbsd_init_abi): ...this.
5363 (_initialize_sh_nbsd_tdep): Rename to...
5364 (_initialize_shnbsd_tdep): ...this.
5365 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5366 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5367 sh_nbsd_fill_register): Remove prototypes.
5368 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5369
e750d25e
JT
53702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5371
5372 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5373 (i387-nat.o): Delete dependency list.
5374 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5375 (x86-64-linux-nat.o): Likewise.
5376 * i387-nat.c: Delete file, moving contents to...
5377 * i387-tdep.c: ...here.
5378 * i387-nat.h: Rename...
5379 * i387-tdep.h: ...to this.
5380 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5381 * i386-linux-nat.c: Likewise.
5382 * i386bsd-nat.c: Likewise.
5383 * i386gnu-nat.c: Likewise.
5384 * i386nbsd-nat.c: Likewise.
5385 * i386v4-nat.c: Likewise.
5386 * x86-64-linux-nat.c: Likewise.
5387 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5388 * config/i386/go32.mh (NATDEPFILES): Likewise.
5389 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5390 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5391 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5392 * config/i386/linux.mh (NATDEPFILES): Likewise.
5393 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5394 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5395 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5396 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5397
1aee598a
JT
53982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5399
5400 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5401 (alphanbsd-nat.o): Remove dependency list.
5402 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5403 * alphanbsd-nat.c: Delete. Contents moved to...
5404 * alphanbsd-tdep.c: ...here.
5405 (_initialize_alphanbsd_tdep): Register core functions.
5406 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5407
12bcb0fe
JT
54082002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5409
5410 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5411 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5412 (alphanbsd-nat.o): Likewise.
5413 (alphabsd-tdep.o): New dependency list.
5414 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5415 (fill_gregset): Use alphabsd_fill_reg.
5416 (supply_fpregset): Use alphabsd_supply_fpreg.
5417 (fill_fpregset): Use alphabsd_fill_fpreg.
5418 (fetch_inferior_registers): Use struct reg and struct fpreg
5419 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5420 and alphabsd_supply_fpreg.
5421 (store_inferior_registers): Use struct reg and struct fpreg
5422 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5423 and alphabsd_fill_fpreg.
5424 * alphabsd-tdep.c: New file.
5425 * alphabsd-tdep.h: New file.
5426 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5427 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5428 alphabsd_supply_fpreg.
5429 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5430 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5431
361d1df0
EC
54322002-05-11 Eric Christopher <echristo@redhat.com>
5433
5434 * mips-tdep.c (mips_double_register_type): Fix thinko.
5435 (mips_single_register_type): Ditto.
5436 * MAINTAINERS: Add self.
5437
92dd7cee
MK
54382002-05-11 Mark Kettenis <kettenis@gnu.org>
5439
5440 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5441 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5442 right thing on architectures with different endianness and/or
5443 integer sizes.
5444
e27da16d
JT
54452002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5446
5447 From Christian Limpach <chris@Pin.LU>
5448 * configure.in: Change sed expression which comments out
5449 NATDEPFILES to also comment out continuation lines.
5450 * configure: Regenerate.
5451
ddde02bd
EZ
54522002-05-10 Elena Zannoni <ezannoni@redhat.com>
5453
5454 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5455 big patch.
5456
1c922164
EZ
54572002-05-10 Elena Zannoni <ezannoni@redhat.com>
5458
5459 * sh-tdep.c: Include correct file.
5460
283150cd
EZ
54612002-05-10 Elena Zannoni <ezannoni@redhat.com>
5462
5463 New support for sh64-elf (sh5) target.
5464
5465 * configure.tgt: For sh64-elf target, default to sh-elf.
5466
5467 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5468 (struct gdbarch_tdep): Add new fields for new registers and ABI
5469 info.
361d1df0 5470
283150cd
EZ
5471 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5472 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5473 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5474 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5475 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5476 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5477 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5478 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5479 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5480 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5481 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5482 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5483 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5484 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5485 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5486 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5487 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5488 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5489 sign_extend, sh64_nofp_frame_init_saved_regs,
5490 sh64_init_extra_frame_info, sh64_get_saved_register,
5491 sh64_extract_struct_value_address, sh64_pop_frame,
5492 sh64_push_arguments, sh64_extract_return_value,
5493 sh64_store_return_value, sh64_show_media_regs,
5494 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5495 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5496 sh_sh64_register_virtual_type,
5497 sh_sh64_register_convert_to_virtual,
5498 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5499 sh64_register_read, sh64_pseudo_register_write,
5500 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5501 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5502 sh64_do_pseudo_register, sh_compact_do_registers_info,
5503 sh64_do_registers_info, sh_gdbarch_init): New functions.
5504
3117ed25
EZ
55052002-05-10 Elena Zannoni <ezannoni@redhat.com>
5506
5507 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5508
2654e6d4
DJ
55092002-05-10 Daniel Jacobowitz <drow@mvista.com>
5510
5511 * linespec.c (decode_line_1): Check for a double quote after
5512 a filename correctly.
5513
9ab3e532
JB
55142002-05-10 Jim Blandy <jimb@redhat.com>
5515
5516 Properly track the size of the current objfile's .debug_line section.
5517 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5518 (DWARF_LINE_SIZE): New macro.
5519 (dwarf2_build_psymtabs_hard): Record the line section's size in
5520 the partial symbol table.
5521 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5522 symbol table.
5523
126fa72d
PS
55242002-05-10 Petr Sorfa <petrs@caldera.com>
5525
5526 * ia64-tdep.c: Handle breakpoints on L instruction type
5527 in MLX instruction bundle by moving the breakpoint to
5528 the third slot (X instruction type) as L holds only data.
5529
1f077a3e
KB
55302002-05-10 Kevin Buettner <kevinb@redhat.com>
5531
5532 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5533 (process_one_symbol): Complain about discarding local symbols
5534 due to a misplaced N_LBRAC entry.
5535
8120c9d5 55362002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5537
5538 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5539 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5540 decrease the depth we are at, in the case of templates.
361d1df0 5541
67b2c998
DJ
55422002-05-09 Daniel Jacobowitz <drow@mvista.com>
5543
5544 * mips-tdep.c (mips_float_register_type): New function.
5545 (mips_double_register_type): New function.
5546 (mips_print_register): Use them.
5547 (do_fp_register_row): Likewise.
5548
fd326606
DJ
55492002-05-09 Daniel Jacobowitz <drow@mvista.com>
5550
6609d9af 5551 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5552 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5553 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5554
bef35864
MS
55552002-05-09 Michael Snyder <msnyder@redhat.com>
5556
5557 * remote-rdp.c (remote_rdp_can_run): Remove.
5558
c55a3f73
TT
55592002-05-09 Tom Tromey <tromey@redhat.com>
5560
5561 * jv-valprint.c (java_val_print): Handle `char' as a special case
5562 of TYPE_CODE_INT.
5563
b8d5e71d
MS
55642002-05-09 Michael Snyder <msnyder@redhat.com>
5565
5566 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5567 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5568 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5569 str r(0123),[sp,#nn].
361d1df0 5570 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5571 order-independent by placing it in a loop.
5572
e2cd42dd
MS
55732002-05-06 Michael Snyder <msnyder@redhat.com>
5574
5575 * stabsread.c (read_type): Add recognition for new attribute:
5576 "@V;" means that an array type is actually a vector.
5577 This is analogous to the vector flag that's been added to dwarf2.
5578
3ce1502b
MK
55792002-05-09 Mark Kettenis <kettenis@gnu.org>
5580
5581 * i386-tdep.h (i386_abi): New enum.
5582 (struct gdbarch_tdep): Replace os_ident member with abi.
5583 (i386_gdbarch_register_os_abi): New prototype.
5584 * i386-tdep.c (i386_abi_names): New array.
5585 (process_note_abi_tag_sections): Removed.
5586 (process_note_sections): New function.
5587 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5588 (struct i386_abi_handler): New struct.
5589 (i386_abi_handler_list): New variable.
5590 (i386_gdbarch_register_os_abi): New function.
5591 (i386_gdbarch_init): Adapt for the changes given above.
5592
084c156a
DJ
55932002-05-08 Daniel Jacobowitz <drow@mvista.com>
5594
5595 * gregset.h: Say "GNU/Linux".
5596
6599f021
EZ
55972002-05-08 Elena Zannoni <ezannoni@redhat.com>
5598
5599 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5600 (build_gdbtypes): Build builtin_type_v2_float.
5601 (_initialize_gdbtypes): Register new builtin type.
5602
40af4b0c
AC
56032002-05-08 Andrew Cagney <ac131313@redhat.com>
5604
5605 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5606 (clear_gdbarch_swap): New function.
5607 (initialize_non_multiarch): Call.
5608 (gdbarch_update_p): Before calling init(), swap out and clear the
5609 existing architecture.
5610 * gdbarch.c: Regenerate.
5611
4fe84f46
JT
56122002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5613
5614 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5615 alphanbsd-tdep.c.
5616
4015edd1
JT
56172002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5618
5619 * sh-nbsd-nat.c: Rename to...
5620 * shnbsd-nat.c: ...this.
5621 * sh-nbsd-tdep.c: Rename to...
5622 * shnbsd-tdep.c: ...this.
5623 * sh-nbsd-tdep.h: Rename to...
5624 * shnbsd-tdep.h: ...this.
5625 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5626 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5627
0e2bd219
RE
56282002-05-08 Richard Earnshaw <rearnsha@arm.com>
5629
5630 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5631 concatenation for command help messages.
5632
13a38d45
JT
56332002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5634
5635 * NEWS: Note new sh*-*-netbsdelf* configuration.
5636 * configure.host: Set gdb_host_cpu to sh for all sh*.
5637 (sh*-*-netbsdelf*): New host.
5638 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5639 (sh*-*-netbsdelf*): New target.
5640 * sh-nbsd-nat.c: New file.
5641 * sh-nbsd-tdep.c: New file.
5642 * sh-nbsd-tdep.h: New file.
5643 * config/sh/nbsd.mh: New file.
5644 * config/sh/nbsd.mt: New file.
5645 * config/sh/nm-nbsd.h: New file.
5646 * config/sh/tm-nbsd.h: New file.
5647
d658f924
JT
56482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5649
5650 * sh-tdep.c (sh_osabi_names): Declare.
5651 (process_note_abi_tag_sections): New function.
5652 (get_elfosabi): Ditto.
5653 (sh_gdbarch_register_os_abi): Ditto.
5654 (sh_dump_tdep): Ditto.
5655 _initialize_sh_tdep): Use gdbarch_register to register
5656 sh_gdbarch_init and sh_dump_tdep.
5657 * config/sh/tm-sh.h (sh_osabi): Declare.
5658 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5659
848cfffb
AC
56602002-05-07 Andrew Cagney <ac131313@redhat.com>
5661
5662 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5663 (thumb_scan_prologue): Ditto.
5664 (arm_find_callers_reg): Ditto.
5665 (arm_frame_chain): Ditto.
5666 (arm_init_extra_frame_info): Ditto.
5667 (arm_frame_saved_pc): Ditto.
5668 (arm_pop_frame): Ditto.
5669 (arm_push_return_address): New function.
5670 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5671 call_dummy_location, call_dummy_breakpoint_offset_p,
5672 call_dummy_breakpoint_offset, call_dummy_p,
5673 call_dummy_stack_adjust_p, call_dummy_words,
5674 sizeof_call_dummy_words, call_dummy_start_offset,
5675 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5676 call_dummy_address, push_return_address and push_dummy_frame for
5677 generic dummy frames.
5678
e7d717c0
JT
56792002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5680
5681 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5682 size computation for alloca.
5683 (sh_fp_frame_init_saved_regs): Likewise.
5684
7bbcf283
RE
56852002-05-07 Richard Earnshaw <rearnsha@arm.com>
5686
5687 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5688 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5689 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5690 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5691 * remote-rdp.c (remote_rdp_fetch_register): Use
5692 ARM_MAX_REGISTER_RAW_SIZE.
5693 (remote_rdp_store_register): Likewise.
5694
4657573b
ML
56952002-05-07 Michal Ludvig <mludvig@suse.cz>
5696
361d1df0 5697 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5698 added default labels to switch {} statements.
5699 * x86-64-tdep.c: Ditto.
5700 * x86-64-linux-nat.c: Ditto.
5701
010f3b2f
JT
57022002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5703
5704 * solib.h: Protect against multiple inclusion.
5705
debd256d
JB
57062002-05-06 Jim Blandy <jimb@redhat.com>
5707
9ab3e532
JB
5708 Add first preprocessor macro-expansion files.
5709 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5710 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5711 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5712 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5713 (COMMON_OBS): Add macrotab.o, macroexp.o.
5714 (macroexp.o, macrotab.o): New rules.
5715
debd256d
JB
5716 Separate the job of reading the line number info statement program
5717 header (...expialidocious) out into its own function.
5718 * dwarf2read.c (struct line_head, struct filenames, struct
5719 directories): Replace with...
5720 (struct line_header): New structure, containing the full
5721 contents of the statement program header, including the
5722 include directory and file name tables.
5723 (read_file_scope): If we have line number info, instead of just
5724 calling dwarf_decode_lines to do all the work, call
5725 dwarf_decode_line_header first to get a `struct line_header'
5726 containing the data in the statement program header, and then
5727 pass that to dwarf_decode_lines, which will pick up where that
5728 left off. Be sure to clean up the `struct line_header' object.
5729 (dwarf_decode_line_header, free_line_header, add_include_dir,
5730 add_file_name): New functions.
5731 (dwarf_decode_lines): Move all the code to read the statement
5732 program header into dwarf_decode_line_header. Take the line
5733 header it built as the first argument, instead of the offset to
5734 the compilation unit's line number info. Use the new `struct
5735 line_header' type instead of the old structures. No need to do
5736 cleanups here now, since we don't allocate anything.
5737 (dwarf2_statement_list_fits_in_line_number_section,
5738 dwarf2_line_header_too_long): New complaints.
5739
ac3aafc7
EZ
57402002-05-06 Elena Zannoni <ezannoni@redhat.com>
5741
5742 * gdbtypes.c (init_vector_type): New function.
5743 (build_builtin_type_vec128): Simplify the representation of SIMD
5744 registers.
5745 (build_gdbtypes): Initialize new builtin vector types.
5746 (_initialize_gdbtypes): Register new vector types with gdbarch.
5747 (builtin_type_v4_float, builtin_type_v4_int32,
5748 builtin_type_v8_int16, builtin_type_v16_int8,
5749 builtin_type_v2_int32, builtin_type_v4_int16,
5750 builtin_type_v8_int8): New (renamed) SIMD types.
5751
13e49980
MK
57522002-05-06 Mark Kettenis <kettenis@gnu.org>
5753
5754 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5755 (i387_fill_fxsave): Likewise.
5756
997b20b8
AO
57572002-05-05 Alexandre Oliva <aoliva@redhat.com>
5758
5759 * alpha-tdep.c (alpha_extract_return_value): Don't use
5760 non-constant array size in prototype.
5761
535c96ce
AC
57622002-05-04 Andrew Cagney <ac131313@redhat.com>
5763
5764 From Brian Taylor <briant at model dot com>:
5765 * ui-out.c (ui_out_field_core_addr): Use the function
5766 longest_local_hex_string_custom'to format addresses > 32 bits
5767 wide.
5768
5769 * ui-out.c (ui_out_field_core_addr): Update comment.
5770
bedfa57b
AC
57712002-05-04 Andrew Cagney <ac131313@redhat.com>
5772
5773 * stack.c (select_and_print_frame): Make static. Delete the
5774 parameter `level'.
5775 (func_command): Update call.
5776 (select_frame_command): Delete code computing the frame level.
5777 * frame.h (select_and_print_frame): Delete declaration.
5778
f621c63e
AC
57792002-05-04 Andrew Cagney <ac131313@redhat.com>
5780
5781 * sparc-tdep.c (sparc_get_saved_register): Comment why
5782 get_prev_frame call is safe.
5783
0f7d239c
AC
57842002-05-04 Andrew Cagney <ac131313@redhat.com>
5785
5786 * frame.h (select_frame): Delete level parameter.
5787 * stack.c (select_frame): Update. Use frame_relative_level to
5788 obtain the frame's level.
5789 (select_and_print_frame): Update call.
5790 (select_frame_command): Ditto.
5791 (up_silently_base): Ditto.
5792 (down_silently_base): Ditto.
5793 * ocd.c (ocd_start_remote): Ditto.
5794 * remote-rdp.c (remote_rdp_open): Ditto.
5795 * remote-mips.c (mips_initialize): Ditto.
5796 (common_open): Ditto.
5797 * remote-e7000.c (e7000_start_remote): Ditto.
5798 * m3-nat.c (select_thread): Ditto.
5799 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5800 (child_get_current_exception_event): Ditto.
5801 * varobj.c (varobj_create): Ditto.
5802 (varobj_update): Ditto.
5803 (c_value_of_root): Ditto.
5804 * tracepoint.c (finish_tfind_command): Ditto.
5805 * corelow.c (core_open): Ditto.
5806 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5807 * thread.c (info_threads_command): Ditto.
5808 (switch_to_thread): Ditto.
5809 * infrun.c (normal_stop): Ditto.
5810 (restore_selected_frame): Ditto.
5811 (restore_inferior_status): Ditto.
5812 * breakpoint.c (insert_breakpoints): Ditto.
5813 (watchpoint_check): Ditto.
5814 (bpstat_stop_status): Ditto.
5815 (do_enable_breakpoint): Ditto.
5816 * blockframe.c (flush_cached_frames): Ditto.
5817 (reinit_frame_cache): Ditto.
5818
71d6c7b1
AC
58192002-05-04 Andrew Cagney <ac131313@redhat.com>
5820
5821 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5822 maintainer.
5823
cda6c68a
JB
58242002-05-04 Jim Blandy <jimb@redhat.com>
5825
5826 * gdbtypes.c (replace_type): Doc fix.
5827
5c1c87f0
AC
58282002-05-04 Andrew Cagney <ac131313@redhat.com>
5829
5830 * valprint.c (strcat_longest): Delete commented out function.
5831 Update copyright.
5832
cd9bfe15
AC
58332002-05-04 Andrew Cagney <ac131313@redhat.com>
5834
5835 * MAINTAINERS: Mark a29k as deleted.
5836 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5837 Move new configurations to the top.
5838 * configure.tgt: Remove a29k.
5839 * config/a29k/tm-vx29k.h: Delete.
5840 * config/a29k/vx29k.mt: Delete.
5841 * config/a29k/tm-a29k.h: Delete.
5842 * config/a29k/a29k-udi.mt: Delete.
5843 * config/a29k/a29k.mt: Delete.
5844 * a29k-tdep.c: Delete.
5845 * remote-udi.c: Delete.
5846 * remote-mm.c: Delete.
5847 * remote-eb.c: Delete.
5848 * remote-adapt.c: Delete.
5849 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
5850 * config/s390/s390x.mt: Ditto.
5851 * config/s390/s390.mt: Ditto.
5852 * config/sparc/sparclynx.mh: Ditto.
5853 * config/sparc/linux.mh: Ditto.
5854 * config/pa/hppaosf.mh: Ditto.
5855 * config/pa/hppabsd.mh: Ditto.
5856 * config/ns32k/nbsd.mt: Ditto.
5857 * config/mips/vr5000.mt: Ditto.
5858 * config/m68k/sun3os4.mh: Ditto.
5859 * config/m68k/nbsd.mt: Ditto.
5860 * config/m68k/m68klynx.mh: Ditto.
5861 * config/m32r/m32r.mt: Ditto.
5862 * config/i386/x86-64linux.mt: Ditto.
5863 * config/i386/nbsdelf.mt: Ditto.
5864 * config/i386/nbsd.mt: Ditto.
5865 * config/i386/i386lynx.mh: Ditto.
5866
bf0c5130
AC
58672002-05-04 Andrew Cagney <ac131313@redhat.com>
5868
5869 * target.c (debug_print_register): New function. Handle oversize
5870 registers.
5871 (debug_to_fetch_registers): Call.
5872 (debug_to_store_registers): Call.
5873
2ae1c2d2
JB
58742002-05-03 Jim Blandy <jimb@redhat.com>
5875
13a393b0
JB
5876 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5877 (read_type): Doc fix.
5878 * gdbtypes.c (replace_type): Doc fix.
5879
2ae1c2d2
JB
5880 * stabsread.c (multiply_defined_struct): New complaint.
5881 (read_struct_type): If the type we were passed isn't empty, or
5882 incomplete, don't read the new struct type into it; complain,
5883 and return the original type unchanged. Take a new `type_code'
5884 argument, which is the type code for the new type.
5885 (read_type): Rather than storing the type's type code here, pass
5886 it as an argument to read_struct_type, and let that take care of
5887 storing it. That way, we don't overwrite the original type code,
5888 so read_struct_type can use it to decide whether we're overwriting
5889 something we shouldn't.
5890 (complain_about_struct_wipeout): New function.
5891
8de9bdc4
AC
58922002-05-03 Andrew Cagney <ac131313@redhat.com>
5893
5894 * gdbarch.sh: Assert that gdbarch is non-NULL.
5895 * gdbarch.c: Regenerate.
5896
f773fdbb
JM
58972002-05-03 Jason Merrill <jason@redhat.com>
5898
5899 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5900 and return NULL.
5901
0e04a514
ML
59022002-05-03 Michal Ludvig <mludvig@suse.cz>
5903
5904 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5905 (x86_64_dwarf2gdb_regno_map_length),
5906 (x86_64_dwarf2_reg_to_regnum): Added.
5907 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5908 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5909 (_initialize_x86_64_tdep): Synced with the change above.
5910 (x86_64_skip_prologue): Reformulated message.
5911
065432a8
PM
59122002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5913
5914 * f-exp.y: Also use new prev_lexptr variable
5915 to improve error reporting. Based on Michael Snyder
5916 2002-04-24 dated patch to c-exp.y.
5917 * jv-exp.y: Likewise.
5918 * m2-exp.y: Likewise.
5919
a3162708
EZ
59202002-05-02 Elena Zannoni <ezannoni@redhat.com>
5921
5922 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5923 we are dealing with vectors.
5924
03620c38
PM
59252002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5926
5927 * config/m68k/tm-nbsd.h: Obvious fix,
5928 correct machine name.
5929
6604db2e
PM
59302002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5931
5932 * p-typeprint.c (pascal_type_print_base): Add support
5933 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5934
0906b739
PM
59352002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5936
5937 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5938 for fondamental pascal 'char' type.
5939
e2625b33
PM
59402002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5941
5942 * p-lang.h (is_pascal_string_type): Declaration changed,
5943 new sixth argument of type char ** added.
361d1df0 5944 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5945 changed. Args length_pos, length_size, string_pos, char_size
5946 can now be NULL. New argument arrayname set to the field
5947 name of the char array. Return value set to char array
5948 field index plus one.
361d1df0 5949 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5950 is_pascal_string_type function.
5951
cf17c188
AC
59522002-05-02 Andrew Cagney <cagney@redhat.com>
5953
5954 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5955 <cagney@redhat.com> change.
5956 * gdbarch.c: Regenerate.
5957
52bca491
AC
59582002-05-02 Andrew Cagney <cagney@redhat.com>
5959
5960 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5961 before probing for a new one. Detect errorenous gdbarch_init
5962 functions.
5963 * gdbarch.c: Regenerate.
5964
d5e72505
AC
59652002-05-01 Andrew Cagney <cagney@redhat.com>
5966
5967 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5968 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5969 * config/v850/tm-v850.h: Ditto. Update copyright.
5970
af566d9f
AC
59712002-04-30 Andrew Cagney <ac131313@redhat.com>
5972
5973 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5974 current_gdbarch.
5975
880d85fa
MS
59762002-04-30 Michael Snyder <msnyder@redhat.com>
5977
94c30b78
MS
5978 * arm-tdep.c: Whitespace clean-ups.
5979 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5980 should have been removed as part of 4/24 change.
5981
6f5987a6
KB
59822002-04-30 Kevin Buettner <kevinb@redhat.com>
5983
5984 * rs6000-tdep.c: Added comment describing how fpscr register
5985 numbers were chosen.
5986
1a113c93
MS
59872002-04-30 Michael Snyder <msnyder@redhat.com>
5988
5989 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5990
9a6f53fe
EZ
59912002-04-29 Elena Zannoni <ezannoni@redhat.com>
5992
5993 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5994 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5995 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5996
11ed25ac
KB
59972002-04-29 Kevin Buettner <kevinb@redhat.com>
5998
5999 From Louis Hamilton <hamilton@redhat.com>:
6000 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6001 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6002 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6003 not bfd-private xcoff data, to determine wordsize.
6004 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6005
ae232405
AC
60062002-04-29 Andrew Cagney <ac131313@redhat.com>
6007
6008 GDB 5.2 released from 5.2 branch.
6009
91fd20f7
ML
60102002-04-29 Michal Ludvig <mludvig@suse.cz>
6011
6012 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6013 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6014 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6015
2dc5091b
EZ
60162002-04-29 Elena Zannoni <ezannoni@redhat.com>
6017
6018 * rs6000-tdep.c (rs6000_extract_return_value,
6019 rs6000_store_return_value): Handle returning vectors.
6020 (rs6000_gdbarch_init): Use
6021 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6022 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6023 New function.
6024 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6025 vectors.
6026 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6027 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6028
2b9848d8
PM
60292002-04-24 Pierre Muller <ics.u-strasbg.fr>
6030
6031 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6032 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6033 with fprintf_unfiltered (gdb_stderr,...).
6034
f8d17dc5
PM
60352002-04-24 Pierre Muller <ics.u-strasbg.fr>
6036
6037 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6038 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6039 Replace fprintf (stderr,...
6040 with fprintf_unfiltered (gdb_stderr,....
6041 * remote-es.c: Likewise.
6042 * remote-os9k.c: Likewise.
6043 * remote-st.c: Likewise.
6044
2f2f1ad1
AS
60452002-04-28 Andreas Schwab <schwab@suse.de>
6046
6047 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6048 linux-proc.o and gcore.o.
6049
b6779aa2
AC
60502002-04-26 Michal Ludvig <mludvig@suse.cz>
6051
6052 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6053 code without frame pointers.
6054
7e57f5f4
AC
60552002-04-26 Andrew Cagney <ac131313@redhat.com>
6056
6057 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6058 ON_STACK is needed.
6059
2ceb85d0
BE
60602002-04-26 Ben Elliston <bje@redhat.com>
6061
6062 * target.c (do_xfer_memory): Correct reference to the new option
6063 "trust-readonly-sections".
6064
f5f8a009
EZ
60652002-04-26 Elena Zannoni <ezannoni@redhat.com>
6066
6067 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6068 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6069 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6070 vectors.
6071 (read_array_type): Record the fact that this array type is really a
6072 vector (i.e. are passed in by value).
6073
5868c862
JT
60742002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6075
6076 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6077 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6078 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6079 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6080 * alpha-linux-tdep.c: Include frame.h.
6081 (alpha_linux_sigcontext_addr): New function.
6082 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6083 alpha_linux_sigcontext_addr.
6084 * alpha-osf1-tdep.c: Include gdbcore.h.
6085 (alpha_osf1_sigcontext_addr): New function.
6086 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6087 alpha_osf1_sigcontext_addr.
6088 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6089 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6090
bfb01f37
AC
60912002-04-26 Andrew Cagney <ac131313@redhat.com>
6092
361d1df0 6093 * stack.c (selected_frame_level):
bfb01f37
AC
6094 (select_frame): Do not set selected_frame_level.
6095 * frame.h (selected_frame_level): Delete declaration.
6096
15813d3f
AC
60972002-04-26 Andrew Cagney <ac131313@redhat.com>
6098
6099 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6100 convert_from_func_ptr-addr when AIX / PowerOpen.
6101
6096c27a
AC
61022002-04-25 Andrew Cagney <ac131313@redhat.com>
6103
6104 * valops.c (hand_function_call): Call
6105 generic_save_call_dummy_addr.
6106 * frame.h (generic_save_call_dummy_addr): Declare.
6107 * blockframe.c (struct dummy_frame): Add fields call_lo and
6108 call_hi.
6109 (generic_find_dummy_frame): Check for PC in range call_lo to
6110 call_hi instead of entry_point_address.
6111 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6112 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6113 (generic_save_call_dummy_addr): New function.
6114
f510d44e
DM
61152002-04-24 David S. Miller <davem@redhat.com>
6116
6117 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6118 sparc_skip_prologue.
6119 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6120 information to find prologue when possible.
6121 (sparc_prologue_frameless_p): Call examine_prologue directly.
6122 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6123 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6124 second argument.
6125 (SKIP_PROLOGUE): Likewise.
6126
15d72a92
JT
61272002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6128
6129 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6130 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6131 indicate that the condition it was testing is always true.
6132 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6133 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6134 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6135
accc6d1f
JT
61362002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6137
6138 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6139 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6140 tdep->jb_pc and tdep->jb_elt_size.
6141 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6142 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6143 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6144 * alpha-nat.c (get_longjmp_target): Remove.
6145 (JB_ELEMENT_SIZE): Ditto.
6146 (JB_PC): Ditto.
6147 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6148 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6149 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6150 to alpha_get_longjmp_target.
6151 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6152 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6153 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6154
1bfdc549
AC
61552002-04-25 Andrew Cagney <ac131313@redhat.com>
6156
6157 * README: Update to GDB 5.2.
6158
1bd316f0
AC
61592002-04-25 Andrew Cagney <ac131313@redhat.com>
6160
6161 * gdbarch.sh (LC_ALL): Set to `c'.
6162
2e5ff58c
TR
61632002-04-25 Theodore A. Roth <troth@verinet.com>
6164
6165 * avr-tdep.c: Ran through gdb_indent.sh.
6166
e33ce519
TR
61672002-04-25 Theodore A. Roth <troth@verinet.com>
6168
6169 * MAINTAINERS: Add myself as AVR maintainer.
6170 * NEWS: Note new target avr.
6171
8818c391
TR
61722002-04-25 Theodore A. Roth <troth@verinet.com>
6173
6174 * Makefile.in: Add support for AVR target.
6175 * configure.tgt: Add support for AVR target.
6176 * avr-tdep.c: New file
6177 * config/avr/avr.mt: New file.
6178
79509c2d
TR
61792002-04-25 Theodore A. Roth <troth@verinet.com>
6180
6181 * MAINTAINERS: Add myself to write-after-approval.
6182
dac8068e
PM
61832002-04-24 Pierre Muller <ics.u-strasbg.fr>
6184
6185 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6186 with fprintf_unfiltered (gdb_stderr,....
6187
25bf3106
PM
61882002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6189
6190 Fix PR gdb/508.
6191 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6192
24467a86
PM
61932002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6194
6195 * p-exp.y: Also use new prev_lexptr variable
6196 to improve error reporting. Based on Michael Snyder
6197 2002-04-24 dated patch to c-exp.y.
6198
95b80706
JT
61992002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6200
6201 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6202 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6203 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6204 to 0.
6205 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6206 and struct value.
6207 (FUNCTION_START_OFFSET): Remove.
6208 (BREAKPOINT): Ditto.
6209
e90cc612
JT
62102002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6211
6212 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6213 * NEWS: Ditto.
6214
6c72f9f9
JT
62152002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6216
6217 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6218 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6219 alpha_linux_pc_in_sigtramp.
6220 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6221 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6222 alpha_osf1_pc_in_sigtramp.
6223 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6224 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6225 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6226 alphafbsd_pc_in_sigtramp.
6227 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6228 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6229 alphanbsd_pc_in_sigtramp.
6230 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6231 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6232
5e4f3379
JT
62332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6234
6235 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6236
da8ca43d
JT
62372002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6238
6239 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6240 alphanbsd-tdep.c.
6241 (alphanbsd-nat.o): New dependency list.
6242 (alphanbsd-tdep.o): Ditto.
6243 * NEWS: Note new native NetBSD/alpha configuration.
6244 * alphanbsd-nat.c: New file.
6245 * alphanbsd-tdep.c: Ditto.
6246 * configure.host (alpha*-*-netbsd*): New host.
6247 * configure.tgt (alpha*-*-netbsd*): New target.
6248 * config/alpha/nbsd.mh: New file.
6249 * config/alpha/nbsd.mt: Ditto.
6250 * config/alpha/nm-nbsd.h: Ditto.
6251 * config/alpha/tm-nbsd.h: Ditto.
6252
36a6271d
JT
62532002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6254
6255 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6256 (alpha-osf1-tdep.o): New dependency list.
6257 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6258 and skip_sigtramp_frame members.
6259 * alpha-linux-tdep.c: Include gdbcore.h.
6260 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6261 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6262 * alpha-osf1-tdep.c: New file.
6263 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6264 alpha-osf1-dep.c.
6265 (alpha_frame_past_sigtramp_frame): New function.
6266 (alpha_dynamic_sigtramp_offset): Ditto.
6267 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6268 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6269 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6270 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6271 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6272 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6273 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6274 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6275 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6276 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6277 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6278 to find_solib_trampoline_target.
6279 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6280 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6281 (SKIP_TRAMPOLINE_CODE): Remove.
6282 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6283 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6284 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6285 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6286 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6287 (PROC_SIGTRAMP_MAGIC): Ditto.
6288 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6289 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6290 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6291 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6292 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6293
2f4bc57b
JT
62942002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6295
6296 * NEWS: Note that Alpha targets are now multi-arch.
6297
665132f9
MS
62982002-04-24 Michael Snyder <msnyder@redhat.com>
6299
6300 * parser-defs.h (prev_lexptr): New external variable.
6301 * parse.c (parse_exp_1): Set prev_lexptr to null before
6302 calling the language-specific parser.
6303 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6304 (yyerror): Use prev_lexptr in error reporting.
6305
32872fa7
DJ
63062002-04-24 Daniel Jacobowitz <drow@mvista.com>
6307
6308 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6309 * gregset.h: If FILL_FPXREGSET is defined, provide
6310 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6311 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6312 is defined, call fill_fpxregset.
6313
57e76fac
MS
63142002-04-24 Roland McGrath <roland@frob.com>
6315
6316 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6317 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6318 (supply_gregset, supply_fpregset): New functions.
6319
6320 * gnu-nat.c (gnu_find_memory_regions): New function.
6321 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6322 (gnu_xfer_memory): Add a cast.
6323
f43845b3
MS
63242002-04-24 Michael Snyder <msnyder@redhat.com>
6325
361d1df0 6326 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6327 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6328 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6329 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6330 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6331 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6332
a0abec03
AC
6333Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6334
6335 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6336 NUM_PSEUDO_REGS can be used.
6337
d7bd68ca
AC
63382002-04-24 Andrew Cagney <ac131313@redhat.com>
6339
6340 * arch-utils.h: Update copyright.
6341
6342 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6343 * gdbarch.h, gdbarch.c: Re-generate.
6344
6345 * inferior.h (IN_SIGTRAMP): Delete definition.
6346 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6347 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6348
6349 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6350 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6351 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6352 (find_proc_framesize): Ditto.
6353 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6354 (alpha_init_extra_frame_info): Ditto.
6355 * infrun.c (handle_inferior_event): Ditto.
6356 (handle_inferior_event): Ditto.
6357 (check_sigtramp2): Ditto.
6358 * blockframe.c (create_new_frame): Ditto.
6359 (get_prev_frame): Ditto.
6360 * ppc-linux-tdep.c: Update comments.
6361 * i386-linux-tdep.c: Update comments.
6362 * breakpoint.c (bpstat_what): Update comment.
6363
4867e41e
DM
63642002-04-24 David S. Miller <davem@redhat.com>
6365
21d83aa5
DM
6366 * i960-tdep.c (register_in_window_p): New function.
6367 (i960_find_saved_register): Use it instead of
6368 REGISTER_IN_WINDOW_P.
6369 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6370
4867e41e
DM
6371 * symtab.h (find_stab_function_addr): Kill extern.
6372 * minsyms.c (find_stab_function_addr): Remove from here...
6373 * dbxread.c: ... to here, and mark it static.
6374
69cdf6a2
DM
63752002-04-20 David S. Miller <davem@redhat.com>
6376
6377 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6378 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6379
5a595886
DM
63802002-04-21 David S. Miller <davem@redhat.com>
6381
6382 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6383 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6384 (vx_write_register): Likewise.
6385
1da1a192
JB
63862002-04-23 J. Brobecker <brobecker@gnat.com>
6387
6388 * source.c (is_regular_file): New function.
6389 (openp): Check wether file to open is a regular file
6390 to avoid opening directories.
6391
baa6f10b
JT
63922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6393
6394 * findvar.c (extract_signed_integer): Cast printf argument
6395 to suppress format warning.
6396 (extract_unsigned_integer): Likewise.
6397 * infcmd.c (registers_info): Likewise.
6398 * top.c (get_prompt_1): Likewise.
6399 * valops.c (value_assign): Likewise.
6400 * valprint.c (print_decimal): Likewise.
6401
b2c4da81
L
64022002-04-22 H.J. Lu (hjl@gnu.org)
6403
6404 * c-exp.y (typebase): Support
361d1df0 6405
b2c4da81
L
6406 [long|long long|short] [signed|unsigned] [int|]
6407
6408 and
6409
6410 signed [long|long long|short] int
6411
f267bd6a
JT
64122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6413
6414 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6415 and vax-tdep.h.
6416 * vax-tdep.h: New file.
6417 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6418 Make several routines static.
6419 (vax_get_saved_register): New function.
6420 (vax_gdbarch_init): New function.
6421 (_initialize_vax_tdep): Register vax_gdbarch_init.
6422 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6423 Remove macros now under the control of gdbarch.
6424
da3c6d4a
MS
64252002-04-22 Michael Snyder <msnyder@redhat.com>
6426
11d3b27d
MS
6427 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6428 Some whitespace and coding standards tweaks.
da3c6d4a 6429
a33f7558
JT
64302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6431
6432 * vax-tdep.c: Include regcache.h.
6433 (vax_call_dummy_words): New.
6434 (sizeof_vax_call_dummy_words): New.
6435 (vax_fix_call_dummy): New function.
6436 (vax_saved_pc_after_call): Ditto.
6437 * config/vax/tm-vax.h: Don't include regcache.h.
6438 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6439 (CALL_DUMMY): Remove.
6440 (CALL_DUMMY_WORDS): Define.
6441 (SIZEOF_CALL_DUMMY_WORDS): Define.
6442 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6443
47a73475
MS
64442002-04-18 Michael Snyder <msnyder@redhat.com>
6445
6446 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6447
52efde73
JT
64482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6449
6450 * vax-tdep.c (vax_frame_chain): New function.
6451 (vax_push_dummy_frame): Ditto.
6452 (vax_pop_frame): Ditto.
6453 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6454 (FRAMELESS_FUNCTION_INVOCATION): Use
6455 generic_frameless_function_invocation_not.
6456 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6457 (POP_FRAME): Use vax_pop_frame.
6458
ea74468c
JT
64592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6460
6461 * vax-tdep.c (vax_store_struct_return): New function.
6462 (vax_extract_return_value): Ditto.
6463 (vax_store_return_value): Ditto.
6464 (vax_extract_struct_value_address): Ditto.
6465 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6466 vax_store_struct_return.
6467 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6468 (STORE_RETURN_VALUE): Use vax_store_return_value.
6469 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6470
5516aa92
JT
64712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6472
6473 * vax-tdep.c (vax_frame_saved_pc): New function.
6474 (vax_frame_args_address_correct): Ditto.
6475 (vax_frame_args_address): Ditto.
6476 (vax_frame_locals_address): Ditto.
6477 (vax_frame_num_args): Move code to be in proximity to
6478 other frame-related functions.
6479 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6480 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6481 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6482 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6483 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6484
36af0b35
L
64852002-04-22 H.J. Lu (hjl@gnu.org)
6486
6487 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6488 includedir.
6489
ab62c900
JT
64902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6491
6492 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6493 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6494 (FRAME_INIT_SAVED_REGS): New macro.
6495
7232b100
JT
64962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6497
6498 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6499
b70d2aee
JT
65002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6501
6502 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6503 where needed.
6504 (fetch_osf_core_registers): Likewise.
6505 (supply_gregset): Likewise.
6506
a0e8a2d1 65072002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6508
a0e8a2d1
JB
6509 * symfile.h (get_section_index): Define.
6510 * symfile.c (get_section_index): New function.
6511 * mdebugread.c (SC_IS_SBSS): New macro.
6512 (SC_IS_BSS): Return true for the scBss storage class only, as
6513 the scSBss storage class refers to the .sbss section.
6514 (parse_partial_symbols): Discard the symbols which associated
6515 section does not exist.
6516 Make sure to use the .sbss section index for symbols which
6517 storage class is scBss, rather than using the .bss section index.
6518
51eb8b08
JT
65192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6520
6521 * vax-tdep.c: Update copyright years.
6522 (vax_register_name): New function.
6523 (vax_register_byte): Ditto.
6524 (vax_register_raw_size): Ditto.
6525 (vax_register_virtual_size): Ditto.
6526 (vax_register_virtual_type): Ditto.
6527 * config/vax/tm-vax.h: Update copyright years.
6528 (REGISTER_NAMES): Remove.
6529 (REGISTER_NAME): Define.
6530 (REGISTER_BYTE): Use vax_register_byte.
6531 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6532 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6533 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6534
6cc1c0a8
AC
65352002-04-21 Andrew Cagney <ac131313@redhat.com>
6536
6537 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6538 declaration
6539 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6540
9319a2fe
DM
65412002-04-21 David S. Miller <davem@redhat.com>
6542
6543 * arch-utils.c (generic_prologue_frameless_p): Kill
6544 SKIP_PROLOGUE_FRAMELESS_P code.
6545 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6546 references.
6547 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6548 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6549 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6550 references.
6551 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6552 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6553 (sparc_gdbarch_init): Pass it to
6554 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6555
e9ed6d01
JT
65562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6557
6558 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6559 (alphabsd-nat.o): New dependency list.
6560
36012033
JT
65612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6562
6563 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6564 alphafbsd-tdep.c.
6565 (alpha-linux-tdep.o): New dependency list.
6566 (alphafbsd-tdep.o): Likewise.
6567
3379287a
JT
65682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6569
6570 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6571 to here...
6572 * alpha-tdep.c: ...from here.
6573 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6574
4bcbd6cb
JT
65752002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6576
6577 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6578 prototype from here...
6579 * alpha-tdep.h: ...to here.
6580
b31da25e
AC
65812002-04-21 Andrew Cagney <ac131313@redhat.com>
6582
6583 * frame.h (selected_frame_level): Document as deprecated.
6584 (frame_relative_level): Declare.
6585 * stack.c (frame_relative_level): New function.
6586 (selected_frame_level): Document as deprecated.
6587 (select_frame): Do not set the selected_frame_level.
6588
6589 * stack.c (frame_info, record_selected_frame): Update.
6590 (frame_command, current_frame_command): Update.
6591 (up_silently_base, up_command, down_silently_base): Update.
6592 (down_command): Update.
6593 * inflow.c (kill_command): Update.
6594 * tracepoint.c (finish_tfind_command): Update.
6595 * corelow.c (core_open): Update.
6596 * thread.c (info_threads_command): Update.
6597 (do_captured_thread_select): Update.
6598 * infcmd.c (finish_command): Update.
6599 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6600
9c1d6fe5
JT
66012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6602
6603 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6604
ab89facf
AC
66052002-04-21 Andrew Cagney <ac131313@redhat.com>
6606
6607 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6608 type const.
6609
82a4efa1
JT
66102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6611
6612 * alphafbsd-tdep.c: Update copyright years. Include
6613 alpha-tdep.h.
6614 (alphafbsd_use_struct_convention): Make static.
6615 (alphafbsd_init_abi): New function.
6616 (_initialize_alphafbsd_tdep): New function.
6617 * config/alpha/tm-fbsd.h: Update copyright years.
6618 (USE_STRUCT_CONVENTION): Remove.
6619
44dffaac
JT
66202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6621
6622 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6623 an Alpha ABI variant.
6624 (alpha_abi_handler_list): Declare.
6625 (alpha_gdbarch_register_os_abi): New function.
6626 (alpha_gdbarch_init): Give registered ABI variant handlers a
6627 chance to tweak the gdbarch once we have set up defaults.
6628 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6629
65585be4
JT
66302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6631
6632 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6633 to standard_coerce_float_to_double.
6634 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6635
d9b023cc
JT
66362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6637
6638 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6639 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6640 from gdbarch_tdep rather than a constant.
6641 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6642 the default text address for all Alpha Unix ABIs.
6643 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6644 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6645
dc129d82
JT
66462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6647
6648 * alpha-tdep.h: New file. Includes several Alpha target constants
6649 taken from...
6650 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6651 let gdbarch deal with.
6652 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6653 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6654 to dependency list.
6655 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6656 Alpha target register names.
6657 * alphabsd-nat.c: Likewise.
6658 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6659 Alpha target register names. Make serveral routines static.
6660 (alpha_get_saved_register): New function.
6661 (alpha_abi_names): New.
6662 (process_note_abi_tag_sections): New function.
6663 (get_elfosabi): New function.
6664 (alpha_gdbarch_init): New function.
6665 (alpha_dump_tdep): New function.
6666 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6667
d49d1e0a
AC
66682002-04-21 Andrew Cagney <ac131313@redhat.com>
6669
6670 * frame.c (find_saved_register): Delete #ifdef
6671 HAVE_REGISTER_WINDOWS code.
6672 * config/sparc/tm-sparc.h: Update comments.
6673 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6674
92e8c9ed
AC
66752002-04-21 Andrew Cagney <ac131313@redhat.com>
6676
6677 * i960-tdep.c (i960_find_saved_register): New function.
6678 (i960_get_saved_register): New function.
6679 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6680 (i960_get_saved_register): Declare.
6681 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6682
e1925118
DM
66832002-04-20 David S. Miller <davem@redhat.com>
6684
6685 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6686
29673b29
AC
66872002-04-20 Andrew Cagney <ac131313@redhat.com>
6688
6689 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6690 instead of NUM_PSEUDO_REGS.
6691
6c86dcd5
DM
66922002-04-20 David S. Miller <davem@redhat.com>
6693
6694 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6695 GDB_MULTI_ARCH_PARTIAL
6696 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6697 define, let tm-sp64.h do it.
6698
aa40ec90
JT
66992002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6700
6701 * frame.c (find_saved_register): Avoid a NULL pointer
6702 dereference and actually walk the frame list.
6703
0f79675b
AC
67042002-04-20 Andrew Cagney <ac131313@redhat.com>
6705
6706 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6707 sorted in most most-recent-used order. Document.
6708 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6709
f91305dd 67102002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6711
6712 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6713 instead of ->prev.
6714 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6715 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6716 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6717 instead of ->prev.
6718
73d322b1
EZ
67192002-04-19 Elena Zannoni <ezannoni@redhat.com>
6720
6721 Fix PR gdb/471.
6722 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6723 (build_builtin_type_vec128): Ditto.
6724 (append_composite_type_field): Fix calculation of type length in
6725 union case.
6726
ccd9a834
EZ
67272002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6728
6729 * config/djgpp/README: Update.
6730
6731 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6732 compiler warnings.
6733
a57f9e49
JT
67342002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6735
6736 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6737 (alpha_setup_arbitrary_frame): ...to this.
6738 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6739 for alpha_setup_arbitrary_frame.
6740
f4f9705a
AC
67412002-04-18 Andrew Cagney <cagney@redhat.com>
6742
6743 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6744 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6745
f4f9705a
AC
6746 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6747 * target.h (memory_breakpoint_from_pc): Update declaration.
6748 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6749
6750 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6751 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6752 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6753 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6754 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6755 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6756 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6757 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6758 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6759 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6760 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6761 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6762
6763 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6764 const pointer.
6765 * monitor.c (monitor_insert_breakpoint): Ditto.
6766 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6767
6768 * config/mcore/tm-mcore.h: Update copyright.
6769 * mem-break.c: Ditto.
6770 * xstormy16-tdep.c: Ditto.
6771
29f319b8
PM
67722002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6773
6774 * p-exp.y: Add precedence rule for '^' token.
6775 This removes the shift/reduce conflicts.
6776 Remove the comment concerning these shift/reduce conflicts.
6777
ebeac11a
EZ
67782002-04-18 Elena Zannoni <ezannoni@redhat.com>
6779
6780 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6781 (registers_powerpc_nofp): New register set for processors
6782 without floating point unit.
6783
27c31547
DM
67842002-04-18 David S. Miller <davem@redhat.com>
6785
6786 * MAINTAINERS: Add myself to write-after-approval.
6787
47a73475
MS
67882002-04-17 Michael Snyder <msnyder@redhat.com>
6789
6790 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6791
953836b2
AC
67922002-04-17 Andrew Cagney <ac131313@redhat.com>
6793
6794 * rs6000-tdep.c (frame_initial_stack_address): Use
6795 frame_register_read to read the alloca_reg.
6796
8b0d4340
AC
67972002-04-17 Andrew Cagney <ac131313@redhat.com>
6798
6799 * frame.c (find_saved_register): Find saved registers in the next
6800 not prev frame.
6801 Fix PR gdb/365.
6802
d8864532
AC
68032002-04-17 Andrew Cagney <ac131313@redhat.com>
6804
6805 * gdbarch.sh (LANG): Set to ``c''.
6806
36cc83a3 68072002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6808
36cc83a3 6809 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6810
2f4150cc 68112002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6812
6813 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6814 Update copyright.
6815
628703c6 6816 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6817 Also fix PR gdb/391.
361d1df0 6818
56157b4a
AC
68192002-04-14 Andrew Cagney <ac131313@redhat.com>
6820
6821 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6822 * aclocal.m4, configure: Re-generate.
6823 Fix PR gdb/391.
361d1df0 6824
6d1e3329
EZ
68252002-04-14 Elena Zannoni <ezannoni@redhat.com>
6826
6827 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6828 instead of tm_print_insn.
6829
cb06fa07
EZ
68302002-04-14 Elena Zannoni <ezannoni@redhat.com>
6831
6832 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6833
f208ba17
AC
68342002-04-14 Andrew Cagney <ac131313@redhat.com>
6835
6836 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6837 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6838 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6839
20f01a46
DH
68402002-04-12 Don Howard <dhoward@redhat.com>
6841
6842 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6843 max_user_call_depth.
6844 (init_cmd_lists): Initialize the new value;
6845 * cli/cli-script.c (execute_user_command): Limit the call depth of
6846 user defined commands. This avoids a core-dump when user commands
6847 are infinitly recursive.
6848
a88376a3
KB
68492002-04-12 Kevin Buettner <kevinb@redhat.com>
6850
6851 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6852 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6853 from tdep struct instead of DEFAULT_LR_SAVE.
6854 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6855 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6856 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6857
f2172603
MS
68582002-04-12 Michael Snyder <msnyder@redhat.com>
6859
694f61fb 6860 * Remote.c: Spelling fix.
20fe79c8
MS
6861 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6862 If no symbol found for "sbrk", try "_sbrk".
6863 (make_output_phdrs): Use bfd_section_name.
6864 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6865 * eval.c: Indentation fix-ups.
169a7369
MS
6866 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6867 in case it gets applied to an address that is already
6868 in the instruction space.
de74f71f
MS
6869 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6870 * symfile.c: Fix indentation, long lines.
f2172603
MS
6871 * source.c: White space fix-up.
6872
cda5a58a
AC
68732002-04-12 Andrew Cagney <cagney@redhat.com>
6874
6875 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6876 * frame.c (frame_register_read): New function. Return non-zero on
6877 success.
6878 (read_relative_register_raw_bytes_for_frame): Delete.
6879 (read_relative_register_raw_bytes): Delete.
6880 * frame.h (frame_register_read): Declare.
6881 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6882 * sh-tdep.c: Ditto.
6883 * infcmd.c (do_registers_info): Ditto.
6884 * hppa-tdep.c: Ditto.
6885 * rs6000-tdep.c: Ditto.
6886 * h8500-tdep.c: Ditto.
6887 * mips-tdep.c: Ditto.
6888 * h8300-tdep.c: Ditto.
6889 * z8k-tdep.c: Ditto.
6890
2ea5f656
KB
68912002-04-12 Kevin Buettner <kevinb@redhat.com>
6892
6893 From Jimi X <jimix@watson.ibm.com>:
6894 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6895 64-bit SysV ABI.
6896
27b15785
KB
68972002-04-12 Kevin Buettner <kevinb@redhat.com>
6898
6899 From Jimi X <jimix@watson.ibm.com>:
6900 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6901 bfd info.
6902
5d57ee30
KB
69032002-04-12 Kevin Buettner <kevinb@redhat.com>
6904
6905 From Jimi X <jimix@watson.ibm.com>:
6906 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6907 register sets for these processor variants.
6908
bc1e36ca
DJ
69092002-04-11 Daniel Jacobowitz <drow@mvista.com>
6910
bc1e36ca
DJ
6911 * regformats/reg-ppc.dat: Support FPSCR.
6912
e3f36dbd
KB
69132002-04-11 Kevin Buettner <kevinb@redhat.com>
6914
6915 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6916 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6917 Add fpscr as an invalid/unfetchable register.
6918 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6919 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6920 (fill_fpregset): Add support for register fpscr.
6921 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6922 (fill_gregset): Account for the fact that register ``mq'' might
6923 not exist.
6924 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6925 (registers_power): Add fpscr to register set at slot 71.
6926 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6927 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6928
943c9c25
MS
69292002-04-11 Michael Snyder <msnyder@redhat.com>
6930
6931 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6932 * configure: Regenerate.
6933 * config.in: Regenerate.
6934 * acconfig.h: Add define for _SYSCALL32.
6935 * core-sol2.c: Remove #define _SYSCALL32.
6936 * solib-legacy.c: Remove #define _SYSCALL32.
6937
d8c0a2e7
AC
69382002-04-10 Andrew Cagney <ac131313@redhat.com>
6939
6940 * stack.c (select_frame): Cleanup internal error message, do not
6941 use %p.
6942
7cc19214
AC
69432002-04-10 Andrew Cagney <ac131313@redhat.com>
6944
6945 * stack.c (select_frame): Check that selected_frame and the
6946 specified level are as expected.
6947 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6948 Update copyright.
6949 * frame.h (struct frame_info): Add field `level'. Update
6950 copyright.
6951 Work-in-progress PR gdb/464.
6952
67a2b77e
AC
69532002-04-10 Andrew Cagney <ac131313@redhat.com>
6954
6955 * maint.c (maint_print_section_info): Rename print_section_info.
6956 (print_bfd_section_info, print_objfile_section_info): Update.
6957 * inferior.h (struct gdbarch): Add opaque declaration.
6958 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6959 * gdbarch.h: Regenerate.
6960
8cfda98c
ML
69612002-04-10 Michal Ludvig <mludvig@suse.cz>
6962
6963 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6964 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6965 (kernel_u_size): Added.
6966 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6967 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6968
ca439ad2 69692002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6970
ca439ad2
JI
6971 * valarith.c (find_size_for_pointer_math): New function, either returns
6972 the size for a pointer's target, returns 1 for void *, or errors for
6973 incomplete types.
6974 (value_add, value_sub): use find_size_for_pointer_math.
6975
2f2893d9
DJ
69762002-04-09 Daniel Jacobowitz <drow@mvista.com>
6977
6978 * linux-low.c (linux_look_up_symbols): New hook.
6979 (linux_target_ops): Add linux_look_up_symbols.
6980 * remote-utils.c (decode_address): New function.
6981 (look_up_one_symbol): New function.
6982 * server.c (handle_query): Call target look_up_symbols hook.
6983 * server.h (look_up_one_symbol): Add prototype.
6984 * target.h (struct target_ops): Add look_up_symbols hook.
6985
96cb11df
AC
69862002-04-09 Andrew Cagney <ac131313@redhat.com>
6987
6988 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6989 override FP_REGNUM with frame->fp. Update copyright.
6990 * parse.c (num_std_regs, std_regs): Delete.
6991 (target_map_name_to_register): Do not search std_regs. Update
6992 function description.
6993 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6994 declarations. Update copyright.
6995 Fix PR gdb/251.
361d1df0 6996
97658e92
DJ
69972002-04-09 Daniel Jacobowitz <drow@mvista.com>
6998
6999 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7000 after the last symbol in a block.
7001
6044e3eb
PM
70022002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7003
7004 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7005 is non zero as a found symbol.
7006
0406ec40
AC
70072002-04-08 Andrew Cagney <ac131313@redhat.com>
7008
7009 * findvar.c: Include "builtin-regs.h".
7010 (value_of_register): Call value_of_builtin_reg when applicable.
7011 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7012 (target_map_name_to_register): Call
7013 builtin_reg_map_name_to_regnum.
7014 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7015 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7016 (builtin_regs_h): Define.
7017 (builtin-regs.o): New target.
7018 (findvar.o): Add $(builtin_regs_h).
7019 * builtin-regs.c, builtin-regs.h: New files.
7020 * std-regs.c: New file.
7021 Partial fix for PR gdb/251.
7022
56a6dfb9
KB
70232002-04-08 Kevin Buettner <kevinb@redhat.com>
7024
7025 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7026 it's no longer required.
7027
3a808432
AC
70282002-04-08 Andrew Cagney <ac131313@redhat.com>
7029
7030 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7031
7c40d541
KB
70322002-04-08 Kevin Buettner <kevinb@redhat.com>
7033
7034 From Jimi X <jimix@watson.ibm.com>:
7035 * rs6000-tdep.c (rs6000_software_single_step): Use
7036 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7037 and size. Use target_insert_breakpoint() and
7038 target_remove_breakpoint() to insert and remove breakpoints
7039 instead of explicit memory reads and writes.
7040
cc9836a8
KB
70412002-04-08 Kevin Buettner <kevinb@redhat.com>
7042
7043 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7044 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7045 ELF_OBJECT_FORMAT ifdef.
7046
7495d1dc
KB
70472002-04-08 Kevin Buettner <kevinb@redhat.com>
7048
7049 From Jimi X <jimix@watson.ibm.com>:
7050 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7051
4288e836
KB
70522002-04-08 Kevin Buettner <kevinb@redhat.com>
7053
7054 From Jimi X <jimix@watson.ibm.com>:
7055 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7056 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7057
a4e4e501
MK
70582002-04-07 Mark Kettenis <kettenis@gnu.org>
7059
7060 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7061 s/asprintf/xasprintf/.
7062 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7063
006defba
AC
70642002-04-07 Andrew Cagney <ac131313@redhat.com>
7065
7066 I believe Jeff Law denies responsability for this one:
7067 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7068 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7069 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7070 Work-around for PR gdb/366.
7071
7aa83cac
EZ
70722002-04-07 Elena Zannoni <ezannoni@redhat.com>
7073
7074 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7075 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7076 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7077
cf1fcca1
EZ
70782002-04-07 Elena Zannoni <ezannoni@redhat.com>
7079
7080 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7081 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7082 information.
7083
3f289e6f
AC
70842002-04-07 Andrew Cagney <ac131313@redhat.com>
7085
7086 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7087 maintainer.
7088
129188f6
AC
70892002-04-07 Andrew Cagney <ac131313@redhat.com>
7090
7091 * README (Reporting Bugs in GDB): Document the bug web page as the
7092 prefered way of submitting bugs.
7093 Fix PR gdb/402.
7094
1200cd6e
AC
70952002-04-06 Andrew Cagney <ac131313@redhat.com>
7096
7097 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7098 -1. Update comment.
7099 * gdbarch.h, gdbarch.c: Re-generate.
7100
2853c33c
AS
71012002-04-07 Andreas Schwab <schwab@suse.de>
7102
7103 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7104 buffer to regcache_collect.
7105
c2169756
AC
71062002-04-06 Andrew Cagney <ac131313@redhat.com>
7107
7108 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7109 * gdbarch.c, gdbarch.h: Re-generate.
7110
25f1b008
AC
71112002-04-06 Andrew Cagney <ac131313@redhat.com>
7112
7113 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7114 declaration. Fix -Werror.
7115
59263426
DJ
71162002-04-05 Daniel Jacobowitz <drow@mvista.com>
7117
7118 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7119 * gdbarch.c: Regenerate.
7120
f5db4da3
MS
71212002-04-05 Michael Snyder <msnyder@redhat.com>
7122
80f8a6eb
MS
7123 * breakpoint.c (clear_command): Rewrite middle section to
7124 combine two loops with identical control conditions.
7125 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7126 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7127
ad3dcc5c
L
71282002-04-05 H.J. Lu (hjl@gnu.org)
7129
7130 * solib-svr4.c (bkpt_names): Add "__start".
7131
f32e7a74
AC
71322002-04-04 Andrew Cagney <ac131313@redhat.com>
7133
7134 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7135 as test for 64 bit target.
7136
8227c0ff
AC
71372002-04-05 Andrew Cagney <ac131313@redhat.com>
7138
7139 * h8500-tdep.c (h8500_write_fp): Delete function.
7140 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7141 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7142 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7144 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7145 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7146 (s390_write_fp):
7147 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7148 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7149 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7150 (d10v_write_fp): Delete function.
7151 * inferior.h (write_fp, generic_target_write_fp): Delete
7152 declarations.
7153 * regcache.c (generic_target_write_fp): Delete function.
7154 (write_fp): Delete function.
7155 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7156 * gdbarch.h, gdbarch.c: Regenerate.
7157 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7158 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7159 (sparc64_write_fp): Delete declaration.
7160 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7161 (h8500_write_fp): Delete declaration.
7162
2757dd86
AC
71632002-04-04 Andrew Cagney <ac131313@redhat.com>
7164
7165 * sparc-tdep.c (sparc64_write_fp): Delete.
7166 (sparc_push_dummy_frame): Replace write_fp call with code to store
7167 the FP directly.
7168 (sparc_gdbarch_init): Do not initialize write_fp.
7169
c69255e1
KB
71702002-04-05 Kevin Buettner <kevinb@redhat.com>
7171
7172 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7173 clause.
7174
ae767bfb
JB
71752002-03-29 Jim Blandy <jimb@redhat.com>
7176
7177 * stack.c (get_selected_block): Add new argument `addr_in_block',
7178 used to return the exact code address we used to select the block,
7179 not just the block.
7180 * blockframe.c (get_frame_block, get_current_block): Same.
7181 * frame.h (get_frame_block, get_current_block,
7182 get_selected_block): Update declarations.
7183 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7184 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7185
84d2ac95
MS
71862002-04-05 Michael Snyder <msnyder@redhat.com>
7187
7188 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7189 warning message.
7190
596aa3bf
JB
71912002-04-05 J. Brobecker <brobecker@gnat.com>
7192
7193 * utils.c (xfullpath): New function.
7194 * defs.h (xfullpath): Add declaration.
7195 * source.c (openp): Use xfullpath in place of gdb_realpath to
7196 avoid resolving the basename part of filenames when the
7197 associated file is a symbolic link. This fixes a potential
7198 inconsistency between the filenames known to GDB and the
7199 filenames it prints in the annotations.
7200 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7201 to be able to match a filename with either the real filename, or
7202 the name of any symbolic link to this file.
7203 (lookup_partial_symtab): Ditto.
7204
c02f5703
MS
72052002-04-04 Michael Snyder <msnyder@redhat.com>
7206
7207 * breakpoint.c: Add support for hardware breakpoints in overlays.
7208 (overlay_events_enabled): New state variable.
7209 (insert_breakpoints): Use overlay_events_enabled to decide
7210 whether to attempt to set a breakpoint at the overlay load addr.
7211 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7212 (remove_breakpoint): Use overlay_events_enabled to decide
7213 whether breakpoints need to be removed from overlay load addr.
7214 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7215 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7216 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7217 disable_overlay_breakpoints): Update overlay_events_enabled.
7218
5fb290d7
DJ
72192002-04-04 Daniel Jacobowitz <drow@mvista.com>
7220
7221 * dwarf2read.c (struct function_range): New.
7222 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7223 (check_cu_functions): New.
7224 (read_file_scope): Initialize global function lists.
7225 Call dwarf_decode_line after processing children.
7226 (read_func_scope): Add to global function list.
7227 (dwarf_decode_lines): Call check_cu_functions everywhere
7228 record_line is called. Call record_line with a linenumber
7229 of 0 to mark sequence ends.
7230
7b3fabf0
ML
72312002-04-04 Michal Ludvig <mludvig@suse.cz>
7232
361d1df0 7233 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7234 change sync with glibc.
7235
bce58c09
JB
72362002-04-03 Jim Blandy <jimb@redhat.com>
7237
7238 * configure.in: Call AC_C_INLINE.
7239 * configure: Regenerated.
361d1df0 7240
2fccf04a
DJ
72412002-04-01 Daniel Jacobowitz <drow@mvista.com>
7242
7243 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7244 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7245
2d1bfe2e
MK
72462002-03-31 Mark Kettenis <kettenis@gnu.org>
7247
a5941fbf
MK
7248 * NEWS: Mention gcore support on FreeBSD/i386.
7249
a90cd31d
MK
7250 * fbsd-proc.c: New file.
7251 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7252 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7253
2d1bfe2e
MK
7254 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7255 while statement.
7256
9eb6e5a1
JB
72572002-03-29 Jim Blandy <jimb@redhat.com>
7258
7259 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7260 unescaped newlines in string literals, but newer ones don't. So
7261 escape them.
7262
f02df580
MS
72632002-03-26 Michael Snyder <msnyder@redhat.com>
7264 Andrew Cagney <cagney@redhat.com>
7265
361d1df0 7266 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7267 restore file to memory.
7268 * cli/cli-dump.h: New file.
7269 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7270 * NEWS: Mention new commands.
f02df580 7271
109f874e
MS
72722002-03-28 Michael Snyder <msnyder@redhat.com>
7273
7274 * symfile.c (symbol_file_add): Move test for null symbols to later.
7275
520f6ade
AC
72762002-03-27 Andrew Cagney <ac131313@redhat.com>
7277
7278 From veksler at il.ibm.com:
7279 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7280 the xstrduped original path.
7281 Fix PR gdb/417.
7282
d4654627
MS
72832002-03-27 Michael Snyder <msnyder@redhat.com>
7284
7285 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7286 * infcmd.c (_initialize_infcmd): Ditto.
7287 * language.c (_initialize_language): Ditto.
7288 * symfile.c (_initialize_symfile): Ditto.
7289 * top.c (_init_main): Ditto.
7290 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7291
6be8bc0c
EZ
72922002-03-27 Elena Zannoni <ezannoni@redhat.com>
7293
7294 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7295 vector registers handling.
7296 (skip_prologue): Handle new AltiVec instructions. Fill in new
7297 fields of frame data.
7298 (frame_get_saved_regs): Fill in information for AltiVec registers.
7299
12af6855
JB
73002002-03-27 Jim Blandy <jimb@redhat.com>
7301
7302 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7303 a function; leave this macro here to invoke that function.
7304 (symbol_init_mangled_name): Declaration for that function.
7305 * symtab.c (symbol_init_mangled_name): New function.
7306
dc672865
AC
73072002-03-27 Andrew Cagney <ac131313@redhat.com>
7308
7309 * valarith.c: Replace strerror with safe_strerror.
7310 * tracepoint.c: Ditto.
7311 * lin-lwp.c: Ditto.
7312 * go32-nat.c: Ditto.
7313 * inflow.c: Ditto.
7314 * gnu-nat.c: Ditto.
7315
d96429cd
AS
73162002-03-27 Andreas Schwab <schwab@suse.de>
7317
7318 * event-top.c (command_line_handler): Remove useless if.
7319
7e336ba1
AJ
73202002-03-27 Andreas Jaeger <aj@suse.de>
7321
7322 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7323 comment.
7324
de220d0f
ML
73252002-03-27 Michal Ludvig <mludvig@suse.cz>
7326
7327 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7328 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7329 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7330 (x86_64_linux_dr_get_status, supply_gregset),
7331 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7332 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7333 (x86_64_register_info_table): Add.
7334 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7335 (x86_64_register_raw_size, x86_64_register_virtual_type),
7336 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7337 general x86_64_register_info_table.
7338 (i386_gdbarch_init): gdbarch_register_bytes is now set
7339 dynamicaly during initialization.
7340 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7341 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7342
0e98d0a7
DJ
73432002-03-27 Daniel Jacobowitz <drow@mvista.com>
7344
7345 * gdbserver/server.c (main): Call target_signal_to_host_p
7346 and target_signal_to_host on signals received from the remote.
7347 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7348 target_signal_from_host on signals sent to the remote.
7349 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7350 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7351
3130066b
DJ
73522002-03-27 Daniel Jacobowitz <drow@mvista.com>
7353
7354 * signals/signals.c: Include "server.h" in gdbserver build.
7355 (target_signal_from_name): Don't use STREQ.
7356 (_initialize_signals): Likewise. Don't include function in
7357 gdbserver build.
7358
9aedf4f4
DJ
73592002-03-27 Daniel Jacobowitz <drow@mvista.com>
7360
7361 * signals.c: Moved to...
7362 * signals/signals.c: Here.
7e336ba1 7363 * Makefile (signals.o): Update.
9aedf4f4 7364
3fa41cdb
JL
73652002-03-26 Jeff Law (law@redhat.com)
7366
7367 * somread.c (som_symtab_read): Remove some commented out code and
7368 updated related comments. Do not set the minimal symbol table to
7369 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7370 in a dynamic executable.
7371 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7372 where we are unable to find the minimal symbol for the given
7373 PC value.
7374
ee677e8d
MS
73752002-03-25 Jeff Law (law@redhat.com)
7376
7377 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7378
e76e1718
ML
73792002-03-25 Michal Ludvig <mludvig@suse.cz>
7380
7381 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7382
18a642a1
AC
73832002-03-23 Andrew Cagney <ac131313@redhat.com>
7384
7385 * command.h: Update copyright.
7386 (struct cmd_list_element): Replace definition with opaque
7387 declaration.
7388 (enum cmd_types): Document that it will eventually be moved to
7389 cli/cli-decode.h
7390 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7391 (MALLOCED_REPLACEMENT): Delete macro.
7392 * Makefile.in (cli_decode_h): Add $(command_h).
7393 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7394 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7395 * completer.c: Include "cli/cli-decode.h".
7396 * maint.c: Include "cli/cli-decode.h".
7397 * cli/cli-decode.h: Include "command.h".
7398 (enum command_class): Delete.
7399 (enum cmd_types): Comment out.
7400 (enum cmd_auto_boolean): Delete.
7401 (enum var_types): Delete.
7402
b2875cc0
AC
74032002-03-23 Andrew Cagney <ac131313@redhat.com>
7404
7405 * cli/cli-decode.c: Include "gdb_assert.h".
7406 (add_set_or_show_cmd): New static function.
7407 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7408 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7409 all fields, such as func, from the set command.
7410
3b45974e
AC
74112002-03-23 Andrew Cagney <ac131313@redhat.com>
7412
7413 * MAINTAINERS (sh-elf): Change warning flag to -w.
7414
823ca731
AC
74152002-03-23 Andrew Cagney <cagney@redhat.com>
7416
7417 * defs.h (error): Add printf format attribute.
7418 * thread-db.c (thread_from_lwp): Fix error format string.
7419 * stack.c (parse_frame_specification): Ditto.
7420 * cli/cli-decode.c (undef_cmd_error): Ditto.
7421 * scm-lang.c (scm_lookup_name): Ditto.
7422 * tracepoint.c (trace_error): Ditto.
7423 * remote-utils.c (usage): Ditto.
7424 * remote.c (compare_sections_command): Ditto.
7425 Fix PR gdb/328.
7426
0e101458
AC
74272002-03-22 Andrew Cagney <ac131313@redhat.com>
7428
7429 * gdbtypes.c (append_composite_type_field): New function.
7430 (init_composite_type): New function.
7431 * gdbtypes.h (append_composite_type_field): Declare.
7432 (init_composite_type): Ditto.
7433
8e0662df
EZ
74342002-03-22 Elena Zannoni <ezannoni@redhat.com>
7435
7436 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7437 function.
8e0662df
EZ
7438 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7439 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7440 structure returning convention for SYSV ABI case, but not
7441 for GNU/Linux, FreeBSD, or NetBSD.
7442
3121eff0
DJ
74432002-03-22 Daniel Jacobowitz <drow@mvista.com>
7444
7445 * symtab.h (lookup_block_symbol): Add mangled_name argument
7446 to prototype.
7447
7448 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7449 with new mangled_name argument.
7450 * linespec.c (decode_line_1): Likewise.
7451 * valops (value_of_this): Likewise.
7452 * symtab.c (lookup_transparent_type): Likewise.
7453 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7454 (lookup_symbol): If we are given a mangled name, pass it down
7455 to lookup_symbol_aux.
7456 (lookup_block_symbol): If we are given a mangled name to check
7457 against, only return symbols which match it.
7458
349b409f
CF
74592002-03-22 Christopher Faylor <cgf@redhat.com>
7460
7461 * win32-nat.c (child_create_inferior): Check for proper shell to use
7462 here, in case the user changes it on the fly.
7463 (_initialize_inftarg): Remove shell path considerations.
7464
2a873819
EZ
74652002-03-21 Elena Zannoni <ezannoni@redhat.com>
7466
7467 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7468 for gdbarch_max_register_raw_size and max_register_virtual_size.
7469 Adjust copyright year.
7470
a1b9830c
DJ
74712002-03-21 Daniel Jacobowitz <drow@mvista.com>
7472
7473 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7474 in a function to cover the entire beginning of the function
7475 as well if it does not already.
7476
8b5790f2
TR
74772002-03-21 Tom Rix <trix@redhat.com>
7478
7479 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7480 (rs6000_ptrace64): Renamed from ptrace64.
7481
bdbe5747
MH
74822002-03-20 Martin M. Hunt <hunt@redhat.com>
7483
7484 * gdbserver/remote-utils.c (remote_open): Don't call
7485 getprotobyname, we're all using TCP here so just use
7486 IPPROTO_TCP.
7e336ba1 7487 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7488
74892002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7490
bdbe5747
MH
7491 * regcache.c (_initialize_regcache): No need to call
7492 build_regcache() at this time; it gets called whenever
7493 the gdbarch changes.
7494
7781cd62
DB
74952002-03-20 David O'Brien <obrien@FreeBSD.org>
7496
7497 * sparc-nat.c: Include sys/param.h where possible.
7498
f65ca430
DJ
74992002-03-20 Daniel Jacobowitz <drow@mvista.com>
7500
7501 Fix PR gdb/422.
7502 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7503 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7504 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7505 complex types.
7506 * stabsread.c (rs6000_builtin_type): Likewise.
7507 (read_sun_floating_type): Likewise.
7508
0c867556
PS
75092002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7510
7511 * stabsread.c (read_member_functions): Remove skip code for duplicate
7512 constructor/destructor methods. Use standard parsing for these
7513 methods and just do not chain them to the list of methods after
7514 parsing.
7515
12b9c64f
AO
75162002-03-19 Alexandre Oliva <aoliva@redhat.com>
7517
7518 * coffread.c: Remove redundant static declarations. Replace
7519 occurrences of `PTR' with `void *'.
7520 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7521 * top.h (quit_cover): Likewise.
7522 * defs.h (catch_errors): Likewise.
7523
349c5d5f
AC
75242002-03-18 Andrew Cagney <ac131313@redhat.com>
7525
7526 * defs.h (XMALLOC): Define.
7527 * gdb-events.sh (XMALLOC): Delete macro.
7528 * gdb-events.c, gdb-events.h: Regenerate.
7529 * gdbarch.sh (XMALLOC): Delete macro.
7530 * gdbarch.c: Regenerate.
7531 * serial.c (XMALLOC): Delete macro.
7532 * ui-file.c (XMALLOC): Ditto.
7533 * ser-unix.h (XMALLOC): Ditto.
7534 * sh-tdep.c (XMALLOC): Ditto.
7535 * ui-out.c (XMALLOC): Ditto.
7536 * utils.c (XMALLOC): Ditto.
7537 * i386-tdep.c (XMALLOC): Ditto.
7538 * gdb-events.c (XMALLOC): Ditto.
7539 * d10v-tdep.c (XMALLOC): Ditto.
7540 * cli-out.c (XMALLOC): Ditto.
7541
7542 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7543 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7544 * ui-file.c, ui-out.c: Ditto.
7545
7d0766f3
AC
75462002-03-18 Andrew Cagney <ac131313@redhat.com>
7547
7548 * command.h (struct cmd_list_element): Add field context.
7549 (set_cmd_context, get_cmd_context): Declare.
7550 * cli/cli-decode.h: Ditto.
7551 * cli/cli-decode.c (get_cmd_context): New function.
7552 (set_cmd_context): New function.
7553 (add_cmd): Initialize context.
7554 Part of fixing PR gdb/145 and PR gdb/146.
7555
5913bcb0
AC
75562002-03-17 Andrew Cagney <ac131313@redhat.com>
7557
1868c04e
AC
7558 * cli/cli-decode.c (cmd_type): New function.
7559 * command.h (cmd_type): Declare.
7560 * infrun.c (set_schedlock_func): Call function cmd_type.
7561 * kod.c (kod_set_os): Call cmd_type.
7562 * cris-tdep.c (cris_version_update): Use function cmd_type.
7563 (cris_mode_update, cris_abi_update): Ditto.
7564
5913bcb0
AC
7565 * command.h: (execute_cmd_post_hook): Declare.
7566 (execute_cmd_pre_hook): Declare.
7567 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7568 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7569 functions. Execute pre/post hook while ensuring that afterwords
7570 hook_in is cleared.
7571 * top.c (execute_command): Use execute_cmd_post_hook, and
7572 execute_cmd_pre_hook to execute pre/post commands.
7573 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7574 hook_stop_stub.
7575 (hook_stop_stub): Call execute_cmd_pre_hook.
7576
b51450c9
AC
75772002-03-17 Andrew Cagney <ac131313@redhat.com>
7578
7579 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7580 set'' and this leads to a core dump. Move xstrdup of
7581 operating_system to after check that it is not NULL.
7582
f66c9f11
AC
75832002-03-17 Andrew Cagney <ac131313@redhat.com>
7584
8e694ecf
AC
7585 * kod.c (kod_set_os): Remove unnecessary check that
7586 ``command->type'' is set_cmd.
7587
f66c9f11
AC
7588 * valprint.c (set_input_radix): Use input_radix.
7589 (set_output_radix): Use output_radix.
7590 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7591 isn't reverted.
7592
9d01611c
AC
75932002-03-16 Andrew Cagney <ac131313@redhat.com>
7594
7595 * value.h (struct value): Delete field ``substring_addr''. Change
7596 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7597 force_core_addr_align and force_pointer_aligh.
7598
7599 * value.h (struct value): Fix typo in above change.
9d01611c 7600
4156bb53
PS
76012002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7602
7603 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7604 to fix internal_error from ``maintenance print architecture''.
7605
0e5e3ea6
PS
76062002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7607
7608 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7609 for gcc versions after gcc-2.8.1.
7610
9b013045
PS
76112002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7612
7613 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7614 for method resolution. Restore adjustment of ``this'' pointer after
7615 calling value_struct_elt, which was accidentally removed during the
7616 HP merge.
7617
376c9600
AC
76182002-03-15 Andrew Cagney <ac131313@redhat.com>
7619
7620 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7621 value_of_register.
7622 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7623 get_saved_register.
7624 * value.h (value_of_register): Update.
7625
a4db0f07
RH
76262002-03-14 Richard Henderson <rth@redhat.com>
7627
7628 * configure.in: Detect declaration for canonicalize_file_name.
7629 * utils.c (canonicalize_file_name): Declare, if needed.
7630 (gdb_realpath): Prefer realpath if available and usable.
7631 * config.in, configure: Rebuild.
7632
96383835
RH
76332002-03-14 Richard Henderson <rth@redhat.com>
7634
7635 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7636 a constant array bound.
7637
7638 * MAINTAINERS: Add myself to write-after-approval.
7639
75245b24
MS
76402002-03-14 Michael Snyder <msnyder@redhat.com>
7641
7642 * symfile.c (syms_from_objfile): Return immediately if no syms.
7643 (symbol_file_add): Return immediately if no syms.
7644 (find_sym_fns): Return immediately if no syms.
7645
e641a1ca
ML
76462002-03-13 Michal Ludvig <mludvig@suse.cz>
7647
7648 * gdbserver/remote-util.c (remote_open): Print remote-side's
7649 IP address when remote debugging over the network.
7e336ba1 7650
df08bfec
DB
76512002-03-12 David O'Brien <obrien@FreeBSD.org>
7652
7653 * config/sparc/fbsd.mh: Fix copyright.
7654 * config/sparc/fbsd.mt: Likewise.
7655
9a57864f
RE
76562002-03-11 Richard Earnshaw <rearnsha@arm.com>
7657
7658 * MAINTAINERS: Fix typo in name of gdb warnings option.
7659 (x86-64): Fix formating so that this can be parsed by awk.
7660
dd7bf85e
DJ
76612002-03-10 Daniel Jacobowitz <drow@mvista.com>
7662
7663 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7664 * defs.h: Include "gdb/signals.h".
7665 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7666
33a0a2ac
ML
76672002-03-10 Michal Ludvig <mludvig@suse.cz>
7668
7669 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7670 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7671 from x86-64-tdep.h
7672
dd824b04
DJ
76732002-03-10 Daniel Jacobowitz <drow@mvista.com>
7674 Don Howard <dhoward@redhat.com>
7675
7676 * mips-tdep.c (ST0_FR): Define.
7677 (mips2_fp_compat): New function, temporarily disabled.
7678 (mips_read_fp_register_single): New function.
7679 (mips_read_fp_register_double): New function.
7680 (mips_print_register): Use them.
7681 (do_fp_register_row): Likewise.
7682
6a41ff59
AC
76832002-03-09 Andrew Cagney <ac131313@redhat.com>
7684
7685 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7686 approval''.
7687
4ea09c10
PS
76882002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7689
7690 * stabsread.c (read_member_functions): Fix is_stub test for
7691 static member functions, improve comment.
7692
6ccc741d
RE
76932002-03-07 Richard Earnshaw <rearnsha@arm.com>
7694
7695 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7696 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7697 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7698 commands that set boolean values.
7699 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7700 (arm_rdi_resume): Always initialize PC.
7701 (arm_rdi_open): Don't use rslt as a boolean.
7702 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7703 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7704 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7705 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7706
438013df
AO
77072002-03-06 Alexandre Oliva <aoliva@redhat.com>
7708
7709 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7710 * configure: Rebuilt.
7711
70ed8774
SC
77122002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7713
7714 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7715 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7716
5ba2abeb
AC
77172002-03-06 Andrew Cagney <ac131313@redhat.com>
7718
7719 * cli/cli-decode.c (set_cmd_completer): New function.
7720 * command.h (set_cmd_completer): Declare.
7721 * cli/cli-decode.h (set_cmd_completer): Ditto.
7722
7723 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7724 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7725 * win32-nat.c (_initialize_inftarg): Ditto.
7726 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7727 * proc-api.c (_initialize_proc_api): Ditto.
7728 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7729 * source.c (_initialize_source): Ditto.
7730 * exec.c (_initialize_exec): Ditto.
7731 * solib.c (_initialize_solib): Ditto.
7732 * top.c (init_main): Ditto.
7733 * tracepoint.c (_initialize_tracepoint): Ditto.
7734 * symfile.c (_initialize_symfile): Ditto.
7735 * printcmd.c (_initialize_printcmd): Ditto.
7736 * infcmd.c (_initialize_infcmd): Ditto.
7737 * corefile.c (_initialize_core): Ditto.
7738
f779ca99
AC
77392002-03-05 Andrew Cagney <ac131313@redhat.com>
7740
7741 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7742
01a3934b
AC
77432002-03-05 Andrew Cagney <ac131313@redhat.com>
7744
7745 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7746
37057839
AC
77472002-03-05 Andrew Cagney <ac131313@redhat.com>
7748
7749 * NEWS: Update headings, 5.2 has branched.
7750
c6ecbae5
DJ
77512002-03-04 Daniel Jacobowitz <drow@mvista.com>
7752
7753 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7754 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7755 (register_addr, REGISTER_RAW_SIZE): Likewise.
7756 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7757 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7758
e9f30c21
ML
77592002-03-03 Michal Ludvig <mludvig@suse.cz>
7760
7761 * MAINTAINERS (x86-64): Add myself.
7762 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7763 changed value_ptr -> struct value *
7764
54394ac3
DB
77652002-03-01 David O'Brien <obrien@FreeBSD.org>
7766
7767 * configure.host (sparc64-*-freebsd): Add.
7768 * configure.tgt: Likewise.
7769 * config/sparc/fbsd.mh: New file.
7770 * config/sparc/fbsd.mt: Likewise.
7771 * config/sparc/nm-fbsd.h: Likewise.
7772 * config/sparc/tm-fbsd.h: Likewise.
7773
bfe95955
DJ
77742002-03-01 Daniel Jacobowitz <drow@mvista.com>
7775
7776 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7777 regformats/reg-s390x.dat.
7778
f33c6cbf
AC
77792002-03-01 Andrew Cagney <ac131313@redhat.com>
7780
7781 * utils.c: Add FIXME explaining true/false problem.
7782
5ecaa7dd
AC
77832002-02-28 Andrew Cagney <ac131313@redhat.com>
7784
7785 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7786
2a251cc2
MC
77872002-02-28 Michael Chastain <mec@shout.net>
7788
7789 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7790
6a8031a3 77912002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7792
7793 * gdbserver/linux-s390-low.c: New file.
7794 * regformats/reg-s390.dat: New file.
7795 * regformats/reg-s390x.dat: New file.
7796 * gdbserver/configure.srv: Add S/390.
7797 * gdbserver/Makefile.in: Add S/390.
7798 * configure.tgt: Enable gdbserver for S/390.
7799
ac469903
EZ
78002002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7801
7802 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7803 first line of the doc string for "info dos", except at the end of
7804 the sentence, since the short help stops at the first period.
7805
985cb1a3
JM
78062002-02-28 Jason Merrill <jason@redhat.com>
7807
7808 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7809
c570663e
FF
78102002-02-27 Fred Fish <fnf@redhat.com>
7811
7812 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7813 comment (dumy -> dummy).
7814
43630227
PS
78152002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7816
7817 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7818
b84911e8
RB
78192002-02-27 Rodney Brown <rbrown64@csc.com.au>
7820
7821 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7822
58caa3dc
DJ
78232002-02-27 Daniel Jacobowitz <drow@mvista.com>
7824
7825 * gdbserver/acconfig.h: New file.
7826 * gdbserver/i387-fp.c: New file.
7827 * gdbserver/i387-fp.h: New file.
7828 * gdbserver/linux-x86-64.c: New file.
7829 * regformats/reg-x86-64.dat: New file.
7830 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7831 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7832 * gdbserver/configure.in: Add support for regsets.
7833 * gdbserver/config.in: Regenerate.
7834 * gdbserver/configure: Regenerate.
7835 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7836 * gdbserver/linux-low.h: New file.
7837 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7838 for regsets.
7839 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7840 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7841 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7842 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7843 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7844 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7845 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7846 "i387-fp.h". Add PTRACE_GETREGS and friends.
7847 * gdbserver/regcache.c (supply_register): New function.
7848 (supply_register_by_name): New function.
7849 (collect_register): New function.
7850 (collect_register_by_name): New function.
7851
93652174
DJ
78522002-02-27 Daniel Jacobowitz <drow@mvista.com>
7853
7854 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7855 (config.status): Add configure.srv dependency.
7856 (server_h): Add config.h dependency.
7857
a02e4a61
DJ
78582002-02-27 Daniel Jacobowitz <drow@mvista.com>
7859
7860 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7861 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7862 * gdbserver/configure.srv: Change i386-*-linux* to use
7863 reg-i386-linux.o.
7864
ce0eebec
AC
78652002-02-26 Andrew Cagney <ac131313@redhat.com>
7866
7867 * x86-64-tdep.c: Re-indent. Update copyright date.
7868
82dbc5f7
AC
78692002-02-26 Andrew Cagney <ac131313@redhat.com>
7870
7871 From Michal Ludvig <mludvig@suse.cz>:
7872 * x86-64-tdep.c (value.h): Delete.
7873 (gdb_assert.h): Include.
7874 (x86_64_register_convert_to_virtual,
7875 x86_64_register_convert_to_raw ): Add check which lets only
7876 floating-point values to be converted.
7877 (value_push): Delete.
7878 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7879 (i386_gdbarch_init): Number of register_bytes fixed.
7880
e4621584
AC
78812002-02-26 Andrew Cagney <ac131313@redhat.com>
7882
7883 * MAINTAINERS: Add x86-64 target.
7884
81a9a963
AC
78852002-02-26 Andrew Cagney <ac131313@redhat.com>
7886
7887 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7888 * osfsolib.c (solib_map_sections): Ditto.
7889 * irix5-nat.c (solib_map_sections): Ditto.
7890 * corelow.c (gdb_check_format): Ditto.
7891 * symfile.c (symfile_bfd_open): Ditto.
7892 * solib.c (solib_map_sections): Ditto.
7893 Fix PR gdb/354.
7e336ba1 7894
0f017ab9
AC
78952002-02-26 Andrew Cagney <ac131313@redhat.com>
7896
7897 * remote.c (_initialize_remote): By default, disable ``e'' and
7898 ``E'' step out-of-range packets.
7899
75738c29
AS
79002002-02-26 Andreas Schwab <schwab@suse.de>
7901
7902 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7903 m68k_linux_frame_saved_pc.
7904 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7905 in_sigtramp.
7906 (SIGCONTEXT_PC_OFFSET): Remove.
7907 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7908 m68k_linux_sigtramp_saved_pc): New functions.
7909 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7910 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7911 (UCONTEXT_PC_OFFSET): Define.
7912 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7913 non-RT and RT signal trampolines.
7914
7e8ed687
RE
79152002-02-26 Richard Earnshaw <rearnsha@arm.com>
7916
7917 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7918 (TARGET_NBPG, STACK_END_ADDR): Delete
7919 (VARIABLES_INSIDE_BLOCK): Delete.
7920
6972bc8b
AC
79212002-02-25 Andrew Cagney <ac131313@redhat.com>
7922
7923 * utils.c (perror_with_name): Make string parameter constant.
7924 (print_sys_errmsg): Ditto.
7925 (query): Ditto.
7926 * defs.h (perror_with_name): Update.
7927 (print_sys_errmsg): Update.
7928 (query): Update.
7929
aa32f823
DJ
79302002-02-25 Daniel Jacobowitz <drow@mvista.com>
7931
7932 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7933 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7934
19caaa45
PS
79352002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7936
7937 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7938 if it already matches the current architecture from the exec file.
7939 Include arch-utils.h for gdbarch_info_init prototype.
7940 * Makefile.in (rs6000-nat.o): Update dependencies.
7941
d951901f
EZ
79422002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7943
7944 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7945 list of exported variables.
7946
7ea81414
DJ
79472002-02-24 Daniel Jacobowitz <drow@mvista.com>
7948
7949 * gdbserver/configure.srv: New file.
7950 * gdbserver/configure.in: Use configure.srv instead
7951 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7952 from it.
7953 * gdbserver/configure: Regenerated.
7954 * gdbserver/terminal.h: New file.
7955 * gdbserver/Makefile.in: Update for configure changes. Remove
7956 more unneeded include paths.
7957
080fe24b
AC
79582002-02-24 Andrew Cagney <ac131313@redhat.com>
7959
7960 From wiz at danbala:
7961 * config/sparc/tm-sp64.h: Fix grammar and typos.
7962 Fix PR gdb/287.
7963
8605d56e
AC
79642002-02-24 Andrew Cagney <ac131313@redhat.com>
7965
7966 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7967 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7968 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7969 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7970 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7971 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7972 * s390-tdep.c: Ditto.
92362027
AC
7973 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7974 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7975 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7976 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7977 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7978 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7979 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7980 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7981 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7982 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7983 Fix PR gdb/378.
7e336ba1 7984
8ed32cc0
AC
79852002-02-23 Andrew Cagney <ac131313@redhat.com>
7986
a3007b6f
AC
7987 * lin-thread.c: Delete file.
7988 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7989 to gdb_proc_service.h.
7990 * configure: Re-generate.
7991
50a9e2f1
AC
7992 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7993 * serial.c (serial_open): Delete check for "ocd".
7994 Fix PR gdb/349.
7995
8b6e7932
AC
7996 * Makefile.in (linux-thread.o): Delete target.
7997 * linux-thread.c: Delete file.
7998
d155c46b
AC
7999 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8000 renamed SH files to be consistent.
8001
8ed32cc0
AC
8002 * symtab.c (sort_search_symbols): Use xfree.
8003
0e18d038
RE
80042002-02-23 Richard Earnshaw <rearnsha@arm.com>
8005
8006 * arm-linux-tdep.c (arm_linux_init_abi): Register
8007 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8008 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8009 definition with undef, since we don't want the sysvr4 definition.
8010 (SKIP_TRAMPOLINE_CODE): Likewise.
8011
27aac7ff
AC
80122002-02-23 Andrew Cagney <ac131313@redhat.com>
8013
8014 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8015
8016 * configure.in: (AC_CHECK_FUNCS) Added test for
8017 canonicalize_file_name Regenerated.
8018 * config.in, configure: Regenerated.
8019 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8020 defined use canonicalize_file_name.
7e336ba1 8021
65a6e0ee
MC
80222002-02-23 Michael Chastain <mec@shout.net>
8023
8024 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8025
47b95330
AC
80262002-02-23 Andrew Cagney <ac131313@redhat.com>
8027
8028 * README: Remove references to cygnus.com.
8029 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8030 dot com'' form. Remove references to cygnus.com and sourceware.
8031
696f451b
AC
80322002-02-23 Andrew Cagney <ac131313@redhat.com>
8033
8034 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8035 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8036 1003.1-2001 no longer allows "head -1".
8037 * gdb/Makefile.in (version.c): Likewise.
8038 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8039 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8040 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8041
bbaca940
AC
80422002-02-23 Andrew Cagney <ac131313@redhat.com>
8043
8044 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8045 * command.h (cmd_cfunc_eq): Declare.
8046 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8047
8048 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8049 ``struct cmd_list_element *''.
8050 * cli/cli-cmds.c (is_complete_command): Update. Use
8051 cmd_cfunc_eq.
8052 * top.c (execute_command): Pass the command to
8053 is_complete_command.
8054 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8055
b8b8b047
AC
80562002-02-23 Andrew Cagney <ac131313@redhat.com>
8057
8058 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8059 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8060 architecture defines.
8061 * s390-tdep.c (s390_gdbarch_init): Likewise.
8062
19d3fc80
RE
80632002-02-23 Richard Earnshaw <rearnsha@arm.com>
8064
8065 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8066 (arm_linux_push_arguments): Likewise.
8067 (arm_linux_init_abi): Register them. Also register linux-specific
8068 call_dummy_words.
8069 (find_minsym_and_objfile): Use strcmp, not STREQ.
8070 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8071 (arm_linux_call_dummy_words): Delete declaration.
8072 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8073 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8074 declarations.
8075 (LOWEST_PC): Delete.
8076
3ab13650
PS
80772002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8078
8079 * maint.c (print_section_info): Do not prepend `0x' to filepos
8080 output, it will be handled by local_hex_string_custom.
8081
19d3fc80 80822002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8083
8084 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8085 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8086 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8087
d85a5daf
JB
80882002-02-22 Jim Blandy <jimb@redhat.com>
8089
8090 Indicate that the bcache functions don't change the strings
8091 they're passed.
8092 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8093 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8094
eeb25b8a
PM
80952002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8096
8097 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8098
6badb179
CF
80992002-02-21 Christopher Faylor <cgf@redhat.com>
8100
8101 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8102 find the complete path to a loaded DLL.
8103
e8717518
FF
81042002-02-21 Fred Fish <fnf@redhat.com>
8105
8106 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8107 that marks the end of the range of a function, enter a line number
8108 entry that has a line number of zero and a PC offset that matches
8109 the end of the function. This starts a range of PC's for which no
8110 line number information is known.
8111 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8112 PC's for which no line number info is found (line number is zero)
8113 then we didn't find any valid line information.
8114 * symtab.h: Document use of zero line number entry.
8115
9abe5450
EZ
81162002-02-21 Elena Zannoni <ezannoni@redhat.com>
8117
8118 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8119 (have_ptrace_getvrregs): Define for run time checks.
8120 (gdb_vrregset_t): New type for Altivec register handling.
8121 (fetch_register, store_register): Fetch/store altivec register
8122 when needed.
8123 (fetch_altivec_register, store_altivec_register): New functions.
8124 (supply_vrregset, fill_vrregset): New functions.
8125 (fetch_altivec_registers, store_altivec_registers): New functions.
8126 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8127 registers as well.
8128
aaa38bb5
AJ
81292002-02-21 Jiri Smid <smid@suse.cz>
8130
8131 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8132
b34db576
RE
81332002-02-21 Richard Earnshaw <rearnsha@arm.com>
8134
8135 * Makefile.in (armnbsd-nat.o): Update dependencies.
8136 * armnbsd-nat.c (supply_gregset): New function. Common code to
8137 supply the integer register set.
8138 (supply_fparegset): New function. Similar for FPA registers.
8139 (fetch_regs, fetch_fp_regs): Use them.
8140 (fetch_core_registers): Likewise.
8141 (fetch_elfcore_registers): New function.
8142 (arm_netbsd_elfcore_fns): New core-file type specification.
8143 (_initialize_arm_netbsd_nat): Register it.
8144
3e56fc4b
RE
81452002-02-21 Richard Earnshaw <rearnsha@arm.com>
8146
8147 * armnbsd-nat.c: Include gdbcore.h.
8148 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8149 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8150 'void' to declaration, to shut up ARI.
8151 (fetch_core_registers): Make static. Rewrite using supply_register.
8152 (arm_netbsd_core_fns): New core-file type specification.
8153 (_initialize_arm_netbsd_nat): New function.
8154
097f6b0b
CF
81552002-02-21 Christopher Faylor <cgf@redhat.com>
8156
8157 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8158 value.
8159
c914e0cc
CF
81602002-02-20 Christopher Faylor <cgf@redhat.com>
8161
8162 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8163 fails.
8164
385fa495
DJ
81652002-02-20 Daniel Jacobowitz <drow@mvista.com>
8166
8167 * jv-exp.y (parse_number): Change type of implicit longs
8168 to builtin_type_uint64.
8169
e5f1222d
DJ
81702002-02-20 Daniel Jacobowitz <drow@mvista.com>
8171
8172 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8173 to be an integer instead of a `union wait'.
8174
75c9abc6
DJ
81752002-02-20 Daniel Jacobowitz <drow@mvista.com>
8176
8177 * mips-linux-nat.c: Call the operating system GNU/Linux.
8178 * mips-linux-tdep.c: Likewise.
8179 * mips-tdep.c: Likewise.
8180
551792a5
DJ
81812002-02-20 Daniel Jacobowitz <drow@mvista.com>
8182
8183 Fix PR gdb/265.
8184 * jv-exp.y (parse_number): Handle 64-bit integers.
8185
ee6e2b82
DJ
81862002-02-20 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8189 AC_STDC_HEADERS to AC_HEADER_STDC.
8190 * gdbserver/configure: Regenerated.
8191
a48442a0
RE
81922002-02-20 Richard Earnshaw <rearnsha@arm.com>
8193
8194 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8195 is defined.
8196 * sparc-tdep.c (get_longjmp_target): Likewise.
8197
fe419ffc
RE
81982002-02-20 Richard Earnshaw <rearnsha@arm.com>
8199
8200 * News: Add news about ARM and Multi-arch. Mention the new target
8201 arm*-*-netbsd*.
8202
5832ed7e
JB
82032002-02-19 Jim Blandy <jimb@redhat.com>
8204
8205 * stabsread.c (error_type_complaint): Improve error message.
8206
84563040
DJ
82072002-02-19 Daniel Jacobowitz <drow@mvista.com>
8208
8209 * gdbserver/README: Update documentation.
8210 * gdbserver/configure.in: Update configury to match documentation.
8211 * gdbserver/Makefile.in: Likewise.
8212 * gdbserver/configure: Regenerated.
8213 * gdbserver/aclocal.m4: New file, generated by aclocal.
8214 * gdbserver/config.in: New file, generated by autoheader.
8215
375fd65b
RE
82162002-02-19 Richard Earnshaw <rearnsha@arm.com>
8217
8218 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8219 armnbsd-nat.c.
8220
08216dd7
RE
82212002-02-19 Richard Earnshaw <rearnsha@arm.com>
8222
8223 * arm-tdep.h (enum arm_float_model): New enum.
8224 (struct gdbarch_tdep): Add fp_model.
8225 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8226 up floating-point conversions until we know the floating-point model
8227 in use by the inferior. Don't complain about being unable to
8228 determine the ABI of the inferior when we don't have one.
8229 (arm_extract_return_value): Support different floating-point models.
8230 (arm_store_return_value): Likewise.
aaa38bb5 8231 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8232 ARM_FLOAT_SOFT.
8233 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8234
65d6d66a
PS
82352002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8236
8237 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8238 of ``current_gdbarch''.
8239
47221191
RE
82402002-02-19 Richard Earnshaw <rearnsha@arm.com>
8241
8242 * armnbsd-nat.c : ANSIfy all function declarations.
8243 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8244 (fetch_inferior_registers): Re-implement in terms of above.
8245 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8246 (store_inferior_registers): Re-implement in terms of above.
8247
fdf39c9a
RE
82482002-02-19 Richard Earnshaw <rearnsha@arm.com>
8249
aaa38bb5 8250 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8251 kernel.
8252 * arm-linux-tdep.c: Likewise.
8253 * config/arm/tm-linux.h: Likewise.
8254
93247f88
RE
82552002-02-19 Richard Earnshaw <rearnsha@arm.com>
8256
8257 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8258 * config/arm/nbsd.mt (TM_FILE): Delete.
8259 * config/arm/tm-nbsd.h: Delete.
8260
d7b486e7
RE
82612002-02-19 Richard Earnshaw <rearnsha@arm.com>
8262
8263 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8264 Initialize CALL_DUMMY_LENGTH.
8265
41d39a95
RE
82662002-02-19 Richard Earnshaw <rearnsha@arm.com>
8267
8268 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8269 function.
8270 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8271 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8272 defines one thing and that is incorrect for this port.
8273 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8274
e1195560
PM
82752002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8276
8277 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8278
c1748f97
PM
82792002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8280
8281 * win32-nat.c (display_selector): New function. Displays information
8282 about the information returned by GetThreadSelectorEntry API function.
8283 (display_selectors): New function. Displays the infomation of
8284 the selector given as argument, or of CS, DS ans FS selectors
8285 if no argument is given.
8286 ( _initialize_inftarg): Add "w32" as info prefix command.
8287 Add "info w32 selector" as command calling display_selectors.
8288
e41e6bbf
PM
82892002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8290
8291 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8292 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8293 if not defined.
8294
0d3a9f48
RE
82952002-02-18 Richard Earnshaw <rearnsha@arm.com>
8296
8297 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8298
3fb4b924
RE
82992002-02-18 Richard Earnshaw <rearnsha@arm.com>
8300
8301 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8302 (arm_fix_call_dummy): Call it.
8303 (arm_call_dummy_breakpoint_offset): Delete.
8304 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8305 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8306
7f55af32
AC
83072002-02-18 Andrew Cagney <ac131313@redhat.com>
8308
8309 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8310 Default to func_frame_chain_valid.
8311 * gdbarch.h, gdbarch.c: Re-generate.
8312 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8313
05f13b9c
EZ
83142002-02-18 Elena Zannoni <ezannoni@redhat.com>
8315
8316 * ppc-linux-nat.c: Update copyright.
8317 (fetch_register, store_register): Add tid parameter, don't compute
8318 tid here.
8319 (fetch_ppc_registers, store_ppc_registers): Add tid
8320 parameter. Pass it along to callees.
8321 (fetch_inferior_registers, store_inferior_registers): Compute tid
8322 here, and pass it to calleed functions.
8323 (fill_gregset, supply_fpregset): Clean up formatting.
8324
d7afb4c9
RE
83252002-02-18 Richard Earnshaw <rearnsha@arm.com>
8326
8327 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8328 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8329
9df628e0
RE
83302002-02-18 Richard Earnshaw <rearnsha@arm.com>
8331
8332 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8333 * gdbarch.c gdbarch.h: Regenerate.
8334 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8335 function.
8336 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8337 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8338 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8339
8340 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8341 * arm-tdep.c (arm_get_longjmp_target): New function.
8342 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8343 this to a positive value register arm_get_longjmp_target as the
8344 longjmp handler.
8345 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8346 (arm_linux_init_abi): Set up longjmp description in tdep.
8347 * armnbsd-nat.c (get_longjmp_target): Delete.
8348 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8349 description in tdep.
8350 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8351 (get_longjmp_target): Delete declaration.
8352 (GET_LONGJMP_TARGET): Delete.
8353 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8354 (GET_LONGJMP_TARGET): Delete.
8355
57bc8964
KB
83562002-02-17 Kevin Buettner <kevinb@redhat.com>
8357
8358 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8359 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8360 of ``current_gdbarch''.
8361
83d31a92
TT
83622002-02-17 Tom Tromey <tromey@redhat.com>
8363
8364 * cli/cli-cmds.c (compare_strings): New function.
8365 (complete_command): Only print each unique item once.
8366 * completer.h (complete_line): Declare.
8367 * completer.c (complete_line): New function.
8368 (line_completion_function): Use it.
8369
17ef5d92
AC
83702002-02-16 Andrew Cagney <ac131313@redhat.com>
8371
8372 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8373 * gdbarch.h, gdbarch.c: Re-generate.
8374
491b8946
DJ
83752002-02-16 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8378
83792002-02-16 Daniel Jacobowitz <drow@mvista.com>
8380
8381 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8382 * valops.c (value_arg_coerce): Don't take the address of a reference
8383 to convert an argument to a reference.
8384
dfe7f3ac
CF
83852002-02-15 Christopher Faylor <cgf@redhat.com>
8386
8387 * win32-nat.c (get_image_name): New function.
8388 (handle_load_dll): Use get_image_name function.
8389 (get_child_debug_event): Avoid registering debug events until possibly
8390 execed process is started.
8391 (child_create_inferior): Allow invocation via shell so that command
8392 line redirection, etc. works ok.
8393 (_initialize_inftarg): Add new command: "set shell" to control whether
8394 a shell is used to start a process.
8395
1d33e73a
DJ
83962002-02-15 Daniel Jacobowitz <drow@mvista.com>
8397
8398 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8399 instead of find_register_by_number.
8400 (cannot_store_register): Likewise.
8401
48cd0caa
PM
84022002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8403
aaa38bb5 8404 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8405 fprintf_unfiltered (gdb_stderr, ...).
8406
8656e7d8
DJ
84072002-02-15 Daniel Jacobowitz <drow@mvista.com>
8408
8409 * gdbserver/gdbserver.1: Document --attach.
8410
66e810cd
RE
84112002-02-15 Richard Earnshaw <rearnsha@arm.com>
8412
8413 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8414 descriptions.
8415 * arm-tdep.c (arm_default_arm_le_breakpoint)
8416 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8417 (arm_default_thumb_be_breakpoint): New. Initialize them from
8418 traditional breakpoint defines.
8419 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8420 (arm_gdbarch_init): Initialize new breakpoint variables.
8421 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8422 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8423 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8424 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8425 code out to ...
8426 (arm_netbsd_init_abi_common): ... here; new function.
8427 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8428 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8429 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8430 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8431
97e03143
RE
84322002-02-15 Richard Earnshaw <rearnsha@arm.com>
8433
8434 * arm-tdep.h (enum arm_abi): New enum.
8435 (struct gdbarch_tdep): New structure.
8436 (LOWEST_PC): Provide a default.
8437 (arm_gdbarch_register_os_abi): Declare new function.
8438 * arm-tdep.c (arm_abi_names): New array.
8439 (process_note_abi_tag_sections): New function.
8440 (get_elfosabi): New function.
8441 (arm_gdbarch_register_os_abi): New function.
8442 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8443 support for that ABI has been built in, then call the appropriate
8444 configuration routine. Use gdbarch_num_regs() to get the number
8445 of registers.
8446 (arm_dump_tdep): New function.
8447 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8448 place-holder functions.
8449 (_initialize_arm_tdep): Register them.
8450 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8451
8452 * armnbsd-tdep.c: New file.
8453 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8454 * config/arm/nbsd.mt (TDEPFILES): Add it.
8455 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8456
8457 * armnbsd-nat.c: Include regcache.h.
8458 * Makefile.in (armnbsd-nat.o): Update dependency list.
8459
8460 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8461
ad68be46
DJ
84622002-02-14 Daniel Jacobowitz <drow@mvista.com>
8463
8464 * gdbserver/Makefile.in: Fix typos in target rules.
8465
003d6d1d
DJ
84662002-02-14 Daniel Jacobowitz <drow@mvista.com>
8467
aaa38bb5 8468 Fix part of PR gdb/267.
003d6d1d
DJ
8469 * linespec.c (find_methods): Handle constructors specially for now.
8470
6b230f1b
CV
84712002-02-14 Corinna Vinschen <vinschen@redhat.com>
8472
8473 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8474 handling.
8475 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8476 standard_coerce_float_to_double().
8477
1ea98d12
CF
84782002-02-14 Christopher Faylor <cgf@redhat.com>
8479
8480 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8481 GDBINIT_FILENAME.
8482
dd47e6fd
EZ
84832002-02-14 Elena Zannoni <ezannoni@redhat.com>
8484
8485 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8486 find_variant_by_name, because it confuses the multiarch
8487 framework. Return NULL if there isn't an architecture with the
8488 user supplied name, instead of forcing a different one without
8489 recording the change with the multiarch machinery.
8490 (find_variant_by_name): Delete.
8491
d7e39b9e
PS
84922002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8493
8494 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8495 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8496
76e42a4f
MH
84972002-02-13 Martin M. Hunt <hunt@redhat.com>
8498
aaa38bb5 8499 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8500 print_frame_info_listing_hook, set current_source_symtab.
8501
0a30fbc4
DJ
85022002-02-14 Daniel Jacobowitz <drow@mvista.com>
8503
8504 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8505 and remove unused $(INCLUDE_DIR).
8506 Add regcache.c to OBS.
8507 Add generated register protocol files to clean target.
8508 Update dependencies for new objects, obsolete old target code.
8509
8510 * gdbserver/linux-low.c: Remove all platform-specific code to
8511 new files. Remove various dead code. Update to use regcache
8512 functionality.
8513 * gdbserver/remote-utils.c (fromhex): Add return statement
8514 to quiet warning.
8515 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8516 constant.
8517 (input_interrupt): Add integer parameter to match prototype
8518 of a signal handler.
8519 (outreg): Use register_data ().
8520 (prepare_resume_reply): Use gdbserver_expedite_regs.
8521 * gdbserver/server.c (main): Dynamically allocate own_buf because
8522 PBUFSIZ is no longer constant. Use registers_to_string () and
8523 registers_from_string ().
8524 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8525 for error (), fatal (), and warning (). Update definition of
8526 PBUFSIZ to use regcache functionality. Add include guard.
8527 * gdbserver/utils.c (fatal): Add missing ``const''.
8528 (warning): New function.
8529
8530 * regformats/regdat.sh: Include "regcache.h" in generated files.
8531 Provide init_registers () function.
8532 * regformats/regdef.h: Add prototype for set_register_cache ().
8533 Add include guard.
8534
8535 * gdbserver/linux-arm-low.c: New file.
8536 * gdbserver/linux-i386-low.c: New file.
8537 * gdbserver/linux-ia64-low.c: New file.
8538 * gdbserver/linux-m68k-low.c: New file.
8539 * gdbserver/linux-mips-low.c: New file.
8540 * gdbserver/linux-ppc-low.c: New file.
8541 * gdbserver/linux-sh-low.c: New file.
8542
8543 * gdbserver/regcache.c: New file.
8544 * gdbserver/regcache.h: New file.
8545
8546 * gdbserver/low-linux.c: Removed obsolete file.
8547
4cc841d0
DJ
85482002-02-14 Daniel Jacobowitz <drow@mvista.com>
8549
8550 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8551 * config/i386/linux.mt: Likewise.
8552 * config/ia64/linux.mt: Likewise.
8553 * config/m68k/linux.mh: Likewise.
8554 * config/powerpc/linux.mh: Likewise.
8555 * config/mips/linux.mt: Likewise.
8556
8557 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8558
8559 * config/i386/i386lynx.mh: Mark gdbserver variables
8560 as (currently) obsolete for this target.
8561 * config/i386/nbsd.mt: Likewise.
8562 * config/i386/nbsdelf.mt: Likewise.
8563 * config/m32r/m32r.mt: Likewise.
8564 * config/m68k/m68klynx.mh: Likewise.
8565 * config/m68k/nbsd.mt: Likewise.
8566 * config/m68k/sun3os4.mh: Likewise.
8567 * config/mips/vr5000.mt: Likewise.
8568 * config/ns32k/nbsd.mt: Likewise.
8569 * config/pa/hppabsd.mh: Likewise.
8570 * config/pa/hppaosf.mh: Likewise.
8571 * config/powerpc/nbsd.mt: Likewise.
8572 * config/rs6000/rs6000lynx.mh: Likewise.
8573 * config/s390/s390.mt: Likewise.
8574 * config/s390/s390x.mt: Likewise.
8575 * config/sparc/sparclynx.mh: Likewise.
8576 * config/sparc/sun4os4.mh: Likewise.
8577 * config/i386/x86-64linux.mt: Likewise.
8578 * config/sparc/linux.mh: Likewise.
8579
a85f51e7
DJ
85802002-02-14 Daniel Jacobowitz <drow@mvista.com>
8581
8582 * configure.tgt: Configure gdbserver only for known working
8583 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8584 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8585 SUBDIRS if it is configured. Update comment for ${nativefile}.
8586 * configure: Regenerated.
8587
65554fef
MS
85882002-02-13 Michael Snyder <msnyder@redhat.com>
8589
670a52db
MS
8590 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8591
6dbdc4a3
MS
8592 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8593 (default_gcore_mach): Just return 0, work around a problem in bfd.
8594 (default_gcore_target): OK to return NULL if exec_bfd is null.
8595 (make_mem_sec): Use a cast, avoid a warning.
8596
8597 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8598 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8599 sizeof (host pointer) != sizeof (target pointer)).
8600 (procfs_make_note_section): Avoid overflow in psargs string.
8601
aaa38bb5 8602 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8603 implementation return an error.
8604
86052002-02-13 Rodney Brown <rbrown64@csc.com.au>
8606
8607 * procfs.c (procfs_make_note_section): Provide a default definition
8608 (for alpha-dec-osf4.0f). Fix typos.
8609
1e4d76e7
EZ
86102002-02-13 Elena Zannoni <ezannoni@redhat.com>
8611
8612 * linux-proc.c: Add include of regcache.h.
8613 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8614
b6d1a1d5
AC
86152002-02-13 Andrew Cagney <ac131313@redhat.com>
8616
8617 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8618 * memattr.c (create_mem_region): Disallow useless empty region.
8619 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8620 non-overlapping.
b6d1a1d5 8621
6c6ea35e
MC
86222002-02-13 Michael Chastain <mec@shout.net>
8623
8624 * defs.h: Kill CONST_PTR.
8625 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8626 * c-lang.c (c_builtin_types): Likewise.
8627 * ch-lang.c (ch_builtin_types): Likewise.
8628 * f-lang.c (f_builtin_types): Likewise.
8629 * language.c (unknown_builtin_types): Likewise.
8630 * m2-lang.c (m2_builtin_types): Likewise.
8631 * p-lang.c (pascal_builtin_types): Likewise.
8632 * scm-lang.c (c_builtin_types): Likewise.
8633
3e0b0f48
KS
86342002-02-13 Keith Seitz <keiths@redhat.com>
8635
8636 * arm-tdep.h (arm_get_next_pc): Add declaration.
8637
67255d04
RE
86382002-02-13 Richard Earnshaw <rearnsha@arm.com>
8639
8640 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8641 with other related struct-returning functions.
8642 (arm_extract_struct_value_address): New function.
8643 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8644 initialize float_format, double_format and long_double_format as
8645 appropriate to the endianness of the target.
8646 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8647 (arm_use_struct_convention): Delete declaration.
8648 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8649
079777f6
KS
86502002-02-13 Keith Seitz <keiths@redhat.com>
8651
8652 * defs.h (core_addr_to_string_nz): New function.
8653
34588f23
MK
86542002-02-13 Mark Kettenis <kettenis@gnu.org>
8655
8656 Apply missing bits of 2002-01-15 patch.
8657 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8658 (fill_fpregset): Use i387_fill_fsave.
8659
49b563f9
KS
86602002-02-12 Keith Seitz <keiths@redhat.com>
8661
49b563f9
KS
8662 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8663 (core_addr_to_string_nz): New function.
8664
aeb98c60
RE
86652002-02-11 Richard Earnshaw <rearnsha@arm.com>
8666
8667 * arm-linux-nat.c: Really include arm-tdep.h.
8668 * config/arm/tm-linux.h (struct type, struct value): Declare.
8669
65554fef
MS
86702002-02-11 Michael Snyder <msnyder@redhat.com>
8671
8672 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8673 (gcore section): Ifdef for Solaris and Unixware only.
8674 (procfs_do_thread_registers): Unixware needs one lwpstatus
8675 per thread (not one prstatus or pstatus).
8676 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8677 not over all gdb threads. For unixware, call elfcore_write_pstatus
8678 once before iterating over threads.
8679
34e8f22d
RE
86802002-02-11 Richard Earnshaw <rearnsha@arm.com>
8681
8682 * arm-tdep.h: New file.
8683 * arm-tdep.c: Include arm-tdep.h.
8684 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8685 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8686 (arm_print_float_info, arm_register_type, convert_to_extended)
8687 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8688 (arm_extract_return_value, arm_register_name): Make static.
8689 (arm_software_single_step): Similarly. Fix types in declaration.
8690 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8691 (arm_store_return_value, arm_store_struct_return): New functions.
8692 (arm_gdbarch_init): Register the above functions. Also register
8693 call_dummy_start_offset, sizeof_call_dummy_words,
8694 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8695 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8696 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8697 prologue_cache.saved_regs here, rather than ...
8698 (_initialize_arm_tdep): ... here.
8699 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8700 declarations.
8701 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8702 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8703 (arm_print_float_info, arm_register_type, convert_to_extended)
8704 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8705 (arm_extract_return_value, arm_register_name): Delete declarations.
8706 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8707 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8708 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8709 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8710 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8711 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8712 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8713 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8714 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8715 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8716 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8717 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8718 interface.
8719 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8720 * remote-rdi.c remote-rdp.c: Likewise.
8721 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8722 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8723 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8724 definition.
8725
8726 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8727 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8728 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8729 from non-ARM_ prefixed definitions.
8730 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8731 all uses of above.
8732 * remote-rdi.c remote-rdp.c: Likewise.
8733 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8734
148754e5
RE
87352002-02-11 Richard Earnshaw <rearnsha@arm.com>
8736
8737 * arm-tdep.c (arm_frameless_function_invocation)
8738 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8739 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8740 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8741 (arm_pop_frame, arm_get_next_pc): Make static.
8742 (arm_gdbarch_init): Register above in gdbarch structure.
8743 (arm_read_fp): Renamed from arm_target_read_fp.
8744 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8745 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8746 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8747 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8748 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8749 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8750 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8751 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8752 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8753 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8754 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8755
434d2d4f
DJ
87562002-02-10 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * symtab.c (compare_search_syms): New function.
8759 (sort_search_symbols): New function.
8760 (search_symbols): Sort symbols after searching rather than
8761 before.
8762
55241689
AC
87632002-02-10 Andrew Cagney <ac131313@redhat.com>
8764
8765 * NEWS: Linux -> GNU/Linux.
8766
028c194b
AC
87672002-02-10 Andrew Cagney <ac131313@redhat.com>
8768
8769 * gdbarch.sh: For for level one methods, disallow a definition
8770 when partially multi-arched. Add comments explaining rationale.
8771 * gdbarch.h: Re-generate.
8772
6acf50cd
AC
87732002-02-10 Andrew Cagney <ac131313@redhat.com>
8774
8775 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8776 multi-arch partial.
aaa38bb5 8777
50248794
AC
87782002-02-10 Andrew Cagney <ac131313@redhat.com>
8779
8780 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8781 field. Use diff -u.
8782 * gdbarch.c: Re-generate.
8783
c30e0066
AC
87842002-02-10 Andrew Cagney <ac131313@redhat.com>
8785
9b56c5f3 8786 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8787 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8788 partial.
8789
6e6d6484
AC
87902002-02-10 Andrew Cagney <ac131313@redhat.com>
8791
8792 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8793 multi-arch partial.
8794 (PUSH_ARGUMENTS): Switch to using predefault.
8795 * gdbarch.c: Regenerate.
8796
c203844d
AC
87972002-02-10 Andrew Cagney <ac131313@redhat.com>
8798
8799 * valops.c (PUSH_ARGUMENTS): Delete definition.
8800 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8801 partial. Default to default_push_arguments.
8802 * gdbarch.h, gdbarch.c: Regenerate.
8803
b5a2688f
AC
88042002-02-09 Andrew Cagney <ac131313@redhat.com>
8805
8806 * defs.h (throw_exception): Rename return_to_top_level. Update
8807 comments.
8808 * utils.c (error_stream, internal_verror, quit): Ditto.
8809 * top.c (throw_exception, catcher): Ditto.
8810 * sparclet-rom.c (sparclet_load): Ditto.
8811 * remote.c (interrupt_query, minitelnet): Ditto.
8812 * remote-sds.c (interrupt_query): Ditto.
8813 * remote-mips.c (mips_error, mips_kill): Ditto.
8814 * ocd.c (interrupt_query): Ditto.
8815 * monitor.c (monitor_interrupt_query): Ditto.
8816 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8817 * target.h: Update comment.
aaa38bb5 8818
b5a2688f 8819 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8820
2fa5c1e0
AC
88212002-02-09 Andrew Cagney <ac131313@redhat.com>
8822
8823 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8824 default_double_format.
8825 * gdbarch.h, gdbarch.c: Re-generate.
8826 * findvar.c (floatformat_unknown): Delete variable definition.
8827 * doublest.h (floatformat_unknown): Delete variable declaration.
8828
da966255
JB
88292002-02-09 Jim Blandy <jimb@redhat.com>
8830
8831 * stabsread.c (read_type): Add code to parse Sun's syntax for
8832 prototyped function types.
8833
123a4891
AC
88342002-02-09 Andrew Cagney <ac131313@redhat.com>
8835
8836 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8837 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8838
fb39c8f3
PS
88392002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8840
8841 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8842 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8843 now _initialize_xcoffsolib gets called again and overrides the
8844 commands from solib.c in a native configuration.
8845
0b87a11d
MK
88462002-02-09 Mark Kettenis <kettenis@gnu.org>
8847
8848 * doublest.c (store_typed_floating): Don't try to return a value.
8849 Fixes PR gdb/290.
8850
bdc2fc72
JB
88512002-02-08 Jim Blandy <jimb@redhat.com>
8852
8853 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8854 is prototyped and has no arguments, print its argument list as
8855 `(void)'.
8856
da69bbcf
CD
88572002-02-08 Chris Demetriou <cgd@broadcom.com>
8858
8859 * MAINTAINERS (write-after-approval): Add myself.
8860 (paper-trail): I've escaped!
aaa38bb5 8861
b69571f5
CF
88622002-02-08 Christopher Faylor <cgf@redhat.com>
8863
8864 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8865 changes.
8866 (_initialize_check_for_gdb_ini): Ditto.
8867
f6871398
MH
88682002-02-08 Martin M. Hunt <hunt@redhat.com>
8869
8870 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8871 xaprintf -> xasprintf.
8872
4e52d31c
PM
88732002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8874
8875 * win32-nat.c: Remove use of printf and sprintf functions.
8876
39bbf761
RE
88772002-02-08 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * arm-tdep.c (arm_frame_chain_valid): Make static.
8880 (arm_push_arguments): Likewise.
8881 (arm_gdbarch_init): New function.
8882 (_initialize_arm_tdep): Call it.
8883 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8884 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8885 (FRAME_CHAIN_VALID): Delete.
8886 (arm_frame_chain_valid): Delete declaration.
8887 (PUSH_ARGUMENTS): Delete.
8888 (arm_push_arguments): Delete declaration.
8889 (CALL_DUMMY_P): Delete.
8890
9c9532c9
CV
88912002-02-08 Andrew Cagney <ac131313@redhat.com>
8892 Corinna Vinschen <vinschen@redhat.com>
8893
8894 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8895 on builtin float types.
8896
4e8f7a8b
DJ
88972002-02-08 Daniel Jacobowitz <drow@mvista.com>
8898
8899 * utils.c: Include <curses.h> before "bfd.h".
8900 * tui/tui-hooks.c: Likewise.
8901 * tui/tui.c: Likewise.
8902 * tui/tuiCommand.c: Likewise.
8903 * tui/tuiData.c: Likewise.
8904 * tui/tuiDataWin.c: Likewise.
8905 * tui/tuiDisassem.c: Likewise.
8906 * tui/tuiGeneralWin.c: Likewise.
8907 * tui/tuiIO.c: Likewise.
8908 * tui/tuiLayout.c: Likewise.
8909 * tui/tuiRegs.c: Likewise.
8910 * tui/tuiSource.c: Likewise.
8911 * tui/tuiSourceWin.c: Likewise.
8912 * tui/tuiStack.c: Likewise.
8913 * tui/tuiWin.c: Likewise.
8914
cd4bffcf
EZ
89152002-02-07 Elena Zannoni <ezannoni@redhat.com>
8916
8917 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8918 to include space for pseudoregs as well. Update loops accordingly.
8919 (sh_fp_frame_init_saved_regs): Ditto.
8920 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8921
26806ce2
AC
89222002-02-07 Andrew Cagney <ac131313@redhat.com>
8923
8924 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8925 Add Richard Earnshaw to Arm maintainers.
8926
97fdab62
AC
89272002-02-07 Andrew Cagney <ac131313@redhat.com>
8928
a6b98203
AC
8929 * defs.h (warning_begin): Delete declaration.
8930
97fdab62
AC
8931 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8932 Delete macro.
8933
78b29b40
MS
89342002-02-07 Michael Snyder <msnyder@redhat.com>
8935
aaa38bb5 8936 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8937 Logic bug, remove misplaced else.
8938
d8849953
KD
89392002-02-07 Klee Dienes <klee@apple.com>
8940
8941 * fork-inferior.c (fork_inferior): Add '!' to the list of
8942 characters that need to be quoted when building a string for the
8943 shell. Quote '!' specifically with a backslash, since CSH chokes
8944 when trying to evaluate "str!str".
aaa38bb5 8945
095778a0
NC
89462002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8947
8948 * rdi-share/host.h: Only provide a typedef for bool if it is not
8949 defined.
8950
1900040c
MS
89512002-02-04 Michael Snyder <msnyder@redhat.com>
8952
8953 * breakpoint.h (enum bptype): Add new overlay event bp type.
8954 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8955
1900040c
MS
8956 * breakpoint.c (create_internal_breakpoint): New function.
8957 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8958 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8959 (create_thread_event_breakpoint): Ditto.
8960 (create_solib_event_breakpoint): Ditto.
8961 (create_overlay_event_breakpoint): New function.
8962 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8963 (update_breakpoints_after_exec): Delete and re-initialize
8964 overlay event breakpoints after an exec. Add FIXME comment
8965 about longjmp breakpoint.
8966 (print_it_typical): Ignore overlay event breakpoints.
8967 (print_one_breakpoint): Ditto.
8968 (mention): Ditto.
8969 (bpstat_what): Do not stop for overlay event breakpoints.
8970 (delete_breakpoint): Don't delete overlay event breakpoints.
8971 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8972 (breakpoint_re_set): Re-create overlay event breakpoint.
8973
8974 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8975 (overlay_manual_command): Disable overlay breakpoints.
8976 (overlay_off_command): Disable overlay breakpoints.
8977
082fc60d
RE
89782002-02-06 Richard Earnshaw <rearnsha@arm.com>
8979
8980 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8981 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8982 to here from config/tm-arm.h.
8983 (coff_sym_is_thumb): Make static.
8984 (arm_elf_make_msymbol_special): New function.
8985 (arm_coff_make_msymbol_special): New function.
8986 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8987 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8988 (coff_sym_is_thumb): Delete declaration.
8989 (arm_elf_make_msymbol_special): Declare.
8990 (arm_coff_make_msymbol_special): Declare.
8991 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8992 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8993
039c5766
RE
89942002-02-06 Richard Earnshaw <rearnsha@arm.com>
8995
8996 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8997
89982002-02-06 Richard Earnshaw <rearnsha@arm.com>
8999
9000 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9001 * gdbarch.c gdbarch.h: Regenerate.
9002 * arch-utils.c (default_print_float_info): New function.
9003 * arch-utils.h (default_print_float_info): Prototype it.
9004 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9005 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9006 (PRINT_FLOAT_INFO): Document it.
9007
9008 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9009 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9010 (PRINT_FLOAT_INFO): Define.
9011
58fa08f0
PM
90122002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9013
aaa38bb5 9014 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9015 Add typecast to sprintf argument to suppress a warning.
9016
7393af7c
PM
90172002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9018
58fa08f0 9019 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9020 to allow easier handling of pass state.
9021 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9022 that gives exception name and address.
9023 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9024 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9025 exceptions added.
aaa38bb5
AJ
9026 (child_continue): Correctly report continue_status.
9027 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9028 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9029 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9030 the exception should be passed to debuggee or not.
9031
6af4589c
MS
90322002-02-05 Michael Snyder <msnyder@redhat.com>
9033
9034 * regcache.c (fetch_register): Call target_fetch_register
9035 only if we don't call FETCH_PSEUDO_REGISTER.
9036 (store_register): Call target_store_register only if we
9037 don't call STORE_PSEUDO_REGISTER.
9038
a2cf933a
EZ
90392002-02-05 Elena Zannoni <ezannoni@redhat.com>
9040
9041 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9042 ELF_MAKE_MSYMBOL_SPECIAL.
9043 * gdbarch.c, gdbarch.h: Regenerate.
9044 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9045 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9046 * elfread.c (elf_symtab_read): Compile use of
9047 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9048 multiarched.
9049 * coffread.c (coff_symtab_read): Ditto, for
9050 COFF_MAKE_MSYMBOL_SPECIAL.
9051
6bb7be43
JB
90522002-02-05 Jim Blandy <jimb@redhat.com>
9053
9054 * solib-svr4.c (svr4_truncate_ptr): New function.
9055 (svr4_relocate_section_addresses): Do the address arithmetic with
9056 the appropriate truncation for target addresses, even when
9057 CORE_ADDR is larger than a target address.
9058
e18651ec
DJ
90592002-02-05 Daniel Jacobowitz <drow@mvista.com>
9060
9061 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9062 to (int *).
9063
6b2725be
DJ
90642002-02-05 Daniel Jacobowitz <drow@mvista.com>
9065
9066 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9067 code.
9068
fca9e603
DJ
90692002-02-05 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9072
6c537a52
DJ
90732002-02-05 Daniel Jacobowitz <drow@mvista.com>
9074
9075 * gdbserver/linux-low.c: Remove unused include files.
9076
d844cde6
DJ
90772002-02-05 Daniel Jacobowitz <drow@mvista.com>
9078
9079 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9080 (read_inferior_memory): Use it.
9081 (write_inferior_memory): Likewise.
9082
d07c63e7
DJ
90832002-02-05 Daniel Jacobowitz <drow@mvista.com>
9084
9085 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9086 grubbing through sys_errlist.
9087
da6d8c04
DJ
90882002-02-05 Daniel Jacobowitz <drow@mvista.com>
9089
9090 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9091
5b421780
PM
90922002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9093 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9094
9f60d481
AC
90952002-02-04 Andrew Cagney <ac131313@redhat.com>
9096
9097 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9098 (do_sfunc, set_cmd_sfunc): New functions.
9099
9100 * command.h (struct cmd_list_element): Add field func.
9101 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9102 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9103 * cli/cli-decode.h: Ditto.
9104
9105 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9106 (help_all, help_cmd_list): Ditto.
9107 (find_cmd, complete_on_cmdlist): Ditto.
9108 * top.c (execute_command): Ditto.
9109
9110 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9111 function.sfunc.
9112
9113 * infcmd.c (notice_args_read): Fix function signature.
9114
9115 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9116 * cli/cli-decode.c (add_set_cmd): Ditto.
9117 * utils.c (initialize_utils): Ditto.
9118 * maint.c (_initialize_maint_cmds): Ditto.
9119 * infrun.c (_initialize_infrun): Ditto.
9120 * demangle.c (_initialize_demangler): Ditto.
9121 * remote.c (add_packet_config_cmd): Ditto.
9122 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9123 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9124 * proc-api.c (_initialize_proc_api): Ditto.
9125 * kod.c (_initialize_kod): Ditto.
9126 * valprint.c (_initialize_valprint): Ditto.
9127 * top.c (init_main): Ditto.
9128 * infcmd.c (_initialize_infcmd): Ditto.
9129 * corefile.c (_initialize_core): Ditto.
9130 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9131 * arch-utils.c (initialize_current_architecture): Ditto.
9132 (_initialize_gdbarch_utils): Ditto.
9133 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9134
9135 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9136 * wince.c (_initialize_inftarg): Ditto.
9137 * symfile.c (_initialize_symfile): Ditto.
9138 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9139 * language.c (_initialize_language): Ditto.
9140 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9141
f9ba0717
MS
91422002-02-04 Michael Snyder <msnyder@redhat.com>
9143
9144 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9145
0c74b2a7
DJ
91462002-02-04 Daniel Jacobowitz <drow@mvista.com>
9147
9148 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9149 Add rules for building the register data files.
9150
c638789f
DJ
91512002-02-04 Daniel Jacobowitz <drow@mvista.com>
9152
9153 * regformats/regdat.sh: Add braces to the definition of
9154 expedite_regs_${arch}.
9155
db253027
DJ
91562002-02-04 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * regformats/regdef.h (struct reg): Add comment describing the
9159 requirements for offset and size fields.
9160
206be19c
AS
91612002-02-04 Andreas Schwab <schwab@suse.de>
9162
9163 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9164 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9165
181c1381
RE
91662002-02-04 Richard Earnshaw <rearnsha@arm.com>
9167
9168 * gdbarch.sh (copyright): Update years in generated header.
9169 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9170 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9171 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9172 * dbxread.c: Likewise.
9173 * dwarfread.c: Likewise.
9174 * elfread.c: Likewise.
9175 * somread.c: Likewise.
9176
9177 * arm-tdep.c (arm_smash_text_address): New function.
9178 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9179
fa4ba8da
PM
91802002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9181
9182 Add support for hardware watchpoints on win32 native.
aaa38bb5 9183 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9184 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9185 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9186 of debug registers.
9187 (debug_registers_changed): New variable. Reflects when debug registers
9188 are changed and need to be written to inferior.
aaa38bb5 9189 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9190 was set, used when new threads are created.
9191 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9192 i386-nat code.
9193 (thread_rec): Set dr array if id is the thread of current_event .
9194 (child_continue, child_resume): Change the debug registers for all
9195 threads if debug_registers_changed.
9196 (child_add_thread): Change the debug registers if debug_registers_used.
9197 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9198 Link nm.h to new nm-cygwin.h file.
9199 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9200 of hardware registers.
9201
a73c86fb
AC
92022002-02-03 Andrew Cagney <ac131313@redhat.com>
9203
9204 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9205 Restore behavour broken by 2002-01-20 Andrew Cagney
9206 <ac131313@redhat.com> IEEE_FLOAT removal.
9207
acf5ed49
DJ
92082002-02-03 Daniel Jacobowitz <drow@mvista.com>
9209
9210 * c-valprint.c (c_val_print): Pass a proper valaddr to
9211 cp_print_class_method.
9212 * valops.c (search_struct_method): If there is only one method
9213 and args is NULL, return that method.
9214
493d28d5
DJ
92152002-02-03 Daniel Jacobowitz <drow@mvista.com>
9216
9217 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9218 accessing tag_name directly.
9219
7495dfdb
DJ
92202002-02-03 Daniel Jacobowitz <drow@mvista.com>
9221
9222 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9223 of accessing tag_name directly.
9224
dd6bda65
DJ
92252002-02-03 Daniel Jacobowitz <drow@mvista.com>
9226
9227 PR gdb/280
9228 * gdbtypes.c (replace_type): New function.
9229 * gdbtypes.h (replace_type): Add prototype.
9230 * stabsread.c (read_type): Use replace_type.
9231
88fe217c
RE
92322002-02-03 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * Makefile.in (memattr.o): Add missing dependencies rule.
9235
e5d66720
PS
92362002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9237
9238 * breakpoint.c (break_at_finish_command): Really export.
9239 (break_at_finish_at_depth_command): Ditto.
9240 (tbreak_at_finish_command): Ditto.
9241 * hppa-tdep.c: Include completer.h.
9242 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9243 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9244
fffee0be
AC
92452002-02-01 Andrew Cagney <ac131313@redhat.com>
9246
9247 * utils.c (do_write): New function.
9248 (error_stream): Rewrite combining the code from error_begin and
9249 verror.
9250 (verror): Rewrite using error_stream.
9251 (error_begin): Delete function.
9252
255e7dbf
AC
92532002-02-01 Andrew Cagney <ac131313@redhat.com>
9254
9255 * utils.c (error_begin): Make static.
9256 * defs.h (error_begin): Delete declaration.
9257
9258 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9259 (decode_line_1): Use cplusplus_error instead of error_begin,
9260 cplusplus_hint and return_to_top_level.
9261 * coffread.c (coff_symfile_read): Use error instead of error_begin
9262 and return_to_top_level.
9263 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9264
ddfe3c15
AC
92652002-02-01 Andrew Cagney <ac131313@redhat.com>
9266
9267 * language.h (type_error, range_error): Make string parameter
9268 constant.
9269 * language.c (warning_pre_print): Delete extern declaration.
9270 * dwarfread.c (warning_pre_print): Ditto.
9271 * language.c (type_error, range_error): Rewrite to use verror and
9272 vwarning instead of warning_begin.
9273
03ac34d5
MS
92742002-02-01 Michael Snyder <msnyder@redhat.com>
9275
261c4ca2
MS
9276 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9277 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9278
e00d1dc8
AC
92792002-02-01 Andrew Cagney <ac131313@redhat.com>
9280
9281 * command.h (NO_FUNCTION): Delete macro.
9282 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9283 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9284 * tracepoint.c (_initialize_tracepoint): Ditto.
9285 * cli/cli-decode.c (add_set_cmd): Ditto.
9286 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9287
76b79d6e
DJ
92882002-02-01 Daniel Jacobowitz <drow@mvista.com>
9289
9290 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9291 Update ``this'' pointer when calling virtual functions.
9292
799f9e91
MS
92932002-02-01 Michael Snyder <msnyder@redhat.com>
9294
c7bd442c 9295 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9296 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9297
3cf384d4
DJ
92982002-02-01 Daniel Jacobowitz <drow@mvista.com>
9299
9300 * regformats/reg-arm.dat: New file.
9301 * regformats/reg-i386.dat: New file.
9302 * regformats/reg-ia64.dat: New file.
9303 * regformats/reg-m68k.dat: New file.
9304 * regformats/reg-mips.dat: New file.
9305 * regformats/reg-ppc.dat: New file.
9306 * regformats/reg-sh.dat: New file.
9307 * regformats/regdef.h: New file.
9308 * regformats/regdat.sh: New file.
9309
0defa245
RE
93102002-02-01 Richard Earnshaw <reanrsha@arm.com>
9311
9312 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9313 (arm_frame_args_address, arm_frame_locals_address): New functions.
9314 (arm_frame_num_args): New function.
9315 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9316 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9317 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9318
405f26e6
MS
93192002-01-31 Michael Snyder <msnyder@redhat.com>
9320
502fd408
MS
9321 * breakpoint.c (break_at_finish_command): Export.
9322 (break_at_finish_at_depth_command): Export.
9323 (tbreak_at_finish_command): Export.
9324 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9325 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9326 "tbreak" commands, which are HPPA specific.
9327
7d35e135
MS
9328 * printcmd.c (disassemble_command): Remove an ancient
9329 artifact of an old merge.
9330
aaa38bb5 9331 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9332 Define enum constant values for overlay mode.
9333 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9334 (overlay_is_mapped, overlay_auto_command,
9335 overlay_manual_command): Ditto.
d874f1e2 9336
aaa38bb5
AJ
9337 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9338 breakpoint_here_p, breakpoint_inserted_here_p,
9339 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9340 describe_other_breakpoints, check_duplicates, clear_command):
9341 Coding standard fixes.
9342
8add0441 9343 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9344 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9345 code: check bfd SEC_READONLY flag for section.
9346
e351066e
AC
93472002-01-31 Andrew Cagney <ac131313@redhat.com>
9348
7d35e135 9349 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9350
8a48e967
DJ
93512002-01-30 Daniel Jacobowitz <drow@mvista.com>
9352
9353 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9354 data symbols, since we search based on textlow and texthigh.
9355 (find_pc_sect_symtab): Likewise.
9356
f5a96129
AC
93572002-01-30 Andrew Cagney <ac131313@redhat.com>
9358
9359 * defs.h (vwarning): Declare.
f5a96129
AC
9360 * utils.c (vwarning): New function.
9361 (warning): Call vwarning.
9362 (warning_begin): Delete function.
9363
9364 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9365 the warning message.
9366 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9367 warning_begin.
9368
cefd4ef5
MS
93692002-01-30 Michael Snyder <msnyder@redhat.com>
9370
1a703748
MS
9371 * NEWS: Mention "set trust-readonly-sections" command.
9372 Mention generate-core-file command.
cefd4ef5 9373
3a11626d
MS
93742002-01-15 Michael Snyder <msnyder@redhat.com>
9375
9376 * target.c: New command, "set trust-readonly-sections on".
9377 (do_xfer_memory): Honor the suggestion to trust readonly sections
9378 by reading them from the object file instead of from the target.
9379 (initialize_targets): Register command "set trust-readonly-sections".
9380
d1c7e53b
AC
93812002-01-29 Andrew Cagney <ac131313@redhat.com>
9382
9383 * parse.c (target_map_name_to_register): Simplify, search regs and
9384 pseudo-regs using a single loop.
9385
e2c9a72c
AC
93862002-01-30 Andrew Cagney <ac131313@redhat.com>
9387
9388 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9389
69824b4e
MK
93902002-01-15 Rodney Brown <rbrown64@csc.com.au>
9391
9392 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9393 * config/i386/i386v42mp.mh: Add i387-nat.o .
9394 * i386v4-nat.c: Include i387-nat.h.
9395 (supply_fpregset): Use i387_supply_fsave.
9396 (fill_fpregset): Use i387_fill_fsave.
9397
6eb69eab
RE
93982002-01-30 Richard Earnshaw <rearnsha@arm.com>
9399
9400 * arm-tdep.c (arm_call_dummy_words): Define.
9401 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9402 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9403 (CALL_DUMMY_WORDS): Define.
9404 (arm_call_dummy_words): Declare.
9405 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9406 (arm_linux_call_dummy_words): Declare.
9407
9852326a
AS
94082002-01-30 Andreas Schwab <schwab@suse.de>
9409
9410 * m68klinux-nat.c: Fix last change to use regcache_collect
9411 instead of referencing registers[] directly.
9412
977a3030
AC
94132002-01-29 Andrew Cagney <ac131313@redhat.com>
9414
9415 * parse.c (target_map_name_to_register): Delete code wrapped in
9416 #ifdef REGISTER_NAME_ALIAS_HOOK.
9417
2076c72b
MS
94182002-01-28 Michael Snyder <msnyder@redhat.com>
9419
9420 * regcache.c (legacy_read_register_gen): Need to be able to
9421 read pseudo-register as well as real register.
9422 (legacy_write_register_gen): Ditto.
9423
8fcc723b
AC
94242002-01-28 Andrew Cagney <ac131313@redhat.com>
9425
9426 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9427 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9428 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9429 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9430 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9431 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9432 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9433 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9434 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9435 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9436 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9437 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9438 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9439 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9440 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9441 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9442 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9443 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9444 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9445 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9446
afe64c1a
AC
94472002-01-28 Andrew Cagney <ac131313@redhat.com>
9448
9449 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9450 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9451 (initialize_current_architecture): Update target_byte_order using
9452 information from BFD.
aaa38bb5 9453 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9454 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9455
75bc7ddf
AC
94562002-01-28 Andrew Cagney <ac131313@redhat.com>
9457
9458 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9459 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9460
9461 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9462 #ifdef INVALID_FLOAT.
9463 * infcmd.c (do_registers_info): Ditto.
9464 * values.c (unpack_double): Ditto. Add comment.
9465
9466 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9467 already commented out.
9468
0280a90a
AS
94692002-01-26 Andreas Schwab <schwab@suse.de>
9470
9471 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9472 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9473 registers and add support for PTRACE_GETREGS.
9474
7072a954
AC
94752002-01-24 Andrew Cagney <ac131313@redhat.com>
9476
9477 GDB 5.1.1 released from 5.1 branch.
9478 * NEWS: Add 5.1.1 news.
9479 * README: Sync with 5.1 branch.
9480
86f902e0
FF
94812002-01-23 Fred Fish <fnf@redhat.com>
9482
9483 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9484 stabstring on initial malloc. Reallocing will copy it for us,
9485 if necessary.
9486
8af51c36
EZ
94872002-01-23 Elena Zannoni <ezannoni@redhat.com>
9488
aaa38bb5 9489 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9490 (HFILES_NO_SRCDIR): Remove hpread.h.
9491 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9492 (hpread.o): Update dependencies.
9493 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9494
9495 * hp-psymtab-read.c: Remove file.
9496 * hp-symtab-read.c: Remove file.
9497 * hpread.h: Remove file.
9498
9499 * hpread.c: Merge all contents of hp-psymtab-read.c,
9500 hp-symtab-read.c and hpread.h into this file, as it was prior to
9501 January 1999.
9502
9503 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9504 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9505 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9506 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9507
dc5cfeb6
EZ
95082002-01-23 Elena Zannoni <ezannoni@redhat.com>
9509
9510 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9511 fill_gregset): Call gdbarch_tdep() just once, assign result to
9512 variable and use that, instead of calling the function several
9513 times.
9514
ea87b71b
AO
95152002-01-24 Alexandre Oliva <aoliva@redhat.com>
9516
9517 * configure.host: Accept sparcv9 as alias for sparc64.
9518 * configure.tgt: Likewise.
9519
13fc0c2f
KB
95202002-01-22 Kevin Buettner <kevinb@redhat.com>
9521
9522 * solib-aix5.c (build_so_list_from_mapfile)
9523 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9524 arguments is not reversed.
9525 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9526 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9527
7bd872fe
EZ
95282002-01-22 Elena Zannoni <ezannoni@redhat.com>
9529
9530 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9531 modified version of obsolete sh_fetch_pseudo_register.
9532 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9533 (sh4_register_read): New function.
9534 (sh_pseudo_register_write): New function. Renamed and modified
9535 version of obsolete sh_store_pseudo_register.
9536 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9537 (sh4_register_write): New function.
9538 (sh_gdbarch_init): Remove setting of gdbarch function
9539 fetch_pseudo_register and store_pseudo_register. Remove setting of
9540 register_convert_to_raw, register_convert_to_virtual,
9541 register_convertible.
9542 (sh_sh4_register_convertible): Delete. No longer needed. All is
9543 taken care by architecture specific functions
9544 register_read/register_write.
9545 (sh_sh4_register_convert_to_virtual): Make static.
9546 (sh_sh4_register_convert_to_raw): Ditto.
9547
069e84fd
AC
95482002-01-22 Andrew Cagney <ac131313@redhat.com>
9549
9550 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9551 (floatformat_is_nan, floatformat_mantissa): Ditto.
9552
9553 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9554 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9555 builtin_type_ieee_double_little,
9556 builtin_type_ieee_double_littlebyte_bigword,
9557 builtin_type_m68881_ext, builtin_type_i960_ext,
9558 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9559 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9560 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9561 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9562
211a4f69
CV
95632002-01-22 Corinna Vinschen <vinschen@redhat.com>
9564
9565 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9566 parameter. Set frameless flag if it exists and depended of
9567 whether the scanned function is frameless or not.
9568 (xstormy16_skip_prologue): If function is frameless, return
9569 result of xstormy16_scan_prologue().
9570 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9571 call.
9572
f81353e4
EZ
95732002-01-21 Elena Zannoni <ezannoni@redhat.com>
9574
9575 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9576 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9577 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9578 sh_sh4_register_byte, sh_sh4_register_raw_size,
9579 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9580 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9581 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9582 sh_store_pseudo_register, sh_do_pseudo_register): Call
9583 gdbarch_tdep() just once, assign result to variable and use that,
9584 instead of calling the function several times.
9585
63c73a17
MK
95862002-01-20 Mark Kettenis <kettenis@gnu.org>
9587
9588 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9589 macros instead of LAST_FPU_CTRL_REGNUM.
9590 (store_register): Likewise.
9591
39ad761d
JB
95922002-01-21 Jim Blandy <jimb@redhat.com>
9593
9594 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9595 is up-to-date before running the program, not just when a program
9596 exits.
9597
3d74b771
FF
95982002-01-21 Fred Fish <fnf@redhat.com>
9599
9600 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9601 when we have found all instructions we are looking for.
9602
966fbf70
RE
96032002-01-21 Richard Earnshaw <rearnsha@arm.com>
9604
9605 * arm-tdep.c (arm_register_name): New function.
9606 (arm_registers_names): Make static.
9607 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9608 (arm_register_name): Declare.
9609 (REGISTER_NAME): Use it.
9610
c3b4394c
RE
96112002-01-21 Richard Earnshaw <rearnsha@arm.com>
9612 Kevin Buettner <kevinb@redhat.com>
9613
9614 Convert arm targets to new FRAME interface.
9615 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9616 (arm_frame_find_save_regs): Delete.
9617 (arm_frame_init_saved_regs): New.
9618 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9619 Allocate extra_info as required. Convert all uses of fsr.regs
9620 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9621 to use extra_info.
9622 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9623 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9624 (check_prologue_cache, save_prologue_cache): Likewise.
9625 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9626 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9627 (FRAME_FIND_SAVED_REGS): Delete.
9628 (arm_frame_find_saved_regs): Delete prototype.
9629 (arm_frame_init_saved_regs): New prototype.
9630 (FRAME_INIT_SAVED_REGS): Define.
9631
61d99182
AC
96322002-01-20 Andrew Cagney <ac131313@redhat.com>
9633
9634 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9635
6aaea291
AC
96362002-01-20 Andrew Cagney <ac131313@redhat.com>
9637
9638 From Jeff Law <law@redhat.com>:
9639 * infttrace.c: Include <sys/pstat.h>.
9640 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9641 exec file if the ttrace equivalent fails.
9642
15f698d2
AC
96432002-01-20 Andrew Cagney <ac131313@redhat.com>
9644
9645 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9646 (closeLogFile): Ditto.
9647
f86ddd7c
MC
96482002-01-20 Michael Chastain <mec@shout.net>
9649
9650 * top.c (print_gdb_version): Bump copyright year to 2002.
9651
904507ce
AC
96522002-01-20 Andrew Cagney <ac131313@redhat.com>
9653
9654 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9655 Zannoni and Eli Zaretskii.
9656
d7f0b9ce
DJ
96572002-01-20 Daniel Jacobowitz <drow@mvista.com>
9658
9659 * buildsym.c: Update copyright years.
9660 * c-typeprint.c: Likewise.
9661 * dwarf2read.c: Likewise.
9662 * f-typeprint.c: Likewise.
9663 * gdbtypes.c: Likewise.
9664 * gdbtypes.h: Likewise.
9665 * hp-symtab-read.c: Likewise.
9666 * hpread.c: Likewise.
9667 * mdebugread.c: Likewise.
9668 * p-typeprint.c: Likewise.
9669
3fd3d7d2
AC
96702002-01-20 Andrew Cagney <ac131313@redhat.com>
9671
9672 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9673 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9674 byte-order selectable.
9675 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9676 * arch-utils.c: Ditto.
9677 (set_endian): Ditto.
9678 (set_endian_from_file): Ditto.
9679 * gdbserver/low-sim.c (create_inferior): Ditto.
9680 * gdbarch.sh: Ditto.
9681 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9682 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9683 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9684 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9685 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9686 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9687 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9688 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9689 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9690 macro definition.
9691 * config/mips/tm-wince.h: Remove #undef of macro
9692 TARGET_BYTE_ORDER_SELECTABLE.
9693 * config/sh/tm-wince.h: Ditto.
9694
b02dede2
DJ
96952002-01-20 Daniel Jacobowitz <drow@mvista.com>
9696
9697 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9698 member function fields. Add accessor macro
9699 TYPE_FN_FIELD_ARTIFICIAL.
9700 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9701 * c-typeprint.c (c_type_print_base): Skip artificial member
9702 functions.
9703
c3643761
DJ
97042002-01-20 Daniel Jacobowitz <drow@mvista.com>
9705
9706 * f-typeprint.c: Delete unused function f_type_print_args.
9707 * p-typeprint.c: Delete unused function pascal_type_print_args.
9708
8176bb6d
DJ
97092002-01-20 Daniel Jacobowitz <drow@mvista.com>
9710
9711 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9712 comment. Add ``artificial'' to ``union field_location''.
9713
9714 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9715
9716 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9717 * mdebugread.c (parse_symbol): Likewise.
9718 * stabsread.c (define_symbol): Likewise.
9719 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9720 initializing TYPE_FIELD_BITPOS to n (obsolete).
9721 (hpread_doc_function_type): Likewise.
9722 * hpread.c (hpread_function_type): Likewise.
9723
7fd60527
AC
97242002-01-20 Andrew Cagney <ac131313@redhat.com>
9725
9726 * configure.in (host_makefile_frag): Only require a host makefile
9727 fragment when a native build.
9728 * configure: Re-generate.
9729
c2f05ac9
AC
97302002-01-20 Andrew Cagney <ac131313@redhat.com>
9731
9732 * doublest.h (floatformat_from_type): Declare.
9733 * doublest.c (floatformat_from_type): New function.
9734 (convert_typed_floating): Use.
9735
9736 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9737 call to function floatformat_from_type.
9738
9739 * gdbarch.sh (IEEE_FLOAT): Delete.
9740 * gdbarch.h, gdbarch.c: Re-generate.
9741 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9742 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9743 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9744 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9745 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9746 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9747 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9748 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9749 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9750 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9751 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9752 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9753
9754 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9755 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9756 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9757 * sh-tdep.c (sh_gdbarch_init): Ditto.
9758 * mips-tdep.c (mips_gdbarch_init): Ditto.
9759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9760 * cris-tdep.c (cris_gdbarch_init): Ditto.
9761
abf22e64
AJ
97622002-01-20 Jiri Smid <smid@suse.cz>
9763
9764 * configure.host, configure.tgt: Support x86-64.
9765 * NEWS: Note new target x86-64.
9766
b7c4cbf8
AJ
9767 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9768 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9769 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9770 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9771 x86-64-linux-nat.o): Fix dependencies.
9772
82600034
AC
97732002-01-19 Andrew Cagney <ac131313@redhat.com>
9774
9775 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9776 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9777 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9778 * config/sparc/xm-sun4os4.h: Delete file.
9779 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9780
bbe5c628
AC
97812002-01-19 Andrew Cagney <ac131313@redhat.com>
9782
9783 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9784 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9785 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9786 * config/i386/i386lynx.mh (XM_FILE): Delete.
9787 * config/rs6000/xm-rs6000ly.h: Delete file.
9788 * config/sparc/xm-sparclynx.h: Delete file.
9789 * config/m68k/xm-m68klynx.h: Delete file.
9790 * config/i386/xm-i386lynx.h: Delete file.
9791 * config/xm-lynx.h: Delete file.
9792 * config/djgpp/fnchange.lst: Update.
9793
f8453e34
JT
97942002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9795
9796 * alpha-tdep.c (alpha_register_byte): New function.
9797 (alpha_register_raw_size): Ditto.
9798 (alpha_register_virtual_size): Ditto.
9799 (alpha_skip_prologue_internal): Renamed from
9800 alpha_skip_prologue.
9801 (alpha_skip_prologue): New version that calls
9802 alpha_skip_prologue_internal.
9803 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9804 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9805 second argument from alpha_skip_prologue.
9806 (REGISTER_BYTE): Use alpha_register_byte.
9807 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9808 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9809 (FRAMELESS_FUNCTION_INVOCATION): Use
9810 generic_frameless_function_invocation_not.
9811 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9812 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9813
52d9e613
AC
98142002-01-19 Andrew Cagney <ac131313@redhat.com>
9815
9816 * config/mips/xm-news-mips.h: Delete file.
9817 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9818
9819 * config/m88k/xm-m88k.h: Delete file.
9820 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9821 * config/m88k/xm-delta88v4.h: Ditto.
9822 * config/m88k/xm-delta88.h: Ditto.
9823
9824 * config/alpha/xm-fbsd.h: Delete file.
9825 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9826
9827 * config/sparc/xm-sparc.h: Delete file.
9828 * Makefile.in (xm-sun4os4.h): Delete dependency.
9829 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9830 * config/sparc/xm-sun4os4.h: Ditto.
9831 * config/sparc/xm-linux.h: Ditto.
9832
9833 * config/i386/xm-windows.h: Delete file.
9834
2d1b2124
AC
98352002-01-19 Andrew Cagney <ac131313@redhat.com>
9836
9837 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9838 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9839
ee1f65f0
JT
98402002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9841
9842 * alpha-tdep.c (alpha_call_dummy_words): New.
9843 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9844 (CALL_DUMMY_P): Define.
9845 (CALL_DUMMY_WORDS): Define.
9846 (SIZEOF_CALL_DUMMY_WORDS): Define.
9847
98081e55
PB
98482002-01-19 Per Bothner <per@bothner.com>
9849
9850 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9851 isn't NULL, which can happen with some gcj-3.x-produced code.
9852
0d056799
JT
98532002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9854
9855 * alpha-tdep.c (alpha_register_virtual_type): New function.
9856 (alpha_init_frame_pc_first): Ditto.
9857 (alpha_fix_call_dummy): Ditto.
9858 (alpha_store_struct_return): Ditto.
9859 (alpha_extract_struct_value_address): Ditto.
9860 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9861 alpha_register_virtual_type.
9862 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9863 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9864 alpha_extract_struct_value_address.
9865 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9866 (INIT_FRAME_PC): Use init_frame_pc_noop.
9867 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9868
4604bcad
MK
98692002-01-19 Mark Kettenis <kettenis@gnu.org>
9870
9871 * i386gnu-nat.c: Include "i386-tdep.h".
9872 (fetch_fpregs): Simplify code dealing with uninitialized floating
9873 point states such that it doesn't require FP7_REGNUM.
9874
140f9984
JT
98752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9876
abf22e64
AJ
9877 * alpha-tdep.c (frame_extra_info): New.
9878 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9879 frame->extra_info.
9880 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9881 (alpha_frame_saved_pc): Use frame->extra_info.
9882 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9883 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9884 (init_extra_frame_info): Rename to...
9885 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9886 (alpha_print_extra_frame_info): New function.
140f9984
JT
9887 (alpha_frame_locals_address): Ditto.
9888 (alpha_frame_args_address): Ditto.
abf22e64 9889 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9890 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9891 alpha_frame_args_address.
abf22e64 9892 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9893 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9894 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9895 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9896 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9897 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9898
d734c450
JT
98992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9900
9901 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9902 (alpha_cannot_fetch_register): Ditto.
9903 (alpha_cannot_store_register): Ditto.
9904 (alpha_register_convertible): Ditto.
9905 (alpha_use_struct_convention): Ditto.
9906 * config/alpha/tm-alpha.h: Update copyright years.
9907 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9908 (INNER_THAN): Use core_addr_lessthan.
9909 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9910 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9911 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9912 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9913 (FRAME_CHAIN): Remove unnecessary cast.
9914
b4ceaee6
AC
99152002-01-18 Andrew Cagney <ac131313@redhat.com>
9916
9917 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9918 obsolete.
9919
0a65a603
AC
99202002-01-18 Andrew Cagney <ac131313@redhat.com>
9921
9922 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9923 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9924 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9925 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9926 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9927 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9928 * x86-64-linux-nat.c: Ditto.
9929
636a6dfc
JT
99302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9931
abf22e64 9932 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9933 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9934 (REGISTER_NAME): Define.
9935
acceddb6
JT
99362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9937
9938 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9939
ec32e4be
JT
99402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9941
9942 * alpha-tdep.c: Update copyright years.
9943 (alpha_next_pc): New function.
9944 (alpha_software_single_step): Ditto.
9945 * config/alpha/tm-alpha.h: Add prototype for
9946 alpha_software_single_step.
9947
e771a871
JT
99482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9949
9950 * alphabsd-nat.c: Update copyright years.
9951 (fill_gregset): Use regcache_collect.
9952 (fill_fpregset): Likewise.
9953 (fetch_inferior_registers): Only fetch integer registers
9954 if requested to do so.
9955 (store_inferior_registers): Only store integer registers
9956 if requested to do so.
9957
7708fa01
AC
99582002-01-17 Andrew Cagney <ac131313@redhat.com>
9959
9960 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9961 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9962 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9963 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9964 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9965 * config/arm/linux.mh (XDEPFILES): Delete.
9966 * config/arm/nbsd.mh (XDEPFILES): Delete.
9967 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9968 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9969 * config/i386/i386m3.mh (XDEPFILES): Delete.
9970 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9971 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9972 * config/i386/fbsd.mh (XDEPFILES): Delete.
9973 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9974 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9975 * config/i386/i386v4.mh (XDEPFILES): Delete.
9976 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9977 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9978 * config/i386/i386aix.mh (XDEPFILES): Delete.
9979 * config/i386/go32.mh (XDEPFILES): Delete.
9980 * config/i386/cygwin.mh (XDEPFILES): Delete.
9981 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9982 * config/i386/i386mach.mh (XDEPFILES): Delete.
9983 * config/i386/i386v32.mh (XDEPFILES): Delete.
9984 * config/i386/linux.mh (XDEPFILES): Delete.
9985 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9986 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9987 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9988 * config/i386/i386sco.mh (XDEPFILES): Delete.
9989 * config/i386/i386v.mh (XDEPFILES): Delete.
9990 * config/i386/nbsd.mh (XDEPFILES): Delete.
9991 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9992 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9993 * config/i386/symmetry.mh (XDEPFILES): Delete.
9994 * config/i386/obsd.mh (XDEPFILES): Delete.
9995 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9996 * config/ia64/linux.mh (XDEPFILES): Delete.
9997 * config/ia64/aix.mh (XDEPFILES): Delete.
9998 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9999 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10000 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10001 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10002 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10003 * config/m68k/linux.mh (XDEPFILES): Delete.
10004 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10005 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10006 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10007 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10008 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10009 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10010 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10011 * config/m88k/delta88.mh (XDEPFILES): Delete.
10012 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10013 * config/m88k/m88k.mh (XDEPFILES): Delete.
10014 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10015 * config/mips/linux.mh (XDEPFILES): Delete.
10016 * config/mips/irix6.mh (XDEPFILES): Delete.
10017 * config/mips/irix5.mh (XDEPFILES): Delete.
10018 * config/mips/irix4.mh (XDEPFILES): Delete.
10019 * config/mips/irix3.mh (XDEPFILES): Delete.
10020 * config/mips/decstation.mh (XDEPFILES): Delete.
10021 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10022 (NATDEPFILES): Move core-aout.o to here.
10023 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10024 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10025 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10026 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10027 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10028 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10029 * config/pa/hpux11.mh (XDEPFILES): Delete.
10030 * config/powerpc/aix.mh (XDEPFILES): Delete.
10031 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10032 * config/powerpc/linux.mh (XDEPFILES): Delete.
10033 * config/romp/rtbsd.mh: Rename XDEPFILES.
10034 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10035 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10036 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10037 * config/s390/s390.mh (XDEPFILES): Delete.
10038 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10039 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10040 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10041 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10042 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10043 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10044 * config/sparc/linux.mh (XDEPFILES): Delete.
10045 * config/vax/vaxult.mh (XDEPFILES): Delete.
10046 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10047 * Makefile.in (DEPFILES): Remove XDEPFILES.
10048
375fc983
AC
100492002-01-17 Andrew Cagney <ac131313@redhat.com>
10050
10051 * utils.c (internal_verror): Fix comments, default is yes not no.
10052 Update queries to match. Default to quit and dump core.
10053
8926118c
AC
100542002-01-17 Andrew Cagney <ac131313@redhat.com>
10055
10056 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10057 copyright.
10058 * defs.h, event-top.c, gdbcmd.h: Ditto.
10059 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10060 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10061 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10062 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10063 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10064 * mi/mi-main.c:Ditto.
10065
10066 * stack.c, symfile.c: Update copyright.
10067
45b7b345
DJ
100682002-01-17 Daniel Jacobowitz <drow@mvista.com>
10069
db728ff7
DJ
10070 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10071 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10072 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10073 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10074
db728ff7
DJ
100752002-01-17 Daniel Jacobowitz <drow@mvista.com>
10076
10077 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10078 * gdbserver/low-lynx.c (myattach): Likewise.
10079 * gdbserver/low-nbsd.c (myattach): Likewise.
10080 * gdbserver/low-sim.c (myattach): Likewise.
10081 * gdbserver/low-sparc.c (myattach): Likewise.
10082 * gdbserver/low-sun3.c (myattach): Likewise.
10083
10084 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10085
db728ff7 10086 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10087 (main): Handle "--attach".
10088
8de3c354
AC
100892002-01-16 Andrew Cagney <ac131313@redhat.com>
10090
10091 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10092 maintainer.
10093
b0129042
DJ
100942002-01-15 Daniel Jacobowitz <drow@mvista.com>
10095
10096 * c-typeprint.c (is_type_conversion_operator): Add additional
10097 check for non-conversion operators.
10098
ba8679fb 100992002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10100
10101 * linux-proc.c: Add "info proc" command, a la procfs.c.
10102 (read_mapping): New function, abstract and re-use code.
10103 (linux_find_memory_regions): Use new func read_mapping.
10104 (linux_info_proc_cmd): New function, implement "info proc".
10105 (_initialize_linux_proc): Add new command "info proc".
10106
e4f9b4d5
MS
101072002-01-15 Michael Snyder <msnyder@redhat.com>
10108
10109 * symfile.c (generic_load): Use bfd_map_over_sections method
10110 instead of manipulating bfd structure members directly.
10111 (add_section_size_callback): New function, bfd sections callback
10112 used by generic_load.
10113 (load_sections_callback): New function, bfd sections callback
10114 used by generic_load.
10115
08cf96df
EZ
101162002-01-15 Elena Zannoni <ezannoni@redhat.com>
10117
abf22e64 10118 [Based on work by Jim Blandy]
08cf96df
EZ
10119 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10120 (builtin_type_vec128): Export.
10121 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10122 types.
10123 (builtin_type_vec128): New builtin type for 128 bit vector
10124 registers.
10125 (build_gdbtypes): Initialize builtin_type_v16qi and
10126 builtin_type_v8hi. Create the vec128 register builtin type
10127 structure.
10128 (build_builtin_type_vec128): New function.
abf22e64 10129 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10130 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10131 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10132 AltiVec register to new builtin type.
10133
d7242108
DJ
101342001-01-15 Daniel Jacobowitz <drow@mvista.com>
10135
10136 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10137 to make_cv_type.
10138
4ee3352d
AC
101392002-01-14 Andrew Cagney <ac131313@redhat.com>
10140
10141 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10142 CLEAN_UP_REGISTER_VALUE.
10143 * regcache.c (supply_register): Update only call.
10144
f015b2e7
AC
101452002-01-14 Andrew Cagney <ac131313@redhat.com>
10146
10147 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10148 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10149 a29k-*-vxworks* targets as obsolete.
10150
356ae49d
MS
101512002-01-14 Michael Snyder <msnyder@redhat.com>
10152
10153 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10154 until we can resolve portability issues.
10155 * gregset.h: Remove references to fpxregs.
10156 * gcore.c (gcore_command): Initialize note_sec to NULL.
10157
ade8f45e
AC
101582002-01-13 Andrew Cagney <ac131313@redhat.com>
10159
10160 * signals.c (target_signal_to_name): Rewrite. Only use
10161 signals[].name when in bounds and non-NULL.
abf22e64 10162
89c49e7a
AC
101632002-01-13 Andrew Cagney <ac131313@redhat.com>
10164
10165 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10166 * signals.c (target_signal_to_name): Verify that SIG is within the
10167 bounds of the signals array.
10168
4daa9f9f
AC
101692002-01-13 Andrew Cagney <ac131313@redhat.com>
10170
10171 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10172
ba4bbdcb
KS
101732002-01-13 Keith Seitz <keiths@redhat.com>
10174
10175 * stack.c (print_frame_info_base): Print the frame's pc
10176 only if when print_frame_info_listing_hook is not defined.
10177
575bbeb6
KS
101782002-01-13 Keith Seitz <keiths@redhat.com>
10179
10180 * varobj.c (varobj_set_value): Make sure that there were no
10181 errors evaluating the object before attempting to set its
10182 value.
10183 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10184 so this offset adjustment is no longer necessary.
10185 (create_child): Don't set the error flag if the child is
10186 a CPLUS_FAKE_CHILD.
10187 (value_of_child): If value_fetch_lazy fails, return NULL
10188 so that callers will be notified that an error occurred.
10189 (c_value_of_variable): Delay check of variable's validity
10190 until later. We actually want all structs and unions to have
10191 the value "{...}".
10192 Do not return "???" for variables which could not be evaluated.
10193 This error condition must be returned to the caller so that it
10194 can get the error condition from gdb.
10195 (cplus_name_of_child): Adjust index for vptr before figuring
10196 out the name of the child.
10197 (cplus_value_of_child): If a child's (real) parent is not valid,
10198 don't even bother trying to give a value for it. Just return
10199 an error. Change all instances in this function.
10200 (cplus_type_of_child): If our parent is one of the "fake"
10201 parents, we need to get at the type of the real parent, and
10202 derive the child's true type using this information.
10203
b76898ab
AC
102042002-01-13 Andrew Cagney <ac131313@redhat.com>
10205
10206 From 2002-01-09 John Marshall <johnm@falch.net>:
10207 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10208 sources.redhat.com, and tweak some related URLs which had
10209 suffered from linkrot.
10210
b6649e88
AC
102112002-01-13 Andrew Cagney <ac131313@redhat.com>
10212
10213 From Jeff law:
10214 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10215 structures passed in registers.
10216
82cc5033
EZ
102172002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10218
10219 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10220 white space which prevented compilation. Reported by DSK
10221 <dsk@student.unsw.edu.au>.
10222
ba5f2f8a
MS
102232002-01-11 Michael Snyder <msnyder@redhat.com>
10224
fbd35540
MS
10225 * symfile.c (build_section_addr_info_from_section_tab):
10226 Use bfd access method instead of manipulating bfd directly.
10227 (syms_from_objfile): Ditto.
10228 (simple_overlay_update_1): Ditto.
10229 (simple_overlay_update): Ditto.
10230 (generic_load): Ditto.
10231 (overlay_unmapped_address): FIXME comment, bfd access methods.
10232 (sections_overlap): FIXME comment, bfd access methods.
10233 (pc_in_mapped_range): FIXME comment, bfd access methods.
10234 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10235 (section_is_mapped): FIXME comment, bfd access methods.
10236 (section_is_overlay): FIXME comment, bfd access methods.
10237
ba5f2f8a
MS
10238 * symfile.c (generic_load): Whitespace and long line cleanups.
10239 Remove duplicate variable, change several local variables to
10240 more appropriate data types.
10241 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10242
17df2af6
AC
102432002-01-12 Andrew Cagney <ac131313@redhat.com>
10244
10245 From Peter Schauer:
10246 * language.c (longest_local_hex_string_custom): Use phex_nz to
10247 convert NUM to a hex string.
10248
ec920329
EZ
102492002-01-12 Elena Zannoni <ezannoni@redhat.com>
10250
10251 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10252 the function.
538a76d6 10253 Update Copyright year.
ec920329 10254
3abd2e01
AC
102552002-01-12 Andrew Cagney <ac131313@redhat.com>
10256
10257 * language.c (longest_raw_hex_string): Delete unused function.
10258
b21b22e0
PS
102592002-01-11 Petr Sorfa <petrs@caldera.com>
10260
10261 * MAINTAINERS (write-after-approval): Add myself.
10262 * dwarf2read.c (read_tag_string_type): Handling of
10263 DW_AT_byte_size.
10264 (read_tag_string_type): FORTRAN fix to prevent propagation of
10265 first string size.
10266 (set_cu_language): Handling of DW_LANG_Fortran95
10267
747fe712
RE
102682002-01-11 Richard Earnshaw <rearnsha@arm.com>
10269
10270 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10271 GETPID(inferior_ptid).
10272 (store_inferior_registers): Likewise.
10273
f1bea926
JM
102742002-01-10 Jason Merrill <jason@redhat.com>
10275
10276 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10277 Fix DW_OP_minus.
10278
ae940673
AC
102792002-01-10 Andrew Cagney <ac131313@redhat.com>
10280
10281 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10282 and bfd/elf32-sh-nbsd.c.
10283
00546b04
MS
102842002-01-10 Michael Snyder <msnyder@redhat.com>
10285
352ed7b4
MS
10286 * NEWS: Mention --pid and corefile/proc-id behavior change.
10287
c18be923
MS
10288 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10289 * gcore.c: Include cli/cli-decode.h instead of command.h.
10290
00546b04
MS
10291 * main.c (captured_main): Add new command line option "--pid".
10292 If the second command line argument (following the symbol-file)
10293 begins with a digit, try to attach to it before trying to open
10294 it as a corefile.
10295 (print_gdb_help): Document the "--pid" argument.
10296
db60ec62
EZ
102972002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10298
10299 * completer.c (command_completer): New function.
10300
10301 * completer.h <command_completer>: Add prototype.
10302
10303 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10304 completer for the "help" command.
10305
39c22d1a
JM
103062002-01-09 Jason Merrill <jason@redhat.com>
10307
10308 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10309
c564377f
MS
103102002-01-09 Michael Snyder <msnyder@redhat.com>
10311
975aec09
MS
10312 * i386-linux-nat.c (fill_fpxregset): Make global.
10313 (store_fpxregset): Ditto.
10314
db4a10fa
MS
10315 * gregset.h (gdb_fpxregset_t): Define.
10316 (supply_fpxregset): Prototype.
10317 (fill_fpxregset): Prototype.
10318
c564377f
MS
10319 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10320
c3d45d70
RE
103212002-01-09 Richard Earnshaw <rearnsha@arm.com>
10322
10323 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10324 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10325 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10326
fcc87af1
AC
103272002-01-09 Andrew Cagney <ac131313@redhat.com>
10328
10329 * MAINTAINERS: Update target maintainer rules so that any
10330 Maintainer can approve a tested patch for a maintenance-only
10331 target.
10332
dd96c05b
RE
103332002-01-09 Richard Earnshaw <rearnsha@arm.com>
10334
d4297db9 10335 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10336
d4297db9 10337 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10338 IN_SIGTRAMP.
10339
145fdc6e
MS
103402002-01-08 Michael Snyder <msnyder@redhat.com>
10341
10342 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10343 real name of the executable, rather than the /proc name.
10344
be4d1333
MS
103452002-01-03 Michael Snyder <msnyder@redhat.com>
10346
10347 Implement a "generate-core-file" command in gdb, save target state.
10348 * gcore.c: New file. Implement new command 'generate-core-file'.
10349 Save a corefile image of the current state of the inferior.
10350 * linux-proc.c: Add linux-specific code for saving corefiles.
10351 * target.h (struct target_ops): Add new target vectors for saving
10352 corefiles; to_find_memory_regions and to_make_corefile_notes.
10353 (target_find_memory_regions): New macro.
10354 (target_make_corefile_notes): New macro.
10355 * target.c (update_current_target): Inherit new target methods.
10356 (dummy_find_memory_regions): New place-holder method.
10357 (dummy_make_corefile_notes): New place-holder method.
10358 (init_dummy_target): Initialize new dummy target vectors.
10359 * exec.c (exec_set_find_memory_regions): New function.
10360 Allow the exec_ops vector for memory regions to be taken over.
10361 (exec_make_note_section): New function, target vector method.
10362 * defs.h (exec_set_find_memory_regions): Export prototype.
10363 * procfs.c (proc_find_memory_regions): New function, corefile method.
10364 (procfs_make_note_section): New function, corefile method.
10365 (init_procfs_ops): Set new target vector pointers.
10366 (find_memory_regions_callback): New function.
10367 (procfs_do_thread_registers): New function.
10368 (procfs_corefile_thread_callback): New function.
10369 * sol-thread.c (sol_find_memory_regions): New function.
10370 (sol_make_note_section): New function.
10371 (init_sol_thread_ops): Initialize new target vectors.
10372 * inftarg.c (inftarg_set_find_memory_regions): New function.
10373 Allow to_find_memory_regions vector to be taken over.
10374 (inftarg_set_make_corefile_notes): New function.
10375 Allow to_make_corefile_notes vector to be taken over.
10376 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10377 interface layer if not target_has_execution (may be a corefile).
10378 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10379 * config/sparc/sun4sol2.mh: Ditto.
10380 * config/alpha/alpha-linux.mh: Ditto.
10381 * config/arm/linux.mh: Ditto.
10382 * config/i386/x86-64linux.mh: Ditto.
10383 * config/ia64/linux.mh: Ditto.
10384 * config/m68k/linux.mh: Ditto.
10385 * config/mips/linux.mh: Ditto.
10386 * config/powerpc/linux.mh: Ditto.
10387 * config/sparc/linux.mh: Ditto.
10388
c6b92abd
MS
103892002-01-07 Michael Snyder <msnyder@redhat.com>
10390
10391 * arm-linux-nat.c: Remove references to regcache.c internal data
10392 (registers[] and register_valid[]).
10393
4b09dc8c
MS
103942002-01-07 Michael Snyder <msnyder@redhat.com>
10395
abf22e64
AJ
10396 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10397 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10398 symbol file and shlibs.
10399 * Makefile.in: Add rule for linux-proc.o.
10400 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10401 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10402 * config/arm/linux.mh: Ditto.
10403 * config/i386/linux.mh: Ditto.
10404 * config/i386/x86-64linux.mh: Ditto.
10405 * config/ia64/linux.mh: Ditto.
10406 * config/m68k/linux.mh: Ditto.
10407 * config/mips/linux.mh: Ditto.
10408 * config/powerpc/linux.mh: Ditto.
10409 * config/sparc/linux.mh: Ditto.
10410
c25b74ac
PM
104112002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10412
10413 * win32-nat.c: Add i386-tdep.h dependency.
10414
94cd915f
MS
104152002-01-07 Michael Snyder <msnyder@redhat.com>
10416
c7cccb76
MS
10417 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10418 instead of bfd_get_arch_size. Don't bail out just because
10419 there's no exec_bfd.
abf22e64 10420
34c0bd93
MS
10421 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10422 * p-valprint.c (pascal_object_print_value): Ditto.
10423 * somread.c (som_symtab_read): Ditto.
10424 * symfile.c (simple_free_overlay_region_table): Ditto.
10425 * valops.c (value_assign): Ditto.
10426
21c1c920
MS
10427 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10428 use tilde_expand and strerror for opening save-tracepoints file.
10429
5bbd998e
MS
10430 * thread-db.c (thread_db_new_objfile): Indendation fix.
10431
94cd915f
MS
10432 * infptrace.c (GDB_MAX_ALLOCA): New define.
10433 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10434 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10435 can be overridden with whatever value is appropriate to the host).
10436 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10437 alloca to allocate potentially large buffer.
10438 * rs6000-nat.c (child_xfer_memory): Ditto.
10439 * symm-nat.c (child_xfer_memory): Ditto.
10440 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10441
494e8a93
JSC
104422002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10443
10444 From Nick Clifton <nickc@redhat.com>
10445 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10446
d0e1d48e
MS
104472002-01-07 Michael Snyder <msnyder@redhat.com>
10448
abf22e64 10449 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10450 Don't use exec_bfd if it's NULL.
10451
290b2c7a
MK
104522002-01-06 Mark Kettenis <kettenis@gnu.org>
10453
abf22e64 10454 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10455
aef21287
AC
104562002-01-06 Andrew Cagney <ac131313@redhat.com>
10457
10458 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10459 * gnu-nat.c: Ditto.
10460
30efa627
AC
104612002-01-06 Andrew Cagney <ac131313@redhat.com>
10462
10463 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10464 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10465 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10466 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10467 z8k-coff have not been multi-arched. Update z8k-coff build
10468 status.
10469
9b4ff276
AC
104702002-01-06 Andrew Cagney <ac131313@redhat.com>
10471
10472 * MAINTAINERS: Mark a29k target as obsolete.
10473 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10474 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10475 comments.
10476 * NEWS: Note that a29k targets are obsolete.
10477 * a29k-tdep.c: Mark as obsolete.
10478 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10479 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10480 a29k-*-vxworks* targets as obsolete.
10481 * remote-adapt.c: Obsolete.
10482 * remote-eb.c: Obsolete.
10483 * remote-mm.c: Obsolete.
10484 * remote-udi.c: Obsolete.
10485 * config/a29k/a29k-udi.mt: Obsolete.
10486 * config/a29k/a29k.mt: Obsolete.
10487 * config/a29k/tm-a29k.h: Obsolete.
10488 * config/a29k/tm-vx29k.h: Obsolete.
10489 * config/a29k/vx29k.mt: Obsolete.
10490
a9011d31
AC
104912002-01-05 Andrew Cagney <ac131313@redhat.com>
10492
10493 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10494 with BFD_ENDIAN_BIG.
10495
9299404e
AC
104962002-01-05 Andrew Cagney <ac131313@redhat.com>
10497
10498 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10499 * configure, config.in: Re-generate.
10500 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10501 * defs.h: Do not include <endian.h>.
10502
7e89e357
JT
105032002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10504
10505 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10506 * config.in: Regenerate.
10507 * configure.in: Update copyright years.
10508 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10509 * configure: Regenerate.
10510 * i386bsd-nat.c: Update copyright years.
10511 (fill_gregset): Use regcache_collect.
10512 (fetch_inferior_registers): Only fetch integer registers
10513 if requested to do so. Add support for XMM registers
10514 using PT_GETXMMREGS.
10515 (store_inferior_registers): Only store integer registers
10516 if requested to do so. Add support for XMM registers
10517 using PT_SETXMMREGS.
10518 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10519 (store_inferior_registers): Remove.
10520 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10521 (fetch_elfcore_registers): New function.
10522 (i386nbsd_elfcore_fns): New.
10523 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10524 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10525 i386bsd-nat.o.
10526 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10527 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10528 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10529 * config/i386/tm-nbsd.h: Update copyright years.
10530 (HAVE_SSE_REGS): Define.
10531 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10532 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10533 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10534 (SIGCONTEXT_PC_OFFSET): Remove.
10535 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10536
a752853e
AC
105372002-01-05 Andrew Cagney <ac131313@redhat.com>
10538
10539 * configure.tgt: Remove powerpc-*-macos* target.
10540 * config/m68k/xm-mpw.h: Delete file.
10541 * config/xm-mpw.h: Delete file.
10542 * ser-mac.c: Delete file.
10543 * mpw-make.sed: Delete file.
10544 * mpw-config.in: Delete file.
10545 * mac-xdep.c: Delete file.
10546 * mac-gdb.r: Delete file.
10547 * mac-defs.h: Delete file.
10548 * mac-nat.c: Delete file.
10549 * config/powerpc/macos.mh: Delete file.
10550 * config/powerpc/macos.mt: Delete file.
10551 * config/powerpc/nm-macos.h: Delete file.
10552 * config/powerpc/tm-macos.h: Delete file.
10553 * source.c (openp, open_source_file): Remove obsolete code.
10554 * top.c (gdb_readline): Ditto.
10555 * utils.c (query): Ditto.
10556 * event-top.c (display_gdb_prompt): Ditto.
10557 * Makefile.in (ser-mac.o): Delete obsolete target.
10558 * NEWS: Update.
10559
d7449b42
AC
105602002-01-04 Andrew Cagney <ac131313@redhat.com>
10561
10562 * defs.h (BIG_ENDIAN): Delete macro definition.
10563 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10564 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10565 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10566 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10567 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10568 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10569 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10570 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10571 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10572 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10573 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10574 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10575 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10576 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10577 * gdbarch.c: Re-generate.
10578
356374e8
DJ
105792002-01-04 Daniel Jacobowitz <drow@mvista.com>
10580
10581 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10582 for core files.
10583
a2b8f8f8
JT
105842002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10585
10586 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10587
12466af9
AC
105882002-01-04 Andrew Cagney <ac131313@redhat.com>
10589
10590 * value.h (value_ptr): Delete typedef.
10591
3549ab40
JT
105922002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10593
10594 * i386nbsd-nat.c: Update copyright years.
10595 Include i386-tdep.h.
10596
fedbd091
EZ
105972002-01-04 Elena Zannoni <ezannoni@redhat.com>
10598
10599 * stabsread.c: Update copyright years.
10600
10601 From Debashis Mahata <debashis.mahata@wipro.com>:
10602 (read_struct_fields): Deal with Sun C compiler erroneous stab
10603 output for structs and unions.
fec8b34f 10604 Fix PR gdb/269.
fedbd091 10605
eb43544b
DJ
106062002-01-04 Daniel Jacobowitz <drow@mvista.com>
10607
10608 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10609 prototype.
10610
1514d34e
DJ
106112002-01-04 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * cp-abi.c: Fix whitespace.
10614 (baseclass_offset): New wrapper function.
10615 * cp-abi.h (baseclass_offset): Add prototype.
10616 (struct cp_abi_ops): Add baseclass_offset pointer.
10617
10618 * valops.c (vb_match): Move to...
10619 * gnu-v2-abi.c (vb_match): here.
10620 * valops.c (baseclass_offset): Move to...
10621 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10622
10623 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10624
10625 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10626 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10627 * hpacc-abi.c (init_hpacc_ops): Likewise.
10628
7f8c9282
DJ
106292002-01-04 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * valops.c (find_overload_match): Accept obj as a
10632 reference parameter. Update it before returning.
10633 * value.h (find_overload_match): Update prototype.
10634 * eval.c (evaluate_subexp_standard): Pass object to
10635 find_overload_match by reference.
10636
f23631e4
AC
106372002-01-03 Andrew Cagney <ac131313@redhat.com>
10638
10639 * valarith.c: Replace value_ptr with struct value pointer. Remove
10640 register attribute from value declarations.
10641 * valops.c: Ditto.
10642 * value.h: Ditto.
10643 * scm-lang.c (scm_lookup_name): Ditto.
10644
79e10fab 106452002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10646
79e10fab
AC
10647 Abstract the functionality of iterating over mapped memory
10648 regions into a general purpose iterator function.
abf22e64 10649 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10650 iterator for memory sections.
10651 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10652 (solib_mappings_callback): New function, callback for above.
10653 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10654 (info_mappings_callback): New function, callback for above.
10655
10656 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10657
c5ad026a
MK
106582002-01-01 Mark Kettenis <kettenis@gnu.org>
10659
d2a7c97a
MK
10660 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10661 * i386-tdep.c: Include "elf-bfd.h".
10662 (process_note_abi_tag_sections): New function.
10663 (i386_gdbarch_init): Add code to recognize various OS/ABI
10664 combinations.
10665
c5ad026a
MK
10666 * maint.c (_initialize_maint_cmds): Add missing \ in
10667 string-literal.
10668
a1a5b71e 10669For older changes see ChangeLog-2001
c906108c
SS
10670\f
10671Local Variables:
10672mode: change-log
10673left-margin: 8
10674fill-column: 74
10675version-control: never
10676End:
This page took 0.79912 seconds and 4 git commands to generate.