* ada-exp.y (yyname, yyrule): Remap global variables that appear
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4 when YYDEBUG is set to 1.
5 * c-exp.y: Likewise.
6 * f-exp.y: Likewise.
7 * jv-exp.y: Likewise.
8 * m2-exp.y: Likewise.
9 * p-exp.y: Likewise.
10
11 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
12
13 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
14 dependency list.
15 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
16 solib_svr4_fetch_link_map_offsets to
17 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
18 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
19 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
20 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
21 solib-svr4.o, and solib-legacy.o.
22 * config/i386/tm-nbsd.h: Include solib.h.
23
24 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
25
26 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
27 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
28 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
29 comment noting that this needs its own target configuration.
30 * config/i386/nbsd.mt: New file.
31 * config/i386/nbsdaout.mt: Remove.
32 * config/i386/nbsdelf.mt: Ditto.
33 * config/i386/tm-nbsdaout.h: Ditto.
34
35 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
36
37 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
38 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
39 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
40 tdep->sigtramp_end.
41 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
42 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
43 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
44
45 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
46
47 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
48 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
49 * i386-tdep.h (i386bsd_init_abi): New prototype.
50 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
51 function declaration.
52 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
53 for NetBSD-a.out or NetBSD-ELF.
54 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
55 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
56 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
57 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
58 and nbsd-tdep.h.
59 (i386nbsd_pc_in_sigtramp): New function.
60 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
61 i386nbsd_pc_in_sigtramp.
62 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
63 and i386nbsdelf_init_abi OS ABI handlers.
64 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
65 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
66
67 2002-09-02 Mark Kettenis <kettenis@gnu.org>
68
69 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
70 registers if the target really has them.
71
72 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
73
74 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
75 than nbsd-tdep.h.
76
77 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
78
79 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
80 list.
81 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
82 (alphanbsd_skip_sigtramp_frame): New functions.
83 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
84 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
85 to alphanbsd_sigcontext_addr.
86
87 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
88
89 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
90 list.
91 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
92 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
93 nbsd_pc_in_sigtramp.
94 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
95 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
96 * nbsd-tdep.c: Include gdb_string.h.
97 (nbsd_pc_in_sigtramp): New function.
98 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
99 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
100 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
101 ppcnbsd_pc_in_sigtramp.
102 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
103 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
104 shnbsd_pc_in_sigtramp.
105 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
106 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
107 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
108
109 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
110
111 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
112 watchpoints to NULL.
113 (insert_breakpoints): set val field of watchpoints if NULL.
114
115
116 2002-08-29 Jim Blandy <jimb@redhat.com>
117
118 * symtab.c (lookup_symbol_aux): In the cases where we find a
119 minimal symbol of an appropriate name and use its address to
120 select a symtab to read and search, use `name' (as passed to us)
121 as the demangled name when searching the symtab's global and
122 static blocks, not the minsym's name.
123
124 2002-08-29 Keith Seitz <keiths@redhat.com>
125
126 * stack.c (print_frame_info_base): Always set current_source_symtab
127 and current_source_line.
128
129 2002-08-29 Donn Terry <donnte@microsoft.com>
130
131 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
132
133 2002-08-28 Keith Seitz <keiths@redhat.com>
134
135 * stack.c (select_frame): Add FIXME concerning selected-frame
136 events.
137 (select_frame_command): Send selected-frame-level-changed
138 event notification, but only if the level actually changed.
139 (up_silently_base): Add selected-frame-level-changed event
140 notification.
141 (down_silently_base): Likewise.
142
143 2002-08-28 Andrew Cagney <ac131313@redhat.com>
144
145 * Makefile.in: Update dependencies for all gdb/*.c files.
146
147 2002-08-27 Tom Tromey <tromey@redhat.com>
148
149 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
150 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
151 Update dependencies.
152 * i387-tdep.c: Include gdb_string.h.
153 * osabi.c: Likewise.
154 * i386-linux-nat.c: Likewise.
155 * lin-lwp.c: Likewise.
156 * ax-gdb.c: Likewise.
157 * signals/signals.c: Likewise.
158 * jv-valprint.c: Likewise.
159 * p-lang.c: Likewise.
160 * c-valprint.c: Likewise.
161 * cp-abi.c: Likewise.
162
163 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
164
165 * cli/cli-script.h (copy_command_lines): Export.
166 * breakpoint.c: Include cli/cli-script.h.
167 * Makefile.in (breakpoint.o): Update dependencies.
168
169 2002-08-26 Joel Brobecker <brobecker@gnat.com>
170
171 * cli/cli-script.c (copy_command_lines): New function.
172 * defs.h (copy_command_lines): Export.
173 * testsuite/gdb.base/commands.exp: New tests for commands
174 attached to a temporary breakpoint, and for commands that
175 delete the breakpoint they are attached to.
176
177 2002-08-26 Michael Snyder <msnyder@redhat.com>
178
179 * breakpoint.c (bpstat_stop_status): Instead of copying the
180 pointer to the breakpoint commands struct, make a new copy
181 of the struct and point to that.
182 (bpstat_clear): Free the commands struct.
183 (bpstat_clear_actions): Free the commands struct.
184 (bpstat_do_actions): Free the command actions. Also execute
185 the local cleanups, instead of deleting them.
186 (delete_breakpoint): Leave the commands field of the bpstat
187 chain alone -- it will be freed later.
188
189 2002-08-26 Kevin Buettner <kevinb@redhat.com>
190
191 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
192 deleted in 2002-08-20 commit. This function is still used by
193 ppc-linux-nat.c.
194
195 2002-08-26 Keith Seitz <keiths@redhat.com>
196
197 * gdb-events.sh: Add selected-frame-level-changed event.
198 * gdb-events.c: Regenerated.
199 * gdb-events.h: Regenerated.
200
201 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
202
203 Fix PR gdb/393:
204 * inflow.c (terminal_save_ours): New function to save terminal
205 settings.
206 * inferior.h (terminal_save_ours): Declare.
207 * target.c (debug_to_terminal_save_ours): New function.
208 (cleanup_target): Defaults to_terminal_save_ours.
209 (update_current_target): Inherit to_terminal_save_ours.
210 (setup_target_debug): Set to_terminal_save_ours.
211 * target.h (target_terminal_save_ours): New to save terminal settings.
212 (target_ops): New member to_terminal_save_ours.
213 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
214 * hpux-thread.c (init_hpux_thread_ops): Likewise.
215 * inftarg.c (init_child_ops): Likewise.
216 * m3-nat.c (init_m3_ops): Likewise.
217 * procfs.c (init_procfs_ops): Likewise.
218 * wince.c (init_child_ops): Likewise.
219 * win32-nat.c (init_child_ops): Likewise.
220 * sol-thread.c (init_sol_thread_ops): Likewise.
221
222 2002-08-26 Mark Kettenis <kettenis@gnu.org>
223
224 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
225 use regcache_* functions.
226 (i386_gdbarch_init): Set store_return_value instead of
227 deprecated_store_return_value.
228
229 * regcache.c (regcache_raw_write_signed,
230 regcache_raw_write_unsigned): New functions.
231 * regcache.h (regcache_raw_write_signed,
232 regcache_raw_write_unsigned): New prototypes.
233
234 2002-08-25 Andrew Cagney <ac131313@redhat.com>
235
236 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
237 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
238 source file dependencies. Cleanup corresponding generator rules.
239
240 2002-08-25 Andrew Cagney <ac131313@redhat.com>
241
242 * regcache.h (register_offset_hack): Declare.
243 (regcache_cooked_read_using_offset_hack): Declare.
244 (regcache_cooked_write_using_offset_hack): Declare.
245
246 * regcache.c (register_offset_hack): New function.
247 (regcache_cooked_read_using_offset_hack): New function.
248 (regcache_cooked_write_using_offset_hack): New function.
249 (regcache_dump): Check that the registers, according to their
250 offset, are packed hard against each other.
251 (cooked_xfer_using_offset_hack): New function.
252
253 2002-08-25 Andrew Cagney <ac131313@redhat.com>
254
255 * regcache.c (struct regcache_descr): Add field register_type.
256 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
257 in as a parameter
258 (init_regcache_descr): Initialize register_type. Pass the descr
259 to init_legacy_regcache_descr. Use register_type instead of
260 REGISTER_VIRTUAL_TYPE.
261 (register_type): New function.
262 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
263 * regcache.h (register_type): Declare.
264
265 2002-08-25 Andrew Cagney <ac131313@redhat.com>
266
267 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
268 instead of deprecated_store_return_value. Fix fallout from
269 2002-08-23 Andrew Cagney <cagney@redhat.com>.
270
271 2002-08-25 Andrew Cagney <ac131313@redhat.com>
272
273 * regcache.c (max_register_size): New function.
274 (init_legacy_regcache_descr): Ensure that max_register_size is
275 large enough for REGISTER_VIRTUAL_SIZE.
276 * regcache.h (max_register_size): Declare.
277
278 2002-08-24 Andrew Cagney <ac131313@redhat.com>
279
280 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
281 store_return_value.
282 (e500_extract_return_value): Change type of valbuf pointer to
283 void.
284
285 2002-08-24 Mark Kettenis <kettenis@gnu.org>
286
287 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
288 workaround.
289
290 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
291 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
292 long long) to prevent compiler warning on 64-bit systems.
293
294 2002-08-23 Andrew Cagney <cagney@redhat.com>
295
296 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
297 (DEPRECATED_STORE_RETURN_VALUE): New method.
298 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
299 * gdbarch.h, gdbarch.c: Re-generate.
300
301 * values.c (set_return_value): Pass current_regcache to
302 STORE_RETURN_VALUE.
303 * arch-utils.h (legacy_store_return_value): Declare.
304 * arch-utils.c (legacy_store_return_value): New function.
305 (legacy_extract_return_value): Update parameters.
306
307 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
308 STORE_RETURN_VALUE.
309 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
310 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
311 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
312 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
313 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
314 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
315 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
316 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
317 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
318 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
319
320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
321 * i386-tdep.c (i386_extract_return_value): Update.
322 * arch-utils.c (legacy_extract_return_value): Update.
323 * frv-tdep.c (frv_gdbarch_init): Update.
324 * cris-tdep.c (cris_gdbarch_init): Update.
325 * d10v-tdep.c (d10v_gdbarch_init): Update.
326 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
327 * m68k-tdep.c (m68k_gdbarch_init): Update.
328 * mcore-tdep.c (mcore_gdbarch_init): Update.
329 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
330 * s390-tdep.c (s390_gdbarch_init): Update.
331 * sparc-tdep.c (sparc_gdbarch_init): Update.
332 * sh-tdep.c (sh_gdbarch_init): Update.
333 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
334 * v850-tdep.c (v850_gdbarch_init): Update.
335 * avr-tdep.c (avr_gdbarch_init): Update.
336 * ia64-tdep.c (ia64_gdbarch_init): Update.
337 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
338 * vax-tdep.c (vax_gdbarch_init): Update.
339 * alpha-tdep.c (alpha_gdbarch_init): Update.
340 * arm-tdep.c (arm_gdbarch_init): Update.
341 * mips-tdep.c (mips_gdbarch_init): Update.
342 * i386-tdep.c (i386_gdbarch_init): Update.
343
344 2002-08-23 Andrew Cagney <ac131313@redhat.com>
345
346 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
347 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
348
349 2002-08-24 Mark Kettenis <kettenis@gnu.org>
350
351 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
352 problems.
353
354 2002-08-23 Joel Brobecker <brobecker@gnat.com>
355
356 * infrun.c (handle_inferior_event): Move a comment outside of a
357 function call, in order to avoid indent reformatting this part
358 of the code in an unreadable way.
359
360 2002-08-23 Grace Sainsbury <graces@redhat.com>
361
362 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
363 when breakpoints fail. Move general breakpoint error messages to
364 insert_breakpoints.
365 * breakpoint.c (insert_breakpoints): Change warnings when
366 breakpoints are nto inserted to specify the type. Remove call to
367 memory_error when hardware breakpoints can't be inserted. Remove
368 multiple calls to warning so all messages are sent to the user at
369 once.
370 (delete_breakpoints): Make insert error messsages more explicit.
371
372 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
373
374 * ChangeLog: Move gdbserver entries after GDB 5.2 to
375 gdbserver/ChangeLog.
376
377 2002-08-23 Mark Kettenis <kettenis@gnu.org>
378
379 * i386-tdep.c: Include "objfiles.h".
380 (i386_svr4_init_abi): Set in_solib_call_trampoline and
381 skip_trampoline_code.
382 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
383 (CPLUS_MARKER): Define to '.'.
384
385 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
386 member.
387 (linux_corefile_thread_callback): Increase args->num_notes.
388 (linux_make_note_section): Initialize thread_args.num_notes, and
389 use it to determine whether notes for any threads were created.
390
391 2002-08-23 Donn Terry <donnte@microsoft.com>
392
393 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
394 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
395 and PCUNKILL.
396 (write_with_trace): Conditionalize out the switch branch handling
397 PCSHOLD if the corresponding macro is not defined. Likewise for
398 PRSABORT and PRSTOP.
399 This change will be needed by the Interix port.
400
401 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
402
403 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
404 write_register wherever possible instead of manipulating the
405 register bytes directly.
406 Assign VALUE_CONTENTS to a variable and use that.
407 The GPR numbers are now dependent on the architecture.
408
409 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
410
411 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
412 ev_offset fields.
413 (skip_prologue): Add support for BookE/e500 instructions.
414 (e500_extract_return_value): New function.
415 (frame_get_saved_regs): Add support for saving ev registers and
416 pseudo gpr's.
417 (e500_store_return_value): New function.
418 (rs6000_gdbarch_init): Move up default intializations of
419 deprecated_extract_return_value and store_return_value. Overwrite
420 init of store_return_value with e500 specific version.
421 Set extract_return_value for e500.
422
423 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
424
425 * blockframe.c (generic_call_dummy_register_unwind): Use
426 regcache_cooked_read to catch cases in which the variable is
427 stored in a pseudo register.
428
429 2002-08-22 Andrew Cagney <cagney@redhat.com>
430
431 * NEWS: Mention that the i960 has been made obsolete.
432 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
433 i960-tdep.c
434 (remote-nrom.o): Obsolete target.
435 (remote-nindy.o, i960-tdep.o): Ditto.
436 * remote-nrom.c: Make file obsolete.
437 * remote-nindy.c, remote-vx960.c: Ditto.
438 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
439 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
440 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
441 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
442 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
443 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
444 i960-*-vxworks* obsolete.
445 * MAINTAINERS: Note that the i960 is obsolete.
446
447 2002-08-21 Corinna Vinschen <vinschen@redhat.com
448
449 * aix-thread.c (aix_thread_detach): Disable thread debugging on
450 detach to allow reinitialization.
451
452 2002-08-22 Andrew Cagney <ac131313@redhat.com>
453
454 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
455 attempt).
456
457 2002-08-22 Jim Blandy <jimb@redhat.com>
458
459 * coffread.c (coff_symfile_read): Don't try to read the line
460 number table from disk if the image file doesn't have a symbol
461 table; we'll never actually look at the info anyway, and Windows
462 ships DLL's with bogus file offsets for the line number data.
463
464 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
465
466 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
467 an e500 executable.
468
469 2002-08-21 Michael Snyder <msnyder@redhat.com>
470
471 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
472 (MSYMBOL_SIZE): Replace macro with function.
473 (DEFAULT_MIPS_TYPE): Delete unused macro.
474 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
475 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
476
477 2002-08-21 Jim Blandy <jimb@redhat.com>
478
479 * valops.c (value_cast): Simplify and correct logic for doing a
480 static cast from a pointer to a base class to a pointer to a
481 derived class.
482
483 2002-08-21 Andrew Cagney <ac131313@redhat.com>
484
485 * infcmd.c (default_print_registers_info): Replace
486 do_registers_info.
487 (registers_info): Use gdbarch_print_registers_info instead of
488 DO_REGISTERS_INFO.
489 * inferior.h (default_print_registers_info): Replace
490 do_registers_info.
491 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
492 (DO_REGISTERS_INFO): Change to a predicate function.
493 * gdbarch.h, gdbarch.c: Regenerate.
494
495 2002-08-21 Keith Seitz <keiths@redhat.com>
496
497 * gdb-events.sh: Add target-changed event.
498 * gdb-events.c: Regenerated.
499 * gdb-events.c: Regenerated.
500 * valops.c (value_assign): Add target-changed event notification
501 to inlval_register, lval_memory, and lval_reg_frame_relative.
502
503 2002-08-21 Joel Brobecker <brobecker@gnat.com>
504
505 * NEWS: Add an entry regarding the improvement of the next/step
506 operation on Alpha Tru64 multi-processor machines.
507
508 2002-08-21 Andrew Cagney <ac131313@redhat.com>
509
510 * Makefile.in: Update dependencies for mi/ cli/ and tui/
511 directores.
512 * Makefile.in: Update all _h macro definitions.
513 * Makefile.in (install-gdbtk): Move to install section.
514 (rdi-share/libangsd.a): Move to end of file.
515
516 2002-08-19 Andrew Cagney <ac131313@redhat.com>
517
518 * frame.c (frame_register_unwind): When a register, set addrp to
519 the register's byte.
520
521 2002-08-20 Michael Snyder <msnyder@redhat.com>
522
523 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
524 used locally, so move them from the target machine header to here.
525 (mips_set_processor_type, mips_register_name, mips32_next_pc,
526 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
527 Make static.
528 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
529
530 2002-08-20 Andrew Cagney <cagney@redhat.com>
531
532 * NEWS: Mention that the Apollo line was made obsolete.
533 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
534 m68*-hp-hpux* obsolete.
535 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
536 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
537 * buildsym.c (make_blockvector): Make static.
538 * buildsym.h (make_blockvector): Make extern declaration obsolete.
539 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
540 (ALLDEPFILES): Remove dstread.c.
541 (dstread.o): Obsolete make rule.
542 * dstread.c: Makefile obsolete.
543 * dst.h: Ditto.
544 * config/m68k/hp300hpux.mt: Ditto.
545 * config/m68k/hp300hpux.mh: Ditto.
546 * config/m68k/hp300bsd.mt: Ditto.
547 * config/m68k/hp300bsd.mh: Ditto.
548 * config/m68k/apollo68b.mt: Ditto.
549 * config/m68k/apollo68v.mh: Ditto.
550 * config/m68k/apollo68b.mh: Ditto.
551
552 2002-08-20 Michael Snyder <msnyder@redhat.com>
553
554 * mips-tdep.c (mips_in_return_stub): Make static.
555 (mips_gdbarch_init): Set in_solib_return_trampoline.
556 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
557
558 2002-08-20 Michael Snyder <msnyder@redhat.com>
559
560 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
561 * gdbarch.c, gdbarch.h: Regenerate.
562 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
563 Add.
564 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
565
566 2002-08-20 Michael Snyder <msnyder@redhat.com>
567
568 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
569 (mips_gdbarch_init): Set skip_trampoline_code,
570 in_solib_call_trampoline.
571 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
572 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
573
574 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
575
576 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
577
578 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
579 vector type for ev registers.
580 (e500_pseudo_register_read): New function.
581 (e500_pseudo_register_write): New function.
582 (e500_dwarf2_reg_to_regnum): New function.
583 (PPC_UISA_NOFP_SPRS): New macro.
584 (PPC_EV_REGS): New macro.
585 (PPC_GPRS_PSEUDO_REGS): New macro.
586 (registers_e500): New register set for e500.
587 (variants): Add e500 variant.
588 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
589 before setting architectural dependent variations. Initialize ev
590 registers numbers. Add case for e500 architecture. Set the
591 number of pseudo registers.
592
593 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
594
595 * rs6000-tdep.c: Clean up comments.
596
597 2002-08-20 Andrew Cagney <cagney@redhat.com>
598
599 * h8300-tdep.c: Re-indent file.
600
601 2002-08-20 Jim Blandy <jimb@redhat.com>
602
603 * Makefile.in (LDFLAGS): Allow the configure script to establish a
604 default for this.
605
606 2002-08-20 Keith Seitz <keiths@redhat.com>
607
608 * breakpoints.c (watch_command_1): Use internal breakpoint
609 when setting a watchpoint_scope breakpoint.
610
611 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
612
613 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
614 (build_builtin_type_vec64i): Ditto.
615 (build_builtin_type_vec128): Ditto.
616 (build_builtin_type_vec128i): Ditto.
617
618 2002-08-19 Michael Snyder <msnyder@redhat.com>
619
620 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
621 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
622 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
623 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
624 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
625 CALL_DUMMY_ADDRESS): Delete.
626 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
627 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
628 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
629 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
630 push_return_address.
631 (mips_register_raw_size, mips_eabi_use_struct_convention,
632 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
633 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
634 mips_init_extra_frame_info, mips_eabi_push_arguments,
635 mips_n32n64_push_arguments, mips_push_return_address,
636 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
637 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
638
639 2002-08-19 Michael Snyder <msnyder@redhat.com>
640
641 * mips-tdep.c (mips_frame_num_args): New function.
642 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
643 frame_saved_pc, frame_args_address, frame_locals_address,
644 frame_num_args, and frame_args_skip.
645 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
646 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
647 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
648 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
649
650 2002-08-20 Michael Snyder <msnyder@redhat.com>
651
652 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
653 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
654 * mips-tdep.c (mips_store_struct_return): New function.
655 (mips_extract_struct_value_address): New function.
656 (mips_gdbarch_init): Set store_struct_return and
657 extract_struct_value_address.
658
659 2002-08-20 David Carlton <carlton@math.stanford.edu>
660
661 * dwarf2read.c (dwarf2_build_psymtabs): Check that
662 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
663 (read_file_scope): Check that line_header is nonzero before
664 decoding macro information.
665
666 2002-08-20 Mark Kettenis <kettenis@gnu.org>
667
668 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
669 flag the general-purpose registers as floating-point on targets
670 that don't support the floating-point registers.
671
672 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
673
674 * rs6000-tdep.c (altivec_register_p): Delete.
675 (rs6000_do_altivec_registers): Delete.
676 (rs6000_altivec_registers_info): Delete.
677 (rs6000_do_registers_info): Delete.
678 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
679 (rs6000_gdbarch_init): Remove setting of do_registers_info.
680
681 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
682
683 * infcmd.c (do_registers_info): Print vector registers in hex
684 format only.
685 (print_vector_info): Check that printing registers
686 makes sense.
687 (print_float_info): Ditto.
688
689 2002-08-20 Andrew Cagney <ac131313@redhat.com>
690
691 * mips-tdep.c (mips_gdbarch_init): Update.
692 (mips_o32_extract_return_value): Rewrite.
693 (mips_o32_store_return_value): Rewrite.
694 (mips_o32_xfer_return_value): New function.
695 (mips_xfer_register): Tweak debug print message. Allow for
696 buf_offset when dumping the value transfered.
697
698 2002-08-20 Andrew Cagney <ac131313@redhat.com>
699
700 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
701 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
702 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
703 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
704 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
705
706 2002-08-14 Michael Snyder <msnyder@redhat.com>
707
708 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
709
710 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
711
712 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
713 register.
714 (P): New macro to define a register as a pseudo register.
715 (R, R4, R8, R16, FR32, R64, R0): Updated.
716 (struct variant): Add new fields for number of pseudo registers
717 and number of total registers.
718 (tot_num_registers): New macro replacing....
719 (num_registers): ...deleted macro.
720 (num_registers): New function.
721 (num_pseudo_registers): New function.
722 (variants): Update all variants to intialize new fields correctly.
723 Postpone initialization of number of pseudo regs and real regs.
724 (init_variants): New function.
725 (rs6000_gdbarch_init): Initialize variants. Update calculation of
726 registers offsets.
727
728 2002-08-19 David Carlton <carlton@math.stanford.edu>
729
730 * valops.c (search_struct_field): Change error message to treat
731 return value of 0 from value_static_field as meaning that field is
732 optimized out.
733 (value_struct_elt_for_reference): Ditto.
734 * values.c (value_static_field): Treat an unresolved location the
735 same as a nonexistent symbol. Fix PR gdb/635.
736 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
737 enclosed. Fix PR gdb/574.
738 * MAINTAINERS: Add self to Write After Approval list.
739
740 2002-08-19 Andrew Cagney <ac131313@redhat.com>
741
742 * mips-tdep.c (mips_xfer_register): New function.
743 (mips_n32n64_extract_return_value): Rewrite.
744 (mips_gdbarch_init): For N32 and N64, set extract_return_value
745 instead of deprecated_extract_return_value.
746
747 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
748
749 * rs6000-tdep.c (TDEP): Delete macro.
750 (branch_dest): Replace use of TDEP macro with its body.
751 (rs6000_pop_frame): Ditto.
752 (rs6000_push_arguments): Ditto.
753 (rs6000_skip_trampoline_code): Ditto.
754 (rs6000_frame_saved_pc): Ditto.
755 (rs6000_frame_chain): Ditto.
756 (rs6000_register_name): Ditto.
757 (rs6000_register_byte): Ditto.
758 (rs6000_register_raw_size): Ditto.
759 (rs6000_register_virtual_type): Ditto.
760 (rs6000_register_convertible): Ditto.
761 (rs6000_convert_from_func_ptr_addr): Ditto.
762
763 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
764
765 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
766 conditionally.
767 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
768 MIPS_LINUX_JB_ELEMENT_SIZE.
769 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
770 for MAX_REGISTER_RAW_SIZE arrays.
771 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
772 MIPS_LINUX_JB_ELEMENT_SIZE.
773
774 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
775
776 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
777
778 2002-08-19 Aidan Skinner <aidan@velvet.net>
779
780 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
781 ada-valprint.c ada-tasks.c.
782 (YYFILES): Add ada-exp.y.
783 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
784 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
785 (ada-exp.tab.o): New target.
786
787 2002-08-18 Andrew Cagney <ac131313@redhat.com>
788
789 * regcache.c (regcache_xfer_part): New function.
790 (regcache_raw_read_part): New function.
791 (regcache_raw_write_part): New function.
792 (regcache_cooked_read_part): New function.
793 (regcache_cooked_write_part): New function.
794 * regcache.h (regcache_raw_read_part): Declare.
795 (regcache_raw_write_part): Declare.
796 (regcache_cooked_read_part): Declare.
797 (regcache_cooked_write_part): Declare.
798
799 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
800
801 * remote.c (remote_open_1): Add async_p.
802 (remote_async_open_1): Delete.
803 (open_remote_target): Delete.
804 (remote_open, extended_remote_open): Update calls to remote_open_1.
805 (remote_async_open, extended_remote_async_open): Call
806 remote_open_1 instead of remote_async_open_1.
807
808 2002-08-19 Mark Kettenis <kettenis@gnu.org>
809
810 * blockframe.c: Fix a few coding standard violations.
811
812 2002-08-19 Mark Kettenis <kettenis@gnu.org>
813
814 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
815 here from ...
816 * config/i386/tm-i386sco5.h: ... here. File removed.
817 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
818
819 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
820 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
821 (TM_FILE): Set to tm-i386.h.
822 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
823 * config/i386/tm-i386v.h: Remove file.
824 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
825 instead of "i386/tm-i386v.h".
826 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
827 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
828 "i386/tm-i386v.h".
829 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
830 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
831 "i386/tm-i386.h".
832
833 2002-08-18 Mark Kettenis <kettenis@gnu.org>
834
835 * config/i386/nm-i386v.h: Add protection against
836 multiple-inclusion.
837 (i386_register_u_addr): Remove prototype.
838 (register_u_addr): New prototype.
839 (REGISTER_U_ADDR): Redefine accordingly.
840 * i386v-nat.c: Improve several comments.
841 (i386_register_u_addr): Change signature and rename to
842 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
843 ubase variable.
844
845 2002-08-18 Andrew Cagney <ac131313@redhat.com>
846
847 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
848 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
849 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
850 deprecated_extract_return_value.
851 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
852 rename mips_o32o64_push_arguments.
853 (mips_gdbarch_init): Update.
854 (mips_extract_return_value): Delete.
855 (mips_o32_extract_return_value): Clone mips_extract_return_value.
856 (mips_o64_extract_return_value): Clone mips_extract_return_value.
857 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
858 (mips_n32n64_extract_return_value): Clone
859 mips_extract_return_value.
860 (mips_store_return_value): Delete.
861 (mips_o32_store_return_value): Clone mips_store_return_value.
862 (mips_o64_store_return_value): Clone mips_store_return_value.
863 (mips_eabi_store_return_value): Clone mips_store_return_value.
864 (mips_n32n64_store_return_value): Clone mips_store_return_value.
865
866 2002-08-18 Aidan Skinner <aidan@velvet.net>
867
868 * ada-lang.c: Use gdb_string.h instead of <string.h>.
869 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
870
871 2002-08-18 Aidan Skinner <aidan@velvet.net>
872
873 * ada-lang.c: Run through gdb_indent.sh.
874 * ada-lang.h: Run through gdb_indent.sh.
875 * ada-tasks.c: Run through gdb_indent.sh.
876 * ada-typeprint.c: Run through gdb_indent.sh.
877 * ada-valprint.c: Run through gdb_indent.sh.
878
879 2002-08-18 Andrew Cagney <ac131313@redhat.com>
880
881 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
882 ABI.
883
884 2002-08-18 Mark Kettenis <kettenis@gnu.org>
885
886 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
887
888 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
889 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
890
891 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
892 write_register_gen instead of write_register_bytes.
893
894 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
895 i[3456]-*-osf1mk* configurations have been made obsolete.
896 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
897 i[3456]86-*-osf1mk* hosts obsolete.
898 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
899 targets obsolete.
900 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
901 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
902 config/i386/i386m3.mt, config/i386/nm-m3.h,
903 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
904 config/i386/i386mk.mh, config/i386/i386mk.mt,
905 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
906 obsolete.
907 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
908 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
909 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
910
911 2002-08-18 Andrew Cagney <ac131313@redhat.com>
912
913 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
914 (hppa_value_returned_from_stack): Declare.
915 (hppa_extract_return_value): Declare.
916 * config/pa/hppa.mt: New file.
917 * configure.tgt: Recognize hppa*-*-*.
918 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
919
920 2002-08-18 Mark Kettenis <kettenis@gnu.org>
921
922 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
923 comment.
924
925 2002-08-17 Mark Kettenis <kettenis@gnu.org>
926
927 * top.c (gdb_rl_operate_and_get_next): Make sure
928 operate-and-get-next functions correctly even when the history
929 list is completely filled.
930
931 2002-08-18 Andrew Cagney <ac131313@redhat.com>
932
933 * MAINTAINERS (Target Instruction Set Architectures): Rename
934 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
935 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
936 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
937 already listed under Host/Native.
938
939 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
940 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
941 mips*-*-*.
942
943 2002-08-17 Andrew Cagney <ac131313@redhat.com>
944
945 * config/ia64/ia64.mt: New file.
946 * config/alpha/alpha.mt: New file.
947 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
948 ia64-linux-gnu. Mention that ia64-elf is broken.
949 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
950
951 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
952
953 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
954 generic_func_frame_valid instead of func_frame_valid.
955
956 2002-08-16 Joel Brobecker <brobecker@gnat.com>
957
958 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
959 procfs appears to be broken when debugging on multi-processor
960 machines. So enable software single stepping in order to avoid
961 using the procfs interface to do next/step operations, using
962 internal breakpoints instead.
963
964 * infrun.c (handle_inferior_event): Readjust the stop_pc by
965 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
966 make this pc address equal to the value it would have if the
967 system stepping capability was used. Also set a new flag used
968 to ensure that we don't readjust the PC one more time later.
969
970 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
971 address by DECR_PC_AFTER_BREAK when software single step is
972 in use for this architecture, as this has already been taken
973 care of in handle_inferior_event().
974
975 2002-08-16 Joel Brobecker <brobecker@gnat.com>
976
977 * infrun.c (handle_inferior_event): Minor reformatting, to make
978 a rather long condition expression easier to read.
979
980 2002-08-16 Andrew Cagney <ac131313@redhat.com>
981
982 * Makefile.in (gdbtk.o): Move to end of file.
983 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
984 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
985 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
986 (gdbtk-wrapper.o, gdbres.o): Ditto.
987
988 2002-08-16 Andrew Cagney <ac131313@redhat.com>
989
990 * Makefile.in (copying.o): Separate out compile rule.
991 (hpux-thread.o, procfs.o, signals.o): Ditto.
992 (v850ice.o, z8k-tdep.o): Ditto.
993 (tui-file.o): Move to TUI section.
994 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
995 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
996
997 2002-08-16 Joel Brobecker <brobecker@gnat.com>
998
999 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1000 skip_trampoline_code, for better namespace-proofing.
1001
1002 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1003
1004 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1005
1006 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1007
1008 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1009
1010 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1011 signal, check whether we hit a breakpoint before checking for a
1012 single step breakpoint. Otherwise, GDB fails to notice that a
1013 breakpoint has been hit when stepping onto a breakpoint.
1014
1015 2002-08-16 Keith Seitz <keiths@redhat.com>
1016
1017 * gdb-events.sh (clear_gdb_event_hooks): New function.
1018 * gdb-events.c: Regenerate.
1019 * gdb-events.h: Regenerate.
1020
1021 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1022
1023 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1024 not_a_sw_breakpoint.
1025 * breakpoint.h (bpstat_stop_status): Add parameter names.
1026
1027 2002-08-16 Grace Sainsbury <graces@redhat.com>
1028
1029 * remote.c (remote_insert_hw_breakpoint)
1030 (remote_remove_hw_breakpoint): Fix calculation of length field
1031 for Z-packet.
1032
1033 2002-08-15 Michael Snyder <msnyder@redhat.com>
1034
1035 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1036 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1037 (supply_fpregset): Ditto.
1038
1039 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1040 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1041 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1042 (TARGET_READ_SP): Delete.
1043 (DO_REGISTERS_INFO): Delete.
1044 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1045 Delete.
1046 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1047 from macros to functions.
1048
1049 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1050 (mips_register_convertible, mips_register_convert_to_virtual,
1051 mips_register_convert_to_raw): Make static.
1052 (mips_read_sp): New function.
1053 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1054 (mips_do_registers_info): Make static.
1055 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1056 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1057 (mips_register_convert_from_type, mips_register_convert_to_type):
1058 New functions.
1059 (mips_gdbarch_init): Set up function_start_offset,
1060 register_virtual_size, pc_in_sigtramp.
1061
1062 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1063
1064 * infcmd.c (vector_info): New function.
1065 (_initialize_infcmd): Add command "info vector".
1066 (print_vector_info): New function.
1067
1068 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1069 * gdbarch.h, gdbarch.c: Regenerate.
1070
1071 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1072
1073 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1074 ``print_all''. Only print vector registers when ``print_all''.
1075
1076 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1077
1078 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1079 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1080
1081 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1082 Add `args' parameter.
1083 * gdbarch.h, gdbarch.c: Regenerate.
1084
1085 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1086
1087 * infcmd.c (float_info): Call print_float_info.
1088 (print_float_info): New function. By default, print the
1089 floating-point registers.
1090
1091 * arch-utils.h (default_print_float_info): Delete declaration.
1092 * arch-utils.c (default_print_float_info): Delete function.
1093
1094 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1095
1096 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1097 out define.
1098
1099 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1100 FRAME.
1101
1102 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1103 * configure.host: Make i[3456]86-*-aix host obsolete.
1104 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1105 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1106 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1107 config/i386/xm-i386aix.h: Make files obsolete.
1108 * i386aix-nat.c: Make file obsolete.
1109 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1110 (i386aix-nat.o): Make target obsolete.
1111
1112 * config/i386/nm-gnu.h: Removed.
1113 * config/i386/nm-i386gnu.h: New file.
1114 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1115 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1116 Moved here from ...
1117 * config/i386/tm-i386gnu.h: ... here. Removed.
1118 * config/i386/xm-i386gnu.h: Removed.
1119 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1120 (NAT_FILE): Set to nm-i386gnu.h.
1121 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1122 * i386-tdep.c: New file.
1123 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1124 (i386gnu-tdep.o): Specify dependencies.
1125
1126 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1127
1128 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1129 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1130 Adjust a few comments to reflect reality a bit closer.
1131 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1132 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1133 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1134 target_insert_watchpoint, target_remove_watchpoint):
1135 Move defines to ...
1136 * config/i386/nm-i386sco5.h: ... here.
1137 (kernel_u_size): Add prototype. Improve a few comments and add
1138 protection against multiple inclusion.
1139
1140 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1141 out define.
1142
1143 * uw-thread.c (SP_ARG0): Define if not already defined.
1144 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1145
1146 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1147
1148 * config/i386/tm-i386.h: Don't include "regcache.h".
1149
1150 * i387-tdep.h (i387_print_float_info): New prototype.
1151 * i387-tdep.c (print_i387_value, print_i387_ext,
1152 print_i387_status_word, print_i387_control_word): Add `struct
1153 ui_file *' argument and use it for output.
1154 (i387_print_float_info): Renamed from i387_float_info. Add
1155 `struct gdbarch *' and `struct ui_file *' arguments and use the
1156 latter for output.
1157 * i386-tdep.c: Include "i387-tdep.h".
1158 (i386_gdbarch_init): Set print_float_info.
1159 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1160 (FLOAT_INFO): Remove define.
1161
1162 2002-08-13 Michael Snyder <msnyder@redhat.com>
1163
1164 * mips-tdep.c (mips_push_arguments): Rename to
1165 mips_eabi_push_arguments, and tune for EABI.
1166 (MIPS_REGS_HAVE_HOME_P): Delete.
1167 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1168 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1169 Delete references to mips_regs_have_home_p.
1170
1171 2002-08-14 Keith Seitz <keiths@redhat.com>
1172
1173 * Makefile.in (install-gdbtk): Create insight plugin directory.
1174 Install plugins.tcl file.
1175
1176 2002-08-14 Keith Seitz <keiths@redhat.com>
1177
1178 * configure.in: Move SUBDIRS to near top of the file so that
1179 --enable options may add things to it.
1180 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1181 * configure: Regenerate.
1182
1183 2002-08-13 Michael Snyder <msnyder@redhat.com>
1184
1185 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1186 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1187 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1188
1189 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1190
1191 * vax-tdep.c (vax_get_saved_register): Delete function.
1192 (vax_gdbarch_init): Update.
1193 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1194 (ns32k_gdbarch_init): Update.
1195 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1196 (alpha_gdbarch_init): Update.
1197
1198 2002-08-13 Andrew Cagney <cagney@redhat.com>
1199
1200 * regcache.c (init_regcache_descr): Overallocate the
1201 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1202 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1203 nr_raw_registers.
1204 (set_register_cached): Add range checking assertions. Use
1205 current_regcache.
1206
1207 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1208
1209 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1210 numbers for MMX registers.
1211
1212 2002-08-13 Andrew Cagney <cagney@redhat.com>
1213
1214 * i386-tdep.c (i386_gdbarch_init): Use
1215 generic_unwind_get_saved_register.
1216
1217 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1218
1219 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1220 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1221 target vector.
1222 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1223 Delete. Add comment regarding this now-deleted target method.
1224
1225 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1226
1227 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1228 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1229 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1230 real PC and the page number (if it's within the memory bank window).
1231 (m68hc11_pseudo_register_write): Likewise when saving.
1232 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1233 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1234 (m68hc11_register_raw_size): And use 32-bit for it.
1235 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1236 16K memory bank is used by the prog; also use the virtual pc.
1237
1238 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1239
1240 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1241 (m68hc11_gdbarch_init): Install it in gdbarch.
1242 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1243 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1244 (MSYMBOL_SIZE): New for documentation.
1245 (insn_return_kind): Enum to specify how a function returns.
1246 (frame_extra_info): Cleanup and record the return mode.
1247 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1248 register in address computation.
1249 (m68hc11_get_return_insn): New to obtain the return instruction used
1250 by the function.
1251 (m68hc11_frame_init_saved_regs): Take into account the return
1252 instruction used by the function for far and interrupt functions.
1253 (m68hc11_init_extra_frame_info): Take into account page register.
1254 (m68hc11_frame_args_address): Adjust according to the return mode.
1255 (show_regs): Print page register only when it's used.
1256
1257 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1258
1259 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1260 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1261 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1262 registers.
1263 (m68hc11_register_raw_size): Likewise.
1264
1265 2002-08-13 Andrew Cagney <cagney@redhat.com>
1266
1267 * i386-tdep.c (i386_register_name): Handle mmx registers.
1268 (mmx_regnum_p): New function.
1269 (i386_mmx_names): New array.
1270 (mmx_num_regs): New variable.
1271 (i386_pseudo_register_read): New function.
1272 (i386_pseudo_register_write): New function.
1273 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1274
1275 * regcache.c (regcache_raw_read_unsigned): New function.
1276 (regcache_raw_read_signed): New function.
1277 * regcache.h (regcache_raw_read_unsigned): Declare.
1278 (regcache_raw_read_signed): Declare.
1279
1280 2002-08-13 Andrew Cagney <cagney@redhat.com>
1281
1282 * regcache.c (regcache_raw_read_as_address): Delete function.
1283 (regcache_cooked_read_signed): New function.
1284 (regcache_cooked_read_unsigned): New function.
1285 * regcache.h (regcache_cooked_read_signed): Declare.
1286 (regcache_cooked_read_unsigned): Declare.
1287 (regcache_raw_read_as_address): Delete declaration.
1288
1289 * blockframe.c (generic_read_register_dummy): Use
1290 regcache_cooked_read_unsigned.
1291 * i386-tdep.c (i386_extract_struct_value_address): Use
1292 regcache_cooked_read_unsigned.
1293
1294 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1295
1296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1297 double sizes according to ELF ABI flags.
1298 (gdbarch_tdep): Record elf_flags.
1299
1300 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1301
1302 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1303 (m6812_prolog): They can appear in 68HC12 function prologue.
1304 (m68hc11_frame_chain): Cleanup.
1305
1306 2002-08-12 Andrew Cagney <cagney@redhat.com>
1307
1308 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1309 declarations.
1310 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1311 (i386_linux_register_raw_size): Delete function.
1312 (i386_linux_init_abi): Update.
1313 * i386-tdep.c (i386_register_raw_size): Delete function.
1314 (i386_register_byte): Delete function.
1315 (i386_gdbarch_init): Update.
1316 (i386_register_size): Delete array.
1317 (i386_register_offset): Delete array.
1318
1319 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1320 (REGISTER_RAW_SIZE): Delete macro.
1321 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1322 (REGISTER_BYTE): Delete macro.
1323
1324 2002-08-11 Aidan Skinner <aidan@velvet.net>
1325
1326 * ada-lang.c (ada_lookup_partial_symbol)
1327 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1328 prototype names so that grep ^func works properly.
1329
1330 * ada-lang.c (ada_array_element_type)
1331 (ada_lookup_partial_symbol): Fix typos in parameter list.
1332
1333 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1334 Fix prototype names so that grep ^func works properly.
1335
1336 2002-08-10 Andrew Cagney <cagney@redhat.com>
1337 Elena Zannoni <ezannoni@redhat.com>
1338 Martin M. Hunt <hunt@redhat.com>
1339
1340 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1341 (build_builtin_type_vec128i): Set the vector bit.
1342 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1343 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1344 (build_builtin_type_vec64): New function.
1345 (build_builtin_type_vec64i): New function.
1346 (build_gdbtypes): Initialize builtin_type_vec64 and
1347 builtin_type_vec64i.
1348
1349 2002-08-09 Andrew Cagney <cagney@redhat.com>
1350
1351 * regcache.c (regcache_dump): Compare the register offset
1352 with REGISTER_BYTE.
1353 * arch-utils.c (generic_register_byte): New function.
1354 * arch-utils.h (generic_register_byte): Declare.
1355 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1356 * gdbarch.h, gdbarch.c: Regenerate.
1357
1358 2002-08-09 Andrew Cagney <cagney@redhat.com>
1359
1360 * regcache.c: Include "gdbcmd.h"
1361 (_initialize_regcache): Add commands "maintenance print
1362 registers", "maintenance print raw-registers" and "maintenance
1363 print cooked-registers".
1364 (enum regcache_dump_what): Define.
1365 (dump_endian_bytes): New function.
1366 (regcache_dump): New function.
1367 (regcache_print): New function.
1368 (maintenance_print_registers): New function.
1369 (maintenance_print_raw_registers): New function.
1370 (maintenance_print_cooked_registers): New function.
1371 * Makefile.in (regcache.o): Update dependencies.
1372
1373 2002-08-09 Michael Snyder <msnyder@redhat.com>
1374
1375 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1376 (mips_push_arguments): Correct some comments. Use paddr_nz
1377 for printing addresses in debug output. Replace static
1378 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1379 (mips_n32n64_push_arguments): New function, cloned from
1380 mips_push_arguments and tuned for the n32/n64 ABI.
1381 (mips_push_register): Buffer needs dynamic allocation.
1382 (mips_print_register): Ditto.
1383 (do_gp_register_row): Ditto.
1384 (mips_store_return_value): Ditto.
1385 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1386
1387 2002-08-09 Don Howard <dhoward@redhat.com>
1388
1389 * memattr.c (mem_info_command): Print special case of upper bound
1390 as max CORE_ADDR + 1.
1391
1392 2002-08-08 Michael Snyder <msnyder@redhat.com>
1393
1394 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1395 returns structs by ref if they're too big to fit in two registers.
1396
1397 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1398
1399 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1400 saved regs value.
1401 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1402 mips_find_saved_regs().
1403 (mips_pop_frame): Likewise.
1404
1405 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1406
1407 * blockframe.c (frame_saved_regs_register_unwind): Revise
1408 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1409 frames are in use.
1410
1411 2002-08-09 Grace Sainsbury <graces@redhat.com>
1412
1413 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1414 T-packets; the 'a' is not taken as a register number.
1415 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1416 (remote_stopped_data_address): New functions; add to target
1417 vector.
1418 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1419 prototypes to match other implementations of this
1420 function. replace integer argument with pointer -- the length
1421 field in the Z-packet is the length of what is pointed to or 1 if
1422 pointer is null. Add to target vector.
1423 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1424 target vector.
1425
1426 From Mark Salter:
1427 * remote.c (remote_wait): Add support to extract optional
1428 watchpoint information from T-packet. Ignore unrecognized
1429 optional info in T-packet.
1430 (remote_async_wait): Ditto.
1431
1432 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1433
1434 * cli/cli-dump.c: Change fopen modes to use binary open modes
1435 as defined in include/fopen-bin.h throughout.
1436
1437 2002-08-08 Michael Snyder <msnyder@redhat.com>
1438
1439 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1440
1441 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1442
1443 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1444 assertion failure by returning early after a warning.
1445
1446 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1447
1448 * mips-tdep.c (mips_find_saved_regs): Make static.
1449 (mips_frame_init_saved_regs): New function.
1450 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1451 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1452 (mips_find_saved_regs): Delete declaration.
1453
1454 2002-08-08 Grace Sainsbury <graces@redhat.com>
1455
1456 * remote.c (remote_wait, remote_async_wait): Change
1457 thread_num from int to ULONGEST.
1458 (unpack_varlen_hex): Change result parameter from
1459 int * to ULONGEST *.
1460
1461 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1462
1463 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1464 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1465 powerpc*-*-*.
1466 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1467
1468 2002-08-08 Andrew Cagney <cagney@redhat.com>
1469
1470 * gcore.c (override_derive_stack_segment): Delete variable.
1471 (preempt_derive_stack_segment): Delete function.
1472 (derive_stack_segment): Delete function.
1473 (default_derive_stack_segment): Renamed to derive_stack_segment.
1474 (override_derive_heap_segment): Delete variable.
1475 (preempt_derive_heap_segment): Delete function.
1476 (derive_heap_segment): Delete function.
1477 (default_derive_heap_segment): Rename to derive_heap_segment.
1478
1479 2002-08-06 Michael Snyder <msnyder@redhat.com>
1480
1481 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1482 * mips-tdep.c (mips_EABI_use_struct_convention,
1483 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1484 New functions. (mips_use_struct_convention): Delete.
1485 (mips_gdbarch_init): set use_gdbarch_convention.
1486
1487 2002-08-06 Michael Snyder <msnyder@redhat.com>
1488
1489 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1490 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1491 mips_o32_reg_struct_has_addr): New functions.
1492 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1493
1494 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1495
1496 * regcache.c (pseudo_register): Delete function.
1497 (fetch_register): Delete function.
1498 (store_register): Delete function.
1499 (regcache_raw_read, legacy_read_register_gen): Use
1500 target_fetch_registers instead of fetch_register.
1501 (legacy_write_register_gen, regcache_raw_write): Use
1502 target_store_register instead of store_register.
1503 (write_register_bytes): Ditto.
1504
1505 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1506 (STORE_PSEUDO_REGISTER): Delete.
1507 * gdbarch.h, gdbarch.c: Regenerate.
1508
1509 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1510
1511 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1512 write dump file binary.
1513
1514 2002-08-05 Michael Snyder <msnyder@redhat.com>
1515
1516 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1517 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1518 (mips_gdbarch_init): Set N32 target to be mips64.
1519
1520 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1521
1522 * frame.c (find_saved_register): Break out of loop once saved
1523 register address is found. Don't mention sparc in loop comment
1524 anymore.
1525
1526 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1527
1528 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1529 mips_default_saved_regsize to 8.
1530
1531 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1532
1533 * gcore.c: Do not include <sys/procfs.h>.
1534 * Makefile.in (gcore.o): Update dependencies.
1535
1536 2002-08-06 Andrew Cagney <cagney@redhat.com>
1537
1538 * configure.tgt: Make arc-*-* obsolete.
1539 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1540 * MAINTAINERS: Make arc-elf obsolete.
1541 * arc-tdep.c: Make file obsolete.
1542 * config/arc/arc.mt: Ditto.
1543 * config/arc/tm-arc.h: Ditto.
1544
1545 2002-08-05 Theodore A. Roth <troth@verinet.com>
1546
1547 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1548
1549 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1550
1551 * mcore-tdep.c (mcore_gdbarch_init): Use
1552 generic_unwind_get_saved_register instead of
1553 generic_get_saved_register.
1554 * v850-tdep.c (v850_gdbarch_init): Ditto.
1555 * frv-tdep.c (frv_gdbarch_init): Ditto.
1556 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1557 * s390-tdep.c (s390_gdbarch_init): Ditto.
1558 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1559 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1560 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1561
1562 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1563
1564 * objfiles.h: Add missing #include "symfile.h"
1565
1566 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1567
1568 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1569
1570 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1571 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1572 of FIELD_BITSIZE.
1573
1574 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1575
1576 * NEWS: Cleanup and nitpick.
1577
1578 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1579
1580 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1581
1582 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1583
1584 * Makefile.in (gdbtk-bp.o): Update dependencies.
1585 (gdbtk-register.o): Ditto.
1586 (gdbtk-varobj.o): Ditto.
1587
1588 2002-08-03 Andrew Cagney <cagney@redhat.com>
1589
1590 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1591 m68hc11_fetch_pseudo_register.
1592 (m68hc11_pseudo_register_write): Replace
1593 m68hc11_store_pseudo_register.
1594 (m68hc11_gdbarch_init): Update.
1595
1596 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1597
1598 * gdbarch.sh: Include "gdb_string.h".
1599 * gdbarch.c: Regenerate.
1600
1601 * regcache.c: Include "gdb_string.h".
1602 * ax-general.c: Ditto.
1603 * varobj.c: Ditto.
1604 * std-regs.c: Ditto.
1605 * fbsd-proc.c: Ditto.
1606 * thread.c: Ditto.
1607
1608 * Makefile.in (regcache.o): Update dependencies.
1609 (thread.o, gdbarch.o): Ditto.
1610 (ax-general.o, gdbarch.o): Ditto.
1611 (varobj.o, std-regs.o): Ditto.
1612 (fbsd-proc.o): Specify dependencies.
1613
1614 2002-08-02 Andrew Cagney <cagney@redhat.com>
1615
1616 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1617 regnum.
1618 (regcache_cooked_write): Ditto.
1619
1620 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1621
1622 * regcache.c (regcache_cooked_read): New function.
1623 (regcache_cooked_write): New function.
1624 (read_register_gen): Rewrite using regcache_cooked_read.
1625 (write_register_gen): Rewrite using regcache_cooked_write.
1626
1627 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1628 Declare.
1629
1630 2002-08-02 Andrew Cagney <cagney@redhat.com>
1631
1632 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1633 Replace the architecture methods register_read and register_write.
1634 * gdbarch.h, gdbarch.c: Regenerate.
1635 * regcache.c (init_regcache_descr): Update.
1636 (read_register_gen): Update.
1637 (write_register_gen): Update.
1638 (supply_register): Update comment.
1639
1640 * sh-tdep.c (sh_gdbarch_init): Update.
1641 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1642 `regcache' and `gdbarch' parameters. Make `buffer' a void
1643 pointer. Update code.
1644 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1645 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1646 void pointer. Update code.
1647 (sh64_register_write): Delete.
1648 (sh4_register_read): Delete.
1649 (sh64_register_read): Delete.
1650 (sh4_register_write): Delete.
1651 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1652 void pointer, `to' parameter a void pointer.
1653 (sh_sh64_register_convert_to_raw): Ditto.
1654
1655 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1656
1657 * mips-tdep.c (mips_register_virtual_type): Use architecture
1658 invariant return values.
1659
1660 2002-08-01 Andrew Cagney <cagney@redhat.com>
1661
1662 * linux-proc.c: Include "gdb_string.h".
1663 * Makefile.in (linux-proc.o): Update dependency list.
1664
1665 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1666
1667 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1668 comment.
1669
1670 2002-08-01 Grace Sainsbury <graces@redhat.com>
1671
1672 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1673 to_insert_watchpoint, to_remove_watchpoint,
1674 to_stopped_by_watchpoint, to_stopped_data_address,
1675 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1676 target vecctor. Define their corresponding macros so they call
1677 them.
1678
1679 * target.c: Add default and debug versions of for
1680 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1681 to_insert_watchpoint, to_remove_watchpoint,
1682 to_stopped_by_watchpoint, to_stopped_data_address,
1683 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1684
1685 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1686
1687 * mips-tdep.c (mips_register_virtual_type): New function.
1688 (mips_gdbarch_init): Register mips_register_virtual_type()
1689 with gdbarch machinery.
1690 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1691 this file instead of tm-bigmips.h.
1692 (MIPS_REGSIZE): Delete this macro.
1693 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1694 multiarch version in mips-tdep.c will be found.
1695
1696 2002-08-01 Andrew Cagney <cagney@redhat.com>
1697
1698 * NEWS: Menion that CHILL has been made obsolete.
1699
1700 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1701 * stabsread.c (read_range_type): Ditto.
1702 * gdbtypes.h: Ditto.
1703 * language.c (binop_type_check): Ditto.
1704 (binop_result_type): Ditto.
1705 (integral_type): Ditto.
1706 (character_type): Ditto.
1707 (string_type): Ditto.
1708 (boolean_type): Ditto.
1709 (structured_type): Ditto.
1710 (lang_bool_type): Ditto.
1711 (binop_type_check): Ditto.
1712 * language.h (_LANG_chill): Ditto.
1713 * dwarfread.c (set_cu_language): Ditto.
1714 * dwarfread.c (CHILL_PRODUCER): Ditto.
1715 * dwarfread.c (handle_producer): Ditto.
1716 * expression.h (enum exp_opcode): Ditto.
1717 * eval.c: Ditto for comments.
1718 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1719 * expprint.c (print_subexp): Ditto.
1720 (print_subexp): Ditto.
1721 * valops.c (value_cast): Ditto.
1722 (search_struct_field): Ditto.
1723 * value.h (COERCE_VARYING_ARRAY): Ditto.
1724 * symfile.c (init_filename_language_table): Ditto.
1725 (add_psymbol_with_dem_name_to_list): Ditto.
1726 * valarith.c (value_binop): Ditto.
1727 (value_neg): Ditto.
1728 * valops.c (value_slice): Ditto.
1729 * symtab.h (union language_specific): Ditto.
1730 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1731 (SYMBOL_DEMANGLED_NAME): Ditto.
1732 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1733 * defs.h (enum language): Ditto.
1734 * symtab.c (got_symtab): Ditto.
1735 * utils.c (fprintf_symbol_filtered): Ditto.
1736
1737 * ch-typeprint.c: Make file obsolete.
1738 * ch-valprint.c: Make file obsolete.
1739 * ch-lang.h: Make file obsolete.
1740 * ch-exp.c: Make file obsolete.
1741 * ch-lang.c: Make file obsolete.
1742
1743 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1744 CHILL_LIB.
1745 (TARGET_FLAGS_TO_PASS): Ditto.
1746 (CHILLFLAGS): Obsolete.
1747 (CHILL): Obsolete.
1748 (CHILL_FOR_TARGET): Obsolete.
1749 (CHILL_LIB): Obsolete.
1750 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1751 ch-valprint.c.
1752 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1753 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1754 ch-lang.o.
1755 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1756 targets.
1757
1758 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1759
1760 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1761 This does not change anything at the moment, but will be helpful
1762 later when full Ada support is integrated.
1763
1764 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1765
1766 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1767 help message.
1768
1769 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1770
1771 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1772 and save it in a local variable. Use variable in later test.
1773
1774 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1775
1776 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1777 test. (Thanks to Daniel Jacobowitz.)
1778
1779 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1780
1781 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1782 (mips_abi_strings): Add "n64".
1783 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1784
1785 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1786
1787 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1788 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1789
1790 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1791
1792 * utils.c (host_pointer_to_address, address_to_host_pointer):
1793 Use gdb_assert() instead of explicit call to internal_error().
1794
1795 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1796
1797 * Makefile.in (rs6000-nat.o): Update dependencies.
1798
1799 From Nicholas Duffek:
1800 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1801 (aix-thread.o): New rule.
1802 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1803 * config/powerpc/aix432.mh: New file.
1804
1805 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1806
1807 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1808 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1809 (fetch_core_registers, ppc_linux_supply_gregset)
1810 (ppc_linux_supply_fpregset): New functions.
1811 (ppc_linux_regset_core_fns): New.
1812 (_initialize_ppc_linux_tdep): Call add_core_fns.
1813 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1814 and ppc_linux_supply_gregset.
1815 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1816 (supply_fpregset): Call ppc_linux_supply_fpregset.
1817 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1818 corelow.o.
1819 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1820
1821 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1822
1823 * symtab.c (lookup_symbol): Demangle before lowercasing.
1824
1825 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1826
1827 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1828 declaration.
1829 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1830 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1831 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1832 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1833 "gdb_string.h".
1834 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1835 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1836 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1837 (avr-tdep.o, mon960-rom.o): Ditto.
1838 (aout_stabs_gnu_h): Define.
1839 (symtab_h): Remove $(gdb_obstack_h).
1840
1841 2002-07-30 Jim Blandy <jimb@redhat.com>
1842
1843 Patch from David Carlton <carlton@math.stanford.edu>:
1844 * gdbinit.in: Move the `dir' commands that add GDB's own source
1845 directory to the search path to the end, so that the `gdb' source
1846 directory will be searched first.
1847
1848 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1849
1850 * gdb_obstack.h: New file.
1851 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1852 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1853 * objfiles.h: Include "gdb_obstack.h".
1854 * Makefile.in (gdb_obstack_h): Define.
1855 (symtab_h): Add $(gdb_obstack_h).
1856 (objfiles_h): Add $(gdb_obstack_h).
1857
1858 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1859 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1860 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1861 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1862 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1863 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1864 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1865 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1866
1867 * Makefile.in (bcache.o): Update dependencies.
1868 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1869 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1870 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1871 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1872 (stabsread.o, symfile.o, symmisc.o): Ditto.
1873 (symtab.o, typeprint.o, macroexp.o): Ditto.
1874 (macrotab.o, mdebugread.o): Ditto.
1875 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1876 (coff_ecoff_h, aout_aout64_h): Define.
1877 (aout_stabs_gnu_h, libaout_h): Define.
1878
1879 2002-07-29 Andrew Cagney <cagney@redhat.com>
1880
1881 * regcache.c (struct regcache_descr): Rename nr_registers to
1882 nr_cooked_registers. Revise comments describing the structure
1883 member fields.
1884 (init_regcache_descr): Update.
1885 (init_legacy_regcache_descr): Update.
1886 (read_register_gen, write_register_gen): When a cooked register in
1887 the raw register range, directly access the value from the raw
1888 register cache.
1889
1890 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1891
1892 * z8k-tdep.c: Do not include "obstack.h".
1893 * h8300-tdep.c, h8500-tdep.c: Ditto.
1894 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1895 * valprint.c, v850-tdep.c: Ditto.
1896 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1897 * mn10200-tdep.c: Ditto.
1898
1899 * Makefile.in (z8k-tdep.o): Update dependencies.
1900 (m68hc11-tdep.o, valprint.o): Ditto.
1901 (v850-tdep.o, d10v-tdep.o): Ditto.
1902 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1903 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1904 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1905 (sh_opc_h, gdb_sim_sh_h): Define.
1906 (elf_sh_h, elf_bfd_h): Define.
1907 (opcode_m68hc11_h): Define.
1908 (OPCODES_SRC, OPCODES_DIR): define.
1909 (OPCODES): Use $(OPCODES_DIR).
1910 (gdb_sim_d10v_h): Rename sim_d10v_h.
1911 (gdb_sim_arm_h): Rename sim_arm_h.
1912
1913 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1914
1915 * utils.c (host_pointer_to_address, address_to_host_pointer):
1916 Change internal_error() message to indicate function responsible
1917 for the error.
1918
1919 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1920
1921 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1922 calls to local_hex_string_custom().
1923
1924 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1925
1926 * irix5-nat.c: Move IRIX shared library support from here...
1927 * solib-irix.c: ...to here. Revised substantially to work with
1928 generic solib framework.
1929
1930 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1931 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1932 * mips-irix-tdep.c: New file.
1933
1934 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1935 (mips-irix-tdep.o, solib-irix.o): New rules.
1936 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1937 solib-irix.o.
1938 * config/mips/irix6.mt (TDEPFILES): Likewise.
1939 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1940
1941 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1942
1943 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1944 disabled (via ``#if 0'') includes.
1945
1946 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1947
1948 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1949 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1950 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1951 Add support for the fpscr register.
1952 * rs6000-nat.c (regmap, fetch_inferior_registers)
1953 (store_inferior_registers, fetch_core_registers): Likewise.
1954
1955 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1956
1957 * rs6000-nat.c (language.h): Include.
1958 (special_regs): Delete this array.
1959 (regmap): New function.
1960 (fetch_register, store_register): Use regmap() to map gdb
1961 register numbers to ptrace register numbers. Also, use
1962 outputs from regmap() to make decisions regarding type of
1963 ptrace() call to make. In particular, don't compare against
1964 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1965 (fetch_inferior_registers, store_inferior_registers): Where
1966 possible, obtain register numbers from tdep struct. Don't
1967 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1968 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1969 (LAST_UISA_SP_REGNUM): Delete.
1970
1971 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1972
1973 * rs6000-nat.c (ppc-tdep.h): Include.
1974 (fetch_registers, store_register, fetch_core_registers): Don't
1975 access registers[] directly. Instead, use supply_register() or
1976 regcache_collect() as appropriate.
1977 (find_toc_address): Format hex address with local_hex_string().
1978
1979 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1980
1981 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1982 bfd/elf32-frv.c.
1983
1984 2002-07-24 Tom Tromey <tromey@redhat.com>
1985
1986 * jv-exp.y: Marked all strings with _().
1987 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1988 internal_error.
1989 (MethodInvocation, CastExpression, parse_number, yyerror,
1990 java_type_from_name, push_expression_name, yylex): Typo fixes.
1991
1992 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1993
1994 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1995 (tee_file_flush, tee_file_write, tee_file_fputs)
1996 (tee_file_isatty): New.
1997 * ui-file.h (tee_file_new): Add prototype.
1998
1999 2002-07-24 Aidan Skinner <aidan@velvet.net>
2000
2001 * ada-lang.c: Change k&r style function definitions to prototyped
2002 form.
2003 * ada-typeprint.c: Change k&r style function definitions to prototyped
2004 form.
2005 * ada-valprint.c: Change k&r style function definitions to prototyped
2006 form.
2007
2008 2002-07-24 Andrew Cagney <cagney@redhat.com>
2009
2010 * README: Remove reference to remote-bug.
2011 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2012 remote-bug.c.
2013 (m88k-nat.o): Delete rule.
2014 (m88k-tdep.o): Delete rule.
2015 (remote-bug.o): Delete rule.
2016 * MAINTAINERS: Mark as obsolete.
2017 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2018 * m88k-tdep.c: Make file obsolete.
2019 * config/m88k/m88k.mh: Ditto.
2020 * config/m88k/delta88v4.mh: Ditto.
2021 * config/m88k/delta88v4.mt: Ditto.
2022 * config/m88k/delta88.mt: Ditto.
2023 * config/m88k/delta88.mh: Ditto.
2024 * remote-bug.c: Ditto.
2025 * config/m88k/tm-delta88.h: Ditto.
2026 * config/m88k/nm-delta88v4.h: Ditto.
2027 * config/m88k/xm-delta88.h: Ditto.
2028 * config/m88k/xm-dgux.h: Ditto.
2029 * config/m88k/tm-m88k.h: Ditto.
2030 * config/m88k/nm-m88k.h: Ditto.
2031 * config/m88k/tm-delta88v4.h: Ditto.
2032 * m88k-nat.c: Ditto.
2033 * cxux-nat.c: Ditto.
2034 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2035 and m88*-*-* obsolete.
2036 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2037 m88*-*-* obsolete.
2038
2039 2002-07-24 Andrew Cagney <cagney@redhat.com>
2040
2041 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2042 constant. Same for local pointer variables.
2043 (extract_signed_integer): Ditto.
2044 * defs.h (extract_unsigned_integer): Update.
2045 (extract_signed_integer): Update.
2046
2047 2002-07-24 Andrew Cagney <cagney@redhat.com>
2048
2049 * regcache.c (regcache_raw_write): Change buf parameter to a
2050 constant void pointer.
2051 (regcache_raw_read): Change buf parameter to a void pointer.
2052 (legacy_write_register_gen): Change myaddr parameter a constant
2053 void pointer.
2054 (supply_register): Change val parameter to a const void pointer.
2055 * regcache.h (regcache_raw_write): Update declaration.
2056 (regcache_raw_read): Update declaration.
2057 (supply_register): Update declaration.
2058
2059 2002-07-24 Tom Tromey <tromey@redhat.com>
2060
2061 * defs.h (gdb_readline_wrapper): Declare.
2062 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2063 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2064 * top.c (gdb_readline_wrapper): New function.
2065 (command_line_input): Use it.
2066
2067 2002-07-24 Andrew Cagney <cagney@redhat.com>
2068
2069 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2070 regcache_read and regcache_write.
2071 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2072 * regcache.c: Update.
2073 * sh-tdep.c (sh64_push_arguments): Update comment.
2074 (sh_pseudo_register_read): Update.
2075 (sh_pseudo_register_write): Update.
2076 (sh4_register_read): Update.
2077 (sh4_register_write): Update.
2078 (sh64_pseudo_register_read): Update.
2079 (sh64_pseudo_register_write): Update.
2080 (sh64_register_read): Update.
2081 (sh64_register_write): Update.
2082 * i386-tdep.c (i386_extract_return_value): Update.
2083 (i386_extract_struct_value_address): Update.
2084 (i386_extract_return_value): Update.
2085 * blockframe.c (generic_read_register_dummy): Update.
2086 (generic_call_dummy_register_unwind): Update
2087 * infrun.c (write_inferior_status_register): Update.
2088
2089 2002-07-23 Jim Blandy <jimb@redhat.com>
2090
2091 * parser-defs.h (expression_context_pc): Make this extern.
2092 (Thanks to Michael Snyder.)
2093
2094 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2095
2096 GDB 5.2.1 released from 5.2 branch.
2097 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2098 * README: Update to mention 5.2.1.
2099
2100 2002-07-23 Mark Salter <msalter@redhat.com>
2101
2102 * remote.c (remote_read_bytes): Fix check for error.
2103
2104 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2105
2106 * aix-thread.c (language.h): Include.
2107 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2108 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2109 Print newlines at end of debug messages.
2110 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2111 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2112
2113 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2114
2115 * aix-thread.c (ppc-tdep.h): Include.
2116 (special_register_p): New function.
2117 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2118 (store_regs_user_thread): Use register number information from
2119 gdbarch_tdep struct instead of hardcoded offsets relative to
2120 FIRST_UISA_SP_REGNUM.
2121 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2122 special_register_p() instead of using FPLAST_REGNUM and
2123 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2124 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2125 will be MQ's register number.
2126
2127 2002-07-22 Michael Snyder <msnyder@redhat.com>
2128
2129 * aix-thread.c (ops): Rename to aix_thread_ops.
2130 (base_ops): Rename to base_target.
2131 (ops_attach): Rename to aix_thread_attach.
2132 (ops_detach): Rename to aix_thread_detach.
2133 (ops_resume): Rename to aix_thread_detach.
2134 (ops_wait): Rename to aix_thread_wait.
2135 (ops_kill): Rename to aix_thread_kill.
2136 (init_ops): Rename to init_aix_thread_ops.
2137 (ops_fetch_register): Rename to aix_thread_fetch_register.
2138 (ops_store_register): Rename to aix_thread_store_register.
2139 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2140 (ops_thread_alive): Rename to aix_thread_thread_alive.
2141 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2142 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2143 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2144 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2145 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2146 (store_regs_lib): Rename to store_regs_user_thread.
2147 (store_regs_kern): Rename to store_regs_kernel_thread.
2148
2149 2002-07-22 Michael Snyder <msnyder@redhat.com>
2150
2151 * aix-thread.c (ops_prepare_to_store): Eliminate.
2152 (init_ops): Don't initialize ops.prepare_to_store.
2153 (store_regs_kern): Pre-fetch register buffers from child,
2154 because some registers may not be in the cache. Copy
2155 regs from register cache only if they are cached.
2156 (store_regs_lib): Copy regs from register cache only
2157 if they are cached.
2158 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2159 fill_gprs64): Ditto.
2160
2161 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2162
2163 * aix-thread.c (gdb_assert.h): Include.
2164 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2165 register sizes (from register cache) match size of buffer holding
2166 register data.
2167 (fill_sprs32): Change parameter types to match those in the ptrace()
2168 buffer.
2169 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2170 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2171
2172 2002-07-22 Michael Snyder <msnyder@redhat.com>
2173
2174 * aix-thread.c (supply_sprs64): Cosmetic change.
2175 (supply_sprs32): Cosmetic change.
2176 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2177 (fill_sprs64): Use regcache_collect instead of read_register.
2178 (store_regs_lib): Use regcache_collect instead of
2179 read_register. Use fill_sprs32 instead of fill_sprs64,
2180 if debugging a 32-bit architecture.
2181 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2182 out of the register cache, instead of passing a pointer into
2183 the register cache directly to ptrace. Use regcache_collect
2184 insteaad of read_register.
2185 (ops_prepare_to_store): Use target_read_registers instead
2186 of read_register_bytes.
2187
2188 2002-07-20 Aidan Skinner <aidan@velvet.net>
2189
2190 * MAINTAINERS: Add self under write after approval.
2191
2192 2002-07-20 Aidan Skinner <aidan@velvet.net>
2193
2194 * ada-tasks.c: Change k&r style function definitions to prototyped
2195 form.
2196
2197 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2198
2199 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2200 * x86-64-tdep.c: Include "objfiles.h".
2201 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2202 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2203
2204 2002-07-17 Michal Ludvig <michal@suse.cz>
2205
2206 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2207 (update_context): Initialise cfa variable.
2208
2209 2002-07-17 Michael Snyder <msnyder@redhat.com>
2210
2211 * aix-thread.c: Shorten some long lines.
2212 Bring comments into line with code spec.
2213
2214 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2215
2216 * infrun.c: Re-indent using gdb_indent.sh.
2217
2218 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2219
2220 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2221 Leave the indentation temporarily untouched, to minimize the diffs.
2222
2223 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2224
2225 * stabsread.c: Make os9k sections of the code obsolete,
2226 for real this time.
2227 * stabsread.h: Make os9k sections of the code obsolete.
2228
2229 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2230
2231 * linux-low.c (regsets_store_inferior_registers): Add free()
2232 at the end of a loop to prevent memory leak.
2233 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2234 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2235 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2236 line a comment.
2237 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2238
2239 2002-07-17 Jim Blandy <jimb@redhat.com>
2240
2241 * macrocmd.c (info_macro_command): Remove newline from error
2242 message.
2243
2244 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2245
2246 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2247 (sh_gdbarch_init): Use it for sh-dsp.
2248
2249 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2250
2251 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2252 64-bit DWARF2 format.
2253
2254 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2255
2256 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2257 <sys/proc.h> when not available.
2258
2259 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2260
2261 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2262 * stabsread.c: Make os9k sections of the code obsolete.
2263 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2264 * config/i386/i386os9k.mt: Make file obsolete.
2265 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2266 (COMMON_OBS): Remove os9kread.o
2267 (SFILES): Remove os9kread.c.
2268 (os9kread.o, remote-os9k.o): Make target obsolete.
2269 * remote-os9k.c: Make file obsolete.
2270 * os9kread.c: Make file obsolete.
2271 * Makefile.in
2272
2273 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2274
2275 * NEWS: Mention that the FR30 has been made obsolete.
2276 * fr30-tdep.c: Make file obsolete.
2277 * config/fr30/tm-fr30.h: Ditto.
2278 * config/fr30/fr30.mt: Ditto.
2279 * configure.tgt: Make fr30-*-elf obsolete.
2280 * MAINTAINERS: Make fr30-elf obsolete.
2281
2282 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2283
2284 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2285 found is not inside a section.
2286
2287 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2288
2289 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2290 strerror().
2291 (pdc_realloc): Use xrealloc() instead of realloc().
2292
2293 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2294
2295 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2296 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2297 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2298 macros.
2299
2300 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2301
2302 * aix-thread.c (ptrace_check): Eliminate goto.
2303 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2304 problem.
2305
2306 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2307
2308 * aix-thread.c (gdbcmd.h): Include.
2309 (DEBUG, DBG, DBG2, dbg): Eliminate.
2310 (debug_aix_thread): New static global.
2311 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2312 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2313 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2314 invocations to DBG and DBG2 macros to test against
2315 ``debug_aix_thread'' and call fprintf_unfiltered().
2316 (_initialize_aix_thread): Add new command "set debug aix-thread".
2317
2318 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2319
2320 From Gerhard Tonn <TON@de.ibm.com>:
2321 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2322 instead of supply_register.
2323
2324 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2325
2326 * dwarf2cfi.c: Include "gdb_assert.h".
2327 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2328 non-NULL.
2329 (update_context): Do not use __func__. Add missing ``break''.
2330 (update_context): Do not use __func__.
2331
2332 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2333
2334 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2335 and its setting. Set gdbarch instruction printing functions
2336 directly. For non-rs6000 case use new function
2337 gdb_print_insn_powerpc.
2338 (gdb_print_insn_powerpc): New function.
2339
2340 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2341
2342 * NEWS: Mention that the d30v has been marked obsolete.
2343 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2344 * configure.tgt: Mark d30v-*-* as obsolete.
2345 * d30v-tdep.c: Mark file as obsolete.
2346 * config/d30v/d30v.mt: Ditto.
2347 * config/d30v/tm-d30v.h: Ditto.
2348
2349 2002-07-13 Aidan Skinner <aidan@velvet.net>
2350
2351 * ada-tasks.c (add_task_entry): replace calls to
2352 malloc() with xmalloc
2353 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2354
2355 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2356 ada_finish_decode_line_1, all_sals_for_line
2357 ada_breakpoint_rewrite): replace calls to free() with xfree()
2358
2359 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2360
2361 From Nicholas Duffek (with minor changes by Martin Hunt,
2362 Louis Hamilton, and Kevin Buettner):
2363 * aix-thread.c: New file.
2364
2365 2002-07-12 Petr Sorfa <petrs@caldera.com>
2366
2367 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2368 complaint for invalid attribute class or form.
2369 (read_func_scope): DW_AT_frame_base
2370 better handling of DW_AT_block*.
2371 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2372 better handling of DW_AT_block*.
2373 (read_common_block): DW_AT_location
2374 better handling of DW_AT_block*.
2375 (read_partial_die): DW_AT_location better handling
2376 of DW_AT_block*.
2377 (new_symbol): DW_AT_external better handling of
2378 DW_AT_block*. Proper initialization of variable
2379 "addr".
2380 (attr_form_is_block): New function that returns true
2381 if the attribute's form is of DW_FORM_block*.
2382
2383 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2384
2385 * valops.c (find_method_list): Remove comment about
2386 removed STATIC_MEMFUNCP argument.
2387 (value_find_oload_method_list): Likewise.
2388
2389 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2390
2391 From Nicholas Duffek:
2392 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2393 target_new_objfile_hook.
2394
2395 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2396
2397 From Nicholas Duffek:
2398 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2399 csect.
2400
2401 2002-07-12 Andrew Cagney <cagney@redhat.com>
2402
2403 * MAINTAINERS: Mention --enable-sim-build-warnings.
2404 (m68hc11-elf): Disable sim build warnings.
2405 (m32r-elf): Mark as broken obsolete candidate.
2406 (x86_64-linux-gnu): Mark as buildable with -Werror.
2407 (arm-elf): Change -w to ``,'' which enables warnings but not
2408 -Werror.
2409
2410 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2411
2412 * bcache.h: Update copyright.
2413 (struct bstring, struct bcache): Move definition to "bcache.c".
2414 Replaced by opaque declaration.
2415 (bcache_xfree): Replace free_bcache.
2416 (bcache_xmalloc, bcache_memory_used): Declare.
2417
2418 * bcache.c: Update copyright.
2419 (struct bstring, struct bcache): Moved to here from "bcache.h".
2420 Update comments.
2421 (bcache_xmalloc, bcache_memory_used): New functions.
2422 (bcache_xfree): Replace function free_bcache.
2423
2424 * Makefile.in (objfiles.o): Add $(bcache_h).
2425 (objfiles_h): Remove $(bcache_h).
2426 (symfile.o): Add $(bcache_h).
2427
2428 * symmisc.c: Update copyright.
2429 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2430 (print_objfile_statistics): Use bcache_memory_used.
2431
2432 * symfile.c: Include "bcache.h".
2433 (reread_symbols): Use bcache_xfree.
2434 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2435 (add_psymbol_to_list): Pass psymbol_cache by value.
2436 (add_psymbol_with_dem_name_to_list): Ditto.
2437
2438 * objfiles.h: Update copyright.
2439 (struct bcache): Declare opaque. Do not include "bcache.h".
2440 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2441 bcache'' pointers.
2442 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2443
2444 * objfiles.c: Include "bcache.h". Update copyright.
2445 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2446 macro_cache.
2447 (free_objfile): Use bcache_xfree.
2448
2449 2002-07-11 Grace Sainsbury <graces@redhat.com>
2450
2451 * monitor.c (monitor_fetch_register): Make name a constant.
2452 (monitor_store_register): Same.
2453
2454 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2455
2456 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2457 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2458 (finish_block) For non-function blocks, hash the symbol table. For
2459 function blocks, mark the symbol table as unhashed.
2460 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2461 (msymbol_hash_iw): Likewise.
2462 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2463 value.
2464 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2465 (lookup_minimal_symbol): Likewise for both.
2466 * symtab.h (struct block): Add `hashtable' flag. Comment the
2467 hashtable.
2468 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2469 (ALL_BLOCK_SYMBOLS): Update.
2470 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2471 (struct symbol): Add `hash_next' pointer.
2472 * symtab.c (lookup_block_symbol): Search using the hash table when
2473 possible.
2474 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2475 (search_symbols, find_addr_symbol): Likewise.
2476
2477 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2478 (read_dst_symtab): Likewise.
2479 * jv-lang.c (get_java_class_symtab): Likewise.
2480 * mdebugread.c: Include "gdb_assert.h".
2481 (shrink_block): Assert that the block being modified is not hashed.
2482 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2483 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2484 symbols.
2485 (dump_symtab): Recognize hashed blocks.
2486 * printcmd.c (print_frame_args): Assert that function blocks do not
2487 have hashed symbol tables.
2488 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2489 (fill_in_ada_prototype, debug_print_block): Likewise.
2490 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2491
2492 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2493
2494 * stack.c (print_frame): Use result of frame_address_in_block()
2495 instead of fi->pc when evaluating symbols.
2496 (backtrace_command_1): Ditto.
2497
2498 2002-07-11 Andrew Cagney <cagney@redhat.com>
2499
2500 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2501 Make static.
2502
2503 * arm-tdep.c (arm_register_name): Make return type constant.
2504
2505 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2506
2507 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2508 prototype.
2509 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2510 * s390-tdep.c (s390_fp_regnum): Ditto.
2511 (s390_read_fp): Ditto.
2512 (s390_pop_frame): Ditto.
2513 (_initialize_s390_tdep): Ditto.
2514 * remote.c (get_remote_state): Ditto.
2515 * procfs.c (mappingflags): Ditto.
2516 * memattr.c (_initialize_mem): Ditto.
2517 * mcore-tdep.c (mcore_pop_frame): Ditto.
2518 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2519 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2520 * language.c (set_case_str): Ditto.
2521 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2522 * frv-tdep.c (new_variant): Ditto.
2523 (frv_stopped_data_address): Ditto.
2524 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2525 (context_alloc): Ditto.
2526 (frame_state_alloc): Ditto.
2527 (unwind_tmp_obstack_init): Ditto.
2528 (unwind_tmp_obstack_free): Ditto.
2529 (cfi_read_fp): Ditto.
2530 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2531 (cris_pop_frame): Ditto.
2532 * c-lang.c (scanning_macro_expansion): Ditto.
2533 (finished_macro_expansion): Ditto.
2534 (c_preprocess_and_parse): Ditto.
2535 * gdbarch.sh: Ditto.
2536 * gdbarch.h, gdbarch.c: Regenerate.
2537 * config/mn10200/tm-mn10200.h: Adjust indentation.
2538 * target.c: Adjust indentation.
2539 * symtab.h: Adjust indentation.
2540 * stabsread.h: Adjust indentation.
2541 * remote-es.c: Adjust indentation.
2542 * os9kread.c: Adjust indentation.
2543
2544 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2545
2546 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2547 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2548
2549 2002-07-10 Grace Sainsbury <graces@redhat.com>
2550
2551 * NEWS: Mention m68k, mcore multi-arching.
2552 * MAINTAINERS: Change status of m68k, mcore to reflect
2553 multi-arching.
2554
2555 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2556
2557 * valops.c (find_overload_match): Free oload_syms.
2558
2559 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2560
2561 Define HAVE_SYS_PROC_H if sys/proc.h exists
2562 * configure.in: Add check for sys/proc.h
2563 * config.in: Regenerate.
2564 * configure: Regenerate.
2565
2566 2002-07-09 Grace Sainsbury <graces@redhat.com>
2567
2568 * config/m68k/tm-m68k.h: Remove macros wrapped in
2569 #if !GDB_MULTI_ARCH.
2570
2571 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2572
2573 * config.in, configure: Regenerate.
2574
2575 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2576
2577 * dwarf2cfi.c: Include "gcore.h".
2578 (execute_stack_op): Fix implementation of the
2579 DW_OP_deref and DW_OP_deref_size operators by letting do their
2580 lookup in the target.
2581
2582 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2583
2584 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2585 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2586 tdep->sc_sp_offset.
2587
2588 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2589
2590 Fix PR gdb/595, gdb/602
2591 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2592 Don't call value_cast, just read the vtable pointer; update comments
2593 to match.
2594
2595 2002-07-05 Grace Sainsbury <graces@redhat.com>
2596
2597 * config/mcore/tm-mcore.h: Remove file.
2598 * config/mcore/mcore.mt: Remove definition of TM_FILE
2599 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2600
2601 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2602
2603 * i386bsd-tdep.c: Include "gdb_string.h".
2604
2605 2002-07-04 Grace Sainsbury <graces@redhat.com>
2606
2607 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2608 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2609 mcore-tdep.
2610 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2611 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2612 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2613 (RETVAL_REGNUM): Move macros from tm-mcore.h
2614 (mcore_reg_struct_has_addr): New function.
2615 (mcore_gdbarch_init): Added initializations for the macros removed
2616 from tm-mcore.h.
2617
2618 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2619
2620 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2621 traditonal string branding within the ELF header.
2622
2623 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2624
2625 * symtab.c (remove_params): New function.
2626 (make_symbol_overload_list): Use it instead of cplus_demangle.
2627 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2628
2629 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2630
2631 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2632
2633 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2634 New variables.
2635 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2636 and tdep->sigtramp_end.
2637 * i386obsd-nat.c: New file.
2638 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2639
2640 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2641 Don't call get_current_frame().
2642
2643 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2644
2645 * i386-nat.c (child_post_startup_inferior): New function
2646 calling i386_cleanup_dregs if
2647 I386_USE_GENERIC_WATCHPOINTS is defined.
2648 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2649 conditional to acknowledge that i386-nat.c has its
2650 own child_post_startup_inferior function.
2651
2652 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2653
2654 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2655 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2656 instead of MAX_REGISTER_RAW_SIZE.
2657 (i386_extract_return_value, i386_extract_struct_value_address):
2658 Convert to use regcache.
2659 (i386_gdbarch_init): Set max_register_raw_size and
2660 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2661 Set extract_return_value and extract_struct_value_address instead
2662 of their deprecated variants.
2663
2664 Convert i386 target to generic dummy frames.
2665 * i386-tdep.c: Include "symfile.h".
2666 (i386_frameless_signal_p): Consider a function to be frameless if
2667 the pc points at the first instruction of the function.
2668 (i386_frame_chain): Handle (generic) call dummies.
2669 (i386_frame_saved_pc): Likewise.
2670 (i386_frame_init_saved_regs): Remove code dealing with call
2671 dummies on the stack.
2672 (i386_push_dummy_frame): Removed.
2673 (i386_call_dummy_words): Removed.
2674 (i386_fix_call_dummy): Removed.
2675 (i386_push_return_address): New function.
2676 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2677 parameter, and don't call get_current_frame.
2678 (i386_pop_frame): New function.
2679 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2680 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2681 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2682 call_dummy_length to 0, set call_dummy_words to NULL, set
2683 sizeof_call_dummy_words to 0, set fix_call_dummy to
2684 generic_fix_call_dummy, set pc_in_call_dummy to
2685 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2686 generic_push_dummy_frame, set push_return_address to
2687 i386_push_return_address and set frame_chain_valid to
2688 generic_file_frame_chain_valid.
2689
2690 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2691
2692 * gdbarch.sh (struct regcache): Add opaque declaration.
2693 (EXTRACT_RETURN_VALUE): New architecture method.
2694 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2695 * gdbarch.h, gdbarch.c: Regenerate.
2696 * arch-utils.c (legacy_extract_return_value): New function.
2697 * arch-utils.h (legacy_extract_return_value): Declare.
2698 * values.c (value_being_returned): Re-enable code handling
2699 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2700 deprecated_grub_regcache_for_registers call to block handling
2701 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2702 (EXTRACT_RETURN_VALUE): Do not define.
2703
2704 2002-07-03 Grace Sainsbury <graces@redhat.com>
2705
2706 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2707 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2708 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2709 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2710 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2711 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2712 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2713 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2714 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2715 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2716 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2717 argument so the function fits the prototype in the architecture
2718 vector.
2719 (mcore_pop_frame): Remove argument so the function fits the
2720 prototype. Use get_current_frame instead of the argument.
2721 (mcore_push_arguments): Change type of struct_return so the
2722 function can be used in the architecture vector.
2723 (mcore_store_struct_return): Add.
2724 (mcore_frame_init_saved_regs): Add.
2725 (mcore_gdbarch_init): Add function calls to replace the macros
2726 removed from tm-mcore.h
2727
2728 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2729
2730 * infcmd.c (print_return_value): Remove compatibility code calling
2731 deprecated_grub_regcache_for_registers.
2732
2733 * values.c: Include "regcache.h".
2734 (value_being_returned): Update. Use
2735 deprecated_grub_regcache_for_registers to extract the register
2736 buffer address.
2737 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2738 ``struct regcache''.
2739 * Makefile.in (values.o): Add dependency on $(regcache_h).
2740
2741 * inferior.h (run_stack_dummy): Change type of second parameter to
2742 a ``struct regcache''.
2743 * valops.c (hand_function_call): Change type of retbuf to ``struct
2744 regcache''. Allocate using regcache_xmalloc, clean using
2745 make_cleanup_regcache_xfree.
2746 * infcmd.c (run_stack_dummy): Update. Use
2747 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2748
2749 * regcache.c (do_regcache_xfree): New function.
2750 (make_cleanup_regcache_xfree): New function.
2751 * regcache.h (make_cleanup_regcache_xfree): Declare.
2752
2753 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2754
2755 * event-top.c (command_line_handler): Don't read past
2756 beginning of buffer.
2757
2758 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2759
2760 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2761 struct frame_id.
2762 (varobj_create): Store frame_id for root.
2763 (varobj_gen_name): Use xasprintf.
2764 (varobj_update): Save and restore frame using get_frame_id() and
2765 frame_find_by_id().
2766 (create_child): Use xasprintf.
2767 (new_root_variable): Initialize frame_id.
2768 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2769 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2770 to prevent memory leak.
2771
2772 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2773
2774 * valops.c (hand_function_call): Move declaration of retbuf to
2775 start of function, allocate using malloc, add a cleanup but before
2776 the inf_status cleanup, cleanup the buffer. Rename local variable
2777 old_chain to inf_status_cleanup.
2778
2779 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2780
2781 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2782
2783 * cli/cli-decode.c (cmd_func_p): New function.
2784 (cmd_func): New function.
2785
2786 * command.h: Add cmd_func() and cmd_func_p().
2787
2788 2002-07-03 Grace Sainsbury <graces@redhat.com>
2789
2790 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2791 (REGISTER_SIZE): Remove.
2792 (MAX_REGISTER_RAW_SIZE): Remove.
2793 (REGISTER_VIRTUAL_TYPE): Remove.
2794 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2795 (REGISTER_NAME): Remove.
2796 (USE_GENERIC_DUMMY_FRAMES): Remove.
2797 (CALL_DUMMY): Remove.
2798 (CALL_DUMMY_START_OFFSET): Remove.
2799 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2800 (CALL_DUMMY_LOCATION): Remove.
2801 (FIX_CALL_DUMMY): Remove.
2802 (CALL_DUMMY_ADDRESS): Remove.
2803 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2804 (SAVE_DUMMY_FRAME_TOS): Remove.
2805 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2806 (mcore_register_virtual_type): New function.
2807 (mcore_register_byte): New function.
2808 (mcore_register_size): New function.
2809 (mcore_register_name): New function.
2810 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2811 macros removed from tm-mcore.h.
2812 (mcore_dump_tdep): Add.
2813 (_initialize_mcore_tdep): Add gdbarch_register call.
2814
2815 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2816
2817 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2818 frameless_look_for_prologue, such that we actually call this
2819 function.
2820
2821 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2822
2823 * frame.h (frame_address_in_block): New function.
2824
2825 * blockframe.c (frame_address_in_block): New function extracted
2826 from get_frame_block().
2827 (get_frame_block): Use frame_address_in_block().
2828 (block_innermost_frame): Use frame_address_in_block() to match
2829 the frame pc address against the block boundaries rather than
2830 the frame pc directly. This prevents a failure when a frame pc
2831 is actually a return-address pointing immediately after the end
2832 of the given block.
2833
2834 2002-07-02 Grace Sainsbury <graces@redhat.com>
2835
2836 * MAINTAINERS: Add self under write after approval.
2837
2838 2002-07-02 Grace Sainsbury <graces@redhat.com>
2839
2840 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2841 used in architecture vector. The default is
2842 m68k_local_breakpoint_from_pc.
2843 (m68k_local_breakpoint_from_pc): Add.
2844 (enum): Add register numbers from tm-m68k.h.
2845 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2846 vector.
2847 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2848 GDB_MULTI_ARCH_PARTIAL.
2849 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2850 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2851 m68k-tdep.c.
2852 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2853 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2854 to enum in m68k-tdep.c
2855
2856 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2857
2858 * solib-osf.c (open_map): Compute the list of shared libraries
2859 loaded by the inferior, rather than the list of libraries loaded
2860 by GDB itself. Otherwise, GDB ends up reading the symbols from
2861 the wrong shared libraries...
2862
2863 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2864
2865 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2866 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2867 macros.
2868 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2869 Remove functions.
2870 (FRAMELESS_SIGNAL): Remove function.
2871 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2872 i386_linux_saved_pc_after_call): Removed.
2873 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2874 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2875 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2876
2877 * i386-tdep.c (i386_frameless_signal_p): New function.
2878 (i386_frame_chain): Deal with frameless signals.
2879 (i386_sigtramp_saved_sp): New function.
2880 (i386_frame_saved_pc): Deal with frameless signals.
2881 (i386_saved_pc_after_call): Make sure the correct value is
2882 returned just after entry into a sigtramp.
2883 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2884 i386fbsd4_sc_sp_offset): New variables.
2885 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2886 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2887 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2888 similiar to what we already did for sc_pc_offset.
2889 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2890 tdep->sc_sp_offset.
2891
2892 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2893
2894 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2895
2896 * config/i386/tm-x86-64linux.h: New.
2897 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2898 definitions.
2899 * config/i386/nm-x86-64.h: Rename to ...
2900 * config/i386/nm-x86-64linux.h: ... this one.
2901 * config/i386/x86-64linux.mh: Reflect the above change.
2902
2903 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2904
2905 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2906 with sigcontext_addr. Add sc_sp_offset.
2907 (i386bsd_sigtramp_saved_pc): Remove prototype.
2908 (i386bsd_sicontext_addr): Add prototype.
2909 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2910 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2911 (i386_svr4_sigtramp_saved_pc): Removed.
2912 (i386_svr4_sigcontext_addr): New function.
2913 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2914 Initialize tdep->sigcontext_addr instead. Initialize
2915 tdep->sc_pc_offset and tdep->sc_sp_offset.
2916 (i386_gdbarch_init): Likewise.
2917 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2918 any more.
2919 (i386bsd_sigtramp_saved_pc): Remove function.
2920 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2921 Initialize tdep->sigcontext_addr instead. Initialize
2922 tdep->sc_pc_offset.
2923 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2924 of tdep->sigtramp_saved_pc.
2925 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2926 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2927 instead.
2928
2929 * i386-tdep.c (i386_frameless_function_invocation,
2930 i386_frame_num_args, i386_frame_init_saved_regs,
2931 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2932 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2933 i386_extract_return_value, i386_store_return_value,
2934 i386_extract_struct_value_address, i386_register_virtual_type,
2935 i386_register_convertible, i386_register_convert_to_virtual,
2936 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2937 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2938 static.
2939
2940 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2941
2942 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2943
2944 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2945 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2946 this macro. Include "value.h".
2947
2948 2002-06-30 Aidan Skinner <aidan@velvet.net>
2949
2950 * ada-exp.tab.c: remove as it's a generated file
2951 * ada-lex.c: remove as it's a generated file
2952
2953 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2954
2955 * config/i386/tm-i386.h (struct frame_info, struct
2956 frame_saved_regs, struct value, struct type): Remove forward
2957 declarations.
2958
2959 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2960 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2961 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2962 (FILL_FPXREGSET): Define.
2963
2964 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2965
2966 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2967 i[3456]86-*-netbsd* case.
2968 * config/i386/tm-obsd.h: Removed.
2969 * config/i386/obsd.mt: Removed.
2970 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2971 core-aout.o.
2972 (MH_CFLAGS): Add -DYYDEBUG=0.
2973
2974 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2975 i386nbsd_sc_pc_offset on OpenBSD too.
2976
2977 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2978 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2979 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2980 define.
2981 * i386bsd-tdep.c: Include "arch-utils.h".
2982 (i386bsd_aout_in_solib_call_trampoline): New function.
2983 (i386bsd_init_abi): Set in_solib_call_trampoline to
2984 i386bsd_aout_in_solib_call_trampoline.
2985 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2986 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2987
2988 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2989
2990 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2991 (struct obstack, struct bcache): Add opaque declarations.
2992 * Makefile.in (macrotab_h): Update
2993
2994 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2995
2996 * blockframe.c (generic_find_dummy_frame): Change return type to
2997 ``struct regcache''.
2998 (struct dummy_frame): Replace field ``registers'' with regcache, a
2999 struct regcache object.
3000 (generic_find_dummy_frame): Update.
3001 (generic_push_dummy_frame): Update. Use regcache_xfree,
3002 regcache_xmalloc and regcache_cpy.
3003 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3004 regcache_xfree.
3005 (deprecated_generic_find_dummy_frame): Update.
3006 (generic_read_register_dummy): Update. Use
3007 regcache_read_as_address.
3008 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3009 (generic_get_saved_register): Update. Use regcache_read.
3010
3011 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3012
3013 * Makefile.in (objfiles_h): Add $(bcache_h).
3014 * objfiles.h: Include "bcache.h".
3015
3016 * Makefile.in (symtab_h): Remove $(bcache_h).
3017 * symtab.h: Do not include "bcache.h".
3018
3019 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3020
3021 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3022 generic_func_frame_chain_valid.
3023
3024 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3025
3026 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3027 * config/i386/tm-fbsd.h: Likewise.
3028
3029 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3030
3031 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3032 generic_unwind_get_saved_register.
3033
3034 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3035
3036 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3037 * regcache.c (supply_register): Add missing argument to
3038 register_buffer call.
3039
3040 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3041
3042 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3043 Solaris /bin/grep does not not like it. From Peter Schauer.
3044
3045 2002-06-26 Tom Tromey <tromey@redhat.com>
3046
3047 * command.h (add_setshow_cmd): Declare.
3048 (add_setshow_cmd_full): Declare.
3049 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3050 returns void. Use add_setshow_cmd_full.
3051 (add_setshow_cmd_full): New function.
3052 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3053 (add_setshow_boolean_cmd): Likewise.
3054
3055 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3056
3057 * config/vax/tm-vax.h: Protect from multiple inclusion.
3058 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3059 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3060 * config/vax/tm-vaxbsd.h: ...here. New file.
3061 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3062
3063 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3064
3065 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3066 (BELIEVE_PCC_PROMOTION): Remove.
3067 (AP_REGNUM): Move to...
3068 * config/vax/nm-vax.h: ...here.
3069 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3070 (vax_breakpoint_from_pc): New function.
3071 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3072 and gdbarch_believe_pcc_promotion.
3073
3074 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3075
3076 * Makefile.in (vax_tdep_h): Define.
3077 (vax-tdep.o): Use $(vax_tdep_h).
3078 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3079 (vax_dump_tdep): New function.
3080 (_initialize_vax_tdep): Register vax_dump_tdep.
3081 * vax-tdep.h: Include osabi.h.
3082 (struct gdbarch_tdep): New.
3083
3084 2002-06-26 Andrew Cagney <cagney@redhat.com>
3085
3086 * frame.h (deprecated_generic_find_dummy_frame): Rename
3087 generic_find_dummy_frame.
3088 * blockframe.c (generic_find_dummy_frame): Make static.
3089 (deprecated_generic_find_dummy_frame): New function.
3090 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3091 generic_find_dummy_frame with deprecated_find_dummy_frame.
3092 (sh64_nofp_frame_init_saved_regs): Ditto.
3093 (sh_fp_frame_init_saved_regs): Ditto.
3094 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3095 (s390_frame_chain): Ditto.
3096 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3097
3098 2002-06-26 Grace Sainsbury <graces@redhat.com>
3099
3100 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3101 gdbarch vector are at the top.
3102 (NUM_REGS): Remove.
3103 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3104 (FRAME_ARGS_ADDRESS): Remove.
3105 (FRAME_LOCALS_ADDRESS): Remove.
3106 (FRAME_NUM_ARGS): Remove.
3107 (FRAME_ARGS_SKIP): Remove.
3108 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3109 (m68k_gdbarch_init): Add gdbarch initializations for macros
3110 undefined in tm-m68k.h
3111
3112 2002-06-26 Grace Sainsbury <graces@redhat.com>
3113
3114 * monitor.h: Add the function regname to monitor_ops
3115 structure. This way NUM_REGS does not have to be a constant.
3116 * monitor.c (monitor_fetch_register): Added support for regname
3117 function. The function is called if the array regnames is NULL.
3118 (monitor_store_register): Same.
3119 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3120 regnames array.
3121 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3122 cpu32bug_cmds.regname to point to new function.
3123 * abug-rom.c (abug_regname): Same as above.
3124 (init_abug_cmds): Same.
3125 * dbug-rom.c (dbug_regname): Same as above.
3126 (init_dbug_cmds): Same.
3127 * remote-est.c (est_regname): Same.
3128 (init_est_cmds): Same.
3129 * rom68k-rom.c (rom68k_regname): Same.
3130 (init_rom68k_cmds): Same.
3131
3132 2002-06-25 Tom Tromey <tromey@redhat.com>
3133
3134 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3135
3136 2002-06-25 Andrew Cagney <cagney@redhat.com>
3137
3138 * infrun.c (stop_registers): Change variable's type to ``struct
3139 regcache'''.
3140 (xmalloc_inferior_status): Delete function.
3141 (free_inferior_status): Delete function.
3142 (normal_stop): Use regcache_cpy.
3143 (struct inferior_status): Change type of fields ``stop_registers''
3144 and ``registers'' to ``struct regcache''.
3145 (write_inferior_status_register): Use regcache_write.
3146 (save_inferior_status): Instead of calling
3147 xmalloc_inferior_status, allocate the inf_status buffer directly.
3148 Use regcache_dup_no_passthrough and regcache_dup to save the
3149 buffers.
3150 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3151 Replace the stop_registers regcache instead of overriding it. Use
3152 regcache_xfree. Instead of calling free_inferior_status, xfree
3153 the buffer directly.
3154 (discard_inferior_status): Use regcache_xfree. Instead of calling
3155 free_inferior_status, xfree the buffer directly.
3156 (build_infrun): Use regcache_xmalloc.
3157 (_initialize_infrun): Delete redundant call to build_infrun.
3158
3159 * Makefile.in (infcmd.o): Add $(regcache_h).
3160
3161 * infcmd.c: Include "regcache.h".
3162 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3163 obtain the address of `stop_registers' register buffer.
3164 (print_return_value): Ditto.
3165
3166 * inferior.h (struct regcache): Add opaque declaration.
3167 (stop_registers): Change variable's declared type to ``struct
3168 regcache''.
3169
3170 2002-06-24 Tom Tromey <tromey@redhat.com>
3171
3172 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3173 * target.c (initialize_targets): Fixed typo in
3174 trust-readonly-sections `show' documentation.
3175
3176 * main.c: Marked all strings with _().
3177
3178 2002-06-24 Don Howard <dhoward@redhat.com>
3179
3180 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3181 that means max CORE_ADDR+1.
3182 (lookup_mem_region): Ditto.
3183 (mem_info_command): Ditto.
3184
3185 2002-06-24 Grace Sainsbury <graces@redhat.com>
3186
3187 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3188 (REGISTER_BYTES_OK): Remove.
3189 (REGISTER_BYTES): Remove.
3190 (STORE_STRUCT_RETURN): Remove.
3191 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3192 (STORE_RETURN_VALUE): Remove.
3193 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3194 (FRAME_CHAIN): Remove.
3195 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3196 (FRAME_SAVED_PC): Remove.
3197 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3198 (m68k_store_struct_return): Add.
3199 (m68k_deprecated_extract_return_value): Add.
3200 (m68k_deprecated_extract_struct_value_address): Add.
3201 (m68k_store_return_value): Add.
3202 (m68k_frame_chain): Add.
3203 (m68k_frameless_function_invocation): Add.
3204 (m68k_frame_saved_pc): Add.
3205 (m68k_gdbarch_init): added set_gdbarch calls for new
3206 functions and deleted macros.
3207
3208 2002-06-23 Tom Tromey <tromey@redhat.com>
3209
3210 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3211 (ALLDEPFILES): Likewise.
3212 (udiheaders): Removed.
3213 (udip2soc.o): Likewise.
3214 (udi2go32.o): Likewise.
3215 (udr.o): Likewise.
3216 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3217
3218 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3219
3220 * infrun.c (_initialize_infrun): Delete unnecessary call to
3221 build_infrun.
3222
3223 * regcache.h: Update comments describing the regcache_cpy family
3224 of functions.
3225 (regcache_save, regcache_restore): Delete declaration.
3226 (regcache_save_no_passthrough): Delete declaration.
3227 (regcache_restore_no_passthrough): Delete declaration.
3228 * regcache.c (regcache_save): Delete function.
3229 (regcache_save_no_passthrough): Delete function.
3230 (regcache_restore): Delete function.
3231 (regcache_restore_no_passthrough): Delete function.
3232
3233 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3234
3235 * config/m68k/tm-m68k.h: Fix typo.
3236 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3237 (m68k_frame_init_saved_regs): Declare.
3238
3239 2002-06-21 Jim Blandy <jimb@redhat.com>
3240
3241 Remove some vestiges of Harris 88k support.
3242 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3243 register numbering quirk.
3244 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3245 odd symbols occurring in Harris 88k ELF targets.
3246
3247 2002-06-21 Tom Tromey <tromey@redhat.com>
3248
3249 * gdb_locale.h: New file.
3250 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3251 (defs_h): Added gdb_locale.h.
3252 * configure, config.in: Rebuilt.
3253 * configure.in (PACKAGE): Define.
3254 * defs.h: Include gdb_locale.h.
3255 * main.c (captured_main): Call setlocale, bindtextdomain,
3256 textdomain.
3257
3258 2002-06-21 Dave Brolley <brolley@redhat.com>
3259
3260 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3261 * config/frv/frv.mt: New file.
3262 * config/frv/tm-frv.h: New file.
3263 * configure.tgt: Support frv-*-*.
3264 * Makefile.in (frv-tdep.o): New target.
3265 * frv-tdep.c: New file.
3266 * NEWS: Mention frv.
3267
3268 2002-06-21 Dave Brolley <brolley@redhat.com>
3269
3270 * MAINTAINERS: Add self to "Write After Approval" list.
3271
3272 2002-06-21 Grace Sainsbury <graces@redhat.com>
3273
3274 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3275 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3276 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3277 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3278 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3279
3280 * m68k-tdep.c: Include arch-utils.h
3281 (m68k_register_raw_size): Add.
3282 (m68k_register_virtual_size): Add.
3283 (m68k_register_virtual_type): Add.
3284 (m68k_register_name): Add.
3285 (m68k_stack_align): Add.
3286 (m68k_register_byte): Add.
3287 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3288 tm-m68k.h.
3289
3290 2002-06-21 Grace Sainsbury <graces@redhat.com>
3291
3292 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3293 m68k_find_saved_regs.
3294 (m68k_pop_frame): Removed saved_regs structure, and replaced
3295 references to it with frame->saved_regs.
3296 (m68k_gdbarch_init): Added function calls to initialize the
3297 gdbarch structure.
3298 (m68k_fix_call_dummy): Add.
3299 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3300 (CALL_DUMMY): Remove.
3301 (CALL_DUMMY_LENGTH): Remove.
3302 (CALL_DUMMY_START_OFFSET): Remove.
3303 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3304 (FIX_CALL_DUMMY): Remove.
3305 (PUSH_DUMMY_FRAME): Remove.
3306 (POP_FRAME): Remove.
3307
3308 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3309
3310 * parse.c (parse_fprintf): New function used to avoid calls to
3311 fprintf in bison parser generated debug code.
3312 * parser-defs.h: Declaration of new parse_fprintf function.
3313 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3314 Set YYDEBUG to 1 by default.
3315 Set YYFPRINTF as parse_fprintf.
3316
3317 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3318
3319 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3320 encoding anymore.
3321 (pointer_encoding, enum ptr_encoding): New.
3322 (execute_cfa_program): Take care about pointer encoding.
3323 (dwarf2_build_frame_info): Only call parse_frame_info for
3324 .debug_frame and .eh_frame.
3325 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3326 fixed augmentation handling, added relative addressing,
3327 ignore duplicate FDEs. Added comments.
3328 * dwarf2cfi.c: Reindented.
3329
3330 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3331
3332 * event-top.c (command_handler): Don't use space_at_cmd_start
3333 unless there is sbrk() on the host. Assign time and space data
3334 to union fields of the appropriate length.
3335
3336 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3337
3338 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3339 x86_64_register_name. Return type changed to 'const char *'.
3340 (x86_64_register_name2nr): Rename to x86_64_register_number.
3341 (x86_64_gdbarch_init): Update to reflect the change.
3342 * x86-64-tdep.h: Ditto.
3343 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3344 (supply_fpregset): Ditto.
3345
3346 2002-06-19 Andrew Cagney <cagney@redhat.com>
3347
3348 * regcache.h: Update copyright.
3349 (struct regcache, struct gdbarch): Add opaque declarations.
3350 (current_regcache): Declare global variable.
3351 (regcache_read, regcache_write): Add gdbarch parameter.
3352 (regcache_save, regcache_save_no_passthrough)
3353 (regcache_restore, regcache_restore_no_passthrough)
3354 (regcache_dup, regcache_dup_no_passthrough)
3355 (regcache_cpy, regcache_cpy_no_passthrough)
3356 (deprecated_grub_regcache_for_registers)
3357 (deprecated_grub_regcache_for_register_valid)
3358 (regcache_valid_p): Add function declarations.
3359
3360 * regcache.c: Update copyright.
3361 (regcache_descr_handle): New global variable.
3362 (struct regcache_descr): Define.
3363 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3364 (regcache_descr, xfree_regcache_descr): New functions.
3365 (struct regcache): Define.
3366 (regcache_xmalloc, regcache_xfree): New functions.
3367 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3368 (regcache_dup, regcache_dup_no_passthrough): New functions.
3369 (regcache_valid_p, regcache_read_as_address): New functions.
3370 (deprecated_grub_regcache_for_registers): New function.
3371 (deprecated_grub_regcache_for_register_valid): New function.
3372 (current_regcache): New global variable.
3373 (register_buffer): Add regcache parameter. Update calls.
3374 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3375 (read_register_gen, write_register_gen): Update register_buffer
3376 call. Test for legacy_p instead of gdbarch_register_read_p or
3377 gdbarch_register_write_p.
3378 (regcache_collect): Update register_buffer call.
3379 (build_regcache): Rewrite. Use deprecated grub functions.
3380 (regcache_save, regcache_save_no_passthrough): New functions.
3381 (regcache_restore, regcache_restore_no_passthrough): New
3382 functions.
3383 (_initialize_regcache): Create the regcache_data_handle. Swap
3384 current_regcache global variable.
3385
3386 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3387 parameter to regcache_read and regcache_write calls.
3388 (sh4_register_read): Ditto.
3389 (sh64_pseudo_register_read): Ditto.
3390 (sh64_register_read): Ditto.
3391 (sh_pseudo_register_write): Ditto.
3392 (sh4_register_write): Ditto.
3393 (sh64_pseudo_register_write): Ditto.
3394 (sh64_register_write): Ditto.
3395
3396 * defs.h (XCALLOC): Define.
3397
3398 2002-06-19 Grace Sainsbury <graces@redhat.com>
3399
3400 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3401 * m68k-tdep.c (m68k_gdbarch_init): Added.
3402 (m68k_dump_tdep): Added.
3403
3404 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3405
3406 * ada-lang.c (fill_in_ada_prototype): Update comment.
3407
3408 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3409
3410 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3411 MIPS_ABI_LAST.
3412 (mips_abi_string, mips_abi_strings): New.
3413 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3414 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3415 tdep->mips_abi_string. Honor mips_abi_string. Default to
3416 O32 if no ABI is found.
3417 (mips_dump_tdep): Use mips_abi_strings.
3418 (mips_abi_update): New function.
3419 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3420 ``set mips abi'' and ``show mips abi''. Check the size of
3421 mips_abi_strings.
3422
3423 2002-06-19 Andrew Cagney <cagney@redhat.com>
3424
3425 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3426 constant.
3427
3428 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3429
3430 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3431 current frame using only the first stack size adjustment. All
3432 subsequent size adjustments are not considered to be part of
3433 the "static" part of the current frame.
3434 Compute the address of the saved registers relative to the
3435 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3436 in use in this frame.
3437
3438 2002-06-18 Don Howard <dhoward@redhat.com>
3439
3440 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3441 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3442 suggesting this solution.
3443
3444 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3445
3446 * config/romp/xm-rtbsd.h: Delete file.
3447 * config/romp/rtbsd.mh: Delete file.
3448
3449 2002-06-18 Keith Seitz <keiths@redhat.com>
3450
3451 * breakpoint.c (condition_command): Post breakpoint_modify
3452 when a condition is added to an existing breakpoint.
3453 (commands_command): Likewise for commands.
3454 (set_ignore_count): Likewise for ignore counts.
3455 If no tty, do not simply return, still need to send event
3456 notification.
3457 (ignore_command): Only print a newline if the command came
3458 from a tty.
3459 Don't call breakpoints_changed, since this is now properly
3460 handled by set_ignore_count.
3461
3462 2002-06-18 Andrew Cagney <cagney@redhat.com>
3463
3464 * MAINTAINERS: Note that cris-elf target can be compiled with
3465 -Werror.
3466 * cris-tdep.c (cris_register_name): Make return type constant.
3467 (cris_breakpoint_from_pc): Ditto.
3468
3469 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3470
3471 * frame.h (struct frame_info): Change type of context to
3472 'struct context'.
3473
3474 2002-06-17 Andrew Cagney <cagney@redhat.com>
3475
3476 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3477 pointer.
3478 * gdbarch.h, gdbarch.c: Regenerate.
3479 * config/mips/tm-mips.h (mips_register_name): Update.
3480 * i386-tdep.h (i386_register_name): Update.
3481 * mips-tdep.c (mips_register_name): Update
3482 * alpha-tdep.c (alpha_register_name): Update.
3483 * arch-utils.c (legacy_register_name): Update.
3484 * arch-utils.h (legacy_register_name): Update.
3485 * avr-tdep.c (avr_register_name): Update.
3486 * ia64-tdep.c (ia64_register_name): Update.
3487 * i386-tdep.c (i386_register_name): Update.
3488 * sparc-tdep.c (sparc32_register_name): Update.
3489 (sparc64_register_name): Update.
3490 (sparclite_register_name): Update.
3491 (sparclet_register_name): Update.
3492 * sh-tdep.c (sh_generic_register_name): Update.
3493 (sh_sh_register_name): Update.
3494 (sh_sh3_register_name): Update.
3495 (sh_sh3e_register_name): Update.
3496 (sh_sh_dsp_register_name): Update.
3497 (sh_sh3_dsp_register_name): Update.
3498 (sh_sh4_register_name): Update.
3499 (sh_sh64_register_name): Update.
3500 * s390-tdep.c (s390_register_name): Update.
3501 * rs6000-tdep.c (rs6000_register_name): Update.
3502 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3503 (ns32k_register_name_32382): Update.
3504 * d10v-tdep.c (d10v_ts2_register_name): Update.
3505 (d10v_ts3_register_name): Update.
3506 * xstormy16-tdep.c (xstormy16_register_name): Update.
3507 * vax-tdep.c (vax_register_name): Update.
3508 * v850-tdep.c (v850_register_name): Update.
3509 * m68hc11-tdep.c (m68hc11_register_name): Update.
3510 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3511 (am33_register_name): Update.
3512
3513 2002-06-17 Grace Sainsbury <graces@redhat.com>
3514
3515 * m68k-tdep.c: Reindented.
3516
3517 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3518
3519 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3520 list of predefined types.
3521
3522 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3523
3524 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3525 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3526 REGISTER_CONVERT_TO_RAW): Remove defines.
3527 (i386_register_virtual_type, i386_register_convertible,
3528 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3529 Remove prototypes.
3530 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3531 macros mentioned above.
3532
3533 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3534 (i386lynx_saved_pc_after_call): Remove prototype.
3535 * i386ly-tdep.c: Include "i386-tdep.h".
3536 (i386lynx_saved_pc_after_call): Make static. Use
3537 read_memory_nobpt instead of read_memory. Use
3538 read_memory_unsigned_integer instead of read_memory_integer.
3539 (i386lynx_init_abi): New function.
3540 (i386lynx_coff_osabi_sniffer): New function.
3541 (_initialize_i386bsd_tdep): New function.
3542
3543 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3544 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3545 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3546 (i386_fix_call_dummy): Remove prototype.
3547 * i386-tdep.c (i386_call_dummy_words): New variable.
3548 (i386_gdbarch_init): Adjust for removal of the
3549 macros mentioned above.
3550
3551 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3552
3553 * command.h (add_setshow_auto_boolean_cmd): Replace
3554 add_set_auto_boolean_cmd.
3555 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3556 add_set_auto_boolean_cmd.
3557 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3558 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3559 mask-address'' command.
3560 (show_mask_address): Add cmd parameter.
3561 * remote.c (add_packet_config_cmd): Update. Change type of
3562 set_func and show_func to cmd_sfunc_ftype.
3563 (_initialize_remote): Update `set remote Z-packet'
3564 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3565 (show_remote_protocol_e_packet_cmd): Ditto.
3566 (show_remote_protocol_E_packet_cmd): Ditto.
3567 (show_remote_protocol_P_packet_cmd): Ditto.
3568 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3569 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3570 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3571 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3572 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3573 (show_remote_protocol_Z_packet_cmd): Ditto.
3574 (show_remote_protocol_binary_download_cmd): Ditto.
3575 (show_remote_cmd): Pass NULL to all of above.
3576
3577 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3578
3579 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3580 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3581 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3582 POP_FRAME): Remove defines.
3583 (i386_push_arguments, i386_store_struct_return,
3584 i386_extract_return_value, i386_store_return_value,
3585 i386_extract_struct_value_address, i386_push_dummy_frame,
3586 i386_pop_frame): Renove prototypes.
3587 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3588 macros mentioned above.
3589
3590 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3591
3592 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3593 add_set_boolean_cmd.
3594 (add_setshow_cmd): New function.
3595 * command.h (add_setshow_boolean_cmd): Replace
3596 add_set_boolean_cmd.
3597 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3598 and ``set rdiromatzero''.
3599 * maint.c (_initialize_maint_cmds): Update commented out code.
3600 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3601 * target.c (initialize_targets): Update `set
3602 trust-readonly-sections'.
3603 * remote.c (_initialize_remote): Update `set remotebreak'.
3604
3605 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3606
3607 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3608 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3609 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3610 fit into multi-arch framework.
3611 (i386_breakpoint_from_pc): New function.
3612 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3613 above.
3614
3615 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3616 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3617 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3618 (i386_frameless_function_invocation, i386_frame_num_args,
3619 i386_frame_init_saved_regs): Remove prototypes.
3620 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3621 macros mentioned above.
3622
3623 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3624
3625 * cli/cli-decode.c (set_cmd_cfunc): Update.
3626 (set_cmd_sfunc): Update.
3627 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3628 (set_cmd_sfunc, set_cmd_cfunc): Update.
3629 * cli/cli-decode.h: Update.
3630
3631 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3632
3633 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3634 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3635
3636 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3637
3638 * defs.h (auto_boolean): Declare enum.
3639 * command.h (cmd_auto_boolean): Delete enum.
3640 * mips-tdep.c (mask_address_var): Update.
3641 (mips_mask_address_p): Update.
3642 (show_mask_address): Update.
3643 * remote.c (struct packet_config): Update.
3644 (update_packet_config): Update.
3645 (show_packet_config_cmd): Update.
3646 (packet_ok): Update.
3647 (add_packet_config_cmd): Update.
3648 (_initialize_remote):
3649 * command.h: Update.
3650 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3651 (do_setshow_command): Update.
3652 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3653 * cli/cli-decode.h: Update.
3654
3655 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3656
3657 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3658 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3659 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3660 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3661 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3662 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3663
3664 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3665 list of DJGPP COFF targets.
3666
3667 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3668 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3669 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3670 (FP0_REGNUM): Remove define.
3671 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3672 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3673 (i386_register_virtual_size): Remove protoype.
3674 * i386-tdep.c (i386_register_virtual_size): Removed.
3675 (i386_extract_return_value, i386_store_return_value): Use
3676 FP0_REGNUM instead of NUM_FREGS to determine whether the
3677 floating-point registers are available.
3678 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3679 Adjust for removal of macros mentioned above.
3680
3681 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3682
3683 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3684 comments.
3685 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3686 Remove prototypes.
3687 (supply_gregset, fill_gregset): Remove use of register keyword and
3688 remove declaration for regmap. Use I386_NUM_GREGS instead of
3689 NUM_REGS and NUM_FREGS.
3690 (FPREGSET_FSAVE_OFFSET): Remove.
3691 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3692 NUM_FREGS to determine whether the floating-point registers are
3693 available.
3694
3695 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3696 gnu_store_registers): Replace usage of NUM_GREGS with
3697 I386_NUM_GREGS.
3698
3699 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3700 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3701 usage of NUM_GREGS with I386_NUM_GREGS.
3702
3703 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3704
3705 * i386bsd-nat.c: Include "i386-tdep.h".
3706 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3707 I386_NUM_GREGS.
3708
3709 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3710 and associated comment. They no longer make any sense, since we
3711 don't use this file anymore on Linux.
3712
3713 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3714 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3715 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3716 elements in these arrays.
3717 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3718 MAX_NUM_REGS.
3719
3720 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3721
3722 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3723 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3724
3725 2002-06-14 Andrew Cagney <cagney@redhat.com>
3726
3727 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3728 EXTRACT_RETURN_VALUE.
3729 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3730 EXTRACT_STRUCT_VALUE_ADDRESS.
3731 * gdbarch.h, gdbarch.c: Regenerate.
3732
3733 * values.c (value_being_returned): Handle
3734 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3735 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3736
3737 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3738 * arm-tdep.c (arm_gdbarch_init): Update.
3739 * avr-tdep.c (avr_gdbarch_init): Update.
3740 * cris-tdep.c (cris_gdbarch_init): Update.
3741 * d10v-tdep.c (d10v_gdbarch_init): Update.
3742 * ia64-tdep.c (ia64_gdbarch_init): Update.
3743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3745 * s390-tdep.c (s390_gdbarch_init): Update.
3746 * sh-tdep.c (sh_gdbarch_init): Update.
3747 * s390-tdep.c (s390_gdbarch_init): Update.
3748 * sparc-tdep.c (sparc_gdbarch_init): Update.
3749 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3750 * v850-tdep.c (v850_gdbarch_init): Update.
3751 * vax-tdep.c (vax_gdbarch_init): Update.
3752 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3754
3755 * config/arc/tm-arc.h: Update.
3756 * config/d30v/tm-d30v.h: Update.
3757 * config/fr30/tm-fr30.h: Update.
3758 * config/h8300/tm-h8300.h: Update.
3759 * config/h8500/tm-h8500.h: Update.
3760 * config/i386/tm-i386.h: Update.
3761 * config/i386/tm-ptx.h: Update.
3762 * config/i386/tm-symmetry.h: Update.
3763 * config/i960/tm-i960.h: Update.
3764 * config/m32r/tm-m32r.h: Update.
3765 * config/m68k/tm-delta68.h: Update.
3766 * config/m68k/tm-linux.h: Update.
3767 * config/m68k/tm-m68k.h: Update.
3768 * config/m88k/tm-m88k.h: Update.
3769 * config/mcore/tm-mcore.h: Update.
3770 * config/mips/tm-mips.h: Update.
3771 * config/mn10200/tm-mn10200.h: Update.
3772 * config/pa/tm-hppa.h: Update.
3773 * config/pa/tm-hppa64.h: Update.
3774 * config/sparc/tm-sp64.h: Update.
3775 * config/sparc/tm-sparc.h: Update.
3776 * config/sparc/tm-sparclet.h: Update.
3777 * config/z8k/tm-z8k.h: Update.
3778
3779 2002-06-14 Andrew Cagney <cagney@redhat.com>
3780
3781 * Makefile.in (i386_linux_tdep_h): Define.
3782 (i386_tdep_h, i387_tdep_h): Define.
3783 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3784 $(i386_tdep_h) and $(i387_tdep_h).
3785 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3786
3787 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3788
3789 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3790 Already covered by the default.
3791
3792 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3793 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3794 (i386_gdbarch_init): Initialize long_double_format and long_double
3795 bit.
3796
3797 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3798 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3799 Move these to ...
3800 * config/i386/i386sol2.mh: ... here.
3801 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3802 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3803 (SIGCONTEXT_PC_OFFSET): Remove define.
3804 (IN_SIGTRAMP): Remove define.
3805 * i386-sol2-tdep.c: New file.
3806
3807 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3808 * config/i386/tm-i386nw.h: Removed.
3809
3810 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3811 USE_STRUCT_CONVENTION): Remove defines.
3812 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3813 (get_longjmp_target): Remove prototype.
3814 (IN_SIGTRAMP): Remove define.
3815 (i386bsd_in_sigtramp): Remove prototype.
3816 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3817 function. Update comment accordingly
3818 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3819 (FRAME_SAVED_PC): Remove define.
3820 (i386bsd_frame_saved_pc): Remove prototype.
3821 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3822 GET_LONGJMP_TARGET): Remove defines.
3823 (get_longjmp_target): Remove prototype.
3824 (IN_SIGTRAMP): Remove define.
3825 (i386bsd_in_sigtramp): Remove prototype.
3826 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3827 function. Update comment accordingly
3828 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3829 (FRAME_SAVED_PC): Remove define.
3830 (i386bsd_frame_saved_pc): Remove prototype.
3831 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3832 Remove prototype.
3833 (USE_STRUCT_CONVENTION): Remove prototype.
3834 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3835 declaration.
3836 (_initialize_i386bsd_nat): Revise logic to determine some
3837 constants at compile time when compiling a native GDB. Warn if
3838 things don't match up with what we expect.
3839 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3840 Remove variables.
3841 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3842 to use date stored in `struct gdbarch_tdep'.
3843 (i386bsd_sigcontext_offset): Remove varaible.
3844 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3845 stored in `struct gdbarch_tdep'.
3846 (i386bsd_frame_saved_pc): Make static.
3847 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3848 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3849 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3850 i386fbsd4_sc_pc_offset): New variables.
3851 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3852 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3853 functions.
3854 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3855 functions.
3856 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3857 Modify the value of i386fbsd_sigtramp_start and
3858 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3859 i386fbsd_sigtramp_end.
3860 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3861 function.
3862
3863 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3864 define to i386-linux-tdep.h.
3865 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3866 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3867 defines.
3868 (i386_linux_register_name, i386_linux_register_byte,
3869 i386_linux_register_raw_size): Remove prototypes.
3870 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3871 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3872 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3873 TARGET_WRITE_PC): Remove defines.
3874 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3875 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3876 i386_linux_write_pc): Remove prototypes.
3877 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3878 (get_longjmp_target): Remove prototype.
3879 * i386-linux-tdep.h: New file.
3880 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3881 * i386-linux-tdep.c: Include "i386-tdep.h" and
3882 "i386-linux-tdep.h".
3883 (i386_linux_register_name, i386_linux_register_byte,
3884 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3885 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3886 Make static.
3887 (i386_linux_init_abi): New function.
3888 (_initialize_i386_linux_tdep): New function.
3889
3890 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3891 (i386_saved_pc_after_call): Remove prototype.
3892 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3893 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3894 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3895 (i386_register_name, i386_stab_reg_to_regnum,
3896 i386_dwarf_reg_to_regnum): Remove prototypes.
3897 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3898 SIZEOF_SSE_REGS): Remove defines.
3899 (REGISTER_BYTES): Remove define.
3900 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3901 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3902 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3903 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3904 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3905 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3906 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3907 (get_longjmp_target): Remove prototype.
3908 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3909 (sigtramp_saved_pc): Remove define.
3910 (i386v4_sigtramp_saved_pc): Remove prototype.
3911 * config/i386/tm-go32.h (FRAME_CHAIN,
3912 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3913 (i386go32_frame_saved_pc): Remove prototype.
3914 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3915 (get_longjmp_target): Remove prototype.
3916 * i386-tdep.h: Include "osabi.h".
3917 (enum i386_abi): Removed.
3918 (enum struct_return): New enum.
3919 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3920 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3921 sc_pc_offset members.
3922 (i386_gdbarch_register_os_abi): Remove prototype.
3923 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3924 I386_SSE_NUM_REGS): New defines.
3925 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3926 I386_SSE_SIZEOF_REGS): New defines.
3927 (i386_register_name, i386_register_byte, i386_register_raw_size):
3928 New prototypes.
3929 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3930 (i386bsd_sigtramp_saved_pc): New prototype.
3931 * i386-tdep.c: Don't include "elf-bfd.h".
3932 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3933 i386_frame_chain, i386_saved_pc_after_call): Make static.
3934 (i386_frame_saved_pc): Rewrite to call architecture dependent
3935 function to deal with signal handlers. Make static.
3936 (i386go32_frame_saved_pc): Removed.
3937 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3938 Removed.
3939 (i386_get_longjmp_target): New function.
3940 (default_struct_convention, pcc_struct_convention,
3941 reg_struct_convention, valid_conventions, struct_convention): New
3942 variables.
3943 (i386_use_struct_convention): New function.
3944 (i386v4_sigtramp_saved_pc): Renamed to
3945 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3946 (i386_pc_in_sigtramp): New function.
3947 (i386_abi_names): Removed.
3948 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3949 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3950 Removed.
3951 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3952 i386_gdbarch_register_os_abi): Removed.
3953 (struct i386_abi_handler): Removed.
3954 (i386_abi_handler_list): Removed.
3955 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3956 functions.
3957 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3958 i386_nw_init_abi): New functions.
3959 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3960 Use set_gdbarch_xxx() calls instead of relying on macros for a
3961 number of calls.
3962 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3963 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3964 Register the various architecture variants defined in this file.
3965
3966 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3967
3968 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3969 (struct main_type): Remove arg_types member. Update comments for
3970 struct field.
3971 (TYPE_ARG_TYPES): Remove.
3972 (TYPE_FN_FIELD_ARGS): Update.
3973 (smash_to_method_type): Update prototype.
3974
3975 * c-typeprint.c (cp_type_print_method_args): Take method type
3976 instead of argument list. Use new argument layout. Simplify.
3977 (c_type_print_args): Use new argument layout. Simplify.
3978 (c_type_print_base): Update call to cp_type_print_method_args.
3979 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3980 argument; use die->type instead. Update call to
3981 smash_to_method_type.
3982 (read_structure_scope): Update call to dwarf2_add_member_fn.
3983 * gdbtypes.c (allocate_stub_method): Update comment.
3984 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3985 Use new argument layout.
3986 (check_stub_method): Use new argument layout. Don't count
3987 void as an argument.
3988 (print_arg_types): Update comments. Use new argument layout.
3989 (recursive_dump_type): Don't print arg_types member.
3990 * hpread.c (hpread_read_struct_type): Use new argument layout.
3991 (fixup_class_method_type): Likewise.
3992 (hpread_type_lookup): Likewise.
3993 * stabsread.c (read_type): Update calls to read_args and
3994 smash_to_method_type.
3995 (read_args): Use new argument layout. Simplify.
3996 * valops.c (typecmp): Use new argument layout. Update parameters
3997 and comments. Simplify.
3998 (hand_function_call): Use new argument layout.
3999 (search_struct_method): Update call to typecmp.
4000 (find_overload_match): Use new argument layout.
4001
4002 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4003
4004 * NEWS: Mention multithreaded debug support for gdbserver.
4005
4006 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4007
4008 * MAINTAINERS: Mention NEWS.
4009
4010 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4011
4012 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4013 (struct mips_objfile_private, compare_pdr_entries): New.
4014 (non_heuristic_proc_desc): Read the ".pdr" section if it
4015 is present.
4016
4017 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4018
4019 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4020 (arm_debug): New static variable.
4021 (_initialize_arm_tdep): Add ``set debug arm'' command.
4022
4023 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4024
4025 * Makefile.in (sim_arm_h): Define.
4026 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4027 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4028 (arm_register_sim_regno): New function, map an internal REGNUM
4029 onto a simulator register number.
4030 (arm_gdbarch_init): Set register_sim_regno.
4031
4032 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4033
4034 * MAINTAINERS: Add self.
4035
4036 2002-06-11 Jim Blandy <jimb@redhat.com>
4037
4038 * source.c (source_info): Mention whether the symtab has
4039 information about preprocessor macros.
4040
4041 Call the command `info macro', not `show macro'.
4042 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4043 Fix error message.
4044 (_initialize_macrocmd): Register `info_macro_command' in
4045 `infolist', not `showlist'.
4046
4047 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4048
4049 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4050 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4051 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4052 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4053 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4054 unconditionally.
4055 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4056 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4057 (_initialize_mips_tdep): Remove dead code.
4058 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4059 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4060 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4061 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4062 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4063 MIPS_LAST_FP_ARG_REGNUM): Remove.
4064
4065 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4066
4067 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4068 (unwind_tmp_obstack_free, parse_frame_info)
4069 (update_context, cfi_read_fp, cfi_write_fp)
4070 (cfi_frame_chain, cfi_init_extra_frame_info)
4071 (cfi_virtual_frame_pointer): Use the above function.
4072 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4073
4074 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4075
4076 * v850-tdep.c (v850_type_is_scalar): New function.
4077 (v850_use_struct_convention): Match current gcc implementation
4078 as close as possible.
4079 (v850_push_arguments): Fix stack_offset handling. Don't write
4080 struct_addr into register. This is done by v850_store_struct_return.
4081 (v850_extract_return_value): Care for structs.
4082 (v850_store_return_value): Ditto.
4083 (v850_store_struct_return): Actually write address.
4084
4085 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4086
4087 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4088 without debug information too.
4089
4090 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4091
4092 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4093 Make multi-arch pure.
4094 * gdbarch.h, gdbarch.c: Re-generate.
4095 * arm-tdep.c (arm_print_float_info): Update.
4096 * arch-utils.h (default_print_float_info): Update.
4097 * arch-utils.c (default_print_float_info): Update.
4098 * infcmd.c (float_info): Update call.
4099
4100 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4101
4102 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4103 the front of the initialize list.
4104
4105 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4106
4107 * infrun.c (struct inferior_status): Replace fields
4108 selected_frame_address and selected_level with field
4109 selected_frame_id.
4110 (save_inferior_status): Update. Use get_frame_id.
4111 (struct restore_selected_frame_args): Delete.
4112 (restore_selected_frame): Update. Use frame_find_by_id.
4113 (restore_inferior_status): Update.
4114
4115 * breakpoint.h (struct breakpoint): Change type of
4116 watchpoint_frame to frame_id.
4117 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4118 call to get_current_frame.
4119 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4120 get_current_frame.
4121 (watchpoint_check): Use frame_find_by_id.
4122
4123 * frame.h (record_selected_frame): Delete declaration.
4124 * stack.c (record_selected_frame): Delete function.
4125
4126 * frame.h (struct frame_id): Define.
4127 (get_frame_id): Declare.
4128 (frame_find_by_id): Declare.
4129 * frame.c (frame_find_by_id): New function.
4130 (get_frame_id): New function.
4131
4132 2002-06-10 Andrey Volkov <avolkov@transas.com>
4133
4134 * ser-e7kpc.c: Fix duplicated define and call of
4135 _initialize_ser_e7000pc
4136
4137 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4138
4139 * signals/signals.c (target_signal_from_host): Fix #ifdef
4140 SIGRTMIN case.
4141 (do_target_signal_to_host): Likewise.
4142
4143 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4144
4145 * mips-tdep.c (mips_find_abi_section): New function.
4146 (mips_gdbarch_init): Call it.
4147
4148 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4149
4150 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4151 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4152 after Andrew's 2002-06-08 gdbarch change.
4153
4154 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4155
4156 * i386-linux-nat.c (suppy_gregset): Don't supply
4157 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4158 register cache.
4159 (fill_gregset): Don't fetch it under the same circumstances.
4160
4161 2002-06-09 Andrew Cagney <cagney@redhat.com>
4162
4163 * Makefile.in (callback_h): Define.
4164 (remote_sim_h): Update path to remote-sim.h.
4165 (remote-rdp.o): Add $(callback_h).
4166 (remote-sim.o): Use $(callback_h).
4167 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4168 * remote-rdp.c: Include "gdb/callback.h".
4169
4170 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4171
4172 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4173 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4174
4175 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4176
4177 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4178 * rdi-share/serpardr.c: Ditto.
4179 * rdi-share/unixcomm.c: Ditto.
4180 * rdi-share/serdrv.c: Ditto.
4181 * rdi-share/hostchan.h: Ditto.
4182 * rdi-share/hostchan.c: Ditto.
4183 * rdi-share/host.h: Ditto.
4184 * rdi-share/devsw.c: Ditto.
4185
4186 * objfiles.h: Change type of obj_private to void pointer.
4187 * pa64solib.c: Update copyright. Don't include "assert.h", use
4188 strcmp instead of STREQ, use LONGEST, do not use PTR
4189 * somsolib.c: Ditto.
4190
4191 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4192 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4193 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4194
4195 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4196
4197 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4198 (default_get_saved_register): Delete function.
4199 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4200 generic_unwind_get_saved_register.
4201 * gdbarch.h, gdbarch.c: Re-generate.
4202
4203 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4204
4205 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4206 generic_func_frame_chain_valid.
4207 * gdbarch.h, gdbarch.c: Re-generate.
4208 * blockframe.c (generic_func_frame_chain_valid): Only check
4209 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4210 passing FP to PC_IN_CALL_DUMMY.
4211 Fix PR gdb/360.
4212
4213 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4214
4215 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4216 (register_gdbarch_data): Initialize init_p.
4217 (gdbarch_data): Initialize data pointer using the init function.
4218 (init_gdbarch_data): Delete function.
4219 (gdbarch_update_p): Update.
4220 (initialize_non_multiarch): Update.
4221 (struct gdbarch): Add field initialized_p.
4222 * gdbarch.h, gdbarch.c: Re-generate.
4223
4224 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4225
4226 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4227 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4228 better do the things actually here.
4229 * x86-64-tdep.c (x86_64_register_name2nr): New.
4230 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4231 (x86_64_gdbarch_init): Respect the above change.
4232 * x86-64-tdep.h (x86_64_register_name2nr)
4233 (x86_64_register_nr2name): Add prototypes.
4234 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4235
4236 2002-06-06 Michael Snyder <msnyder@redhat.com>
4237
4238 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4239 Delete extra braces and re-indent.
4240 (d10v_store_return_value): Char return values
4241 must be shifted over by one byte in R0.
4242 (d10v_extract_return_value): Delete extra braces, re-indent.
4243
4244 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4245
4246 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4247 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4248 (d10v_integer_to_address): Rewrite.
4249 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4250 the d10v specific functions which take care of converting to the
4251 correct space.
4252
4253 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4254
4255 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4256 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4257
4258 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4259
4260 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4261 includes.
4262 * config/tm-linux.h: Ditto.
4263 * config/alpha/tm-alphalinux.h: Ditto.
4264 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4265 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4266 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4267 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4268 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4269 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4270 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4271 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4272 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4273 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4274 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4275 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4276 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4277 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4278 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4279 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4280 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4281 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4282 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4283 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4284 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4285 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4286 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4287 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4288 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4289 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4290 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4291 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4292 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4293 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4294 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4295 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4296 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4297 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4298 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4299 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4300 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4301
4302 2002-05-04 Aidan Skinner <aidan@velvet.net>
4303
4304 * ada-exp.tab.c: New file
4305 * ada-exp.y: New file
4306 * ada-lang.c: New file
4307 * ada-lang.h: New file
4308 * ada-lex.c: New file
4309 * ada-lex.l: New file
4310 * ada-tasks.c: New file
4311 * ada-typeprint.c: New file
4312 * ada-valprint.c: New file
4313
4314 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4315
4316 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4317 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4318
4319 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4320
4321 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4322 insetead of ppc-linux-tdep.o.
4323 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4324 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4325
4326 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4327
4328 2002-05-07 Christian Groessler <chris@groessler.org>
4329 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4330 bit register contents for little endian hosts.
4331
4332 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4333
4334 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4335 any maintainer.
4336
4337 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4338
4339 * gdbarch.h: Regenerate.
4340
4341 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4342
4343 * MAINTAINERS: Add everyone to write-after-approval list.
4344
4345 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4346
4347 * stack.c (frame_info): Use frame_register_unwind instead of
4348 saved_regs. Mention when the SP is on the stack or in a register.
4349
4350 * frame.h (frame_register_unwind_ftype): Define. Document.
4351 (struct frame_info): Add field register_unwind and
4352 register_unwind_cache.
4353 (frame_register_unwind): Declare.
4354 (generic_unwind_get_saved_register): Declare.
4355
4356 * frame.c (frame_register_unwind): New function.
4357 (generic_unwind_get_saved_register): New function.
4358
4359 * blockframe.c (generic_call_dummy_register_unwind): New function.
4360 (frame_saved_regs_register_unwind): New function.
4361 (set_unwind_by_pc): New function.
4362 (create_new_frame): New function.
4363 (get_prev_frame): New function.
4364
4365 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4366
4367 * a29k-share/: Delete directory.
4368 * remote-vx29k.c: Delete file.
4369
4370 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4371
4372 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4373 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4374
4375 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4376
4377 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4378 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4379 (sparc64nbsd-nat.o)
4380 (sparcnbsd-nat.o)
4381 (sparcnbsd-tdep.o): New dependency lists.
4382 * NEWS: Note new UltraSPARC NetBSD native configuration.
4383 * configure.host (sparc64-*-netbsd*): New host.
4384 * configure.tgt (sparc-*-netbsdelf*)
4385 (sparc-*-netbsd*): Set gdb_target to nbsd.
4386 (sparc64-*-netbsd*): New target.
4387 * sparc64nbsd-nat.c: New file.
4388 * sparcnbsd-nat.c: New file.
4389 * sparcnbsd-tdep.c: New file.
4390 * sparcnbsd-tdep.h: New file.
4391 * config/sparc/nbsd.mt: New file.
4392 * config/sparc/nbsd64.mh: New file.
4393 * config/sparc/nbsd64.mt: New file.
4394 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4395 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4396 (HOST_IPC): Remove.
4397 * config/sparc/nbsdaout.mt: Remove.
4398 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4399 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4400 (HOST_IPC): Remove.
4401 * config/sparc/nbsdelf.mt: Remove.
4402 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4403 sparc-nat.c compatiblity defines.
4404 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4405 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4406 * config/sparc/tm-nbsd64.h: New file.
4407 * config/sparc/tm-nbsdaout.h: Remove.
4408 * config/sparc/xm-nbsd.h: Remove.
4409
4410 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4411
4412 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4413 * sparc-tdep.c: Include osabi.h.
4414 (gdbarch_tdep): Add osabi member.
4415 (_initialize_sparc_tdep): Use gdbarch_register.
4416 (sparc_gdbarch_init): Use generic OS ABI framework.
4417 (sparc_dump_tdep): New function.
4418
4419 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4420
4421 * corefile.c (do_captured_read_memory_integer): Return non-zero
4422 result.
4423 (safe_read_memory_integer): Copy result of memory read when
4424 status is non-zero. Also, add comments.
4425
4426 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4427
4428 * Makefile.in (ppc_tdep_h): Define.
4429 (ppc-linux-nat.o)
4430 (ppc-linux-tdep.o)
4431 (rs6000-tdep.o): Use $(ppc_tdep_h).
4432 (ppc-sysv-tdep.o)
4433 (ppcnbsd-nat.o)
4434 (ppcnbsd-tdep.o): New dependency lists.
4435 * ppc-tdep.h: Use generic OS ABI framework.
4436 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4437 (ppc_linux_init_abi): New functions.
4438 (ppc_sysv_abi_broken_use_struct_convention)
4439 (ppc_sysv_abi_use_struct_convention)
4440 (ppc_sysv_abi_push_arguments): Move to...
4441 * ppc-sysv-tdep.c: ...here.
4442 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4443 * rs6000-tdep.c (process_note_abi_tag_sections)
4444 (get_elfosabi): Remove.
4445 (rs6000_gdbarch_init): Use generic OS ABI framework.
4446 (rs6000_dump_tdep): New function.
4447 (_initialize_rs6000_tdep): Use gdbarch_register.
4448 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4449 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4450 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4451 of ppc-linux-tdep.o.
4452 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4453 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4454 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4455 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4456 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4457 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4458
4459 2002-05-29 Jim Blandy <jimb@redhat.com>
4460
4461 * macroscope.c (default_macro_scope): Put `void' in empty argument
4462 list.
4463
4464 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4465
4466 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4467 * arch-utils.c: Include "sim-regno.h".
4468 * gdbarch.sh: Don't include "sim-regno.h".
4469 * gdbarch.h, gdbarch.c: Regenerate.
4470 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4471 here.
4472 * arch-utils.h (legacy_register_sim_regno): To here.
4473 * remote-sim.c (legacy_register_sim_regno): Move function from
4474 here.
4475 * arch-utils.c (legacy_register_sim_regno): To here.
4476
4477 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4478
4479 * sim-regno.h: New file.
4480 * Makefile.in (sim_regno_h): Define.
4481 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4482 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4483 (legacy_register_sim_regno): New function.
4484 (one2one_register_sim_regno): New function.
4485 (gdbsim_fetch_register): Rewrite.
4486 (gdbsim_store_register): Only store a register when
4487 REGISTER_SIM_REGNO is valid.
4488 * d10v-tdep.c: Include "sim-regno.h".
4489 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4490 (d10v_ts3_register_sim_regno): Ditto.
4491 * gdbarch.sh: Include "sim-regno.h".
4492 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4493 * gdbarch.h, gdbarch.c: Regenerate.
4494 * arch-utils.h (default_register_sim_regno): Delete declaration.
4495 * arch-utils.c (default_register_sim_regno): Delete function.
4496
4497 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4498
4499 * ppcnbsd-nat.c: Rewrite.
4500 * ppcnbsd-tdep.c: New file.
4501 * ppcnbsd-tdep.h: New file.
4502 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4503 solib.o, and solib-svr4.o.
4504 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4505 nbsd-tdep.o, and corelow.o.
4506
4507 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4508
4509 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4510 `tr' and `sed'. Mention that `broken' targets are not expected to
4511 build.
4512
4513 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4514
4515 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4516 Let PC point right after the prologue before looking up symbols.
4517
4518 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4519
4520 * i386-tdep.c (i386_register_virtual_type): Return
4521 builtin_type_vec128i for SSE registers.
4522
4523 * gdbtypes.h (builtin_type_vec128i): Declare.
4524
4525 * gdbtypes.c (build_builtin_type_vec128i): New function.
4526 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4527 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4528 (build_gdbtypes): Initialize new builtin vector types.
4529 (_initialize_gdbtypes): Register new vector types with gdbarch.
4530
4531 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4532
4533 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4534 since it has been multi-arch'd.
4535 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4536 Move Alpha and VAX multi-arch news entries to same section
4537 as other multi-arch news.
4538
4539 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4540
4541 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4542 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4543 static. Rename some register numbers to put them in ns32k-tdep
4544 private namespace.
4545 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4546 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4547 functions.
4548 (_initialize_ns32k_tdep): Use gdbarch_register.
4549 * ns32k-tdep.h: New file.
4550 * ns32knbsd-tdep.c: New file.
4551 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4552 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4553 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4554 REGISTER_BYTES, REGISTER_BYTE): Remove.
4555 * config/ns32k/tm-ns32k.h: New file.
4556 * config/ns32k/tm-umax.h: Remove.
4557
4558 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4559
4560 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4561 ns32k_store_struct_return, ns32k_extract_return_value,
4562 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4563 functions.
4564 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4565 ns32k_saved_pc_after_call.
4566 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4567 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4568 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4569 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4570 ns32k_extract_struct_value_address.
4571
4572 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4573
4574 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4575 ns32k_fix_call_dummy): New.
4576 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4577 ns32k_call_dummy_words.
4578 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4579 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4580 CALL_DUMMY_NARGS): Remove.
4581 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4582
4583 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4584
4585 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4586 ns32k_frame_saved_pc, ns32k_frame_args_address,
4587 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4588 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4589 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4590 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4591 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4592 (BREAKPOINT): Remove..
4593 (FRAME_CHAIN): Define as ns32k_frame_chain.
4594 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4595 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4596 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4597 (FRAME_FIND_SAVED_REGS): Remove.
4598 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4599 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4600 (POP_FRAME): Define as ns32k_pop_frame.
4601
4602 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4603
4604 * ns32k-tdep.c (ns32k_register_byte_32082,
4605 ns32k_register_byte_32382, ns32k_register_raw_size,
4606 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4607 functions.
4608 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4609 ns32k_register_byte_32382.
4610 * config/ns32k/tm-umax.h: Update copyright years.
4611 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4612 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4613 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4614 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4615 (ns32k_get_enter_addr): Fix prototype.
4616
4617 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4618
4619 * ns32k-tdep.c: Update copyright years.
4620 (ns32k_register_name_32082): New function.
4621 (ns32k_register_name_32382): Ditto.
4622 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4623 (REGISTER_NAME): Define as ns32k_register_name_32382.
4624 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4625 (REGISTER_NAME): Define as ns32k_register_name_32082.
4626
4627 2002-05-24 Jim Blandy <jimb@redhat.com>
4628
4629 * dwarf2read.c (free_line_header): Use xfree, not free.
4630
4631 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4632
4633 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4634 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4635
4636 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4637
4638 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4639
4640 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4641
4642 From Ross Alexander at NEC Europe:
4643 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4644
4645 2002-05-23 Michael Snyder <msnyder@redhat.com>
4646
4647 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4648 for input, rather than parse_and_eval_address.
4649
4650 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4651
4652 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4653 * Makefile.in (sim_d10v_h): Update definition.
4654
4655 2002-05-24 Andrew Cagney <cagney@redhat.com>
4656
4657 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4658 change `2002-05-22 Michael Snyder' below.
4659 (d10v_push_arguments): Ditto.
4660 (d10v_extract_return_value): Ditto.
4661
4662 2002-05-23 Jim Blandy <jimb@redhat.com>
4663
4664 * macrotab.c (check_for_redefinition): Don't complain if the new
4665 definition is the same as the previous one. Take more arguments
4666 to allow the comparison.
4667 (macro_define_object, macro_define_function): Pass more arguments
4668 to check_for_redefinition.
4669
4670 2002-05-22 Michael Snyder <msnyder@redhat.com>
4671
4672 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4673 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4674 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4675 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4676 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4677 Add a temp variable to save a call (and a memory read).
4678 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4679 if possible (so that PC_IN_CALL_DUMMY will work).
4680
4681 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4682
4683 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4684
4685 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4686
4687 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4688 fde->cie_ptr.
4689 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4690 (dwarf2_build_frame_info): Add offset to fde->initial_location
4691 so that frames of shared libraries are mapped correctly.
4692 (execute_stack_op): Change type of 'result' from ULONGEST to
4693 CORE_ADDR.
4694
4695 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4696
4697 * config/alpha/tm-nbsd.h: Include solib.h.
4698
4699 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4700
4701 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4702 assumptions about the host's byte order.
4703
4704 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4705
4706 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4707 to dependency list.
4708 * alphanbsd-tdep.c: Include solib-svr4.h.
4709 * shnbsd-tdep.c: Ditto.
4710
4711 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4712
4713 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4714 nbsd-tdep.h to dependency list.
4715 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4716 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4717 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4718 nbsdaout.mh and nbsdelf.mh consistently.
4719 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4720 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4721 nbsdaout.mt and nbsdelf.mh consistently.
4722 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4723 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4724 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4725 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4726 a.out shared library stuff from here...
4727 * config/nm-nbsdaout.h: ...to here.
4728 * config/tm-nbsd.h: Remove.
4729 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4730 * config/arm/nbsd.mh: Remove.
4731 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4732 nbsd-tdep.o.
4733 * config/arm/nbsdaout.mh: New file.
4734 * config/arm/nbsdelf.mh: New file.
4735 * config/arm/nm-nbsdaout.h: New file.
4736 * config/i386/nbsd.mh: Remove.
4737 * config/i386/nbsd.mt: Remove.
4738 * config/i386/nbsdaout.mh: New file.
4739 * config/i386/nbsdaout.mt: New file.
4740 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4741 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4742 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4743 i386_register_u_addr): Remove.
4744 * config/i386/nm-nbsdaout.h: New file.
4745 * config/i386/nm-nbsdelf.h: Remove.
4746 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4747 (USE_STRUCT_CONVENTION): Remove.
4748 * config/i386/tm-nbsdaout.h: New file.
4749 * config/i386/tm-nbsdelf.h: Remove.
4750 * config/m68k/nbsd.mh: Remove.
4751 * config/m68k/nbsd.mt: Remove.
4752 * config/m68k/nbsdaout.mh: New file.
4753 * config/m68k/nbsdaout.mt: New file.
4754 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4755 * config/m68k/nm-nbsdaout.h: New file.
4756 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4757 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4758 * config/ns32k/nbsd.mh: Remove.
4759 * config/ns32k/nbsd.mt: Remove.
4760 * config/ns32k/nbsdaout.mh: New file.
4761 * config/ns32k/nbsdaout.mt: New file.
4762 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4763 * config/ns32k/nm-nbsdaout.h: New file.
4764 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4765 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4766 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4767 (SVR4_SHARED_LIBS): Remove.
4768 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4769 * config/sparc/nbsd.mh: Remove.
4770 * config/sparc/nbsd.mt: Remove.
4771 * config/sparc/nbsdaout.mh: New file.
4772 * config/sparc/nbsdaout.mt: New file.
4773 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4774 * config/sparc/nbsdelf.mt: New file.
4775 * config/sparc/nm-nbsdaout.h: New file.
4776 * config/sparc/nm-nbsdelf.h: Remove.
4777 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4778 * config/sparc/tm-nbsdaout.h: New file.
4779
4780 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4781
4782 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4783 mipsnbsd-tdep.c
4784 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4785
4786 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4787
4788 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4789 shnbsd-nat.c.
4790 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4791
4792 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4793
4794 * NEWS: Note new MIPS NetBSD native configuration.
4795 * configure.host (mips*-*-netbsd*): New host.
4796 * configure.tgt (mips*-*-netbsd*): New target.
4797 * mipsnbsd-nat.c: New file.
4798 * mipsnbsd-tdep.c: New file.
4799 * mipsnbsd-tdep.h: New file.
4800 * config/mips/nbsd.mh: New file.
4801 * config/mips/nbsd.mt: New file.
4802 * config/mips/nm-nbsd.h: New file.
4803 * config/mips/tm-nbsd.h: New file.
4804
4805 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4806
4807 * Makefile.in (SFILES): Add osabi.c.
4808 (COMMON_OBS): Add osabi.o.
4809 (osabi.o): New dependency list.
4810 * osabi.c: New file.
4811 * osabi.h: New file.
4812 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4813
4814 * Makefile.in (alpha_tdep_h): Define and use instead of
4815 alpha-tdep.h.
4816 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4817 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4818 Remove.
4819 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4820 * alpha-tdep.h: Include osabi.h.
4821 (alpha_abi): Remove.
4822 (gdbarch_tdep): Use generic OS ABI framework.
4823 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4824 gdbarch_register_osabi.
4825 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4826 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4827 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4828
4829 * Makefile.in (sh_tdep_h): Add osabi.h.
4830 * sh-tdep.h (sh_osabi): Remove.
4831 (gdbarch_tdep): Use generic OS ABI framework.
4832 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4833 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4834 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4835 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4836
4837 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4838 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4839 gdbarch_register_osabi.
4840 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4841 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4842 (get_elfosabi): Rename to...
4843 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4844 ABI framework support routines.
4845 (arm_gdbarch_init): Use generic OS ABI framework.
4846 (arm_dump_tdep): Likewise.
4847 (_initialize_arm_tdep): Likewise.
4848 * arm-tdep.h: Include osabi.h.
4849 (arm_abi): Remove.
4850 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4851 osabi member.
4852 (arm_gdbarch_register_os_abi): Remove prototype.
4853 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4854 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4855
4856 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4857 * mips-tdep.c: Include osabi.h.
4858 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4859 OS ABI framework.
4860
4861 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4862
4863 * h8300-tdep.c: Fix formatting.
4864
4865 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4866
4867 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4868 printing vector registers.
4869
4870 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4871
4872 From Fernando Nasser:
4873 * remote.c (remote_async_open_1): Re-throw the exception when the
4874 connection fails.
4875 (remote_cisco_open): Ditto.
4876 (remote_open_1): Ditto.
4877
4878 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4879
4880 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4881 (remote_start_remote): Add uiout parameter. Pass through to
4882 remote_start_remote_dummy.
4883 (remote_open_1): Use catch_exception instead of catch_errors.
4884 (remote_async_open_1): Ditto.
4885 (remote_cisco_open): Ditto.
4886
4887 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4888
4889 * remote.c (remote_start_remote): Replace PTR with void pointer.
4890 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4891 static.
4892
4893 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4894
4895 * gdb_indent.sh: Allow the script to be run in the sim directory.
4896
4897 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4898
4899 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4900 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4901
4902 * corelow.c (core_open): Only call set_gdbarch_from_file if
4903 exec_bfd is NULL.
4904
4905 2002-05-17 Andrey Volkov <avolkov@transas.com>
4906
4907 * h8300-tdep.c: Add support of EXR register
4908 * config/h8300/tm-h8300.h: Ditto.
4909
4910 2002-05-17 Andrey Volkov <avolkov@transas.com>
4911
4912 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4913
4914 2002-05-17 Andrey Volkov <avolkov@transas.com>
4915
4916 * h8300-tdep.c: Change literal regnums to REGNO.
4917
4918 2002-05-17 Jim Blandy <jimb@redhat.com>
4919
4920 * NEWS: Note addition of macro support.
4921
4922 Expand preprocessor macros in C expressions.
4923 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4924 (scan_macro_expansion, scanning_macro_expansion,
4925 finished_macro_expansion): New function declarations.
4926 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4927 variable declarations.
4928 * parser-defs.h (expression_context_pc): New declaration.
4929 * parse.c (expression_context_pc): New variable.
4930 (parse_exp_1): Set expression_context_pc, as well as
4931 expression_context_block.
4932 * c-exp.y (yylex): If we're not already reading the result of a
4933 macro expansion, try to macro-expand the next token. When we're
4934 done scanning a macro expansion, switch back to the mainline text.
4935 Commas and `if's in a macro's expansion don't terminate the input.
4936 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4937 (macro_original_text, macro_expanded_text,
4938 expression_macro_lookup_func, expression_macro_lookup_baton): New
4939 variables.
4940 (scan_macro_expansion, scanning_macro_expansion,
4941 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4942 c_preprocess_and_parse): New functions.
4943 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4944 c_preprocess_and_parse, instead of c_parse.
4945 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4946 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4947
4948 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4949
4950 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4951 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4952 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4953
4954 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4955
4956 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4957
4958 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4959
4960 * Makefile.in (sh_tdep_h): Define and use.
4961 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4962 register enum): Move to...
4963 * * sh-tdep.h: ...here.
4964 * sh-tdep.c: Include sh-tdep.h.
4965 * sh3-rom.c: Likewise.
4966 * shnbsd-tdep.c: Likewise.
4967
4968 2002-05-16 Michael Snyder <msnyder@redhat.com>
4969
4970 * arm-tdep.c: Spelling fix in comment.
4971
4972 2002-05-16 Jim Blandy <jimb@redhat.com>
4973
4974 Add commands for manually expanding macros and showing their
4975 definitions.
4976 * macrocmd.c, macroscope.c, macroscope.h: New files.
4977 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4978 (macroscope_h): New variable.
4979 (HFILES_NO_SRCDIR): Add macroscope.h.
4980 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4981 (macroscope.o, macrocmd.o): New rules.
4982
4983 Teach the Dwarf 2 reader to read macro information.
4984 * dwarf2read.c: #include "macrotab.h".
4985 (dwarf_macinfo_buffer): New variable.
4986 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4987 dwarf_macinfo_size.
4988 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4989 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4990 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4991 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4992 dwarf2_macro_spaces_in_definition): New complaints.
4993 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4994 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4995 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4996 the partial symbol table.
4997 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4998 from what's recorded in the partial symbol table.
4999 (read_file_scope): If the compilation unit has a
5000 `DW_AT_macro_info' attribute, read its macro information.
5001 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5002
5003 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5004
5005 Fix PR gdb/546
5006 * ser-tcp.c: Don't include <netinet/udp.h>.
5007
5008 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5009
5010 * MAINTAINERS: Update my email address.
5011
5012 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5013
5014 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5015 include file of the same name.
5016
5017 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5018
5019 * configure.tgt: Mark v850 as multi-arched.
5020 * config/v850/tm-v850.h: Remove file.
5021 * config/v850/v850.mt: Eliminate TM_FILE.
5022
5023 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5024
5025 * v850-tdep.c: Full multi-arch.
5026 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5027 Define GDB_MULTI_ARCH to 2.
5028
5029 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5030
5031 * p-exp.y (current_type): New static variable.
5032 Carries the type of the expression at the position that is parsed.
5033 (push_current_type, pop_current_type): Two new functions. Used
5034 to store/restore current_type in expression on specific tokens.
5035 (search_field): New static variable. Set to one after parsing a point
5036 as at that point only a FIELDNAME token should be searched.
5037 (FIELDNAME): New token. After a point only a token belonging to
5038 current_type type definition is allowed.
5039 (all over token rules): reset and change current_type according
5040 to rules.
5041 (exp '[' rule): insert implicit array index field if
5042 exp is a pascal string type.
5043
5044 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5045
5046 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5047 frame info. Use frame_info's saved_regs instead of matching member
5048 in extra_frame_info throughout.
5049 (v850_frame_init_saved_regs): New function.
5050 (v850_init_extra_frame_info): Move most functionality into
5051 v850_frame_init_saved_regs().
5052 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5053 (v850_frame_find_saved_regs): Remove declaration.
5054 (FRAME_FIND_SAVED_REGS): Remove definition.
5055 (v850_frame_init_saved_regs): Add declaration.
5056 (FRAME_INIT_SAVED_REGS): Add definition.
5057
5058 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5059
5060 * v850-tdep.c: Begin multi-arch'ing v850.
5061 (v850_target_architecture_hook): Remove function.
5062 (v850_gdbarch_init): New function. Add code previously in
5063 v850_target_architecture_hook().
5064 (_initialize_v850_tdep): Don't set target_architecture_hook.
5065 Call register_gdbarch_init() instead.
5066
5067 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5068
5069 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5070 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5071 (fixup_class_method_type): Likewise.
5072
5073 2002-05-15 Jim Blandy <jimb@redhat.com>
5074
5075 Add macro structures to GDB's symbol tables. Nobody puts anything
5076 in them yet.
5077 * symtab.h (struct symtab): New member: `macro_table'.
5078 * buildsym.h (pending_macros): New global variable.
5079 * buildsym.c: #include "macrotab.h".
5080 (buildsym_init): Initialize `pending_macros'.
5081 (end_symtab): If we found macro information while reading a CU's
5082 debugging info, do build a symtab structure for it. Make the
5083 symtab point to the macro information, and clear the
5084 `pending_macros' pointer which held it while we were reading the
5085 debug info.
5086 (really_free_pendings): Free any pending macro table.
5087 * objfiles.h (struct objfile): New member: `macro_cache'.
5088 * objfiles.c (allocate_objfile): Set allocate and free functions
5089 for the macro cache's objstack.
5090 (free_objfile): Empty the macro cache's obstack.
5091 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5092 set new allocate and free functions for it.
5093 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5094 free functions for the macro cache's objstack. (Why is this
5095 function building its own objfile?)
5096 * symmisc.c (print_objfile_statistics): Print statistics on the
5097 macro bcache.
5098 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5099
5100 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5101
5102 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5103 (REGISTER_U_ADDR): Delete definition.
5104 (arm_register_u_addr): Delete declaration.
5105
5106 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5107
5108 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5109 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5110
5111 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5112
5113 * regcache.c (register_valid): Revise comments refering to "Not
5114 available" and "unavailable".
5115 * frame.c (frame_register_read): Ditto.
5116 * findvar.c (value_of_register): Ditto.
5117
5118 2002-05-15 Andrew Cagney <cagney@redhat.com>
5119
5120 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5121 (remote-sim.o): Update dependencies.
5122 (d10v-tdep.o): Specify dependencies.
5123 (sim_d10v_h): Define.
5124
5125 2002-05-14 Jim Blandy <jimb@redhat.com>
5126
5127 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5128 * macrotab.c (macro_lookup_inclusion, find_definition,
5129 new_macro_table): Same.
5130
5131 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5132 not `! strcmp ()'. This is a dubious improvement.
5133 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5134
5135 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5136 although it's not necessary, to avoid a warning.
5137
5138 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5139
5140 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5141 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5142 TYPE_INSTANCE_FLAGS.
5143 (struct main_type): New.
5144 (struct type): Move most members to struct main_type. Change
5145 cv_type and as_type to new type_chain member. Add instance_flags.
5146 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5147 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5148 (finish_cv_type): Remove prototype.
5149 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5150 Set TYPE_CHAIN.
5151 (alloc_type_instance): New function.
5152 (smash_type): New function.
5153 (make_pointer_type, make_reference_type, make_function_type)
5154 (smash_to_member_type, smash_to_method_type): Call smash_type.
5155 (make_qualified_type): New function.
5156 (make_type_with_address_space): Call make_qualified_type.
5157 (make_cv_type): Likewise.
5158 (finish_cv_type): Remove unnecessary function.
5159 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5160 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5161 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5162 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5163 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5164 * hpread.c (hpread_read_struct_type): Likewise.
5165 * stabsread.c (read_struct_type): Likewise.
5166
5167 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5168
5169 * configure.tgt: Add a catch all sh* target, for cases like
5170 sh[2,3,4]-elf and sh-hms.
5171
5172 2002-05-14 Keith Seitz <keiths@redhat.com>
5173
5174 * event-loop.c (create_file_handler): Don't do anything but
5175 update data when we are given a fd which we are already
5176 monitoring.
5177
5178 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5179
5180 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5181 (update_context): Use __func__ in warnings.
5182
5183 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5184
5185 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5186 and tcp_close to net_open and net_close.
5187 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5188 using UDP if requested. Don't try to disable Nagle on UDP
5189 sockets.
5190 * remote.c (remote_serial_open): New function. Warn about UDP.
5191 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5192
5193 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5194
5195 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5196
5197 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5198
5199 * configure.tgt: Remove sh-hms target.
5200 * MAINTAINERS: Don't list sh-hms as a separate target.
5201
5202 2002-05-13 Jim Blandy <jimb@redhat.com>
5203
5204 Add first preprocessor macro-expansion files.
5205 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5206 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5207 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5208 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5209 (COMMON_OBS): Add macrotab.o, macroexp.o.
5210 (macroexp.o, macrotab.o): New rules.
5211
5212 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5213
5214 * config/m88k/tm-m88k.h: Update copyright.
5215 (m88k_target_write_pc): Declare
5216 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5217 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5218 (SHIFT_INST_REGS): Update definition.
5219 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5220 using old definition of TARGET_WRITE_PC.
5221 * regcache.c (generic_target_write_pc): Delete code handling
5222 NNPC_REGNUM.
5223 * gdbarch.sh (NNPC_REGNUM): Delete.
5224 * gdbarch.h, gdbarch.c: Regenerate.
5225
5226 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5227
5228 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5229 builtin reg number.
5230
5231 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5232
5233 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5234 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5235 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5236 access macros.
5237 * c-typeprint.c (cp_type_print_method_args): Likewise.
5238 (c_type_print_args): Likewise.
5239 * d10v-tdep.c (d10v_push_arguments): Likewise.
5240 (d10v_extract_return_value): Likewise.
5241 * expprint.c (print_subexp): Likewise.
5242 * gdbtypes.c (lookup_primitive_typename): Likewise.
5243 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5244 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5245 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5246 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5247 (TYPE_VECTOR): Likewise.
5248 * hpread.c (hpread_read_struct_type)
5249 (fix_static_member_physnames, fixup_class_method_type)
5250 (hpread_type_lookup): Likewise.
5251 * mdebugread.c (parse_symbol, parse_type): Likewise.
5252 * p-lang.c (is_pascal_string_type): Likewise.
5253 * valops.c (hand_function_call): Likewise.
5254 * x86-64-tdep.c (classify_argument): Likewise.
5255
5256 * hpread.c (hpread_read_function_type)
5257 (hpread_read_doc_function_type): Call replace_type.
5258 * dstread.c (create_new_type): Delete.
5259 (decode_dst_structure, process_dst_function): Call alloc_type.
5260 Use type access macros.
5261
5262 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5263
5264 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5265 the're not supported by the current architecture.
5266 (i387_fill_fxsave): Likewise.
5267
5268 2002-05-12 Fred Fish <fnf@redhat.com>
5269
5270 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5271 sect_index_xxx members to index the first slot in section_offsets
5272 if all of the section_offsets are zero.
5273
5274 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5275
5276 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5277 checked in with last change.
5278
5279 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5280
5281 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5282 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5283 config.sub.
5284
5285 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5286
5287 * Makefile.in: Update dependencies.
5288
5289 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5290
5291 * language.c (local_hex_string_custom): Simplify. Do not depend
5292 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5293
5294 * memattr.c (mem_info_command): Replace calls to
5295 longest_local_hex_string and longest_local_hex_string_custom.
5296 * buildsym.c (make_blockvector): Ditto.
5297 * solib.c (info_sharedlibrary_command): Ditto.
5298 * tracepoint.c (tracepoints_info): Ditto.
5299 * symtab.c (print_msymbol_info): Ditto.
5300
5301 * language.c (local_hex_string): Delete.
5302 (local_hex_string_custom): Delete.
5303 (longest_local_hex_string): Rename to local_hex_string.
5304 (longest_local_hex_string_custom): Rename to
5305 local_hex_string_custom.
5306 * language.h (local_hex_string): Change parameter type to LONGEST.
5307 (local_hex_string_custom): Ditto.
5308 (longest_local_hex_string): Delete declaration.
5309 (longest_local_hex_string_custom): Ditto.
5310
5311 * solib.c: Update copyright.
5312 * memattr.c: Update copyright.
5313
5314 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5315
5316 * arch-utils.h (legacy_register_to_value): Declare.
5317 (legacy_value_to_register): Declare.
5318 (legacy_convert_register_p): Declare.
5319 * arch-utils.c (legacy_register_to_value): New function.
5320 (legacy_value_to_register): New function.
5321 (legacy_convert_register_p): New function.
5322
5323 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5324 (VALUE_TO_REGISTER): Define.
5325 (CONVERT_REGISTER_P): Define.
5326 * gdbarch.h, gdbarch.c: Regenerate.
5327
5328 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5329 VALUE_TO_REGISTER.
5330 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5331 CONVERT_REGISTER_P.
5332
5333 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5334 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5335
5336 * Makefile.in: Update dependencies for valops.c.
5337 * valops.c: Include "gdb_assert.h".
5338 (typecmp): Skip THIS parameter to methods.
5339 (find_method_list): Remove static_memfuncp argument,
5340 update callers. Check for stub methods.
5341 (find_value_oload_method_list): Don't set *static_memfuncp.
5342 (find_overload_match): Don't check for stub methods. Assert
5343 that methods are not stubbed. Handle static methods.
5344 (value_find_oload_method_list): Remove static_memfuncp argument.
5345 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5346 to the argument list for static stub methods.
5347 * value.h (value_find_oload_method_list): Update prototype.
5348
5349 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5350
5351 * arch-utils.h (generic_register_size): Declare.
5352 (generic_register_raw_size, generic_register_virtual_size): Delete
5353 declarations.
5354 * arch-utils.c (generic_register_raw_size): Delete.
5355 (generic_register_size): New function.
5356 (generic_register_virtual_size): Delete.
5357
5358 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5359 default generic_register_size.
5360 * gdbarch.h, gdbarch.c: Re-generate.
5361
5362 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5363 register_virtual_size.
5364 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5365 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5366
5367 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5368
5369 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5370 * gdbarch.h, gdbarch.c: Regenerate.
5371 * gnu-v3-abi.c: Update copyright.
5372 (vtable_address_point_offset): Update.
5373 (gnuv3_rtti_type): Update.
5374 (gnuv3_baseclass_offset): Update.
5375 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5376 (init_fetch_link_map_offsets): Update.
5377 * remote.c (get_remote_state): Update.
5378
5379 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5380
5381 * TODO: Remove value_headof/value_from_vtable_info comment.
5382 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5383 * values.c (value_headof, value_from_vtable_info): Delete.
5384 * value.h (value_from_vtable_info): Delete prototype.
5385
5386 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5387
5388 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5389 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5390 $(gdb_regex_h).
5391 (gdb_assert_h): Define.
5392 (gdb_wait_h): Define.
5393 (gdb_regex_h): Define.
5394
5395 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5396
5397 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5398 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5399
5400 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5401
5402 * nbsd-tdep.c: Fix comment.
5403
5404 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5405
5406 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5407 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5408 (nbsd-tdep.o): New dependency list.
5409 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5410 nbsd-tdep.h.
5411 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5412 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5413 * nbsd-tdep.c: New file.
5414 * nbsd-tdep.h: New file.
5415 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5416 nbsd-tdep.h.
5417 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5418 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5419 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5420 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5421
5422 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5423
5424 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5425 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5426 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5427 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5428 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5429 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5430
5431 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5432
5433 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5434 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5435 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5436 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5437 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5438 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5439 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5440
5441 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5442
5443 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5444 fetch_elfcore_registers to...
5445 * i386nbsd-tdep.c: ...here.
5446 (i386nbsd_use_struct_convention): Rename to...
5447 (i386nbsd_aout_use_struct_convention): ...this.
5448 (i386nbsd_supply_reg): New function.
5449 (i386nbsd_fill_reg): New function.
5450 (fetch_core_registers): Use i386nbsd_supply_reg.
5451 (fetch_elfcore_registers): Likewise.
5452 (_initialize_i386nbsd_tdep): New function.
5453 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5454 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5455 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5456 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5457 (i386nbsd_aout_use_struct_convention): ...this.
5458
5459 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5460
5461 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5462 (store_inferior_registers): Use shnbsd_fill_reg.
5463 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5464 sh_nbsd_supply_register): Collapse into...
5465 (shnbsd_supply_reg): ...this.
5466 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5467 (shnbsd_fill_reg): ...this.
5468 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5469 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5470 (fetch_core_registers): Use shnbsd_supply_reg.
5471 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5472 (sh_nbsd_core_fns): Rename to...
5473 (shnbsd_core_fns): ...this.
5474 (sh_nbsd_elfcore_fns): Rename to...
5475 (shnbsd_elfcore_fns): ...this.
5476 (sh_nbsd_init_abi): Rename to...
5477 (shnbsd_init_abi): ...this.
5478 (_initialize_sh_nbsd_tdep): Rename to...
5479 (_initialize_shnbsd_tdep): ...this.
5480 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5481 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5482 sh_nbsd_fill_register): Remove prototypes.
5483 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5484
5485 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5486
5487 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5488 (i387-nat.o): Delete dependency list.
5489 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5490 (x86-64-linux-nat.o): Likewise.
5491 * i387-nat.c: Delete file, moving contents to...
5492 * i387-tdep.c: ...here.
5493 * i387-nat.h: Rename...
5494 * i387-tdep.h: ...to this.
5495 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5496 * i386-linux-nat.c: Likewise.
5497 * i386bsd-nat.c: Likewise.
5498 * i386gnu-nat.c: Likewise.
5499 * i386nbsd-nat.c: Likewise.
5500 * i386v4-nat.c: Likewise.
5501 * x86-64-linux-nat.c: Likewise.
5502 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5503 * config/i386/go32.mh (NATDEPFILES): Likewise.
5504 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5505 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5506 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5507 * config/i386/linux.mh (NATDEPFILES): Likewise.
5508 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5509 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5510 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5511 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5512
5513 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5514
5515 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5516 (alphanbsd-nat.o): Remove dependency list.
5517 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5518 * alphanbsd-nat.c: Delete. Contents moved to...
5519 * alphanbsd-tdep.c: ...here.
5520 (_initialize_alphanbsd_tdep): Register core functions.
5521 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5522
5523 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5524
5525 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5526 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5527 (alphanbsd-nat.o): Likewise.
5528 (alphabsd-tdep.o): New dependency list.
5529 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5530 (fill_gregset): Use alphabsd_fill_reg.
5531 (supply_fpregset): Use alphabsd_supply_fpreg.
5532 (fill_fpregset): Use alphabsd_fill_fpreg.
5533 (fetch_inferior_registers): Use struct reg and struct fpreg
5534 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5535 and alphabsd_supply_fpreg.
5536 (store_inferior_registers): Use struct reg and struct fpreg
5537 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5538 and alphabsd_fill_fpreg.
5539 * alphabsd-tdep.c: New file.
5540 * alphabsd-tdep.h: New file.
5541 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5542 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5543 alphabsd_supply_fpreg.
5544 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5545 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5546
5547 2002-05-11 Eric Christopher <echristo@redhat.com>
5548
5549 * mips-tdep.c (mips_double_register_type): Fix thinko.
5550 (mips_single_register_type): Ditto.
5551 * MAINTAINERS: Add self.
5552
5553 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5554
5555 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5556 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5557 right thing on architectures with different endianness and/or
5558 integer sizes.
5559
5560 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5561
5562 From Christian Limpach <chris@Pin.LU>
5563 * configure.in: Change sed expression which comments out
5564 NATDEPFILES to also comment out continuation lines.
5565 * configure: Regenerate.
5566
5567 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5568
5569 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5570 big patch.
5571
5572 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5573
5574 * sh-tdep.c: Include correct file.
5575
5576 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5577
5578 New support for sh64-elf (sh5) target.
5579
5580 * configure.tgt: For sh64-elf target, default to sh-elf.
5581
5582 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5583 (struct gdbarch_tdep): Add new fields for new registers and ABI
5584 info.
5585
5586 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5587 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5588 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5589 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5590 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5591 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5592 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5593 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5594 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5595 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5596 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5597 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5598 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5599 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5600 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5601 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5602 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5603 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5604 sign_extend, sh64_nofp_frame_init_saved_regs,
5605 sh64_init_extra_frame_info, sh64_get_saved_register,
5606 sh64_extract_struct_value_address, sh64_pop_frame,
5607 sh64_push_arguments, sh64_extract_return_value,
5608 sh64_store_return_value, sh64_show_media_regs,
5609 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5610 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5611 sh_sh64_register_virtual_type,
5612 sh_sh64_register_convert_to_virtual,
5613 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5614 sh64_register_read, sh64_pseudo_register_write,
5615 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5616 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5617 sh64_do_pseudo_register, sh_compact_do_registers_info,
5618 sh64_do_registers_info, sh_gdbarch_init): New functions.
5619
5620 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5621
5622 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5623
5624 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5625
5626 * linespec.c (decode_line_1): Check for a double quote after
5627 a filename correctly.
5628
5629 2002-05-10 Jim Blandy <jimb@redhat.com>
5630
5631 Properly track the size of the current objfile's .debug_line section.
5632 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5633 (DWARF_LINE_SIZE): New macro.
5634 (dwarf2_build_psymtabs_hard): Record the line section's size in
5635 the partial symbol table.
5636 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5637 symbol table.
5638
5639 2002-05-10 Petr Sorfa <petrs@caldera.com>
5640
5641 * ia64-tdep.c: Handle breakpoints on L instruction type
5642 in MLX instruction bundle by moving the breakpoint to
5643 the third slot (X instruction type) as L holds only data.
5644
5645 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5646
5647 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5648 (process_one_symbol): Complain about discarding local symbols
5649 due to a misplaced N_LBRAC entry.
5650
5651 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5652
5653 From Daniel Berlin <dan@cgsoftware.com>
5654 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5655 decrease the depth we are at, in the case of templates.
5656
5657 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5658
5659 * mips-tdep.c (mips_float_register_type): New function.
5660 (mips_double_register_type): New function.
5661 (mips_print_register): Use them.
5662 (do_fp_register_row): Likewise.
5663
5664 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5665
5666 * signals/signals.c (signals): Remove conditional compilation around
5667 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5668 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5669
5670 2002-05-09 Michael Snyder <msnyder@redhat.com>
5671
5672 * remote-rdp.c (remote_rdp_can_run): Remove.
5673
5674 2002-05-09 Tom Tromey <tromey@redhat.com>
5675
5676 * jv-valprint.c (java_val_print): Handle `char' as a special case
5677 of TYPE_CODE_INT.
5678
5679 2002-05-09 Michael Snyder <msnyder@redhat.com>
5680
5681 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5682 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5683 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5684 str r(0123),[sp,#nn].
5685 (arm_skip_prologue): Ditto. Also make disassembly
5686 order-independent by placing it in a loop.
5687
5688 2002-05-06 Michael Snyder <msnyder@redhat.com>
5689
5690 * stabsread.c (read_type): Add recognition for new attribute:
5691 "@V;" means that an array type is actually a vector.
5692 This is analogous to the vector flag that's been added to dwarf2.
5693
5694 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5695
5696 * i386-tdep.h (i386_abi): New enum.
5697 (struct gdbarch_tdep): Replace os_ident member with abi.
5698 (i386_gdbarch_register_os_abi): New prototype.
5699 * i386-tdep.c (i386_abi_names): New array.
5700 (process_note_abi_tag_sections): Removed.
5701 (process_note_sections): New function.
5702 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5703 (struct i386_abi_handler): New struct.
5704 (i386_abi_handler_list): New variable.
5705 (i386_gdbarch_register_os_abi): New function.
5706 (i386_gdbarch_init): Adapt for the changes given above.
5707
5708 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5709
5710 * gregset.h: Say "GNU/Linux".
5711
5712 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5713
5714 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5715 (build_gdbtypes): Build builtin_type_v2_float.
5716 (_initialize_gdbtypes): Register new builtin type.
5717
5718 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5719
5720 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5721 (clear_gdbarch_swap): New function.
5722 (initialize_non_multiarch): Call.
5723 (gdbarch_update_p): Before calling init(), swap out and clear the
5724 existing architecture.
5725 * gdbarch.c: Regenerate.
5726
5727 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5728
5729 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5730 alphanbsd-tdep.c.
5731
5732 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5733
5734 * sh-nbsd-nat.c: Rename to...
5735 * shnbsd-nat.c: ...this.
5736 * sh-nbsd-tdep.c: Rename to...
5737 * shnbsd-tdep.c: ...this.
5738 * sh-nbsd-tdep.h: Rename to...
5739 * shnbsd-tdep.h: ...this.
5740 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5741 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5742
5743 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5744
5745 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5746 concatenation for command help messages.
5747
5748 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5749
5750 * NEWS: Note new sh*-*-netbsdelf* configuration.
5751 * configure.host: Set gdb_host_cpu to sh for all sh*.
5752 (sh*-*-netbsdelf*): New host.
5753 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5754 (sh*-*-netbsdelf*): New target.
5755 * sh-nbsd-nat.c: New file.
5756 * sh-nbsd-tdep.c: New file.
5757 * sh-nbsd-tdep.h: New file.
5758 * config/sh/nbsd.mh: New file.
5759 * config/sh/nbsd.mt: New file.
5760 * config/sh/nm-nbsd.h: New file.
5761 * config/sh/tm-nbsd.h: New file.
5762
5763 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5764
5765 * sh-tdep.c (sh_osabi_names): Declare.
5766 (process_note_abi_tag_sections): New function.
5767 (get_elfosabi): Ditto.
5768 (sh_gdbarch_register_os_abi): Ditto.
5769 (sh_dump_tdep): Ditto.
5770 _initialize_sh_tdep): Use gdbarch_register to register
5771 sh_gdbarch_init and sh_dump_tdep.
5772 * config/sh/tm-sh.h (sh_osabi): Declare.
5773 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5774
5775 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5776
5777 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5778 (thumb_scan_prologue): Ditto.
5779 (arm_find_callers_reg): Ditto.
5780 (arm_frame_chain): Ditto.
5781 (arm_init_extra_frame_info): Ditto.
5782 (arm_frame_saved_pc): Ditto.
5783 (arm_pop_frame): Ditto.
5784 (arm_push_return_address): New function.
5785 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5786 call_dummy_location, call_dummy_breakpoint_offset_p,
5787 call_dummy_breakpoint_offset, call_dummy_p,
5788 call_dummy_stack_adjust_p, call_dummy_words,
5789 sizeof_call_dummy_words, call_dummy_start_offset,
5790 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5791 call_dummy_address, push_return_address and push_dummy_frame for
5792 generic dummy frames.
5793
5794 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5795
5796 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5797 size computation for alloca.
5798 (sh_fp_frame_init_saved_regs): Likewise.
5799
5800 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5801
5802 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5803 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5804 * arm-tdep.c (arm_store_return_value): Use them.
5805 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5806 * remote-rdp.c (remote_rdp_fetch_register): Use
5807 ARM_MAX_REGISTER_RAW_SIZE.
5808 (remote_rdp_store_register): Likewise.
5809
5810 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5811
5812 * dwarf2cfi.c: Code cleanup, removed unused variables,
5813 added default labels to switch {} statements.
5814 * x86-64-tdep.c: Ditto.
5815 * x86-64-linux-nat.c: Ditto.
5816
5817 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5818
5819 * solib.h: Protect against multiple inclusion.
5820
5821 2002-05-06 Jim Blandy <jimb@redhat.com>
5822
5823 Add first preprocessor macro-expansion files.
5824 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5825 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5826 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5827 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5828 (COMMON_OBS): Add macrotab.o, macroexp.o.
5829 (macroexp.o, macrotab.o): New rules.
5830
5831 Separate the job of reading the line number info statement program
5832 header (...expialidocious) out into its own function.
5833 * dwarf2read.c (struct line_head, struct filenames, struct
5834 directories): Replace with...
5835 (struct line_header): New structure, containing the full
5836 contents of the statement program header, including the
5837 include directory and file name tables.
5838 (read_file_scope): If we have line number info, instead of just
5839 calling dwarf_decode_lines to do all the work, call
5840 dwarf_decode_line_header first to get a `struct line_header'
5841 containing the data in the statement program header, and then
5842 pass that to dwarf_decode_lines, which will pick up where that
5843 left off. Be sure to clean up the `struct line_header' object.
5844 (dwarf_decode_line_header, free_line_header, add_include_dir,
5845 add_file_name): New functions.
5846 (dwarf_decode_lines): Move all the code to read the statement
5847 program header into dwarf_decode_line_header. Take the line
5848 header it built as the first argument, instead of the offset to
5849 the compilation unit's line number info. Use the new `struct
5850 line_header' type instead of the old structures. No need to do
5851 cleanups here now, since we don't allocate anything.
5852 (dwarf2_statement_list_fits_in_line_number_section,
5853 dwarf2_line_header_too_long): New complaints.
5854
5855 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5856
5857 * gdbtypes.c (init_vector_type): New function.
5858 (build_builtin_type_vec128): Simplify the representation of SIMD
5859 registers.
5860 (build_gdbtypes): Initialize new builtin vector types.
5861 (_initialize_gdbtypes): Register new vector types with gdbarch.
5862 (builtin_type_v4_float, builtin_type_v4_int32,
5863 builtin_type_v8_int16, builtin_type_v16_int8,
5864 builtin_type_v2_int32, builtin_type_v4_int16,
5865 builtin_type_v8_int8): New (renamed) SIMD types.
5866
5867 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5868
5869 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5870 (i387_fill_fxsave): Likewise.
5871
5872 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5873
5874 * alpha-tdep.c (alpha_extract_return_value): Don't use
5875 non-constant array size in prototype.
5876
5877 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5878
5879 From Brian Taylor <briant at model dot com>:
5880 * ui-out.c (ui_out_field_core_addr): Use the function
5881 longest_local_hex_string_custom'to format addresses > 32 bits
5882 wide.
5883
5884 * ui-out.c (ui_out_field_core_addr): Update comment.
5885
5886 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5887
5888 * stack.c (select_and_print_frame): Make static. Delete the
5889 parameter `level'.
5890 (func_command): Update call.
5891 (select_frame_command): Delete code computing the frame level.
5892 * frame.h (select_and_print_frame): Delete declaration.
5893
5894 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5895
5896 * sparc-tdep.c (sparc_get_saved_register): Comment why
5897 get_prev_frame call is safe.
5898
5899 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5900
5901 * frame.h (select_frame): Delete level parameter.
5902 * stack.c (select_frame): Update. Use frame_relative_level to
5903 obtain the frame's level.
5904 (select_and_print_frame): Update call.
5905 (select_frame_command): Ditto.
5906 (up_silently_base): Ditto.
5907 (down_silently_base): Ditto.
5908 * ocd.c (ocd_start_remote): Ditto.
5909 * remote-rdp.c (remote_rdp_open): Ditto.
5910 * remote-mips.c (mips_initialize): Ditto.
5911 (common_open): Ditto.
5912 * remote-e7000.c (e7000_start_remote): Ditto.
5913 * m3-nat.c (select_thread): Ditto.
5914 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5915 (child_get_current_exception_event): Ditto.
5916 * varobj.c (varobj_create): Ditto.
5917 (varobj_update): Ditto.
5918 (c_value_of_root): Ditto.
5919 * tracepoint.c (finish_tfind_command): Ditto.
5920 * corelow.c (core_open): Ditto.
5921 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5922 * thread.c (info_threads_command): Ditto.
5923 (switch_to_thread): Ditto.
5924 * infrun.c (normal_stop): Ditto.
5925 (restore_selected_frame): Ditto.
5926 (restore_inferior_status): Ditto.
5927 * breakpoint.c (insert_breakpoints): Ditto.
5928 (watchpoint_check): Ditto.
5929 (bpstat_stop_status): Ditto.
5930 (do_enable_breakpoint): Ditto.
5931 * blockframe.c (flush_cached_frames): Ditto.
5932 (reinit_frame_cache): Ditto.
5933
5934 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5935
5936 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5937 maintainer.
5938
5939 2002-05-04 Jim Blandy <jimb@redhat.com>
5940
5941 * gdbtypes.c (replace_type): Doc fix.
5942
5943 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5944
5945 * valprint.c (strcat_longest): Delete commented out function.
5946 Update copyright.
5947
5948 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5949
5950 * MAINTAINERS: Mark a29k as deleted.
5951 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5952 Move new configurations to the top.
5953 * configure.tgt: Remove a29k.
5954 * config/a29k/tm-vx29k.h: Delete.
5955 * config/a29k/vx29k.mt: Delete.
5956 * config/a29k/tm-a29k.h: Delete.
5957 * config/a29k/a29k-udi.mt: Delete.
5958 * config/a29k/a29k.mt: Delete.
5959 * a29k-tdep.c: Delete.
5960 * remote-udi.c: Delete.
5961 * remote-mm.c: Delete.
5962 * remote-eb.c: Delete.
5963 * remote-adapt.c: Delete.
5964 * Makefile.in: Remove obsolete code.
5965 * config/s390/s390x.mt: Ditto.
5966 * config/s390/s390.mt: Ditto.
5967 * config/sparc/sparclynx.mh: Ditto.
5968 * config/sparc/linux.mh: Ditto.
5969 * config/pa/hppaosf.mh: Ditto.
5970 * config/pa/hppabsd.mh: Ditto.
5971 * config/ns32k/nbsd.mt: Ditto.
5972 * config/mips/vr5000.mt: Ditto.
5973 * config/m68k/sun3os4.mh: Ditto.
5974 * config/m68k/nbsd.mt: Ditto.
5975 * config/m68k/m68klynx.mh: Ditto.
5976 * config/m32r/m32r.mt: Ditto.
5977 * config/i386/x86-64linux.mt: Ditto.
5978 * config/i386/nbsdelf.mt: Ditto.
5979 * config/i386/nbsd.mt: Ditto.
5980 * config/i386/i386lynx.mh: Ditto.
5981
5982 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5983
5984 * target.c (debug_print_register): New function. Handle oversize
5985 registers.
5986 (debug_to_fetch_registers): Call.
5987 (debug_to_store_registers): Call.
5988
5989 2002-05-03 Jim Blandy <jimb@redhat.com>
5990
5991 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5992 (read_type): Doc fix.
5993 * gdbtypes.c (replace_type): Doc fix.
5994
5995 * stabsread.c (multiply_defined_struct): New complaint.
5996 (read_struct_type): If the type we were passed isn't empty, or
5997 incomplete, don't read the new struct type into it; complain,
5998 and return the original type unchanged. Take a new `type_code'
5999 argument, which is the type code for the new type.
6000 (read_type): Rather than storing the type's type code here, pass
6001 it as an argument to read_struct_type, and let that take care of
6002 storing it. That way, we don't overwrite the original type code,
6003 so read_struct_type can use it to decide whether we're overwriting
6004 something we shouldn't.
6005 (complain_about_struct_wipeout): New function.
6006
6007 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6008
6009 * gdbarch.sh: Assert that gdbarch is non-NULL.
6010 * gdbarch.c: Regenerate.
6011
6012 2002-05-03 Jason Merrill <jason@redhat.com>
6013
6014 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6015 and return NULL.
6016
6017 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6018
6019 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6020 (x86_64_dwarf2gdb_regno_map_length),
6021 (x86_64_dwarf2_reg_to_regnum): Added.
6022 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6023 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6024 (_initialize_x86_64_tdep): Synced with the change above.
6025 (x86_64_skip_prologue): Reformulated message.
6026
6027 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6028
6029 * f-exp.y: Also use new prev_lexptr variable
6030 to improve error reporting. Based on Michael Snyder
6031 2002-04-24 dated patch to c-exp.y.
6032 * jv-exp.y: Likewise.
6033 * m2-exp.y: Likewise.
6034
6035 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6036
6037 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6038 we are dealing with vectors.
6039
6040 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6041
6042 * config/m68k/tm-nbsd.h: Obvious fix,
6043 correct machine name.
6044
6045 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6046
6047 * p-typeprint.c (pascal_type_print_base): Add support
6048 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6049
6050 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6051
6052 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6053 for fondamental pascal 'char' type.
6054
6055 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6056
6057 * p-lang.h (is_pascal_string_type): Declaration changed,
6058 new sixth argument of type char ** added.
6059 * p-lang.c (is_pascal_string_type): Implementation
6060 changed. Args length_pos, length_size, string_pos, char_size
6061 can now be NULL. New argument arrayname set to the field
6062 name of the char array. Return value set to char array
6063 field index plus one.
6064 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6065 is_pascal_string_type function.
6066
6067 2002-05-02 Andrew Cagney <cagney@redhat.com>
6068
6069 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6070 <cagney@redhat.com> change.
6071 * gdbarch.c: Regenerate.
6072
6073 2002-05-02 Andrew Cagney <cagney@redhat.com>
6074
6075 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6076 before probing for a new one. Detect errorenous gdbarch_init
6077 functions.
6078 * gdbarch.c: Regenerate.
6079
6080 2002-05-01 Andrew Cagney <cagney@redhat.com>
6081
6082 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6083 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6084 * config/v850/tm-v850.h: Ditto. Update copyright.
6085
6086 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6087
6088 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6089 current_gdbarch.
6090
6091 2002-04-30 Michael Snyder <msnyder@redhat.com>
6092
6093 * arm-tdep.c: Whitespace clean-ups.
6094 (arm_skip_prologue): Fix thinko; two lines
6095 should have been removed as part of 4/24 change.
6096
6097 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6098
6099 * rs6000-tdep.c: Added comment describing how fpscr register
6100 numbers were chosen.
6101
6102 2002-04-30 Michael Snyder <msnyder@redhat.com>
6103
6104 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6105
6106 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6107
6108 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6109 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6110 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6111
6112 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6113
6114 From Louis Hamilton <hamilton@redhat.com>:
6115 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6116 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6117 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6118 not bfd-private xcoff data, to determine wordsize.
6119 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6120
6121 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6122
6123 GDB 5.2 released from 5.2 branch.
6124
6125 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6126
6127 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6128 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6129 (x86_64_register_info_table): Added comments with register numbers.
6130
6131 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6132
6133 * rs6000-tdep.c (rs6000_extract_return_value,
6134 rs6000_store_return_value): Handle returning vectors.
6135 (rs6000_gdbarch_init): Use
6136 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6137 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6138 New function.
6139 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6140 vectors.
6141 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6142 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6143
6144 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6145
6146 * hpread.c (hpread_psymtab_to_symtab_1,
6147 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6148 with fprintf_unfiltered (gdb_stderr,...).
6149
6150 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6151
6152 * remote-array.c (printf_monitor, write_monitor,
6153 array_insert_breakpoint, array_remove_breakpoint ):
6154 Replace fprintf (stderr,...
6155 with fprintf_unfiltered (gdb_stderr,....
6156 * remote-es.c: Likewise.
6157 * remote-os9k.c: Likewise.
6158 * remote-st.c: Likewise.
6159
6160 2002-04-28 Andreas Schwab <schwab@suse.de>
6161
6162 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6163 linux-proc.o and gcore.o.
6164
6165 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6166
6167 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6168 code without frame pointers.
6169
6170 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6171
6172 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6173 ON_STACK is needed.
6174
6175 2002-04-26 Ben Elliston <bje@redhat.com>
6176
6177 * target.c (do_xfer_memory): Correct reference to the new option
6178 "trust-readonly-sections".
6179
6180 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6181
6182 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6183 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6184 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6185 vectors.
6186 (read_array_type): Record the fact that this array type is really a
6187 vector (i.e. are passed in by value).
6188
6189 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6190
6191 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6192 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6193 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6194 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6195 * alpha-linux-tdep.c: Include frame.h.
6196 (alpha_linux_sigcontext_addr): New function.
6197 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6198 alpha_linux_sigcontext_addr.
6199 * alpha-osf1-tdep.c: Include gdbcore.h.
6200 (alpha_osf1_sigcontext_addr): New function.
6201 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6202 alpha_osf1_sigcontext_addr.
6203 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6204 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6205
6206 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6207
6208 * stack.c (selected_frame_level):
6209 (select_frame): Do not set selected_frame_level.
6210 * frame.h (selected_frame_level): Delete declaration.
6211
6212 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6213
6214 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6215 convert_from_func_ptr-addr when AIX / PowerOpen.
6216
6217 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6218
6219 * valops.c (hand_function_call): Call
6220 generic_save_call_dummy_addr.
6221 * frame.h (generic_save_call_dummy_addr): Declare.
6222 * blockframe.c (struct dummy_frame): Add fields call_lo and
6223 call_hi.
6224 (generic_find_dummy_frame): Check for PC in range call_lo to
6225 call_hi instead of entry_point_address.
6226 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6227 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6228 (generic_save_call_dummy_addr): New function.
6229
6230 2002-04-24 David S. Miller <davem@redhat.com>
6231
6232 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6233 sparc_skip_prologue.
6234 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6235 information to find prologue when possible.
6236 (sparc_prologue_frameless_p): Call examine_prologue directly.
6237 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6238 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6239 second argument.
6240 (SKIP_PROLOGUE): Likewise.
6241
6242 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6243
6244 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6245 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6246 indicate that the condition it was testing is always true.
6247 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6248 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6249 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6250
6251 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6252
6253 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6254 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6255 tdep->jb_pc and tdep->jb_elt_size.
6256 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6257 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6258 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6259 * alpha-nat.c (get_longjmp_target): Remove.
6260 (JB_ELEMENT_SIZE): Ditto.
6261 (JB_PC): Ditto.
6262 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6263 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6264 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6265 to alpha_get_longjmp_target.
6266 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6267 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6268 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6269
6270 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6271
6272 * README: Update to GDB 5.2.
6273
6274 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6275
6276 * gdbarch.sh (LC_ALL): Set to `c'.
6277
6278 2002-04-25 Theodore A. Roth <troth@verinet.com>
6279
6280 * avr-tdep.c: Ran through gdb_indent.sh.
6281
6282 2002-04-25 Theodore A. Roth <troth@verinet.com>
6283
6284 * MAINTAINERS: Add myself as AVR maintainer.
6285 * NEWS: Note new target avr.
6286
6287 2002-04-25 Theodore A. Roth <troth@verinet.com>
6288
6289 * Makefile.in: Add support for AVR target.
6290 * configure.tgt: Add support for AVR target.
6291 * avr-tdep.c: New file
6292 * config/avr/avr.mt: New file.
6293
6294 2002-04-25 Theodore A. Roth <troth@verinet.com>
6295
6296 * MAINTAINERS: Add myself to write-after-approval.
6297
6298 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6299
6300 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6301 with fprintf_unfiltered (gdb_stderr,....
6302
6303 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6304
6305 Fix PR gdb/508.
6306 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6307
6308 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6309
6310 * p-exp.y: Also use new prev_lexptr variable
6311 to improve error reporting. Based on Michael Snyder
6312 2002-04-24 dated patch to c-exp.y.
6313
6314 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6317 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6318 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6319 to 0.
6320 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6321 and struct value.
6322 (FUNCTION_START_OFFSET): Remove.
6323 (BREAKPOINT): Ditto.
6324
6325 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6326
6327 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6328 * NEWS: Ditto.
6329
6330 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6331
6332 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6333 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6334 alpha_linux_pc_in_sigtramp.
6335 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6336 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6337 alpha_osf1_pc_in_sigtramp.
6338 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6339 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6340 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6341 alphafbsd_pc_in_sigtramp.
6342 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6343 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6344 alphanbsd_pc_in_sigtramp.
6345 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6346 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6347
6348 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6349
6350 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6351
6352 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6353
6354 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6355 alphanbsd-tdep.c.
6356 (alphanbsd-nat.o): New dependency list.
6357 (alphanbsd-tdep.o): Ditto.
6358 * NEWS: Note new native NetBSD/alpha configuration.
6359 * alphanbsd-nat.c: New file.
6360 * alphanbsd-tdep.c: Ditto.
6361 * configure.host (alpha*-*-netbsd*): New host.
6362 * configure.tgt (alpha*-*-netbsd*): New target.
6363 * config/alpha/nbsd.mh: New file.
6364 * config/alpha/nbsd.mt: Ditto.
6365 * config/alpha/nm-nbsd.h: Ditto.
6366 * config/alpha/tm-nbsd.h: Ditto.
6367
6368 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6369
6370 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6371 (alpha-osf1-tdep.o): New dependency list.
6372 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6373 and skip_sigtramp_frame members.
6374 * alpha-linux-tdep.c: Include gdbcore.h.
6375 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6376 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6377 * alpha-osf1-tdep.c: New file.
6378 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6379 alpha-osf1-dep.c.
6380 (alpha_frame_past_sigtramp_frame): New function.
6381 (alpha_dynamic_sigtramp_offset): Ditto.
6382 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6383 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6384 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6385 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6386 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6387 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6388 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6389 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6390 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6391 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6392 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6393 to find_solib_trampoline_target.
6394 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6395 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6396 (SKIP_TRAMPOLINE_CODE): Remove.
6397 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6398 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6399 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6400 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6401 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6402 (PROC_SIGTRAMP_MAGIC): Ditto.
6403 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6404 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6405 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6406 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6407 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6408
6409 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6410
6411 * NEWS: Note that Alpha targets are now multi-arch.
6412
6413 2002-04-24 Michael Snyder <msnyder@redhat.com>
6414
6415 * parser-defs.h (prev_lexptr): New external variable.
6416 * parse.c (parse_exp_1): Set prev_lexptr to null before
6417 calling the language-specific parser.
6418 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6419 (yyerror): Use prev_lexptr in error reporting.
6420
6421 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6422
6423 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6424 * gregset.h: If FILL_FPXREGSET is defined, provide
6425 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6426 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6427 is defined, call fill_fpxregset.
6428
6429 2002-04-24 Roland McGrath <roland@frob.com>
6430
6431 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6432 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6433 (supply_gregset, supply_fpregset): New functions.
6434
6435 * gnu-nat.c (gnu_find_memory_regions): New function.
6436 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6437 (gnu_xfer_memory): Add a cast.
6438
6439 2002-04-24 Michael Snyder <msnyder@redhat.com>
6440
6441 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6442 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6443 of argument regs ("str r(0123), [r11, #-nn"]).
6444 (arm_skip_prologue): Better handling for frameless functions.
6445 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6446 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6447
6448 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6449
6450 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6451 NUM_PSEUDO_REGS can be used.
6452
6453 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6454
6455 * arch-utils.h: Update copyright.
6456
6457 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6458 * gdbarch.h, gdbarch.c: Re-generate.
6459
6460 * inferior.h (IN_SIGTRAMP): Delete definition.
6461 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6462 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6463
6464 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6465 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6466 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6467 (find_proc_framesize): Ditto.
6468 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6469 (alpha_init_extra_frame_info): Ditto.
6470 * infrun.c (handle_inferior_event): Ditto.
6471 (handle_inferior_event): Ditto.
6472 (check_sigtramp2): Ditto.
6473 * blockframe.c (create_new_frame): Ditto.
6474 (get_prev_frame): Ditto.
6475 * ppc-linux-tdep.c: Update comments.
6476 * i386-linux-tdep.c: Update comments.
6477 * breakpoint.c (bpstat_what): Update comment.
6478
6479 2002-04-24 David S. Miller <davem@redhat.com>
6480
6481 * i960-tdep.c (register_in_window_p): New function.
6482 (i960_find_saved_register): Use it instead of
6483 REGISTER_IN_WINDOW_P.
6484 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6485
6486 * symtab.h (find_stab_function_addr): Kill extern.
6487 * minsyms.c (find_stab_function_addr): Remove from here...
6488 * dbxread.c: ... to here, and mark it static.
6489
6490 2002-04-20 David S. Miller <davem@redhat.com>
6491
6492 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6493 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6494
6495 2002-04-21 David S. Miller <davem@redhat.com>
6496
6497 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6498 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6499 (vx_write_register): Likewise.
6500
6501 2002-04-23 J. Brobecker <brobecker@gnat.com>
6502
6503 * source.c (is_regular_file): New function.
6504 (openp): Check wether file to open is a regular file
6505 to avoid opening directories.
6506
6507 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6508
6509 * findvar.c (extract_signed_integer): Cast printf argument
6510 to suppress format warning.
6511 (extract_unsigned_integer): Likewise.
6512 * infcmd.c (registers_info): Likewise.
6513 * top.c (get_prompt_1): Likewise.
6514 * valops.c (value_assign): Likewise.
6515 * valprint.c (print_decimal): Likewise.
6516
6517 2002-04-22 H.J. Lu (hjl@gnu.org)
6518
6519 * c-exp.y (typebase): Support
6520
6521 [long|long long|short] [signed|unsigned] [int|]
6522
6523 and
6524
6525 signed [long|long long|short] int
6526
6527 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6528
6529 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6530 and vax-tdep.h.
6531 * vax-tdep.h: New file.
6532 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6533 Make several routines static.
6534 (vax_get_saved_register): New function.
6535 (vax_gdbarch_init): New function.
6536 (_initialize_vax_tdep): Register vax_gdbarch_init.
6537 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6538 Remove macros now under the control of gdbarch.
6539
6540 2002-04-22 Michael Snyder <msnyder@redhat.com>
6541
6542 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6543 Some whitespace and coding standards tweaks.
6544
6545 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6546
6547 * vax-tdep.c: Include regcache.h.
6548 (vax_call_dummy_words): New.
6549 (sizeof_vax_call_dummy_words): New.
6550 (vax_fix_call_dummy): New function.
6551 (vax_saved_pc_after_call): Ditto.
6552 * config/vax/tm-vax.h: Don't include regcache.h.
6553 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6554 (CALL_DUMMY): Remove.
6555 (CALL_DUMMY_WORDS): Define.
6556 (SIZEOF_CALL_DUMMY_WORDS): Define.
6557 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6558
6559 2002-04-18 Michael Snyder <msnyder@redhat.com>
6560
6561 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6562
6563 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6564
6565 * vax-tdep.c (vax_frame_chain): New function.
6566 (vax_push_dummy_frame): Ditto.
6567 (vax_pop_frame): Ditto.
6568 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6569 (FRAMELESS_FUNCTION_INVOCATION): Use
6570 generic_frameless_function_invocation_not.
6571 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6572 (POP_FRAME): Use vax_pop_frame.
6573
6574 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6575
6576 * vax-tdep.c (vax_store_struct_return): New function.
6577 (vax_extract_return_value): Ditto.
6578 (vax_store_return_value): Ditto.
6579 (vax_extract_struct_value_address): Ditto.
6580 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6581 vax_store_struct_return.
6582 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6583 (STORE_RETURN_VALUE): Use vax_store_return_value.
6584 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6585
6586 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6587
6588 * vax-tdep.c (vax_frame_saved_pc): New function.
6589 (vax_frame_args_address_correct): Ditto.
6590 (vax_frame_args_address): Ditto.
6591 (vax_frame_locals_address): Ditto.
6592 (vax_frame_num_args): Move code to be in proximity to
6593 other frame-related functions.
6594 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6595 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6596 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6597 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6598 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6599
6600 2002-04-22 H.J. Lu (hjl@gnu.org)
6601
6602 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6603 includedir.
6604
6605 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6606
6607 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6608 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6609 (FRAME_INIT_SAVED_REGS): New macro.
6610
6611 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6612
6613 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6614
6615 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6616
6617 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6618 where needed.
6619 (fetch_osf_core_registers): Likewise.
6620 (supply_gregset): Likewise.
6621
6622 2002-04-22 J. Brobecker <brobecker@gnat.com>
6623
6624 * symfile.h (get_section_index): Define.
6625 * symfile.c (get_section_index): New function.
6626 * mdebugread.c (SC_IS_SBSS): New macro.
6627 (SC_IS_BSS): Return true for the scBss storage class only, as
6628 the scSBss storage class refers to the .sbss section.
6629 (parse_partial_symbols): Discard the symbols which associated
6630 section does not exist.
6631 Make sure to use the .sbss section index for symbols which
6632 storage class is scBss, rather than using the .bss section index.
6633
6634 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6635
6636 * vax-tdep.c: Update copyright years.
6637 (vax_register_name): New function.
6638 (vax_register_byte): Ditto.
6639 (vax_register_raw_size): Ditto.
6640 (vax_register_virtual_size): Ditto.
6641 (vax_register_virtual_type): Ditto.
6642 * config/vax/tm-vax.h: Update copyright years.
6643 (REGISTER_NAMES): Remove.
6644 (REGISTER_NAME): Define.
6645 (REGISTER_BYTE): Use vax_register_byte.
6646 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6647 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6648 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6649
6650 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6651
6652 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6653 declaration
6654 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6655
6656 2002-04-21 David S. Miller <davem@redhat.com>
6657
6658 * arch-utils.c (generic_prologue_frameless_p): Kill
6659 SKIP_PROLOGUE_FRAMELESS_P code.
6660 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6661 references.
6662 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6663 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6664 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6665 references.
6666 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6667 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6668 (sparc_gdbarch_init): Pass it to
6669 set_gdbarch_prologue_frameless_p.
6670
6671 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6672
6673 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6674 (alphabsd-nat.o): New dependency list.
6675
6676 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6677
6678 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6679 alphafbsd-tdep.c.
6680 (alpha-linux-tdep.o): New dependency list.
6681 (alphafbsd-tdep.o): Likewise.
6682
6683 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6684
6685 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6686 to here...
6687 * alpha-tdep.c: ...from here.
6688 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6689
6690 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6691
6692 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6693 prototype from here...
6694 * alpha-tdep.h: ...to here.
6695
6696 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6697
6698 * frame.h (selected_frame_level): Document as deprecated.
6699 (frame_relative_level): Declare.
6700 * stack.c (frame_relative_level): New function.
6701 (selected_frame_level): Document as deprecated.
6702 (select_frame): Do not set the selected_frame_level.
6703
6704 * stack.c (frame_info, record_selected_frame): Update.
6705 (frame_command, current_frame_command): Update.
6706 (up_silently_base, up_command, down_silently_base): Update.
6707 (down_command): Update.
6708 * inflow.c (kill_command): Update.
6709 * tracepoint.c (finish_tfind_command): Update.
6710 * corelow.c (core_open): Update.
6711 * thread.c (info_threads_command): Update.
6712 (do_captured_thread_select): Update.
6713 * infcmd.c (finish_command): Update.
6714 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6715
6716 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6717
6718 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6719
6720 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6721
6722 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6723 type const.
6724
6725 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6726
6727 * alphafbsd-tdep.c: Update copyright years. Include
6728 alpha-tdep.h.
6729 (alphafbsd_use_struct_convention): Make static.
6730 (alphafbsd_init_abi): New function.
6731 (_initialize_alphafbsd_tdep): New function.
6732 * config/alpha/tm-fbsd.h: Update copyright years.
6733 (USE_STRUCT_CONVENTION): Remove.
6734
6735 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6736
6737 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6738 an Alpha ABI variant.
6739 (alpha_abi_handler_list): Declare.
6740 (alpha_gdbarch_register_os_abi): New function.
6741 (alpha_gdbarch_init): Give registered ABI variant handlers a
6742 chance to tweak the gdbarch once we have set up defaults.
6743 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6744
6745 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6746
6747 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6748 to standard_coerce_float_to_double.
6749 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6750
6751 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6752
6753 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6754 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6755 from gdbarch_tdep rather than a constant.
6756 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6757 the default text address for all Alpha Unix ABIs.
6758 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6759 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6760
6761 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6762
6763 * alpha-tdep.h: New file. Includes several Alpha target constants
6764 taken from...
6765 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6766 let gdbarch deal with.
6767 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6768 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6769 to dependency list.
6770 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6771 Alpha target register names.
6772 * alphabsd-nat.c: Likewise.
6773 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6774 Alpha target register names. Make serveral routines static.
6775 (alpha_get_saved_register): New function.
6776 (alpha_abi_names): New.
6777 (process_note_abi_tag_sections): New function.
6778 (get_elfosabi): New function.
6779 (alpha_gdbarch_init): New function.
6780 (alpha_dump_tdep): New function.
6781 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6782
6783 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6784
6785 * frame.c (find_saved_register): Delete #ifdef
6786 HAVE_REGISTER_WINDOWS code.
6787 * config/sparc/tm-sparc.h: Update comments.
6788 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6789
6790 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6791
6792 * i960-tdep.c (i960_find_saved_register): New function.
6793 (i960_get_saved_register): New function.
6794 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6795 (i960_get_saved_register): Declare.
6796 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6797
6798 2002-04-20 David S. Miller <davem@redhat.com>
6799
6800 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6801
6802 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6803
6804 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6805 instead of NUM_PSEUDO_REGS.
6806
6807 2002-04-20 David S. Miller <davem@redhat.com>
6808
6809 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6810 GDB_MULTI_ARCH_PARTIAL
6811 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6812 define, let tm-sp64.h do it.
6813
6814 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6815
6816 * frame.c (find_saved_register): Avoid a NULL pointer
6817 dereference and actually walk the frame list.
6818
6819 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6820
6821 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6822 sorted in most most-recent-used order. Document.
6823 * gdbarch.h, gdbarch.c: Regenerate.
6824
6825 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6826
6827 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6828 instead of ->prev.
6829 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6830 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6831 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6832 instead of ->prev.
6833
6834 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6835
6836 Fix PR gdb/471.
6837 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6838 (build_builtin_type_vec128): Ditto.
6839 (append_composite_type_field): Fix calculation of type length in
6840 union case.
6841
6842 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6843
6844 * config/djgpp/README: Update.
6845
6846 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6847 compiler warnings.
6848
6849 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6850
6851 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6852 (alpha_setup_arbitrary_frame): ...to this.
6853 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6854 for alpha_setup_arbitrary_frame.
6855
6856 2002-04-18 Andrew Cagney <cagney@redhat.com>
6857
6858 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6859 * gdbarch.h, gdbarch.c: Regenerate.
6860
6861 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6862 * target.h (memory_breakpoint_from_pc): Update declaration.
6863 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6864
6865 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6866 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6867 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6868 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6869 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6870 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6871 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6872 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6873 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6874 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6875 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6876 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6877
6878 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6879 const pointer.
6880 * monitor.c (monitor_insert_breakpoint): Ditto.
6881 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6882
6883 * config/mcore/tm-mcore.h: Update copyright.
6884 * mem-break.c: Ditto.
6885 * xstormy16-tdep.c: Ditto.
6886
6887 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6888
6889 * p-exp.y: Add precedence rule for '^' token.
6890 This removes the shift/reduce conflicts.
6891 Remove the comment concerning these shift/reduce conflicts.
6892
6893 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6894
6895 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6896 (registers_powerpc_nofp): New register set for processors
6897 without floating point unit.
6898
6899 2002-04-18 David S. Miller <davem@redhat.com>
6900
6901 * MAINTAINERS: Add myself to write-after-approval.
6902
6903 2002-04-17 Michael Snyder <msnyder@redhat.com>
6904
6905 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6906
6907 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6908
6909 * rs6000-tdep.c (frame_initial_stack_address): Use
6910 frame_register_read to read the alloca_reg.
6911
6912 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6913
6914 * frame.c (find_saved_register): Find saved registers in the next
6915 not prev frame.
6916 Fix PR gdb/365.
6917
6918 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6919
6920 * gdbarch.sh (LANG): Set to ``c''.
6921
6922 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6923
6924 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6925
6926 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6927
6928 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6929 Update copyright.
6930
6931 * hpread.c (hpread_get_lntt): Add declaration.
6932 Also fix PR gdb/391.
6933
6934 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6935
6936 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6937 * aclocal.m4, configure: Re-generate.
6938 Fix PR gdb/391.
6939
6940 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6941
6942 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6943 instead of tm_print_insn.
6944
6945 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6946
6947 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6948
6949 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6950
6951 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6952 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6953 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6954
6955 2002-04-12 Don Howard <dhoward@redhat.com>
6956
6957 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6958 max_user_call_depth.
6959 (init_cmd_lists): Initialize the new value;
6960 * cli/cli-script.c (execute_user_command): Limit the call depth of
6961 user defined commands. This avoids a core-dump when user commands
6962 are infinitly recursive.
6963
6964 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6965
6966 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6967 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6968 from tdep struct instead of DEFAULT_LR_SAVE.
6969 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6970 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6971 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6972
6973 2002-04-12 Michael Snyder <msnyder@redhat.com>
6974
6975 * Remote.c: Spelling fix.
6976 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6977 If no symbol found for "sbrk", try "_sbrk".
6978 (make_output_phdrs): Use bfd_section_name.
6979 (gcore_copy_callback): Use bfd_section_name.
6980 * eval.c: Indentation fix-ups.
6981 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6982 in case it gets applied to an address that is already
6983 in the instruction space.
6984 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6985 * symfile.c: Fix indentation, long lines.
6986 * source.c: White space fix-up.
6987
6988 2002-04-12 Andrew Cagney <cagney@redhat.com>
6989
6990 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6991 * frame.c (frame_register_read): New function. Return non-zero on
6992 success.
6993 (read_relative_register_raw_bytes_for_frame): Delete.
6994 (read_relative_register_raw_bytes): Delete.
6995 * frame.h (frame_register_read): Declare.
6996 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6997 * sh-tdep.c: Ditto.
6998 * infcmd.c (do_registers_info): Ditto.
6999 * hppa-tdep.c: Ditto.
7000 * rs6000-tdep.c: Ditto.
7001 * h8500-tdep.c: Ditto.
7002 * mips-tdep.c: Ditto.
7003 * h8300-tdep.c: Ditto.
7004 * z8k-tdep.c: Ditto.
7005
7006 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7007
7008 From Jimi X <jimix@watson.ibm.com>:
7009 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7010 64-bit SysV ABI.
7011
7012 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7013
7014 From Jimi X <jimix@watson.ibm.com>:
7015 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7016 bfd info.
7017
7018 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7019
7020 From Jimi X <jimix@watson.ibm.com>:
7021 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7022 register sets for these processor variants.
7023
7024 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7025
7026 * regformats/reg-ppc.dat: Support FPSCR.
7027
7028 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7029
7030 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7031 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7032 Add fpscr as an invalid/unfetchable register.
7033 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7034 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7035 (fill_fpregset): Add support for register fpscr.
7036 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7037 (fill_gregset): Account for the fact that register ``mq'' might
7038 not exist.
7039 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7040 (registers_power): Add fpscr to register set at slot 71.
7041 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7042 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7043
7044 2002-04-11 Michael Snyder <msnyder@redhat.com>
7045
7046 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7047 * configure: Regenerate.
7048 * config.in: Regenerate.
7049 * acconfig.h: Add define for _SYSCALL32.
7050 * core-sol2.c: Remove #define _SYSCALL32.
7051 * solib-legacy.c: Remove #define _SYSCALL32.
7052
7053 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7054
7055 * stack.c (select_frame): Cleanup internal error message, do not
7056 use %p.
7057
7058 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7059
7060 * stack.c (select_frame): Check that selected_frame and the
7061 specified level are as expected.
7062 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7063 Update copyright.
7064 * frame.h (struct frame_info): Add field `level'. Update
7065 copyright.
7066 Work-in-progress PR gdb/464.
7067
7068 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7069
7070 * maint.c (maint_print_section_info): Rename print_section_info.
7071 (print_bfd_section_info, print_objfile_section_info): Update.
7072 * inferior.h (struct gdbarch): Add opaque declaration.
7073 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7074 * gdbarch.h: Regenerate.
7075
7076 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7077
7078 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7079 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7080 (kernel_u_size): Added.
7081 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7082 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7083
7084 2002-04-04 Jim Ingham <jingham@apple.com>
7085
7086 * valarith.c (find_size_for_pointer_math): New function, either returns
7087 the size for a pointer's target, returns 1 for void *, or errors for
7088 incomplete types.
7089 (value_add, value_sub): use find_size_for_pointer_math.
7090
7091 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7092
7093 * linux-low.c (linux_look_up_symbols): New hook.
7094 (linux_target_ops): Add linux_look_up_symbols.
7095 * remote-utils.c (decode_address): New function.
7096 (look_up_one_symbol): New function.
7097 * server.c (handle_query): Call target look_up_symbols hook.
7098 * server.h (look_up_one_symbol): Add prototype.
7099 * target.h (struct target_ops): Add look_up_symbols hook.
7100
7101 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7102
7103 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7104 override FP_REGNUM with frame->fp. Update copyright.
7105 * parse.c (num_std_regs, std_regs): Delete.
7106 (target_map_name_to_register): Do not search std_regs. Update
7107 function description.
7108 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7109 declarations. Update copyright.
7110 Fix PR gdb/251.
7111
7112 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7113
7114 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7115 after the last symbol in a block.
7116
7117 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7118
7119 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7120 is non zero as a found symbol.
7121
7122 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7123
7124 * findvar.c: Include "builtin-regs.h".
7125 (value_of_register): Call value_of_builtin_reg when applicable.
7126 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7127 (target_map_name_to_register): Call
7128 builtin_reg_map_name_to_regnum.
7129 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7130 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7131 (builtin_regs_h): Define.
7132 (builtin-regs.o): New target.
7133 (findvar.o): Add $(builtin_regs_h).
7134 * builtin-regs.c, builtin-regs.h: New files.
7135 * std-regs.c: New file.
7136 Partial fix for PR gdb/251.
7137
7138 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7139
7140 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7141 it's no longer required.
7142
7143 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7144
7145 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7146
7147 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7148
7149 From Jimi X <jimix@watson.ibm.com>:
7150 * rs6000-tdep.c (rs6000_software_single_step): Use
7151 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7152 and size. Use target_insert_breakpoint() and
7153 target_remove_breakpoint() to insert and remove breakpoints
7154 instead of explicit memory reads and writes.
7155
7156 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7157
7158 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7159 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7160 ELF_OBJECT_FORMAT ifdef.
7161
7162 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7163
7164 From Jimi X <jimix@watson.ibm.com>:
7165 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7166
7167 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7168
7169 From Jimi X <jimix@watson.ibm.com>:
7170 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7171 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7172
7173 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7174
7175 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7176 s/asprintf/xasprintf/.
7177 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7178
7179 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7180
7181 I believe Jeff Law denies responsability for this one:
7182 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7183 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7184 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7185 Work-around for PR gdb/366.
7186
7187 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7188
7189 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7190 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7191 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7192
7193 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7194
7195 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7196 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7197 information.
7198
7199 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7200
7201 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7202 maintainer.
7203
7204 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7205
7206 * README (Reporting Bugs in GDB): Document the bug web page as the
7207 prefered way of submitting bugs.
7208 Fix PR gdb/402.
7209
7210 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7211
7212 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7213 -1. Update comment.
7214 * gdbarch.h, gdbarch.c: Re-generate.
7215
7216 2002-04-07 Andreas Schwab <schwab@suse.de>
7217
7218 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7219 buffer to regcache_collect.
7220
7221 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7222
7223 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7224 * gdbarch.c, gdbarch.h: Re-generate.
7225
7226 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7227
7228 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7229 declaration. Fix -Werror.
7230
7231 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7232
7233 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7234 * gdbarch.c: Regenerate.
7235
7236 2002-04-05 Michael Snyder <msnyder@redhat.com>
7237
7238 * breakpoint.c (clear_command): Rewrite middle section to
7239 combine two loops with identical control conditions.
7240 Add a cleanup to eliminate a memory leak.
7241 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7242
7243 2002-04-05 H.J. Lu (hjl@gnu.org)
7244
7245 * solib-svr4.c (bkpt_names): Add "__start".
7246
7247 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7248
7249 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7250 as test for 64 bit target.
7251
7252 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7253
7254 * h8500-tdep.c (h8500_write_fp): Delete function.
7255 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7256 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7257 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7259 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7260 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7261 (s390_write_fp):
7262 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7263 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7264 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7265 (d10v_write_fp): Delete function.
7266 * inferior.h (write_fp, generic_target_write_fp): Delete
7267 declarations.
7268 * regcache.c (generic_target_write_fp): Delete function.
7269 (write_fp): Delete function.
7270 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7271 * gdbarch.h, gdbarch.c: Regenerate.
7272 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7273 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7274 (sparc64_write_fp): Delete declaration.
7275 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7276 (h8500_write_fp): Delete declaration.
7277
7278 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7279
7280 * sparc-tdep.c (sparc64_write_fp): Delete.
7281 (sparc_push_dummy_frame): Replace write_fp call with code to store
7282 the FP directly.
7283 (sparc_gdbarch_init): Do not initialize write_fp.
7284
7285 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7286
7287 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7288 clause.
7289
7290 2002-03-29 Jim Blandy <jimb@redhat.com>
7291
7292 * stack.c (get_selected_block): Add new argument `addr_in_block',
7293 used to return the exact code address we used to select the block,
7294 not just the block.
7295 * blockframe.c (get_frame_block, get_current_block): Same.
7296 * frame.h (get_frame_block, get_current_block,
7297 get_selected_block): Update declarations.
7298 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7299 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7300
7301 2002-04-05 Michael Snyder <msnyder@redhat.com>
7302
7303 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7304 warning message.
7305
7306 2002-04-05 J. Brobecker <brobecker@gnat.com>
7307
7308 * utils.c (xfullpath): New function.
7309 * defs.h (xfullpath): Add declaration.
7310 * source.c (openp): Use xfullpath in place of gdb_realpath to
7311 avoid resolving the basename part of filenames when the
7312 associated file is a symbolic link. This fixes a potential
7313 inconsistency between the filenames known to GDB and the
7314 filenames it prints in the annotations.
7315 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7316 to be able to match a filename with either the real filename, or
7317 the name of any symbolic link to this file.
7318 (lookup_partial_symtab): Ditto.
7319
7320 2002-04-04 Michael Snyder <msnyder@redhat.com>
7321
7322 * breakpoint.c: Add support for hardware breakpoints in overlays.
7323 (overlay_events_enabled): New state variable.
7324 (insert_breakpoints): Use overlay_events_enabled to decide
7325 whether to attempt to set a breakpoint at the overlay load addr.
7326 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7327 (remove_breakpoint): Use overlay_events_enabled to decide
7328 whether breakpoints need to be removed from overlay load addr.
7329 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7330 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7331 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7332 disable_overlay_breakpoints): Update overlay_events_enabled.
7333
7334 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7335
7336 * dwarf2read.c (struct function_range): New.
7337 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7338 (check_cu_functions): New.
7339 (read_file_scope): Initialize global function lists.
7340 Call dwarf_decode_line after processing children.
7341 (read_func_scope): Add to global function list.
7342 (dwarf_decode_lines): Call check_cu_functions everywhere
7343 record_line is called. Call record_line with a linenumber
7344 of 0 to mark sequence ends.
7345
7346 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7347
7348 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7349 change sync with glibc.
7350
7351 2002-04-03 Jim Blandy <jimb@redhat.com>
7352
7353 * configure.in: Call AC_C_INLINE.
7354 * configure: Regenerated.
7355
7356 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7357
7358 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7359 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7360
7361 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7362
7363 * NEWS: Mention gcore support on FreeBSD/i386.
7364
7365 * fbsd-proc.c: New file.
7366 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7367 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7368
7369 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7370 while statement.
7371
7372 2002-03-29 Jim Blandy <jimb@redhat.com>
7373
7374 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7375 unescaped newlines in string literals, but newer ones don't. So
7376 escape them.
7377
7378 2002-03-26 Michael Snyder <msnyder@redhat.com>
7379 Andrew Cagney <cagney@redhat.com>
7380
7381 * cli/cli-dump.c: New file. Dump memory to file,
7382 restore file to memory.
7383 * cli/cli-dump.h: New file.
7384 * Makefile.in: Add rules, dependencies for cli-dump.o.
7385 * NEWS: Mention new commands.
7386
7387 2002-03-28 Michael Snyder <msnyder@redhat.com>
7388
7389 * symfile.c (symbol_file_add): Move test for null symbols to later.
7390
7391 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7392
7393 From veksler at il.ibm.com:
7394 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7395 the xstrduped original path.
7396 Fix PR gdb/417.
7397
7398 2002-03-27 Michael Snyder <msnyder@redhat.com>
7399
7400 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7401 * infcmd.c (_initialize_infcmd): Ditto.
7402 * language.c (_initialize_language): Ditto.
7403 * symfile.c (_initialize_symfile): Ditto.
7404 * top.c (_init_main): Ditto.
7405 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7406
7407 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7408
7409 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7410 vector registers handling.
7411 (skip_prologue): Handle new AltiVec instructions. Fill in new
7412 fields of frame data.
7413 (frame_get_saved_regs): Fill in information for AltiVec registers.
7414
7415 2002-03-27 Jim Blandy <jimb@redhat.com>
7416
7417 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7418 a function; leave this macro here to invoke that function.
7419 (symbol_init_mangled_name): Declaration for that function.
7420 * symtab.c (symbol_init_mangled_name): New function.
7421
7422 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7423
7424 * valarith.c: Replace strerror with safe_strerror.
7425 * tracepoint.c: Ditto.
7426 * lin-lwp.c: Ditto.
7427 * go32-nat.c: Ditto.
7428 * inflow.c: Ditto.
7429 * gnu-nat.c: Ditto.
7430
7431 2002-03-27 Andreas Schwab <schwab@suse.de>
7432
7433 * event-top.c (command_line_handler): Remove useless if.
7434
7435 2002-03-27 Andreas Jaeger <aj@suse.de>
7436
7437 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7438 comment.
7439
7440 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7441
7442 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7443 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7444 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7445 (x86_64_linux_dr_get_status, supply_gregset),
7446 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7447 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7448 (x86_64_register_info_table): Add.
7449 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7450 (x86_64_register_raw_size, x86_64_register_virtual_type),
7451 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7452 general x86_64_register_info_table.
7453 (i386_gdbarch_init): gdbarch_register_bytes is now set
7454 dynamicaly during initialization.
7455 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7456 * gdbserver/linux-x86-64-low.c: Ditto.
7457
7458 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7459
7460 * gdbserver/server.c (main): Call target_signal_to_host_p
7461 and target_signal_to_host on signals received from the remote.
7462 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7463 target_signal_from_host on signals sent to the remote.
7464 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7465 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7466
7467 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7468
7469 * signals/signals.c: Include "server.h" in gdbserver build.
7470 (target_signal_from_name): Don't use STREQ.
7471 (_initialize_signals): Likewise. Don't include function in
7472 gdbserver build.
7473
7474 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7475
7476 * signals.c: Moved to...
7477 * signals/signals.c: Here.
7478 * Makefile (signals.o): Update.
7479
7480 2002-03-26 Jeff Law (law@redhat.com)
7481
7482 * somread.c (som_symtab_read): Remove some commented out code and
7483 updated related comments. Do not set the minimal symbol table to
7484 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7485 in a dynamic executable.
7486 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7487 where we are unable to find the minimal symbol for the given
7488 PC value.
7489
7490 2002-03-25 Jeff Law (law@redhat.com)
7491
7492 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7493
7494 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7495
7496 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7497
7498 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7499
7500 * command.h: Update copyright.
7501 (struct cmd_list_element): Replace definition with opaque
7502 declaration.
7503 (enum cmd_types): Document that it will eventually be moved to
7504 cli/cli-decode.h
7505 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7506 (MALLOCED_REPLACEMENT): Delete macro.
7507 * Makefile.in (cli_decode_h): Add $(command_h).
7508 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7509 * top.c: Include "cli/cli-decode.h".
7510 * completer.c: Include "cli/cli-decode.h".
7511 * maint.c: Include "cli/cli-decode.h".
7512 * cli/cli-decode.h: Include "command.h".
7513 (enum command_class): Delete.
7514 (enum cmd_types): Comment out.
7515 (enum cmd_auto_boolean): Delete.
7516 (enum var_types): Delete.
7517
7518 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7519
7520 * cli/cli-decode.c: Include "gdb_assert.h".
7521 (add_set_or_show_cmd): New static function.
7522 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7523 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7524 all fields, such as func, from the set command.
7525
7526 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7527
7528 * MAINTAINERS (sh-elf): Change warning flag to -w.
7529
7530 2002-03-23 Andrew Cagney <cagney@redhat.com>
7531
7532 * defs.h (error): Add printf format attribute.
7533 * thread-db.c (thread_from_lwp): Fix error format string.
7534 * stack.c (parse_frame_specification): Ditto.
7535 * cli/cli-decode.c (undef_cmd_error): Ditto.
7536 * scm-lang.c (scm_lookup_name): Ditto.
7537 * tracepoint.c (trace_error): Ditto.
7538 * remote-utils.c (usage): Ditto.
7539 * remote.c (compare_sections_command): Ditto.
7540 Fix PR gdb/328.
7541
7542 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7543
7544 * gdbtypes.c (append_composite_type_field): New function.
7545 (init_composite_type): New function.
7546 * gdbtypes.h (append_composite_type_field): Declare.
7547 (init_composite_type): Ditto.
7548
7549 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7550
7551 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7552 function.
7553 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7554 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7555 structure returning convention for SYSV ABI case, but not
7556 for GNU/Linux, FreeBSD, or NetBSD.
7557
7558 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7559
7560 * symtab.h (lookup_block_symbol): Add mangled_name argument
7561 to prototype.
7562
7563 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7564 with new mangled_name argument.
7565 * linespec.c (decode_line_1): Likewise.
7566 * valops (value_of_this): Likewise.
7567 * symtab.c (lookup_transparent_type): Likewise.
7568 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7569 (lookup_symbol): If we are given a mangled name, pass it down
7570 to lookup_symbol_aux.
7571 (lookup_block_symbol): If we are given a mangled name to check
7572 against, only return symbols which match it.
7573
7574 2002-03-22 Christopher Faylor <cgf@redhat.com>
7575
7576 * win32-nat.c (child_create_inferior): Check for proper shell to use
7577 here, in case the user changes it on the fly.
7578 (_initialize_inftarg): Remove shell path considerations.
7579
7580 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7581
7582 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7583 for gdbarch_max_register_raw_size and max_register_virtual_size.
7584 Adjust copyright year.
7585
7586 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7587
7588 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7589 in a function to cover the entire beginning of the function
7590 as well if it does not already.
7591
7592 2002-03-21 Tom Rix <trix@redhat.com>
7593
7594 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7595 (rs6000_ptrace64): Renamed from ptrace64.
7596
7597 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7598
7599 * gdbserver/remote-utils.c (remote_open): Don't call
7600 getprotobyname, we're all using TCP here so just use
7601 IPPROTO_TCP.
7602 * gdbserver/gdbreplay.c (remote_open): Ditto.
7603
7604 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7605
7606 * regcache.c (_initialize_regcache): No need to call
7607 build_regcache() at this time; it gets called whenever
7608 the gdbarch changes.
7609
7610 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7611
7612 * sparc-nat.c: Include sys/param.h where possible.
7613
7614 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7615
7616 Fix PR gdb/422.
7617 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7618 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7619 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7620 complex types.
7621 * stabsread.c (rs6000_builtin_type): Likewise.
7622 (read_sun_floating_type): Likewise.
7623
7624 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7625
7626 * stabsread.c (read_member_functions): Remove skip code for duplicate
7627 constructor/destructor methods. Use standard parsing for these
7628 methods and just do not chain them to the list of methods after
7629 parsing.
7630
7631 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7632
7633 * coffread.c: Remove redundant static declarations. Replace
7634 occurrences of `PTR' with `void *'.
7635 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7636 * top.h (quit_cover): Likewise.
7637 * defs.h (catch_errors): Likewise.
7638
7639 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7640
7641 * defs.h (XMALLOC): Define.
7642 * gdb-events.sh (XMALLOC): Delete macro.
7643 * gdb-events.c, gdb-events.h: Regenerate.
7644 * gdbarch.sh (XMALLOC): Delete macro.
7645 * gdbarch.c: Regenerate.
7646 * serial.c (XMALLOC): Delete macro.
7647 * ui-file.c (XMALLOC): Ditto.
7648 * ser-unix.h (XMALLOC): Ditto.
7649 * sh-tdep.c (XMALLOC): Ditto.
7650 * ui-out.c (XMALLOC): Ditto.
7651 * utils.c (XMALLOC): Ditto.
7652 * i386-tdep.c (XMALLOC): Ditto.
7653 * gdb-events.c (XMALLOC): Ditto.
7654 * d10v-tdep.c (XMALLOC): Ditto.
7655 * cli-out.c (XMALLOC): Ditto.
7656
7657 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7658 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7659 * ui-file.c, ui-out.c: Ditto.
7660
7661 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7662
7663 * command.h (struct cmd_list_element): Add field context.
7664 (set_cmd_context, get_cmd_context): Declare.
7665 * cli/cli-decode.h: Ditto.
7666 * cli/cli-decode.c (get_cmd_context): New function.
7667 (set_cmd_context): New function.
7668 (add_cmd): Initialize context.
7669 Part of fixing PR gdb/145 and PR gdb/146.
7670
7671 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7672
7673 * cli/cli-decode.c (cmd_type): New function.
7674 * command.h (cmd_type): Declare.
7675 * infrun.c (set_schedlock_func): Call function cmd_type.
7676 * kod.c (kod_set_os): Call cmd_type.
7677 * cris-tdep.c (cris_version_update): Use function cmd_type.
7678 (cris_mode_update, cris_abi_update): Ditto.
7679
7680 * command.h: (execute_cmd_post_hook): Declare.
7681 (execute_cmd_pre_hook): Declare.
7682 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7683 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7684 functions. Execute pre/post hook while ensuring that afterwords
7685 hook_in is cleared.
7686 * top.c (execute_command): Use execute_cmd_post_hook, and
7687 execute_cmd_pre_hook to execute pre/post commands.
7688 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7689 hook_stop_stub.
7690 (hook_stop_stub): Call execute_cmd_pre_hook.
7691
7692 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7693
7694 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7695 set'' and this leads to a core dump. Move xstrdup of
7696 operating_system to after check that it is not NULL.
7697
7698 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7699
7700 * kod.c (kod_set_os): Remove unnecessary check that
7701 ``command->type'' is set_cmd.
7702
7703 * valprint.c (set_input_radix): Use input_radix.
7704 (set_output_radix): Use output_radix.
7705 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7706 isn't reverted.
7707
7708 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7709
7710 * value.h (struct value): Delete field ``substring_addr''. Change
7711 aligner fields to force_doublest_align, force_longest_align,
7712 force_core_addr_align and force_pointer_aligh.
7713
7714 * value.h (struct value): Fix typo in above change.
7715
7716 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7717
7718 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7719 to fix internal_error from ``maintenance print architecture''.
7720
7721 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7722
7723 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7724 for gcc versions after gcc-2.8.1.
7725
7726 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7727
7728 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7729 for method resolution. Restore adjustment of ``this'' pointer after
7730 calling value_struct_elt, which was accidentally removed during the
7731 HP merge.
7732
7733 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7734
7735 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7736 value_of_register.
7737 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7738 get_saved_register.
7739 * value.h (value_of_register): Update.
7740
7741 2002-03-14 Richard Henderson <rth@redhat.com>
7742
7743 * configure.in: Detect declaration for canonicalize_file_name.
7744 * utils.c (canonicalize_file_name): Declare, if needed.
7745 (gdb_realpath): Prefer realpath if available and usable.
7746 * config.in, configure: Rebuild.
7747
7748 2002-03-14 Richard Henderson <rth@redhat.com>
7749
7750 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7751 a constant array bound.
7752
7753 * MAINTAINERS: Add myself to write-after-approval.
7754
7755 2002-03-14 Michael Snyder <msnyder@redhat.com>
7756
7757 * symfile.c (syms_from_objfile): Return immediately if no syms.
7758 (symbol_file_add): Return immediately if no syms.
7759 (find_sym_fns): Return immediately if no syms.
7760
7761 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7762
7763 * gdbserver/remote-util.c (remote_open): Print remote-side's
7764 IP address when remote debugging over the network.
7765
7766 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7767
7768 * config/sparc/fbsd.mh: Fix copyright.
7769 * config/sparc/fbsd.mt: Likewise.
7770
7771 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7772
7773 * MAINTAINERS: Fix typo in name of gdb warnings option.
7774 (x86-64): Fix formating so that this can be parsed by awk.
7775
7776 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7777
7778 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7779 * defs.h: Include "gdb/signals.h".
7780 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7781
7782 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7783
7784 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7785 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7786 from x86-64-tdep.h
7787
7788 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7789 Don Howard <dhoward@redhat.com>
7790
7791 * mips-tdep.c (ST0_FR): Define.
7792 (mips2_fp_compat): New function, temporarily disabled.
7793 (mips_read_fp_register_single): New function.
7794 (mips_read_fp_register_double): New function.
7795 (mips_print_register): Use them.
7796 (do_fp_register_row): Likewise.
7797
7798 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7799
7800 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7801 approval''.
7802
7803 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7804
7805 * stabsread.c (read_member_functions): Fix is_stub test for
7806 static member functions, improve comment.
7807
7808 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7809
7810 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7811 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7812 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7813 commands that set boolean values.
7814 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7815 (arm_rdi_resume): Always initialize PC.
7816 (arm_rdi_open): Don't use rslt as a boolean.
7817 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7818 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7819 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7820 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7821
7822 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7823
7824 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7825 * configure: Rebuilt.
7826
7827 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7828
7829 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7830 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7831
7832 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7833
7834 * cli/cli-decode.c (set_cmd_completer): New function.
7835 * command.h (set_cmd_completer): Declare.
7836 * cli/cli-decode.h (set_cmd_completer): Ditto.
7837
7838 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7839 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7840 * win32-nat.c (_initialize_inftarg): Ditto.
7841 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7842 * proc-api.c (_initialize_proc_api): Ditto.
7843 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7844 * source.c (_initialize_source): Ditto.
7845 * exec.c (_initialize_exec): Ditto.
7846 * solib.c (_initialize_solib): Ditto.
7847 * top.c (init_main): Ditto.
7848 * tracepoint.c (_initialize_tracepoint): Ditto.
7849 * symfile.c (_initialize_symfile): Ditto.
7850 * printcmd.c (_initialize_printcmd): Ditto.
7851 * infcmd.c (_initialize_infcmd): Ditto.
7852 * corefile.c (_initialize_core): Ditto.
7853
7854 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7855
7856 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7857
7858 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7859
7860 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7861
7862 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7863
7864 * NEWS: Update headings, 5.2 has branched.
7865
7866 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7867
7868 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7869 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7870 (register_addr, REGISTER_RAW_SIZE): Likewise.
7871 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7872 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7873
7874 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7875
7876 * MAINTAINERS (x86-64): Add myself.
7877 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7878 changed value_ptr -> struct value *
7879
7880 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7881
7882 * configure.host (sparc64-*-freebsd): Add.
7883 * configure.tgt: Likewise.
7884 * config/sparc/fbsd.mh: New file.
7885 * config/sparc/fbsd.mt: Likewise.
7886 * config/sparc/nm-fbsd.h: Likewise.
7887 * config/sparc/tm-fbsd.h: Likewise.
7888
7889 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7890
7891 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7892 regformats/reg-s390x.dat.
7893
7894 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7895
7896 * utils.c: Add FIXME explaining true/false problem.
7897
7898 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7899
7900 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7901
7902 2002-02-28 Michael Chastain <mec@shout.net>
7903
7904 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7905
7906 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7907
7908 * gdbserver/linux-s390-low.c: New file.
7909 * regformats/reg-s390.dat: New file.
7910 * regformats/reg-s390x.dat: New file.
7911 * gdbserver/configure.srv: Add S/390.
7912 * gdbserver/Makefile.in: Add S/390.
7913 * configure.tgt: Enable gdbserver for S/390.
7914
7915 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7916
7917 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7918 first line of the doc string for "info dos", except at the end of
7919 the sentence, since the short help stops at the first period.
7920
7921 2002-02-28 Jason Merrill <jason@redhat.com>
7922
7923 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7924
7925 2002-02-27 Fred Fish <fnf@redhat.com>
7926
7927 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7928 comment (dumy -> dummy).
7929
7930 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7931
7932 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7933
7934 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7935
7936 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7937
7938 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7939
7940 * gdbserver/acconfig.h: New file.
7941 * gdbserver/i387-fp.c: New file.
7942 * gdbserver/i387-fp.h: New file.
7943 * gdbserver/linux-x86-64.c: New file.
7944 * regformats/reg-x86-64.dat: New file.
7945 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7946 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7947 * gdbserver/configure.in: Add support for regsets.
7948 * gdbserver/config.in: Regenerate.
7949 * gdbserver/configure: Regenerate.
7950 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7951 * gdbserver/linux-low.h: New file.
7952 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7953 for regsets.
7954 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7955 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7956 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7957 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7958 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7959 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7960 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7961 "i387-fp.h". Add PTRACE_GETREGS and friends.
7962 * gdbserver/regcache.c (supply_register): New function.
7963 (supply_register_by_name): New function.
7964 (collect_register): New function.
7965 (collect_register_by_name): New function.
7966
7967 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7968
7969 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7970 (config.status): Add configure.srv dependency.
7971 (server_h): Add config.h dependency.
7972
7973 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7974
7975 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7976 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7977 * gdbserver/configure.srv: Change i386-*-linux* to use
7978 reg-i386-linux.o.
7979
7980 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7981
7982 * x86-64-tdep.c: Re-indent. Update copyright date.
7983
7984 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7985
7986 From Michal Ludvig <mludvig@suse.cz>:
7987 * x86-64-tdep.c (value.h): Delete.
7988 (gdb_assert.h): Include.
7989 (x86_64_register_convert_to_virtual,
7990 x86_64_register_convert_to_raw ): Add check which lets only
7991 floating-point values to be converted.
7992 (value_push): Delete.
7993 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7994 (i386_gdbarch_init): Number of register_bytes fixed.
7995
7996 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7997
7998 * MAINTAINERS: Add x86-64 target.
7999
8000 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8001
8002 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8003 * osfsolib.c (solib_map_sections): Ditto.
8004 * irix5-nat.c (solib_map_sections): Ditto.
8005 * corelow.c (gdb_check_format): Ditto.
8006 * symfile.c (symfile_bfd_open): Ditto.
8007 * solib.c (solib_map_sections): Ditto.
8008 Fix PR gdb/354.
8009
8010 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8011
8012 * remote.c (_initialize_remote): By default, disable ``e'' and
8013 ``E'' step out-of-range packets.
8014
8015 2002-02-26 Andreas Schwab <schwab@suse.de>
8016
8017 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8018 m68k_linux_frame_saved_pc.
8019 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8020 in_sigtramp.
8021 (SIGCONTEXT_PC_OFFSET): Remove.
8022 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8023 m68k_linux_sigtramp_saved_pc): New functions.
8024 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8025 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8026 (UCONTEXT_PC_OFFSET): Define.
8027 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8028 non-RT and RT signal trampolines.
8029
8030 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8031
8032 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8033 (TARGET_NBPG, STACK_END_ADDR): Delete
8034 (VARIABLES_INSIDE_BLOCK): Delete.
8035
8036 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8037
8038 * utils.c (perror_with_name): Make string parameter constant.
8039 (print_sys_errmsg): Ditto.
8040 (query): Ditto.
8041 * defs.h (perror_with_name): Update.
8042 (print_sys_errmsg): Update.
8043 (query): Update.
8044
8045 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8046
8047 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8048 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8049
8050 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8051
8052 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8053 if it already matches the current architecture from the exec file.
8054 Include arch-utils.h for gdbarch_info_init prototype.
8055 * Makefile.in (rs6000-nat.o): Update dependencies.
8056
8057 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8058
8059 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8060 list of exported variables.
8061
8062 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8063
8064 * gdbserver/configure.srv: New file.
8065 * gdbserver/configure.in: Use configure.srv instead
8066 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8067 from it.
8068 * gdbserver/configure: Regenerated.
8069 * gdbserver/terminal.h: New file.
8070 * gdbserver/Makefile.in: Update for configure changes. Remove
8071 more unneeded include paths.
8072
8073 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8074
8075 From wiz at danbala:
8076 * config/sparc/tm-sp64.h: Fix grammar and typos.
8077 Fix PR gdb/287.
8078
8079 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8080
8081 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8082 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8083 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8084 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8085 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8086 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8087 * s390-tdep.c: Ditto.
8088 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8089 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8090 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8091 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8092 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8093 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8094 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8095 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8096 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8097 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8098 Fix PR gdb/378.
8099
8100 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8101
8102 * lin-thread.c: Delete file.
8103 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8104 to gdb_proc_service.h.
8105 * configure: Re-generate.
8106
8107 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8108 * serial.c (serial_open): Delete check for "ocd".
8109 Fix PR gdb/349.
8110
8111 * Makefile.in (linux-thread.o): Delete target.
8112 * linux-thread.c: Delete file.
8113
8114 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8115 renamed SH files to be consistent.
8116
8117 * symtab.c (sort_search_symbols): Use xfree.
8118
8119 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8120
8121 * arm-linux-tdep.c (arm_linux_init_abi): Register
8122 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8123 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8124 definition with undef, since we don't want the sysvr4 definition.
8125 (SKIP_TRAMPOLINE_CODE): Likewise.
8126
8127 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8128
8129 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8130
8131 * configure.in: (AC_CHECK_FUNCS) Added test for
8132 canonicalize_file_name Regenerated.
8133 * config.in, configure: Regenerated.
8134 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8135 defined use canonicalize_file_name.
8136
8137 2002-02-23 Michael Chastain <mec@shout.net>
8138
8139 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8140
8141 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8142
8143 * README: Remove references to cygnus.com.
8144 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8145 dot com'' form. Remove references to cygnus.com and sourceware.
8146
8147 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8148
8149 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8150 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8151 1003.1-2001 no longer allows "head -1".
8152 * gdb/Makefile.in (version.c): Likewise.
8153 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8154 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8155 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8156
8157 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8158
8159 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8160 * command.h (cmd_cfunc_eq): Declare.
8161 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8162
8163 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8164 ``struct cmd_list_element *''.
8165 * cli/cli-cmds.c (is_complete_command): Update. Use
8166 cmd_cfunc_eq.
8167 * top.c (execute_command): Pass the command to
8168 is_complete_command.
8169 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8170
8171 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8172
8173 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8174 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8175 architecture defines.
8176 * s390-tdep.c (s390_gdbarch_init): Likewise.
8177
8178 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8179
8180 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8181 (arm_linux_push_arguments): Likewise.
8182 (arm_linux_init_abi): Register them. Also register linux-specific
8183 call_dummy_words.
8184 (find_minsym_and_objfile): Use strcmp, not STREQ.
8185 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8186 (arm_linux_call_dummy_words): Delete declaration.
8187 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8188 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8189 declarations.
8190 (LOWEST_PC): Delete.
8191
8192 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8193
8194 * maint.c (print_section_info): Do not prepend `0x' to filepos
8195 output, it will be handled by local_hex_string_custom.
8196
8197 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8198
8199 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8200 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8201 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8202
8203 2002-02-22 Jim Blandy <jimb@redhat.com>
8204
8205 Indicate that the bcache functions don't change the strings
8206 they're passed.
8207 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8208 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8209
8210 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8211
8212 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8213
8214 2002-02-21 Christopher Faylor <cgf@redhat.com>
8215
8216 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8217 find the complete path to a loaded DLL.
8218
8219 2002-02-21 Fred Fish <fnf@redhat.com>
8220
8221 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8222 that marks the end of the range of a function, enter a line number
8223 entry that has a line number of zero and a PC offset that matches
8224 the end of the function. This starts a range of PC's for which no
8225 line number information is known.
8226 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8227 PC's for which no line number info is found (line number is zero)
8228 then we didn't find any valid line information.
8229 * symtab.h: Document use of zero line number entry.
8230
8231 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8232
8233 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8234 (have_ptrace_getvrregs): Define for run time checks.
8235 (gdb_vrregset_t): New type for Altivec register handling.
8236 (fetch_register, store_register): Fetch/store altivec register
8237 when needed.
8238 (fetch_altivec_register, store_altivec_register): New functions.
8239 (supply_vrregset, fill_vrregset): New functions.
8240 (fetch_altivec_registers, store_altivec_registers): New functions.
8241 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8242 registers as well.
8243
8244 2002-02-21 Jiri Smid <smid@suse.cz>
8245
8246 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8247
8248 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8249
8250 * Makefile.in (armnbsd-nat.o): Update dependencies.
8251 * armnbsd-nat.c (supply_gregset): New function. Common code to
8252 supply the integer register set.
8253 (supply_fparegset): New function. Similar for FPA registers.
8254 (fetch_regs, fetch_fp_regs): Use them.
8255 (fetch_core_registers): Likewise.
8256 (fetch_elfcore_registers): New function.
8257 (arm_netbsd_elfcore_fns): New core-file type specification.
8258 (_initialize_arm_netbsd_nat): Register it.
8259
8260 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8261
8262 * armnbsd-nat.c: Include gdbcore.h.
8263 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8264 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8265 'void' to declaration, to shut up ARI.
8266 (fetch_core_registers): Make static. Rewrite using supply_register.
8267 (arm_netbsd_core_fns): New core-file type specification.
8268 (_initialize_arm_netbsd_nat): New function.
8269
8270 2002-02-21 Christopher Faylor <cgf@redhat.com>
8271
8272 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8273 value.
8274
8275 2002-02-20 Christopher Faylor <cgf@redhat.com>
8276
8277 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8278 fails.
8279
8280 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * jv-exp.y (parse_number): Change type of implicit longs
8283 to builtin_type_uint64.
8284
8285 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8286
8287 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8288 to be an integer instead of a `union wait'.
8289
8290 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8291
8292 * mips-linux-nat.c: Call the operating system GNU/Linux.
8293 * mips-linux-tdep.c: Likewise.
8294 * mips-tdep.c: Likewise.
8295
8296 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8297
8298 Fix PR gdb/265.
8299 * jv-exp.y (parse_number): Handle 64-bit integers.
8300
8301 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8302
8303 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8304 AC_STDC_HEADERS to AC_HEADER_STDC.
8305 * gdbserver/configure: Regenerated.
8306
8307 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8308
8309 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8310 is defined.
8311 * sparc-tdep.c (get_longjmp_target): Likewise.
8312
8313 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8314
8315 * News: Add news about ARM and Multi-arch. Mention the new target
8316 arm*-*-netbsd*.
8317
8318 2002-02-19 Jim Blandy <jimb@redhat.com>
8319
8320 * stabsread.c (error_type_complaint): Improve error message.
8321
8322 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8323
8324 * gdbserver/README: Update documentation.
8325 * gdbserver/configure.in: Update configury to match documentation.
8326 * gdbserver/Makefile.in: Likewise.
8327 * gdbserver/configure: Regenerated.
8328 * gdbserver/aclocal.m4: New file, generated by aclocal.
8329 * gdbserver/config.in: New file, generated by autoheader.
8330
8331 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8332
8333 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8334 armnbsd-nat.c.
8335
8336 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8337
8338 * arm-tdep.h (enum arm_float_model): New enum.
8339 (struct gdbarch_tdep): Add fp_model.
8340 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8341 up floating-point conversions until we know the floating-point model
8342 in use by the inferior. Don't complain about being unable to
8343 determine the ABI of the inferior when we don't have one.
8344 (arm_extract_return_value): Support different floating-point models.
8345 (arm_store_return_value): Likewise.
8346 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8347 ARM_FLOAT_SOFT.
8348 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8349
8350 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8351
8352 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8353 of ``current_gdbarch''.
8354
8355 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8356
8357 * armnbsd-nat.c : ANSIfy all function declarations.
8358 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8359 (fetch_inferior_registers): Re-implement in terms of above.
8360 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8361 (store_inferior_registers): Re-implement in terms of above.
8362
8363 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8364
8365 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8366 kernel.
8367 * arm-linux-tdep.c: Likewise.
8368 * config/arm/tm-linux.h: Likewise.
8369
8370 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8371
8372 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8373 * config/arm/nbsd.mt (TM_FILE): Delete.
8374 * config/arm/tm-nbsd.h: Delete.
8375
8376 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8377
8378 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8379 Initialize CALL_DUMMY_LENGTH.
8380
8381 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8382
8383 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8384 function.
8385 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8386 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8387 defines one thing and that is incorrect for this port.
8388 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8389
8390 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8391
8392 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8393
8394 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8395
8396 * win32-nat.c (display_selector): New function. Displays information
8397 about the information returned by GetThreadSelectorEntry API function.
8398 (display_selectors): New function. Displays the infomation of
8399 the selector given as argument, or of CS, DS ans FS selectors
8400 if no argument is given.
8401 ( _initialize_inftarg): Add "w32" as info prefix command.
8402 Add "info w32 selector" as command calling display_selectors.
8403
8404 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8405
8406 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8407 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8408 if not defined.
8409
8410 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8411
8412 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8413
8414 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8415
8416 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8417 (arm_fix_call_dummy): Call it.
8418 (arm_call_dummy_breakpoint_offset): Delete.
8419 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8420 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8421
8422 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8423
8424 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8425 Default to func_frame_chain_valid.
8426 * gdbarch.h, gdbarch.c: Re-generate.
8427 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8428
8429 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8430
8431 * ppc-linux-nat.c: Update copyright.
8432 (fetch_register, store_register): Add tid parameter, don't compute
8433 tid here.
8434 (fetch_ppc_registers, store_ppc_registers): Add tid
8435 parameter. Pass it along to callees.
8436 (fetch_inferior_registers, store_inferior_registers): Compute tid
8437 here, and pass it to calleed functions.
8438 (fill_gregset, supply_fpregset): Clean up formatting.
8439
8440 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8441
8442 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8443 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8444
8445 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8446
8447 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8448 * gdbarch.c gdbarch.h: Regenerate.
8449 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8450 function.
8451 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8452 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8453 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8454
8455 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8456 * arm-tdep.c (arm_get_longjmp_target): New function.
8457 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8458 this to a positive value register arm_get_longjmp_target as the
8459 longjmp handler.
8460 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8461 (arm_linux_init_abi): Set up longjmp description in tdep.
8462 * armnbsd-nat.c (get_longjmp_target): Delete.
8463 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8464 description in tdep.
8465 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8466 (get_longjmp_target): Delete declaration.
8467 (GET_LONGJMP_TARGET): Delete.
8468 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8469 (GET_LONGJMP_TARGET): Delete.
8470
8471 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8472
8473 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8474 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8475 of ``current_gdbarch''.
8476
8477 2002-02-17 Tom Tromey <tromey@redhat.com>
8478
8479 * cli/cli-cmds.c (compare_strings): New function.
8480 (complete_command): Only print each unique item once.
8481 * completer.h (complete_line): Declare.
8482 * completer.c (complete_line): New function.
8483 (line_completion_function): Use it.
8484
8485 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8486
8487 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8488 * gdbarch.h, gdbarch.c: Re-generate.
8489
8490 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8491
8492 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8493
8494 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8495
8496 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8497 * valops.c (value_arg_coerce): Don't take the address of a reference
8498 to convert an argument to a reference.
8499
8500 2002-02-15 Christopher Faylor <cgf@redhat.com>
8501
8502 * win32-nat.c (get_image_name): New function.
8503 (handle_load_dll): Use get_image_name function.
8504 (get_child_debug_event): Avoid registering debug events until possibly
8505 execed process is started.
8506 (child_create_inferior): Allow invocation via shell so that command
8507 line redirection, etc. works ok.
8508 (_initialize_inftarg): Add new command: "set shell" to control whether
8509 a shell is used to start a process.
8510
8511 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8512
8513 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8514 instead of find_register_by_number.
8515 (cannot_store_register): Likewise.
8516
8517 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8518
8519 * dwarf2read.c: Replace fprintf (stderr, ...) by
8520 fprintf_unfiltered (gdb_stderr, ...).
8521
8522 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8523
8524 * gdbserver/gdbserver.1: Document --attach.
8525
8526 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8527
8528 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8529 descriptions.
8530 * arm-tdep.c (arm_default_arm_le_breakpoint)
8531 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8532 (arm_default_thumb_be_breakpoint): New. Initialize them from
8533 traditional breakpoint defines.
8534 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8535 (arm_gdbarch_init): Initialize new breakpoint variables.
8536 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8537 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8538 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8539 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8540 code out to ...
8541 (arm_netbsd_init_abi_common): ... here; new function.
8542 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8543 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8544 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8545 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8546
8547 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8548
8549 * arm-tdep.h (enum arm_abi): New enum.
8550 (struct gdbarch_tdep): New structure.
8551 (LOWEST_PC): Provide a default.
8552 (arm_gdbarch_register_os_abi): Declare new function.
8553 * arm-tdep.c (arm_abi_names): New array.
8554 (process_note_abi_tag_sections): New function.
8555 (get_elfosabi): New function.
8556 (arm_gdbarch_register_os_abi): New function.
8557 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8558 support for that ABI has been built in, then call the appropriate
8559 configuration routine. Use gdbarch_num_regs() to get the number
8560 of registers.
8561 (arm_dump_tdep): New function.
8562 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8563 place-holder functions.
8564 (_initialize_arm_tdep): Register them.
8565 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8566
8567 * armnbsd-tdep.c: New file.
8568 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8569 * config/arm/nbsd.mt (TDEPFILES): Add it.
8570 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8571
8572 * armnbsd-nat.c: Include regcache.h.
8573 * Makefile.in (armnbsd-nat.o): Update dependency list.
8574
8575 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8576
8577 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8578
8579 * gdbserver/Makefile.in: Fix typos in target rules.
8580
8581 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8582
8583 Fix part of PR gdb/267.
8584 * linespec.c (find_methods): Handle constructors specially for now.
8585
8586 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8587
8588 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8589 handling.
8590 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8591 standard_coerce_float_to_double().
8592
8593 2002-02-14 Christopher Faylor <cgf@redhat.com>
8594
8595 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8596 GDBINIT_FILENAME.
8597
8598 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8599
8600 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8601 find_variant_by_name, because it confuses the multiarch
8602 framework. Return NULL if there isn't an architecture with the
8603 user supplied name, instead of forcing a different one without
8604 recording the change with the multiarch machinery.
8605 (find_variant_by_name): Delete.
8606
8607 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8608
8609 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8610 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8611
8612 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8613
8614 * stack.c (print_frame_info_base): When calling
8615 print_frame_info_listing_hook, set current_source_symtab.
8616
8617 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8618
8619 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8620 and remove unused $(INCLUDE_DIR).
8621 Add regcache.c to OBS.
8622 Add generated register protocol files to clean target.
8623 Update dependencies for new objects, obsolete old target code.
8624
8625 * gdbserver/linux-low.c: Remove all platform-specific code to
8626 new files. Remove various dead code. Update to use regcache
8627 functionality.
8628 * gdbserver/remote-utils.c (fromhex): Add return statement
8629 to quiet warning.
8630 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8631 constant.
8632 (input_interrupt): Add integer parameter to match prototype
8633 of a signal handler.
8634 (outreg): Use register_data ().
8635 (prepare_resume_reply): Use gdbserver_expedite_regs.
8636 * gdbserver/server.c (main): Dynamically allocate own_buf because
8637 PBUFSIZ is no longer constant. Use registers_to_string () and
8638 registers_from_string ().
8639 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8640 for error (), fatal (), and warning (). Update definition of
8641 PBUFSIZ to use regcache functionality. Add include guard.
8642 * gdbserver/utils.c (fatal): Add missing ``const''.
8643 (warning): New function.
8644
8645 * regformats/regdat.sh: Include "regcache.h" in generated files.
8646 Provide init_registers () function.
8647 * regformats/regdef.h: Add prototype for set_register_cache ().
8648 Add include guard.
8649
8650 * gdbserver/linux-arm-low.c: New file.
8651 * gdbserver/linux-i386-low.c: New file.
8652 * gdbserver/linux-ia64-low.c: New file.
8653 * gdbserver/linux-m68k-low.c: New file.
8654 * gdbserver/linux-mips-low.c: New file.
8655 * gdbserver/linux-ppc-low.c: New file.
8656 * gdbserver/linux-sh-low.c: New file.
8657
8658 * gdbserver/regcache.c: New file.
8659 * gdbserver/regcache.h: New file.
8660
8661 * gdbserver/low-linux.c: Removed obsolete file.
8662
8663 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8664
8665 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8666 * config/i386/linux.mt: Likewise.
8667 * config/ia64/linux.mt: Likewise.
8668 * config/m68k/linux.mh: Likewise.
8669 * config/powerpc/linux.mh: Likewise.
8670 * config/mips/linux.mt: Likewise.
8671
8672 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8673
8674 * config/i386/i386lynx.mh: Mark gdbserver variables
8675 as (currently) obsolete for this target.
8676 * config/i386/nbsd.mt: Likewise.
8677 * config/i386/nbsdelf.mt: Likewise.
8678 * config/m32r/m32r.mt: Likewise.
8679 * config/m68k/m68klynx.mh: Likewise.
8680 * config/m68k/nbsd.mt: Likewise.
8681 * config/m68k/sun3os4.mh: Likewise.
8682 * config/mips/vr5000.mt: Likewise.
8683 * config/ns32k/nbsd.mt: Likewise.
8684 * config/pa/hppabsd.mh: Likewise.
8685 * config/pa/hppaosf.mh: Likewise.
8686 * config/powerpc/nbsd.mt: Likewise.
8687 * config/rs6000/rs6000lynx.mh: Likewise.
8688 * config/s390/s390.mt: Likewise.
8689 * config/s390/s390x.mt: Likewise.
8690 * config/sparc/sparclynx.mh: Likewise.
8691 * config/sparc/sun4os4.mh: Likewise.
8692 * config/i386/x86-64linux.mt: Likewise.
8693 * config/sparc/linux.mh: Likewise.
8694
8695 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8696
8697 * configure.tgt: Configure gdbserver only for known working
8698 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8699 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8700 SUBDIRS if it is configured. Update comment for ${nativefile}.
8701 * configure: Regenerated.
8702
8703 2002-02-13 Michael Snyder <msnyder@redhat.com>
8704
8705 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8706
8707 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8708 (default_gcore_mach): Just return 0, work around a problem in bfd.
8709 (default_gcore_target): OK to return NULL if exec_bfd is null.
8710 (make_mem_sec): Use a cast, avoid a warning.
8711
8712 * procfs.c (find_memory_regions_callback): Use a cast instead of
8713 calling host_pointer_to_address (which complains if
8714 sizeof (host pointer) != sizeof (target pointer)).
8715 (procfs_make_note_section): Avoid overflow in psargs string.
8716
8717 * procfs.c (procfs_make_note_section): Make the default
8718 implementation return an error.
8719
8720 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8721
8722 * procfs.c (procfs_make_note_section): Provide a default definition
8723 (for alpha-dec-osf4.0f). Fix typos.
8724
8725 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8726
8727 * linux-proc.c: Add include of regcache.h.
8728 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8729
8730 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8731
8732 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8733 * memattr.c (create_mem_region): Disallow useless empty region.
8734 Regions are half-open intervals, so allow [A..B) [B..C) as
8735 non-overlapping.
8736
8737 2002-02-13 Michael Chastain <mec@shout.net>
8738
8739 * defs.h: Kill CONST_PTR.
8740 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8741 * c-lang.c (c_builtin_types): Likewise.
8742 * ch-lang.c (ch_builtin_types): Likewise.
8743 * f-lang.c (f_builtin_types): Likewise.
8744 * language.c (unknown_builtin_types): Likewise.
8745 * m2-lang.c (m2_builtin_types): Likewise.
8746 * p-lang.c (pascal_builtin_types): Likewise.
8747 * scm-lang.c (c_builtin_types): Likewise.
8748
8749 2002-02-13 Keith Seitz <keiths@redhat.com>
8750
8751 * arm-tdep.h (arm_get_next_pc): Add declaration.
8752
8753 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8754
8755 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8756 with other related struct-returning functions.
8757 (arm_extract_struct_value_address): New function.
8758 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8759 initialize float_format, double_format and long_double_format as
8760 appropriate to the endianness of the target.
8761 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8762 (arm_use_struct_convention): Delete declaration.
8763 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8764
8765 2002-02-13 Keith Seitz <keiths@redhat.com>
8766
8767 * defs.h (core_addr_to_string_nz): New function.
8768
8769 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8770
8771 Apply missing bits of 2002-01-15 patch.
8772 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8773 (fill_fpregset): Use i387_fill_fsave.
8774
8775 2002-02-12 Keith Seitz <keiths@redhat.com>
8776
8777 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8778 (core_addr_to_string_nz): New function.
8779
8780 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8781
8782 * arm-linux-nat.c: Really include arm-tdep.h.
8783 * config/arm/tm-linux.h (struct type, struct value): Declare.
8784
8785 2002-02-11 Michael Snyder <msnyder@redhat.com>
8786
8787 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8788 (gcore section): Ifdef for Solaris and Unixware only.
8789 (procfs_do_thread_registers): Unixware needs one lwpstatus
8790 per thread (not one prstatus or pstatus).
8791 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8792 not over all gdb threads. For unixware, call elfcore_write_pstatus
8793 once before iterating over threads.
8794
8795 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8796
8797 * arm-tdep.h: New file.
8798 * arm-tdep.c: Include arm-tdep.h.
8799 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8800 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8801 (arm_print_float_info, arm_register_type, convert_to_extended)
8802 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8803 (arm_extract_return_value, arm_register_name): Make static.
8804 (arm_software_single_step): Similarly. Fix types in declaration.
8805 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8806 (arm_store_return_value, arm_store_struct_return): New functions.
8807 (arm_gdbarch_init): Register the above functions. Also register
8808 call_dummy_start_offset, sizeof_call_dummy_words,
8809 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8810 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8811 max_register_virtual_size, register_size. Set up
8812 prologue_cache.saved_regs here, rather than ...
8813 (_initialize_arm_tdep): ... here.
8814 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8815 declarations.
8816 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8817 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8818 (arm_print_float_info, arm_register_type, convert_to_extended)
8819 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8820 (arm_extract_return_value, arm_register_name): Delete declarations.
8821 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8822 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8823 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8824 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8825 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8826 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8827 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8828 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8829 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8830 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8831 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8832 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8833 interface.
8834 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8835 * remote-rdi.c remote-rdp.c: Likewise.
8836 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8837 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8838 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8839 definition.
8840
8841 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8842 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8843 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8844 from non-ARM_ prefixed definitions.
8845 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8846 all uses of above.
8847 * remote-rdi.c remote-rdp.c: Likewise.
8848 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8849
8850 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8851
8852 * arm-tdep.c (arm_frameless_function_invocation)
8853 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8854 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8855 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8856 (arm_pop_frame, arm_get_next_pc): Make static.
8857 (arm_gdbarch_init): Register above in gdbarch structure.
8858 (arm_read_fp): Renamed from arm_target_read_fp.
8859 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8860 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8861 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8862 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8863 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8864 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8865 (arm_pc_is_thumb_dummy): Delete declarations.
8866 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8867 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8868 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8869 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8870
8871 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8872
8873 * symtab.c (compare_search_syms): New function.
8874 (sort_search_symbols): New function.
8875 (search_symbols): Sort symbols after searching rather than
8876 before.
8877
8878 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8879
8880 * NEWS: Linux -> GNU/Linux.
8881
8882 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8883
8884 * gdbarch.sh: For for level one methods, disallow a definition
8885 when partially multi-arched. Add comments explaining rationale.
8886 * gdbarch.h: Re-generate.
8887
8888 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8889
8890 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8891 multi-arch partial.
8892
8893 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8894
8895 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8896 field. Use diff -u.
8897 * gdbarch.c: Re-generate.
8898
8899 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8900
8901 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8902 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8903 partial.
8904
8905 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8906
8907 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8908 multi-arch partial.
8909 (PUSH_ARGUMENTS): Switch to using predefault.
8910 * gdbarch.c: Regenerate.
8911
8912 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8913
8914 * valops.c (PUSH_ARGUMENTS): Delete definition.
8915 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8916 partial. Default to default_push_arguments.
8917 * gdbarch.h, gdbarch.c: Regenerate.
8918
8919 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8920
8921 * defs.h (throw_exception): Rename return_to_top_level. Update
8922 comments.
8923 * utils.c (error_stream, internal_verror, quit): Ditto.
8924 * top.c (throw_exception, catcher): Ditto.
8925 * sparclet-rom.c (sparclet_load): Ditto.
8926 * remote.c (interrupt_query, minitelnet): Ditto.
8927 * remote-sds.c (interrupt_query): Ditto.
8928 * remote-mips.c (mips_error, mips_kill): Ditto.
8929 * ocd.c (interrupt_query): Ditto.
8930 * monitor.c (monitor_interrupt_query): Ditto.
8931 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8932 * target.h: Update comment.
8933
8934 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8935
8936 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8937
8938 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8939 default_double_format.
8940 * gdbarch.h, gdbarch.c: Re-generate.
8941 * findvar.c (floatformat_unknown): Delete variable definition.
8942 * doublest.h (floatformat_unknown): Delete variable declaration.
8943
8944 2002-02-09 Jim Blandy <jimb@redhat.com>
8945
8946 * stabsread.c (read_type): Add code to parse Sun's syntax for
8947 prototyped function types.
8948
8949 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8950
8951 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8952 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8953
8954 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8955
8956 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8957 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8958 now _initialize_xcoffsolib gets called again and overrides the
8959 commands from solib.c in a native configuration.
8960
8961 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8962
8963 * doublest.c (store_typed_floating): Don't try to return a value.
8964 Fixes PR gdb/290.
8965
8966 2002-02-08 Jim Blandy <jimb@redhat.com>
8967
8968 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8969 is prototyped and has no arguments, print its argument list as
8970 `(void)'.
8971
8972 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8973
8974 * MAINTAINERS (write-after-approval): Add myself.
8975 (paper-trail): I've escaped!
8976
8977 2002-02-08 Christopher Faylor <cgf@redhat.com>
8978
8979 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8980 changes.
8981 (_initialize_check_for_gdb_ini): Ditto.
8982
8983 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8984
8985 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8986 xaprintf -> xasprintf.
8987
8988 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8989
8990 * win32-nat.c: Remove use of printf and sprintf functions.
8991
8992 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8993
8994 * arm-tdep.c (arm_frame_chain_valid): Make static.
8995 (arm_push_arguments): Likewise.
8996 (arm_gdbarch_init): New function.
8997 (_initialize_arm_tdep): Call it.
8998 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8999 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9000 (FRAME_CHAIN_VALID): Delete.
9001 (arm_frame_chain_valid): Delete declaration.
9002 (PUSH_ARGUMENTS): Delete.
9003 (arm_push_arguments): Delete declaration.
9004 (CALL_DUMMY_P): Delete.
9005
9006 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9007 Corinna Vinschen <vinschen@redhat.com>
9008
9009 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9010 on builtin float types.
9011
9012 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9013
9014 * utils.c: Include <curses.h> before "bfd.h".
9015 * tui/tui-hooks.c: Likewise.
9016 * tui/tui.c: Likewise.
9017 * tui/tuiCommand.c: Likewise.
9018 * tui/tuiData.c: Likewise.
9019 * tui/tuiDataWin.c: Likewise.
9020 * tui/tuiDisassem.c: Likewise.
9021 * tui/tuiGeneralWin.c: Likewise.
9022 * tui/tuiIO.c: Likewise.
9023 * tui/tuiLayout.c: Likewise.
9024 * tui/tuiRegs.c: Likewise.
9025 * tui/tuiSource.c: Likewise.
9026 * tui/tuiSourceWin.c: Likewise.
9027 * tui/tuiStack.c: Likewise.
9028 * tui/tuiWin.c: Likewise.
9029
9030 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9031
9032 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9033 to include space for pseudoregs as well. Update loops accordingly.
9034 (sh_fp_frame_init_saved_regs): Ditto.
9035 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9036
9037 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9038
9039 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9040 Add Richard Earnshaw to Arm maintainers.
9041
9042 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9043
9044 * defs.h (warning_begin): Delete declaration.
9045
9046 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9047 Delete macro.
9048
9049 2002-02-07 Michael Snyder <msnyder@redhat.com>
9050
9051 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9052 Logic bug, remove misplaced else.
9053
9054 2002-02-07 Klee Dienes <klee@apple.com>
9055
9056 * fork-inferior.c (fork_inferior): Add '!' to the list of
9057 characters that need to be quoted when building a string for the
9058 shell. Quote '!' specifically with a backslash, since CSH chokes
9059 when trying to evaluate "str!str".
9060
9061 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9062
9063 * rdi-share/host.h: Only provide a typedef for bool if it is not
9064 defined.
9065
9066 2002-02-04 Michael Snyder <msnyder@redhat.com>
9067
9068 * breakpoint.h (enum bptype): Add new overlay event bp type.
9069 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9070
9071 * breakpoint.c (create_internal_breakpoint): New function.
9072 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9073 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9074 (create_thread_event_breakpoint): Ditto.
9075 (create_solib_event_breakpoint): Ditto.
9076 (create_overlay_event_breakpoint): New function.
9077 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9078 (update_breakpoints_after_exec): Delete and re-initialize
9079 overlay event breakpoints after an exec. Add FIXME comment
9080 about longjmp breakpoint.
9081 (print_it_typical): Ignore overlay event breakpoints.
9082 (print_one_breakpoint): Ditto.
9083 (mention): Ditto.
9084 (bpstat_what): Do not stop for overlay event breakpoints.
9085 (delete_breakpoint): Don't delete overlay event breakpoints.
9086 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9087 (breakpoint_re_set): Re-create overlay event breakpoint.
9088
9089 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9090 (overlay_manual_command): Disable overlay breakpoints.
9091 (overlay_off_command): Disable overlay breakpoints.
9092
9093 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9094
9095 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9096 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9097 to here from config/tm-arm.h.
9098 (coff_sym_is_thumb): Make static.
9099 (arm_elf_make_msymbol_special): New function.
9100 (arm_coff_make_msymbol_special): New function.
9101 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9102 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9103 (coff_sym_is_thumb): Delete declaration.
9104 (arm_elf_make_msymbol_special): Declare.
9105 (arm_coff_make_msymbol_special): Declare.
9106 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9107 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9108
9109 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9110
9111 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9112
9113 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9114
9115 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9116 * gdbarch.c gdbarch.h: Regenerate.
9117 * arch-utils.c (default_print_float_info): New function.
9118 * arch-utils.h (default_print_float_info): Prototype it.
9119 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9120 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9121 (PRINT_FLOAT_INFO): Document it.
9122
9123 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9124 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9125 (PRINT_FLOAT_INFO): Define.
9126
9127 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9128
9129 * win32-nat.c (_initialize_check_for_gdb_ini):
9130 Add typecast to sprintf argument to suppress a warning.
9131
9132 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9133
9134 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9135 to allow easier handling of pass state.
9136 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9137 that gives exception name and address.
9138 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9139 and set last_sig value to ourstatus->value.sig. Some missing
9140 exceptions added.
9141 (child_continue): Correctly report continue_status.
9142 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9143 TARGET_SIGNAL_0 (new default value).
9144 (child_resume): consider sig argument passed to decide if
9145 the exception should be passed to debuggee or not.
9146
9147 2002-02-05 Michael Snyder <msnyder@redhat.com>
9148
9149 * regcache.c (fetch_register): Call target_fetch_register
9150 only if we don't call FETCH_PSEUDO_REGISTER.
9151 (store_register): Call target_store_register only if we
9152 don't call STORE_PSEUDO_REGISTER.
9153
9154 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9155
9156 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9157 ELF_MAKE_MSYMBOL_SPECIAL.
9158 * gdbarch.c, gdbarch.h: Regenerate.
9159 * arch-utils.c (default_make_msymbol_special): New function.
9160 * arch-utils.h (default_make_msymbol_special): Export.
9161 * elfread.c (elf_symtab_read): Compile use of
9162 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9163 multiarched.
9164 * coffread.c (coff_symtab_read): Ditto, for
9165 COFF_MAKE_MSYMBOL_SPECIAL.
9166
9167 2002-02-05 Jim Blandy <jimb@redhat.com>
9168
9169 * solib-svr4.c (svr4_truncate_ptr): New function.
9170 (svr4_relocate_section_addresses): Do the address arithmetic with
9171 the appropriate truncation for target addresses, even when
9172 CORE_ADDR is larger than a target address.
9173
9174 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9175
9176 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9177 to (int *).
9178
9179 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9180
9181 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9182 code.
9183
9184 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9185
9186 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9187
9188 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9189
9190 * gdbserver/linux-low.c: Remove unused include files.
9191
9192 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9193
9194 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9195 (read_inferior_memory): Use it.
9196 (write_inferior_memory): Likewise.
9197
9198 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9199
9200 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9201 grubbing through sys_errlist.
9202
9203 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9204
9205 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9206
9207 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9208 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9209
9210 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9211
9212 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9213 (do_sfunc, set_cmd_sfunc): New functions.
9214
9215 * command.h (struct cmd_list_element): Add field func.
9216 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9217 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9218 * cli/cli-decode.h: Ditto.
9219
9220 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9221 (help_all, help_cmd_list): Ditto.
9222 (find_cmd, complete_on_cmdlist): Ditto.
9223 * top.c (execute_command): Ditto.
9224
9225 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9226 function.sfunc.
9227
9228 * infcmd.c (notice_args_read): Fix function signature.
9229
9230 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9231 * cli/cli-decode.c (add_set_cmd): Ditto.
9232 * utils.c (initialize_utils): Ditto.
9233 * maint.c (_initialize_maint_cmds): Ditto.
9234 * infrun.c (_initialize_infrun): Ditto.
9235 * demangle.c (_initialize_demangler): Ditto.
9236 * remote.c (add_packet_config_cmd): Ditto.
9237 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9238 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9239 * proc-api.c (_initialize_proc_api): Ditto.
9240 * kod.c (_initialize_kod): Ditto.
9241 * valprint.c (_initialize_valprint): Ditto.
9242 * top.c (init_main): Ditto.
9243 * infcmd.c (_initialize_infcmd): Ditto.
9244 * corefile.c (_initialize_core): Ditto.
9245 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9246 * arch-utils.c (initialize_current_architecture): Ditto.
9247 (_initialize_gdbarch_utils): Ditto.
9248 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9249
9250 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9251 * wince.c (_initialize_inftarg): Ditto.
9252 * symfile.c (_initialize_symfile): Ditto.
9253 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9254 * language.c (_initialize_language): Ditto.
9255 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9256
9257 2002-02-04 Michael Snyder <msnyder@redhat.com>
9258
9259 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9260
9261 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9262
9263 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9264 Add rules for building the register data files.
9265
9266 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9267
9268 * regformats/regdat.sh: Add braces to the definition of
9269 expedite_regs_${arch}.
9270
9271 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9272
9273 * regformats/regdef.h (struct reg): Add comment describing the
9274 requirements for offset and size fields.
9275
9276 2002-02-04 Andreas Schwab <schwab@suse.de>
9277
9278 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9279 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9280
9281 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9282
9283 * gdbarch.sh (copyright): Update years in generated header.
9284 (SMASH_TEXT_ADDRESS): Add rule.
9285 * gdbarch.h, gdbarch.c: Re-generate.
9286 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9287 * dbxread.c: Likewise.
9288 * dwarfread.c: Likewise.
9289 * elfread.c: Likewise.
9290 * somread.c: Likewise.
9291
9292 * arm-tdep.c (arm_smash_text_address): New function.
9293 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9294
9295 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9296
9297 Add support for hardware watchpoints on win32 native.
9298 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9299 CONTEXT_DEBUG_REGISTERS.
9300 (dr variable): New variable. Static array containing a local copy
9301 of debug registers.
9302 (debug_registers_changed): New variable. Reflects when debug registers
9303 are changed and need to be written to inferior.
9304 (debug_registers_used): New variable. Reflects when any debug register
9305 was set, used when new threads are created.
9306 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9307 i386-nat code.
9308 (thread_rec): Set dr array if id is the thread of current_event .
9309 (child_continue, child_resume): Change the debug registers for all
9310 threads if debug_registers_changed.
9311 (child_add_thread): Change the debug registers if debug_registers_used.
9312 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9313 Link nm.h to new nm-cygwin.h file.
9314 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9315 of hardware registers.
9316
9317 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9318
9319 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9320 Restore behavour broken by 2002-01-20 Andrew Cagney
9321 <ac131313@redhat.com> IEEE_FLOAT removal.
9322
9323 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9324
9325 * c-valprint.c (c_val_print): Pass a proper valaddr to
9326 cp_print_class_method.
9327 * valops.c (search_struct_method): If there is only one method
9328 and args is NULL, return that method.
9329
9330 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9331
9332 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9333 accessing tag_name directly.
9334
9335 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9336
9337 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9338 of accessing tag_name directly.
9339
9340 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9341
9342 PR gdb/280
9343 * gdbtypes.c (replace_type): New function.
9344 * gdbtypes.h (replace_type): Add prototype.
9345 * stabsread.c (read_type): Use replace_type.
9346
9347 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9348
9349 * Makefile.in (memattr.o): Add missing dependencies rule.
9350
9351 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9352
9353 * breakpoint.c (break_at_finish_command): Really export.
9354 (break_at_finish_at_depth_command): Ditto.
9355 (tbreak_at_finish_command): Ditto.
9356 * hppa-tdep.c: Include completer.h.
9357 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9358 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9359
9360 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9361
9362 * utils.c (do_write): New function.
9363 (error_stream): Rewrite combining the code from error_begin and
9364 verror.
9365 (verror): Rewrite using error_stream.
9366 (error_begin): Delete function.
9367
9368 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9369
9370 * utils.c (error_begin): Make static.
9371 * defs.h (error_begin): Delete declaration.
9372
9373 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9374 (decode_line_1): Use cplusplus_error instead of error_begin,
9375 cplusplus_hint and return_to_top_level.
9376 * coffread.c (coff_symfile_read): Use error instead of error_begin
9377 and return_to_top_level.
9378 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9379
9380 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9381
9382 * language.h (type_error, range_error): Make string parameter
9383 constant.
9384 * language.c (warning_pre_print): Delete extern declaration.
9385 * dwarfread.c (warning_pre_print): Ditto.
9386 * language.c (type_error, range_error): Rewrite to use verror and
9387 vwarning instead of warning_begin.
9388
9389 2002-02-01 Michael Snyder <msnyder@redhat.com>
9390
9391 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9392 (set_ignore_count): Move misplaced comment back where it belongs.
9393
9394 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9395
9396 * command.h (NO_FUNCTION): Delete macro.
9397 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9398 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9399 * tracepoint.c (_initialize_tracepoint): Ditto.
9400 * cli/cli-decode.c (add_set_cmd): Ditto.
9401 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9402
9403 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9404
9405 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9406 Update ``this'' pointer when calling virtual functions.
9407
9408 2002-02-01 Michael Snyder <msnyder@redhat.com>
9409
9410 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9411 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9412
9413 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9414
9415 * regformats/reg-arm.dat: New file.
9416 * regformats/reg-i386.dat: New file.
9417 * regformats/reg-ia64.dat: New file.
9418 * regformats/reg-m68k.dat: New file.
9419 * regformats/reg-mips.dat: New file.
9420 * regformats/reg-ppc.dat: New file.
9421 * regformats/reg-sh.dat: New file.
9422 * regformats/regdef.h: New file.
9423 * regformats/regdat.sh: New file.
9424
9425 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9426
9427 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9428 (arm_frame_args_address, arm_frame_locals_address): New functions.
9429 (arm_frame_num_args): New function.
9430 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9431 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9432 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9433
9434 2002-01-31 Michael Snyder <msnyder@redhat.com>
9435
9436 * breakpoint.c (break_at_finish_command): Export.
9437 (break_at_finish_at_depth_command): Export.
9438 (tbreak_at_finish_command): Export.
9439 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9440 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9441 "tbreak" commands, which are HPPA specific.
9442
9443 * printcmd.c (disassemble_command): Remove an ancient
9444 artifact of an old merge.
9445
9446 * symfile.h (enum overlay_debugging_state):
9447 Define enum constant values for overlay mode.
9448 * symfile.c (overlay_debugging): Use enums instead of literals.
9449 (overlay_is_mapped, overlay_auto_command,
9450 overlay_manual_command): Ditto.
9451
9452 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9453 breakpoint_here_p, breakpoint_inserted_here_p,
9454 breakpoint_thread_match, bpstat_stop_status,
9455 describe_other_breakpoints, check_duplicates, clear_command):
9456 Coding standard fixes.
9457
9458 * target.c (target_xfer_memory): Add spaces, coding standard.
9459 (do_xfer_memory): Add missing line to trust-readonly
9460 code: check bfd SEC_READONLY flag for section.
9461
9462 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9463
9464 * PROBLEMS: Fix typo, 5.1->5.1.1.
9465
9466 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9467
9468 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9469 data symbols, since we search based on textlow and texthigh.
9470 (find_pc_sect_symtab): Likewise.
9471
9472 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9473
9474 * defs.h (vwarning): Declare.
9475 * utils.c (vwarning): New function.
9476 (warning): Call vwarning.
9477 (warning_begin): Delete function.
9478
9479 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9480 the warning message.
9481 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9482 warning_begin.
9483
9484 2002-01-30 Michael Snyder <msnyder@redhat.com>
9485
9486 * NEWS: Mention "set trust-readonly-sections" command.
9487 Mention generate-core-file command.
9488
9489 2002-01-15 Michael Snyder <msnyder@redhat.com>
9490
9491 * target.c: New command, "set trust-readonly-sections on".
9492 (do_xfer_memory): Honor the suggestion to trust readonly sections
9493 by reading them from the object file instead of from the target.
9494 (initialize_targets): Register command "set trust-readonly-sections".
9495
9496 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9497
9498 * parse.c (target_map_name_to_register): Simplify, search regs and
9499 pseudo-regs using a single loop.
9500
9501 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9502
9503 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9504
9505 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9506
9507 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9508 * config/i386/i386v42mp.mh: Add i387-nat.o .
9509 * i386v4-nat.c: Include i387-nat.h.
9510 (supply_fpregset): Use i387_supply_fsave.
9511 (fill_fpregset): Use i387_fill_fsave.
9512
9513 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9514
9515 * arm-tdep.c (arm_call_dummy_words): Define.
9516 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9517 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9518 (CALL_DUMMY_WORDS): Define.
9519 (arm_call_dummy_words): Declare.
9520 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9521 (arm_linux_call_dummy_words): Declare.
9522
9523 2002-01-30 Andreas Schwab <schwab@suse.de>
9524
9525 * m68klinux-nat.c: Fix last change to use regcache_collect
9526 instead of referencing registers[] directly.
9527
9528 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9529
9530 * parse.c (target_map_name_to_register): Delete code wrapped in
9531 #ifdef REGISTER_NAME_ALIAS_HOOK.
9532
9533 2002-01-28 Michael Snyder <msnyder@redhat.com>
9534
9535 * regcache.c (legacy_read_register_gen): Need to be able to
9536 read pseudo-register as well as real register.
9537 (legacy_write_register_gen): Ditto.
9538
9539 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9540
9541 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9542 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9543 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9544 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9545 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9546 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9547 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9548 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9549 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9550 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9551 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9552 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9553 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9554 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9555 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9556 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9557 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9558 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9559 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9560 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9561
9562 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9563
9564 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9565 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9566 (initialize_current_architecture): Update target_byte_order using
9567 information from BFD.
9568 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9569 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9570
9571 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9572
9573 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9574 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9575
9576 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9577 #ifdef INVALID_FLOAT.
9578 * infcmd.c (do_registers_info): Ditto.
9579 * values.c (unpack_double): Ditto. Add comment.
9580
9581 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9582 already commented out.
9583
9584 2002-01-26 Andreas Schwab <schwab@suse.de>
9585
9586 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9587 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9588 registers and add support for PTRACE_GETREGS.
9589
9590 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9591
9592 GDB 5.1.1 released from 5.1 branch.
9593 * NEWS: Add 5.1.1 news.
9594 * README: Sync with 5.1 branch.
9595
9596 2002-01-23 Fred Fish <fnf@redhat.com>
9597
9598 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9599 stabstring on initial malloc. Reallocing will copy it for us,
9600 if necessary.
9601
9602 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9603
9604 * Makefile.in (hpread_h): Delete.
9605 (HFILES_NO_SRCDIR): Remove hpread.h.
9606 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9607 (hpread.o): Update dependencies.
9608 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9609
9610 * hp-psymtab-read.c: Remove file.
9611 * hp-symtab-read.c: Remove file.
9612 * hpread.h: Remove file.
9613
9614 * hpread.c: Merge all contents of hp-psymtab-read.c,
9615 hp-symtab-read.c and hpread.h into this file, as it was prior to
9616 January 1999.
9617
9618 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9619 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9620 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9621 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9622
9623 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9624
9625 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9626 fill_gregset): Call gdbarch_tdep() just once, assign result to
9627 variable and use that, instead of calling the function several
9628 times.
9629
9630 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9631
9632 * configure.host: Accept sparcv9 as alias for sparc64.
9633 * configure.tgt: Likewise.
9634
9635 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9636
9637 * solib-aix5.c (build_so_list_from_mapfile)
9638 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9639 arguments is not reversed.
9640 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9641 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9642
9643 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9644
9645 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9646 modified version of obsolete sh_fetch_pseudo_register.
9647 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9648 (sh4_register_read): New function.
9649 (sh_pseudo_register_write): New function. Renamed and modified
9650 version of obsolete sh_store_pseudo_register.
9651 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9652 (sh4_register_write): New function.
9653 (sh_gdbarch_init): Remove setting of gdbarch function
9654 fetch_pseudo_register and store_pseudo_register. Remove setting of
9655 register_convert_to_raw, register_convert_to_virtual,
9656 register_convertible.
9657 (sh_sh4_register_convertible): Delete. No longer needed. All is
9658 taken care by architecture specific functions
9659 register_read/register_write.
9660 (sh_sh4_register_convert_to_virtual): Make static.
9661 (sh_sh4_register_convert_to_raw): Ditto.
9662
9663 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9664
9665 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9666 (floatformat_is_nan, floatformat_mantissa): Ditto.
9667
9668 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9669 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9670 builtin_type_ieee_double_little,
9671 builtin_type_ieee_double_littlebyte_bigword,
9672 builtin_type_m68881_ext, builtin_type_i960_ext,
9673 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9674 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9675 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9676 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9677
9678 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9679
9680 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9681 parameter. Set frameless flag if it exists and depended of
9682 whether the scanned function is frameless or not.
9683 (xstormy16_skip_prologue): If function is frameless, return
9684 result of xstormy16_scan_prologue().
9685 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9686 call.
9687
9688 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9689
9690 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9691 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9692 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9693 sh_sh4_register_byte, sh_sh4_register_raw_size,
9694 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9695 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9696 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9697 sh_store_pseudo_register, sh_do_pseudo_register): Call
9698 gdbarch_tdep() just once, assign result to variable and use that,
9699 instead of calling the function several times.
9700
9701 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9702
9703 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9704 macros instead of LAST_FPU_CTRL_REGNUM.
9705 (store_register): Likewise.
9706
9707 2002-01-21 Jim Blandy <jimb@redhat.com>
9708
9709 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9710 is up-to-date before running the program, not just when a program
9711 exits.
9712
9713 2002-01-21 Fred Fish <fnf@redhat.com>
9714
9715 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9716 when we have found all instructions we are looking for.
9717
9718 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9719
9720 * arm-tdep.c (arm_register_name): New function.
9721 (arm_registers_names): Make static.
9722 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9723 (arm_register_name): Declare.
9724 (REGISTER_NAME): Use it.
9725
9726 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9727 Kevin Buettner <kevinb@redhat.com>
9728
9729 Convert arm targets to new FRAME interface.
9730 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9731 (arm_frame_find_save_regs): Delete.
9732 (arm_frame_init_saved_regs): New.
9733 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9734 Allocate extra_info as required. Convert all uses of fsr.regs
9735 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9736 to use extra_info.
9737 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9738 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9739 (check_prologue_cache, save_prologue_cache): Likewise.
9740 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9741 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9742 (FRAME_FIND_SAVED_REGS): Delete.
9743 (arm_frame_find_saved_regs): Delete prototype.
9744 (arm_frame_init_saved_regs): New prototype.
9745 (FRAME_INIT_SAVED_REGS): Define.
9746
9747 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9748
9749 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9750
9751 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9752
9753 From Jeff Law <law@redhat.com>:
9754 * infttrace.c: Include <sys/pstat.h>.
9755 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9756 exec file if the ttrace equivalent fails.
9757
9758 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9759
9760 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9761 (closeLogFile): Ditto.
9762
9763 2002-01-20 Michael Chastain <mec@shout.net>
9764
9765 * top.c (print_gdb_version): Bump copyright year to 2002.
9766
9767 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9768
9769 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9770 Zannoni and Eli Zaretskii.
9771
9772 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9773
9774 * buildsym.c: Update copyright years.
9775 * c-typeprint.c: Likewise.
9776 * dwarf2read.c: Likewise.
9777 * f-typeprint.c: Likewise.
9778 * gdbtypes.c: Likewise.
9779 * gdbtypes.h: Likewise.
9780 * hp-symtab-read.c: Likewise.
9781 * hpread.c: Likewise.
9782 * mdebugread.c: Likewise.
9783 * p-typeprint.c: Likewise.
9784
9785 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9786
9787 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9788 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9789 byte-order selectable.
9790 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9791 * arch-utils.c: Ditto.
9792 (set_endian): Ditto.
9793 (set_endian_from_file): Ditto.
9794 * gdbserver/low-sim.c (create_inferior): Ditto.
9795 * gdbarch.sh: Ditto.
9796 * gdbarch.h: Re-generate.
9797 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9798 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9799 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9800 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9801 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9802 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9803 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9804 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9805 macro definition.
9806 * config/mips/tm-wince.h: Remove #undef of macro
9807 TARGET_BYTE_ORDER_SELECTABLE.
9808 * config/sh/tm-wince.h: Ditto.
9809
9810 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9811
9812 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9813 member function fields. Add accessor macro
9814 TYPE_FN_FIELD_ARTIFICIAL.
9815 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9816 * c-typeprint.c (c_type_print_base): Skip artificial member
9817 functions.
9818
9819 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9820
9821 * f-typeprint.c: Delete unused function f_type_print_args.
9822 * p-typeprint.c: Delete unused function pascal_type_print_args.
9823
9824 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9825
9826 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9827 comment. Add ``artificial'' to ``union field_location''.
9828
9829 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9830
9831 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9832 * mdebugread.c (parse_symbol): Likewise.
9833 * stabsread.c (define_symbol): Likewise.
9834 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9835 initializing TYPE_FIELD_BITPOS to n (obsolete).
9836 (hpread_doc_function_type): Likewise.
9837 * hpread.c (hpread_function_type): Likewise.
9838
9839 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9840
9841 * configure.in (host_makefile_frag): Only require a host makefile
9842 fragment when a native build.
9843 * configure: Re-generate.
9844
9845 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9846
9847 * doublest.h (floatformat_from_type): Declare.
9848 * doublest.c (floatformat_from_type): New function.
9849 (convert_typed_floating): Use.
9850
9851 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9852 call to function floatformat_from_type.
9853
9854 * gdbarch.sh (IEEE_FLOAT): Delete.
9855 * gdbarch.h, gdbarch.c: Re-generate.
9856 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9857 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9858 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9859 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9860 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9861 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9862 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9863 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9864 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9865 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9866 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9867 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9868
9869 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9870 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9871 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9872 * sh-tdep.c (sh_gdbarch_init): Ditto.
9873 * mips-tdep.c (mips_gdbarch_init): Ditto.
9874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9875 * cris-tdep.c (cris_gdbarch_init): Ditto.
9876
9877 2002-01-20 Jiri Smid <smid@suse.cz>
9878
9879 * configure.host, configure.tgt: Support x86-64.
9880 * NEWS: Note new target x86-64.
9881
9882 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9883 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9884 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9885 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9886 x86-64-linux-nat.o): Fix dependencies.
9887
9888 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9889
9890 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9891 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9892 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9893 * config/sparc/xm-sun4os4.h: Delete file.
9894 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9895
9896 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9897
9898 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9899 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9900 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9901 * config/i386/i386lynx.mh (XM_FILE): Delete.
9902 * config/rs6000/xm-rs6000ly.h: Delete file.
9903 * config/sparc/xm-sparclynx.h: Delete file.
9904 * config/m68k/xm-m68klynx.h: Delete file.
9905 * config/i386/xm-i386lynx.h: Delete file.
9906 * config/xm-lynx.h: Delete file.
9907 * config/djgpp/fnchange.lst: Update.
9908
9909 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9910
9911 * alpha-tdep.c (alpha_register_byte): New function.
9912 (alpha_register_raw_size): Ditto.
9913 (alpha_register_virtual_size): Ditto.
9914 (alpha_skip_prologue_internal): Renamed from
9915 alpha_skip_prologue.
9916 (alpha_skip_prologue): New version that calls
9917 alpha_skip_prologue_internal.
9918 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9919 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9920 second argument from alpha_skip_prologue.
9921 (REGISTER_BYTE): Use alpha_register_byte.
9922 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9923 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9924 (FRAMELESS_FUNCTION_INVOCATION): Use
9925 generic_frameless_function_invocation_not.
9926 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9927 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9928
9929 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9930
9931 * config/mips/xm-news-mips.h: Delete file.
9932 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9933
9934 * config/m88k/xm-m88k.h: Delete file.
9935 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9936 * config/m88k/xm-delta88v4.h: Ditto.
9937 * config/m88k/xm-delta88.h: Ditto.
9938
9939 * config/alpha/xm-fbsd.h: Delete file.
9940 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9941
9942 * config/sparc/xm-sparc.h: Delete file.
9943 * Makefile.in (xm-sun4os4.h): Delete dependency.
9944 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9945 * config/sparc/xm-sun4os4.h: Ditto.
9946 * config/sparc/xm-linux.h: Ditto.
9947
9948 * config/i386/xm-windows.h: Delete file.
9949
9950 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9951
9952 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9953 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9954
9955 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9956
9957 * alpha-tdep.c (alpha_call_dummy_words): New.
9958 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9959 (CALL_DUMMY_P): Define.
9960 (CALL_DUMMY_WORDS): Define.
9961 (SIZEOF_CALL_DUMMY_WORDS): Define.
9962
9963 2002-01-19 Per Bothner <per@bothner.com>
9964
9965 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9966 isn't NULL, which can happen with some gcj-3.x-produced code.
9967
9968 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9969
9970 * alpha-tdep.c (alpha_register_virtual_type): New function.
9971 (alpha_init_frame_pc_first): Ditto.
9972 (alpha_fix_call_dummy): Ditto.
9973 (alpha_store_struct_return): Ditto.
9974 (alpha_extract_struct_value_address): Ditto.
9975 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9976 alpha_register_virtual_type.
9977 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9978 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9979 alpha_extract_struct_value_address.
9980 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9981 (INIT_FRAME_PC): Use init_frame_pc_noop.
9982 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9983
9984 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9985
9986 * i386gnu-nat.c: Include "i386-tdep.h".
9987 (fetch_fpregs): Simplify code dealing with uninitialized floating
9988 point states such that it doesn't require FP7_REGNUM.
9989
9990 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9991
9992 * alpha-tdep.c (frame_extra_info): New.
9993 (alpha_find_saved_regs): Make static. Use
9994 frame->extra_info.
9995 (alpha_frame_init_saved_regs): New function.
9996 (alpha_frame_saved_pc): Use frame->extra_info.
9997 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9998 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9999 (init_extra_frame_info): Rename to...
10000 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10001 (alpha_print_extra_frame_info): New function.
10002 (alpha_frame_locals_address): Ditto.
10003 (alpha_frame_args_address): Ditto.
10004 (alpha_pop_frame): Use frame->extra_info.
10005 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10006 alpha_frame_args_address.
10007 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10008 (alpha_find_saved_regs): Remove prototype.
10009 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10010 (EXTRA_FRAME_INFO): Remove.
10011 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10012 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10013
10014 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10015
10016 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10017 (alpha_cannot_fetch_register): Ditto.
10018 (alpha_cannot_store_register): Ditto.
10019 (alpha_register_convertible): Ditto.
10020 (alpha_use_struct_convention): Ditto.
10021 * config/alpha/tm-alpha.h: Update copyright years.
10022 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10023 (INNER_THAN): Use core_addr_lessthan.
10024 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10025 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10026 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10027 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10028 (FRAME_CHAIN): Remove unnecessary cast.
10029
10030 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10031
10032 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10033 obsolete.
10034
10035 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10036
10037 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10038 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10039 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10040 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10041 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10042 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10043 * x86-64-linux-nat.c: Ditto.
10044
10045 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10046
10047 * alpha-tdep.c (alpha_register_name): New function.
10048 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10049 (REGISTER_NAME): Define.
10050
10051 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10052
10053 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10054
10055 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10056
10057 * alpha-tdep.c: Update copyright years.
10058 (alpha_next_pc): New function.
10059 (alpha_software_single_step): Ditto.
10060 * config/alpha/tm-alpha.h: Add prototype for
10061 alpha_software_single_step.
10062
10063 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10064
10065 * alphabsd-nat.c: Update copyright years.
10066 (fill_gregset): Use regcache_collect.
10067 (fill_fpregset): Likewise.
10068 (fetch_inferior_registers): Only fetch integer registers
10069 if requested to do so.
10070 (store_inferior_registers): Only store integer registers
10071 if requested to do so.
10072
10073 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10074
10075 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10076 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10077 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10078 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10079 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10080 * config/arm/linux.mh (XDEPFILES): Delete.
10081 * config/arm/nbsd.mh (XDEPFILES): Delete.
10082 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10083 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10084 * config/i386/i386m3.mh (XDEPFILES): Delete.
10085 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10086 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10087 * config/i386/fbsd.mh (XDEPFILES): Delete.
10088 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10089 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10090 * config/i386/i386v4.mh (XDEPFILES): Delete.
10091 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10092 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10093 * config/i386/i386aix.mh (XDEPFILES): Delete.
10094 * config/i386/go32.mh (XDEPFILES): Delete.
10095 * config/i386/cygwin.mh (XDEPFILES): Delete.
10096 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10097 * config/i386/i386mach.mh (XDEPFILES): Delete.
10098 * config/i386/i386v32.mh (XDEPFILES): Delete.
10099 * config/i386/linux.mh (XDEPFILES): Delete.
10100 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10101 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10102 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10103 * config/i386/i386sco.mh (XDEPFILES): Delete.
10104 * config/i386/i386v.mh (XDEPFILES): Delete.
10105 * config/i386/nbsd.mh (XDEPFILES): Delete.
10106 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10107 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10108 * config/i386/symmetry.mh (XDEPFILES): Delete.
10109 * config/i386/obsd.mh (XDEPFILES): Delete.
10110 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10111 * config/ia64/linux.mh (XDEPFILES): Delete.
10112 * config/ia64/aix.mh (XDEPFILES): Delete.
10113 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10114 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10115 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10116 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10117 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10118 * config/m68k/linux.mh (XDEPFILES): Delete.
10119 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10120 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10121 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10122 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10123 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10124 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10125 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10126 * config/m88k/delta88.mh (XDEPFILES): Delete.
10127 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10128 * config/m88k/m88k.mh (XDEPFILES): Delete.
10129 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10130 * config/mips/linux.mh (XDEPFILES): Delete.
10131 * config/mips/irix6.mh (XDEPFILES): Delete.
10132 * config/mips/irix5.mh (XDEPFILES): Delete.
10133 * config/mips/irix4.mh (XDEPFILES): Delete.
10134 * config/mips/irix3.mh (XDEPFILES): Delete.
10135 * config/mips/decstation.mh (XDEPFILES): Delete.
10136 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10137 (NATDEPFILES): Move core-aout.o to here.
10138 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10139 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10140 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10141 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10142 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10143 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10144 * config/pa/hpux11.mh (XDEPFILES): Delete.
10145 * config/powerpc/aix.mh (XDEPFILES): Delete.
10146 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10147 * config/powerpc/linux.mh (XDEPFILES): Delete.
10148 * config/romp/rtbsd.mh: Rename XDEPFILES.
10149 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10150 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10151 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10152 * config/s390/s390.mh (XDEPFILES): Delete.
10153 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10154 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10155 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10156 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10157 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10158 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10159 * config/sparc/linux.mh (XDEPFILES): Delete.
10160 * config/vax/vaxult.mh (XDEPFILES): Delete.
10161 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10162 * Makefile.in (DEPFILES): Remove XDEPFILES.
10163
10164 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10165
10166 * utils.c (internal_verror): Fix comments, default is yes not no.
10167 Update queries to match. Default to quit and dump core.
10168
10169 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10170
10171 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10172 copyright.
10173 * defs.h, event-top.c, gdbcmd.h: Ditto.
10174 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10175 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10176 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10177 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10178 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10179 * mi/mi-main.c:Ditto.
10180
10181 * stack.c, symfile.c: Update copyright.
10182
10183 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10184
10185 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10186 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10187 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10188 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10189
10190 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10191
10192 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10193 * gdbserver/low-lynx.c (myattach): Likewise.
10194 * gdbserver/low-nbsd.c (myattach): Likewise.
10195 * gdbserver/low-sim.c (myattach): Likewise.
10196 * gdbserver/low-sparc.c (myattach): Likewise.
10197 * gdbserver/low-sun3.c (myattach): Likewise.
10198
10199 * gdbserver/low-linux.c (myattach): New function.
10200
10201 * gdbserver/server.c (attach_inferior): New function.
10202 (main): Handle "--attach".
10203
10204 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10205
10206 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10207 maintainer.
10208
10209 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10210
10211 * c-typeprint.c (is_type_conversion_operator): Add additional
10212 check for non-conversion operators.
10213
10214 2002-01-15 Michael Snyder <msnyder@redhat.com>
10215
10216 * linux-proc.c: Add "info proc" command, a la procfs.c.
10217 (read_mapping): New function, abstract and re-use code.
10218 (linux_find_memory_regions): Use new func read_mapping.
10219 (linux_info_proc_cmd): New function, implement "info proc".
10220 (_initialize_linux_proc): Add new command "info proc".
10221
10222 2002-01-15 Michael Snyder <msnyder@redhat.com>
10223
10224 * symfile.c (generic_load): Use bfd_map_over_sections method
10225 instead of manipulating bfd structure members directly.
10226 (add_section_size_callback): New function, bfd sections callback
10227 used by generic_load.
10228 (load_sections_callback): New function, bfd sections callback
10229 used by generic_load.
10230
10231 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10232
10233 [Based on work by Jim Blandy]
10234 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10235 (builtin_type_vec128): Export.
10236 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10237 types.
10238 (builtin_type_vec128): New builtin type for 128 bit vector
10239 registers.
10240 (build_gdbtypes): Initialize builtin_type_v16qi and
10241 builtin_type_v8hi. Create the vec128 register builtin type
10242 structure.
10243 (build_builtin_type_vec128): New function.
10244 (_initialize_gdbtypes): Register builtin_type_v16qi and
10245 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10246 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10247 AltiVec register to new builtin type.
10248
10249 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10250
10251 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10252 to make_cv_type.
10253
10254 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10255
10256 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10257 CLEAN_UP_REGISTER_VALUE.
10258 * regcache.c (supply_register): Update only call.
10259
10260 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10261
10262 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10263 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10264 a29k-*-vxworks* targets as obsolete.
10265
10266 2002-01-14 Michael Snyder <msnyder@redhat.com>
10267
10268 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10269 until we can resolve portability issues.
10270 * gregset.h: Remove references to fpxregs.
10271 * gcore.c (gcore_command): Initialize note_sec to NULL.
10272
10273 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10274
10275 * signals.c (target_signal_to_name): Rewrite. Only use
10276 signals[].name when in bounds and non-NULL.
10277
10278 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10279
10280 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10281 * signals.c (target_signal_to_name): Verify that SIG is within the
10282 bounds of the signals array.
10283
10284 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10285
10286 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10287
10288 2002-01-13 Keith Seitz <keiths@redhat.com>
10289
10290 * stack.c (print_frame_info_base): Print the frame's pc
10291 only if when print_frame_info_listing_hook is not defined.
10292
10293 2002-01-13 Keith Seitz <keiths@redhat.com>
10294
10295 * varobj.c (varobj_set_value): Make sure that there were no
10296 errors evaluating the object before attempting to set its
10297 value.
10298 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10299 so this offset adjustment is no longer necessary.
10300 (create_child): Don't set the error flag if the child is
10301 a CPLUS_FAKE_CHILD.
10302 (value_of_child): If value_fetch_lazy fails, return NULL
10303 so that callers will be notified that an error occurred.
10304 (c_value_of_variable): Delay check of variable's validity
10305 until later. We actually want all structs and unions to have
10306 the value "{...}".
10307 Do not return "???" for variables which could not be evaluated.
10308 This error condition must be returned to the caller so that it
10309 can get the error condition from gdb.
10310 (cplus_name_of_child): Adjust index for vptr before figuring
10311 out the name of the child.
10312 (cplus_value_of_child): If a child's (real) parent is not valid,
10313 don't even bother trying to give a value for it. Just return
10314 an error. Change all instances in this function.
10315 (cplus_type_of_child): If our parent is one of the "fake"
10316 parents, we need to get at the type of the real parent, and
10317 derive the child's true type using this information.
10318
10319 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10320
10321 From 2002-01-09 John Marshall <johnm@falch.net>:
10322 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10323 sources.redhat.com, and tweak some related URLs which had
10324 suffered from linkrot.
10325
10326 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10327
10328 From Jeff law:
10329 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10330 structures passed in registers.
10331
10332 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10333
10334 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10335 white space which prevented compilation. Reported by DSK
10336 <dsk@student.unsw.edu.au>.
10337
10338 2002-01-11 Michael Snyder <msnyder@redhat.com>
10339
10340 * symfile.c (build_section_addr_info_from_section_tab):
10341 Use bfd access method instead of manipulating bfd directly.
10342 (syms_from_objfile): Ditto.
10343 (simple_overlay_update_1): Ditto.
10344 (simple_overlay_update): Ditto.
10345 (generic_load): Ditto.
10346 (overlay_unmapped_address): FIXME comment, bfd access methods.
10347 (sections_overlap): FIXME comment, bfd access methods.
10348 (pc_in_mapped_range): FIXME comment, bfd access methods.
10349 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10350 (section_is_mapped): FIXME comment, bfd access methods.
10351 (section_is_overlay): FIXME comment, bfd access methods.
10352
10353 * symfile.c (generic_load): Whitespace and long line cleanups.
10354 Remove duplicate variable, change several local variables to
10355 more appropriate data types.
10356 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10357
10358 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10359
10360 From Peter Schauer:
10361 * language.c (longest_local_hex_string_custom): Use phex_nz to
10362 convert NUM to a hex string.
10363
10364 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10365
10366 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10367 the function.
10368 Update Copyright year.
10369
10370 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10371
10372 * language.c (longest_raw_hex_string): Delete unused function.
10373
10374 2002-01-11 Petr Sorfa <petrs@caldera.com>
10375
10376 * MAINTAINERS (write-after-approval): Add myself.
10377 * dwarf2read.c (read_tag_string_type): Handling of
10378 DW_AT_byte_size.
10379 (read_tag_string_type): FORTRAN fix to prevent propagation of
10380 first string size.
10381 (set_cu_language): Handling of DW_LANG_Fortran95
10382
10383 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10384
10385 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10386 GETPID(inferior_ptid).
10387 (store_inferior_registers): Likewise.
10388
10389 2002-01-10 Jason Merrill <jason@redhat.com>
10390
10391 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10392 Fix DW_OP_minus.
10393
10394 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10395
10396 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10397 and bfd/elf32-sh-nbsd.c.
10398
10399 2002-01-10 Michael Snyder <msnyder@redhat.com>
10400
10401 * NEWS: Mention --pid and corefile/proc-id behavior change.
10402
10403 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10404 * gcore.c: Include cli/cli-decode.h instead of command.h.
10405
10406 * main.c (captured_main): Add new command line option "--pid".
10407 If the second command line argument (following the symbol-file)
10408 begins with a digit, try to attach to it before trying to open
10409 it as a corefile.
10410 (print_gdb_help): Document the "--pid" argument.
10411
10412 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10413
10414 * completer.c (command_completer): New function.
10415
10416 * completer.h <command_completer>: Add prototype.
10417
10418 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10419 completer for the "help" command.
10420
10421 2002-01-09 Jason Merrill <jason@redhat.com>
10422
10423 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10424
10425 2002-01-09 Michael Snyder <msnyder@redhat.com>
10426
10427 * i386-linux-nat.c (fill_fpxregset): Make global.
10428 (store_fpxregset): Ditto.
10429
10430 * gregset.h (gdb_fpxregset_t): Define.
10431 (supply_fpxregset): Prototype.
10432 (fill_fpxregset): Prototype.
10433
10434 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10435
10436 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10437
10438 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10439 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10440 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10441
10442 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10443
10444 * MAINTAINERS: Update target maintainer rules so that any
10445 Maintainer can approve a tested patch for a maintenance-only
10446 target.
10447
10448 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10449
10450 * MAINTAINERS (write-after-approval): Add myself.
10451
10452 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10453 IN_SIGTRAMP.
10454
10455 2002-01-08 Michael Snyder <msnyder@redhat.com>
10456
10457 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10458 real name of the executable, rather than the /proc name.
10459
10460 2002-01-03 Michael Snyder <msnyder@redhat.com>
10461
10462 Implement a "generate-core-file" command in gdb, save target state.
10463 * gcore.c: New file. Implement new command 'generate-core-file'.
10464 Save a corefile image of the current state of the inferior.
10465 * linux-proc.c: Add linux-specific code for saving corefiles.
10466 * target.h (struct target_ops): Add new target vectors for saving
10467 corefiles; to_find_memory_regions and to_make_corefile_notes.
10468 (target_find_memory_regions): New macro.
10469 (target_make_corefile_notes): New macro.
10470 * target.c (update_current_target): Inherit new target methods.
10471 (dummy_find_memory_regions): New place-holder method.
10472 (dummy_make_corefile_notes): New place-holder method.
10473 (init_dummy_target): Initialize new dummy target vectors.
10474 * exec.c (exec_set_find_memory_regions): New function.
10475 Allow the exec_ops vector for memory regions to be taken over.
10476 (exec_make_note_section): New function, target vector method.
10477 * defs.h (exec_set_find_memory_regions): Export prototype.
10478 * procfs.c (proc_find_memory_regions): New function, corefile method.
10479 (procfs_make_note_section): New function, corefile method.
10480 (init_procfs_ops): Set new target vector pointers.
10481 (find_memory_regions_callback): New function.
10482 (procfs_do_thread_registers): New function.
10483 (procfs_corefile_thread_callback): New function.
10484 * sol-thread.c (sol_find_memory_regions): New function.
10485 (sol_make_note_section): New function.
10486 (init_sol_thread_ops): Initialize new target vectors.
10487 * inftarg.c (inftarg_set_find_memory_regions): New function.
10488 Allow to_find_memory_regions vector to be taken over.
10489 (inftarg_set_make_corefile_notes): New function.
10490 Allow to_make_corefile_notes vector to be taken over.
10491 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10492 interface layer if not target_has_execution (may be a corefile).
10493 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10494 * config/sparc/sun4sol2.mh: Ditto.
10495 * config/alpha/alpha-linux.mh: Ditto.
10496 * config/arm/linux.mh: Ditto.
10497 * config/i386/x86-64linux.mh: Ditto.
10498 * config/ia64/linux.mh: Ditto.
10499 * config/m68k/linux.mh: Ditto.
10500 * config/mips/linux.mh: Ditto.
10501 * config/powerpc/linux.mh: Ditto.
10502 * config/sparc/linux.mh: Ditto.
10503
10504 2002-01-07 Michael Snyder <msnyder@redhat.com>
10505
10506 * arm-linux-nat.c: Remove references to regcache.c internal data
10507 (registers[] and register_valid[]).
10508
10509 2002-01-07 Michael Snyder <msnyder@redhat.com>
10510
10511 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10512 so that attaching to a pid will automatically read the process's
10513 symbol file and shlibs.
10514 * Makefile.in: Add rule for linux-proc.o.
10515 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10516 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10517 * config/arm/linux.mh: Ditto.
10518 * config/i386/linux.mh: Ditto.
10519 * config/i386/x86-64linux.mh: Ditto.
10520 * config/ia64/linux.mh: Ditto.
10521 * config/m68k/linux.mh: Ditto.
10522 * config/mips/linux.mh: Ditto.
10523 * config/powerpc/linux.mh: Ditto.
10524 * config/sparc/linux.mh: Ditto.
10525
10526 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10527
10528 * win32-nat.c: Add i386-tdep.h dependency.
10529
10530 2002-01-07 Michael Snyder <msnyder@redhat.com>
10531
10532 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10533 instead of bfd_get_arch_size. Don't bail out just because
10534 there's no exec_bfd.
10535
10536 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10537 * p-valprint.c (pascal_object_print_value): Ditto.
10538 * somread.c (som_symtab_read): Ditto.
10539 * symfile.c (simple_free_overlay_region_table): Ditto.
10540 * valops.c (value_assign): Ditto.
10541
10542 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10543 use tilde_expand and strerror for opening save-tracepoints file.
10544
10545 * thread-db.c (thread_db_new_objfile): Indendation fix.
10546
10547 * infptrace.c (GDB_MAX_ALLOCA): New define.
10548 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10549 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10550 can be overridden with whatever value is appropriate to the host).
10551 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10552 alloca to allocate potentially large buffer.
10553 * rs6000-nat.c (child_xfer_memory): Ditto.
10554 * symm-nat.c (child_xfer_memory): Ditto.
10555 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10556
10557 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10558
10559 From Nick Clifton <nickc@redhat.com>
10560 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10561
10562 2002-01-07 Michael Snyder <msnyder@redhat.com>
10563
10564 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10565 Don't use exec_bfd if it's NULL.
10566
10567 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10568
10569 * valops.c (value_arg_coerce): Fix formatting.
10570
10571 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10572
10573 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10574 * gnu-nat.c: Ditto.
10575
10576 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10577
10578 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10579 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10580 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10581 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10582 z8k-coff have not been multi-arched. Update z8k-coff build
10583 status.
10584
10585 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10586
10587 * MAINTAINERS: Mark a29k target as obsolete.
10588 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10589 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10590 comments.
10591 * NEWS: Note that a29k targets are obsolete.
10592 * a29k-tdep.c: Mark as obsolete.
10593 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10594 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10595 a29k-*-vxworks* targets as obsolete.
10596 * remote-adapt.c: Obsolete.
10597 * remote-eb.c: Obsolete.
10598 * remote-mm.c: Obsolete.
10599 * remote-udi.c: Obsolete.
10600 * config/a29k/a29k-udi.mt: Obsolete.
10601 * config/a29k/a29k.mt: Obsolete.
10602 * config/a29k/tm-a29k.h: Obsolete.
10603 * config/a29k/tm-vx29k.h: Obsolete.
10604 * config/a29k/vx29k.mt: Obsolete.
10605
10606 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10607
10608 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10609 with BFD_ENDIAN_BIG.
10610
10611 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10612
10613 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10614 * configure, config.in: Re-generate.
10615 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10616 * defs.h: Do not include <endian.h>.
10617
10618 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10619
10620 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10621 * config.in: Regenerate.
10622 * configure.in: Update copyright years.
10623 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10624 * configure: Regenerate.
10625 * i386bsd-nat.c: Update copyright years.
10626 (fill_gregset): Use regcache_collect.
10627 (fetch_inferior_registers): Only fetch integer registers
10628 if requested to do so. Add support for XMM registers
10629 using PT_GETXMMREGS.
10630 (store_inferior_registers): Only store integer registers
10631 if requested to do so. Add support for XMM registers
10632 using PT_SETXMMREGS.
10633 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10634 (store_inferior_registers): Remove.
10635 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10636 (fetch_elfcore_registers): New function.
10637 (i386nbsd_elfcore_fns): New.
10638 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10639 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10640 i386bsd-nat.o.
10641 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10642 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10643 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10644 * config/i386/tm-nbsd.h: Update copyright years.
10645 (HAVE_SSE_REGS): Define.
10646 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10647 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10648 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10649 (SIGCONTEXT_PC_OFFSET): Remove.
10650 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10651
10652 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10653
10654 * configure.tgt: Remove powerpc-*-macos* target.
10655 * config/m68k/xm-mpw.h: Delete file.
10656 * config/xm-mpw.h: Delete file.
10657 * ser-mac.c: Delete file.
10658 * mpw-make.sed: Delete file.
10659 * mpw-config.in: Delete file.
10660 * mac-xdep.c: Delete file.
10661 * mac-gdb.r: Delete file.
10662 * mac-defs.h: Delete file.
10663 * mac-nat.c: Delete file.
10664 * config/powerpc/macos.mh: Delete file.
10665 * config/powerpc/macos.mt: Delete file.
10666 * config/powerpc/nm-macos.h: Delete file.
10667 * config/powerpc/tm-macos.h: Delete file.
10668 * source.c (openp, open_source_file): Remove obsolete code.
10669 * top.c (gdb_readline): Ditto.
10670 * utils.c (query): Ditto.
10671 * event-top.c (display_gdb_prompt): Ditto.
10672 * Makefile.in (ser-mac.o): Delete obsolete target.
10673 * NEWS: Update.
10674
10675 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10676
10677 * defs.h (BIG_ENDIAN): Delete macro definition.
10678 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10679 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10680 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10681 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10682 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10683 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10684 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10685 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10686 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10687 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10688 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10689 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10690 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10691 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10692 * gdbarch.c: Re-generate.
10693
10694 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10697 for core files.
10698
10699 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10700
10701 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10702
10703 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10704
10705 * value.h (value_ptr): Delete typedef.
10706
10707 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10708
10709 * i386nbsd-nat.c: Update copyright years.
10710 Include i386-tdep.h.
10711
10712 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10713
10714 * stabsread.c: Update copyright years.
10715
10716 From Debashis Mahata <debashis.mahata@wipro.com>:
10717 (read_struct_fields): Deal with Sun C compiler erroneous stab
10718 output for structs and unions.
10719 Fix PR gdb/269.
10720
10721 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10722
10723 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10724 prototype.
10725
10726 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10727
10728 * cp-abi.c: Fix whitespace.
10729 (baseclass_offset): New wrapper function.
10730 * cp-abi.h (baseclass_offset): Add prototype.
10731 (struct cp_abi_ops): Add baseclass_offset pointer.
10732
10733 * valops.c (vb_match): Move to...
10734 * gnu-v2-abi.c (vb_match): here.
10735 * valops.c (baseclass_offset): Move to...
10736 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10737
10738 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10739
10740 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10741 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10742 * hpacc-abi.c (init_hpacc_ops): Likewise.
10743
10744 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10745
10746 * valops.c (find_overload_match): Accept obj as a
10747 reference parameter. Update it before returning.
10748 * value.h (find_overload_match): Update prototype.
10749 * eval.c (evaluate_subexp_standard): Pass object to
10750 find_overload_match by reference.
10751
10752 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10753
10754 * valarith.c: Replace value_ptr with struct value pointer. Remove
10755 register attribute from value declarations.
10756 * valops.c: Ditto.
10757 * value.h: Ditto.
10758 * scm-lang.c (scm_lookup_name): Ditto.
10759
10760 2002-01-03 Michael Snyder <msnyder@redhat.com>
10761
10762 Abstract the functionality of iterating over mapped memory
10763 regions into a general purpose iterator function.
10764 * procfs.c (iterate_over_mappings): New function, general purpose
10765 iterator for memory sections.
10766 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10767 (solib_mappings_callback): New function, callback for above.
10768 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10769 (info_mappings_callback): New function, callback for above.
10770
10771 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10772
10773 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10774
10775 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10776 * i386-tdep.c: Include "elf-bfd.h".
10777 (process_note_abi_tag_sections): New function.
10778 (i386_gdbarch_init): Add code to recognize various OS/ABI
10779 combinations.
10780
10781 * maint.c (_initialize_maint_cmds): Add missing \ in
10782 string-literal.
10783
10784 For older changes see ChangeLog-2001
10785 \f
10786 Local Variables:
10787 mode: change-log
10788 left-margin: 8
10789 fill-column: 74
10790 version-control: never
10791 End:
This page took 0.285983 seconds and 5 git commands to generate.