2002-09-05 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2
3 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4 * README: Update.
5
6 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
7
8 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
9 if arm_apcs_32 is false.
10
11 2002-09-04 Andrew Cagney <ac131313@redhat.com>
12
13 GDB 5.3 branch created.
14
15 2002-09-03 Theodore A. Roth <troth@verinet.com>
16
17 * gdb/avr-tdep.c (avr_gdbarch_init): Use
18 generic_unwind_get_saved_register.
19
20 2002-09-03 David Carlton <carlton@math.stanford.edu>
21
22 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
23 argument (PR gdb/653). Update call to smash_to_method_type.
24 (read_structure_scope): Update call to dwarf2_add_member_fn.
25
26 2002-09-03 Michal Ludvig <mludvig@suse.cz>
27
28 * x86-64-linux-tdep.c: Include gdb_string.h
29 * x86-64-linux-nat.c: Ditto.
30
31 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
32
33 * ada-exp.y (yyname, yyrule): Remap global variables that appear
34 when YYDEBUG is set to 1.
35 * c-exp.y: Likewise.
36 * f-exp.y: Likewise.
37 * jv-exp.y: Likewise.
38 * m2-exp.y: Likewise.
39 * p-exp.y: Likewise.
40
41 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
42
43 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
44 dependency list.
45 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
46 solib_svr4_fetch_link_map_offsets to
47 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
48 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
49 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
50 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
51 solib-svr4.o, and solib-legacy.o.
52 * config/i386/tm-nbsd.h: Include solib.h.
53
54 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
55
56 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
57 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
58 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
59 comment noting that this needs its own target configuration.
60 * config/i386/nbsd.mt: New file.
61 * config/i386/nbsdaout.mt: Remove.
62 * config/i386/nbsdelf.mt: Ditto.
63 * config/i386/tm-nbsdaout.h: Ditto.
64
65 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
66
67 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
68 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
69 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
70 tdep->sigtramp_end.
71 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
72 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
73 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
74
75 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
76
77 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
78 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
79 * i386-tdep.h (i386bsd_init_abi): New prototype.
80 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
81 function declaration.
82 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
83 for NetBSD-a.out or NetBSD-ELF.
84 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
85 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
86 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
87 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
88 and nbsd-tdep.h.
89 (i386nbsd_pc_in_sigtramp): New function.
90 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
91 i386nbsd_pc_in_sigtramp.
92 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
93 and i386nbsdelf_init_abi OS ABI handlers.
94 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
95 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
96
97 2002-09-02 Mark Kettenis <kettenis@gnu.org>
98
99 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
100 registers if the target really has them.
101
102 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
103
104 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
105 than nbsd-tdep.h.
106
107 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
108
109 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
110 list.
111 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
112 (alphanbsd_skip_sigtramp_frame): New functions.
113 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
114 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
115 to alphanbsd_sigcontext_addr.
116
117 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
118
119 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
120 list.
121 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
122 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
123 nbsd_pc_in_sigtramp.
124 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
125 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
126 * nbsd-tdep.c: Include gdb_string.h.
127 (nbsd_pc_in_sigtramp): New function.
128 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
129 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
130 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
131 ppcnbsd_pc_in_sigtramp.
132 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
133 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
134 shnbsd_pc_in_sigtramp.
135 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
136 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
137 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
138
139 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
140
141 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
142 watchpoints to NULL.
143 (insert_breakpoints): set val field of watchpoints if NULL.
144
145
146 2002-08-29 Jim Blandy <jimb@redhat.com>
147
148 * symtab.c (lookup_symbol_aux): In the cases where we find a
149 minimal symbol of an appropriate name and use its address to
150 select a symtab to read and search, use `name' (as passed to us)
151 as the demangled name when searching the symtab's global and
152 static blocks, not the minsym's name.
153
154 2002-08-29 Keith Seitz <keiths@redhat.com>
155
156 * stack.c (print_frame_info_base): Always set current_source_symtab
157 and current_source_line.
158
159 2002-08-29 Donn Terry <donnte@microsoft.com>
160
161 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
162
163 2002-08-28 Keith Seitz <keiths@redhat.com>
164
165 * stack.c (select_frame): Add FIXME concerning selected-frame
166 events.
167 (select_frame_command): Send selected-frame-level-changed
168 event notification, but only if the level actually changed.
169 (up_silently_base): Add selected-frame-level-changed event
170 notification.
171 (down_silently_base): Likewise.
172
173 2002-08-28 Andrew Cagney <ac131313@redhat.com>
174
175 * Makefile.in: Update dependencies for all gdb/*.c files.
176
177 2002-08-27 Tom Tromey <tromey@redhat.com>
178
179 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
180 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
181 Update dependencies.
182 * i387-tdep.c: Include gdb_string.h.
183 * osabi.c: Likewise.
184 * i386-linux-nat.c: Likewise.
185 * lin-lwp.c: Likewise.
186 * ax-gdb.c: Likewise.
187 * signals/signals.c: Likewise.
188 * jv-valprint.c: Likewise.
189 * p-lang.c: Likewise.
190 * c-valprint.c: Likewise.
191 * cp-abi.c: Likewise.
192
193 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
194
195 * cli/cli-script.h (copy_command_lines): Export.
196 * breakpoint.c: Include cli/cli-script.h.
197 * Makefile.in (breakpoint.o): Update dependencies.
198
199 2002-08-26 Michael Snyder <msnyder@redhat.com>
200
201 * breakpoint.c (insert_breakpoints): Protect all references
202 to 'process_warning'. Shorten long lines.
203
204 2002-08-26 Joel Brobecker <brobecker@gnat.com>
205
206 * cli/cli-script.c (copy_command_lines): New function.
207 * defs.h (copy_command_lines): Export.
208 * testsuite/gdb.base/commands.exp: New tests for commands
209 attached to a temporary breakpoint, and for commands that
210 delete the breakpoint they are attached to.
211
212 2002-08-26 Michael Snyder <msnyder@redhat.com>
213
214 * breakpoint.c (bpstat_stop_status): Instead of copying the
215 pointer to the breakpoint commands struct, make a new copy
216 of the struct and point to that.
217 (bpstat_clear): Free the commands struct.
218 (bpstat_clear_actions): Free the commands struct.
219 (bpstat_do_actions): Free the command actions. Also execute
220 the local cleanups, instead of deleting them.
221 (delete_breakpoint): Leave the commands field of the bpstat
222 chain alone -- it will be freed later.
223
224 2002-08-26 Kevin Buettner <kevinb@redhat.com>
225
226 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
227 deleted in 2002-08-20 commit. This function is still used by
228 ppc-linux-nat.c.
229
230 2002-08-26 Keith Seitz <keiths@redhat.com>
231
232 * gdb-events.sh: Add selected-frame-level-changed event.
233 * gdb-events.c: Regenerated.
234 * gdb-events.h: Regenerated.
235
236 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
237
238 Fix PR gdb/393:
239 * inflow.c (terminal_save_ours): New function to save terminal
240 settings.
241 * inferior.h (terminal_save_ours): Declare.
242 * target.c (debug_to_terminal_save_ours): New function.
243 (cleanup_target): Defaults to_terminal_save_ours.
244 (update_current_target): Inherit to_terminal_save_ours.
245 (setup_target_debug): Set to_terminal_save_ours.
246 * target.h (target_terminal_save_ours): New to save terminal settings.
247 (target_ops): New member to_terminal_save_ours.
248 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
249 * hpux-thread.c (init_hpux_thread_ops): Likewise.
250 * inftarg.c (init_child_ops): Likewise.
251 * m3-nat.c (init_m3_ops): Likewise.
252 * procfs.c (init_procfs_ops): Likewise.
253 * wince.c (init_child_ops): Likewise.
254 * win32-nat.c (init_child_ops): Likewise.
255 * sol-thread.c (init_sol_thread_ops): Likewise.
256
257 2002-08-26 Mark Kettenis <kettenis@gnu.org>
258
259 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
260 use regcache_* functions.
261 (i386_gdbarch_init): Set store_return_value instead of
262 deprecated_store_return_value.
263
264 * regcache.c (regcache_raw_write_signed,
265 regcache_raw_write_unsigned): New functions.
266 * regcache.h (regcache_raw_write_signed,
267 regcache_raw_write_unsigned): New prototypes.
268
269 2002-08-25 Andrew Cagney <ac131313@redhat.com>
270
271 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
272 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
273 source file dependencies. Cleanup corresponding generator rules.
274
275 2002-08-25 Andrew Cagney <ac131313@redhat.com>
276
277 * regcache.h (register_offset_hack): Declare.
278 (regcache_cooked_read_using_offset_hack): Declare.
279 (regcache_cooked_write_using_offset_hack): Declare.
280
281 * regcache.c (register_offset_hack): New function.
282 (regcache_cooked_read_using_offset_hack): New function.
283 (regcache_cooked_write_using_offset_hack): New function.
284 (regcache_dump): Check that the registers, according to their
285 offset, are packed hard against each other.
286 (cooked_xfer_using_offset_hack): New function.
287
288 2002-08-25 Andrew Cagney <ac131313@redhat.com>
289
290 * regcache.c (struct regcache_descr): Add field register_type.
291 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
292 in as a parameter
293 (init_regcache_descr): Initialize register_type. Pass the descr
294 to init_legacy_regcache_descr. Use register_type instead of
295 REGISTER_VIRTUAL_TYPE.
296 (register_type): New function.
297 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
298 * regcache.h (register_type): Declare.
299
300 2002-08-25 Andrew Cagney <ac131313@redhat.com>
301
302 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
303 instead of deprecated_store_return_value. Fix fallout from
304 2002-08-23 Andrew Cagney <cagney@redhat.com>.
305
306 2002-08-25 Andrew Cagney <ac131313@redhat.com>
307
308 * regcache.c (max_register_size): New function.
309 (init_legacy_regcache_descr): Ensure that max_register_size is
310 large enough for REGISTER_VIRTUAL_SIZE.
311 * regcache.h (max_register_size): Declare.
312
313 2002-08-24 Andrew Cagney <ac131313@redhat.com>
314
315 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
316 store_return_value.
317 (e500_extract_return_value): Change type of valbuf pointer to
318 void.
319
320 2002-08-24 Mark Kettenis <kettenis@gnu.org>
321
322 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
323 workaround.
324
325 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
326 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
327 long long) to prevent compiler warning on 64-bit systems.
328
329 2002-08-23 Andrew Cagney <cagney@redhat.com>
330
331 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
332 (DEPRECATED_STORE_RETURN_VALUE): New method.
333 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
334 * gdbarch.h, gdbarch.c: Re-generate.
335
336 * values.c (set_return_value): Pass current_regcache to
337 STORE_RETURN_VALUE.
338 * arch-utils.h (legacy_store_return_value): Declare.
339 * arch-utils.c (legacy_store_return_value): New function.
340 (legacy_extract_return_value): Update parameters.
341
342 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
343 STORE_RETURN_VALUE.
344 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
345 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
346 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
347 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
348 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
349 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
350 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
351 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
352 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
353 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
354
355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
356 * i386-tdep.c (i386_extract_return_value): Update.
357 * arch-utils.c (legacy_extract_return_value): Update.
358 * frv-tdep.c (frv_gdbarch_init): Update.
359 * cris-tdep.c (cris_gdbarch_init): Update.
360 * d10v-tdep.c (d10v_gdbarch_init): Update.
361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
362 * m68k-tdep.c (m68k_gdbarch_init): Update.
363 * mcore-tdep.c (mcore_gdbarch_init): Update.
364 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
365 * s390-tdep.c (s390_gdbarch_init): Update.
366 * sparc-tdep.c (sparc_gdbarch_init): Update.
367 * sh-tdep.c (sh_gdbarch_init): Update.
368 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
369 * v850-tdep.c (v850_gdbarch_init): Update.
370 * avr-tdep.c (avr_gdbarch_init): Update.
371 * ia64-tdep.c (ia64_gdbarch_init): Update.
372 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
373 * vax-tdep.c (vax_gdbarch_init): Update.
374 * alpha-tdep.c (alpha_gdbarch_init): Update.
375 * arm-tdep.c (arm_gdbarch_init): Update.
376 * mips-tdep.c (mips_gdbarch_init): Update.
377 * i386-tdep.c (i386_gdbarch_init): Update.
378
379 2002-08-23 Andrew Cagney <ac131313@redhat.com>
380
381 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
382 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
383
384 2002-08-24 Mark Kettenis <kettenis@gnu.org>
385
386 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
387 problems.
388
389 2002-08-23 Joel Brobecker <brobecker@gnat.com>
390
391 * infrun.c (handle_inferior_event): Move a comment outside of a
392 function call, in order to avoid indent reformatting this part
393 of the code in an unreadable way.
394
395 2002-08-23 Grace Sainsbury <graces@redhat.com>
396
397 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
398 when breakpoints fail. Move general breakpoint error messages to
399 insert_breakpoints.
400 * breakpoint.c (insert_breakpoints): Change warnings when
401 breakpoints are nto inserted to specify the type. Remove call to
402 memory_error when hardware breakpoints can't be inserted. Remove
403 multiple calls to warning so all messages are sent to the user at
404 once.
405 (delete_breakpoints): Make insert error messsages more explicit.
406
407 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
408
409 * ChangeLog: Move gdbserver entries after GDB 5.2 to
410 gdbserver/ChangeLog.
411
412 2002-08-23 Mark Kettenis <kettenis@gnu.org>
413
414 * i386-tdep.c: Include "objfiles.h".
415 (i386_svr4_init_abi): Set in_solib_call_trampoline and
416 skip_trampoline_code.
417 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
418 (CPLUS_MARKER): Define to '.'.
419
420 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
421 member.
422 (linux_corefile_thread_callback): Increase args->num_notes.
423 (linux_make_note_section): Initialize thread_args.num_notes, and
424 use it to determine whether notes for any threads were created.
425
426 2002-08-23 Donn Terry <donnte@microsoft.com>
427
428 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
429 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
430 and PCUNKILL.
431 (write_with_trace): Conditionalize out the switch branch handling
432 PCSHOLD if the corresponding macro is not defined. Likewise for
433 PRSABORT and PRSTOP.
434 This change will be needed by the Interix port.
435
436 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
437
438 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
439 write_register wherever possible instead of manipulating the
440 register bytes directly.
441 Assign VALUE_CONTENTS to a variable and use that.
442 The GPR numbers are now dependent on the architecture.
443
444 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
445
446 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
447 ev_offset fields.
448 (skip_prologue): Add support for BookE/e500 instructions.
449 (e500_extract_return_value): New function.
450 (frame_get_saved_regs): Add support for saving ev registers and
451 pseudo gpr's.
452 (e500_store_return_value): New function.
453 (rs6000_gdbarch_init): Move up default intializations of
454 deprecated_extract_return_value and store_return_value. Overwrite
455 init of store_return_value with e500 specific version.
456 Set extract_return_value for e500.
457
458 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
459
460 * blockframe.c (generic_call_dummy_register_unwind): Use
461 regcache_cooked_read to catch cases in which the variable is
462 stored in a pseudo register.
463
464 2002-08-22 Andrew Cagney <cagney@redhat.com>
465
466 * NEWS: Mention that the i960 has been made obsolete.
467 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
468 i960-tdep.c
469 (remote-nrom.o): Obsolete target.
470 (remote-nindy.o, i960-tdep.o): Ditto.
471 * remote-nrom.c: Make file obsolete.
472 * remote-nindy.c, remote-vx960.c: Ditto.
473 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
474 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
475 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
476 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
477 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
478 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
479 i960-*-vxworks* obsolete.
480 * MAINTAINERS: Note that the i960 is obsolete.
481
482 2002-08-21 Corinna Vinschen <vinschen@redhat.com
483
484 * aix-thread.c (aix_thread_detach): Disable thread debugging on
485 detach to allow reinitialization.
486
487 2002-08-22 Andrew Cagney <ac131313@redhat.com>
488
489 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
490 attempt).
491
492 2002-08-22 Jim Blandy <jimb@redhat.com>
493
494 * coffread.c (coff_symfile_read): Don't try to read the line
495 number table from disk if the image file doesn't have a symbol
496 table; we'll never actually look at the info anyway, and Windows
497 ships DLL's with bogus file offsets for the line number data.
498
499 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
500
501 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
502 an e500 executable.
503
504 2002-08-21 Michael Snyder <msnyder@redhat.com>
505
506 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
507 (MSYMBOL_SIZE): Replace macro with function.
508 (DEFAULT_MIPS_TYPE): Delete unused macro.
509 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
510 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
511
512 2002-08-21 Jim Blandy <jimb@redhat.com>
513
514 * valops.c (value_cast): Simplify and correct logic for doing a
515 static cast from a pointer to a base class to a pointer to a
516 derived class.
517
518 2002-08-21 Andrew Cagney <ac131313@redhat.com>
519
520 * infcmd.c (default_print_registers_info): Replace
521 do_registers_info.
522 (registers_info): Use gdbarch_print_registers_info instead of
523 DO_REGISTERS_INFO.
524 * inferior.h (default_print_registers_info): Replace
525 do_registers_info.
526 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
527 (DO_REGISTERS_INFO): Change to a predicate function.
528 * gdbarch.h, gdbarch.c: Regenerate.
529
530 2002-08-21 Keith Seitz <keiths@redhat.com>
531
532 * gdb-events.sh: Add target-changed event.
533 * gdb-events.c: Regenerated.
534 * gdb-events.c: Regenerated.
535 * valops.c (value_assign): Add target-changed event notification
536 to inlval_register, lval_memory, and lval_reg_frame_relative.
537
538 2002-08-21 Joel Brobecker <brobecker@gnat.com>
539
540 * NEWS: Add an entry regarding the improvement of the next/step
541 operation on Alpha Tru64 multi-processor machines.
542
543 2002-08-21 Andrew Cagney <ac131313@redhat.com>
544
545 * Makefile.in: Update dependencies for mi/ cli/ and tui/
546 directores.
547 * Makefile.in: Update all _h macro definitions.
548 * Makefile.in (install-gdbtk): Move to install section.
549 (rdi-share/libangsd.a): Move to end of file.
550
551 2002-08-19 Andrew Cagney <ac131313@redhat.com>
552
553 * frame.c (frame_register_unwind): When a register, set addrp to
554 the register's byte.
555
556 2002-08-20 Michael Snyder <msnyder@redhat.com>
557
558 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
559 used locally, so move them from the target machine header to here.
560 (mips_set_processor_type, mips_register_name, mips32_next_pc,
561 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
562 Make static.
563 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
564
565 2002-08-20 Andrew Cagney <cagney@redhat.com>
566
567 * NEWS: Mention that the Apollo line was made obsolete.
568 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
569 m68*-hp-hpux* obsolete.
570 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
571 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
572 * buildsym.c (make_blockvector): Make static.
573 * buildsym.h (make_blockvector): Make extern declaration obsolete.
574 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
575 (ALLDEPFILES): Remove dstread.c.
576 (dstread.o): Obsolete make rule.
577 * dstread.c: Makefile obsolete.
578 * dst.h: Ditto.
579 * config/m68k/hp300hpux.mt: Ditto.
580 * config/m68k/hp300hpux.mh: Ditto.
581 * config/m68k/hp300bsd.mt: Ditto.
582 * config/m68k/hp300bsd.mh: Ditto.
583 * config/m68k/apollo68b.mt: Ditto.
584 * config/m68k/apollo68v.mh: Ditto.
585 * config/m68k/apollo68b.mh: Ditto.
586
587 2002-08-20 Michael Snyder <msnyder@redhat.com>
588
589 * mips-tdep.c (mips_in_return_stub): Make static.
590 (mips_gdbarch_init): Set in_solib_return_trampoline.
591 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
592
593 2002-08-20 Michael Snyder <msnyder@redhat.com>
594
595 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
596 * gdbarch.c, gdbarch.h: Regenerate.
597 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
598 Add.
599 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
600
601 2002-08-20 Michael Snyder <msnyder@redhat.com>
602
603 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
604 (mips_gdbarch_init): Set skip_trampoline_code,
605 in_solib_call_trampoline.
606 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
607 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
608
609 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
610
611 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
612
613 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
614 vector type for ev registers.
615 (e500_pseudo_register_read): New function.
616 (e500_pseudo_register_write): New function.
617 (e500_dwarf2_reg_to_regnum): New function.
618 (PPC_UISA_NOFP_SPRS): New macro.
619 (PPC_EV_REGS): New macro.
620 (PPC_GPRS_PSEUDO_REGS): New macro.
621 (registers_e500): New register set for e500.
622 (variants): Add e500 variant.
623 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
624 before setting architectural dependent variations. Initialize ev
625 registers numbers. Add case for e500 architecture. Set the
626 number of pseudo registers.
627
628 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
629
630 * rs6000-tdep.c: Clean up comments.
631
632 2002-08-20 Andrew Cagney <cagney@redhat.com>
633
634 * h8300-tdep.c: Re-indent file.
635
636 2002-08-20 Jim Blandy <jimb@redhat.com>
637
638 * Makefile.in (LDFLAGS): Allow the configure script to establish a
639 default for this.
640
641 2002-08-20 Keith Seitz <keiths@redhat.com>
642
643 * breakpoints.c (watch_command_1): Use internal breakpoint
644 when setting a watchpoint_scope breakpoint.
645
646 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
647
648 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
649 (build_builtin_type_vec64i): Ditto.
650 (build_builtin_type_vec128): Ditto.
651 (build_builtin_type_vec128i): Ditto.
652
653 2002-08-19 Michael Snyder <msnyder@redhat.com>
654
655 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
656 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
657 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
658 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
659 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
660 CALL_DUMMY_ADDRESS): Delete.
661 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
662 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
663 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
664 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
665 push_return_address.
666 (mips_register_raw_size, mips_eabi_use_struct_convention,
667 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
668 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
669 mips_init_extra_frame_info, mips_eabi_push_arguments,
670 mips_n32n64_push_arguments, mips_push_return_address,
671 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
672 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
673
674 2002-08-19 Michael Snyder <msnyder@redhat.com>
675
676 * mips-tdep.c (mips_frame_num_args): New function.
677 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
678 frame_saved_pc, frame_args_address, frame_locals_address,
679 frame_num_args, and frame_args_skip.
680 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
681 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
682 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
683 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
684
685 2002-08-20 Michael Snyder <msnyder@redhat.com>
686
687 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
688 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
689 * mips-tdep.c (mips_store_struct_return): New function.
690 (mips_extract_struct_value_address): New function.
691 (mips_gdbarch_init): Set store_struct_return and
692 extract_struct_value_address.
693
694 2002-08-20 David Carlton <carlton@math.stanford.edu>
695
696 * dwarf2read.c (dwarf2_build_psymtabs): Check that
697 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
698 (read_file_scope): Check that line_header is nonzero before
699 decoding macro information.
700
701 2002-08-20 Mark Kettenis <kettenis@gnu.org>
702
703 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
704 flag the general-purpose registers as floating-point on targets
705 that don't support the floating-point registers.
706
707 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
708
709 * rs6000-tdep.c (altivec_register_p): Delete.
710 (rs6000_do_altivec_registers): Delete.
711 (rs6000_altivec_registers_info): Delete.
712 (rs6000_do_registers_info): Delete.
713 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
714 (rs6000_gdbarch_init): Remove setting of do_registers_info.
715
716 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
717
718 * infcmd.c (do_registers_info): Print vector registers in hex
719 format only.
720 (print_vector_info): Check that printing registers
721 makes sense.
722 (print_float_info): Ditto.
723
724 2002-08-20 Andrew Cagney <ac131313@redhat.com>
725
726 * mips-tdep.c (mips_gdbarch_init): Update.
727 (mips_o32_extract_return_value): Rewrite.
728 (mips_o32_store_return_value): Rewrite.
729 (mips_o32_xfer_return_value): New function.
730 (mips_xfer_register): Tweak debug print message. Allow for
731 buf_offset when dumping the value transfered.
732
733 2002-08-20 Andrew Cagney <ac131313@redhat.com>
734
735 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
736 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
737 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
738 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
739 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
740
741 2002-08-14 Michael Snyder <msnyder@redhat.com>
742
743 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
744
745 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
746
747 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
748 register.
749 (P): New macro to define a register as a pseudo register.
750 (R, R4, R8, R16, FR32, R64, R0): Updated.
751 (struct variant): Add new fields for number of pseudo registers
752 and number of total registers.
753 (tot_num_registers): New macro replacing....
754 (num_registers): ...deleted macro.
755 (num_registers): New function.
756 (num_pseudo_registers): New function.
757 (variants): Update all variants to intialize new fields correctly.
758 Postpone initialization of number of pseudo regs and real regs.
759 (init_variants): New function.
760 (rs6000_gdbarch_init): Initialize variants. Update calculation of
761 registers offsets.
762
763 2002-08-19 David Carlton <carlton@math.stanford.edu>
764
765 * valops.c (search_struct_field): Change error message to treat
766 return value of 0 from value_static_field as meaning that field is
767 optimized out.
768 (value_struct_elt_for_reference): Ditto.
769 * values.c (value_static_field): Treat an unresolved location the
770 same as a nonexistent symbol. Fix PR gdb/635.
771 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
772 enclosed. Fix PR gdb/574.
773 * MAINTAINERS: Add self to Write After Approval list.
774
775 2002-08-19 Andrew Cagney <ac131313@redhat.com>
776
777 * mips-tdep.c (mips_xfer_register): New function.
778 (mips_n32n64_extract_return_value): Rewrite.
779 (mips_gdbarch_init): For N32 and N64, set extract_return_value
780 instead of deprecated_extract_return_value.
781
782 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
783
784 * rs6000-tdep.c (TDEP): Delete macro.
785 (branch_dest): Replace use of TDEP macro with its body.
786 (rs6000_pop_frame): Ditto.
787 (rs6000_push_arguments): Ditto.
788 (rs6000_skip_trampoline_code): Ditto.
789 (rs6000_frame_saved_pc): Ditto.
790 (rs6000_frame_chain): Ditto.
791 (rs6000_register_name): Ditto.
792 (rs6000_register_byte): Ditto.
793 (rs6000_register_raw_size): Ditto.
794 (rs6000_register_virtual_type): Ditto.
795 (rs6000_register_convertible): Ditto.
796 (rs6000_convert_from_func_ptr_addr): Ditto.
797
798 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
799
800 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
801 conditionally.
802 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
803 MIPS_LINUX_JB_ELEMENT_SIZE.
804 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
805 for MAX_REGISTER_RAW_SIZE arrays.
806 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
807 MIPS_LINUX_JB_ELEMENT_SIZE.
808
809 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
810
811 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
812
813 2002-08-19 Aidan Skinner <aidan@velvet.net>
814
815 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
816 ada-valprint.c ada-tasks.c.
817 (YYFILES): Add ada-exp.y.
818 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
819 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
820 (ada-exp.tab.o): New target.
821
822 2002-08-18 Andrew Cagney <ac131313@redhat.com>
823
824 * regcache.c (regcache_xfer_part): New function.
825 (regcache_raw_read_part): New function.
826 (regcache_raw_write_part): New function.
827 (regcache_cooked_read_part): New function.
828 (regcache_cooked_write_part): New function.
829 * regcache.h (regcache_raw_read_part): Declare.
830 (regcache_raw_write_part): Declare.
831 (regcache_cooked_read_part): Declare.
832 (regcache_cooked_write_part): Declare.
833
834 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
835
836 * remote.c (remote_open_1): Add async_p.
837 (remote_async_open_1): Delete.
838 (open_remote_target): Delete.
839 (remote_open, extended_remote_open): Update calls to remote_open_1.
840 (remote_async_open, extended_remote_async_open): Call
841 remote_open_1 instead of remote_async_open_1.
842
843 2002-08-19 Mark Kettenis <kettenis@gnu.org>
844
845 * blockframe.c: Fix a few coding standard violations.
846
847 2002-08-19 Mark Kettenis <kettenis@gnu.org>
848
849 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
850 here from ...
851 * config/i386/tm-i386sco5.h: ... here. File removed.
852 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
853
854 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
855 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
856 (TM_FILE): Set to tm-i386.h.
857 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
858 * config/i386/tm-i386v.h: Remove file.
859 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
860 instead of "i386/tm-i386v.h".
861 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
862 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
863 "i386/tm-i386v.h".
864 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
865 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
866 "i386/tm-i386.h".
867
868 2002-08-18 Mark Kettenis <kettenis@gnu.org>
869
870 * config/i386/nm-i386v.h: Add protection against
871 multiple-inclusion.
872 (i386_register_u_addr): Remove prototype.
873 (register_u_addr): New prototype.
874 (REGISTER_U_ADDR): Redefine accordingly.
875 * i386v-nat.c: Improve several comments.
876 (i386_register_u_addr): Change signature and rename to
877 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
878 ubase variable.
879
880 2002-08-18 Andrew Cagney <ac131313@redhat.com>
881
882 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
883 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
884 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
885 deprecated_extract_return_value.
886 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
887 rename mips_o32o64_push_arguments.
888 (mips_gdbarch_init): Update.
889 (mips_extract_return_value): Delete.
890 (mips_o32_extract_return_value): Clone mips_extract_return_value.
891 (mips_o64_extract_return_value): Clone mips_extract_return_value.
892 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
893 (mips_n32n64_extract_return_value): Clone
894 mips_extract_return_value.
895 (mips_store_return_value): Delete.
896 (mips_o32_store_return_value): Clone mips_store_return_value.
897 (mips_o64_store_return_value): Clone mips_store_return_value.
898 (mips_eabi_store_return_value): Clone mips_store_return_value.
899 (mips_n32n64_store_return_value): Clone mips_store_return_value.
900
901 2002-08-18 Aidan Skinner <aidan@velvet.net>
902
903 * ada-lang.c: Use gdb_string.h instead of <string.h>.
904 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
905
906 2002-08-18 Aidan Skinner <aidan@velvet.net>
907
908 * ada-lang.c: Run through gdb_indent.sh.
909 * ada-lang.h: Run through gdb_indent.sh.
910 * ada-tasks.c: Run through gdb_indent.sh.
911 * ada-typeprint.c: Run through gdb_indent.sh.
912 * ada-valprint.c: Run through gdb_indent.sh.
913
914 2002-08-18 Andrew Cagney <ac131313@redhat.com>
915
916 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
917 ABI.
918
919 2002-08-18 Mark Kettenis <kettenis@gnu.org>
920
921 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
922
923 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
924 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
925
926 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
927 write_register_gen instead of write_register_bytes.
928
929 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
930 i[3456]-*-osf1mk* configurations have been made obsolete.
931 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
932 i[3456]86-*-osf1mk* hosts obsolete.
933 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
934 targets obsolete.
935 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
936 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
937 config/i386/i386m3.mt, config/i386/nm-m3.h,
938 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
939 config/i386/i386mk.mh, config/i386/i386mk.mt,
940 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
941 obsolete.
942 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
943 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
944 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
945
946 2002-08-18 Andrew Cagney <ac131313@redhat.com>
947
948 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
949 (hppa_value_returned_from_stack): Declare.
950 (hppa_extract_return_value): Declare.
951 * config/pa/hppa.mt: New file.
952 * configure.tgt: Recognize hppa*-*-*.
953 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
954
955 2002-08-18 Mark Kettenis <kettenis@gnu.org>
956
957 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
958 comment.
959
960 2002-08-17 Mark Kettenis <kettenis@gnu.org>
961
962 * top.c (gdb_rl_operate_and_get_next): Make sure
963 operate-and-get-next functions correctly even when the history
964 list is completely filled.
965
966 2002-08-18 Andrew Cagney <ac131313@redhat.com>
967
968 * MAINTAINERS (Target Instruction Set Architectures): Rename
969 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
970 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
971 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
972 already listed under Host/Native.
973
974 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
975 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
976 mips*-*-*.
977
978 2002-08-17 Andrew Cagney <ac131313@redhat.com>
979
980 * config/ia64/ia64.mt: New file.
981 * config/alpha/alpha.mt: New file.
982 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
983 ia64-linux-gnu. Mention that ia64-elf is broken.
984 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
985
986 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
987
988 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
989 generic_func_frame_valid instead of func_frame_valid.
990
991 2002-08-16 Joel Brobecker <brobecker@gnat.com>
992
993 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
994 procfs appears to be broken when debugging on multi-processor
995 machines. So enable software single stepping in order to avoid
996 using the procfs interface to do next/step operations, using
997 internal breakpoints instead.
998
999 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1000 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1001 make this pc address equal to the value it would have if the
1002 system stepping capability was used. Also set a new flag used
1003 to ensure that we don't readjust the PC one more time later.
1004
1005 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1006 address by DECR_PC_AFTER_BREAK when software single step is
1007 in use for this architecture, as this has already been taken
1008 care of in handle_inferior_event().
1009
1010 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1011
1012 * infrun.c (handle_inferior_event): Minor reformatting, to make
1013 a rather long condition expression easier to read.
1014
1015 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1016
1017 * Makefile.in (gdbtk.o): Move to end of file.
1018 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1019 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1020 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1021 (gdbtk-wrapper.o, gdbres.o): Ditto.
1022
1023 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1024
1025 * Makefile.in (copying.o): Separate out compile rule.
1026 (hpux-thread.o, procfs.o, signals.o): Ditto.
1027 (v850ice.o, z8k-tdep.o): Ditto.
1028 (tui-file.o): Move to TUI section.
1029 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1030 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1031
1032 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1033
1034 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1035 skip_trampoline_code, for better namespace-proofing.
1036
1037 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1038
1039 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1040
1041 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1042
1043 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1044
1045 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1046 signal, check whether we hit a breakpoint before checking for a
1047 single step breakpoint. Otherwise, GDB fails to notice that a
1048 breakpoint has been hit when stepping onto a breakpoint.
1049
1050 2002-08-16 Keith Seitz <keiths@redhat.com>
1051
1052 * gdb-events.sh (clear_gdb_event_hooks): New function.
1053 * gdb-events.c: Regenerate.
1054 * gdb-events.h: Regenerate.
1055
1056 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1057
1058 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1059 not_a_sw_breakpoint.
1060 * breakpoint.h (bpstat_stop_status): Add parameter names.
1061
1062 2002-08-16 Grace Sainsbury <graces@redhat.com>
1063
1064 * remote.c (remote_insert_hw_breakpoint)
1065 (remote_remove_hw_breakpoint): Fix calculation of length field
1066 for Z-packet.
1067
1068 2002-08-15 Michael Snyder <msnyder@redhat.com>
1069
1070 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1071 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1072 (supply_fpregset): Ditto.
1073
1074 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1075 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1076 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1077 (TARGET_READ_SP): Delete.
1078 (DO_REGISTERS_INFO): Delete.
1079 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1080 Delete.
1081 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1082 from macros to functions.
1083
1084 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1085 (mips_register_convertible, mips_register_convert_to_virtual,
1086 mips_register_convert_to_raw): Make static.
1087 (mips_read_sp): New function.
1088 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1089 (mips_do_registers_info): Make static.
1090 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1091 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1092 (mips_register_convert_from_type, mips_register_convert_to_type):
1093 New functions.
1094 (mips_gdbarch_init): Set up function_start_offset,
1095 register_virtual_size, pc_in_sigtramp.
1096
1097 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1098
1099 * infcmd.c (vector_info): New function.
1100 (_initialize_infcmd): Add command "info vector".
1101 (print_vector_info): New function.
1102
1103 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1104 * gdbarch.h, gdbarch.c: Regenerate.
1105
1106 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1107
1108 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1109 ``print_all''. Only print vector registers when ``print_all''.
1110
1111 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1112
1113 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1114 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1115
1116 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1117 Add `args' parameter.
1118 * gdbarch.h, gdbarch.c: Regenerate.
1119
1120 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1121
1122 * infcmd.c (float_info): Call print_float_info.
1123 (print_float_info): New function. By default, print the
1124 floating-point registers.
1125
1126 * arch-utils.h (default_print_float_info): Delete declaration.
1127 * arch-utils.c (default_print_float_info): Delete function.
1128
1129 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1130
1131 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1132 out define.
1133
1134 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1135 FRAME.
1136
1137 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1138 * configure.host: Make i[3456]86-*-aix host obsolete.
1139 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1140 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1141 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1142 config/i386/xm-i386aix.h: Make files obsolete.
1143 * i386aix-nat.c: Make file obsolete.
1144 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1145 (i386aix-nat.o): Make target obsolete.
1146
1147 * config/i386/nm-gnu.h: Removed.
1148 * config/i386/nm-i386gnu.h: New file.
1149 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1150 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1151 Moved here from ...
1152 * config/i386/tm-i386gnu.h: ... here. Removed.
1153 * config/i386/xm-i386gnu.h: Removed.
1154 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1155 (NAT_FILE): Set to nm-i386gnu.h.
1156 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1157 * i386-tdep.c: New file.
1158 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1159 (i386gnu-tdep.o): Specify dependencies.
1160
1161 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1162
1163 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1164 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1165 Adjust a few comments to reflect reality a bit closer.
1166 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1167 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1168 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1169 target_insert_watchpoint, target_remove_watchpoint):
1170 Move defines to ...
1171 * config/i386/nm-i386sco5.h: ... here.
1172 (kernel_u_size): Add prototype. Improve a few comments and add
1173 protection against multiple inclusion.
1174
1175 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1176 out define.
1177
1178 * uw-thread.c (SP_ARG0): Define if not already defined.
1179 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1180
1181 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1182
1183 * config/i386/tm-i386.h: Don't include "regcache.h".
1184
1185 * i387-tdep.h (i387_print_float_info): New prototype.
1186 * i387-tdep.c (print_i387_value, print_i387_ext,
1187 print_i387_status_word, print_i387_control_word): Add `struct
1188 ui_file *' argument and use it for output.
1189 (i387_print_float_info): Renamed from i387_float_info. Add
1190 `struct gdbarch *' and `struct ui_file *' arguments and use the
1191 latter for output.
1192 * i386-tdep.c: Include "i387-tdep.h".
1193 (i386_gdbarch_init): Set print_float_info.
1194 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1195 (FLOAT_INFO): Remove define.
1196
1197 2002-08-13 Michael Snyder <msnyder@redhat.com>
1198
1199 * mips-tdep.c (mips_push_arguments): Rename to
1200 mips_eabi_push_arguments, and tune for EABI.
1201 (MIPS_REGS_HAVE_HOME_P): Delete.
1202 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1203 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1204 Delete references to mips_regs_have_home_p.
1205
1206 2002-08-14 Keith Seitz <keiths@redhat.com>
1207
1208 * Makefile.in (install-gdbtk): Create insight plugin directory.
1209 Install plugins.tcl file.
1210
1211 2002-08-14 Keith Seitz <keiths@redhat.com>
1212
1213 * configure.in: Move SUBDIRS to near top of the file so that
1214 --enable options may add things to it.
1215 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1216 * configure: Regenerate.
1217
1218 2002-08-13 Michael Snyder <msnyder@redhat.com>
1219
1220 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1221 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1222 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1223
1224 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1225
1226 * vax-tdep.c (vax_get_saved_register): Delete function.
1227 (vax_gdbarch_init): Update.
1228 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1229 (ns32k_gdbarch_init): Update.
1230 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1231 (alpha_gdbarch_init): Update.
1232
1233 2002-08-13 Andrew Cagney <cagney@redhat.com>
1234
1235 * regcache.c (init_regcache_descr): Overallocate the
1236 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1237 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1238 nr_raw_registers.
1239 (set_register_cached): Add range checking assertions. Use
1240 current_regcache.
1241
1242 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1243
1244 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1245 numbers for MMX registers.
1246
1247 2002-08-13 Andrew Cagney <cagney@redhat.com>
1248
1249 * i386-tdep.c (i386_gdbarch_init): Use
1250 generic_unwind_get_saved_register.
1251
1252 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1253
1254 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1255 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1256 target vector.
1257 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1258 Delete. Add comment regarding this now-deleted target method.
1259
1260 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1261
1262 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1263 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1264 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1265 real PC and the page number (if it's within the memory bank window).
1266 (m68hc11_pseudo_register_write): Likewise when saving.
1267 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1268 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1269 (m68hc11_register_raw_size): And use 32-bit for it.
1270 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1271 16K memory bank is used by the prog; also use the virtual pc.
1272
1273 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1274
1275 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1276 (m68hc11_gdbarch_init): Install it in gdbarch.
1277 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1278 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1279 (MSYMBOL_SIZE): New for documentation.
1280 (insn_return_kind): Enum to specify how a function returns.
1281 (frame_extra_info): Cleanup and record the return mode.
1282 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1283 register in address computation.
1284 (m68hc11_get_return_insn): New to obtain the return instruction used
1285 by the function.
1286 (m68hc11_frame_init_saved_regs): Take into account the return
1287 instruction used by the function for far and interrupt functions.
1288 (m68hc11_init_extra_frame_info): Take into account page register.
1289 (m68hc11_frame_args_address): Adjust according to the return mode.
1290 (show_regs): Print page register only when it's used.
1291
1292 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1293
1294 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1295 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1296 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1297 registers.
1298 (m68hc11_register_raw_size): Likewise.
1299
1300 2002-08-13 Andrew Cagney <cagney@redhat.com>
1301
1302 * i386-tdep.c (i386_register_name): Handle mmx registers.
1303 (mmx_regnum_p): New function.
1304 (i386_mmx_names): New array.
1305 (mmx_num_regs): New variable.
1306 (i386_pseudo_register_read): New function.
1307 (i386_pseudo_register_write): New function.
1308 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1309
1310 * regcache.c (regcache_raw_read_unsigned): New function.
1311 (regcache_raw_read_signed): New function.
1312 * regcache.h (regcache_raw_read_unsigned): Declare.
1313 (regcache_raw_read_signed): Declare.
1314
1315 2002-08-13 Andrew Cagney <cagney@redhat.com>
1316
1317 * regcache.c (regcache_raw_read_as_address): Delete function.
1318 (regcache_cooked_read_signed): New function.
1319 (regcache_cooked_read_unsigned): New function.
1320 * regcache.h (regcache_cooked_read_signed): Declare.
1321 (regcache_cooked_read_unsigned): Declare.
1322 (regcache_raw_read_as_address): Delete declaration.
1323
1324 * blockframe.c (generic_read_register_dummy): Use
1325 regcache_cooked_read_unsigned.
1326 * i386-tdep.c (i386_extract_struct_value_address): Use
1327 regcache_cooked_read_unsigned.
1328
1329 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1330
1331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1332 double sizes according to ELF ABI flags.
1333 (gdbarch_tdep): Record elf_flags.
1334
1335 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1336
1337 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1338 (m6812_prolog): They can appear in 68HC12 function prologue.
1339 (m68hc11_frame_chain): Cleanup.
1340
1341 2002-08-12 Andrew Cagney <cagney@redhat.com>
1342
1343 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1344 declarations.
1345 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1346 (i386_linux_register_raw_size): Delete function.
1347 (i386_linux_init_abi): Update.
1348 * i386-tdep.c (i386_register_raw_size): Delete function.
1349 (i386_register_byte): Delete function.
1350 (i386_gdbarch_init): Update.
1351 (i386_register_size): Delete array.
1352 (i386_register_offset): Delete array.
1353
1354 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1355 (REGISTER_RAW_SIZE): Delete macro.
1356 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1357 (REGISTER_BYTE): Delete macro.
1358
1359 2002-08-11 Aidan Skinner <aidan@velvet.net>
1360
1361 * ada-lang.c (ada_lookup_partial_symbol)
1362 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1363 prototype names so that grep ^func works properly.
1364
1365 * ada-lang.c (ada_array_element_type)
1366 (ada_lookup_partial_symbol): Fix typos in parameter list.
1367
1368 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1369 Fix prototype names so that grep ^func works properly.
1370
1371 2002-08-10 Andrew Cagney <cagney@redhat.com>
1372 Elena Zannoni <ezannoni@redhat.com>
1373 Martin M. Hunt <hunt@redhat.com>
1374
1375 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1376 (build_builtin_type_vec128i): Set the vector bit.
1377 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1378 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1379 (build_builtin_type_vec64): New function.
1380 (build_builtin_type_vec64i): New function.
1381 (build_gdbtypes): Initialize builtin_type_vec64 and
1382 builtin_type_vec64i.
1383
1384 2002-08-09 Andrew Cagney <cagney@redhat.com>
1385
1386 * regcache.c (regcache_dump): Compare the register offset
1387 with REGISTER_BYTE.
1388 * arch-utils.c (generic_register_byte): New function.
1389 * arch-utils.h (generic_register_byte): Declare.
1390 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1391 * gdbarch.h, gdbarch.c: Regenerate.
1392
1393 2002-08-09 Andrew Cagney <cagney@redhat.com>
1394
1395 * regcache.c: Include "gdbcmd.h"
1396 (_initialize_regcache): Add commands "maintenance print
1397 registers", "maintenance print raw-registers" and "maintenance
1398 print cooked-registers".
1399 (enum regcache_dump_what): Define.
1400 (dump_endian_bytes): New function.
1401 (regcache_dump): New function.
1402 (regcache_print): New function.
1403 (maintenance_print_registers): New function.
1404 (maintenance_print_raw_registers): New function.
1405 (maintenance_print_cooked_registers): New function.
1406 * Makefile.in (regcache.o): Update dependencies.
1407
1408 2002-08-09 Michael Snyder <msnyder@redhat.com>
1409
1410 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1411 (mips_push_arguments): Correct some comments. Use paddr_nz
1412 for printing addresses in debug output. Replace static
1413 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1414 (mips_n32n64_push_arguments): New function, cloned from
1415 mips_push_arguments and tuned for the n32/n64 ABI.
1416 (mips_push_register): Buffer needs dynamic allocation.
1417 (mips_print_register): Ditto.
1418 (do_gp_register_row): Ditto.
1419 (mips_store_return_value): Ditto.
1420 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1421
1422 2002-08-09 Don Howard <dhoward@redhat.com>
1423
1424 * memattr.c (mem_info_command): Print special case of upper bound
1425 as max CORE_ADDR + 1.
1426
1427 2002-08-08 Michael Snyder <msnyder@redhat.com>
1428
1429 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1430 returns structs by ref if they're too big to fit in two registers.
1431
1432 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1433
1434 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1435 saved regs value.
1436 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1437 mips_find_saved_regs().
1438 (mips_pop_frame): Likewise.
1439
1440 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1441
1442 * blockframe.c (frame_saved_regs_register_unwind): Revise
1443 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1444 frames are in use.
1445
1446 2002-08-09 Grace Sainsbury <graces@redhat.com>
1447
1448 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1449 T-packets; the 'a' is not taken as a register number.
1450 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1451 (remote_stopped_data_address): New functions; add to target
1452 vector.
1453 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1454 prototypes to match other implementations of this
1455 function. replace integer argument with pointer -- the length
1456 field in the Z-packet is the length of what is pointed to or 1 if
1457 pointer is null. Add to target vector.
1458 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1459 target vector.
1460
1461 From Mark Salter:
1462 * remote.c (remote_wait): Add support to extract optional
1463 watchpoint information from T-packet. Ignore unrecognized
1464 optional info in T-packet.
1465 (remote_async_wait): Ditto.
1466
1467 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1468
1469 * cli/cli-dump.c: Change fopen modes to use binary open modes
1470 as defined in include/fopen-bin.h throughout.
1471
1472 2002-08-08 Michael Snyder <msnyder@redhat.com>
1473
1474 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1475
1476 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1477
1478 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1479 assertion failure by returning early after a warning.
1480
1481 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1482
1483 * mips-tdep.c (mips_find_saved_regs): Make static.
1484 (mips_frame_init_saved_regs): New function.
1485 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1486 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1487 (mips_find_saved_regs): Delete declaration.
1488
1489 2002-08-08 Grace Sainsbury <graces@redhat.com>
1490
1491 * remote.c (remote_wait, remote_async_wait): Change
1492 thread_num from int to ULONGEST.
1493 (unpack_varlen_hex): Change result parameter from
1494 int * to ULONGEST *.
1495
1496 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1497
1498 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1499 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1500 powerpc*-*-*.
1501 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1502
1503 2002-08-08 Andrew Cagney <cagney@redhat.com>
1504
1505 * gcore.c (override_derive_stack_segment): Delete variable.
1506 (preempt_derive_stack_segment): Delete function.
1507 (derive_stack_segment): Delete function.
1508 (default_derive_stack_segment): Renamed to derive_stack_segment.
1509 (override_derive_heap_segment): Delete variable.
1510 (preempt_derive_heap_segment): Delete function.
1511 (derive_heap_segment): Delete function.
1512 (default_derive_heap_segment): Rename to derive_heap_segment.
1513
1514 2002-08-06 Michael Snyder <msnyder@redhat.com>
1515
1516 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1517 * mips-tdep.c (mips_EABI_use_struct_convention,
1518 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1519 New functions. (mips_use_struct_convention): Delete.
1520 (mips_gdbarch_init): set use_gdbarch_convention.
1521
1522 2002-08-06 Michael Snyder <msnyder@redhat.com>
1523
1524 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1525 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1526 mips_o32_reg_struct_has_addr): New functions.
1527 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1528
1529 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1530
1531 * regcache.c (pseudo_register): Delete function.
1532 (fetch_register): Delete function.
1533 (store_register): Delete function.
1534 (regcache_raw_read, legacy_read_register_gen): Use
1535 target_fetch_registers instead of fetch_register.
1536 (legacy_write_register_gen, regcache_raw_write): Use
1537 target_store_register instead of store_register.
1538 (write_register_bytes): Ditto.
1539
1540 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1541 (STORE_PSEUDO_REGISTER): Delete.
1542 * gdbarch.h, gdbarch.c: Regenerate.
1543
1544 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1545
1546 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1547 write dump file binary.
1548
1549 2002-08-05 Michael Snyder <msnyder@redhat.com>
1550
1551 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1552 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1553 (mips_gdbarch_init): Set N32 target to be mips64.
1554
1555 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1556
1557 * frame.c (find_saved_register): Break out of loop once saved
1558 register address is found. Don't mention sparc in loop comment
1559 anymore.
1560
1561 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1562
1563 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1564 mips_default_saved_regsize to 8.
1565
1566 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1567
1568 * gcore.c: Do not include <sys/procfs.h>.
1569 * Makefile.in (gcore.o): Update dependencies.
1570
1571 2002-08-06 Andrew Cagney <cagney@redhat.com>
1572
1573 * configure.tgt: Make arc-*-* obsolete.
1574 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1575 * MAINTAINERS: Make arc-elf obsolete.
1576 * arc-tdep.c: Make file obsolete.
1577 * config/arc/arc.mt: Ditto.
1578 * config/arc/tm-arc.h: Ditto.
1579
1580 2002-08-05 Theodore A. Roth <troth@verinet.com>
1581
1582 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1583
1584 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1585
1586 * mcore-tdep.c (mcore_gdbarch_init): Use
1587 generic_unwind_get_saved_register instead of
1588 generic_get_saved_register.
1589 * v850-tdep.c (v850_gdbarch_init): Ditto.
1590 * frv-tdep.c (frv_gdbarch_init): Ditto.
1591 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1592 * s390-tdep.c (s390_gdbarch_init): Ditto.
1593 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1594 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1595 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1596
1597 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1598
1599 * objfiles.h: Add missing #include "symfile.h"
1600
1601 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1602
1603 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1604
1605 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1606 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1607 of FIELD_BITSIZE.
1608
1609 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * NEWS: Cleanup and nitpick.
1612
1613 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1614
1615 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1616
1617 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1618
1619 * Makefile.in (gdbtk-bp.o): Update dependencies.
1620 (gdbtk-register.o): Ditto.
1621 (gdbtk-varobj.o): Ditto.
1622
1623 2002-08-03 Andrew Cagney <cagney@redhat.com>
1624
1625 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1626 m68hc11_fetch_pseudo_register.
1627 (m68hc11_pseudo_register_write): Replace
1628 m68hc11_store_pseudo_register.
1629 (m68hc11_gdbarch_init): Update.
1630
1631 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1632
1633 * gdbarch.sh: Include "gdb_string.h".
1634 * gdbarch.c: Regenerate.
1635
1636 * regcache.c: Include "gdb_string.h".
1637 * ax-general.c: Ditto.
1638 * varobj.c: Ditto.
1639 * std-regs.c: Ditto.
1640 * fbsd-proc.c: Ditto.
1641 * thread.c: Ditto.
1642
1643 * Makefile.in (regcache.o): Update dependencies.
1644 (thread.o, gdbarch.o): Ditto.
1645 (ax-general.o, gdbarch.o): Ditto.
1646 (varobj.o, std-regs.o): Ditto.
1647 (fbsd-proc.o): Specify dependencies.
1648
1649 2002-08-02 Andrew Cagney <cagney@redhat.com>
1650
1651 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1652 regnum.
1653 (regcache_cooked_write): Ditto.
1654
1655 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1656
1657 * regcache.c (regcache_cooked_read): New function.
1658 (regcache_cooked_write): New function.
1659 (read_register_gen): Rewrite using regcache_cooked_read.
1660 (write_register_gen): Rewrite using regcache_cooked_write.
1661
1662 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1663 Declare.
1664
1665 2002-08-02 Andrew Cagney <cagney@redhat.com>
1666
1667 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1668 Replace the architecture methods register_read and register_write.
1669 * gdbarch.h, gdbarch.c: Regenerate.
1670 * regcache.c (init_regcache_descr): Update.
1671 (read_register_gen): Update.
1672 (write_register_gen): Update.
1673 (supply_register): Update comment.
1674
1675 * sh-tdep.c (sh_gdbarch_init): Update.
1676 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1677 `regcache' and `gdbarch' parameters. Make `buffer' a void
1678 pointer. Update code.
1679 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1680 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1681 void pointer. Update code.
1682 (sh64_register_write): Delete.
1683 (sh4_register_read): Delete.
1684 (sh64_register_read): Delete.
1685 (sh4_register_write): Delete.
1686 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1687 void pointer, `to' parameter a void pointer.
1688 (sh_sh64_register_convert_to_raw): Ditto.
1689
1690 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1691
1692 * mips-tdep.c (mips_register_virtual_type): Use architecture
1693 invariant return values.
1694
1695 2002-08-01 Andrew Cagney <cagney@redhat.com>
1696
1697 * linux-proc.c: Include "gdb_string.h".
1698 * Makefile.in (linux-proc.o): Update dependency list.
1699
1700 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1701
1702 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1703 comment.
1704
1705 2002-08-01 Grace Sainsbury <graces@redhat.com>
1706
1707 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1708 to_insert_watchpoint, to_remove_watchpoint,
1709 to_stopped_by_watchpoint, to_stopped_data_address,
1710 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1711 target vecctor. Define their corresponding macros so they call
1712 them.
1713
1714 * target.c: Add default and debug versions of for
1715 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1716 to_insert_watchpoint, to_remove_watchpoint,
1717 to_stopped_by_watchpoint, to_stopped_data_address,
1718 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1719
1720 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1721
1722 * mips-tdep.c (mips_register_virtual_type): New function.
1723 (mips_gdbarch_init): Register mips_register_virtual_type()
1724 with gdbarch machinery.
1725 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1726 this file instead of tm-bigmips.h.
1727 (MIPS_REGSIZE): Delete this macro.
1728 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1729 multiarch version in mips-tdep.c will be found.
1730
1731 2002-08-01 Andrew Cagney <cagney@redhat.com>
1732
1733 * NEWS: Menion that CHILL has been made obsolete.
1734
1735 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1736 * stabsread.c (read_range_type): Ditto.
1737 * gdbtypes.h: Ditto.
1738 * language.c (binop_type_check): Ditto.
1739 (binop_result_type): Ditto.
1740 (integral_type): Ditto.
1741 (character_type): Ditto.
1742 (string_type): Ditto.
1743 (boolean_type): Ditto.
1744 (structured_type): Ditto.
1745 (lang_bool_type): Ditto.
1746 (binop_type_check): Ditto.
1747 * language.h (_LANG_chill): Ditto.
1748 * dwarfread.c (set_cu_language): Ditto.
1749 * dwarfread.c (CHILL_PRODUCER): Ditto.
1750 * dwarfread.c (handle_producer): Ditto.
1751 * expression.h (enum exp_opcode): Ditto.
1752 * eval.c: Ditto for comments.
1753 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1754 * expprint.c (print_subexp): Ditto.
1755 (print_subexp): Ditto.
1756 * valops.c (value_cast): Ditto.
1757 (search_struct_field): Ditto.
1758 * value.h (COERCE_VARYING_ARRAY): Ditto.
1759 * symfile.c (init_filename_language_table): Ditto.
1760 (add_psymbol_with_dem_name_to_list): Ditto.
1761 * valarith.c (value_binop): Ditto.
1762 (value_neg): Ditto.
1763 * valops.c (value_slice): Ditto.
1764 * symtab.h (union language_specific): Ditto.
1765 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1766 (SYMBOL_DEMANGLED_NAME): Ditto.
1767 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1768 * defs.h (enum language): Ditto.
1769 * symtab.c (got_symtab): Ditto.
1770 * utils.c (fprintf_symbol_filtered): Ditto.
1771
1772 * ch-typeprint.c: Make file obsolete.
1773 * ch-valprint.c: Make file obsolete.
1774 * ch-lang.h: Make file obsolete.
1775 * ch-exp.c: Make file obsolete.
1776 * ch-lang.c: Make file obsolete.
1777
1778 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1779 CHILL_LIB.
1780 (TARGET_FLAGS_TO_PASS): Ditto.
1781 (CHILLFLAGS): Obsolete.
1782 (CHILL): Obsolete.
1783 (CHILL_FOR_TARGET): Obsolete.
1784 (CHILL_LIB): Obsolete.
1785 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1786 ch-valprint.c.
1787 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1788 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1789 ch-lang.o.
1790 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1791 targets.
1792
1793 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1794
1795 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1796 This does not change anything at the moment, but will be helpful
1797 later when full Ada support is integrated.
1798
1799 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1800
1801 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1802 help message.
1803
1804 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1805
1806 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1807 and save it in a local variable. Use variable in later test.
1808
1809 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1810
1811 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1812 test. (Thanks to Daniel Jacobowitz.)
1813
1814 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1815
1816 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1817 (mips_abi_strings): Add "n64".
1818 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1819
1820 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1821
1822 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1823 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1824
1825 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1826
1827 * utils.c (host_pointer_to_address, address_to_host_pointer):
1828 Use gdb_assert() instead of explicit call to internal_error().
1829
1830 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1831
1832 * Makefile.in (rs6000-nat.o): Update dependencies.
1833
1834 From Nicholas Duffek:
1835 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1836 (aix-thread.o): New rule.
1837 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1838 * config/powerpc/aix432.mh: New file.
1839
1840 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1841
1842 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1843 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1844 (fetch_core_registers, ppc_linux_supply_gregset)
1845 (ppc_linux_supply_fpregset): New functions.
1846 (ppc_linux_regset_core_fns): New.
1847 (_initialize_ppc_linux_tdep): Call add_core_fns.
1848 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1849 and ppc_linux_supply_gregset.
1850 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1851 (supply_fpregset): Call ppc_linux_supply_fpregset.
1852 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1853 corelow.o.
1854 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1855
1856 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1857
1858 * symtab.c (lookup_symbol): Demangle before lowercasing.
1859
1860 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1861
1862 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1863 declaration.
1864 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1865 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1866 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1867 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1868 "gdb_string.h".
1869 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1870 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1871 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1872 (avr-tdep.o, mon960-rom.o): Ditto.
1873 (aout_stabs_gnu_h): Define.
1874 (symtab_h): Remove $(gdb_obstack_h).
1875
1876 2002-07-30 Jim Blandy <jimb@redhat.com>
1877
1878 Patch from David Carlton <carlton@math.stanford.edu>:
1879 * gdbinit.in: Move the `dir' commands that add GDB's own source
1880 directory to the search path to the end, so that the `gdb' source
1881 directory will be searched first.
1882
1883 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1884
1885 * gdb_obstack.h: New file.
1886 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1887 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1888 * objfiles.h: Include "gdb_obstack.h".
1889 * Makefile.in (gdb_obstack_h): Define.
1890 (symtab_h): Add $(gdb_obstack_h).
1891 (objfiles_h): Add $(gdb_obstack_h).
1892
1893 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1894 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1895 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1896 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1897 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1898 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1899 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1900 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1901
1902 * Makefile.in (bcache.o): Update dependencies.
1903 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1904 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1905 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1906 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1907 (stabsread.o, symfile.o, symmisc.o): Ditto.
1908 (symtab.o, typeprint.o, macroexp.o): Ditto.
1909 (macrotab.o, mdebugread.o): Ditto.
1910 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1911 (coff_ecoff_h, aout_aout64_h): Define.
1912 (aout_stabs_gnu_h, libaout_h): Define.
1913
1914 2002-07-29 Andrew Cagney <cagney@redhat.com>
1915
1916 * regcache.c (struct regcache_descr): Rename nr_registers to
1917 nr_cooked_registers. Revise comments describing the structure
1918 member fields.
1919 (init_regcache_descr): Update.
1920 (init_legacy_regcache_descr): Update.
1921 (read_register_gen, write_register_gen): When a cooked register in
1922 the raw register range, directly access the value from the raw
1923 register cache.
1924
1925 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1926
1927 * z8k-tdep.c: Do not include "obstack.h".
1928 * h8300-tdep.c, h8500-tdep.c: Ditto.
1929 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1930 * valprint.c, v850-tdep.c: Ditto.
1931 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1932 * mn10200-tdep.c: Ditto.
1933
1934 * Makefile.in (z8k-tdep.o): Update dependencies.
1935 (m68hc11-tdep.o, valprint.o): Ditto.
1936 (v850-tdep.o, d10v-tdep.o): Ditto.
1937 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1938 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1939 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1940 (sh_opc_h, gdb_sim_sh_h): Define.
1941 (elf_sh_h, elf_bfd_h): Define.
1942 (opcode_m68hc11_h): Define.
1943 (OPCODES_SRC, OPCODES_DIR): define.
1944 (OPCODES): Use $(OPCODES_DIR).
1945 (gdb_sim_d10v_h): Rename sim_d10v_h.
1946 (gdb_sim_arm_h): Rename sim_arm_h.
1947
1948 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1949
1950 * utils.c (host_pointer_to_address, address_to_host_pointer):
1951 Change internal_error() message to indicate function responsible
1952 for the error.
1953
1954 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1955
1956 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1957 calls to local_hex_string_custom().
1958
1959 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1960
1961 * irix5-nat.c: Move IRIX shared library support from here...
1962 * solib-irix.c: ...to here. Revised substantially to work with
1963 generic solib framework.
1964
1965 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1966 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1967 * mips-irix-tdep.c: New file.
1968
1969 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1970 (mips-irix-tdep.o, solib-irix.o): New rules.
1971 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1972 solib-irix.o.
1973 * config/mips/irix6.mt (TDEPFILES): Likewise.
1974 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1975
1976 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1977
1978 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1979 disabled (via ``#if 0'') includes.
1980
1981 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1982
1983 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1984 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1985 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1986 Add support for the fpscr register.
1987 * rs6000-nat.c (regmap, fetch_inferior_registers)
1988 (store_inferior_registers, fetch_core_registers): Likewise.
1989
1990 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1991
1992 * rs6000-nat.c (language.h): Include.
1993 (special_regs): Delete this array.
1994 (regmap): New function.
1995 (fetch_register, store_register): Use regmap() to map gdb
1996 register numbers to ptrace register numbers. Also, use
1997 outputs from regmap() to make decisions regarding type of
1998 ptrace() call to make. In particular, don't compare against
1999 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2000 (fetch_inferior_registers, store_inferior_registers): Where
2001 possible, obtain register numbers from tdep struct. Don't
2002 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2003 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2004 (LAST_UISA_SP_REGNUM): Delete.
2005
2006 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2007
2008 * rs6000-nat.c (ppc-tdep.h): Include.
2009 (fetch_registers, store_register, fetch_core_registers): Don't
2010 access registers[] directly. Instead, use supply_register() or
2011 regcache_collect() as appropriate.
2012 (find_toc_address): Format hex address with local_hex_string().
2013
2014 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2015
2016 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2017 bfd/elf32-frv.c.
2018
2019 2002-07-24 Tom Tromey <tromey@redhat.com>
2020
2021 * jv-exp.y: Marked all strings with _().
2022 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2023 internal_error.
2024 (MethodInvocation, CastExpression, parse_number, yyerror,
2025 java_type_from_name, push_expression_name, yylex): Typo fixes.
2026
2027 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2028
2029 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2030 (tee_file_flush, tee_file_write, tee_file_fputs)
2031 (tee_file_isatty): New.
2032 * ui-file.h (tee_file_new): Add prototype.
2033
2034 2002-07-24 Aidan Skinner <aidan@velvet.net>
2035
2036 * ada-lang.c: Change k&r style function definitions to prototyped
2037 form.
2038 * ada-typeprint.c: Change k&r style function definitions to prototyped
2039 form.
2040 * ada-valprint.c: Change k&r style function definitions to prototyped
2041 form.
2042
2043 2002-07-24 Andrew Cagney <cagney@redhat.com>
2044
2045 * README: Remove reference to remote-bug.
2046 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2047 remote-bug.c.
2048 (m88k-nat.o): Delete rule.
2049 (m88k-tdep.o): Delete rule.
2050 (remote-bug.o): Delete rule.
2051 * MAINTAINERS: Mark as obsolete.
2052 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2053 * m88k-tdep.c: Make file obsolete.
2054 * config/m88k/m88k.mh: Ditto.
2055 * config/m88k/delta88v4.mh: Ditto.
2056 * config/m88k/delta88v4.mt: Ditto.
2057 * config/m88k/delta88.mt: Ditto.
2058 * config/m88k/delta88.mh: Ditto.
2059 * remote-bug.c: Ditto.
2060 * config/m88k/tm-delta88.h: Ditto.
2061 * config/m88k/nm-delta88v4.h: Ditto.
2062 * config/m88k/xm-delta88.h: Ditto.
2063 * config/m88k/xm-dgux.h: Ditto.
2064 * config/m88k/tm-m88k.h: Ditto.
2065 * config/m88k/nm-m88k.h: Ditto.
2066 * config/m88k/tm-delta88v4.h: Ditto.
2067 * m88k-nat.c: Ditto.
2068 * cxux-nat.c: Ditto.
2069 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2070 and m88*-*-* obsolete.
2071 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2072 m88*-*-* obsolete.
2073
2074 2002-07-24 Andrew Cagney <cagney@redhat.com>
2075
2076 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2077 constant. Same for local pointer variables.
2078 (extract_signed_integer): Ditto.
2079 * defs.h (extract_unsigned_integer): Update.
2080 (extract_signed_integer): Update.
2081
2082 2002-07-24 Andrew Cagney <cagney@redhat.com>
2083
2084 * regcache.c (regcache_raw_write): Change buf parameter to a
2085 constant void pointer.
2086 (regcache_raw_read): Change buf parameter to a void pointer.
2087 (legacy_write_register_gen): Change myaddr parameter a constant
2088 void pointer.
2089 (supply_register): Change val parameter to a const void pointer.
2090 * regcache.h (regcache_raw_write): Update declaration.
2091 (regcache_raw_read): Update declaration.
2092 (supply_register): Update declaration.
2093
2094 2002-07-24 Tom Tromey <tromey@redhat.com>
2095
2096 * defs.h (gdb_readline_wrapper): Declare.
2097 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2098 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2099 * top.c (gdb_readline_wrapper): New function.
2100 (command_line_input): Use it.
2101
2102 2002-07-24 Andrew Cagney <cagney@redhat.com>
2103
2104 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2105 regcache_read and regcache_write.
2106 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2107 * regcache.c: Update.
2108 * sh-tdep.c (sh64_push_arguments): Update comment.
2109 (sh_pseudo_register_read): Update.
2110 (sh_pseudo_register_write): Update.
2111 (sh4_register_read): Update.
2112 (sh4_register_write): Update.
2113 (sh64_pseudo_register_read): Update.
2114 (sh64_pseudo_register_write): Update.
2115 (sh64_register_read): Update.
2116 (sh64_register_write): Update.
2117 * i386-tdep.c (i386_extract_return_value): Update.
2118 (i386_extract_struct_value_address): Update.
2119 (i386_extract_return_value): Update.
2120 * blockframe.c (generic_read_register_dummy): Update.
2121 (generic_call_dummy_register_unwind): Update
2122 * infrun.c (write_inferior_status_register): Update.
2123
2124 2002-07-23 Jim Blandy <jimb@redhat.com>
2125
2126 * parser-defs.h (expression_context_pc): Make this extern.
2127 (Thanks to Michael Snyder.)
2128
2129 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2130
2131 GDB 5.2.1 released from 5.2 branch.
2132 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2133 * README: Update to mention 5.2.1.
2134
2135 2002-07-23 Mark Salter <msalter@redhat.com>
2136
2137 * remote.c (remote_read_bytes): Fix check for error.
2138
2139 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2140
2141 * aix-thread.c (language.h): Include.
2142 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2143 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2144 Print newlines at end of debug messages.
2145 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2146 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2147
2148 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2149
2150 * aix-thread.c (ppc-tdep.h): Include.
2151 (special_register_p): New function.
2152 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2153 (store_regs_user_thread): Use register number information from
2154 gdbarch_tdep struct instead of hardcoded offsets relative to
2155 FIRST_UISA_SP_REGNUM.
2156 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2157 special_register_p() instead of using FPLAST_REGNUM and
2158 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2159 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2160 will be MQ's register number.
2161
2162 2002-07-22 Michael Snyder <msnyder@redhat.com>
2163
2164 * aix-thread.c (ops): Rename to aix_thread_ops.
2165 (base_ops): Rename to base_target.
2166 (ops_attach): Rename to aix_thread_attach.
2167 (ops_detach): Rename to aix_thread_detach.
2168 (ops_resume): Rename to aix_thread_detach.
2169 (ops_wait): Rename to aix_thread_wait.
2170 (ops_kill): Rename to aix_thread_kill.
2171 (init_ops): Rename to init_aix_thread_ops.
2172 (ops_fetch_register): Rename to aix_thread_fetch_register.
2173 (ops_store_register): Rename to aix_thread_store_register.
2174 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2175 (ops_thread_alive): Rename to aix_thread_thread_alive.
2176 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2177 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2178 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2179 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2180 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2181 (store_regs_lib): Rename to store_regs_user_thread.
2182 (store_regs_kern): Rename to store_regs_kernel_thread.
2183
2184 2002-07-22 Michael Snyder <msnyder@redhat.com>
2185
2186 * aix-thread.c (ops_prepare_to_store): Eliminate.
2187 (init_ops): Don't initialize ops.prepare_to_store.
2188 (store_regs_kern): Pre-fetch register buffers from child,
2189 because some registers may not be in the cache. Copy
2190 regs from register cache only if they are cached.
2191 (store_regs_lib): Copy regs from register cache only
2192 if they are cached.
2193 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2194 fill_gprs64): Ditto.
2195
2196 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2197
2198 * aix-thread.c (gdb_assert.h): Include.
2199 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2200 register sizes (from register cache) match size of buffer holding
2201 register data.
2202 (fill_sprs32): Change parameter types to match those in the ptrace()
2203 buffer.
2204 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2205 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2206
2207 2002-07-22 Michael Snyder <msnyder@redhat.com>
2208
2209 * aix-thread.c (supply_sprs64): Cosmetic change.
2210 (supply_sprs32): Cosmetic change.
2211 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2212 (fill_sprs64): Use regcache_collect instead of read_register.
2213 (store_regs_lib): Use regcache_collect instead of
2214 read_register. Use fill_sprs32 instead of fill_sprs64,
2215 if debugging a 32-bit architecture.
2216 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2217 out of the register cache, instead of passing a pointer into
2218 the register cache directly to ptrace. Use regcache_collect
2219 insteaad of read_register.
2220 (ops_prepare_to_store): Use target_read_registers instead
2221 of read_register_bytes.
2222
2223 2002-07-20 Aidan Skinner <aidan@velvet.net>
2224
2225 * MAINTAINERS: Add self under write after approval.
2226
2227 2002-07-20 Aidan Skinner <aidan@velvet.net>
2228
2229 * ada-tasks.c: Change k&r style function definitions to prototyped
2230 form.
2231
2232 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2233
2234 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2235 * x86-64-tdep.c: Include "objfiles.h".
2236 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2237 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2238
2239 2002-07-17 Michal Ludvig <michal@suse.cz>
2240
2241 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2242 (update_context): Initialise cfa variable.
2243
2244 2002-07-17 Michael Snyder <msnyder@redhat.com>
2245
2246 * aix-thread.c: Shorten some long lines.
2247 Bring comments into line with code spec.
2248
2249 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2250
2251 * infrun.c: Re-indent using gdb_indent.sh.
2252
2253 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2254
2255 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2256 Leave the indentation temporarily untouched, to minimize the diffs.
2257
2258 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2259
2260 * stabsread.c: Make os9k sections of the code obsolete,
2261 for real this time.
2262 * stabsread.h: Make os9k sections of the code obsolete.
2263
2264 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2265
2266 * linux-low.c (regsets_store_inferior_registers): Add free()
2267 at the end of a loop to prevent memory leak.
2268 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2269 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2270 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2271 line a comment.
2272 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2273
2274 2002-07-17 Jim Blandy <jimb@redhat.com>
2275
2276 * macrocmd.c (info_macro_command): Remove newline from error
2277 message.
2278
2279 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2280
2281 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2282 (sh_gdbarch_init): Use it for sh-dsp.
2283
2284 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2285
2286 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2287 64-bit DWARF2 format.
2288
2289 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2290
2291 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2292 <sys/proc.h> when not available.
2293
2294 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2295
2296 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2297 * stabsread.c: Make os9k sections of the code obsolete.
2298 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2299 * config/i386/i386os9k.mt: Make file obsolete.
2300 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2301 (COMMON_OBS): Remove os9kread.o
2302 (SFILES): Remove os9kread.c.
2303 (os9kread.o, remote-os9k.o): Make target obsolete.
2304 * remote-os9k.c: Make file obsolete.
2305 * os9kread.c: Make file obsolete.
2306 * Makefile.in
2307
2308 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2309
2310 * NEWS: Mention that the FR30 has been made obsolete.
2311 * fr30-tdep.c: Make file obsolete.
2312 * config/fr30/tm-fr30.h: Ditto.
2313 * config/fr30/fr30.mt: Ditto.
2314 * configure.tgt: Make fr30-*-elf obsolete.
2315 * MAINTAINERS: Make fr30-elf obsolete.
2316
2317 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2318
2319 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2320 found is not inside a section.
2321
2322 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2323
2324 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2325 strerror().
2326 (pdc_realloc): Use xrealloc() instead of realloc().
2327
2328 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2329
2330 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2331 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2332 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2333 macros.
2334
2335 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2336
2337 * aix-thread.c (ptrace_check): Eliminate goto.
2338 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2339 problem.
2340
2341 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2342
2343 * aix-thread.c (gdbcmd.h): Include.
2344 (DEBUG, DBG, DBG2, dbg): Eliminate.
2345 (debug_aix_thread): New static global.
2346 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2347 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2348 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2349 invocations to DBG and DBG2 macros to test against
2350 ``debug_aix_thread'' and call fprintf_unfiltered().
2351 (_initialize_aix_thread): Add new command "set debug aix-thread".
2352
2353 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2354
2355 From Gerhard Tonn <TON@de.ibm.com>:
2356 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2357 instead of supply_register.
2358
2359 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2360
2361 * dwarf2cfi.c: Include "gdb_assert.h".
2362 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2363 non-NULL.
2364 (update_context): Do not use __func__. Add missing ``break''.
2365 (update_context): Do not use __func__.
2366
2367 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2368
2369 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2370 and its setting. Set gdbarch instruction printing functions
2371 directly. For non-rs6000 case use new function
2372 gdb_print_insn_powerpc.
2373 (gdb_print_insn_powerpc): New function.
2374
2375 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2376
2377 * NEWS: Mention that the d30v has been marked obsolete.
2378 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2379 * configure.tgt: Mark d30v-*-* as obsolete.
2380 * d30v-tdep.c: Mark file as obsolete.
2381 * config/d30v/d30v.mt: Ditto.
2382 * config/d30v/tm-d30v.h: Ditto.
2383
2384 2002-07-13 Aidan Skinner <aidan@velvet.net>
2385
2386 * ada-tasks.c (add_task_entry): replace calls to
2387 malloc() with xmalloc
2388 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2389
2390 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2391 ada_finish_decode_line_1, all_sals_for_line
2392 ada_breakpoint_rewrite): replace calls to free() with xfree()
2393
2394 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2395
2396 From Nicholas Duffek (with minor changes by Martin Hunt,
2397 Louis Hamilton, and Kevin Buettner):
2398 * aix-thread.c: New file.
2399
2400 2002-07-12 Petr Sorfa <petrs@caldera.com>
2401
2402 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2403 complaint for invalid attribute class or form.
2404 (read_func_scope): DW_AT_frame_base
2405 better handling of DW_AT_block*.
2406 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2407 better handling of DW_AT_block*.
2408 (read_common_block): DW_AT_location
2409 better handling of DW_AT_block*.
2410 (read_partial_die): DW_AT_location better handling
2411 of DW_AT_block*.
2412 (new_symbol): DW_AT_external better handling of
2413 DW_AT_block*. Proper initialization of variable
2414 "addr".
2415 (attr_form_is_block): New function that returns true
2416 if the attribute's form is of DW_FORM_block*.
2417
2418 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2419
2420 * valops.c (find_method_list): Remove comment about
2421 removed STATIC_MEMFUNCP argument.
2422 (value_find_oload_method_list): Likewise.
2423
2424 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2425
2426 From Nicholas Duffek:
2427 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2428 target_new_objfile_hook.
2429
2430 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2431
2432 From Nicholas Duffek:
2433 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2434 csect.
2435
2436 2002-07-12 Andrew Cagney <cagney@redhat.com>
2437
2438 * MAINTAINERS: Mention --enable-sim-build-warnings.
2439 (m68hc11-elf): Disable sim build warnings.
2440 (m32r-elf): Mark as broken obsolete candidate.
2441 (x86_64-linux-gnu): Mark as buildable with -Werror.
2442 (arm-elf): Change -w to ``,'' which enables warnings but not
2443 -Werror.
2444
2445 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2446
2447 * bcache.h: Update copyright.
2448 (struct bstring, struct bcache): Move definition to "bcache.c".
2449 Replaced by opaque declaration.
2450 (bcache_xfree): Replace free_bcache.
2451 (bcache_xmalloc, bcache_memory_used): Declare.
2452
2453 * bcache.c: Update copyright.
2454 (struct bstring, struct bcache): Moved to here from "bcache.h".
2455 Update comments.
2456 (bcache_xmalloc, bcache_memory_used): New functions.
2457 (bcache_xfree): Replace function free_bcache.
2458
2459 * Makefile.in (objfiles.o): Add $(bcache_h).
2460 (objfiles_h): Remove $(bcache_h).
2461 (symfile.o): Add $(bcache_h).
2462
2463 * symmisc.c: Update copyright.
2464 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2465 (print_objfile_statistics): Use bcache_memory_used.
2466
2467 * symfile.c: Include "bcache.h".
2468 (reread_symbols): Use bcache_xfree.
2469 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2470 (add_psymbol_to_list): Pass psymbol_cache by value.
2471 (add_psymbol_with_dem_name_to_list): Ditto.
2472
2473 * objfiles.h: Update copyright.
2474 (struct bcache): Declare opaque. Do not include "bcache.h".
2475 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2476 bcache'' pointers.
2477 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2478
2479 * objfiles.c: Include "bcache.h". Update copyright.
2480 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2481 macro_cache.
2482 (free_objfile): Use bcache_xfree.
2483
2484 2002-07-11 Grace Sainsbury <graces@redhat.com>
2485
2486 * monitor.c (monitor_fetch_register): Make name a constant.
2487 (monitor_store_register): Same.
2488
2489 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2490
2491 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2492 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2493 (finish_block) For non-function blocks, hash the symbol table. For
2494 function blocks, mark the symbol table as unhashed.
2495 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2496 (msymbol_hash_iw): Likewise.
2497 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2498 value.
2499 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2500 (lookup_minimal_symbol): Likewise for both.
2501 * symtab.h (struct block): Add `hashtable' flag. Comment the
2502 hashtable.
2503 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2504 (ALL_BLOCK_SYMBOLS): Update.
2505 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2506 (struct symbol): Add `hash_next' pointer.
2507 * symtab.c (lookup_block_symbol): Search using the hash table when
2508 possible.
2509 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2510 (search_symbols, find_addr_symbol): Likewise.
2511
2512 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2513 (read_dst_symtab): Likewise.
2514 * jv-lang.c (get_java_class_symtab): Likewise.
2515 * mdebugread.c: Include "gdb_assert.h".
2516 (shrink_block): Assert that the block being modified is not hashed.
2517 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2518 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2519 symbols.
2520 (dump_symtab): Recognize hashed blocks.
2521 * printcmd.c (print_frame_args): Assert that function blocks do not
2522 have hashed symbol tables.
2523 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2524 (fill_in_ada_prototype, debug_print_block): Likewise.
2525 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2526
2527 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2528
2529 * stack.c (print_frame): Use result of frame_address_in_block()
2530 instead of fi->pc when evaluating symbols.
2531 (backtrace_command_1): Ditto.
2532
2533 2002-07-11 Andrew Cagney <cagney@redhat.com>
2534
2535 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2536 Make static.
2537
2538 * arm-tdep.c (arm_register_name): Make return type constant.
2539
2540 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2541
2542 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2543 prototype.
2544 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2545 * s390-tdep.c (s390_fp_regnum): Ditto.
2546 (s390_read_fp): Ditto.
2547 (s390_pop_frame): Ditto.
2548 (_initialize_s390_tdep): Ditto.
2549 * remote.c (get_remote_state): Ditto.
2550 * procfs.c (mappingflags): Ditto.
2551 * memattr.c (_initialize_mem): Ditto.
2552 * mcore-tdep.c (mcore_pop_frame): Ditto.
2553 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2554 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2555 * language.c (set_case_str): Ditto.
2556 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2557 * frv-tdep.c (new_variant): Ditto.
2558 (frv_stopped_data_address): Ditto.
2559 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2560 (context_alloc): Ditto.
2561 (frame_state_alloc): Ditto.
2562 (unwind_tmp_obstack_init): Ditto.
2563 (unwind_tmp_obstack_free): Ditto.
2564 (cfi_read_fp): Ditto.
2565 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2566 (cris_pop_frame): Ditto.
2567 * c-lang.c (scanning_macro_expansion): Ditto.
2568 (finished_macro_expansion): Ditto.
2569 (c_preprocess_and_parse): Ditto.
2570 * gdbarch.sh: Ditto.
2571 * gdbarch.h, gdbarch.c: Regenerate.
2572 * config/mn10200/tm-mn10200.h: Adjust indentation.
2573 * target.c: Adjust indentation.
2574 * symtab.h: Adjust indentation.
2575 * stabsread.h: Adjust indentation.
2576 * remote-es.c: Adjust indentation.
2577 * os9kread.c: Adjust indentation.
2578
2579 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2580
2581 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2582 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2583
2584 2002-07-10 Grace Sainsbury <graces@redhat.com>
2585
2586 * NEWS: Mention m68k, mcore multi-arching.
2587 * MAINTAINERS: Change status of m68k, mcore to reflect
2588 multi-arching.
2589
2590 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2591
2592 * valops.c (find_overload_match): Free oload_syms.
2593
2594 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2595
2596 Define HAVE_SYS_PROC_H if sys/proc.h exists
2597 * configure.in: Add check for sys/proc.h
2598 * config.in: Regenerate.
2599 * configure: Regenerate.
2600
2601 2002-07-09 Grace Sainsbury <graces@redhat.com>
2602
2603 * config/m68k/tm-m68k.h: Remove macros wrapped in
2604 #if !GDB_MULTI_ARCH.
2605
2606 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2607
2608 * config.in, configure: Regenerate.
2609
2610 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2611
2612 * dwarf2cfi.c: Include "gcore.h".
2613 (execute_stack_op): Fix implementation of the
2614 DW_OP_deref and DW_OP_deref_size operators by letting do their
2615 lookup in the target.
2616
2617 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2618
2619 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2620 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2621 tdep->sc_sp_offset.
2622
2623 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2624
2625 Fix PR gdb/595, gdb/602
2626 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2627 Don't call value_cast, just read the vtable pointer; update comments
2628 to match.
2629
2630 2002-07-05 Grace Sainsbury <graces@redhat.com>
2631
2632 * config/mcore/tm-mcore.h: Remove file.
2633 * config/mcore/mcore.mt: Remove definition of TM_FILE
2634 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2635
2636 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2637
2638 * i386bsd-tdep.c: Include "gdb_string.h".
2639
2640 2002-07-04 Grace Sainsbury <graces@redhat.com>
2641
2642 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2643 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2644 mcore-tdep.
2645 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2646 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2647 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2648 (RETVAL_REGNUM): Move macros from tm-mcore.h
2649 (mcore_reg_struct_has_addr): New function.
2650 (mcore_gdbarch_init): Added initializations for the macros removed
2651 from tm-mcore.h.
2652
2653 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2654
2655 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2656 traditonal string branding within the ELF header.
2657
2658 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2659
2660 * symtab.c (remove_params): New function.
2661 (make_symbol_overload_list): Use it instead of cplus_demangle.
2662 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2663
2664 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2665
2666 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2667
2668 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2669 New variables.
2670 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2671 and tdep->sigtramp_end.
2672 * i386obsd-nat.c: New file.
2673 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2674
2675 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2676 Don't call get_current_frame().
2677
2678 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2679
2680 * i386-nat.c (child_post_startup_inferior): New function
2681 calling i386_cleanup_dregs if
2682 I386_USE_GENERIC_WATCHPOINTS is defined.
2683 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2684 conditional to acknowledge that i386-nat.c has its
2685 own child_post_startup_inferior function.
2686
2687 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2688
2689 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2690 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2691 instead of MAX_REGISTER_RAW_SIZE.
2692 (i386_extract_return_value, i386_extract_struct_value_address):
2693 Convert to use regcache.
2694 (i386_gdbarch_init): Set max_register_raw_size and
2695 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2696 Set extract_return_value and extract_struct_value_address instead
2697 of their deprecated variants.
2698
2699 Convert i386 target to generic dummy frames.
2700 * i386-tdep.c: Include "symfile.h".
2701 (i386_frameless_signal_p): Consider a function to be frameless if
2702 the pc points at the first instruction of the function.
2703 (i386_frame_chain): Handle (generic) call dummies.
2704 (i386_frame_saved_pc): Likewise.
2705 (i386_frame_init_saved_regs): Remove code dealing with call
2706 dummies on the stack.
2707 (i386_push_dummy_frame): Removed.
2708 (i386_call_dummy_words): Removed.
2709 (i386_fix_call_dummy): Removed.
2710 (i386_push_return_address): New function.
2711 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2712 parameter, and don't call get_current_frame.
2713 (i386_pop_frame): New function.
2714 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2715 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2716 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2717 call_dummy_length to 0, set call_dummy_words to NULL, set
2718 sizeof_call_dummy_words to 0, set fix_call_dummy to
2719 generic_fix_call_dummy, set pc_in_call_dummy to
2720 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2721 generic_push_dummy_frame, set push_return_address to
2722 i386_push_return_address and set frame_chain_valid to
2723 generic_file_frame_chain_valid.
2724
2725 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2726
2727 * gdbarch.sh (struct regcache): Add opaque declaration.
2728 (EXTRACT_RETURN_VALUE): New architecture method.
2729 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2730 * gdbarch.h, gdbarch.c: Regenerate.
2731 * arch-utils.c (legacy_extract_return_value): New function.
2732 * arch-utils.h (legacy_extract_return_value): Declare.
2733 * values.c (value_being_returned): Re-enable code handling
2734 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2735 deprecated_grub_regcache_for_registers call to block handling
2736 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2737 (EXTRACT_RETURN_VALUE): Do not define.
2738
2739 2002-07-03 Grace Sainsbury <graces@redhat.com>
2740
2741 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2742 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2743 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2744 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2745 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2746 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2747 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2748 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2749 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2750 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2751 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2752 argument so the function fits the prototype in the architecture
2753 vector.
2754 (mcore_pop_frame): Remove argument so the function fits the
2755 prototype. Use get_current_frame instead of the argument.
2756 (mcore_push_arguments): Change type of struct_return so the
2757 function can be used in the architecture vector.
2758 (mcore_store_struct_return): Add.
2759 (mcore_frame_init_saved_regs): Add.
2760 (mcore_gdbarch_init): Add function calls to replace the macros
2761 removed from tm-mcore.h
2762
2763 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2764
2765 * infcmd.c (print_return_value): Remove compatibility code calling
2766 deprecated_grub_regcache_for_registers.
2767
2768 * values.c: Include "regcache.h".
2769 (value_being_returned): Update. Use
2770 deprecated_grub_regcache_for_registers to extract the register
2771 buffer address.
2772 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2773 ``struct regcache''.
2774 * Makefile.in (values.o): Add dependency on $(regcache_h).
2775
2776 * inferior.h (run_stack_dummy): Change type of second parameter to
2777 a ``struct regcache''.
2778 * valops.c (hand_function_call): Change type of retbuf to ``struct
2779 regcache''. Allocate using regcache_xmalloc, clean using
2780 make_cleanup_regcache_xfree.
2781 * infcmd.c (run_stack_dummy): Update. Use
2782 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2783
2784 * regcache.c (do_regcache_xfree): New function.
2785 (make_cleanup_regcache_xfree): New function.
2786 * regcache.h (make_cleanup_regcache_xfree): Declare.
2787
2788 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2789
2790 * event-top.c (command_line_handler): Don't read past
2791 beginning of buffer.
2792
2793 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2794
2795 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2796 struct frame_id.
2797 (varobj_create): Store frame_id for root.
2798 (varobj_gen_name): Use xasprintf.
2799 (varobj_update): Save and restore frame using get_frame_id() and
2800 frame_find_by_id().
2801 (create_child): Use xasprintf.
2802 (new_root_variable): Initialize frame_id.
2803 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2804 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2805 to prevent memory leak.
2806
2807 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2808
2809 * valops.c (hand_function_call): Move declaration of retbuf to
2810 start of function, allocate using malloc, add a cleanup but before
2811 the inf_status cleanup, cleanup the buffer. Rename local variable
2812 old_chain to inf_status_cleanup.
2813
2814 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2815
2816 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2817
2818 * cli/cli-decode.c (cmd_func_p): New function.
2819 (cmd_func): New function.
2820
2821 * command.h: Add cmd_func() and cmd_func_p().
2822
2823 2002-07-03 Grace Sainsbury <graces@redhat.com>
2824
2825 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2826 (REGISTER_SIZE): Remove.
2827 (MAX_REGISTER_RAW_SIZE): Remove.
2828 (REGISTER_VIRTUAL_TYPE): Remove.
2829 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2830 (REGISTER_NAME): Remove.
2831 (USE_GENERIC_DUMMY_FRAMES): Remove.
2832 (CALL_DUMMY): Remove.
2833 (CALL_DUMMY_START_OFFSET): Remove.
2834 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2835 (CALL_DUMMY_LOCATION): Remove.
2836 (FIX_CALL_DUMMY): Remove.
2837 (CALL_DUMMY_ADDRESS): Remove.
2838 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2839 (SAVE_DUMMY_FRAME_TOS): Remove.
2840 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2841 (mcore_register_virtual_type): New function.
2842 (mcore_register_byte): New function.
2843 (mcore_register_size): New function.
2844 (mcore_register_name): New function.
2845 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2846 macros removed from tm-mcore.h.
2847 (mcore_dump_tdep): Add.
2848 (_initialize_mcore_tdep): Add gdbarch_register call.
2849
2850 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2851
2852 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2853 frameless_look_for_prologue, such that we actually call this
2854 function.
2855
2856 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2857
2858 * frame.h (frame_address_in_block): New function.
2859
2860 * blockframe.c (frame_address_in_block): New function extracted
2861 from get_frame_block().
2862 (get_frame_block): Use frame_address_in_block().
2863 (block_innermost_frame): Use frame_address_in_block() to match
2864 the frame pc address against the block boundaries rather than
2865 the frame pc directly. This prevents a failure when a frame pc
2866 is actually a return-address pointing immediately after the end
2867 of the given block.
2868
2869 2002-07-02 Grace Sainsbury <graces@redhat.com>
2870
2871 * MAINTAINERS: Add self under write after approval.
2872
2873 2002-07-02 Grace Sainsbury <graces@redhat.com>
2874
2875 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2876 used in architecture vector. The default is
2877 m68k_local_breakpoint_from_pc.
2878 (m68k_local_breakpoint_from_pc): Add.
2879 (enum): Add register numbers from tm-m68k.h.
2880 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2881 vector.
2882 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2883 GDB_MULTI_ARCH_PARTIAL.
2884 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2885 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2886 m68k-tdep.c.
2887 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2888 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2889 to enum in m68k-tdep.c
2890
2891 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2892
2893 * solib-osf.c (open_map): Compute the list of shared libraries
2894 loaded by the inferior, rather than the list of libraries loaded
2895 by GDB itself. Otherwise, GDB ends up reading the symbols from
2896 the wrong shared libraries...
2897
2898 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2899
2900 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2901 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2902 macros.
2903 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2904 Remove functions.
2905 (FRAMELESS_SIGNAL): Remove function.
2906 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2907 i386_linux_saved_pc_after_call): Removed.
2908 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2909 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2910 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2911
2912 * i386-tdep.c (i386_frameless_signal_p): New function.
2913 (i386_frame_chain): Deal with frameless signals.
2914 (i386_sigtramp_saved_sp): New function.
2915 (i386_frame_saved_pc): Deal with frameless signals.
2916 (i386_saved_pc_after_call): Make sure the correct value is
2917 returned just after entry into a sigtramp.
2918 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2919 i386fbsd4_sc_sp_offset): New variables.
2920 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2921 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2922 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2923 similiar to what we already did for sc_pc_offset.
2924 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2925 tdep->sc_sp_offset.
2926
2927 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2928
2929 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2930
2931 * config/i386/tm-x86-64linux.h: New.
2932 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2933 definitions.
2934 * config/i386/nm-x86-64.h: Rename to ...
2935 * config/i386/nm-x86-64linux.h: ... this one.
2936 * config/i386/x86-64linux.mh: Reflect the above change.
2937
2938 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2939
2940 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2941 with sigcontext_addr. Add sc_sp_offset.
2942 (i386bsd_sigtramp_saved_pc): Remove prototype.
2943 (i386bsd_sicontext_addr): Add prototype.
2944 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2945 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2946 (i386_svr4_sigtramp_saved_pc): Removed.
2947 (i386_svr4_sigcontext_addr): New function.
2948 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2949 Initialize tdep->sigcontext_addr instead. Initialize
2950 tdep->sc_pc_offset and tdep->sc_sp_offset.
2951 (i386_gdbarch_init): Likewise.
2952 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2953 any more.
2954 (i386bsd_sigtramp_saved_pc): Remove function.
2955 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2956 Initialize tdep->sigcontext_addr instead. Initialize
2957 tdep->sc_pc_offset.
2958 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2959 of tdep->sigtramp_saved_pc.
2960 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2961 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2962 instead.
2963
2964 * i386-tdep.c (i386_frameless_function_invocation,
2965 i386_frame_num_args, i386_frame_init_saved_regs,
2966 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2967 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2968 i386_extract_return_value, i386_store_return_value,
2969 i386_extract_struct_value_address, i386_register_virtual_type,
2970 i386_register_convertible, i386_register_convert_to_virtual,
2971 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2972 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2973 static.
2974
2975 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2976
2977 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2978
2979 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2980 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2981 this macro. Include "value.h".
2982
2983 2002-06-30 Aidan Skinner <aidan@velvet.net>
2984
2985 * ada-exp.tab.c: remove as it's a generated file
2986 * ada-lex.c: remove as it's a generated file
2987
2988 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2989
2990 * config/i386/tm-i386.h (struct frame_info, struct
2991 frame_saved_regs, struct value, struct type): Remove forward
2992 declarations.
2993
2994 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2995 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2996 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2997 (FILL_FPXREGSET): Define.
2998
2999 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3000
3001 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3002 i[3456]86-*-netbsd* case.
3003 * config/i386/tm-obsd.h: Removed.
3004 * config/i386/obsd.mt: Removed.
3005 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3006 core-aout.o.
3007 (MH_CFLAGS): Add -DYYDEBUG=0.
3008
3009 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3010 i386nbsd_sc_pc_offset on OpenBSD too.
3011
3012 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3013 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3014 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3015 define.
3016 * i386bsd-tdep.c: Include "arch-utils.h".
3017 (i386bsd_aout_in_solib_call_trampoline): New function.
3018 (i386bsd_init_abi): Set in_solib_call_trampoline to
3019 i386bsd_aout_in_solib_call_trampoline.
3020 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3021 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3022
3023 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3024
3025 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3026 (struct obstack, struct bcache): Add opaque declarations.
3027 * Makefile.in (macrotab_h): Update
3028
3029 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3030
3031 * blockframe.c (generic_find_dummy_frame): Change return type to
3032 ``struct regcache''.
3033 (struct dummy_frame): Replace field ``registers'' with regcache, a
3034 struct regcache object.
3035 (generic_find_dummy_frame): Update.
3036 (generic_push_dummy_frame): Update. Use regcache_xfree,
3037 regcache_xmalloc and regcache_cpy.
3038 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3039 regcache_xfree.
3040 (deprecated_generic_find_dummy_frame): Update.
3041 (generic_read_register_dummy): Update. Use
3042 regcache_read_as_address.
3043 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3044 (generic_get_saved_register): Update. Use regcache_read.
3045
3046 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3047
3048 * Makefile.in (objfiles_h): Add $(bcache_h).
3049 * objfiles.h: Include "bcache.h".
3050
3051 * Makefile.in (symtab_h): Remove $(bcache_h).
3052 * symtab.h: Do not include "bcache.h".
3053
3054 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3055
3056 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3057 generic_func_frame_chain_valid.
3058
3059 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3060
3061 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3062 * config/i386/tm-fbsd.h: Likewise.
3063
3064 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3065
3066 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3067 generic_unwind_get_saved_register.
3068
3069 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3070
3071 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3072 * regcache.c (supply_register): Add missing argument to
3073 register_buffer call.
3074
3075 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3076
3077 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3078 Solaris /bin/grep does not not like it. From Peter Schauer.
3079
3080 2002-06-26 Tom Tromey <tromey@redhat.com>
3081
3082 * command.h (add_setshow_cmd): Declare.
3083 (add_setshow_cmd_full): Declare.
3084 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3085 returns void. Use add_setshow_cmd_full.
3086 (add_setshow_cmd_full): New function.
3087 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3088 (add_setshow_boolean_cmd): Likewise.
3089
3090 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3091
3092 * config/vax/tm-vax.h: Protect from multiple inclusion.
3093 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3094 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3095 * config/vax/tm-vaxbsd.h: ...here. New file.
3096 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3097
3098 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3099
3100 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3101 (BELIEVE_PCC_PROMOTION): Remove.
3102 (AP_REGNUM): Move to...
3103 * config/vax/nm-vax.h: ...here.
3104 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3105 (vax_breakpoint_from_pc): New function.
3106 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3107 and gdbarch_believe_pcc_promotion.
3108
3109 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3110
3111 * Makefile.in (vax_tdep_h): Define.
3112 (vax-tdep.o): Use $(vax_tdep_h).
3113 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3114 (vax_dump_tdep): New function.
3115 (_initialize_vax_tdep): Register vax_dump_tdep.
3116 * vax-tdep.h: Include osabi.h.
3117 (struct gdbarch_tdep): New.
3118
3119 2002-06-26 Andrew Cagney <cagney@redhat.com>
3120
3121 * frame.h (deprecated_generic_find_dummy_frame): Rename
3122 generic_find_dummy_frame.
3123 * blockframe.c (generic_find_dummy_frame): Make static.
3124 (deprecated_generic_find_dummy_frame): New function.
3125 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3126 generic_find_dummy_frame with deprecated_find_dummy_frame.
3127 (sh64_nofp_frame_init_saved_regs): Ditto.
3128 (sh_fp_frame_init_saved_regs): Ditto.
3129 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3130 (s390_frame_chain): Ditto.
3131 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3132
3133 2002-06-26 Grace Sainsbury <graces@redhat.com>
3134
3135 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3136 gdbarch vector are at the top.
3137 (NUM_REGS): Remove.
3138 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3139 (FRAME_ARGS_ADDRESS): Remove.
3140 (FRAME_LOCALS_ADDRESS): Remove.
3141 (FRAME_NUM_ARGS): Remove.
3142 (FRAME_ARGS_SKIP): Remove.
3143 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3144 (m68k_gdbarch_init): Add gdbarch initializations for macros
3145 undefined in tm-m68k.h
3146
3147 2002-06-26 Grace Sainsbury <graces@redhat.com>
3148
3149 * monitor.h: Add the function regname to monitor_ops
3150 structure. This way NUM_REGS does not have to be a constant.
3151 * monitor.c (monitor_fetch_register): Added support for regname
3152 function. The function is called if the array regnames is NULL.
3153 (monitor_store_register): Same.
3154 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3155 regnames array.
3156 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3157 cpu32bug_cmds.regname to point to new function.
3158 * abug-rom.c (abug_regname): Same as above.
3159 (init_abug_cmds): Same.
3160 * dbug-rom.c (dbug_regname): Same as above.
3161 (init_dbug_cmds): Same.
3162 * remote-est.c (est_regname): Same.
3163 (init_est_cmds): Same.
3164 * rom68k-rom.c (rom68k_regname): Same.
3165 (init_rom68k_cmds): Same.
3166
3167 2002-06-25 Tom Tromey <tromey@redhat.com>
3168
3169 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3170
3171 2002-06-25 Andrew Cagney <cagney@redhat.com>
3172
3173 * infrun.c (stop_registers): Change variable's type to ``struct
3174 regcache'''.
3175 (xmalloc_inferior_status): Delete function.
3176 (free_inferior_status): Delete function.
3177 (normal_stop): Use regcache_cpy.
3178 (struct inferior_status): Change type of fields ``stop_registers''
3179 and ``registers'' to ``struct regcache''.
3180 (write_inferior_status_register): Use regcache_write.
3181 (save_inferior_status): Instead of calling
3182 xmalloc_inferior_status, allocate the inf_status buffer directly.
3183 Use regcache_dup_no_passthrough and regcache_dup to save the
3184 buffers.
3185 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3186 Replace the stop_registers regcache instead of overriding it. Use
3187 regcache_xfree. Instead of calling free_inferior_status, xfree
3188 the buffer directly.
3189 (discard_inferior_status): Use regcache_xfree. Instead of calling
3190 free_inferior_status, xfree the buffer directly.
3191 (build_infrun): Use regcache_xmalloc.
3192 (_initialize_infrun): Delete redundant call to build_infrun.
3193
3194 * Makefile.in (infcmd.o): Add $(regcache_h).
3195
3196 * infcmd.c: Include "regcache.h".
3197 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3198 obtain the address of `stop_registers' register buffer.
3199 (print_return_value): Ditto.
3200
3201 * inferior.h (struct regcache): Add opaque declaration.
3202 (stop_registers): Change variable's declared type to ``struct
3203 regcache''.
3204
3205 2002-06-24 Tom Tromey <tromey@redhat.com>
3206
3207 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3208 * target.c (initialize_targets): Fixed typo in
3209 trust-readonly-sections `show' documentation.
3210
3211 * main.c: Marked all strings with _().
3212
3213 2002-06-24 Don Howard <dhoward@redhat.com>
3214
3215 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3216 that means max CORE_ADDR+1.
3217 (lookup_mem_region): Ditto.
3218 (mem_info_command): Ditto.
3219
3220 2002-06-24 Grace Sainsbury <graces@redhat.com>
3221
3222 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3223 (REGISTER_BYTES_OK): Remove.
3224 (REGISTER_BYTES): Remove.
3225 (STORE_STRUCT_RETURN): Remove.
3226 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3227 (STORE_RETURN_VALUE): Remove.
3228 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3229 (FRAME_CHAIN): Remove.
3230 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3231 (FRAME_SAVED_PC): Remove.
3232 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3233 (m68k_store_struct_return): Add.
3234 (m68k_deprecated_extract_return_value): Add.
3235 (m68k_deprecated_extract_struct_value_address): Add.
3236 (m68k_store_return_value): Add.
3237 (m68k_frame_chain): Add.
3238 (m68k_frameless_function_invocation): Add.
3239 (m68k_frame_saved_pc): Add.
3240 (m68k_gdbarch_init): added set_gdbarch calls for new
3241 functions and deleted macros.
3242
3243 2002-06-23 Tom Tromey <tromey@redhat.com>
3244
3245 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3246 (ALLDEPFILES): Likewise.
3247 (udiheaders): Removed.
3248 (udip2soc.o): Likewise.
3249 (udi2go32.o): Likewise.
3250 (udr.o): Likewise.
3251 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3252
3253 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3254
3255 * infrun.c (_initialize_infrun): Delete unnecessary call to
3256 build_infrun.
3257
3258 * regcache.h: Update comments describing the regcache_cpy family
3259 of functions.
3260 (regcache_save, regcache_restore): Delete declaration.
3261 (regcache_save_no_passthrough): Delete declaration.
3262 (regcache_restore_no_passthrough): Delete declaration.
3263 * regcache.c (regcache_save): Delete function.
3264 (regcache_save_no_passthrough): Delete function.
3265 (regcache_restore): Delete function.
3266 (regcache_restore_no_passthrough): Delete function.
3267
3268 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3269
3270 * config/m68k/tm-m68k.h: Fix typo.
3271 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3272 (m68k_frame_init_saved_regs): Declare.
3273
3274 2002-06-21 Jim Blandy <jimb@redhat.com>
3275
3276 Remove some vestiges of Harris 88k support.
3277 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3278 register numbering quirk.
3279 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3280 odd symbols occurring in Harris 88k ELF targets.
3281
3282 2002-06-21 Tom Tromey <tromey@redhat.com>
3283
3284 * gdb_locale.h: New file.
3285 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3286 (defs_h): Added gdb_locale.h.
3287 * configure, config.in: Rebuilt.
3288 * configure.in (PACKAGE): Define.
3289 * defs.h: Include gdb_locale.h.
3290 * main.c (captured_main): Call setlocale, bindtextdomain,
3291 textdomain.
3292
3293 2002-06-21 Dave Brolley <brolley@redhat.com>
3294
3295 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3296 * config/frv/frv.mt: New file.
3297 * config/frv/tm-frv.h: New file.
3298 * configure.tgt: Support frv-*-*.
3299 * Makefile.in (frv-tdep.o): New target.
3300 * frv-tdep.c: New file.
3301 * NEWS: Mention frv.
3302
3303 2002-06-21 Dave Brolley <brolley@redhat.com>
3304
3305 * MAINTAINERS: Add self to "Write After Approval" list.
3306
3307 2002-06-21 Grace Sainsbury <graces@redhat.com>
3308
3309 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3310 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3311 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3312 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3313 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3314
3315 * m68k-tdep.c: Include arch-utils.h
3316 (m68k_register_raw_size): Add.
3317 (m68k_register_virtual_size): Add.
3318 (m68k_register_virtual_type): Add.
3319 (m68k_register_name): Add.
3320 (m68k_stack_align): Add.
3321 (m68k_register_byte): Add.
3322 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3323 tm-m68k.h.
3324
3325 2002-06-21 Grace Sainsbury <graces@redhat.com>
3326
3327 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3328 m68k_find_saved_regs.
3329 (m68k_pop_frame): Removed saved_regs structure, and replaced
3330 references to it with frame->saved_regs.
3331 (m68k_gdbarch_init): Added function calls to initialize the
3332 gdbarch structure.
3333 (m68k_fix_call_dummy): Add.
3334 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3335 (CALL_DUMMY): Remove.
3336 (CALL_DUMMY_LENGTH): Remove.
3337 (CALL_DUMMY_START_OFFSET): Remove.
3338 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3339 (FIX_CALL_DUMMY): Remove.
3340 (PUSH_DUMMY_FRAME): Remove.
3341 (POP_FRAME): Remove.
3342
3343 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3344
3345 * parse.c (parse_fprintf): New function used to avoid calls to
3346 fprintf in bison parser generated debug code.
3347 * parser-defs.h: Declaration of new parse_fprintf function.
3348 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3349 Set YYDEBUG to 1 by default.
3350 Set YYFPRINTF as parse_fprintf.
3351
3352 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3353
3354 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3355 encoding anymore.
3356 (pointer_encoding, enum ptr_encoding): New.
3357 (execute_cfa_program): Take care about pointer encoding.
3358 (dwarf2_build_frame_info): Only call parse_frame_info for
3359 .debug_frame and .eh_frame.
3360 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3361 fixed augmentation handling, added relative addressing,
3362 ignore duplicate FDEs. Added comments.
3363 * dwarf2cfi.c: Reindented.
3364
3365 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3366
3367 * event-top.c (command_handler): Don't use space_at_cmd_start
3368 unless there is sbrk() on the host. Assign time and space data
3369 to union fields of the appropriate length.
3370
3371 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3372
3373 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3374 x86_64_register_name. Return type changed to 'const char *'.
3375 (x86_64_register_name2nr): Rename to x86_64_register_number.
3376 (x86_64_gdbarch_init): Update to reflect the change.
3377 * x86-64-tdep.h: Ditto.
3378 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3379 (supply_fpregset): Ditto.
3380
3381 2002-06-19 Andrew Cagney <cagney@redhat.com>
3382
3383 * regcache.h: Update copyright.
3384 (struct regcache, struct gdbarch): Add opaque declarations.
3385 (current_regcache): Declare global variable.
3386 (regcache_read, regcache_write): Add gdbarch parameter.
3387 (regcache_save, regcache_save_no_passthrough)
3388 (regcache_restore, regcache_restore_no_passthrough)
3389 (regcache_dup, regcache_dup_no_passthrough)
3390 (regcache_cpy, regcache_cpy_no_passthrough)
3391 (deprecated_grub_regcache_for_registers)
3392 (deprecated_grub_regcache_for_register_valid)
3393 (regcache_valid_p): Add function declarations.
3394
3395 * regcache.c: Update copyright.
3396 (regcache_descr_handle): New global variable.
3397 (struct regcache_descr): Define.
3398 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3399 (regcache_descr, xfree_regcache_descr): New functions.
3400 (struct regcache): Define.
3401 (regcache_xmalloc, regcache_xfree): New functions.
3402 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3403 (regcache_dup, regcache_dup_no_passthrough): New functions.
3404 (regcache_valid_p, regcache_read_as_address): New functions.
3405 (deprecated_grub_regcache_for_registers): New function.
3406 (deprecated_grub_regcache_for_register_valid): New function.
3407 (current_regcache): New global variable.
3408 (register_buffer): Add regcache parameter. Update calls.
3409 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3410 (read_register_gen, write_register_gen): Update register_buffer
3411 call. Test for legacy_p instead of gdbarch_register_read_p or
3412 gdbarch_register_write_p.
3413 (regcache_collect): Update register_buffer call.
3414 (build_regcache): Rewrite. Use deprecated grub functions.
3415 (regcache_save, regcache_save_no_passthrough): New functions.
3416 (regcache_restore, regcache_restore_no_passthrough): New
3417 functions.
3418 (_initialize_regcache): Create the regcache_data_handle. Swap
3419 current_regcache global variable.
3420
3421 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3422 parameter to regcache_read and regcache_write calls.
3423 (sh4_register_read): Ditto.
3424 (sh64_pseudo_register_read): Ditto.
3425 (sh64_register_read): Ditto.
3426 (sh_pseudo_register_write): Ditto.
3427 (sh4_register_write): Ditto.
3428 (sh64_pseudo_register_write): Ditto.
3429 (sh64_register_write): Ditto.
3430
3431 * defs.h (XCALLOC): Define.
3432
3433 2002-06-19 Grace Sainsbury <graces@redhat.com>
3434
3435 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3436 * m68k-tdep.c (m68k_gdbarch_init): Added.
3437 (m68k_dump_tdep): Added.
3438
3439 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3440
3441 * ada-lang.c (fill_in_ada_prototype): Update comment.
3442
3443 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3444
3445 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3446 MIPS_ABI_LAST.
3447 (mips_abi_string, mips_abi_strings): New.
3448 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3449 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3450 tdep->mips_abi_string. Honor mips_abi_string. Default to
3451 O32 if no ABI is found.
3452 (mips_dump_tdep): Use mips_abi_strings.
3453 (mips_abi_update): New function.
3454 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3455 ``set mips abi'' and ``show mips abi''. Check the size of
3456 mips_abi_strings.
3457
3458 2002-06-19 Andrew Cagney <cagney@redhat.com>
3459
3460 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3461 constant.
3462
3463 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3464
3465 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3466 current frame using only the first stack size adjustment. All
3467 subsequent size adjustments are not considered to be part of
3468 the "static" part of the current frame.
3469 Compute the address of the saved registers relative to the
3470 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3471 in use in this frame.
3472
3473 2002-06-18 Don Howard <dhoward@redhat.com>
3474
3475 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3476 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3477 suggesting this solution.
3478
3479 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3480
3481 * config/romp/xm-rtbsd.h: Delete file.
3482 * config/romp/rtbsd.mh: Delete file.
3483
3484 2002-06-18 Keith Seitz <keiths@redhat.com>
3485
3486 * breakpoint.c (condition_command): Post breakpoint_modify
3487 when a condition is added to an existing breakpoint.
3488 (commands_command): Likewise for commands.
3489 (set_ignore_count): Likewise for ignore counts.
3490 If no tty, do not simply return, still need to send event
3491 notification.
3492 (ignore_command): Only print a newline if the command came
3493 from a tty.
3494 Don't call breakpoints_changed, since this is now properly
3495 handled by set_ignore_count.
3496
3497 2002-06-18 Andrew Cagney <cagney@redhat.com>
3498
3499 * MAINTAINERS: Note that cris-elf target can be compiled with
3500 -Werror.
3501 * cris-tdep.c (cris_register_name): Make return type constant.
3502 (cris_breakpoint_from_pc): Ditto.
3503
3504 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3505
3506 * frame.h (struct frame_info): Change type of context to
3507 'struct context'.
3508
3509 2002-06-17 Andrew Cagney <cagney@redhat.com>
3510
3511 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3512 pointer.
3513 * gdbarch.h, gdbarch.c: Regenerate.
3514 * config/mips/tm-mips.h (mips_register_name): Update.
3515 * i386-tdep.h (i386_register_name): Update.
3516 * mips-tdep.c (mips_register_name): Update
3517 * alpha-tdep.c (alpha_register_name): Update.
3518 * arch-utils.c (legacy_register_name): Update.
3519 * arch-utils.h (legacy_register_name): Update.
3520 * avr-tdep.c (avr_register_name): Update.
3521 * ia64-tdep.c (ia64_register_name): Update.
3522 * i386-tdep.c (i386_register_name): Update.
3523 * sparc-tdep.c (sparc32_register_name): Update.
3524 (sparc64_register_name): Update.
3525 (sparclite_register_name): Update.
3526 (sparclet_register_name): Update.
3527 * sh-tdep.c (sh_generic_register_name): Update.
3528 (sh_sh_register_name): Update.
3529 (sh_sh3_register_name): Update.
3530 (sh_sh3e_register_name): Update.
3531 (sh_sh_dsp_register_name): Update.
3532 (sh_sh3_dsp_register_name): Update.
3533 (sh_sh4_register_name): Update.
3534 (sh_sh64_register_name): Update.
3535 * s390-tdep.c (s390_register_name): Update.
3536 * rs6000-tdep.c (rs6000_register_name): Update.
3537 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3538 (ns32k_register_name_32382): Update.
3539 * d10v-tdep.c (d10v_ts2_register_name): Update.
3540 (d10v_ts3_register_name): Update.
3541 * xstormy16-tdep.c (xstormy16_register_name): Update.
3542 * vax-tdep.c (vax_register_name): Update.
3543 * v850-tdep.c (v850_register_name): Update.
3544 * m68hc11-tdep.c (m68hc11_register_name): Update.
3545 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3546 (am33_register_name): Update.
3547
3548 2002-06-17 Grace Sainsbury <graces@redhat.com>
3549
3550 * m68k-tdep.c: Reindented.
3551
3552 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3553
3554 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3555 list of predefined types.
3556
3557 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3558
3559 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3560 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3561 REGISTER_CONVERT_TO_RAW): Remove defines.
3562 (i386_register_virtual_type, i386_register_convertible,
3563 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3564 Remove prototypes.
3565 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3566 macros mentioned above.
3567
3568 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3569 (i386lynx_saved_pc_after_call): Remove prototype.
3570 * i386ly-tdep.c: Include "i386-tdep.h".
3571 (i386lynx_saved_pc_after_call): Make static. Use
3572 read_memory_nobpt instead of read_memory. Use
3573 read_memory_unsigned_integer instead of read_memory_integer.
3574 (i386lynx_init_abi): New function.
3575 (i386lynx_coff_osabi_sniffer): New function.
3576 (_initialize_i386bsd_tdep): New function.
3577
3578 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3579 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3580 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3581 (i386_fix_call_dummy): Remove prototype.
3582 * i386-tdep.c (i386_call_dummy_words): New variable.
3583 (i386_gdbarch_init): Adjust for removal of the
3584 macros mentioned above.
3585
3586 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3587
3588 * command.h (add_setshow_auto_boolean_cmd): Replace
3589 add_set_auto_boolean_cmd.
3590 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3591 add_set_auto_boolean_cmd.
3592 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3593 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3594 mask-address'' command.
3595 (show_mask_address): Add cmd parameter.
3596 * remote.c (add_packet_config_cmd): Update. Change type of
3597 set_func and show_func to cmd_sfunc_ftype.
3598 (_initialize_remote): Update `set remote Z-packet'
3599 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3600 (show_remote_protocol_e_packet_cmd): Ditto.
3601 (show_remote_protocol_E_packet_cmd): Ditto.
3602 (show_remote_protocol_P_packet_cmd): Ditto.
3603 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3604 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3605 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3606 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3607 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3608 (show_remote_protocol_Z_packet_cmd): Ditto.
3609 (show_remote_protocol_binary_download_cmd): Ditto.
3610 (show_remote_cmd): Pass NULL to all of above.
3611
3612 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3613
3614 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3615 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3616 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3617 POP_FRAME): Remove defines.
3618 (i386_push_arguments, i386_store_struct_return,
3619 i386_extract_return_value, i386_store_return_value,
3620 i386_extract_struct_value_address, i386_push_dummy_frame,
3621 i386_pop_frame): Renove prototypes.
3622 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3623 macros mentioned above.
3624
3625 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3626
3627 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3628 add_set_boolean_cmd.
3629 (add_setshow_cmd): New function.
3630 * command.h (add_setshow_boolean_cmd): Replace
3631 add_set_boolean_cmd.
3632 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3633 and ``set rdiromatzero''.
3634 * maint.c (_initialize_maint_cmds): Update commented out code.
3635 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3636 * target.c (initialize_targets): Update `set
3637 trust-readonly-sections'.
3638 * remote.c (_initialize_remote): Update `set remotebreak'.
3639
3640 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3641
3642 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3643 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3644 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3645 fit into multi-arch framework.
3646 (i386_breakpoint_from_pc): New function.
3647 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3648 above.
3649
3650 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3651 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3652 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3653 (i386_frameless_function_invocation, i386_frame_num_args,
3654 i386_frame_init_saved_regs): Remove prototypes.
3655 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3656 macros mentioned above.
3657
3658 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3659
3660 * cli/cli-decode.c (set_cmd_cfunc): Update.
3661 (set_cmd_sfunc): Update.
3662 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3663 (set_cmd_sfunc, set_cmd_cfunc): Update.
3664 * cli/cli-decode.h: Update.
3665
3666 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3667
3668 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3669 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3670
3671 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3672
3673 * defs.h (auto_boolean): Declare enum.
3674 * command.h (cmd_auto_boolean): Delete enum.
3675 * mips-tdep.c (mask_address_var): Update.
3676 (mips_mask_address_p): Update.
3677 (show_mask_address): Update.
3678 * remote.c (struct packet_config): Update.
3679 (update_packet_config): Update.
3680 (show_packet_config_cmd): Update.
3681 (packet_ok): Update.
3682 (add_packet_config_cmd): Update.
3683 (_initialize_remote):
3684 * command.h: Update.
3685 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3686 (do_setshow_command): Update.
3687 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3688 * cli/cli-decode.h: Update.
3689
3690 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3691
3692 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3693 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3694 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3695 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3696 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3697 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3698
3699 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3700 list of DJGPP COFF targets.
3701
3702 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3703 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3704 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3705 (FP0_REGNUM): Remove define.
3706 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3707 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3708 (i386_register_virtual_size): Remove protoype.
3709 * i386-tdep.c (i386_register_virtual_size): Removed.
3710 (i386_extract_return_value, i386_store_return_value): Use
3711 FP0_REGNUM instead of NUM_FREGS to determine whether the
3712 floating-point registers are available.
3713 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3714 Adjust for removal of macros mentioned above.
3715
3716 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3717
3718 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3719 comments.
3720 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3721 Remove prototypes.
3722 (supply_gregset, fill_gregset): Remove use of register keyword and
3723 remove declaration for regmap. Use I386_NUM_GREGS instead of
3724 NUM_REGS and NUM_FREGS.
3725 (FPREGSET_FSAVE_OFFSET): Remove.
3726 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3727 NUM_FREGS to determine whether the floating-point registers are
3728 available.
3729
3730 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3731 gnu_store_registers): Replace usage of NUM_GREGS with
3732 I386_NUM_GREGS.
3733
3734 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3735 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3736 usage of NUM_GREGS with I386_NUM_GREGS.
3737
3738 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3739
3740 * i386bsd-nat.c: Include "i386-tdep.h".
3741 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3742 I386_NUM_GREGS.
3743
3744 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3745 and associated comment. They no longer make any sense, since we
3746 don't use this file anymore on Linux.
3747
3748 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3749 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3750 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3751 elements in these arrays.
3752 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3753 MAX_NUM_REGS.
3754
3755 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3756
3757 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3758 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3759
3760 2002-06-14 Andrew Cagney <cagney@redhat.com>
3761
3762 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3763 EXTRACT_RETURN_VALUE.
3764 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3765 EXTRACT_STRUCT_VALUE_ADDRESS.
3766 * gdbarch.h, gdbarch.c: Regenerate.
3767
3768 * values.c (value_being_returned): Handle
3769 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3770 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3771
3772 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3773 * arm-tdep.c (arm_gdbarch_init): Update.
3774 * avr-tdep.c (avr_gdbarch_init): Update.
3775 * cris-tdep.c (cris_gdbarch_init): Update.
3776 * d10v-tdep.c (d10v_gdbarch_init): Update.
3777 * ia64-tdep.c (ia64_gdbarch_init): Update.
3778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3779 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3780 * s390-tdep.c (s390_gdbarch_init): Update.
3781 * sh-tdep.c (sh_gdbarch_init): Update.
3782 * s390-tdep.c (s390_gdbarch_init): Update.
3783 * sparc-tdep.c (sparc_gdbarch_init): Update.
3784 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3785 * v850-tdep.c (v850_gdbarch_init): Update.
3786 * vax-tdep.c (vax_gdbarch_init): Update.
3787 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3788 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3789
3790 * config/arc/tm-arc.h: Update.
3791 * config/d30v/tm-d30v.h: Update.
3792 * config/fr30/tm-fr30.h: Update.
3793 * config/h8300/tm-h8300.h: Update.
3794 * config/h8500/tm-h8500.h: Update.
3795 * config/i386/tm-i386.h: Update.
3796 * config/i386/tm-ptx.h: Update.
3797 * config/i386/tm-symmetry.h: Update.
3798 * config/i960/tm-i960.h: Update.
3799 * config/m32r/tm-m32r.h: Update.
3800 * config/m68k/tm-delta68.h: Update.
3801 * config/m68k/tm-linux.h: Update.
3802 * config/m68k/tm-m68k.h: Update.
3803 * config/m88k/tm-m88k.h: Update.
3804 * config/mcore/tm-mcore.h: Update.
3805 * config/mips/tm-mips.h: Update.
3806 * config/mn10200/tm-mn10200.h: Update.
3807 * config/pa/tm-hppa.h: Update.
3808 * config/pa/tm-hppa64.h: Update.
3809 * config/sparc/tm-sp64.h: Update.
3810 * config/sparc/tm-sparc.h: Update.
3811 * config/sparc/tm-sparclet.h: Update.
3812 * config/z8k/tm-z8k.h: Update.
3813
3814 2002-06-14 Andrew Cagney <cagney@redhat.com>
3815
3816 * Makefile.in (i386_linux_tdep_h): Define.
3817 (i386_tdep_h, i387_tdep_h): Define.
3818 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3819 $(i386_tdep_h) and $(i387_tdep_h).
3820 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3821
3822 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3823
3824 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3825 Already covered by the default.
3826
3827 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3828 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3829 (i386_gdbarch_init): Initialize long_double_format and long_double
3830 bit.
3831
3832 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3833 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3834 Move these to ...
3835 * config/i386/i386sol2.mh: ... here.
3836 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3837 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3838 (SIGCONTEXT_PC_OFFSET): Remove define.
3839 (IN_SIGTRAMP): Remove define.
3840 * i386-sol2-tdep.c: New file.
3841
3842 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3843 * config/i386/tm-i386nw.h: Removed.
3844
3845 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3846 USE_STRUCT_CONVENTION): Remove defines.
3847 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3848 (get_longjmp_target): Remove prototype.
3849 (IN_SIGTRAMP): Remove define.
3850 (i386bsd_in_sigtramp): Remove prototype.
3851 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3852 function. Update comment accordingly
3853 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3854 (FRAME_SAVED_PC): Remove define.
3855 (i386bsd_frame_saved_pc): Remove prototype.
3856 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3857 GET_LONGJMP_TARGET): Remove defines.
3858 (get_longjmp_target): Remove prototype.
3859 (IN_SIGTRAMP): Remove define.
3860 (i386bsd_in_sigtramp): Remove prototype.
3861 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3862 function. Update comment accordingly
3863 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3864 (FRAME_SAVED_PC): Remove define.
3865 (i386bsd_frame_saved_pc): Remove prototype.
3866 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3867 Remove prototype.
3868 (USE_STRUCT_CONVENTION): Remove prototype.
3869 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3870 declaration.
3871 (_initialize_i386bsd_nat): Revise logic to determine some
3872 constants at compile time when compiling a native GDB. Warn if
3873 things don't match up with what we expect.
3874 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3875 Remove variables.
3876 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3877 to use date stored in `struct gdbarch_tdep'.
3878 (i386bsd_sigcontext_offset): Remove varaible.
3879 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3880 stored in `struct gdbarch_tdep'.
3881 (i386bsd_frame_saved_pc): Make static.
3882 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3883 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3884 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3885 i386fbsd4_sc_pc_offset): New variables.
3886 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3887 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3888 functions.
3889 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3890 functions.
3891 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3892 Modify the value of i386fbsd_sigtramp_start and
3893 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3894 i386fbsd_sigtramp_end.
3895 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3896 function.
3897
3898 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3899 define to i386-linux-tdep.h.
3900 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3901 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3902 defines.
3903 (i386_linux_register_name, i386_linux_register_byte,
3904 i386_linux_register_raw_size): Remove prototypes.
3905 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3906 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3907 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3908 TARGET_WRITE_PC): Remove defines.
3909 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3910 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3911 i386_linux_write_pc): Remove prototypes.
3912 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3913 (get_longjmp_target): Remove prototype.
3914 * i386-linux-tdep.h: New file.
3915 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3916 * i386-linux-tdep.c: Include "i386-tdep.h" and
3917 "i386-linux-tdep.h".
3918 (i386_linux_register_name, i386_linux_register_byte,
3919 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3920 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3921 Make static.
3922 (i386_linux_init_abi): New function.
3923 (_initialize_i386_linux_tdep): New function.
3924
3925 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3926 (i386_saved_pc_after_call): Remove prototype.
3927 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3928 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3929 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3930 (i386_register_name, i386_stab_reg_to_regnum,
3931 i386_dwarf_reg_to_regnum): Remove prototypes.
3932 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3933 SIZEOF_SSE_REGS): Remove defines.
3934 (REGISTER_BYTES): Remove define.
3935 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3936 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3937 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3938 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3939 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3940 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3941 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3942 (get_longjmp_target): Remove prototype.
3943 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3944 (sigtramp_saved_pc): Remove define.
3945 (i386v4_sigtramp_saved_pc): Remove prototype.
3946 * config/i386/tm-go32.h (FRAME_CHAIN,
3947 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3948 (i386go32_frame_saved_pc): Remove prototype.
3949 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3950 (get_longjmp_target): Remove prototype.
3951 * i386-tdep.h: Include "osabi.h".
3952 (enum i386_abi): Removed.
3953 (enum struct_return): New enum.
3954 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3955 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3956 sc_pc_offset members.
3957 (i386_gdbarch_register_os_abi): Remove prototype.
3958 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3959 I386_SSE_NUM_REGS): New defines.
3960 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3961 I386_SSE_SIZEOF_REGS): New defines.
3962 (i386_register_name, i386_register_byte, i386_register_raw_size):
3963 New prototypes.
3964 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3965 (i386bsd_sigtramp_saved_pc): New prototype.
3966 * i386-tdep.c: Don't include "elf-bfd.h".
3967 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3968 i386_frame_chain, i386_saved_pc_after_call): Make static.
3969 (i386_frame_saved_pc): Rewrite to call architecture dependent
3970 function to deal with signal handlers. Make static.
3971 (i386go32_frame_saved_pc): Removed.
3972 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3973 Removed.
3974 (i386_get_longjmp_target): New function.
3975 (default_struct_convention, pcc_struct_convention,
3976 reg_struct_convention, valid_conventions, struct_convention): New
3977 variables.
3978 (i386_use_struct_convention): New function.
3979 (i386v4_sigtramp_saved_pc): Renamed to
3980 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3981 (i386_pc_in_sigtramp): New function.
3982 (i386_abi_names): Removed.
3983 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3984 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3985 Removed.
3986 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3987 i386_gdbarch_register_os_abi): Removed.
3988 (struct i386_abi_handler): Removed.
3989 (i386_abi_handler_list): Removed.
3990 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3991 functions.
3992 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3993 i386_nw_init_abi): New functions.
3994 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3995 Use set_gdbarch_xxx() calls instead of relying on macros for a
3996 number of calls.
3997 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3998 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3999 Register the various architecture variants defined in this file.
4000
4001 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4002
4003 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4004 (struct main_type): Remove arg_types member. Update comments for
4005 struct field.
4006 (TYPE_ARG_TYPES): Remove.
4007 (TYPE_FN_FIELD_ARGS): Update.
4008 (smash_to_method_type): Update prototype.
4009
4010 * c-typeprint.c (cp_type_print_method_args): Take method type
4011 instead of argument list. Use new argument layout. Simplify.
4012 (c_type_print_args): Use new argument layout. Simplify.
4013 (c_type_print_base): Update call to cp_type_print_method_args.
4014 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4015 argument; use die->type instead. Update call to
4016 smash_to_method_type.
4017 (read_structure_scope): Update call to dwarf2_add_member_fn.
4018 * gdbtypes.c (allocate_stub_method): Update comment.
4019 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4020 Use new argument layout.
4021 (check_stub_method): Use new argument layout. Don't count
4022 void as an argument.
4023 (print_arg_types): Update comments. Use new argument layout.
4024 (recursive_dump_type): Don't print arg_types member.
4025 * hpread.c (hpread_read_struct_type): Use new argument layout.
4026 (fixup_class_method_type): Likewise.
4027 (hpread_type_lookup): Likewise.
4028 * stabsread.c (read_type): Update calls to read_args and
4029 smash_to_method_type.
4030 (read_args): Use new argument layout. Simplify.
4031 * valops.c (typecmp): Use new argument layout. Update parameters
4032 and comments. Simplify.
4033 (hand_function_call): Use new argument layout.
4034 (search_struct_method): Update call to typecmp.
4035 (find_overload_match): Use new argument layout.
4036
4037 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4038
4039 * NEWS: Mention multithreaded debug support for gdbserver.
4040
4041 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4042
4043 * MAINTAINERS: Mention NEWS.
4044
4045 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4046
4047 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4048 (struct mips_objfile_private, compare_pdr_entries): New.
4049 (non_heuristic_proc_desc): Read the ".pdr" section if it
4050 is present.
4051
4052 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4053
4054 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4055 (arm_debug): New static variable.
4056 (_initialize_arm_tdep): Add ``set debug arm'' command.
4057
4058 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4059
4060 * Makefile.in (sim_arm_h): Define.
4061 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4062 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4063 (arm_register_sim_regno): New function, map an internal REGNUM
4064 onto a simulator register number.
4065 (arm_gdbarch_init): Set register_sim_regno.
4066
4067 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4068
4069 * MAINTAINERS: Add self.
4070
4071 2002-06-11 Jim Blandy <jimb@redhat.com>
4072
4073 * source.c (source_info): Mention whether the symtab has
4074 information about preprocessor macros.
4075
4076 Call the command `info macro', not `show macro'.
4077 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4078 Fix error message.
4079 (_initialize_macrocmd): Register `info_macro_command' in
4080 `infolist', not `showlist'.
4081
4082 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4083
4084 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4085 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4086 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4087 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4088 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4089 unconditionally.
4090 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4091 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4092 (_initialize_mips_tdep): Remove dead code.
4093 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4094 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4095 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4096 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4097 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4098 MIPS_LAST_FP_ARG_REGNUM): Remove.
4099
4100 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4101
4102 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4103 (unwind_tmp_obstack_free, parse_frame_info)
4104 (update_context, cfi_read_fp, cfi_write_fp)
4105 (cfi_frame_chain, cfi_init_extra_frame_info)
4106 (cfi_virtual_frame_pointer): Use the above function.
4107 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4108
4109 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4110
4111 * v850-tdep.c (v850_type_is_scalar): New function.
4112 (v850_use_struct_convention): Match current gcc implementation
4113 as close as possible.
4114 (v850_push_arguments): Fix stack_offset handling. Don't write
4115 struct_addr into register. This is done by v850_store_struct_return.
4116 (v850_extract_return_value): Care for structs.
4117 (v850_store_return_value): Ditto.
4118 (v850_store_struct_return): Actually write address.
4119
4120 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4121
4122 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4123 without debug information too.
4124
4125 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4126
4127 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4128 Make multi-arch pure.
4129 * gdbarch.h, gdbarch.c: Re-generate.
4130 * arm-tdep.c (arm_print_float_info): Update.
4131 * arch-utils.h (default_print_float_info): Update.
4132 * arch-utils.c (default_print_float_info): Update.
4133 * infcmd.c (float_info): Update call.
4134
4135 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4136
4137 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4138 the front of the initialize list.
4139
4140 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4141
4142 * infrun.c (struct inferior_status): Replace fields
4143 selected_frame_address and selected_level with field
4144 selected_frame_id.
4145 (save_inferior_status): Update. Use get_frame_id.
4146 (struct restore_selected_frame_args): Delete.
4147 (restore_selected_frame): Update. Use frame_find_by_id.
4148 (restore_inferior_status): Update.
4149
4150 * breakpoint.h (struct breakpoint): Change type of
4151 watchpoint_frame to frame_id.
4152 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4153 call to get_current_frame.
4154 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4155 get_current_frame.
4156 (watchpoint_check): Use frame_find_by_id.
4157
4158 * frame.h (record_selected_frame): Delete declaration.
4159 * stack.c (record_selected_frame): Delete function.
4160
4161 * frame.h (struct frame_id): Define.
4162 (get_frame_id): Declare.
4163 (frame_find_by_id): Declare.
4164 * frame.c (frame_find_by_id): New function.
4165 (get_frame_id): New function.
4166
4167 2002-06-10 Andrey Volkov <avolkov@transas.com>
4168
4169 * ser-e7kpc.c: Fix duplicated define and call of
4170 _initialize_ser_e7000pc
4171
4172 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4173
4174 * signals/signals.c (target_signal_from_host): Fix #ifdef
4175 SIGRTMIN case.
4176 (do_target_signal_to_host): Likewise.
4177
4178 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4179
4180 * mips-tdep.c (mips_find_abi_section): New function.
4181 (mips_gdbarch_init): Call it.
4182
4183 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4184
4185 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4186 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4187 after Andrew's 2002-06-08 gdbarch change.
4188
4189 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4190
4191 * i386-linux-nat.c (suppy_gregset): Don't supply
4192 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4193 register cache.
4194 (fill_gregset): Don't fetch it under the same circumstances.
4195
4196 2002-06-09 Andrew Cagney <cagney@redhat.com>
4197
4198 * Makefile.in (callback_h): Define.
4199 (remote_sim_h): Update path to remote-sim.h.
4200 (remote-rdp.o): Add $(callback_h).
4201 (remote-sim.o): Use $(callback_h).
4202 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4203 * remote-rdp.c: Include "gdb/callback.h".
4204
4205 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4206
4207 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4208 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4209
4210 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4211
4212 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4213 * rdi-share/serpardr.c: Ditto.
4214 * rdi-share/unixcomm.c: Ditto.
4215 * rdi-share/serdrv.c: Ditto.
4216 * rdi-share/hostchan.h: Ditto.
4217 * rdi-share/hostchan.c: Ditto.
4218 * rdi-share/host.h: Ditto.
4219 * rdi-share/devsw.c: Ditto.
4220
4221 * objfiles.h: Change type of obj_private to void pointer.
4222 * pa64solib.c: Update copyright. Don't include "assert.h", use
4223 strcmp instead of STREQ, use LONGEST, do not use PTR
4224 * somsolib.c: Ditto.
4225
4226 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4227 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4228 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4229
4230 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4231
4232 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4233 (default_get_saved_register): Delete function.
4234 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4235 generic_unwind_get_saved_register.
4236 * gdbarch.h, gdbarch.c: Re-generate.
4237
4238 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4239
4240 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4241 generic_func_frame_chain_valid.
4242 * gdbarch.h, gdbarch.c: Re-generate.
4243 * blockframe.c (generic_func_frame_chain_valid): Only check
4244 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4245 passing FP to PC_IN_CALL_DUMMY.
4246 Fix PR gdb/360.
4247
4248 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4249
4250 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4251 (register_gdbarch_data): Initialize init_p.
4252 (gdbarch_data): Initialize data pointer using the init function.
4253 (init_gdbarch_data): Delete function.
4254 (gdbarch_update_p): Update.
4255 (initialize_non_multiarch): Update.
4256 (struct gdbarch): Add field initialized_p.
4257 * gdbarch.h, gdbarch.c: Re-generate.
4258
4259 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4260
4261 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4262 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4263 better do the things actually here.
4264 * x86-64-tdep.c (x86_64_register_name2nr): New.
4265 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4266 (x86_64_gdbarch_init): Respect the above change.
4267 * x86-64-tdep.h (x86_64_register_name2nr)
4268 (x86_64_register_nr2name): Add prototypes.
4269 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4270
4271 2002-06-06 Michael Snyder <msnyder@redhat.com>
4272
4273 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4274 Delete extra braces and re-indent.
4275 (d10v_store_return_value): Char return values
4276 must be shifted over by one byte in R0.
4277 (d10v_extract_return_value): Delete extra braces, re-indent.
4278
4279 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4280
4281 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4282 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4283 (d10v_integer_to_address): Rewrite.
4284 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4285 the d10v specific functions which take care of converting to the
4286 correct space.
4287
4288 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4289
4290 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4291 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4292
4293 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4294
4295 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4296 includes.
4297 * config/tm-linux.h: Ditto.
4298 * config/alpha/tm-alphalinux.h: Ditto.
4299 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4300 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4301 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4302 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4303 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4304 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4305 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4306 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4307 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4308 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4309 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4310 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4311 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4312 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4313 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4314 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4315 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4316 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4317 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4318 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4319 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4320 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4321 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4322 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4323 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4324 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4325 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4326 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4327 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4328 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4329 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4330 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4331 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4332 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4333 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4334 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4335 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4336
4337 2002-05-04 Aidan Skinner <aidan@velvet.net>
4338
4339 * ada-exp.tab.c: New file
4340 * ada-exp.y: New file
4341 * ada-lang.c: New file
4342 * ada-lang.h: New file
4343 * ada-lex.c: New file
4344 * ada-lex.l: New file
4345 * ada-tasks.c: New file
4346 * ada-typeprint.c: New file
4347 * ada-valprint.c: New file
4348
4349 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4350
4351 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4352 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4353
4354 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4355
4356 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4357 insetead of ppc-linux-tdep.o.
4358 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4359 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4360
4361 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4362
4363 2002-05-07 Christian Groessler <chris@groessler.org>
4364 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4365 bit register contents for little endian hosts.
4366
4367 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4368
4369 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4370 any maintainer.
4371
4372 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4373
4374 * gdbarch.h: Regenerate.
4375
4376 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4377
4378 * MAINTAINERS: Add everyone to write-after-approval list.
4379
4380 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4381
4382 * stack.c (frame_info): Use frame_register_unwind instead of
4383 saved_regs. Mention when the SP is on the stack or in a register.
4384
4385 * frame.h (frame_register_unwind_ftype): Define. Document.
4386 (struct frame_info): Add field register_unwind and
4387 register_unwind_cache.
4388 (frame_register_unwind): Declare.
4389 (generic_unwind_get_saved_register): Declare.
4390
4391 * frame.c (frame_register_unwind): New function.
4392 (generic_unwind_get_saved_register): New function.
4393
4394 * blockframe.c (generic_call_dummy_register_unwind): New function.
4395 (frame_saved_regs_register_unwind): New function.
4396 (set_unwind_by_pc): New function.
4397 (create_new_frame): New function.
4398 (get_prev_frame): New function.
4399
4400 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4401
4402 * a29k-share/: Delete directory.
4403 * remote-vx29k.c: Delete file.
4404
4405 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4406
4407 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4408 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4409
4410 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4411
4412 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4413 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4414 (sparc64nbsd-nat.o)
4415 (sparcnbsd-nat.o)
4416 (sparcnbsd-tdep.o): New dependency lists.
4417 * NEWS: Note new UltraSPARC NetBSD native configuration.
4418 * configure.host (sparc64-*-netbsd*): New host.
4419 * configure.tgt (sparc-*-netbsdelf*)
4420 (sparc-*-netbsd*): Set gdb_target to nbsd.
4421 (sparc64-*-netbsd*): New target.
4422 * sparc64nbsd-nat.c: New file.
4423 * sparcnbsd-nat.c: New file.
4424 * sparcnbsd-tdep.c: New file.
4425 * sparcnbsd-tdep.h: New file.
4426 * config/sparc/nbsd.mt: New file.
4427 * config/sparc/nbsd64.mh: New file.
4428 * config/sparc/nbsd64.mt: New file.
4429 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4430 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4431 (HOST_IPC): Remove.
4432 * config/sparc/nbsdaout.mt: Remove.
4433 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4434 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4435 (HOST_IPC): Remove.
4436 * config/sparc/nbsdelf.mt: Remove.
4437 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4438 sparc-nat.c compatiblity defines.
4439 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4440 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4441 * config/sparc/tm-nbsd64.h: New file.
4442 * config/sparc/tm-nbsdaout.h: Remove.
4443 * config/sparc/xm-nbsd.h: Remove.
4444
4445 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4446
4447 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4448 * sparc-tdep.c: Include osabi.h.
4449 (gdbarch_tdep): Add osabi member.
4450 (_initialize_sparc_tdep): Use gdbarch_register.
4451 (sparc_gdbarch_init): Use generic OS ABI framework.
4452 (sparc_dump_tdep): New function.
4453
4454 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4455
4456 * corefile.c (do_captured_read_memory_integer): Return non-zero
4457 result.
4458 (safe_read_memory_integer): Copy result of memory read when
4459 status is non-zero. Also, add comments.
4460
4461 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4462
4463 * Makefile.in (ppc_tdep_h): Define.
4464 (ppc-linux-nat.o)
4465 (ppc-linux-tdep.o)
4466 (rs6000-tdep.o): Use $(ppc_tdep_h).
4467 (ppc-sysv-tdep.o)
4468 (ppcnbsd-nat.o)
4469 (ppcnbsd-tdep.o): New dependency lists.
4470 * ppc-tdep.h: Use generic OS ABI framework.
4471 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4472 (ppc_linux_init_abi): New functions.
4473 (ppc_sysv_abi_broken_use_struct_convention)
4474 (ppc_sysv_abi_use_struct_convention)
4475 (ppc_sysv_abi_push_arguments): Move to...
4476 * ppc-sysv-tdep.c: ...here.
4477 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4478 * rs6000-tdep.c (process_note_abi_tag_sections)
4479 (get_elfosabi): Remove.
4480 (rs6000_gdbarch_init): Use generic OS ABI framework.
4481 (rs6000_dump_tdep): New function.
4482 (_initialize_rs6000_tdep): Use gdbarch_register.
4483 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4484 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4485 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4486 of ppc-linux-tdep.o.
4487 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4488 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4489 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4490 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4491 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4492 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4493
4494 2002-05-29 Jim Blandy <jimb@redhat.com>
4495
4496 * macroscope.c (default_macro_scope): Put `void' in empty argument
4497 list.
4498
4499 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4500
4501 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4502 * arch-utils.c: Include "sim-regno.h".
4503 * gdbarch.sh: Don't include "sim-regno.h".
4504 * gdbarch.h, gdbarch.c: Regenerate.
4505 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4506 here.
4507 * arch-utils.h (legacy_register_sim_regno): To here.
4508 * remote-sim.c (legacy_register_sim_regno): Move function from
4509 here.
4510 * arch-utils.c (legacy_register_sim_regno): To here.
4511
4512 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4513
4514 * sim-regno.h: New file.
4515 * Makefile.in (sim_regno_h): Define.
4516 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4517 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4518 (legacy_register_sim_regno): New function.
4519 (one2one_register_sim_regno): New function.
4520 (gdbsim_fetch_register): Rewrite.
4521 (gdbsim_store_register): Only store a register when
4522 REGISTER_SIM_REGNO is valid.
4523 * d10v-tdep.c: Include "sim-regno.h".
4524 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4525 (d10v_ts3_register_sim_regno): Ditto.
4526 * gdbarch.sh: Include "sim-regno.h".
4527 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4528 * gdbarch.h, gdbarch.c: Regenerate.
4529 * arch-utils.h (default_register_sim_regno): Delete declaration.
4530 * arch-utils.c (default_register_sim_regno): Delete function.
4531
4532 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4533
4534 * ppcnbsd-nat.c: Rewrite.
4535 * ppcnbsd-tdep.c: New file.
4536 * ppcnbsd-tdep.h: New file.
4537 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4538 solib.o, and solib-svr4.o.
4539 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4540 nbsd-tdep.o, and corelow.o.
4541
4542 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4543
4544 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4545 `tr' and `sed'. Mention that `broken' targets are not expected to
4546 build.
4547
4548 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4549
4550 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4551 Let PC point right after the prologue before looking up symbols.
4552
4553 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4554
4555 * i386-tdep.c (i386_register_virtual_type): Return
4556 builtin_type_vec128i for SSE registers.
4557
4558 * gdbtypes.h (builtin_type_vec128i): Declare.
4559
4560 * gdbtypes.c (build_builtin_type_vec128i): New function.
4561 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4562 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4563 (build_gdbtypes): Initialize new builtin vector types.
4564 (_initialize_gdbtypes): Register new vector types with gdbarch.
4565
4566 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4567
4568 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4569 since it has been multi-arch'd.
4570 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4571 Move Alpha and VAX multi-arch news entries to same section
4572 as other multi-arch news.
4573
4574 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4575
4576 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4577 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4578 static. Rename some register numbers to put them in ns32k-tdep
4579 private namespace.
4580 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4581 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4582 functions.
4583 (_initialize_ns32k_tdep): Use gdbarch_register.
4584 * ns32k-tdep.h: New file.
4585 * ns32knbsd-tdep.c: New file.
4586 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4587 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4588 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4589 REGISTER_BYTES, REGISTER_BYTE): Remove.
4590 * config/ns32k/tm-ns32k.h: New file.
4591 * config/ns32k/tm-umax.h: Remove.
4592
4593 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4594
4595 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4596 ns32k_store_struct_return, ns32k_extract_return_value,
4597 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4598 functions.
4599 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4600 ns32k_saved_pc_after_call.
4601 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4602 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4603 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4604 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4605 ns32k_extract_struct_value_address.
4606
4607 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4608
4609 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4610 ns32k_fix_call_dummy): New.
4611 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4612 ns32k_call_dummy_words.
4613 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4614 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4615 CALL_DUMMY_NARGS): Remove.
4616 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4617
4618 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4619
4620 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4621 ns32k_frame_saved_pc, ns32k_frame_args_address,
4622 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4623 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4624 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4625 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4626 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4627 (BREAKPOINT): Remove..
4628 (FRAME_CHAIN): Define as ns32k_frame_chain.
4629 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4630 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4631 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4632 (FRAME_FIND_SAVED_REGS): Remove.
4633 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4634 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4635 (POP_FRAME): Define as ns32k_pop_frame.
4636
4637 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4638
4639 * ns32k-tdep.c (ns32k_register_byte_32082,
4640 ns32k_register_byte_32382, ns32k_register_raw_size,
4641 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4642 functions.
4643 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4644 ns32k_register_byte_32382.
4645 * config/ns32k/tm-umax.h: Update copyright years.
4646 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4647 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4648 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4649 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4650 (ns32k_get_enter_addr): Fix prototype.
4651
4652 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4653
4654 * ns32k-tdep.c: Update copyright years.
4655 (ns32k_register_name_32082): New function.
4656 (ns32k_register_name_32382): Ditto.
4657 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4658 (REGISTER_NAME): Define as ns32k_register_name_32382.
4659 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4660 (REGISTER_NAME): Define as ns32k_register_name_32082.
4661
4662 2002-05-24 Jim Blandy <jimb@redhat.com>
4663
4664 * dwarf2read.c (free_line_header): Use xfree, not free.
4665
4666 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4667
4668 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4669 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4670
4671 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4672
4673 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4674
4675 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4676
4677 From Ross Alexander at NEC Europe:
4678 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4679
4680 2002-05-23 Michael Snyder <msnyder@redhat.com>
4681
4682 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4683 for input, rather than parse_and_eval_address.
4684
4685 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4686
4687 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4688 * Makefile.in (sim_d10v_h): Update definition.
4689
4690 2002-05-24 Andrew Cagney <cagney@redhat.com>
4691
4692 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4693 change `2002-05-22 Michael Snyder' below.
4694 (d10v_push_arguments): Ditto.
4695 (d10v_extract_return_value): Ditto.
4696
4697 2002-05-23 Jim Blandy <jimb@redhat.com>
4698
4699 * macrotab.c (check_for_redefinition): Don't complain if the new
4700 definition is the same as the previous one. Take more arguments
4701 to allow the comparison.
4702 (macro_define_object, macro_define_function): Pass more arguments
4703 to check_for_redefinition.
4704
4705 2002-05-22 Michael Snyder <msnyder@redhat.com>
4706
4707 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4708 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4709 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4710 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4711 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4712 Add a temp variable to save a call (and a memory read).
4713 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4714 if possible (so that PC_IN_CALL_DUMMY will work).
4715
4716 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4717
4718 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4719
4720 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4721
4722 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4723 fde->cie_ptr.
4724 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4725 (dwarf2_build_frame_info): Add offset to fde->initial_location
4726 so that frames of shared libraries are mapped correctly.
4727 (execute_stack_op): Change type of 'result' from ULONGEST to
4728 CORE_ADDR.
4729
4730 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4731
4732 * config/alpha/tm-nbsd.h: Include solib.h.
4733
4734 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4735
4736 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4737 assumptions about the host's byte order.
4738
4739 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4740
4741 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4742 to dependency list.
4743 * alphanbsd-tdep.c: Include solib-svr4.h.
4744 * shnbsd-tdep.c: Ditto.
4745
4746 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4747
4748 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4749 nbsd-tdep.h to dependency list.
4750 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4751 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4752 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4753 nbsdaout.mh and nbsdelf.mh consistently.
4754 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4755 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4756 nbsdaout.mt and nbsdelf.mh consistently.
4757 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4758 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4759 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4760 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4761 a.out shared library stuff from here...
4762 * config/nm-nbsdaout.h: ...to here.
4763 * config/tm-nbsd.h: Remove.
4764 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4765 * config/arm/nbsd.mh: Remove.
4766 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4767 nbsd-tdep.o.
4768 * config/arm/nbsdaout.mh: New file.
4769 * config/arm/nbsdelf.mh: New file.
4770 * config/arm/nm-nbsdaout.h: New file.
4771 * config/i386/nbsd.mh: Remove.
4772 * config/i386/nbsd.mt: Remove.
4773 * config/i386/nbsdaout.mh: New file.
4774 * config/i386/nbsdaout.mt: New file.
4775 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4776 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4777 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4778 i386_register_u_addr): Remove.
4779 * config/i386/nm-nbsdaout.h: New file.
4780 * config/i386/nm-nbsdelf.h: Remove.
4781 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4782 (USE_STRUCT_CONVENTION): Remove.
4783 * config/i386/tm-nbsdaout.h: New file.
4784 * config/i386/tm-nbsdelf.h: Remove.
4785 * config/m68k/nbsd.mh: Remove.
4786 * config/m68k/nbsd.mt: Remove.
4787 * config/m68k/nbsdaout.mh: New file.
4788 * config/m68k/nbsdaout.mt: New file.
4789 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4790 * config/m68k/nm-nbsdaout.h: New file.
4791 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4792 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4793 * config/ns32k/nbsd.mh: Remove.
4794 * config/ns32k/nbsd.mt: Remove.
4795 * config/ns32k/nbsdaout.mh: New file.
4796 * config/ns32k/nbsdaout.mt: New file.
4797 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4798 * config/ns32k/nm-nbsdaout.h: New file.
4799 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4800 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4801 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4802 (SVR4_SHARED_LIBS): Remove.
4803 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4804 * config/sparc/nbsd.mh: Remove.
4805 * config/sparc/nbsd.mt: Remove.
4806 * config/sparc/nbsdaout.mh: New file.
4807 * config/sparc/nbsdaout.mt: New file.
4808 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4809 * config/sparc/nbsdelf.mt: New file.
4810 * config/sparc/nm-nbsdaout.h: New file.
4811 * config/sparc/nm-nbsdelf.h: Remove.
4812 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4813 * config/sparc/tm-nbsdaout.h: New file.
4814
4815 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4816
4817 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4818 mipsnbsd-tdep.c
4819 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4820
4821 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4822
4823 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4824 shnbsd-nat.c.
4825 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4826
4827 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4828
4829 * NEWS: Note new MIPS NetBSD native configuration.
4830 * configure.host (mips*-*-netbsd*): New host.
4831 * configure.tgt (mips*-*-netbsd*): New target.
4832 * mipsnbsd-nat.c: New file.
4833 * mipsnbsd-tdep.c: New file.
4834 * mipsnbsd-tdep.h: New file.
4835 * config/mips/nbsd.mh: New file.
4836 * config/mips/nbsd.mt: New file.
4837 * config/mips/nm-nbsd.h: New file.
4838 * config/mips/tm-nbsd.h: New file.
4839
4840 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4841
4842 * Makefile.in (SFILES): Add osabi.c.
4843 (COMMON_OBS): Add osabi.o.
4844 (osabi.o): New dependency list.
4845 * osabi.c: New file.
4846 * osabi.h: New file.
4847 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4848
4849 * Makefile.in (alpha_tdep_h): Define and use instead of
4850 alpha-tdep.h.
4851 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4852 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4853 Remove.
4854 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4855 * alpha-tdep.h: Include osabi.h.
4856 (alpha_abi): Remove.
4857 (gdbarch_tdep): Use generic OS ABI framework.
4858 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4859 gdbarch_register_osabi.
4860 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4861 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4862 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4863
4864 * Makefile.in (sh_tdep_h): Add osabi.h.
4865 * sh-tdep.h (sh_osabi): Remove.
4866 (gdbarch_tdep): Use generic OS ABI framework.
4867 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4868 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4869 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4870 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4871
4872 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4873 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4874 gdbarch_register_osabi.
4875 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4876 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4877 (get_elfosabi): Rename to...
4878 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4879 ABI framework support routines.
4880 (arm_gdbarch_init): Use generic OS ABI framework.
4881 (arm_dump_tdep): Likewise.
4882 (_initialize_arm_tdep): Likewise.
4883 * arm-tdep.h: Include osabi.h.
4884 (arm_abi): Remove.
4885 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4886 osabi member.
4887 (arm_gdbarch_register_os_abi): Remove prototype.
4888 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4889 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4890
4891 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4892 * mips-tdep.c: Include osabi.h.
4893 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4894 OS ABI framework.
4895
4896 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4897
4898 * h8300-tdep.c: Fix formatting.
4899
4900 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4901
4902 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4903 printing vector registers.
4904
4905 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4906
4907 From Fernando Nasser:
4908 * remote.c (remote_async_open_1): Re-throw the exception when the
4909 connection fails.
4910 (remote_cisco_open): Ditto.
4911 (remote_open_1): Ditto.
4912
4913 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4914
4915 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4916 (remote_start_remote): Add uiout parameter. Pass through to
4917 remote_start_remote_dummy.
4918 (remote_open_1): Use catch_exception instead of catch_errors.
4919 (remote_async_open_1): Ditto.
4920 (remote_cisco_open): Ditto.
4921
4922 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4923
4924 * remote.c (remote_start_remote): Replace PTR with void pointer.
4925 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4926 static.
4927
4928 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4929
4930 * gdb_indent.sh: Allow the script to be run in the sim directory.
4931
4932 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4933
4934 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4935 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4936
4937 * corelow.c (core_open): Only call set_gdbarch_from_file if
4938 exec_bfd is NULL.
4939
4940 2002-05-17 Andrey Volkov <avolkov@transas.com>
4941
4942 * h8300-tdep.c: Add support of EXR register
4943 * config/h8300/tm-h8300.h: Ditto.
4944
4945 2002-05-17 Andrey Volkov <avolkov@transas.com>
4946
4947 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4948
4949 2002-05-17 Andrey Volkov <avolkov@transas.com>
4950
4951 * h8300-tdep.c: Change literal regnums to REGNO.
4952
4953 2002-05-17 Jim Blandy <jimb@redhat.com>
4954
4955 * NEWS: Note addition of macro support.
4956
4957 Expand preprocessor macros in C expressions.
4958 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4959 (scan_macro_expansion, scanning_macro_expansion,
4960 finished_macro_expansion): New function declarations.
4961 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4962 variable declarations.
4963 * parser-defs.h (expression_context_pc): New declaration.
4964 * parse.c (expression_context_pc): New variable.
4965 (parse_exp_1): Set expression_context_pc, as well as
4966 expression_context_block.
4967 * c-exp.y (yylex): If we're not already reading the result of a
4968 macro expansion, try to macro-expand the next token. When we're
4969 done scanning a macro expansion, switch back to the mainline text.
4970 Commas and `if's in a macro's expansion don't terminate the input.
4971 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4972 (macro_original_text, macro_expanded_text,
4973 expression_macro_lookup_func, expression_macro_lookup_baton): New
4974 variables.
4975 (scan_macro_expansion, scanning_macro_expansion,
4976 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4977 c_preprocess_and_parse): New functions.
4978 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4979 c_preprocess_and_parse, instead of c_parse.
4980 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4981 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4982
4983 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4984
4985 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4986 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4987 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4988
4989 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4990
4991 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4992
4993 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4994
4995 * Makefile.in (sh_tdep_h): Define and use.
4996 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4997 register enum): Move to...
4998 * * sh-tdep.h: ...here.
4999 * sh-tdep.c: Include sh-tdep.h.
5000 * sh3-rom.c: Likewise.
5001 * shnbsd-tdep.c: Likewise.
5002
5003 2002-05-16 Michael Snyder <msnyder@redhat.com>
5004
5005 * arm-tdep.c: Spelling fix in comment.
5006
5007 2002-05-16 Jim Blandy <jimb@redhat.com>
5008
5009 Add commands for manually expanding macros and showing their
5010 definitions.
5011 * macrocmd.c, macroscope.c, macroscope.h: New files.
5012 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5013 (macroscope_h): New variable.
5014 (HFILES_NO_SRCDIR): Add macroscope.h.
5015 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5016 (macroscope.o, macrocmd.o): New rules.
5017
5018 Teach the Dwarf 2 reader to read macro information.
5019 * dwarf2read.c: #include "macrotab.h".
5020 (dwarf_macinfo_buffer): New variable.
5021 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5022 dwarf_macinfo_size.
5023 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5024 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5025 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5026 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5027 dwarf2_macro_spaces_in_definition): New complaints.
5028 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5029 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5030 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5031 the partial symbol table.
5032 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5033 from what's recorded in the partial symbol table.
5034 (read_file_scope): If the compilation unit has a
5035 `DW_AT_macro_info' attribute, read its macro information.
5036 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5037
5038 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5039
5040 Fix PR gdb/546
5041 * ser-tcp.c: Don't include <netinet/udp.h>.
5042
5043 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5044
5045 * MAINTAINERS: Update my email address.
5046
5047 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5048
5049 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5050 include file of the same name.
5051
5052 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5053
5054 * configure.tgt: Mark v850 as multi-arched.
5055 * config/v850/tm-v850.h: Remove file.
5056 * config/v850/v850.mt: Eliminate TM_FILE.
5057
5058 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5059
5060 * v850-tdep.c: Full multi-arch.
5061 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5062 Define GDB_MULTI_ARCH to 2.
5063
5064 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5065
5066 * p-exp.y (current_type): New static variable.
5067 Carries the type of the expression at the position that is parsed.
5068 (push_current_type, pop_current_type): Two new functions. Used
5069 to store/restore current_type in expression on specific tokens.
5070 (search_field): New static variable. Set to one after parsing a point
5071 as at that point only a FIELDNAME token should be searched.
5072 (FIELDNAME): New token. After a point only a token belonging to
5073 current_type type definition is allowed.
5074 (all over token rules): reset and change current_type according
5075 to rules.
5076 (exp '[' rule): insert implicit array index field if
5077 exp is a pascal string type.
5078
5079 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5080
5081 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5082 frame info. Use frame_info's saved_regs instead of matching member
5083 in extra_frame_info throughout.
5084 (v850_frame_init_saved_regs): New function.
5085 (v850_init_extra_frame_info): Move most functionality into
5086 v850_frame_init_saved_regs().
5087 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5088 (v850_frame_find_saved_regs): Remove declaration.
5089 (FRAME_FIND_SAVED_REGS): Remove definition.
5090 (v850_frame_init_saved_regs): Add declaration.
5091 (FRAME_INIT_SAVED_REGS): Add definition.
5092
5093 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5094
5095 * v850-tdep.c: Begin multi-arch'ing v850.
5096 (v850_target_architecture_hook): Remove function.
5097 (v850_gdbarch_init): New function. Add code previously in
5098 v850_target_architecture_hook().
5099 (_initialize_v850_tdep): Don't set target_architecture_hook.
5100 Call register_gdbarch_init() instead.
5101
5102 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5103
5104 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5105 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5106 (fixup_class_method_type): Likewise.
5107
5108 2002-05-15 Jim Blandy <jimb@redhat.com>
5109
5110 Add macro structures to GDB's symbol tables. Nobody puts anything
5111 in them yet.
5112 * symtab.h (struct symtab): New member: `macro_table'.
5113 * buildsym.h (pending_macros): New global variable.
5114 * buildsym.c: #include "macrotab.h".
5115 (buildsym_init): Initialize `pending_macros'.
5116 (end_symtab): If we found macro information while reading a CU's
5117 debugging info, do build a symtab structure for it. Make the
5118 symtab point to the macro information, and clear the
5119 `pending_macros' pointer which held it while we were reading the
5120 debug info.
5121 (really_free_pendings): Free any pending macro table.
5122 * objfiles.h (struct objfile): New member: `macro_cache'.
5123 * objfiles.c (allocate_objfile): Set allocate and free functions
5124 for the macro cache's objstack.
5125 (free_objfile): Empty the macro cache's obstack.
5126 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5127 set new allocate and free functions for it.
5128 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5129 free functions for the macro cache's objstack. (Why is this
5130 function building its own objfile?)
5131 * symmisc.c (print_objfile_statistics): Print statistics on the
5132 macro bcache.
5133 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5134
5135 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5136
5137 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5138 (REGISTER_U_ADDR): Delete definition.
5139 (arm_register_u_addr): Delete declaration.
5140
5141 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5142
5143 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5144 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5145
5146 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5147
5148 * regcache.c (register_valid): Revise comments refering to "Not
5149 available" and "unavailable".
5150 * frame.c (frame_register_read): Ditto.
5151 * findvar.c (value_of_register): Ditto.
5152
5153 2002-05-15 Andrew Cagney <cagney@redhat.com>
5154
5155 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5156 (remote-sim.o): Update dependencies.
5157 (d10v-tdep.o): Specify dependencies.
5158 (sim_d10v_h): Define.
5159
5160 2002-05-14 Jim Blandy <jimb@redhat.com>
5161
5162 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5163 * macrotab.c (macro_lookup_inclusion, find_definition,
5164 new_macro_table): Same.
5165
5166 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5167 not `! strcmp ()'. This is a dubious improvement.
5168 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5169
5170 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5171 although it's not necessary, to avoid a warning.
5172
5173 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5174
5175 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5176 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5177 TYPE_INSTANCE_FLAGS.
5178 (struct main_type): New.
5179 (struct type): Move most members to struct main_type. Change
5180 cv_type and as_type to new type_chain member. Add instance_flags.
5181 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5182 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5183 (finish_cv_type): Remove prototype.
5184 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5185 Set TYPE_CHAIN.
5186 (alloc_type_instance): New function.
5187 (smash_type): New function.
5188 (make_pointer_type, make_reference_type, make_function_type)
5189 (smash_to_member_type, smash_to_method_type): Call smash_type.
5190 (make_qualified_type): New function.
5191 (make_type_with_address_space): Call make_qualified_type.
5192 (make_cv_type): Likewise.
5193 (finish_cv_type): Remove unnecessary function.
5194 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5195 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5196 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5197 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5198 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5199 * hpread.c (hpread_read_struct_type): Likewise.
5200 * stabsread.c (read_struct_type): Likewise.
5201
5202 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5203
5204 * configure.tgt: Add a catch all sh* target, for cases like
5205 sh[2,3,4]-elf and sh-hms.
5206
5207 2002-05-14 Keith Seitz <keiths@redhat.com>
5208
5209 * event-loop.c (create_file_handler): Don't do anything but
5210 update data when we are given a fd which we are already
5211 monitoring.
5212
5213 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5214
5215 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5216 (update_context): Use __func__ in warnings.
5217
5218 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5219
5220 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5221 and tcp_close to net_open and net_close.
5222 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5223 using UDP if requested. Don't try to disable Nagle on UDP
5224 sockets.
5225 * remote.c (remote_serial_open): New function. Warn about UDP.
5226 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5227
5228 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5229
5230 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5231
5232 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5233
5234 * configure.tgt: Remove sh-hms target.
5235 * MAINTAINERS: Don't list sh-hms as a separate target.
5236
5237 2002-05-13 Jim Blandy <jimb@redhat.com>
5238
5239 Add first preprocessor macro-expansion files.
5240 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5241 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5242 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5243 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5244 (COMMON_OBS): Add macrotab.o, macroexp.o.
5245 (macroexp.o, macrotab.o): New rules.
5246
5247 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5248
5249 * config/m88k/tm-m88k.h: Update copyright.
5250 (m88k_target_write_pc): Declare
5251 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5252 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5253 (SHIFT_INST_REGS): Update definition.
5254 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5255 using old definition of TARGET_WRITE_PC.
5256 * regcache.c (generic_target_write_pc): Delete code handling
5257 NNPC_REGNUM.
5258 * gdbarch.sh (NNPC_REGNUM): Delete.
5259 * gdbarch.h, gdbarch.c: Regenerate.
5260
5261 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5262
5263 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5264 builtin reg number.
5265
5266 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5267
5268 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5269 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5270 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5271 access macros.
5272 * c-typeprint.c (cp_type_print_method_args): Likewise.
5273 (c_type_print_args): Likewise.
5274 * d10v-tdep.c (d10v_push_arguments): Likewise.
5275 (d10v_extract_return_value): Likewise.
5276 * expprint.c (print_subexp): Likewise.
5277 * gdbtypes.c (lookup_primitive_typename): Likewise.
5278 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5279 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5280 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5281 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5282 (TYPE_VECTOR): Likewise.
5283 * hpread.c (hpread_read_struct_type)
5284 (fix_static_member_physnames, fixup_class_method_type)
5285 (hpread_type_lookup): Likewise.
5286 * mdebugread.c (parse_symbol, parse_type): Likewise.
5287 * p-lang.c (is_pascal_string_type): Likewise.
5288 * valops.c (hand_function_call): Likewise.
5289 * x86-64-tdep.c (classify_argument): Likewise.
5290
5291 * hpread.c (hpread_read_function_type)
5292 (hpread_read_doc_function_type): Call replace_type.
5293 * dstread.c (create_new_type): Delete.
5294 (decode_dst_structure, process_dst_function): Call alloc_type.
5295 Use type access macros.
5296
5297 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5298
5299 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5300 the're not supported by the current architecture.
5301 (i387_fill_fxsave): Likewise.
5302
5303 2002-05-12 Fred Fish <fnf@redhat.com>
5304
5305 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5306 sect_index_xxx members to index the first slot in section_offsets
5307 if all of the section_offsets are zero.
5308
5309 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5310
5311 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5312 checked in with last change.
5313
5314 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5315
5316 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5317 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5318 config.sub.
5319
5320 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5321
5322 * Makefile.in: Update dependencies.
5323
5324 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5325
5326 * language.c (local_hex_string_custom): Simplify. Do not depend
5327 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5328
5329 * memattr.c (mem_info_command): Replace calls to
5330 longest_local_hex_string and longest_local_hex_string_custom.
5331 * buildsym.c (make_blockvector): Ditto.
5332 * solib.c (info_sharedlibrary_command): Ditto.
5333 * tracepoint.c (tracepoints_info): Ditto.
5334 * symtab.c (print_msymbol_info): Ditto.
5335
5336 * language.c (local_hex_string): Delete.
5337 (local_hex_string_custom): Delete.
5338 (longest_local_hex_string): Rename to local_hex_string.
5339 (longest_local_hex_string_custom): Rename to
5340 local_hex_string_custom.
5341 * language.h (local_hex_string): Change parameter type to LONGEST.
5342 (local_hex_string_custom): Ditto.
5343 (longest_local_hex_string): Delete declaration.
5344 (longest_local_hex_string_custom): Ditto.
5345
5346 * solib.c: Update copyright.
5347 * memattr.c: Update copyright.
5348
5349 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5350
5351 * arch-utils.h (legacy_register_to_value): Declare.
5352 (legacy_value_to_register): Declare.
5353 (legacy_convert_register_p): Declare.
5354 * arch-utils.c (legacy_register_to_value): New function.
5355 (legacy_value_to_register): New function.
5356 (legacy_convert_register_p): New function.
5357
5358 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5359 (VALUE_TO_REGISTER): Define.
5360 (CONVERT_REGISTER_P): Define.
5361 * gdbarch.h, gdbarch.c: Regenerate.
5362
5363 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5364 VALUE_TO_REGISTER.
5365 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5366 CONVERT_REGISTER_P.
5367
5368 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5369 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5370
5371 * Makefile.in: Update dependencies for valops.c.
5372 * valops.c: Include "gdb_assert.h".
5373 (typecmp): Skip THIS parameter to methods.
5374 (find_method_list): Remove static_memfuncp argument,
5375 update callers. Check for stub methods.
5376 (find_value_oload_method_list): Don't set *static_memfuncp.
5377 (find_overload_match): Don't check for stub methods. Assert
5378 that methods are not stubbed. Handle static methods.
5379 (value_find_oload_method_list): Remove static_memfuncp argument.
5380 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5381 to the argument list for static stub methods.
5382 * value.h (value_find_oload_method_list): Update prototype.
5383
5384 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5385
5386 * arch-utils.h (generic_register_size): Declare.
5387 (generic_register_raw_size, generic_register_virtual_size): Delete
5388 declarations.
5389 * arch-utils.c (generic_register_raw_size): Delete.
5390 (generic_register_size): New function.
5391 (generic_register_virtual_size): Delete.
5392
5393 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5394 default generic_register_size.
5395 * gdbarch.h, gdbarch.c: Re-generate.
5396
5397 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5398 register_virtual_size.
5399 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5400 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5401
5402 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5403
5404 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5405 * gdbarch.h, gdbarch.c: Regenerate.
5406 * gnu-v3-abi.c: Update copyright.
5407 (vtable_address_point_offset): Update.
5408 (gnuv3_rtti_type): Update.
5409 (gnuv3_baseclass_offset): Update.
5410 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5411 (init_fetch_link_map_offsets): Update.
5412 * remote.c (get_remote_state): Update.
5413
5414 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5415
5416 * TODO: Remove value_headof/value_from_vtable_info comment.
5417 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5418 * values.c (value_headof, value_from_vtable_info): Delete.
5419 * value.h (value_from_vtable_info): Delete prototype.
5420
5421 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5422
5423 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5424 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5425 $(gdb_regex_h).
5426 (gdb_assert_h): Define.
5427 (gdb_wait_h): Define.
5428 (gdb_regex_h): Define.
5429
5430 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5431
5432 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5433 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5434
5435 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5436
5437 * nbsd-tdep.c: Fix comment.
5438
5439 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5440
5441 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5442 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5443 (nbsd-tdep.o): New dependency list.
5444 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5445 nbsd-tdep.h.
5446 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5447 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5448 * nbsd-tdep.c: New file.
5449 * nbsd-tdep.h: New file.
5450 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5451 nbsd-tdep.h.
5452 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5453 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5454 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5455 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5456
5457 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5458
5459 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5460 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5461 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5462 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5463 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5464 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5465
5466 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5467
5468 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5469 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5470 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5471 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5472 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5473 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5474 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5475
5476 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5477
5478 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5479 fetch_elfcore_registers to...
5480 * i386nbsd-tdep.c: ...here.
5481 (i386nbsd_use_struct_convention): Rename to...
5482 (i386nbsd_aout_use_struct_convention): ...this.
5483 (i386nbsd_supply_reg): New function.
5484 (i386nbsd_fill_reg): New function.
5485 (fetch_core_registers): Use i386nbsd_supply_reg.
5486 (fetch_elfcore_registers): Likewise.
5487 (_initialize_i386nbsd_tdep): New function.
5488 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5489 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5490 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5491 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5492 (i386nbsd_aout_use_struct_convention): ...this.
5493
5494 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5495
5496 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5497 (store_inferior_registers): Use shnbsd_fill_reg.
5498 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5499 sh_nbsd_supply_register): Collapse into...
5500 (shnbsd_supply_reg): ...this.
5501 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5502 (shnbsd_fill_reg): ...this.
5503 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5504 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5505 (fetch_core_registers): Use shnbsd_supply_reg.
5506 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5507 (sh_nbsd_core_fns): Rename to...
5508 (shnbsd_core_fns): ...this.
5509 (sh_nbsd_elfcore_fns): Rename to...
5510 (shnbsd_elfcore_fns): ...this.
5511 (sh_nbsd_init_abi): Rename to...
5512 (shnbsd_init_abi): ...this.
5513 (_initialize_sh_nbsd_tdep): Rename to...
5514 (_initialize_shnbsd_tdep): ...this.
5515 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5516 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5517 sh_nbsd_fill_register): Remove prototypes.
5518 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5519
5520 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5521
5522 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5523 (i387-nat.o): Delete dependency list.
5524 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5525 (x86-64-linux-nat.o): Likewise.
5526 * i387-nat.c: Delete file, moving contents to...
5527 * i387-tdep.c: ...here.
5528 * i387-nat.h: Rename...
5529 * i387-tdep.h: ...to this.
5530 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5531 * i386-linux-nat.c: Likewise.
5532 * i386bsd-nat.c: Likewise.
5533 * i386gnu-nat.c: Likewise.
5534 * i386nbsd-nat.c: Likewise.
5535 * i386v4-nat.c: Likewise.
5536 * x86-64-linux-nat.c: Likewise.
5537 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5538 * config/i386/go32.mh (NATDEPFILES): Likewise.
5539 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5540 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5541 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5542 * config/i386/linux.mh (NATDEPFILES): Likewise.
5543 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5544 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5545 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5546 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5547
5548 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5549
5550 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5551 (alphanbsd-nat.o): Remove dependency list.
5552 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5553 * alphanbsd-nat.c: Delete. Contents moved to...
5554 * alphanbsd-tdep.c: ...here.
5555 (_initialize_alphanbsd_tdep): Register core functions.
5556 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5557
5558 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5559
5560 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5561 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5562 (alphanbsd-nat.o): Likewise.
5563 (alphabsd-tdep.o): New dependency list.
5564 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5565 (fill_gregset): Use alphabsd_fill_reg.
5566 (supply_fpregset): Use alphabsd_supply_fpreg.
5567 (fill_fpregset): Use alphabsd_fill_fpreg.
5568 (fetch_inferior_registers): Use struct reg and struct fpreg
5569 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5570 and alphabsd_supply_fpreg.
5571 (store_inferior_registers): Use struct reg and struct fpreg
5572 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5573 and alphabsd_fill_fpreg.
5574 * alphabsd-tdep.c: New file.
5575 * alphabsd-tdep.h: New file.
5576 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5577 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5578 alphabsd_supply_fpreg.
5579 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5580 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5581
5582 2002-05-11 Eric Christopher <echristo@redhat.com>
5583
5584 * mips-tdep.c (mips_double_register_type): Fix thinko.
5585 (mips_single_register_type): Ditto.
5586 * MAINTAINERS: Add self.
5587
5588 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5589
5590 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5591 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5592 right thing on architectures with different endianness and/or
5593 integer sizes.
5594
5595 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5596
5597 From Christian Limpach <chris@Pin.LU>
5598 * configure.in: Change sed expression which comments out
5599 NATDEPFILES to also comment out continuation lines.
5600 * configure: Regenerate.
5601
5602 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5603
5604 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5605 big patch.
5606
5607 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5608
5609 * sh-tdep.c: Include correct file.
5610
5611 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5612
5613 New support for sh64-elf (sh5) target.
5614
5615 * configure.tgt: For sh64-elf target, default to sh-elf.
5616
5617 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5618 (struct gdbarch_tdep): Add new fields for new registers and ABI
5619 info.
5620
5621 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5622 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5623 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5624 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5625 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5626 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5627 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5628 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5629 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5630 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5631 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5632 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5633 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5634 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5635 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5636 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5637 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5638 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5639 sign_extend, sh64_nofp_frame_init_saved_regs,
5640 sh64_init_extra_frame_info, sh64_get_saved_register,
5641 sh64_extract_struct_value_address, sh64_pop_frame,
5642 sh64_push_arguments, sh64_extract_return_value,
5643 sh64_store_return_value, sh64_show_media_regs,
5644 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5645 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5646 sh_sh64_register_virtual_type,
5647 sh_sh64_register_convert_to_virtual,
5648 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5649 sh64_register_read, sh64_pseudo_register_write,
5650 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5651 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5652 sh64_do_pseudo_register, sh_compact_do_registers_info,
5653 sh64_do_registers_info, sh_gdbarch_init): New functions.
5654
5655 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5656
5657 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5658
5659 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5660
5661 * linespec.c (decode_line_1): Check for a double quote after
5662 a filename correctly.
5663
5664 2002-05-10 Jim Blandy <jimb@redhat.com>
5665
5666 Properly track the size of the current objfile's .debug_line section.
5667 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5668 (DWARF_LINE_SIZE): New macro.
5669 (dwarf2_build_psymtabs_hard): Record the line section's size in
5670 the partial symbol table.
5671 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5672 symbol table.
5673
5674 2002-05-10 Petr Sorfa <petrs@caldera.com>
5675
5676 * ia64-tdep.c: Handle breakpoints on L instruction type
5677 in MLX instruction bundle by moving the breakpoint to
5678 the third slot (X instruction type) as L holds only data.
5679
5680 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5681
5682 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5683 (process_one_symbol): Complain about discarding local symbols
5684 due to a misplaced N_LBRAC entry.
5685
5686 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5687
5688 From Daniel Berlin <dan@cgsoftware.com>
5689 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5690 decrease the depth we are at, in the case of templates.
5691
5692 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5693
5694 * mips-tdep.c (mips_float_register_type): New function.
5695 (mips_double_register_type): New function.
5696 (mips_print_register): Use them.
5697 (do_fp_register_row): Likewise.
5698
5699 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5700
5701 * signals/signals.c (signals): Remove conditional compilation around
5702 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5703 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5704
5705 2002-05-09 Michael Snyder <msnyder@redhat.com>
5706
5707 * remote-rdp.c (remote_rdp_can_run): Remove.
5708
5709 2002-05-09 Tom Tromey <tromey@redhat.com>
5710
5711 * jv-valprint.c (java_val_print): Handle `char' as a special case
5712 of TYPE_CODE_INT.
5713
5714 2002-05-09 Michael Snyder <msnyder@redhat.com>
5715
5716 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5717 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5718 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5719 str r(0123),[sp,#nn].
5720 (arm_skip_prologue): Ditto. Also make disassembly
5721 order-independent by placing it in a loop.
5722
5723 2002-05-06 Michael Snyder <msnyder@redhat.com>
5724
5725 * stabsread.c (read_type): Add recognition for new attribute:
5726 "@V;" means that an array type is actually a vector.
5727 This is analogous to the vector flag that's been added to dwarf2.
5728
5729 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5730
5731 * i386-tdep.h (i386_abi): New enum.
5732 (struct gdbarch_tdep): Replace os_ident member with abi.
5733 (i386_gdbarch_register_os_abi): New prototype.
5734 * i386-tdep.c (i386_abi_names): New array.
5735 (process_note_abi_tag_sections): Removed.
5736 (process_note_sections): New function.
5737 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5738 (struct i386_abi_handler): New struct.
5739 (i386_abi_handler_list): New variable.
5740 (i386_gdbarch_register_os_abi): New function.
5741 (i386_gdbarch_init): Adapt for the changes given above.
5742
5743 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5744
5745 * gregset.h: Say "GNU/Linux".
5746
5747 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5748
5749 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5750 (build_gdbtypes): Build builtin_type_v2_float.
5751 (_initialize_gdbtypes): Register new builtin type.
5752
5753 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5754
5755 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5756 (clear_gdbarch_swap): New function.
5757 (initialize_non_multiarch): Call.
5758 (gdbarch_update_p): Before calling init(), swap out and clear the
5759 existing architecture.
5760 * gdbarch.c: Regenerate.
5761
5762 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5763
5764 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5765 alphanbsd-tdep.c.
5766
5767 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5768
5769 * sh-nbsd-nat.c: Rename to...
5770 * shnbsd-nat.c: ...this.
5771 * sh-nbsd-tdep.c: Rename to...
5772 * shnbsd-tdep.c: ...this.
5773 * sh-nbsd-tdep.h: Rename to...
5774 * shnbsd-tdep.h: ...this.
5775 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5776 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5777
5778 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5779
5780 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5781 concatenation for command help messages.
5782
5783 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5784
5785 * NEWS: Note new sh*-*-netbsdelf* configuration.
5786 * configure.host: Set gdb_host_cpu to sh for all sh*.
5787 (sh*-*-netbsdelf*): New host.
5788 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5789 (sh*-*-netbsdelf*): New target.
5790 * sh-nbsd-nat.c: New file.
5791 * sh-nbsd-tdep.c: New file.
5792 * sh-nbsd-tdep.h: New file.
5793 * config/sh/nbsd.mh: New file.
5794 * config/sh/nbsd.mt: New file.
5795 * config/sh/nm-nbsd.h: New file.
5796 * config/sh/tm-nbsd.h: New file.
5797
5798 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5799
5800 * sh-tdep.c (sh_osabi_names): Declare.
5801 (process_note_abi_tag_sections): New function.
5802 (get_elfosabi): Ditto.
5803 (sh_gdbarch_register_os_abi): Ditto.
5804 (sh_dump_tdep): Ditto.
5805 _initialize_sh_tdep): Use gdbarch_register to register
5806 sh_gdbarch_init and sh_dump_tdep.
5807 * config/sh/tm-sh.h (sh_osabi): Declare.
5808 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5809
5810 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5811
5812 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5813 (thumb_scan_prologue): Ditto.
5814 (arm_find_callers_reg): Ditto.
5815 (arm_frame_chain): Ditto.
5816 (arm_init_extra_frame_info): Ditto.
5817 (arm_frame_saved_pc): Ditto.
5818 (arm_pop_frame): Ditto.
5819 (arm_push_return_address): New function.
5820 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5821 call_dummy_location, call_dummy_breakpoint_offset_p,
5822 call_dummy_breakpoint_offset, call_dummy_p,
5823 call_dummy_stack_adjust_p, call_dummy_words,
5824 sizeof_call_dummy_words, call_dummy_start_offset,
5825 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5826 call_dummy_address, push_return_address and push_dummy_frame for
5827 generic dummy frames.
5828
5829 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5830
5831 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5832 size computation for alloca.
5833 (sh_fp_frame_init_saved_regs): Likewise.
5834
5835 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5836
5837 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5838 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5839 * arm-tdep.c (arm_store_return_value): Use them.
5840 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5841 * remote-rdp.c (remote_rdp_fetch_register): Use
5842 ARM_MAX_REGISTER_RAW_SIZE.
5843 (remote_rdp_store_register): Likewise.
5844
5845 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5846
5847 * dwarf2cfi.c: Code cleanup, removed unused variables,
5848 added default labels to switch {} statements.
5849 * x86-64-tdep.c: Ditto.
5850 * x86-64-linux-nat.c: Ditto.
5851
5852 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5853
5854 * solib.h: Protect against multiple inclusion.
5855
5856 2002-05-06 Jim Blandy <jimb@redhat.com>
5857
5858 Add first preprocessor macro-expansion files.
5859 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5860 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5861 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5862 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5863 (COMMON_OBS): Add macrotab.o, macroexp.o.
5864 (macroexp.o, macrotab.o): New rules.
5865
5866 Separate the job of reading the line number info statement program
5867 header (...expialidocious) out into its own function.
5868 * dwarf2read.c (struct line_head, struct filenames, struct
5869 directories): Replace with...
5870 (struct line_header): New structure, containing the full
5871 contents of the statement program header, including the
5872 include directory and file name tables.
5873 (read_file_scope): If we have line number info, instead of just
5874 calling dwarf_decode_lines to do all the work, call
5875 dwarf_decode_line_header first to get a `struct line_header'
5876 containing the data in the statement program header, and then
5877 pass that to dwarf_decode_lines, which will pick up where that
5878 left off. Be sure to clean up the `struct line_header' object.
5879 (dwarf_decode_line_header, free_line_header, add_include_dir,
5880 add_file_name): New functions.
5881 (dwarf_decode_lines): Move all the code to read the statement
5882 program header into dwarf_decode_line_header. Take the line
5883 header it built as the first argument, instead of the offset to
5884 the compilation unit's line number info. Use the new `struct
5885 line_header' type instead of the old structures. No need to do
5886 cleanups here now, since we don't allocate anything.
5887 (dwarf2_statement_list_fits_in_line_number_section,
5888 dwarf2_line_header_too_long): New complaints.
5889
5890 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5891
5892 * gdbtypes.c (init_vector_type): New function.
5893 (build_builtin_type_vec128): Simplify the representation of SIMD
5894 registers.
5895 (build_gdbtypes): Initialize new builtin vector types.
5896 (_initialize_gdbtypes): Register new vector types with gdbarch.
5897 (builtin_type_v4_float, builtin_type_v4_int32,
5898 builtin_type_v8_int16, builtin_type_v16_int8,
5899 builtin_type_v2_int32, builtin_type_v4_int16,
5900 builtin_type_v8_int8): New (renamed) SIMD types.
5901
5902 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5903
5904 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5905 (i387_fill_fxsave): Likewise.
5906
5907 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5908
5909 * alpha-tdep.c (alpha_extract_return_value): Don't use
5910 non-constant array size in prototype.
5911
5912 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5913
5914 From Brian Taylor <briant at model dot com>:
5915 * ui-out.c (ui_out_field_core_addr): Use the function
5916 longest_local_hex_string_custom'to format addresses > 32 bits
5917 wide.
5918
5919 * ui-out.c (ui_out_field_core_addr): Update comment.
5920
5921 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5922
5923 * stack.c (select_and_print_frame): Make static. Delete the
5924 parameter `level'.
5925 (func_command): Update call.
5926 (select_frame_command): Delete code computing the frame level.
5927 * frame.h (select_and_print_frame): Delete declaration.
5928
5929 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5930
5931 * sparc-tdep.c (sparc_get_saved_register): Comment why
5932 get_prev_frame call is safe.
5933
5934 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5935
5936 * frame.h (select_frame): Delete level parameter.
5937 * stack.c (select_frame): Update. Use frame_relative_level to
5938 obtain the frame's level.
5939 (select_and_print_frame): Update call.
5940 (select_frame_command): Ditto.
5941 (up_silently_base): Ditto.
5942 (down_silently_base): Ditto.
5943 * ocd.c (ocd_start_remote): Ditto.
5944 * remote-rdp.c (remote_rdp_open): Ditto.
5945 * remote-mips.c (mips_initialize): Ditto.
5946 (common_open): Ditto.
5947 * remote-e7000.c (e7000_start_remote): Ditto.
5948 * m3-nat.c (select_thread): Ditto.
5949 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5950 (child_get_current_exception_event): Ditto.
5951 * varobj.c (varobj_create): Ditto.
5952 (varobj_update): Ditto.
5953 (c_value_of_root): Ditto.
5954 * tracepoint.c (finish_tfind_command): Ditto.
5955 * corelow.c (core_open): Ditto.
5956 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5957 * thread.c (info_threads_command): Ditto.
5958 (switch_to_thread): Ditto.
5959 * infrun.c (normal_stop): Ditto.
5960 (restore_selected_frame): Ditto.
5961 (restore_inferior_status): Ditto.
5962 * breakpoint.c (insert_breakpoints): Ditto.
5963 (watchpoint_check): Ditto.
5964 (bpstat_stop_status): Ditto.
5965 (do_enable_breakpoint): Ditto.
5966 * blockframe.c (flush_cached_frames): Ditto.
5967 (reinit_frame_cache): Ditto.
5968
5969 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5970
5971 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5972 maintainer.
5973
5974 2002-05-04 Jim Blandy <jimb@redhat.com>
5975
5976 * gdbtypes.c (replace_type): Doc fix.
5977
5978 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5979
5980 * valprint.c (strcat_longest): Delete commented out function.
5981 Update copyright.
5982
5983 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5984
5985 * MAINTAINERS: Mark a29k as deleted.
5986 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5987 Move new configurations to the top.
5988 * configure.tgt: Remove a29k.
5989 * config/a29k/tm-vx29k.h: Delete.
5990 * config/a29k/vx29k.mt: Delete.
5991 * config/a29k/tm-a29k.h: Delete.
5992 * config/a29k/a29k-udi.mt: Delete.
5993 * config/a29k/a29k.mt: Delete.
5994 * a29k-tdep.c: Delete.
5995 * remote-udi.c: Delete.
5996 * remote-mm.c: Delete.
5997 * remote-eb.c: Delete.
5998 * remote-adapt.c: Delete.
5999 * Makefile.in: Remove obsolete code.
6000 * config/s390/s390x.mt: Ditto.
6001 * config/s390/s390.mt: Ditto.
6002 * config/sparc/sparclynx.mh: Ditto.
6003 * config/sparc/linux.mh: Ditto.
6004 * config/pa/hppaosf.mh: Ditto.
6005 * config/pa/hppabsd.mh: Ditto.
6006 * config/ns32k/nbsd.mt: Ditto.
6007 * config/mips/vr5000.mt: Ditto.
6008 * config/m68k/sun3os4.mh: Ditto.
6009 * config/m68k/nbsd.mt: Ditto.
6010 * config/m68k/m68klynx.mh: Ditto.
6011 * config/m32r/m32r.mt: Ditto.
6012 * config/i386/x86-64linux.mt: Ditto.
6013 * config/i386/nbsdelf.mt: Ditto.
6014 * config/i386/nbsd.mt: Ditto.
6015 * config/i386/i386lynx.mh: Ditto.
6016
6017 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6018
6019 * target.c (debug_print_register): New function. Handle oversize
6020 registers.
6021 (debug_to_fetch_registers): Call.
6022 (debug_to_store_registers): Call.
6023
6024 2002-05-03 Jim Blandy <jimb@redhat.com>
6025
6026 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6027 (read_type): Doc fix.
6028 * gdbtypes.c (replace_type): Doc fix.
6029
6030 * stabsread.c (multiply_defined_struct): New complaint.
6031 (read_struct_type): If the type we were passed isn't empty, or
6032 incomplete, don't read the new struct type into it; complain,
6033 and return the original type unchanged. Take a new `type_code'
6034 argument, which is the type code for the new type.
6035 (read_type): Rather than storing the type's type code here, pass
6036 it as an argument to read_struct_type, and let that take care of
6037 storing it. That way, we don't overwrite the original type code,
6038 so read_struct_type can use it to decide whether we're overwriting
6039 something we shouldn't.
6040 (complain_about_struct_wipeout): New function.
6041
6042 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6043
6044 * gdbarch.sh: Assert that gdbarch is non-NULL.
6045 * gdbarch.c: Regenerate.
6046
6047 2002-05-03 Jason Merrill <jason@redhat.com>
6048
6049 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6050 and return NULL.
6051
6052 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6053
6054 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6055 (x86_64_dwarf2gdb_regno_map_length),
6056 (x86_64_dwarf2_reg_to_regnum): Added.
6057 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6058 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6059 (_initialize_x86_64_tdep): Synced with the change above.
6060 (x86_64_skip_prologue): Reformulated message.
6061
6062 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6063
6064 * f-exp.y: Also use new prev_lexptr variable
6065 to improve error reporting. Based on Michael Snyder
6066 2002-04-24 dated patch to c-exp.y.
6067 * jv-exp.y: Likewise.
6068 * m2-exp.y: Likewise.
6069
6070 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6071
6072 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6073 we are dealing with vectors.
6074
6075 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6076
6077 * config/m68k/tm-nbsd.h: Obvious fix,
6078 correct machine name.
6079
6080 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6081
6082 * p-typeprint.c (pascal_type_print_base): Add support
6083 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6084
6085 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6086
6087 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6088 for fondamental pascal 'char' type.
6089
6090 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6091
6092 * p-lang.h (is_pascal_string_type): Declaration changed,
6093 new sixth argument of type char ** added.
6094 * p-lang.c (is_pascal_string_type): Implementation
6095 changed. Args length_pos, length_size, string_pos, char_size
6096 can now be NULL. New argument arrayname set to the field
6097 name of the char array. Return value set to char array
6098 field index plus one.
6099 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6100 is_pascal_string_type function.
6101
6102 2002-05-02 Andrew Cagney <cagney@redhat.com>
6103
6104 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6105 <cagney@redhat.com> change.
6106 * gdbarch.c: Regenerate.
6107
6108 2002-05-02 Andrew Cagney <cagney@redhat.com>
6109
6110 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6111 before probing for a new one. Detect errorenous gdbarch_init
6112 functions.
6113 * gdbarch.c: Regenerate.
6114
6115 2002-05-01 Andrew Cagney <cagney@redhat.com>
6116
6117 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6118 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6119 * config/v850/tm-v850.h: Ditto. Update copyright.
6120
6121 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6122
6123 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6124 current_gdbarch.
6125
6126 2002-04-30 Michael Snyder <msnyder@redhat.com>
6127
6128 * arm-tdep.c: Whitespace clean-ups.
6129 (arm_skip_prologue): Fix thinko; two lines
6130 should have been removed as part of 4/24 change.
6131
6132 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6133
6134 * rs6000-tdep.c: Added comment describing how fpscr register
6135 numbers were chosen.
6136
6137 2002-04-30 Michael Snyder <msnyder@redhat.com>
6138
6139 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6140
6141 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6142
6143 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6144 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6145 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6146
6147 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6148
6149 From Louis Hamilton <hamilton@redhat.com>:
6150 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6151 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6152 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6153 not bfd-private xcoff data, to determine wordsize.
6154 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6155
6156 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6157
6158 GDB 5.2 released from 5.2 branch.
6159
6160 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6161
6162 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6163 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6164 (x86_64_register_info_table): Added comments with register numbers.
6165
6166 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6167
6168 * rs6000-tdep.c (rs6000_extract_return_value,
6169 rs6000_store_return_value): Handle returning vectors.
6170 (rs6000_gdbarch_init): Use
6171 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6172 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6173 New function.
6174 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6175 vectors.
6176 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6177 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6178
6179 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6180
6181 * hpread.c (hpread_psymtab_to_symtab_1,
6182 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6183 with fprintf_unfiltered (gdb_stderr,...).
6184
6185 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6186
6187 * remote-array.c (printf_monitor, write_monitor,
6188 array_insert_breakpoint, array_remove_breakpoint ):
6189 Replace fprintf (stderr,...
6190 with fprintf_unfiltered (gdb_stderr,....
6191 * remote-es.c: Likewise.
6192 * remote-os9k.c: Likewise.
6193 * remote-st.c: Likewise.
6194
6195 2002-04-28 Andreas Schwab <schwab@suse.de>
6196
6197 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6198 linux-proc.o and gcore.o.
6199
6200 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6201
6202 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6203 code without frame pointers.
6204
6205 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6206
6207 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6208 ON_STACK is needed.
6209
6210 2002-04-26 Ben Elliston <bje@redhat.com>
6211
6212 * target.c (do_xfer_memory): Correct reference to the new option
6213 "trust-readonly-sections".
6214
6215 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6216
6217 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6218 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6219 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6220 vectors.
6221 (read_array_type): Record the fact that this array type is really a
6222 vector (i.e. are passed in by value).
6223
6224 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6225
6226 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6227 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6228 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6229 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6230 * alpha-linux-tdep.c: Include frame.h.
6231 (alpha_linux_sigcontext_addr): New function.
6232 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6233 alpha_linux_sigcontext_addr.
6234 * alpha-osf1-tdep.c: Include gdbcore.h.
6235 (alpha_osf1_sigcontext_addr): New function.
6236 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6237 alpha_osf1_sigcontext_addr.
6238 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6239 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6240
6241 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6242
6243 * stack.c (selected_frame_level):
6244 (select_frame): Do not set selected_frame_level.
6245 * frame.h (selected_frame_level): Delete declaration.
6246
6247 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6248
6249 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6250 convert_from_func_ptr-addr when AIX / PowerOpen.
6251
6252 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6253
6254 * valops.c (hand_function_call): Call
6255 generic_save_call_dummy_addr.
6256 * frame.h (generic_save_call_dummy_addr): Declare.
6257 * blockframe.c (struct dummy_frame): Add fields call_lo and
6258 call_hi.
6259 (generic_find_dummy_frame): Check for PC in range call_lo to
6260 call_hi instead of entry_point_address.
6261 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6262 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6263 (generic_save_call_dummy_addr): New function.
6264
6265 2002-04-24 David S. Miller <davem@redhat.com>
6266
6267 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6268 sparc_skip_prologue.
6269 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6270 information to find prologue when possible.
6271 (sparc_prologue_frameless_p): Call examine_prologue directly.
6272 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6273 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6274 second argument.
6275 (SKIP_PROLOGUE): Likewise.
6276
6277 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6278
6279 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6280 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6281 indicate that the condition it was testing is always true.
6282 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6283 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6284 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6285
6286 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6287
6288 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6289 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6290 tdep->jb_pc and tdep->jb_elt_size.
6291 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6292 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6293 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6294 * alpha-nat.c (get_longjmp_target): Remove.
6295 (JB_ELEMENT_SIZE): Ditto.
6296 (JB_PC): Ditto.
6297 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6298 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6299 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6300 to alpha_get_longjmp_target.
6301 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6302 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6303 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6304
6305 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6306
6307 * README: Update to GDB 5.2.
6308
6309 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6310
6311 * gdbarch.sh (LC_ALL): Set to `c'.
6312
6313 2002-04-25 Theodore A. Roth <troth@verinet.com>
6314
6315 * avr-tdep.c: Ran through gdb_indent.sh.
6316
6317 2002-04-25 Theodore A. Roth <troth@verinet.com>
6318
6319 * MAINTAINERS: Add myself as AVR maintainer.
6320 * NEWS: Note new target avr.
6321
6322 2002-04-25 Theodore A. Roth <troth@verinet.com>
6323
6324 * Makefile.in: Add support for AVR target.
6325 * configure.tgt: Add support for AVR target.
6326 * avr-tdep.c: New file
6327 * config/avr/avr.mt: New file.
6328
6329 2002-04-25 Theodore A. Roth <troth@verinet.com>
6330
6331 * MAINTAINERS: Add myself to write-after-approval.
6332
6333 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6334
6335 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6336 with fprintf_unfiltered (gdb_stderr,....
6337
6338 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6339
6340 Fix PR gdb/508.
6341 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6342
6343 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6344
6345 * p-exp.y: Also use new prev_lexptr variable
6346 to improve error reporting. Based on Michael Snyder
6347 2002-04-24 dated patch to c-exp.y.
6348
6349 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6350
6351 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6352 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6353 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6354 to 0.
6355 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6356 and struct value.
6357 (FUNCTION_START_OFFSET): Remove.
6358 (BREAKPOINT): Ditto.
6359
6360 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6363 * NEWS: Ditto.
6364
6365 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6366
6367 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6368 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6369 alpha_linux_pc_in_sigtramp.
6370 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6371 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6372 alpha_osf1_pc_in_sigtramp.
6373 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6374 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6375 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6376 alphafbsd_pc_in_sigtramp.
6377 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6378 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6379 alphanbsd_pc_in_sigtramp.
6380 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6381 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6382
6383 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6384
6385 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6386
6387 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6388
6389 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6390 alphanbsd-tdep.c.
6391 (alphanbsd-nat.o): New dependency list.
6392 (alphanbsd-tdep.o): Ditto.
6393 * NEWS: Note new native NetBSD/alpha configuration.
6394 * alphanbsd-nat.c: New file.
6395 * alphanbsd-tdep.c: Ditto.
6396 * configure.host (alpha*-*-netbsd*): New host.
6397 * configure.tgt (alpha*-*-netbsd*): New target.
6398 * config/alpha/nbsd.mh: New file.
6399 * config/alpha/nbsd.mt: Ditto.
6400 * config/alpha/nm-nbsd.h: Ditto.
6401 * config/alpha/tm-nbsd.h: Ditto.
6402
6403 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6406 (alpha-osf1-tdep.o): New dependency list.
6407 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6408 and skip_sigtramp_frame members.
6409 * alpha-linux-tdep.c: Include gdbcore.h.
6410 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6411 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6412 * alpha-osf1-tdep.c: New file.
6413 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6414 alpha-osf1-dep.c.
6415 (alpha_frame_past_sigtramp_frame): New function.
6416 (alpha_dynamic_sigtramp_offset): Ditto.
6417 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6418 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6419 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6420 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6421 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6422 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6423 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6424 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6425 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6426 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6427 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6428 to find_solib_trampoline_target.
6429 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6430 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6431 (SKIP_TRAMPOLINE_CODE): Remove.
6432 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6433 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6434 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6435 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6436 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6437 (PROC_SIGTRAMP_MAGIC): Ditto.
6438 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6439 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6440 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6441 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6442 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6443
6444 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6445
6446 * NEWS: Note that Alpha targets are now multi-arch.
6447
6448 2002-04-24 Michael Snyder <msnyder@redhat.com>
6449
6450 * parser-defs.h (prev_lexptr): New external variable.
6451 * parse.c (parse_exp_1): Set prev_lexptr to null before
6452 calling the language-specific parser.
6453 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6454 (yyerror): Use prev_lexptr in error reporting.
6455
6456 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6457
6458 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6459 * gregset.h: If FILL_FPXREGSET is defined, provide
6460 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6461 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6462 is defined, call fill_fpxregset.
6463
6464 2002-04-24 Roland McGrath <roland@frob.com>
6465
6466 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6467 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6468 (supply_gregset, supply_fpregset): New functions.
6469
6470 * gnu-nat.c (gnu_find_memory_regions): New function.
6471 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6472 (gnu_xfer_memory): Add a cast.
6473
6474 2002-04-24 Michael Snyder <msnyder@redhat.com>
6475
6476 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6477 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6478 of argument regs ("str r(0123), [r11, #-nn"]).
6479 (arm_skip_prologue): Better handling for frameless functions.
6480 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6481 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6482
6483 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6484
6485 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6486 NUM_PSEUDO_REGS can be used.
6487
6488 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6489
6490 * arch-utils.h: Update copyright.
6491
6492 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6493 * gdbarch.h, gdbarch.c: Re-generate.
6494
6495 * inferior.h (IN_SIGTRAMP): Delete definition.
6496 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6497 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6498
6499 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6500 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6501 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6502 (find_proc_framesize): Ditto.
6503 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6504 (alpha_init_extra_frame_info): Ditto.
6505 * infrun.c (handle_inferior_event): Ditto.
6506 (handle_inferior_event): Ditto.
6507 (check_sigtramp2): Ditto.
6508 * blockframe.c (create_new_frame): Ditto.
6509 (get_prev_frame): Ditto.
6510 * ppc-linux-tdep.c: Update comments.
6511 * i386-linux-tdep.c: Update comments.
6512 * breakpoint.c (bpstat_what): Update comment.
6513
6514 2002-04-24 David S. Miller <davem@redhat.com>
6515
6516 * i960-tdep.c (register_in_window_p): New function.
6517 (i960_find_saved_register): Use it instead of
6518 REGISTER_IN_WINDOW_P.
6519 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6520
6521 * symtab.h (find_stab_function_addr): Kill extern.
6522 * minsyms.c (find_stab_function_addr): Remove from here...
6523 * dbxread.c: ... to here, and mark it static.
6524
6525 2002-04-20 David S. Miller <davem@redhat.com>
6526
6527 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6528 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6529
6530 2002-04-21 David S. Miller <davem@redhat.com>
6531
6532 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6533 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6534 (vx_write_register): Likewise.
6535
6536 2002-04-23 J. Brobecker <brobecker@gnat.com>
6537
6538 * source.c (is_regular_file): New function.
6539 (openp): Check wether file to open is a regular file
6540 to avoid opening directories.
6541
6542 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6543
6544 * findvar.c (extract_signed_integer): Cast printf argument
6545 to suppress format warning.
6546 (extract_unsigned_integer): Likewise.
6547 * infcmd.c (registers_info): Likewise.
6548 * top.c (get_prompt_1): Likewise.
6549 * valops.c (value_assign): Likewise.
6550 * valprint.c (print_decimal): Likewise.
6551
6552 2002-04-22 H.J. Lu (hjl@gnu.org)
6553
6554 * c-exp.y (typebase): Support
6555
6556 [long|long long|short] [signed|unsigned] [int|]
6557
6558 and
6559
6560 signed [long|long long|short] int
6561
6562 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6563
6564 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6565 and vax-tdep.h.
6566 * vax-tdep.h: New file.
6567 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6568 Make several routines static.
6569 (vax_get_saved_register): New function.
6570 (vax_gdbarch_init): New function.
6571 (_initialize_vax_tdep): Register vax_gdbarch_init.
6572 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6573 Remove macros now under the control of gdbarch.
6574
6575 2002-04-22 Michael Snyder <msnyder@redhat.com>
6576
6577 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6578 Some whitespace and coding standards tweaks.
6579
6580 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6581
6582 * vax-tdep.c: Include regcache.h.
6583 (vax_call_dummy_words): New.
6584 (sizeof_vax_call_dummy_words): New.
6585 (vax_fix_call_dummy): New function.
6586 (vax_saved_pc_after_call): Ditto.
6587 * config/vax/tm-vax.h: Don't include regcache.h.
6588 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6589 (CALL_DUMMY): Remove.
6590 (CALL_DUMMY_WORDS): Define.
6591 (SIZEOF_CALL_DUMMY_WORDS): Define.
6592 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6593
6594 2002-04-18 Michael Snyder <msnyder@redhat.com>
6595
6596 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6597
6598 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6599
6600 * vax-tdep.c (vax_frame_chain): New function.
6601 (vax_push_dummy_frame): Ditto.
6602 (vax_pop_frame): Ditto.
6603 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6604 (FRAMELESS_FUNCTION_INVOCATION): Use
6605 generic_frameless_function_invocation_not.
6606 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6607 (POP_FRAME): Use vax_pop_frame.
6608
6609 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6610
6611 * vax-tdep.c (vax_store_struct_return): New function.
6612 (vax_extract_return_value): Ditto.
6613 (vax_store_return_value): Ditto.
6614 (vax_extract_struct_value_address): Ditto.
6615 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6616 vax_store_struct_return.
6617 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6618 (STORE_RETURN_VALUE): Use vax_store_return_value.
6619 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6620
6621 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6622
6623 * vax-tdep.c (vax_frame_saved_pc): New function.
6624 (vax_frame_args_address_correct): Ditto.
6625 (vax_frame_args_address): Ditto.
6626 (vax_frame_locals_address): Ditto.
6627 (vax_frame_num_args): Move code to be in proximity to
6628 other frame-related functions.
6629 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6630 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6631 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6632 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6633 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6634
6635 2002-04-22 H.J. Lu (hjl@gnu.org)
6636
6637 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6638 includedir.
6639
6640 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6641
6642 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6643 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6644 (FRAME_INIT_SAVED_REGS): New macro.
6645
6646 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6647
6648 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6649
6650 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6651
6652 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6653 where needed.
6654 (fetch_osf_core_registers): Likewise.
6655 (supply_gregset): Likewise.
6656
6657 2002-04-22 J. Brobecker <brobecker@gnat.com>
6658
6659 * symfile.h (get_section_index): Define.
6660 * symfile.c (get_section_index): New function.
6661 * mdebugread.c (SC_IS_SBSS): New macro.
6662 (SC_IS_BSS): Return true for the scBss storage class only, as
6663 the scSBss storage class refers to the .sbss section.
6664 (parse_partial_symbols): Discard the symbols which associated
6665 section does not exist.
6666 Make sure to use the .sbss section index for symbols which
6667 storage class is scBss, rather than using the .bss section index.
6668
6669 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6670
6671 * vax-tdep.c: Update copyright years.
6672 (vax_register_name): New function.
6673 (vax_register_byte): Ditto.
6674 (vax_register_raw_size): Ditto.
6675 (vax_register_virtual_size): Ditto.
6676 (vax_register_virtual_type): Ditto.
6677 * config/vax/tm-vax.h: Update copyright years.
6678 (REGISTER_NAMES): Remove.
6679 (REGISTER_NAME): Define.
6680 (REGISTER_BYTE): Use vax_register_byte.
6681 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6682 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6683 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6684
6685 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6686
6687 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6688 declaration
6689 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6690
6691 2002-04-21 David S. Miller <davem@redhat.com>
6692
6693 * arch-utils.c (generic_prologue_frameless_p): Kill
6694 SKIP_PROLOGUE_FRAMELESS_P code.
6695 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6696 references.
6697 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6698 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6699 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6700 references.
6701 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6702 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6703 (sparc_gdbarch_init): Pass it to
6704 set_gdbarch_prologue_frameless_p.
6705
6706 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6707
6708 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6709 (alphabsd-nat.o): New dependency list.
6710
6711 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6712
6713 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6714 alphafbsd-tdep.c.
6715 (alpha-linux-tdep.o): New dependency list.
6716 (alphafbsd-tdep.o): Likewise.
6717
6718 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6719
6720 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6721 to here...
6722 * alpha-tdep.c: ...from here.
6723 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6724
6725 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6726
6727 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6728 prototype from here...
6729 * alpha-tdep.h: ...to here.
6730
6731 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6732
6733 * frame.h (selected_frame_level): Document as deprecated.
6734 (frame_relative_level): Declare.
6735 * stack.c (frame_relative_level): New function.
6736 (selected_frame_level): Document as deprecated.
6737 (select_frame): Do not set the selected_frame_level.
6738
6739 * stack.c (frame_info, record_selected_frame): Update.
6740 (frame_command, current_frame_command): Update.
6741 (up_silently_base, up_command, down_silently_base): Update.
6742 (down_command): Update.
6743 * inflow.c (kill_command): Update.
6744 * tracepoint.c (finish_tfind_command): Update.
6745 * corelow.c (core_open): Update.
6746 * thread.c (info_threads_command): Update.
6747 (do_captured_thread_select): Update.
6748 * infcmd.c (finish_command): Update.
6749 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6750
6751 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6752
6753 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6754
6755 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6756
6757 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6758 type const.
6759
6760 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6761
6762 * alphafbsd-tdep.c: Update copyright years. Include
6763 alpha-tdep.h.
6764 (alphafbsd_use_struct_convention): Make static.
6765 (alphafbsd_init_abi): New function.
6766 (_initialize_alphafbsd_tdep): New function.
6767 * config/alpha/tm-fbsd.h: Update copyright years.
6768 (USE_STRUCT_CONVENTION): Remove.
6769
6770 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6771
6772 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6773 an Alpha ABI variant.
6774 (alpha_abi_handler_list): Declare.
6775 (alpha_gdbarch_register_os_abi): New function.
6776 (alpha_gdbarch_init): Give registered ABI variant handlers a
6777 chance to tweak the gdbarch once we have set up defaults.
6778 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6779
6780 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6781
6782 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6783 to standard_coerce_float_to_double.
6784 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6785
6786 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6787
6788 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6789 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6790 from gdbarch_tdep rather than a constant.
6791 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6792 the default text address for all Alpha Unix ABIs.
6793 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6794 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6795
6796 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6797
6798 * alpha-tdep.h: New file. Includes several Alpha target constants
6799 taken from...
6800 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6801 let gdbarch deal with.
6802 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6803 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6804 to dependency list.
6805 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6806 Alpha target register names.
6807 * alphabsd-nat.c: Likewise.
6808 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6809 Alpha target register names. Make serveral routines static.
6810 (alpha_get_saved_register): New function.
6811 (alpha_abi_names): New.
6812 (process_note_abi_tag_sections): New function.
6813 (get_elfosabi): New function.
6814 (alpha_gdbarch_init): New function.
6815 (alpha_dump_tdep): New function.
6816 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6817
6818 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6819
6820 * frame.c (find_saved_register): Delete #ifdef
6821 HAVE_REGISTER_WINDOWS code.
6822 * config/sparc/tm-sparc.h: Update comments.
6823 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6824
6825 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6826
6827 * i960-tdep.c (i960_find_saved_register): New function.
6828 (i960_get_saved_register): New function.
6829 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6830 (i960_get_saved_register): Declare.
6831 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6832
6833 2002-04-20 David S. Miller <davem@redhat.com>
6834
6835 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6836
6837 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6838
6839 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6840 instead of NUM_PSEUDO_REGS.
6841
6842 2002-04-20 David S. Miller <davem@redhat.com>
6843
6844 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6845 GDB_MULTI_ARCH_PARTIAL
6846 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6847 define, let tm-sp64.h do it.
6848
6849 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6850
6851 * frame.c (find_saved_register): Avoid a NULL pointer
6852 dereference and actually walk the frame list.
6853
6854 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6855
6856 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6857 sorted in most most-recent-used order. Document.
6858 * gdbarch.h, gdbarch.c: Regenerate.
6859
6860 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6861
6862 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6863 instead of ->prev.
6864 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6865 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6866 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6867 instead of ->prev.
6868
6869 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6870
6871 Fix PR gdb/471.
6872 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6873 (build_builtin_type_vec128): Ditto.
6874 (append_composite_type_field): Fix calculation of type length in
6875 union case.
6876
6877 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6878
6879 * config/djgpp/README: Update.
6880
6881 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6882 compiler warnings.
6883
6884 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6885
6886 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6887 (alpha_setup_arbitrary_frame): ...to this.
6888 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6889 for alpha_setup_arbitrary_frame.
6890
6891 2002-04-18 Andrew Cagney <cagney@redhat.com>
6892
6893 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6894 * gdbarch.h, gdbarch.c: Regenerate.
6895
6896 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6897 * target.h (memory_breakpoint_from_pc): Update declaration.
6898 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6899
6900 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6901 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6902 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6903 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6904 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6905 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6906 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6907 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6908 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6909 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6910 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6911 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6912
6913 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6914 const pointer.
6915 * monitor.c (monitor_insert_breakpoint): Ditto.
6916 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6917
6918 * config/mcore/tm-mcore.h: Update copyright.
6919 * mem-break.c: Ditto.
6920 * xstormy16-tdep.c: Ditto.
6921
6922 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6923
6924 * p-exp.y: Add precedence rule for '^' token.
6925 This removes the shift/reduce conflicts.
6926 Remove the comment concerning these shift/reduce conflicts.
6927
6928 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6929
6930 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6931 (registers_powerpc_nofp): New register set for processors
6932 without floating point unit.
6933
6934 2002-04-18 David S. Miller <davem@redhat.com>
6935
6936 * MAINTAINERS: Add myself to write-after-approval.
6937
6938 2002-04-17 Michael Snyder <msnyder@redhat.com>
6939
6940 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6941
6942 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6943
6944 * rs6000-tdep.c (frame_initial_stack_address): Use
6945 frame_register_read to read the alloca_reg.
6946
6947 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6948
6949 * frame.c (find_saved_register): Find saved registers in the next
6950 not prev frame.
6951 Fix PR gdb/365.
6952
6953 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6954
6955 * gdbarch.sh (LANG): Set to ``c''.
6956
6957 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6958
6959 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6960
6961 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6962
6963 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6964 Update copyright.
6965
6966 * hpread.c (hpread_get_lntt): Add declaration.
6967 Also fix PR gdb/391.
6968
6969 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6970
6971 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6972 * aclocal.m4, configure: Re-generate.
6973 Fix PR gdb/391.
6974
6975 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6976
6977 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6978 instead of tm_print_insn.
6979
6980 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6981
6982 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6983
6984 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6985
6986 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6987 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6988 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6989
6990 2002-04-12 Don Howard <dhoward@redhat.com>
6991
6992 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6993 max_user_call_depth.
6994 (init_cmd_lists): Initialize the new value;
6995 * cli/cli-script.c (execute_user_command): Limit the call depth of
6996 user defined commands. This avoids a core-dump when user commands
6997 are infinitly recursive.
6998
6999 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7000
7001 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7002 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7003 from tdep struct instead of DEFAULT_LR_SAVE.
7004 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7005 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7006 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7007
7008 2002-04-12 Michael Snyder <msnyder@redhat.com>
7009
7010 * Remote.c: Spelling fix.
7011 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7012 If no symbol found for "sbrk", try "_sbrk".
7013 (make_output_phdrs): Use bfd_section_name.
7014 (gcore_copy_callback): Use bfd_section_name.
7015 * eval.c: Indentation fix-ups.
7016 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7017 in case it gets applied to an address that is already
7018 in the instruction space.
7019 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7020 * symfile.c: Fix indentation, long lines.
7021 * source.c: White space fix-up.
7022
7023 2002-04-12 Andrew Cagney <cagney@redhat.com>
7024
7025 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7026 * frame.c (frame_register_read): New function. Return non-zero on
7027 success.
7028 (read_relative_register_raw_bytes_for_frame): Delete.
7029 (read_relative_register_raw_bytes): Delete.
7030 * frame.h (frame_register_read): Declare.
7031 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7032 * sh-tdep.c: Ditto.
7033 * infcmd.c (do_registers_info): Ditto.
7034 * hppa-tdep.c: Ditto.
7035 * rs6000-tdep.c: Ditto.
7036 * h8500-tdep.c: Ditto.
7037 * mips-tdep.c: Ditto.
7038 * h8300-tdep.c: Ditto.
7039 * z8k-tdep.c: Ditto.
7040
7041 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7042
7043 From Jimi X <jimix@watson.ibm.com>:
7044 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7045 64-bit SysV ABI.
7046
7047 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7048
7049 From Jimi X <jimix@watson.ibm.com>:
7050 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7051 bfd info.
7052
7053 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7054
7055 From Jimi X <jimix@watson.ibm.com>:
7056 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7057 register sets for these processor variants.
7058
7059 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7060
7061 * regformats/reg-ppc.dat: Support FPSCR.
7062
7063 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7064
7065 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7066 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7067 Add fpscr as an invalid/unfetchable register.
7068 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7069 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7070 (fill_fpregset): Add support for register fpscr.
7071 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7072 (fill_gregset): Account for the fact that register ``mq'' might
7073 not exist.
7074 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7075 (registers_power): Add fpscr to register set at slot 71.
7076 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7077 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7078
7079 2002-04-11 Michael Snyder <msnyder@redhat.com>
7080
7081 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7082 * configure: Regenerate.
7083 * config.in: Regenerate.
7084 * acconfig.h: Add define for _SYSCALL32.
7085 * core-sol2.c: Remove #define _SYSCALL32.
7086 * solib-legacy.c: Remove #define _SYSCALL32.
7087
7088 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7089
7090 * stack.c (select_frame): Cleanup internal error message, do not
7091 use %p.
7092
7093 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7094
7095 * stack.c (select_frame): Check that selected_frame and the
7096 specified level are as expected.
7097 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7098 Update copyright.
7099 * frame.h (struct frame_info): Add field `level'. Update
7100 copyright.
7101 Work-in-progress PR gdb/464.
7102
7103 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7104
7105 * maint.c (maint_print_section_info): Rename print_section_info.
7106 (print_bfd_section_info, print_objfile_section_info): Update.
7107 * inferior.h (struct gdbarch): Add opaque declaration.
7108 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7109 * gdbarch.h: Regenerate.
7110
7111 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7112
7113 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7114 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7115 (kernel_u_size): Added.
7116 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7117 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7118
7119 2002-04-04 Jim Ingham <jingham@apple.com>
7120
7121 * valarith.c (find_size_for_pointer_math): New function, either returns
7122 the size for a pointer's target, returns 1 for void *, or errors for
7123 incomplete types.
7124 (value_add, value_sub): use find_size_for_pointer_math.
7125
7126 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7127
7128 * linux-low.c (linux_look_up_symbols): New hook.
7129 (linux_target_ops): Add linux_look_up_symbols.
7130 * remote-utils.c (decode_address): New function.
7131 (look_up_one_symbol): New function.
7132 * server.c (handle_query): Call target look_up_symbols hook.
7133 * server.h (look_up_one_symbol): Add prototype.
7134 * target.h (struct target_ops): Add look_up_symbols hook.
7135
7136 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7137
7138 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7139 override FP_REGNUM with frame->fp. Update copyright.
7140 * parse.c (num_std_regs, std_regs): Delete.
7141 (target_map_name_to_register): Do not search std_regs. Update
7142 function description.
7143 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7144 declarations. Update copyright.
7145 Fix PR gdb/251.
7146
7147 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7148
7149 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7150 after the last symbol in a block.
7151
7152 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7153
7154 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7155 is non zero as a found symbol.
7156
7157 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7158
7159 * findvar.c: Include "builtin-regs.h".
7160 (value_of_register): Call value_of_builtin_reg when applicable.
7161 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7162 (target_map_name_to_register): Call
7163 builtin_reg_map_name_to_regnum.
7164 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7165 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7166 (builtin_regs_h): Define.
7167 (builtin-regs.o): New target.
7168 (findvar.o): Add $(builtin_regs_h).
7169 * builtin-regs.c, builtin-regs.h: New files.
7170 * std-regs.c: New file.
7171 Partial fix for PR gdb/251.
7172
7173 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7174
7175 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7176 it's no longer required.
7177
7178 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7179
7180 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7181
7182 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7183
7184 From Jimi X <jimix@watson.ibm.com>:
7185 * rs6000-tdep.c (rs6000_software_single_step): Use
7186 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7187 and size. Use target_insert_breakpoint() and
7188 target_remove_breakpoint() to insert and remove breakpoints
7189 instead of explicit memory reads and writes.
7190
7191 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7192
7193 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7194 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7195 ELF_OBJECT_FORMAT ifdef.
7196
7197 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7198
7199 From Jimi X <jimix@watson.ibm.com>:
7200 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7201
7202 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7203
7204 From Jimi X <jimix@watson.ibm.com>:
7205 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7206 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7207
7208 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7209
7210 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7211 s/asprintf/xasprintf/.
7212 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7213
7214 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7215
7216 I believe Jeff Law denies responsability for this one:
7217 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7218 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7219 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7220 Work-around for PR gdb/366.
7221
7222 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7223
7224 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7225 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7226 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7227
7228 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7229
7230 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7231 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7232 information.
7233
7234 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7235
7236 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7237 maintainer.
7238
7239 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7240
7241 * README (Reporting Bugs in GDB): Document the bug web page as the
7242 prefered way of submitting bugs.
7243 Fix PR gdb/402.
7244
7245 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7246
7247 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7248 -1. Update comment.
7249 * gdbarch.h, gdbarch.c: Re-generate.
7250
7251 2002-04-07 Andreas Schwab <schwab@suse.de>
7252
7253 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7254 buffer to regcache_collect.
7255
7256 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7257
7258 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7259 * gdbarch.c, gdbarch.h: Re-generate.
7260
7261 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7262
7263 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7264 declaration. Fix -Werror.
7265
7266 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7267
7268 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7269 * gdbarch.c: Regenerate.
7270
7271 2002-04-05 Michael Snyder <msnyder@redhat.com>
7272
7273 * breakpoint.c (clear_command): Rewrite middle section to
7274 combine two loops with identical control conditions.
7275 Add a cleanup to eliminate a memory leak.
7276 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7277
7278 2002-04-05 H.J. Lu (hjl@gnu.org)
7279
7280 * solib-svr4.c (bkpt_names): Add "__start".
7281
7282 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7283
7284 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7285 as test for 64 bit target.
7286
7287 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7288
7289 * h8500-tdep.c (h8500_write_fp): Delete function.
7290 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7291 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7292 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7294 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7295 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7296 (s390_write_fp):
7297 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7298 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7299 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7300 (d10v_write_fp): Delete function.
7301 * inferior.h (write_fp, generic_target_write_fp): Delete
7302 declarations.
7303 * regcache.c (generic_target_write_fp): Delete function.
7304 (write_fp): Delete function.
7305 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7306 * gdbarch.h, gdbarch.c: Regenerate.
7307 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7308 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7309 (sparc64_write_fp): Delete declaration.
7310 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7311 (h8500_write_fp): Delete declaration.
7312
7313 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7314
7315 * sparc-tdep.c (sparc64_write_fp): Delete.
7316 (sparc_push_dummy_frame): Replace write_fp call with code to store
7317 the FP directly.
7318 (sparc_gdbarch_init): Do not initialize write_fp.
7319
7320 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7321
7322 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7323 clause.
7324
7325 2002-03-29 Jim Blandy <jimb@redhat.com>
7326
7327 * stack.c (get_selected_block): Add new argument `addr_in_block',
7328 used to return the exact code address we used to select the block,
7329 not just the block.
7330 * blockframe.c (get_frame_block, get_current_block): Same.
7331 * frame.h (get_frame_block, get_current_block,
7332 get_selected_block): Update declarations.
7333 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7334 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7335
7336 2002-04-05 Michael Snyder <msnyder@redhat.com>
7337
7338 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7339 warning message.
7340
7341 2002-04-05 J. Brobecker <brobecker@gnat.com>
7342
7343 * utils.c (xfullpath): New function.
7344 * defs.h (xfullpath): Add declaration.
7345 * source.c (openp): Use xfullpath in place of gdb_realpath to
7346 avoid resolving the basename part of filenames when the
7347 associated file is a symbolic link. This fixes a potential
7348 inconsistency between the filenames known to GDB and the
7349 filenames it prints in the annotations.
7350 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7351 to be able to match a filename with either the real filename, or
7352 the name of any symbolic link to this file.
7353 (lookup_partial_symtab): Ditto.
7354
7355 2002-04-04 Michael Snyder <msnyder@redhat.com>
7356
7357 * breakpoint.c: Add support for hardware breakpoints in overlays.
7358 (overlay_events_enabled): New state variable.
7359 (insert_breakpoints): Use overlay_events_enabled to decide
7360 whether to attempt to set a breakpoint at the overlay load addr.
7361 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7362 (remove_breakpoint): Use overlay_events_enabled to decide
7363 whether breakpoints need to be removed from overlay load addr.
7364 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7365 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7366 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7367 disable_overlay_breakpoints): Update overlay_events_enabled.
7368
7369 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7370
7371 * dwarf2read.c (struct function_range): New.
7372 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7373 (check_cu_functions): New.
7374 (read_file_scope): Initialize global function lists.
7375 Call dwarf_decode_line after processing children.
7376 (read_func_scope): Add to global function list.
7377 (dwarf_decode_lines): Call check_cu_functions everywhere
7378 record_line is called. Call record_line with a linenumber
7379 of 0 to mark sequence ends.
7380
7381 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7382
7383 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7384 change sync with glibc.
7385
7386 2002-04-03 Jim Blandy <jimb@redhat.com>
7387
7388 * configure.in: Call AC_C_INLINE.
7389 * configure: Regenerated.
7390
7391 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7392
7393 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7394 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7395
7396 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7397
7398 * NEWS: Mention gcore support on FreeBSD/i386.
7399
7400 * fbsd-proc.c: New file.
7401 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7402 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7403
7404 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7405 while statement.
7406
7407 2002-03-29 Jim Blandy <jimb@redhat.com>
7408
7409 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7410 unescaped newlines in string literals, but newer ones don't. So
7411 escape them.
7412
7413 2002-03-26 Michael Snyder <msnyder@redhat.com>
7414 Andrew Cagney <cagney@redhat.com>
7415
7416 * cli/cli-dump.c: New file. Dump memory to file,
7417 restore file to memory.
7418 * cli/cli-dump.h: New file.
7419 * Makefile.in: Add rules, dependencies for cli-dump.o.
7420 * NEWS: Mention new commands.
7421
7422 2002-03-28 Michael Snyder <msnyder@redhat.com>
7423
7424 * symfile.c (symbol_file_add): Move test for null symbols to later.
7425
7426 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7427
7428 From veksler at il.ibm.com:
7429 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7430 the xstrduped original path.
7431 Fix PR gdb/417.
7432
7433 2002-03-27 Michael Snyder <msnyder@redhat.com>
7434
7435 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7436 * infcmd.c (_initialize_infcmd): Ditto.
7437 * language.c (_initialize_language): Ditto.
7438 * symfile.c (_initialize_symfile): Ditto.
7439 * top.c (_init_main): Ditto.
7440 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7441
7442 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7443
7444 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7445 vector registers handling.
7446 (skip_prologue): Handle new AltiVec instructions. Fill in new
7447 fields of frame data.
7448 (frame_get_saved_regs): Fill in information for AltiVec registers.
7449
7450 2002-03-27 Jim Blandy <jimb@redhat.com>
7451
7452 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7453 a function; leave this macro here to invoke that function.
7454 (symbol_init_mangled_name): Declaration for that function.
7455 * symtab.c (symbol_init_mangled_name): New function.
7456
7457 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7458
7459 * valarith.c: Replace strerror with safe_strerror.
7460 * tracepoint.c: Ditto.
7461 * lin-lwp.c: Ditto.
7462 * go32-nat.c: Ditto.
7463 * inflow.c: Ditto.
7464 * gnu-nat.c: Ditto.
7465
7466 2002-03-27 Andreas Schwab <schwab@suse.de>
7467
7468 * event-top.c (command_line_handler): Remove useless if.
7469
7470 2002-03-27 Andreas Jaeger <aj@suse.de>
7471
7472 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7473 comment.
7474
7475 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7476
7477 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7478 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7479 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7480 (x86_64_linux_dr_get_status, supply_gregset),
7481 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7482 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7483 (x86_64_register_info_table): Add.
7484 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7485 (x86_64_register_raw_size, x86_64_register_virtual_type),
7486 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7487 general x86_64_register_info_table.
7488 (i386_gdbarch_init): gdbarch_register_bytes is now set
7489 dynamicaly during initialization.
7490 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7491 * gdbserver/linux-x86-64-low.c: Ditto.
7492
7493 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7494
7495 * gdbserver/server.c (main): Call target_signal_to_host_p
7496 and target_signal_to_host on signals received from the remote.
7497 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7498 target_signal_from_host on signals sent to the remote.
7499 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7500 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7501
7502 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7503
7504 * signals/signals.c: Include "server.h" in gdbserver build.
7505 (target_signal_from_name): Don't use STREQ.
7506 (_initialize_signals): Likewise. Don't include function in
7507 gdbserver build.
7508
7509 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7510
7511 * signals.c: Moved to...
7512 * signals/signals.c: Here.
7513 * Makefile (signals.o): Update.
7514
7515 2002-03-26 Jeff Law (law@redhat.com)
7516
7517 * somread.c (som_symtab_read): Remove some commented out code and
7518 updated related comments. Do not set the minimal symbol table to
7519 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7520 in a dynamic executable.
7521 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7522 where we are unable to find the minimal symbol for the given
7523 PC value.
7524
7525 2002-03-25 Jeff Law (law@redhat.com)
7526
7527 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7528
7529 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7530
7531 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7532
7533 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7534
7535 * command.h: Update copyright.
7536 (struct cmd_list_element): Replace definition with opaque
7537 declaration.
7538 (enum cmd_types): Document that it will eventually be moved to
7539 cli/cli-decode.h
7540 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7541 (MALLOCED_REPLACEMENT): Delete macro.
7542 * Makefile.in (cli_decode_h): Add $(command_h).
7543 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7544 * top.c: Include "cli/cli-decode.h".
7545 * completer.c: Include "cli/cli-decode.h".
7546 * maint.c: Include "cli/cli-decode.h".
7547 * cli/cli-decode.h: Include "command.h".
7548 (enum command_class): Delete.
7549 (enum cmd_types): Comment out.
7550 (enum cmd_auto_boolean): Delete.
7551 (enum var_types): Delete.
7552
7553 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7554
7555 * cli/cli-decode.c: Include "gdb_assert.h".
7556 (add_set_or_show_cmd): New static function.
7557 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7558 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7559 all fields, such as func, from the set command.
7560
7561 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7562
7563 * MAINTAINERS (sh-elf): Change warning flag to -w.
7564
7565 2002-03-23 Andrew Cagney <cagney@redhat.com>
7566
7567 * defs.h (error): Add printf format attribute.
7568 * thread-db.c (thread_from_lwp): Fix error format string.
7569 * stack.c (parse_frame_specification): Ditto.
7570 * cli/cli-decode.c (undef_cmd_error): Ditto.
7571 * scm-lang.c (scm_lookup_name): Ditto.
7572 * tracepoint.c (trace_error): Ditto.
7573 * remote-utils.c (usage): Ditto.
7574 * remote.c (compare_sections_command): Ditto.
7575 Fix PR gdb/328.
7576
7577 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7578
7579 * gdbtypes.c (append_composite_type_field): New function.
7580 (init_composite_type): New function.
7581 * gdbtypes.h (append_composite_type_field): Declare.
7582 (init_composite_type): Ditto.
7583
7584 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7585
7586 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7587 function.
7588 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7589 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7590 structure returning convention for SYSV ABI case, but not
7591 for GNU/Linux, FreeBSD, or NetBSD.
7592
7593 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7594
7595 * symtab.h (lookup_block_symbol): Add mangled_name argument
7596 to prototype.
7597
7598 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7599 with new mangled_name argument.
7600 * linespec.c (decode_line_1): Likewise.
7601 * valops (value_of_this): Likewise.
7602 * symtab.c (lookup_transparent_type): Likewise.
7603 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7604 (lookup_symbol): If we are given a mangled name, pass it down
7605 to lookup_symbol_aux.
7606 (lookup_block_symbol): If we are given a mangled name to check
7607 against, only return symbols which match it.
7608
7609 2002-03-22 Christopher Faylor <cgf@redhat.com>
7610
7611 * win32-nat.c (child_create_inferior): Check for proper shell to use
7612 here, in case the user changes it on the fly.
7613 (_initialize_inftarg): Remove shell path considerations.
7614
7615 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7616
7617 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7618 for gdbarch_max_register_raw_size and max_register_virtual_size.
7619 Adjust copyright year.
7620
7621 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7622
7623 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7624 in a function to cover the entire beginning of the function
7625 as well if it does not already.
7626
7627 2002-03-21 Tom Rix <trix@redhat.com>
7628
7629 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7630 (rs6000_ptrace64): Renamed from ptrace64.
7631
7632 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7633
7634 * gdbserver/remote-utils.c (remote_open): Don't call
7635 getprotobyname, we're all using TCP here so just use
7636 IPPROTO_TCP.
7637 * gdbserver/gdbreplay.c (remote_open): Ditto.
7638
7639 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7640
7641 * regcache.c (_initialize_regcache): No need to call
7642 build_regcache() at this time; it gets called whenever
7643 the gdbarch changes.
7644
7645 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7646
7647 * sparc-nat.c: Include sys/param.h where possible.
7648
7649 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7650
7651 Fix PR gdb/422.
7652 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7653 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7654 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7655 complex types.
7656 * stabsread.c (rs6000_builtin_type): Likewise.
7657 (read_sun_floating_type): Likewise.
7658
7659 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7660
7661 * stabsread.c (read_member_functions): Remove skip code for duplicate
7662 constructor/destructor methods. Use standard parsing for these
7663 methods and just do not chain them to the list of methods after
7664 parsing.
7665
7666 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7667
7668 * coffread.c: Remove redundant static declarations. Replace
7669 occurrences of `PTR' with `void *'.
7670 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7671 * top.h (quit_cover): Likewise.
7672 * defs.h (catch_errors): Likewise.
7673
7674 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7675
7676 * defs.h (XMALLOC): Define.
7677 * gdb-events.sh (XMALLOC): Delete macro.
7678 * gdb-events.c, gdb-events.h: Regenerate.
7679 * gdbarch.sh (XMALLOC): Delete macro.
7680 * gdbarch.c: Regenerate.
7681 * serial.c (XMALLOC): Delete macro.
7682 * ui-file.c (XMALLOC): Ditto.
7683 * ser-unix.h (XMALLOC): Ditto.
7684 * sh-tdep.c (XMALLOC): Ditto.
7685 * ui-out.c (XMALLOC): Ditto.
7686 * utils.c (XMALLOC): Ditto.
7687 * i386-tdep.c (XMALLOC): Ditto.
7688 * gdb-events.c (XMALLOC): Ditto.
7689 * d10v-tdep.c (XMALLOC): Ditto.
7690 * cli-out.c (XMALLOC): Ditto.
7691
7692 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7693 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7694 * ui-file.c, ui-out.c: Ditto.
7695
7696 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7697
7698 * command.h (struct cmd_list_element): Add field context.
7699 (set_cmd_context, get_cmd_context): Declare.
7700 * cli/cli-decode.h: Ditto.
7701 * cli/cli-decode.c (get_cmd_context): New function.
7702 (set_cmd_context): New function.
7703 (add_cmd): Initialize context.
7704 Part of fixing PR gdb/145 and PR gdb/146.
7705
7706 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7707
7708 * cli/cli-decode.c (cmd_type): New function.
7709 * command.h (cmd_type): Declare.
7710 * infrun.c (set_schedlock_func): Call function cmd_type.
7711 * kod.c (kod_set_os): Call cmd_type.
7712 * cris-tdep.c (cris_version_update): Use function cmd_type.
7713 (cris_mode_update, cris_abi_update): Ditto.
7714
7715 * command.h: (execute_cmd_post_hook): Declare.
7716 (execute_cmd_pre_hook): Declare.
7717 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7718 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7719 functions. Execute pre/post hook while ensuring that afterwords
7720 hook_in is cleared.
7721 * top.c (execute_command): Use execute_cmd_post_hook, and
7722 execute_cmd_pre_hook to execute pre/post commands.
7723 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7724 hook_stop_stub.
7725 (hook_stop_stub): Call execute_cmd_pre_hook.
7726
7727 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7728
7729 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7730 set'' and this leads to a core dump. Move xstrdup of
7731 operating_system to after check that it is not NULL.
7732
7733 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7734
7735 * kod.c (kod_set_os): Remove unnecessary check that
7736 ``command->type'' is set_cmd.
7737
7738 * valprint.c (set_input_radix): Use input_radix.
7739 (set_output_radix): Use output_radix.
7740 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7741 isn't reverted.
7742
7743 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7744
7745 * value.h (struct value): Delete field ``substring_addr''. Change
7746 aligner fields to force_doublest_align, force_longest_align,
7747 force_core_addr_align and force_pointer_aligh.
7748
7749 * value.h (struct value): Fix typo in above change.
7750
7751 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7752
7753 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7754 to fix internal_error from ``maintenance print architecture''.
7755
7756 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7757
7758 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7759 for gcc versions after gcc-2.8.1.
7760
7761 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7762
7763 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7764 for method resolution. Restore adjustment of ``this'' pointer after
7765 calling value_struct_elt, which was accidentally removed during the
7766 HP merge.
7767
7768 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7769
7770 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7771 value_of_register.
7772 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7773 get_saved_register.
7774 * value.h (value_of_register): Update.
7775
7776 2002-03-14 Richard Henderson <rth@redhat.com>
7777
7778 * configure.in: Detect declaration for canonicalize_file_name.
7779 * utils.c (canonicalize_file_name): Declare, if needed.
7780 (gdb_realpath): Prefer realpath if available and usable.
7781 * config.in, configure: Rebuild.
7782
7783 2002-03-14 Richard Henderson <rth@redhat.com>
7784
7785 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7786 a constant array bound.
7787
7788 * MAINTAINERS: Add myself to write-after-approval.
7789
7790 2002-03-14 Michael Snyder <msnyder@redhat.com>
7791
7792 * symfile.c (syms_from_objfile): Return immediately if no syms.
7793 (symbol_file_add): Return immediately if no syms.
7794 (find_sym_fns): Return immediately if no syms.
7795
7796 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7797
7798 * gdbserver/remote-util.c (remote_open): Print remote-side's
7799 IP address when remote debugging over the network.
7800
7801 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7802
7803 * config/sparc/fbsd.mh: Fix copyright.
7804 * config/sparc/fbsd.mt: Likewise.
7805
7806 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7807
7808 * MAINTAINERS: Fix typo in name of gdb warnings option.
7809 (x86-64): Fix formating so that this can be parsed by awk.
7810
7811 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7812
7813 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7814 * defs.h: Include "gdb/signals.h".
7815 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7816
7817 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7818
7819 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7820 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7821 from x86-64-tdep.h
7822
7823 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7824 Don Howard <dhoward@redhat.com>
7825
7826 * mips-tdep.c (ST0_FR): Define.
7827 (mips2_fp_compat): New function, temporarily disabled.
7828 (mips_read_fp_register_single): New function.
7829 (mips_read_fp_register_double): New function.
7830 (mips_print_register): Use them.
7831 (do_fp_register_row): Likewise.
7832
7833 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7834
7835 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7836 approval''.
7837
7838 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7839
7840 * stabsread.c (read_member_functions): Fix is_stub test for
7841 static member functions, improve comment.
7842
7843 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7844
7845 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7846 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7847 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7848 commands that set boolean values.
7849 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7850 (arm_rdi_resume): Always initialize PC.
7851 (arm_rdi_open): Don't use rslt as a boolean.
7852 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7853 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7854 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7855 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7856
7857 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7858
7859 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7860 * configure: Rebuilt.
7861
7862 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7863
7864 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7865 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7866
7867 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7868
7869 * cli/cli-decode.c (set_cmd_completer): New function.
7870 * command.h (set_cmd_completer): Declare.
7871 * cli/cli-decode.h (set_cmd_completer): Ditto.
7872
7873 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7874 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7875 * win32-nat.c (_initialize_inftarg): Ditto.
7876 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7877 * proc-api.c (_initialize_proc_api): Ditto.
7878 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7879 * source.c (_initialize_source): Ditto.
7880 * exec.c (_initialize_exec): Ditto.
7881 * solib.c (_initialize_solib): Ditto.
7882 * top.c (init_main): Ditto.
7883 * tracepoint.c (_initialize_tracepoint): Ditto.
7884 * symfile.c (_initialize_symfile): Ditto.
7885 * printcmd.c (_initialize_printcmd): Ditto.
7886 * infcmd.c (_initialize_infcmd): Ditto.
7887 * corefile.c (_initialize_core): Ditto.
7888
7889 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7890
7891 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7892
7893 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7894
7895 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7896
7897 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7898
7899 * NEWS: Update headings, 5.2 has branched.
7900
7901 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7902
7903 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7904 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7905 (register_addr, REGISTER_RAW_SIZE): Likewise.
7906 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7907 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7908
7909 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7910
7911 * MAINTAINERS (x86-64): Add myself.
7912 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7913 changed value_ptr -> struct value *
7914
7915 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7916
7917 * configure.host (sparc64-*-freebsd): Add.
7918 * configure.tgt: Likewise.
7919 * config/sparc/fbsd.mh: New file.
7920 * config/sparc/fbsd.mt: Likewise.
7921 * config/sparc/nm-fbsd.h: Likewise.
7922 * config/sparc/tm-fbsd.h: Likewise.
7923
7924 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7925
7926 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7927 regformats/reg-s390x.dat.
7928
7929 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7930
7931 * utils.c: Add FIXME explaining true/false problem.
7932
7933 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7934
7935 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7936
7937 2002-02-28 Michael Chastain <mec@shout.net>
7938
7939 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7940
7941 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7942
7943 * gdbserver/linux-s390-low.c: New file.
7944 * regformats/reg-s390.dat: New file.
7945 * regformats/reg-s390x.dat: New file.
7946 * gdbserver/configure.srv: Add S/390.
7947 * gdbserver/Makefile.in: Add S/390.
7948 * configure.tgt: Enable gdbserver for S/390.
7949
7950 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7951
7952 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7953 first line of the doc string for "info dos", except at the end of
7954 the sentence, since the short help stops at the first period.
7955
7956 2002-02-28 Jason Merrill <jason@redhat.com>
7957
7958 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7959
7960 2002-02-27 Fred Fish <fnf@redhat.com>
7961
7962 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7963 comment (dumy -> dummy).
7964
7965 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7966
7967 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7968
7969 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7970
7971 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7972
7973 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7974
7975 * gdbserver/acconfig.h: New file.
7976 * gdbserver/i387-fp.c: New file.
7977 * gdbserver/i387-fp.h: New file.
7978 * gdbserver/linux-x86-64.c: New file.
7979 * regformats/reg-x86-64.dat: New file.
7980 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7981 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7982 * gdbserver/configure.in: Add support for regsets.
7983 * gdbserver/config.in: Regenerate.
7984 * gdbserver/configure: Regenerate.
7985 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7986 * gdbserver/linux-low.h: New file.
7987 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7988 for regsets.
7989 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7990 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7991 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7992 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7993 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7994 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7995 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7996 "i387-fp.h". Add PTRACE_GETREGS and friends.
7997 * gdbserver/regcache.c (supply_register): New function.
7998 (supply_register_by_name): New function.
7999 (collect_register): New function.
8000 (collect_register_by_name): New function.
8001
8002 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8003
8004 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8005 (config.status): Add configure.srv dependency.
8006 (server_h): Add config.h dependency.
8007
8008 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8009
8010 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8011 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8012 * gdbserver/configure.srv: Change i386-*-linux* to use
8013 reg-i386-linux.o.
8014
8015 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8016
8017 * x86-64-tdep.c: Re-indent. Update copyright date.
8018
8019 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8020
8021 From Michal Ludvig <mludvig@suse.cz>:
8022 * x86-64-tdep.c (value.h): Delete.
8023 (gdb_assert.h): Include.
8024 (x86_64_register_convert_to_virtual,
8025 x86_64_register_convert_to_raw ): Add check which lets only
8026 floating-point values to be converted.
8027 (value_push): Delete.
8028 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8029 (i386_gdbarch_init): Number of register_bytes fixed.
8030
8031 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8032
8033 * MAINTAINERS: Add x86-64 target.
8034
8035 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8036
8037 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8038 * osfsolib.c (solib_map_sections): Ditto.
8039 * irix5-nat.c (solib_map_sections): Ditto.
8040 * corelow.c (gdb_check_format): Ditto.
8041 * symfile.c (symfile_bfd_open): Ditto.
8042 * solib.c (solib_map_sections): Ditto.
8043 Fix PR gdb/354.
8044
8045 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8046
8047 * remote.c (_initialize_remote): By default, disable ``e'' and
8048 ``E'' step out-of-range packets.
8049
8050 2002-02-26 Andreas Schwab <schwab@suse.de>
8051
8052 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8053 m68k_linux_frame_saved_pc.
8054 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8055 in_sigtramp.
8056 (SIGCONTEXT_PC_OFFSET): Remove.
8057 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8058 m68k_linux_sigtramp_saved_pc): New functions.
8059 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8060 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8061 (UCONTEXT_PC_OFFSET): Define.
8062 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8063 non-RT and RT signal trampolines.
8064
8065 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8066
8067 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8068 (TARGET_NBPG, STACK_END_ADDR): Delete
8069 (VARIABLES_INSIDE_BLOCK): Delete.
8070
8071 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8072
8073 * utils.c (perror_with_name): Make string parameter constant.
8074 (print_sys_errmsg): Ditto.
8075 (query): Ditto.
8076 * defs.h (perror_with_name): Update.
8077 (print_sys_errmsg): Update.
8078 (query): Update.
8079
8080 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8081
8082 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8083 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8084
8085 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8086
8087 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8088 if it already matches the current architecture from the exec file.
8089 Include arch-utils.h for gdbarch_info_init prototype.
8090 * Makefile.in (rs6000-nat.o): Update dependencies.
8091
8092 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8093
8094 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8095 list of exported variables.
8096
8097 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8098
8099 * gdbserver/configure.srv: New file.
8100 * gdbserver/configure.in: Use configure.srv instead
8101 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8102 from it.
8103 * gdbserver/configure: Regenerated.
8104 * gdbserver/terminal.h: New file.
8105 * gdbserver/Makefile.in: Update for configure changes. Remove
8106 more unneeded include paths.
8107
8108 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8109
8110 From wiz at danbala:
8111 * config/sparc/tm-sp64.h: Fix grammar and typos.
8112 Fix PR gdb/287.
8113
8114 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8115
8116 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8117 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8118 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8119 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8120 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8121 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8122 * s390-tdep.c: Ditto.
8123 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8124 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8125 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8126 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8127 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8128 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8129 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8130 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8131 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8132 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8133 Fix PR gdb/378.
8134
8135 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8136
8137 * lin-thread.c: Delete file.
8138 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8139 to gdb_proc_service.h.
8140 * configure: Re-generate.
8141
8142 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8143 * serial.c (serial_open): Delete check for "ocd".
8144 Fix PR gdb/349.
8145
8146 * Makefile.in (linux-thread.o): Delete target.
8147 * linux-thread.c: Delete file.
8148
8149 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8150 renamed SH files to be consistent.
8151
8152 * symtab.c (sort_search_symbols): Use xfree.
8153
8154 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8155
8156 * arm-linux-tdep.c (arm_linux_init_abi): Register
8157 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8158 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8159 definition with undef, since we don't want the sysvr4 definition.
8160 (SKIP_TRAMPOLINE_CODE): Likewise.
8161
8162 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8163
8164 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8165
8166 * configure.in: (AC_CHECK_FUNCS) Added test for
8167 canonicalize_file_name Regenerated.
8168 * config.in, configure: Regenerated.
8169 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8170 defined use canonicalize_file_name.
8171
8172 2002-02-23 Michael Chastain <mec@shout.net>
8173
8174 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8175
8176 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8177
8178 * README: Remove references to cygnus.com.
8179 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8180 dot com'' form. Remove references to cygnus.com and sourceware.
8181
8182 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8183
8184 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8185 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8186 1003.1-2001 no longer allows "head -1".
8187 * gdb/Makefile.in (version.c): Likewise.
8188 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8189 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8190 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8191
8192 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8193
8194 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8195 * command.h (cmd_cfunc_eq): Declare.
8196 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8197
8198 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8199 ``struct cmd_list_element *''.
8200 * cli/cli-cmds.c (is_complete_command): Update. Use
8201 cmd_cfunc_eq.
8202 * top.c (execute_command): Pass the command to
8203 is_complete_command.
8204 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8205
8206 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8207
8208 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8209 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8210 architecture defines.
8211 * s390-tdep.c (s390_gdbarch_init): Likewise.
8212
8213 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8214
8215 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8216 (arm_linux_push_arguments): Likewise.
8217 (arm_linux_init_abi): Register them. Also register linux-specific
8218 call_dummy_words.
8219 (find_minsym_and_objfile): Use strcmp, not STREQ.
8220 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8221 (arm_linux_call_dummy_words): Delete declaration.
8222 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8223 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8224 declarations.
8225 (LOWEST_PC): Delete.
8226
8227 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8228
8229 * maint.c (print_section_info): Do not prepend `0x' to filepos
8230 output, it will be handled by local_hex_string_custom.
8231
8232 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8233
8234 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8235 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8236 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8237
8238 2002-02-22 Jim Blandy <jimb@redhat.com>
8239
8240 Indicate that the bcache functions don't change the strings
8241 they're passed.
8242 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8243 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8244
8245 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8246
8247 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8248
8249 2002-02-21 Christopher Faylor <cgf@redhat.com>
8250
8251 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8252 find the complete path to a loaded DLL.
8253
8254 2002-02-21 Fred Fish <fnf@redhat.com>
8255
8256 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8257 that marks the end of the range of a function, enter a line number
8258 entry that has a line number of zero and a PC offset that matches
8259 the end of the function. This starts a range of PC's for which no
8260 line number information is known.
8261 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8262 PC's for which no line number info is found (line number is zero)
8263 then we didn't find any valid line information.
8264 * symtab.h: Document use of zero line number entry.
8265
8266 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8267
8268 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8269 (have_ptrace_getvrregs): Define for run time checks.
8270 (gdb_vrregset_t): New type for Altivec register handling.
8271 (fetch_register, store_register): Fetch/store altivec register
8272 when needed.
8273 (fetch_altivec_register, store_altivec_register): New functions.
8274 (supply_vrregset, fill_vrregset): New functions.
8275 (fetch_altivec_registers, store_altivec_registers): New functions.
8276 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8277 registers as well.
8278
8279 2002-02-21 Jiri Smid <smid@suse.cz>
8280
8281 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8282
8283 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8284
8285 * Makefile.in (armnbsd-nat.o): Update dependencies.
8286 * armnbsd-nat.c (supply_gregset): New function. Common code to
8287 supply the integer register set.
8288 (supply_fparegset): New function. Similar for FPA registers.
8289 (fetch_regs, fetch_fp_regs): Use them.
8290 (fetch_core_registers): Likewise.
8291 (fetch_elfcore_registers): New function.
8292 (arm_netbsd_elfcore_fns): New core-file type specification.
8293 (_initialize_arm_netbsd_nat): Register it.
8294
8295 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8296
8297 * armnbsd-nat.c: Include gdbcore.h.
8298 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8299 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8300 'void' to declaration, to shut up ARI.
8301 (fetch_core_registers): Make static. Rewrite using supply_register.
8302 (arm_netbsd_core_fns): New core-file type specification.
8303 (_initialize_arm_netbsd_nat): New function.
8304
8305 2002-02-21 Christopher Faylor <cgf@redhat.com>
8306
8307 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8308 value.
8309
8310 2002-02-20 Christopher Faylor <cgf@redhat.com>
8311
8312 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8313 fails.
8314
8315 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8316
8317 * jv-exp.y (parse_number): Change type of implicit longs
8318 to builtin_type_uint64.
8319
8320 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8321
8322 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8323 to be an integer instead of a `union wait'.
8324
8325 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8326
8327 * mips-linux-nat.c: Call the operating system GNU/Linux.
8328 * mips-linux-tdep.c: Likewise.
8329 * mips-tdep.c: Likewise.
8330
8331 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8332
8333 Fix PR gdb/265.
8334 * jv-exp.y (parse_number): Handle 64-bit integers.
8335
8336 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8337
8338 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8339 AC_STDC_HEADERS to AC_HEADER_STDC.
8340 * gdbserver/configure: Regenerated.
8341
8342 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8343
8344 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8345 is defined.
8346 * sparc-tdep.c (get_longjmp_target): Likewise.
8347
8348 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8349
8350 * News: Add news about ARM and Multi-arch. Mention the new target
8351 arm*-*-netbsd*.
8352
8353 2002-02-19 Jim Blandy <jimb@redhat.com>
8354
8355 * stabsread.c (error_type_complaint): Improve error message.
8356
8357 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8358
8359 * gdbserver/README: Update documentation.
8360 * gdbserver/configure.in: Update configury to match documentation.
8361 * gdbserver/Makefile.in: Likewise.
8362 * gdbserver/configure: Regenerated.
8363 * gdbserver/aclocal.m4: New file, generated by aclocal.
8364 * gdbserver/config.in: New file, generated by autoheader.
8365
8366 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8367
8368 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8369 armnbsd-nat.c.
8370
8371 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8372
8373 * arm-tdep.h (enum arm_float_model): New enum.
8374 (struct gdbarch_tdep): Add fp_model.
8375 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8376 up floating-point conversions until we know the floating-point model
8377 in use by the inferior. Don't complain about being unable to
8378 determine the ABI of the inferior when we don't have one.
8379 (arm_extract_return_value): Support different floating-point models.
8380 (arm_store_return_value): Likewise.
8381 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8382 ARM_FLOAT_SOFT.
8383 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8384
8385 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8386
8387 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8388 of ``current_gdbarch''.
8389
8390 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8391
8392 * armnbsd-nat.c : ANSIfy all function declarations.
8393 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8394 (fetch_inferior_registers): Re-implement in terms of above.
8395 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8396 (store_inferior_registers): Re-implement in terms of above.
8397
8398 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8399
8400 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8401 kernel.
8402 * arm-linux-tdep.c: Likewise.
8403 * config/arm/tm-linux.h: Likewise.
8404
8405 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8406
8407 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8408 * config/arm/nbsd.mt (TM_FILE): Delete.
8409 * config/arm/tm-nbsd.h: Delete.
8410
8411 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8412
8413 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8414 Initialize CALL_DUMMY_LENGTH.
8415
8416 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8417
8418 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8419 function.
8420 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8421 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8422 defines one thing and that is incorrect for this port.
8423 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8424
8425 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8426
8427 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8428
8429 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8430
8431 * win32-nat.c (display_selector): New function. Displays information
8432 about the information returned by GetThreadSelectorEntry API function.
8433 (display_selectors): New function. Displays the infomation of
8434 the selector given as argument, or of CS, DS ans FS selectors
8435 if no argument is given.
8436 ( _initialize_inftarg): Add "w32" as info prefix command.
8437 Add "info w32 selector" as command calling display_selectors.
8438
8439 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8440
8441 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8442 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8443 if not defined.
8444
8445 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8446
8447 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8448
8449 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8450
8451 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8452 (arm_fix_call_dummy): Call it.
8453 (arm_call_dummy_breakpoint_offset): Delete.
8454 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8455 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8456
8457 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8458
8459 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8460 Default to func_frame_chain_valid.
8461 * gdbarch.h, gdbarch.c: Re-generate.
8462 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8463
8464 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8465
8466 * ppc-linux-nat.c: Update copyright.
8467 (fetch_register, store_register): Add tid parameter, don't compute
8468 tid here.
8469 (fetch_ppc_registers, store_ppc_registers): Add tid
8470 parameter. Pass it along to callees.
8471 (fetch_inferior_registers, store_inferior_registers): Compute tid
8472 here, and pass it to calleed functions.
8473 (fill_gregset, supply_fpregset): Clean up formatting.
8474
8475 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8476
8477 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8478 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8479
8480 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8481
8482 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8483 * gdbarch.c gdbarch.h: Regenerate.
8484 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8485 function.
8486 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8487 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8488 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8489
8490 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8491 * arm-tdep.c (arm_get_longjmp_target): New function.
8492 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8493 this to a positive value register arm_get_longjmp_target as the
8494 longjmp handler.
8495 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8496 (arm_linux_init_abi): Set up longjmp description in tdep.
8497 * armnbsd-nat.c (get_longjmp_target): Delete.
8498 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8499 description in tdep.
8500 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8501 (get_longjmp_target): Delete declaration.
8502 (GET_LONGJMP_TARGET): Delete.
8503 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8504 (GET_LONGJMP_TARGET): Delete.
8505
8506 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8507
8508 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8509 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8510 of ``current_gdbarch''.
8511
8512 2002-02-17 Tom Tromey <tromey@redhat.com>
8513
8514 * cli/cli-cmds.c (compare_strings): New function.
8515 (complete_command): Only print each unique item once.
8516 * completer.h (complete_line): Declare.
8517 * completer.c (complete_line): New function.
8518 (line_completion_function): Use it.
8519
8520 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8521
8522 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8523 * gdbarch.h, gdbarch.c: Re-generate.
8524
8525 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8526
8527 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8528
8529 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8530
8531 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8532 * valops.c (value_arg_coerce): Don't take the address of a reference
8533 to convert an argument to a reference.
8534
8535 2002-02-15 Christopher Faylor <cgf@redhat.com>
8536
8537 * win32-nat.c (get_image_name): New function.
8538 (handle_load_dll): Use get_image_name function.
8539 (get_child_debug_event): Avoid registering debug events until possibly
8540 execed process is started.
8541 (child_create_inferior): Allow invocation via shell so that command
8542 line redirection, etc. works ok.
8543 (_initialize_inftarg): Add new command: "set shell" to control whether
8544 a shell is used to start a process.
8545
8546 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8547
8548 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8549 instead of find_register_by_number.
8550 (cannot_store_register): Likewise.
8551
8552 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8553
8554 * dwarf2read.c: Replace fprintf (stderr, ...) by
8555 fprintf_unfiltered (gdb_stderr, ...).
8556
8557 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8558
8559 * gdbserver/gdbserver.1: Document --attach.
8560
8561 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8562
8563 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8564 descriptions.
8565 * arm-tdep.c (arm_default_arm_le_breakpoint)
8566 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8567 (arm_default_thumb_be_breakpoint): New. Initialize them from
8568 traditional breakpoint defines.
8569 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8570 (arm_gdbarch_init): Initialize new breakpoint variables.
8571 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8572 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8573 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8574 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8575 code out to ...
8576 (arm_netbsd_init_abi_common): ... here; new function.
8577 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8578 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8579 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8580 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8581
8582 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8583
8584 * arm-tdep.h (enum arm_abi): New enum.
8585 (struct gdbarch_tdep): New structure.
8586 (LOWEST_PC): Provide a default.
8587 (arm_gdbarch_register_os_abi): Declare new function.
8588 * arm-tdep.c (arm_abi_names): New array.
8589 (process_note_abi_tag_sections): New function.
8590 (get_elfosabi): New function.
8591 (arm_gdbarch_register_os_abi): New function.
8592 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8593 support for that ABI has been built in, then call the appropriate
8594 configuration routine. Use gdbarch_num_regs() to get the number
8595 of registers.
8596 (arm_dump_tdep): New function.
8597 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8598 place-holder functions.
8599 (_initialize_arm_tdep): Register them.
8600 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8601
8602 * armnbsd-tdep.c: New file.
8603 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8604 * config/arm/nbsd.mt (TDEPFILES): Add it.
8605 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8606
8607 * armnbsd-nat.c: Include regcache.h.
8608 * Makefile.in (armnbsd-nat.o): Update dependency list.
8609
8610 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8611
8612 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8613
8614 * gdbserver/Makefile.in: Fix typos in target rules.
8615
8616 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8617
8618 Fix part of PR gdb/267.
8619 * linespec.c (find_methods): Handle constructors specially for now.
8620
8621 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8622
8623 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8624 handling.
8625 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8626 standard_coerce_float_to_double().
8627
8628 2002-02-14 Christopher Faylor <cgf@redhat.com>
8629
8630 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8631 GDBINIT_FILENAME.
8632
8633 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8634
8635 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8636 find_variant_by_name, because it confuses the multiarch
8637 framework. Return NULL if there isn't an architecture with the
8638 user supplied name, instead of forcing a different one without
8639 recording the change with the multiarch machinery.
8640 (find_variant_by_name): Delete.
8641
8642 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8643
8644 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8645 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8646
8647 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8648
8649 * stack.c (print_frame_info_base): When calling
8650 print_frame_info_listing_hook, set current_source_symtab.
8651
8652 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8653
8654 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8655 and remove unused $(INCLUDE_DIR).
8656 Add regcache.c to OBS.
8657 Add generated register protocol files to clean target.
8658 Update dependencies for new objects, obsolete old target code.
8659
8660 * gdbserver/linux-low.c: Remove all platform-specific code to
8661 new files. Remove various dead code. Update to use regcache
8662 functionality.
8663 * gdbserver/remote-utils.c (fromhex): Add return statement
8664 to quiet warning.
8665 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8666 constant.
8667 (input_interrupt): Add integer parameter to match prototype
8668 of a signal handler.
8669 (outreg): Use register_data ().
8670 (prepare_resume_reply): Use gdbserver_expedite_regs.
8671 * gdbserver/server.c (main): Dynamically allocate own_buf because
8672 PBUFSIZ is no longer constant. Use registers_to_string () and
8673 registers_from_string ().
8674 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8675 for error (), fatal (), and warning (). Update definition of
8676 PBUFSIZ to use regcache functionality. Add include guard.
8677 * gdbserver/utils.c (fatal): Add missing ``const''.
8678 (warning): New function.
8679
8680 * regformats/regdat.sh: Include "regcache.h" in generated files.
8681 Provide init_registers () function.
8682 * regformats/regdef.h: Add prototype for set_register_cache ().
8683 Add include guard.
8684
8685 * gdbserver/linux-arm-low.c: New file.
8686 * gdbserver/linux-i386-low.c: New file.
8687 * gdbserver/linux-ia64-low.c: New file.
8688 * gdbserver/linux-m68k-low.c: New file.
8689 * gdbserver/linux-mips-low.c: New file.
8690 * gdbserver/linux-ppc-low.c: New file.
8691 * gdbserver/linux-sh-low.c: New file.
8692
8693 * gdbserver/regcache.c: New file.
8694 * gdbserver/regcache.h: New file.
8695
8696 * gdbserver/low-linux.c: Removed obsolete file.
8697
8698 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8699
8700 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8701 * config/i386/linux.mt: Likewise.
8702 * config/ia64/linux.mt: Likewise.
8703 * config/m68k/linux.mh: Likewise.
8704 * config/powerpc/linux.mh: Likewise.
8705 * config/mips/linux.mt: Likewise.
8706
8707 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8708
8709 * config/i386/i386lynx.mh: Mark gdbserver variables
8710 as (currently) obsolete for this target.
8711 * config/i386/nbsd.mt: Likewise.
8712 * config/i386/nbsdelf.mt: Likewise.
8713 * config/m32r/m32r.mt: Likewise.
8714 * config/m68k/m68klynx.mh: Likewise.
8715 * config/m68k/nbsd.mt: Likewise.
8716 * config/m68k/sun3os4.mh: Likewise.
8717 * config/mips/vr5000.mt: Likewise.
8718 * config/ns32k/nbsd.mt: Likewise.
8719 * config/pa/hppabsd.mh: Likewise.
8720 * config/pa/hppaosf.mh: Likewise.
8721 * config/powerpc/nbsd.mt: Likewise.
8722 * config/rs6000/rs6000lynx.mh: Likewise.
8723 * config/s390/s390.mt: Likewise.
8724 * config/s390/s390x.mt: Likewise.
8725 * config/sparc/sparclynx.mh: Likewise.
8726 * config/sparc/sun4os4.mh: Likewise.
8727 * config/i386/x86-64linux.mt: Likewise.
8728 * config/sparc/linux.mh: Likewise.
8729
8730 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8731
8732 * configure.tgt: Configure gdbserver only for known working
8733 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8734 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8735 SUBDIRS if it is configured. Update comment for ${nativefile}.
8736 * configure: Regenerated.
8737
8738 2002-02-13 Michael Snyder <msnyder@redhat.com>
8739
8740 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8741
8742 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8743 (default_gcore_mach): Just return 0, work around a problem in bfd.
8744 (default_gcore_target): OK to return NULL if exec_bfd is null.
8745 (make_mem_sec): Use a cast, avoid a warning.
8746
8747 * procfs.c (find_memory_regions_callback): Use a cast instead of
8748 calling host_pointer_to_address (which complains if
8749 sizeof (host pointer) != sizeof (target pointer)).
8750 (procfs_make_note_section): Avoid overflow in psargs string.
8751
8752 * procfs.c (procfs_make_note_section): Make the default
8753 implementation return an error.
8754
8755 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8756
8757 * procfs.c (procfs_make_note_section): Provide a default definition
8758 (for alpha-dec-osf4.0f). Fix typos.
8759
8760 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8761
8762 * linux-proc.c: Add include of regcache.h.
8763 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8764
8765 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8766
8767 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8768 * memattr.c (create_mem_region): Disallow useless empty region.
8769 Regions are half-open intervals, so allow [A..B) [B..C) as
8770 non-overlapping.
8771
8772 2002-02-13 Michael Chastain <mec@shout.net>
8773
8774 * defs.h: Kill CONST_PTR.
8775 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8776 * c-lang.c (c_builtin_types): Likewise.
8777 * ch-lang.c (ch_builtin_types): Likewise.
8778 * f-lang.c (f_builtin_types): Likewise.
8779 * language.c (unknown_builtin_types): Likewise.
8780 * m2-lang.c (m2_builtin_types): Likewise.
8781 * p-lang.c (pascal_builtin_types): Likewise.
8782 * scm-lang.c (c_builtin_types): Likewise.
8783
8784 2002-02-13 Keith Seitz <keiths@redhat.com>
8785
8786 * arm-tdep.h (arm_get_next_pc): Add declaration.
8787
8788 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8789
8790 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8791 with other related struct-returning functions.
8792 (arm_extract_struct_value_address): New function.
8793 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8794 initialize float_format, double_format and long_double_format as
8795 appropriate to the endianness of the target.
8796 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8797 (arm_use_struct_convention): Delete declaration.
8798 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8799
8800 2002-02-13 Keith Seitz <keiths@redhat.com>
8801
8802 * defs.h (core_addr_to_string_nz): New function.
8803
8804 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8805
8806 Apply missing bits of 2002-01-15 patch.
8807 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8808 (fill_fpregset): Use i387_fill_fsave.
8809
8810 2002-02-12 Keith Seitz <keiths@redhat.com>
8811
8812 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8813 (core_addr_to_string_nz): New function.
8814
8815 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8816
8817 * arm-linux-nat.c: Really include arm-tdep.h.
8818 * config/arm/tm-linux.h (struct type, struct value): Declare.
8819
8820 2002-02-11 Michael Snyder <msnyder@redhat.com>
8821
8822 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8823 (gcore section): Ifdef for Solaris and Unixware only.
8824 (procfs_do_thread_registers): Unixware needs one lwpstatus
8825 per thread (not one prstatus or pstatus).
8826 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8827 not over all gdb threads. For unixware, call elfcore_write_pstatus
8828 once before iterating over threads.
8829
8830 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8831
8832 * arm-tdep.h: New file.
8833 * arm-tdep.c: Include arm-tdep.h.
8834 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8835 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8836 (arm_print_float_info, arm_register_type, convert_to_extended)
8837 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8838 (arm_extract_return_value, arm_register_name): Make static.
8839 (arm_software_single_step): Similarly. Fix types in declaration.
8840 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8841 (arm_store_return_value, arm_store_struct_return): New functions.
8842 (arm_gdbarch_init): Register the above functions. Also register
8843 call_dummy_start_offset, sizeof_call_dummy_words,
8844 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8845 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8846 max_register_virtual_size, register_size. Set up
8847 prologue_cache.saved_regs here, rather than ...
8848 (_initialize_arm_tdep): ... here.
8849 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8850 declarations.
8851 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8852 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8853 (arm_print_float_info, arm_register_type, convert_to_extended)
8854 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8855 (arm_extract_return_value, arm_register_name): Delete declarations.
8856 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8857 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8858 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8859 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8860 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8861 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8862 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8863 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8864 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8865 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8866 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8867 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8868 interface.
8869 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8870 * remote-rdi.c remote-rdp.c: Likewise.
8871 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8872 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8873 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8874 definition.
8875
8876 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8877 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8878 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8879 from non-ARM_ prefixed definitions.
8880 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8881 all uses of above.
8882 * remote-rdi.c remote-rdp.c: Likewise.
8883 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8884
8885 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8886
8887 * arm-tdep.c (arm_frameless_function_invocation)
8888 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8889 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8890 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8891 (arm_pop_frame, arm_get_next_pc): Make static.
8892 (arm_gdbarch_init): Register above in gdbarch structure.
8893 (arm_read_fp): Renamed from arm_target_read_fp.
8894 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8895 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8896 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8897 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8898 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8899 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8900 (arm_pc_is_thumb_dummy): Delete declarations.
8901 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8902 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8903 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8904 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8905
8906 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8907
8908 * symtab.c (compare_search_syms): New function.
8909 (sort_search_symbols): New function.
8910 (search_symbols): Sort symbols after searching rather than
8911 before.
8912
8913 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8914
8915 * NEWS: Linux -> GNU/Linux.
8916
8917 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8918
8919 * gdbarch.sh: For for level one methods, disallow a definition
8920 when partially multi-arched. Add comments explaining rationale.
8921 * gdbarch.h: Re-generate.
8922
8923 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8924
8925 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8926 multi-arch partial.
8927
8928 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8929
8930 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8931 field. Use diff -u.
8932 * gdbarch.c: Re-generate.
8933
8934 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8935
8936 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8937 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8938 partial.
8939
8940 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8941
8942 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8943 multi-arch partial.
8944 (PUSH_ARGUMENTS): Switch to using predefault.
8945 * gdbarch.c: Regenerate.
8946
8947 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8948
8949 * valops.c (PUSH_ARGUMENTS): Delete definition.
8950 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8951 partial. Default to default_push_arguments.
8952 * gdbarch.h, gdbarch.c: Regenerate.
8953
8954 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8955
8956 * defs.h (throw_exception): Rename return_to_top_level. Update
8957 comments.
8958 * utils.c (error_stream, internal_verror, quit): Ditto.
8959 * top.c (throw_exception, catcher): Ditto.
8960 * sparclet-rom.c (sparclet_load): Ditto.
8961 * remote.c (interrupt_query, minitelnet): Ditto.
8962 * remote-sds.c (interrupt_query): Ditto.
8963 * remote-mips.c (mips_error, mips_kill): Ditto.
8964 * ocd.c (interrupt_query): Ditto.
8965 * monitor.c (monitor_interrupt_query): Ditto.
8966 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8967 * target.h: Update comment.
8968
8969 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8970
8971 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8972
8973 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8974 default_double_format.
8975 * gdbarch.h, gdbarch.c: Re-generate.
8976 * findvar.c (floatformat_unknown): Delete variable definition.
8977 * doublest.h (floatformat_unknown): Delete variable declaration.
8978
8979 2002-02-09 Jim Blandy <jimb@redhat.com>
8980
8981 * stabsread.c (read_type): Add code to parse Sun's syntax for
8982 prototyped function types.
8983
8984 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8985
8986 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8987 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8988
8989 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8990
8991 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8992 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8993 now _initialize_xcoffsolib gets called again and overrides the
8994 commands from solib.c in a native configuration.
8995
8996 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8997
8998 * doublest.c (store_typed_floating): Don't try to return a value.
8999 Fixes PR gdb/290.
9000
9001 2002-02-08 Jim Blandy <jimb@redhat.com>
9002
9003 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9004 is prototyped and has no arguments, print its argument list as
9005 `(void)'.
9006
9007 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9008
9009 * MAINTAINERS (write-after-approval): Add myself.
9010 (paper-trail): I've escaped!
9011
9012 2002-02-08 Christopher Faylor <cgf@redhat.com>
9013
9014 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9015 changes.
9016 (_initialize_check_for_gdb_ini): Ditto.
9017
9018 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9019
9020 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9021 xaprintf -> xasprintf.
9022
9023 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9024
9025 * win32-nat.c: Remove use of printf and sprintf functions.
9026
9027 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9028
9029 * arm-tdep.c (arm_frame_chain_valid): Make static.
9030 (arm_push_arguments): Likewise.
9031 (arm_gdbarch_init): New function.
9032 (_initialize_arm_tdep): Call it.
9033 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9034 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9035 (FRAME_CHAIN_VALID): Delete.
9036 (arm_frame_chain_valid): Delete declaration.
9037 (PUSH_ARGUMENTS): Delete.
9038 (arm_push_arguments): Delete declaration.
9039 (CALL_DUMMY_P): Delete.
9040
9041 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9042 Corinna Vinschen <vinschen@redhat.com>
9043
9044 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9045 on builtin float types.
9046
9047 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * utils.c: Include <curses.h> before "bfd.h".
9050 * tui/tui-hooks.c: Likewise.
9051 * tui/tui.c: Likewise.
9052 * tui/tuiCommand.c: Likewise.
9053 * tui/tuiData.c: Likewise.
9054 * tui/tuiDataWin.c: Likewise.
9055 * tui/tuiDisassem.c: Likewise.
9056 * tui/tuiGeneralWin.c: Likewise.
9057 * tui/tuiIO.c: Likewise.
9058 * tui/tuiLayout.c: Likewise.
9059 * tui/tuiRegs.c: Likewise.
9060 * tui/tuiSource.c: Likewise.
9061 * tui/tuiSourceWin.c: Likewise.
9062 * tui/tuiStack.c: Likewise.
9063 * tui/tuiWin.c: Likewise.
9064
9065 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9066
9067 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9068 to include space for pseudoregs as well. Update loops accordingly.
9069 (sh_fp_frame_init_saved_regs): Ditto.
9070 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9071
9072 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9073
9074 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9075 Add Richard Earnshaw to Arm maintainers.
9076
9077 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9078
9079 * defs.h (warning_begin): Delete declaration.
9080
9081 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9082 Delete macro.
9083
9084 2002-02-07 Michael Snyder <msnyder@redhat.com>
9085
9086 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9087 Logic bug, remove misplaced else.
9088
9089 2002-02-07 Klee Dienes <klee@apple.com>
9090
9091 * fork-inferior.c (fork_inferior): Add '!' to the list of
9092 characters that need to be quoted when building a string for the
9093 shell. Quote '!' specifically with a backslash, since CSH chokes
9094 when trying to evaluate "str!str".
9095
9096 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9097
9098 * rdi-share/host.h: Only provide a typedef for bool if it is not
9099 defined.
9100
9101 2002-02-04 Michael Snyder <msnyder@redhat.com>
9102
9103 * breakpoint.h (enum bptype): Add new overlay event bp type.
9104 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9105
9106 * breakpoint.c (create_internal_breakpoint): New function.
9107 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9108 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9109 (create_thread_event_breakpoint): Ditto.
9110 (create_solib_event_breakpoint): Ditto.
9111 (create_overlay_event_breakpoint): New function.
9112 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9113 (update_breakpoints_after_exec): Delete and re-initialize
9114 overlay event breakpoints after an exec. Add FIXME comment
9115 about longjmp breakpoint.
9116 (print_it_typical): Ignore overlay event breakpoints.
9117 (print_one_breakpoint): Ditto.
9118 (mention): Ditto.
9119 (bpstat_what): Do not stop for overlay event breakpoints.
9120 (delete_breakpoint): Don't delete overlay event breakpoints.
9121 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9122 (breakpoint_re_set): Re-create overlay event breakpoint.
9123
9124 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9125 (overlay_manual_command): Disable overlay breakpoints.
9126 (overlay_off_command): Disable overlay breakpoints.
9127
9128 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9129
9130 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9131 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9132 to here from config/tm-arm.h.
9133 (coff_sym_is_thumb): Make static.
9134 (arm_elf_make_msymbol_special): New function.
9135 (arm_coff_make_msymbol_special): New function.
9136 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9137 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9138 (coff_sym_is_thumb): Delete declaration.
9139 (arm_elf_make_msymbol_special): Declare.
9140 (arm_coff_make_msymbol_special): Declare.
9141 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9142 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9143
9144 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9145
9146 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9147
9148 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9149
9150 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9151 * gdbarch.c gdbarch.h: Regenerate.
9152 * arch-utils.c (default_print_float_info): New function.
9153 * arch-utils.h (default_print_float_info): Prototype it.
9154 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9155 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9156 (PRINT_FLOAT_INFO): Document it.
9157
9158 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9159 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9160 (PRINT_FLOAT_INFO): Define.
9161
9162 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9163
9164 * win32-nat.c (_initialize_check_for_gdb_ini):
9165 Add typecast to sprintf argument to suppress a warning.
9166
9167 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9168
9169 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9170 to allow easier handling of pass state.
9171 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9172 that gives exception name and address.
9173 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9174 and set last_sig value to ourstatus->value.sig. Some missing
9175 exceptions added.
9176 (child_continue): Correctly report continue_status.
9177 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9178 TARGET_SIGNAL_0 (new default value).
9179 (child_resume): consider sig argument passed to decide if
9180 the exception should be passed to debuggee or not.
9181
9182 2002-02-05 Michael Snyder <msnyder@redhat.com>
9183
9184 * regcache.c (fetch_register): Call target_fetch_register
9185 only if we don't call FETCH_PSEUDO_REGISTER.
9186 (store_register): Call target_store_register only if we
9187 don't call STORE_PSEUDO_REGISTER.
9188
9189 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9190
9191 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9192 ELF_MAKE_MSYMBOL_SPECIAL.
9193 * gdbarch.c, gdbarch.h: Regenerate.
9194 * arch-utils.c (default_make_msymbol_special): New function.
9195 * arch-utils.h (default_make_msymbol_special): Export.
9196 * elfread.c (elf_symtab_read): Compile use of
9197 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9198 multiarched.
9199 * coffread.c (coff_symtab_read): Ditto, for
9200 COFF_MAKE_MSYMBOL_SPECIAL.
9201
9202 2002-02-05 Jim Blandy <jimb@redhat.com>
9203
9204 * solib-svr4.c (svr4_truncate_ptr): New function.
9205 (svr4_relocate_section_addresses): Do the address arithmetic with
9206 the appropriate truncation for target addresses, even when
9207 CORE_ADDR is larger than a target address.
9208
9209 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9210
9211 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9212 to (int *).
9213
9214 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9215
9216 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9217 code.
9218
9219 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9220
9221 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9222
9223 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9224
9225 * gdbserver/linux-low.c: Remove unused include files.
9226
9227 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9228
9229 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9230 (read_inferior_memory): Use it.
9231 (write_inferior_memory): Likewise.
9232
9233 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9234
9235 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9236 grubbing through sys_errlist.
9237
9238 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9239
9240 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9241
9242 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9243 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9244
9245 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9246
9247 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9248 (do_sfunc, set_cmd_sfunc): New functions.
9249
9250 * command.h (struct cmd_list_element): Add field func.
9251 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9252 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9253 * cli/cli-decode.h: Ditto.
9254
9255 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9256 (help_all, help_cmd_list): Ditto.
9257 (find_cmd, complete_on_cmdlist): Ditto.
9258 * top.c (execute_command): Ditto.
9259
9260 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9261 function.sfunc.
9262
9263 * infcmd.c (notice_args_read): Fix function signature.
9264
9265 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9266 * cli/cli-decode.c (add_set_cmd): Ditto.
9267 * utils.c (initialize_utils): Ditto.
9268 * maint.c (_initialize_maint_cmds): Ditto.
9269 * infrun.c (_initialize_infrun): Ditto.
9270 * demangle.c (_initialize_demangler): Ditto.
9271 * remote.c (add_packet_config_cmd): Ditto.
9272 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9273 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9274 * proc-api.c (_initialize_proc_api): Ditto.
9275 * kod.c (_initialize_kod): Ditto.
9276 * valprint.c (_initialize_valprint): Ditto.
9277 * top.c (init_main): Ditto.
9278 * infcmd.c (_initialize_infcmd): Ditto.
9279 * corefile.c (_initialize_core): Ditto.
9280 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9281 * arch-utils.c (initialize_current_architecture): Ditto.
9282 (_initialize_gdbarch_utils): Ditto.
9283 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9284
9285 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9286 * wince.c (_initialize_inftarg): Ditto.
9287 * symfile.c (_initialize_symfile): Ditto.
9288 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9289 * language.c (_initialize_language): Ditto.
9290 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9291
9292 2002-02-04 Michael Snyder <msnyder@redhat.com>
9293
9294 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9295
9296 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9297
9298 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9299 Add rules for building the register data files.
9300
9301 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9302
9303 * regformats/regdat.sh: Add braces to the definition of
9304 expedite_regs_${arch}.
9305
9306 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9307
9308 * regformats/regdef.h (struct reg): Add comment describing the
9309 requirements for offset and size fields.
9310
9311 2002-02-04 Andreas Schwab <schwab@suse.de>
9312
9313 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9314 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9315
9316 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9317
9318 * gdbarch.sh (copyright): Update years in generated header.
9319 (SMASH_TEXT_ADDRESS): Add rule.
9320 * gdbarch.h, gdbarch.c: Re-generate.
9321 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9322 * dbxread.c: Likewise.
9323 * dwarfread.c: Likewise.
9324 * elfread.c: Likewise.
9325 * somread.c: Likewise.
9326
9327 * arm-tdep.c (arm_smash_text_address): New function.
9328 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9329
9330 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9331
9332 Add support for hardware watchpoints on win32 native.
9333 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9334 CONTEXT_DEBUG_REGISTERS.
9335 (dr variable): New variable. Static array containing a local copy
9336 of debug registers.
9337 (debug_registers_changed): New variable. Reflects when debug registers
9338 are changed and need to be written to inferior.
9339 (debug_registers_used): New variable. Reflects when any debug register
9340 was set, used when new threads are created.
9341 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9342 i386-nat code.
9343 (thread_rec): Set dr array if id is the thread of current_event .
9344 (child_continue, child_resume): Change the debug registers for all
9345 threads if debug_registers_changed.
9346 (child_add_thread): Change the debug registers if debug_registers_used.
9347 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9348 Link nm.h to new nm-cygwin.h file.
9349 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9350 of hardware registers.
9351
9352 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9353
9354 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9355 Restore behavour broken by 2002-01-20 Andrew Cagney
9356 <ac131313@redhat.com> IEEE_FLOAT removal.
9357
9358 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * c-valprint.c (c_val_print): Pass a proper valaddr to
9361 cp_print_class_method.
9362 * valops.c (search_struct_method): If there is only one method
9363 and args is NULL, return that method.
9364
9365 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9366
9367 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9368 accessing tag_name directly.
9369
9370 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9371
9372 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9373 of accessing tag_name directly.
9374
9375 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9376
9377 PR gdb/280
9378 * gdbtypes.c (replace_type): New function.
9379 * gdbtypes.h (replace_type): Add prototype.
9380 * stabsread.c (read_type): Use replace_type.
9381
9382 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9383
9384 * Makefile.in (memattr.o): Add missing dependencies rule.
9385
9386 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9387
9388 * breakpoint.c (break_at_finish_command): Really export.
9389 (break_at_finish_at_depth_command): Ditto.
9390 (tbreak_at_finish_command): Ditto.
9391 * hppa-tdep.c: Include completer.h.
9392 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9393 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9394
9395 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9396
9397 * utils.c (do_write): New function.
9398 (error_stream): Rewrite combining the code from error_begin and
9399 verror.
9400 (verror): Rewrite using error_stream.
9401 (error_begin): Delete function.
9402
9403 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9404
9405 * utils.c (error_begin): Make static.
9406 * defs.h (error_begin): Delete declaration.
9407
9408 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9409 (decode_line_1): Use cplusplus_error instead of error_begin,
9410 cplusplus_hint and return_to_top_level.
9411 * coffread.c (coff_symfile_read): Use error instead of error_begin
9412 and return_to_top_level.
9413 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9414
9415 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9416
9417 * language.h (type_error, range_error): Make string parameter
9418 constant.
9419 * language.c (warning_pre_print): Delete extern declaration.
9420 * dwarfread.c (warning_pre_print): Ditto.
9421 * language.c (type_error, range_error): Rewrite to use verror and
9422 vwarning instead of warning_begin.
9423
9424 2002-02-01 Michael Snyder <msnyder@redhat.com>
9425
9426 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9427 (set_ignore_count): Move misplaced comment back where it belongs.
9428
9429 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9430
9431 * command.h (NO_FUNCTION): Delete macro.
9432 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9433 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9434 * tracepoint.c (_initialize_tracepoint): Ditto.
9435 * cli/cli-decode.c (add_set_cmd): Ditto.
9436 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9437
9438 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9439
9440 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9441 Update ``this'' pointer when calling virtual functions.
9442
9443 2002-02-01 Michael Snyder <msnyder@redhat.com>
9444
9445 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9446 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9447
9448 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9449
9450 * regformats/reg-arm.dat: New file.
9451 * regformats/reg-i386.dat: New file.
9452 * regformats/reg-ia64.dat: New file.
9453 * regformats/reg-m68k.dat: New file.
9454 * regformats/reg-mips.dat: New file.
9455 * regformats/reg-ppc.dat: New file.
9456 * regformats/reg-sh.dat: New file.
9457 * regformats/regdef.h: New file.
9458 * regformats/regdat.sh: New file.
9459
9460 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9461
9462 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9463 (arm_frame_args_address, arm_frame_locals_address): New functions.
9464 (arm_frame_num_args): New function.
9465 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9466 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9467 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9468
9469 2002-01-31 Michael Snyder <msnyder@redhat.com>
9470
9471 * breakpoint.c (break_at_finish_command): Export.
9472 (break_at_finish_at_depth_command): Export.
9473 (tbreak_at_finish_command): Export.
9474 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9475 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9476 "tbreak" commands, which are HPPA specific.
9477
9478 * printcmd.c (disassemble_command): Remove an ancient
9479 artifact of an old merge.
9480
9481 * symfile.h (enum overlay_debugging_state):
9482 Define enum constant values for overlay mode.
9483 * symfile.c (overlay_debugging): Use enums instead of literals.
9484 (overlay_is_mapped, overlay_auto_command,
9485 overlay_manual_command): Ditto.
9486
9487 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9488 breakpoint_here_p, breakpoint_inserted_here_p,
9489 breakpoint_thread_match, bpstat_stop_status,
9490 describe_other_breakpoints, check_duplicates, clear_command):
9491 Coding standard fixes.
9492
9493 * target.c (target_xfer_memory): Add spaces, coding standard.
9494 (do_xfer_memory): Add missing line to trust-readonly
9495 code: check bfd SEC_READONLY flag for section.
9496
9497 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9498
9499 * PROBLEMS: Fix typo, 5.1->5.1.1.
9500
9501 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9502
9503 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9504 data symbols, since we search based on textlow and texthigh.
9505 (find_pc_sect_symtab): Likewise.
9506
9507 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9508
9509 * defs.h (vwarning): Declare.
9510 * utils.c (vwarning): New function.
9511 (warning): Call vwarning.
9512 (warning_begin): Delete function.
9513
9514 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9515 the warning message.
9516 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9517 warning_begin.
9518
9519 2002-01-30 Michael Snyder <msnyder@redhat.com>
9520
9521 * NEWS: Mention "set trust-readonly-sections" command.
9522 Mention generate-core-file command.
9523
9524 2002-01-15 Michael Snyder <msnyder@redhat.com>
9525
9526 * target.c: New command, "set trust-readonly-sections on".
9527 (do_xfer_memory): Honor the suggestion to trust readonly sections
9528 by reading them from the object file instead of from the target.
9529 (initialize_targets): Register command "set trust-readonly-sections".
9530
9531 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9532
9533 * parse.c (target_map_name_to_register): Simplify, search regs and
9534 pseudo-regs using a single loop.
9535
9536 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9537
9538 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9539
9540 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9541
9542 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9543 * config/i386/i386v42mp.mh: Add i387-nat.o .
9544 * i386v4-nat.c: Include i387-nat.h.
9545 (supply_fpregset): Use i387_supply_fsave.
9546 (fill_fpregset): Use i387_fill_fsave.
9547
9548 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9549
9550 * arm-tdep.c (arm_call_dummy_words): Define.
9551 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9552 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9553 (CALL_DUMMY_WORDS): Define.
9554 (arm_call_dummy_words): Declare.
9555 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9556 (arm_linux_call_dummy_words): Declare.
9557
9558 2002-01-30 Andreas Schwab <schwab@suse.de>
9559
9560 * m68klinux-nat.c: Fix last change to use regcache_collect
9561 instead of referencing registers[] directly.
9562
9563 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9564
9565 * parse.c (target_map_name_to_register): Delete code wrapped in
9566 #ifdef REGISTER_NAME_ALIAS_HOOK.
9567
9568 2002-01-28 Michael Snyder <msnyder@redhat.com>
9569
9570 * regcache.c (legacy_read_register_gen): Need to be able to
9571 read pseudo-register as well as real register.
9572 (legacy_write_register_gen): Ditto.
9573
9574 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9575
9576 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9577 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9578 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9579 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9580 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9581 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9582 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9583 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9584 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9585 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9586 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9587 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9588 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9589 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9590 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9591 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9592 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9593 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9594 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9595 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9596
9597 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9598
9599 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9600 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9601 (initialize_current_architecture): Update target_byte_order using
9602 information from BFD.
9603 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9604 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9605
9606 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9607
9608 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9609 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9610
9611 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9612 #ifdef INVALID_FLOAT.
9613 * infcmd.c (do_registers_info): Ditto.
9614 * values.c (unpack_double): Ditto. Add comment.
9615
9616 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9617 already commented out.
9618
9619 2002-01-26 Andreas Schwab <schwab@suse.de>
9620
9621 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9622 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9623 registers and add support for PTRACE_GETREGS.
9624
9625 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9626
9627 GDB 5.1.1 released from 5.1 branch.
9628 * NEWS: Add 5.1.1 news.
9629 * README: Sync with 5.1 branch.
9630
9631 2002-01-23 Fred Fish <fnf@redhat.com>
9632
9633 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9634 stabstring on initial malloc. Reallocing will copy it for us,
9635 if necessary.
9636
9637 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9638
9639 * Makefile.in (hpread_h): Delete.
9640 (HFILES_NO_SRCDIR): Remove hpread.h.
9641 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9642 (hpread.o): Update dependencies.
9643 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9644
9645 * hp-psymtab-read.c: Remove file.
9646 * hp-symtab-read.c: Remove file.
9647 * hpread.h: Remove file.
9648
9649 * hpread.c: Merge all contents of hp-psymtab-read.c,
9650 hp-symtab-read.c and hpread.h into this file, as it was prior to
9651 January 1999.
9652
9653 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9654 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9655 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9656 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9657
9658 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9659
9660 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9661 fill_gregset): Call gdbarch_tdep() just once, assign result to
9662 variable and use that, instead of calling the function several
9663 times.
9664
9665 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9666
9667 * configure.host: Accept sparcv9 as alias for sparc64.
9668 * configure.tgt: Likewise.
9669
9670 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9671
9672 * solib-aix5.c (build_so_list_from_mapfile)
9673 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9674 arguments is not reversed.
9675 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9676 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9677
9678 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9679
9680 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9681 modified version of obsolete sh_fetch_pseudo_register.
9682 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9683 (sh4_register_read): New function.
9684 (sh_pseudo_register_write): New function. Renamed and modified
9685 version of obsolete sh_store_pseudo_register.
9686 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9687 (sh4_register_write): New function.
9688 (sh_gdbarch_init): Remove setting of gdbarch function
9689 fetch_pseudo_register and store_pseudo_register. Remove setting of
9690 register_convert_to_raw, register_convert_to_virtual,
9691 register_convertible.
9692 (sh_sh4_register_convertible): Delete. No longer needed. All is
9693 taken care by architecture specific functions
9694 register_read/register_write.
9695 (sh_sh4_register_convert_to_virtual): Make static.
9696 (sh_sh4_register_convert_to_raw): Ditto.
9697
9698 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9699
9700 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9701 (floatformat_is_nan, floatformat_mantissa): Ditto.
9702
9703 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9704 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9705 builtin_type_ieee_double_little,
9706 builtin_type_ieee_double_littlebyte_bigword,
9707 builtin_type_m68881_ext, builtin_type_i960_ext,
9708 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9709 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9710 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9711 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9712
9713 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9714
9715 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9716 parameter. Set frameless flag if it exists and depended of
9717 whether the scanned function is frameless or not.
9718 (xstormy16_skip_prologue): If function is frameless, return
9719 result of xstormy16_scan_prologue().
9720 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9721 call.
9722
9723 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9724
9725 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9726 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9727 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9728 sh_sh4_register_byte, sh_sh4_register_raw_size,
9729 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9730 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9731 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9732 sh_store_pseudo_register, sh_do_pseudo_register): Call
9733 gdbarch_tdep() just once, assign result to variable and use that,
9734 instead of calling the function several times.
9735
9736 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9737
9738 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9739 macros instead of LAST_FPU_CTRL_REGNUM.
9740 (store_register): Likewise.
9741
9742 2002-01-21 Jim Blandy <jimb@redhat.com>
9743
9744 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9745 is up-to-date before running the program, not just when a program
9746 exits.
9747
9748 2002-01-21 Fred Fish <fnf@redhat.com>
9749
9750 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9751 when we have found all instructions we are looking for.
9752
9753 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9754
9755 * arm-tdep.c (arm_register_name): New function.
9756 (arm_registers_names): Make static.
9757 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9758 (arm_register_name): Declare.
9759 (REGISTER_NAME): Use it.
9760
9761 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9762 Kevin Buettner <kevinb@redhat.com>
9763
9764 Convert arm targets to new FRAME interface.
9765 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9766 (arm_frame_find_save_regs): Delete.
9767 (arm_frame_init_saved_regs): New.
9768 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9769 Allocate extra_info as required. Convert all uses of fsr.regs
9770 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9771 to use extra_info.
9772 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9773 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9774 (check_prologue_cache, save_prologue_cache): Likewise.
9775 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9776 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9777 (FRAME_FIND_SAVED_REGS): Delete.
9778 (arm_frame_find_saved_regs): Delete prototype.
9779 (arm_frame_init_saved_regs): New prototype.
9780 (FRAME_INIT_SAVED_REGS): Define.
9781
9782 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9783
9784 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9785
9786 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9787
9788 From Jeff Law <law@redhat.com>:
9789 * infttrace.c: Include <sys/pstat.h>.
9790 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9791 exec file if the ttrace equivalent fails.
9792
9793 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9794
9795 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9796 (closeLogFile): Ditto.
9797
9798 2002-01-20 Michael Chastain <mec@shout.net>
9799
9800 * top.c (print_gdb_version): Bump copyright year to 2002.
9801
9802 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9803
9804 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9805 Zannoni and Eli Zaretskii.
9806
9807 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9808
9809 * buildsym.c: Update copyright years.
9810 * c-typeprint.c: Likewise.
9811 * dwarf2read.c: Likewise.
9812 * f-typeprint.c: Likewise.
9813 * gdbtypes.c: Likewise.
9814 * gdbtypes.h: Likewise.
9815 * hp-symtab-read.c: Likewise.
9816 * hpread.c: Likewise.
9817 * mdebugread.c: Likewise.
9818 * p-typeprint.c: Likewise.
9819
9820 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9821
9822 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9823 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9824 byte-order selectable.
9825 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9826 * arch-utils.c: Ditto.
9827 (set_endian): Ditto.
9828 (set_endian_from_file): Ditto.
9829 * gdbserver/low-sim.c (create_inferior): Ditto.
9830 * gdbarch.sh: Ditto.
9831 * gdbarch.h: Re-generate.
9832 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9833 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9834 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9835 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9836 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9837 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9838 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9839 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9840 macro definition.
9841 * config/mips/tm-wince.h: Remove #undef of macro
9842 TARGET_BYTE_ORDER_SELECTABLE.
9843 * config/sh/tm-wince.h: Ditto.
9844
9845 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9848 member function fields. Add accessor macro
9849 TYPE_FN_FIELD_ARTIFICIAL.
9850 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9851 * c-typeprint.c (c_type_print_base): Skip artificial member
9852 functions.
9853
9854 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9855
9856 * f-typeprint.c: Delete unused function f_type_print_args.
9857 * p-typeprint.c: Delete unused function pascal_type_print_args.
9858
9859 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9860
9861 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9862 comment. Add ``artificial'' to ``union field_location''.
9863
9864 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9865
9866 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9867 * mdebugread.c (parse_symbol): Likewise.
9868 * stabsread.c (define_symbol): Likewise.
9869 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9870 initializing TYPE_FIELD_BITPOS to n (obsolete).
9871 (hpread_doc_function_type): Likewise.
9872 * hpread.c (hpread_function_type): Likewise.
9873
9874 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9875
9876 * configure.in (host_makefile_frag): Only require a host makefile
9877 fragment when a native build.
9878 * configure: Re-generate.
9879
9880 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9881
9882 * doublest.h (floatformat_from_type): Declare.
9883 * doublest.c (floatformat_from_type): New function.
9884 (convert_typed_floating): Use.
9885
9886 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9887 call to function floatformat_from_type.
9888
9889 * gdbarch.sh (IEEE_FLOAT): Delete.
9890 * gdbarch.h, gdbarch.c: Re-generate.
9891 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9892 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9893 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9894 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9895 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9896 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9897 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9898 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9899 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9900 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9901 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9902 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9903
9904 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9905 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9906 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9907 * sh-tdep.c (sh_gdbarch_init): Ditto.
9908 * mips-tdep.c (mips_gdbarch_init): Ditto.
9909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9910 * cris-tdep.c (cris_gdbarch_init): Ditto.
9911
9912 2002-01-20 Jiri Smid <smid@suse.cz>
9913
9914 * configure.host, configure.tgt: Support x86-64.
9915 * NEWS: Note new target x86-64.
9916
9917 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9918 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9919 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9920 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9921 x86-64-linux-nat.o): Fix dependencies.
9922
9923 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9924
9925 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9926 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9927 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9928 * config/sparc/xm-sun4os4.h: Delete file.
9929 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9930
9931 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9932
9933 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9934 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9935 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9936 * config/i386/i386lynx.mh (XM_FILE): Delete.
9937 * config/rs6000/xm-rs6000ly.h: Delete file.
9938 * config/sparc/xm-sparclynx.h: Delete file.
9939 * config/m68k/xm-m68klynx.h: Delete file.
9940 * config/i386/xm-i386lynx.h: Delete file.
9941 * config/xm-lynx.h: Delete file.
9942 * config/djgpp/fnchange.lst: Update.
9943
9944 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9945
9946 * alpha-tdep.c (alpha_register_byte): New function.
9947 (alpha_register_raw_size): Ditto.
9948 (alpha_register_virtual_size): Ditto.
9949 (alpha_skip_prologue_internal): Renamed from
9950 alpha_skip_prologue.
9951 (alpha_skip_prologue): New version that calls
9952 alpha_skip_prologue_internal.
9953 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9954 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9955 second argument from alpha_skip_prologue.
9956 (REGISTER_BYTE): Use alpha_register_byte.
9957 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9958 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9959 (FRAMELESS_FUNCTION_INVOCATION): Use
9960 generic_frameless_function_invocation_not.
9961 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9962 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9963
9964 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9965
9966 * config/mips/xm-news-mips.h: Delete file.
9967 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9968
9969 * config/m88k/xm-m88k.h: Delete file.
9970 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9971 * config/m88k/xm-delta88v4.h: Ditto.
9972 * config/m88k/xm-delta88.h: Ditto.
9973
9974 * config/alpha/xm-fbsd.h: Delete file.
9975 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9976
9977 * config/sparc/xm-sparc.h: Delete file.
9978 * Makefile.in (xm-sun4os4.h): Delete dependency.
9979 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9980 * config/sparc/xm-sun4os4.h: Ditto.
9981 * config/sparc/xm-linux.h: Ditto.
9982
9983 * config/i386/xm-windows.h: Delete file.
9984
9985 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9986
9987 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9988 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9989
9990 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9991
9992 * alpha-tdep.c (alpha_call_dummy_words): New.
9993 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9994 (CALL_DUMMY_P): Define.
9995 (CALL_DUMMY_WORDS): Define.
9996 (SIZEOF_CALL_DUMMY_WORDS): Define.
9997
9998 2002-01-19 Per Bothner <per@bothner.com>
9999
10000 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10001 isn't NULL, which can happen with some gcj-3.x-produced code.
10002
10003 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10004
10005 * alpha-tdep.c (alpha_register_virtual_type): New function.
10006 (alpha_init_frame_pc_first): Ditto.
10007 (alpha_fix_call_dummy): Ditto.
10008 (alpha_store_struct_return): Ditto.
10009 (alpha_extract_struct_value_address): Ditto.
10010 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10011 alpha_register_virtual_type.
10012 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10013 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10014 alpha_extract_struct_value_address.
10015 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10016 (INIT_FRAME_PC): Use init_frame_pc_noop.
10017 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10018
10019 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10020
10021 * i386gnu-nat.c: Include "i386-tdep.h".
10022 (fetch_fpregs): Simplify code dealing with uninitialized floating
10023 point states such that it doesn't require FP7_REGNUM.
10024
10025 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10026
10027 * alpha-tdep.c (frame_extra_info): New.
10028 (alpha_find_saved_regs): Make static. Use
10029 frame->extra_info.
10030 (alpha_frame_init_saved_regs): New function.
10031 (alpha_frame_saved_pc): Use frame->extra_info.
10032 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10033 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10034 (init_extra_frame_info): Rename to...
10035 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10036 (alpha_print_extra_frame_info): New function.
10037 (alpha_frame_locals_address): Ditto.
10038 (alpha_frame_args_address): Ditto.
10039 (alpha_pop_frame): Use frame->extra_info.
10040 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10041 alpha_frame_args_address.
10042 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10043 (alpha_find_saved_regs): Remove prototype.
10044 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10045 (EXTRA_FRAME_INFO): Remove.
10046 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10047 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10048
10049 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10050
10051 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10052 (alpha_cannot_fetch_register): Ditto.
10053 (alpha_cannot_store_register): Ditto.
10054 (alpha_register_convertible): Ditto.
10055 (alpha_use_struct_convention): Ditto.
10056 * config/alpha/tm-alpha.h: Update copyright years.
10057 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10058 (INNER_THAN): Use core_addr_lessthan.
10059 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10060 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10061 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10062 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10063 (FRAME_CHAIN): Remove unnecessary cast.
10064
10065 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10066
10067 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10068 obsolete.
10069
10070 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10071
10072 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10073 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10074 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10075 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10076 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10077 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10078 * x86-64-linux-nat.c: Ditto.
10079
10080 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10081
10082 * alpha-tdep.c (alpha_register_name): New function.
10083 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10084 (REGISTER_NAME): Define.
10085
10086 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10087
10088 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10089
10090 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10091
10092 * alpha-tdep.c: Update copyright years.
10093 (alpha_next_pc): New function.
10094 (alpha_software_single_step): Ditto.
10095 * config/alpha/tm-alpha.h: Add prototype for
10096 alpha_software_single_step.
10097
10098 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10099
10100 * alphabsd-nat.c: Update copyright years.
10101 (fill_gregset): Use regcache_collect.
10102 (fill_fpregset): Likewise.
10103 (fetch_inferior_registers): Only fetch integer registers
10104 if requested to do so.
10105 (store_inferior_registers): Only store integer registers
10106 if requested to do so.
10107
10108 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10109
10110 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10111 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10112 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10113 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10114 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10115 * config/arm/linux.mh (XDEPFILES): Delete.
10116 * config/arm/nbsd.mh (XDEPFILES): Delete.
10117 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10118 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10119 * config/i386/i386m3.mh (XDEPFILES): Delete.
10120 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10121 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10122 * config/i386/fbsd.mh (XDEPFILES): Delete.
10123 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10124 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10125 * config/i386/i386v4.mh (XDEPFILES): Delete.
10126 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10127 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10128 * config/i386/i386aix.mh (XDEPFILES): Delete.
10129 * config/i386/go32.mh (XDEPFILES): Delete.
10130 * config/i386/cygwin.mh (XDEPFILES): Delete.
10131 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10132 * config/i386/i386mach.mh (XDEPFILES): Delete.
10133 * config/i386/i386v32.mh (XDEPFILES): Delete.
10134 * config/i386/linux.mh (XDEPFILES): Delete.
10135 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10136 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10137 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10138 * config/i386/i386sco.mh (XDEPFILES): Delete.
10139 * config/i386/i386v.mh (XDEPFILES): Delete.
10140 * config/i386/nbsd.mh (XDEPFILES): Delete.
10141 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10142 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10143 * config/i386/symmetry.mh (XDEPFILES): Delete.
10144 * config/i386/obsd.mh (XDEPFILES): Delete.
10145 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10146 * config/ia64/linux.mh (XDEPFILES): Delete.
10147 * config/ia64/aix.mh (XDEPFILES): Delete.
10148 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10149 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10150 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10151 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10152 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10153 * config/m68k/linux.mh (XDEPFILES): Delete.
10154 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10155 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10156 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10157 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10158 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10159 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10160 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10161 * config/m88k/delta88.mh (XDEPFILES): Delete.
10162 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10163 * config/m88k/m88k.mh (XDEPFILES): Delete.
10164 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10165 * config/mips/linux.mh (XDEPFILES): Delete.
10166 * config/mips/irix6.mh (XDEPFILES): Delete.
10167 * config/mips/irix5.mh (XDEPFILES): Delete.
10168 * config/mips/irix4.mh (XDEPFILES): Delete.
10169 * config/mips/irix3.mh (XDEPFILES): Delete.
10170 * config/mips/decstation.mh (XDEPFILES): Delete.
10171 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10172 (NATDEPFILES): Move core-aout.o to here.
10173 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10174 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10175 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10176 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10177 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10178 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10179 * config/pa/hpux11.mh (XDEPFILES): Delete.
10180 * config/powerpc/aix.mh (XDEPFILES): Delete.
10181 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10182 * config/powerpc/linux.mh (XDEPFILES): Delete.
10183 * config/romp/rtbsd.mh: Rename XDEPFILES.
10184 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10185 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10186 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10187 * config/s390/s390.mh (XDEPFILES): Delete.
10188 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10189 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10190 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10191 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10192 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10193 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10194 * config/sparc/linux.mh (XDEPFILES): Delete.
10195 * config/vax/vaxult.mh (XDEPFILES): Delete.
10196 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10197 * Makefile.in (DEPFILES): Remove XDEPFILES.
10198
10199 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10200
10201 * utils.c (internal_verror): Fix comments, default is yes not no.
10202 Update queries to match. Default to quit and dump core.
10203
10204 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10205
10206 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10207 copyright.
10208 * defs.h, event-top.c, gdbcmd.h: Ditto.
10209 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10210 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10211 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10212 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10213 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10214 * mi/mi-main.c:Ditto.
10215
10216 * stack.c, symfile.c: Update copyright.
10217
10218 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10219
10220 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10221 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10222 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10223 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10224
10225 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10226
10227 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10228 * gdbserver/low-lynx.c (myattach): Likewise.
10229 * gdbserver/low-nbsd.c (myattach): Likewise.
10230 * gdbserver/low-sim.c (myattach): Likewise.
10231 * gdbserver/low-sparc.c (myattach): Likewise.
10232 * gdbserver/low-sun3.c (myattach): Likewise.
10233
10234 * gdbserver/low-linux.c (myattach): New function.
10235
10236 * gdbserver/server.c (attach_inferior): New function.
10237 (main): Handle "--attach".
10238
10239 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10240
10241 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10242 maintainer.
10243
10244 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * c-typeprint.c (is_type_conversion_operator): Add additional
10247 check for non-conversion operators.
10248
10249 2002-01-15 Michael Snyder <msnyder@redhat.com>
10250
10251 * linux-proc.c: Add "info proc" command, a la procfs.c.
10252 (read_mapping): New function, abstract and re-use code.
10253 (linux_find_memory_regions): Use new func read_mapping.
10254 (linux_info_proc_cmd): New function, implement "info proc".
10255 (_initialize_linux_proc): Add new command "info proc".
10256
10257 2002-01-15 Michael Snyder <msnyder@redhat.com>
10258
10259 * symfile.c (generic_load): Use bfd_map_over_sections method
10260 instead of manipulating bfd structure members directly.
10261 (add_section_size_callback): New function, bfd sections callback
10262 used by generic_load.
10263 (load_sections_callback): New function, bfd sections callback
10264 used by generic_load.
10265
10266 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10267
10268 [Based on work by Jim Blandy]
10269 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10270 (builtin_type_vec128): Export.
10271 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10272 types.
10273 (builtin_type_vec128): New builtin type for 128 bit vector
10274 registers.
10275 (build_gdbtypes): Initialize builtin_type_v16qi and
10276 builtin_type_v8hi. Create the vec128 register builtin type
10277 structure.
10278 (build_builtin_type_vec128): New function.
10279 (_initialize_gdbtypes): Register builtin_type_v16qi and
10280 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10281 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10282 AltiVec register to new builtin type.
10283
10284 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10285
10286 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10287 to make_cv_type.
10288
10289 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10290
10291 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10292 CLEAN_UP_REGISTER_VALUE.
10293 * regcache.c (supply_register): Update only call.
10294
10295 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10296
10297 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10298 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10299 a29k-*-vxworks* targets as obsolete.
10300
10301 2002-01-14 Michael Snyder <msnyder@redhat.com>
10302
10303 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10304 until we can resolve portability issues.
10305 * gregset.h: Remove references to fpxregs.
10306 * gcore.c (gcore_command): Initialize note_sec to NULL.
10307
10308 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10309
10310 * signals.c (target_signal_to_name): Rewrite. Only use
10311 signals[].name when in bounds and non-NULL.
10312
10313 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10314
10315 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10316 * signals.c (target_signal_to_name): Verify that SIG is within the
10317 bounds of the signals array.
10318
10319 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10320
10321 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10322
10323 2002-01-13 Keith Seitz <keiths@redhat.com>
10324
10325 * stack.c (print_frame_info_base): Print the frame's pc
10326 only if when print_frame_info_listing_hook is not defined.
10327
10328 2002-01-13 Keith Seitz <keiths@redhat.com>
10329
10330 * varobj.c (varobj_set_value): Make sure that there were no
10331 errors evaluating the object before attempting to set its
10332 value.
10333 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10334 so this offset adjustment is no longer necessary.
10335 (create_child): Don't set the error flag if the child is
10336 a CPLUS_FAKE_CHILD.
10337 (value_of_child): If value_fetch_lazy fails, return NULL
10338 so that callers will be notified that an error occurred.
10339 (c_value_of_variable): Delay check of variable's validity
10340 until later. We actually want all structs and unions to have
10341 the value "{...}".
10342 Do not return "???" for variables which could not be evaluated.
10343 This error condition must be returned to the caller so that it
10344 can get the error condition from gdb.
10345 (cplus_name_of_child): Adjust index for vptr before figuring
10346 out the name of the child.
10347 (cplus_value_of_child): If a child's (real) parent is not valid,
10348 don't even bother trying to give a value for it. Just return
10349 an error. Change all instances in this function.
10350 (cplus_type_of_child): If our parent is one of the "fake"
10351 parents, we need to get at the type of the real parent, and
10352 derive the child's true type using this information.
10353
10354 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10355
10356 From 2002-01-09 John Marshall <johnm@falch.net>:
10357 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10358 sources.redhat.com, and tweak some related URLs which had
10359 suffered from linkrot.
10360
10361 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10362
10363 From Jeff law:
10364 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10365 structures passed in registers.
10366
10367 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10368
10369 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10370 white space which prevented compilation. Reported by DSK
10371 <dsk@student.unsw.edu.au>.
10372
10373 2002-01-11 Michael Snyder <msnyder@redhat.com>
10374
10375 * symfile.c (build_section_addr_info_from_section_tab):
10376 Use bfd access method instead of manipulating bfd directly.
10377 (syms_from_objfile): Ditto.
10378 (simple_overlay_update_1): Ditto.
10379 (simple_overlay_update): Ditto.
10380 (generic_load): Ditto.
10381 (overlay_unmapped_address): FIXME comment, bfd access methods.
10382 (sections_overlap): FIXME comment, bfd access methods.
10383 (pc_in_mapped_range): FIXME comment, bfd access methods.
10384 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10385 (section_is_mapped): FIXME comment, bfd access methods.
10386 (section_is_overlay): FIXME comment, bfd access methods.
10387
10388 * symfile.c (generic_load): Whitespace and long line cleanups.
10389 Remove duplicate variable, change several local variables to
10390 more appropriate data types.
10391 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10392
10393 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10394
10395 From Peter Schauer:
10396 * language.c (longest_local_hex_string_custom): Use phex_nz to
10397 convert NUM to a hex string.
10398
10399 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10400
10401 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10402 the function.
10403 Update Copyright year.
10404
10405 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10406
10407 * language.c (longest_raw_hex_string): Delete unused function.
10408
10409 2002-01-11 Petr Sorfa <petrs@caldera.com>
10410
10411 * MAINTAINERS (write-after-approval): Add myself.
10412 * dwarf2read.c (read_tag_string_type): Handling of
10413 DW_AT_byte_size.
10414 (read_tag_string_type): FORTRAN fix to prevent propagation of
10415 first string size.
10416 (set_cu_language): Handling of DW_LANG_Fortran95
10417
10418 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10419
10420 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10421 GETPID(inferior_ptid).
10422 (store_inferior_registers): Likewise.
10423
10424 2002-01-10 Jason Merrill <jason@redhat.com>
10425
10426 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10427 Fix DW_OP_minus.
10428
10429 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10430
10431 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10432 and bfd/elf32-sh-nbsd.c.
10433
10434 2002-01-10 Michael Snyder <msnyder@redhat.com>
10435
10436 * NEWS: Mention --pid and corefile/proc-id behavior change.
10437
10438 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10439 * gcore.c: Include cli/cli-decode.h instead of command.h.
10440
10441 * main.c (captured_main): Add new command line option "--pid".
10442 If the second command line argument (following the symbol-file)
10443 begins with a digit, try to attach to it before trying to open
10444 it as a corefile.
10445 (print_gdb_help): Document the "--pid" argument.
10446
10447 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10448
10449 * completer.c (command_completer): New function.
10450
10451 * completer.h <command_completer>: Add prototype.
10452
10453 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10454 completer for the "help" command.
10455
10456 2002-01-09 Jason Merrill <jason@redhat.com>
10457
10458 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10459
10460 2002-01-09 Michael Snyder <msnyder@redhat.com>
10461
10462 * i386-linux-nat.c (fill_fpxregset): Make global.
10463 (store_fpxregset): Ditto.
10464
10465 * gregset.h (gdb_fpxregset_t): Define.
10466 (supply_fpxregset): Prototype.
10467 (fill_fpxregset): Prototype.
10468
10469 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10470
10471 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10472
10473 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10474 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10475 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10476
10477 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10478
10479 * MAINTAINERS: Update target maintainer rules so that any
10480 Maintainer can approve a tested patch for a maintenance-only
10481 target.
10482
10483 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10484
10485 * MAINTAINERS (write-after-approval): Add myself.
10486
10487 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10488 IN_SIGTRAMP.
10489
10490 2002-01-08 Michael Snyder <msnyder@redhat.com>
10491
10492 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10493 real name of the executable, rather than the /proc name.
10494
10495 2002-01-03 Michael Snyder <msnyder@redhat.com>
10496
10497 Implement a "generate-core-file" command in gdb, save target state.
10498 * gcore.c: New file. Implement new command 'generate-core-file'.
10499 Save a corefile image of the current state of the inferior.
10500 * linux-proc.c: Add linux-specific code for saving corefiles.
10501 * target.h (struct target_ops): Add new target vectors for saving
10502 corefiles; to_find_memory_regions and to_make_corefile_notes.
10503 (target_find_memory_regions): New macro.
10504 (target_make_corefile_notes): New macro.
10505 * target.c (update_current_target): Inherit new target methods.
10506 (dummy_find_memory_regions): New place-holder method.
10507 (dummy_make_corefile_notes): New place-holder method.
10508 (init_dummy_target): Initialize new dummy target vectors.
10509 * exec.c (exec_set_find_memory_regions): New function.
10510 Allow the exec_ops vector for memory regions to be taken over.
10511 (exec_make_note_section): New function, target vector method.
10512 * defs.h (exec_set_find_memory_regions): Export prototype.
10513 * procfs.c (proc_find_memory_regions): New function, corefile method.
10514 (procfs_make_note_section): New function, corefile method.
10515 (init_procfs_ops): Set new target vector pointers.
10516 (find_memory_regions_callback): New function.
10517 (procfs_do_thread_registers): New function.
10518 (procfs_corefile_thread_callback): New function.
10519 * sol-thread.c (sol_find_memory_regions): New function.
10520 (sol_make_note_section): New function.
10521 (init_sol_thread_ops): Initialize new target vectors.
10522 * inftarg.c (inftarg_set_find_memory_regions): New function.
10523 Allow to_find_memory_regions vector to be taken over.
10524 (inftarg_set_make_corefile_notes): New function.
10525 Allow to_make_corefile_notes vector to be taken over.
10526 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10527 interface layer if not target_has_execution (may be a corefile).
10528 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10529 * config/sparc/sun4sol2.mh: Ditto.
10530 * config/alpha/alpha-linux.mh: Ditto.
10531 * config/arm/linux.mh: Ditto.
10532 * config/i386/x86-64linux.mh: Ditto.
10533 * config/ia64/linux.mh: Ditto.
10534 * config/m68k/linux.mh: Ditto.
10535 * config/mips/linux.mh: Ditto.
10536 * config/powerpc/linux.mh: Ditto.
10537 * config/sparc/linux.mh: Ditto.
10538
10539 2002-01-07 Michael Snyder <msnyder@redhat.com>
10540
10541 * arm-linux-nat.c: Remove references to regcache.c internal data
10542 (registers[] and register_valid[]).
10543
10544 2002-01-07 Michael Snyder <msnyder@redhat.com>
10545
10546 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10547 so that attaching to a pid will automatically read the process's
10548 symbol file and shlibs.
10549 * Makefile.in: Add rule for linux-proc.o.
10550 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10551 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10552 * config/arm/linux.mh: Ditto.
10553 * config/i386/linux.mh: Ditto.
10554 * config/i386/x86-64linux.mh: Ditto.
10555 * config/ia64/linux.mh: Ditto.
10556 * config/m68k/linux.mh: Ditto.
10557 * config/mips/linux.mh: Ditto.
10558 * config/powerpc/linux.mh: Ditto.
10559 * config/sparc/linux.mh: Ditto.
10560
10561 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10562
10563 * win32-nat.c: Add i386-tdep.h dependency.
10564
10565 2002-01-07 Michael Snyder <msnyder@redhat.com>
10566
10567 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10568 instead of bfd_get_arch_size. Don't bail out just because
10569 there's no exec_bfd.
10570
10571 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10572 * p-valprint.c (pascal_object_print_value): Ditto.
10573 * somread.c (som_symtab_read): Ditto.
10574 * symfile.c (simple_free_overlay_region_table): Ditto.
10575 * valops.c (value_assign): Ditto.
10576
10577 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10578 use tilde_expand and strerror for opening save-tracepoints file.
10579
10580 * thread-db.c (thread_db_new_objfile): Indendation fix.
10581
10582 * infptrace.c (GDB_MAX_ALLOCA): New define.
10583 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10584 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10585 can be overridden with whatever value is appropriate to the host).
10586 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10587 alloca to allocate potentially large buffer.
10588 * rs6000-nat.c (child_xfer_memory): Ditto.
10589 * symm-nat.c (child_xfer_memory): Ditto.
10590 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10591
10592 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10593
10594 From Nick Clifton <nickc@redhat.com>
10595 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10596
10597 2002-01-07 Michael Snyder <msnyder@redhat.com>
10598
10599 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10600 Don't use exec_bfd if it's NULL.
10601
10602 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10603
10604 * valops.c (value_arg_coerce): Fix formatting.
10605
10606 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10607
10608 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10609 * gnu-nat.c: Ditto.
10610
10611 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10612
10613 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10614 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10615 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10616 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10617 z8k-coff have not been multi-arched. Update z8k-coff build
10618 status.
10619
10620 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10621
10622 * MAINTAINERS: Mark a29k target as obsolete.
10623 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10624 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10625 comments.
10626 * NEWS: Note that a29k targets are obsolete.
10627 * a29k-tdep.c: Mark as obsolete.
10628 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10629 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10630 a29k-*-vxworks* targets as obsolete.
10631 * remote-adapt.c: Obsolete.
10632 * remote-eb.c: Obsolete.
10633 * remote-mm.c: Obsolete.
10634 * remote-udi.c: Obsolete.
10635 * config/a29k/a29k-udi.mt: Obsolete.
10636 * config/a29k/a29k.mt: Obsolete.
10637 * config/a29k/tm-a29k.h: Obsolete.
10638 * config/a29k/tm-vx29k.h: Obsolete.
10639 * config/a29k/vx29k.mt: Obsolete.
10640
10641 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10642
10643 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10644 with BFD_ENDIAN_BIG.
10645
10646 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10647
10648 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10649 * configure, config.in: Re-generate.
10650 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10651 * defs.h: Do not include <endian.h>.
10652
10653 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10654
10655 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10656 * config.in: Regenerate.
10657 * configure.in: Update copyright years.
10658 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10659 * configure: Regenerate.
10660 * i386bsd-nat.c: Update copyright years.
10661 (fill_gregset): Use regcache_collect.
10662 (fetch_inferior_registers): Only fetch integer registers
10663 if requested to do so. Add support for XMM registers
10664 using PT_GETXMMREGS.
10665 (store_inferior_registers): Only store integer registers
10666 if requested to do so. Add support for XMM registers
10667 using PT_SETXMMREGS.
10668 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10669 (store_inferior_registers): Remove.
10670 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10671 (fetch_elfcore_registers): New function.
10672 (i386nbsd_elfcore_fns): New.
10673 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10674 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10675 i386bsd-nat.o.
10676 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10677 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10678 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10679 * config/i386/tm-nbsd.h: Update copyright years.
10680 (HAVE_SSE_REGS): Define.
10681 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10682 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10683 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10684 (SIGCONTEXT_PC_OFFSET): Remove.
10685 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10686
10687 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10688
10689 * configure.tgt: Remove powerpc-*-macos* target.
10690 * config/m68k/xm-mpw.h: Delete file.
10691 * config/xm-mpw.h: Delete file.
10692 * ser-mac.c: Delete file.
10693 * mpw-make.sed: Delete file.
10694 * mpw-config.in: Delete file.
10695 * mac-xdep.c: Delete file.
10696 * mac-gdb.r: Delete file.
10697 * mac-defs.h: Delete file.
10698 * mac-nat.c: Delete file.
10699 * config/powerpc/macos.mh: Delete file.
10700 * config/powerpc/macos.mt: Delete file.
10701 * config/powerpc/nm-macos.h: Delete file.
10702 * config/powerpc/tm-macos.h: Delete file.
10703 * source.c (openp, open_source_file): Remove obsolete code.
10704 * top.c (gdb_readline): Ditto.
10705 * utils.c (query): Ditto.
10706 * event-top.c (display_gdb_prompt): Ditto.
10707 * Makefile.in (ser-mac.o): Delete obsolete target.
10708 * NEWS: Update.
10709
10710 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10711
10712 * defs.h (BIG_ENDIAN): Delete macro definition.
10713 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10714 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10715 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10716 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10717 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10718 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10719 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10720 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10721 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10722 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10723 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10724 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10725 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10726 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10727 * gdbarch.c: Re-generate.
10728
10729 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10730
10731 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10732 for core files.
10733
10734 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10735
10736 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10737
10738 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10739
10740 * value.h (value_ptr): Delete typedef.
10741
10742 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10743
10744 * i386nbsd-nat.c: Update copyright years.
10745 Include i386-tdep.h.
10746
10747 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10748
10749 * stabsread.c: Update copyright years.
10750
10751 From Debashis Mahata <debashis.mahata@wipro.com>:
10752 (read_struct_fields): Deal with Sun C compiler erroneous stab
10753 output for structs and unions.
10754 Fix PR gdb/269.
10755
10756 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10757
10758 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10759 prototype.
10760
10761 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10762
10763 * cp-abi.c: Fix whitespace.
10764 (baseclass_offset): New wrapper function.
10765 * cp-abi.h (baseclass_offset): Add prototype.
10766 (struct cp_abi_ops): Add baseclass_offset pointer.
10767
10768 * valops.c (vb_match): Move to...
10769 * gnu-v2-abi.c (vb_match): here.
10770 * valops.c (baseclass_offset): Move to...
10771 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10772
10773 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10774
10775 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10776 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10777 * hpacc-abi.c (init_hpacc_ops): Likewise.
10778
10779 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10780
10781 * valops.c (find_overload_match): Accept obj as a
10782 reference parameter. Update it before returning.
10783 * value.h (find_overload_match): Update prototype.
10784 * eval.c (evaluate_subexp_standard): Pass object to
10785 find_overload_match by reference.
10786
10787 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10788
10789 * valarith.c: Replace value_ptr with struct value pointer. Remove
10790 register attribute from value declarations.
10791 * valops.c: Ditto.
10792 * value.h: Ditto.
10793 * scm-lang.c (scm_lookup_name): Ditto.
10794
10795 2002-01-03 Michael Snyder <msnyder@redhat.com>
10796
10797 Abstract the functionality of iterating over mapped memory
10798 regions into a general purpose iterator function.
10799 * procfs.c (iterate_over_mappings): New function, general purpose
10800 iterator for memory sections.
10801 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10802 (solib_mappings_callback): New function, callback for above.
10803 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10804 (info_mappings_callback): New function, callback for above.
10805
10806 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10807
10808 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10809
10810 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10811 * i386-tdep.c: Include "elf-bfd.h".
10812 (process_note_abi_tag_sections): New function.
10813 (i386_gdbarch_init): Add code to recognize various OS/ABI
10814 combinations.
10815
10816 * maint.c (_initialize_maint_cmds): Add missing \ in
10817 string-literal.
10818
10819 For older changes see ChangeLog-2001
10820 \f
10821 Local Variables:
10822 mode: change-log
10823 left-margin: 8
10824 fill-column: 74
10825 version-control: never
10826 End:
This page took 0.2613 seconds and 4 git commands to generate.