* gdb-events.sh: Add selected-frame-level-changed event.
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-26 Keith Seitz <keiths@redhat.com>
2
3 * gdb-events.sh: Add selected-frame-level-changed event.
4 * gdb-events.c: Regenerated.
5 * gdb-events.h: Regenerated.
6
7 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
8
9 Fix PR gdb/393:
10 * inflow.c (terminal_save_ours): New function to save terminal
11 settings.
12 * inferior.h (terminal_save_ours): Declare.
13 * target.c (debug_to_terminal_save_ours): New function.
14 (cleanup_target): Defaults to_terminal_save_ours.
15 (update_current_target): Inherit to_terminal_save_ours.
16 (setup_target_debug): Set to_terminal_save_ours.
17 * target.h (target_terminal_save_ours): New to save terminal settings.
18 (target_ops): New member to_terminal_save_ours.
19 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
20 * hpux-thread.c (init_hpux_thread_ops): Likewise.
21 * inftarg.c (init_child_ops): Likewise.
22 * m3-nat.c (init_m3_ops): Likewise.
23 * procfs.c (init_procfs_ops): Likewise.
24 * wince.c (init_child_ops): Likewise.
25 * win32-nat.c (init_child_ops): Likewise.
26 * sol-thread.c (init_sol_thread_ops): Likewise.
27
28 2002-08-26 Mark Kettenis <kettenis@gnu.org>
29
30 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
31 use regcache_* functions.
32 (i386_gdbarch_init): Set store_return_value instead of
33 deprecated_store_return_value.
34
35 * regcache.c (regcache_raw_write_signed,
36 regcache_raw_write_unsigned): New functions.
37 * regcache.h (regcache_raw_write_signed,
38 regcache_raw_write_unsigned): New prototypes.
39
40 2002-08-25 Andrew Cagney <ac131313@redhat.com>
41
42 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
43 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
44 source file dependencies. Cleanup corresponding generator rules.
45
46 2002-08-25 Andrew Cagney <ac131313@redhat.com>
47
48 * regcache.h (register_offset_hack): Declare.
49 (regcache_cooked_read_using_offset_hack): Declare.
50 (regcache_cooked_write_using_offset_hack): Declare.
51
52 * regcache.c (register_offset_hack): New function.
53 (regcache_cooked_read_using_offset_hack): New function.
54 (regcache_cooked_write_using_offset_hack): New function.
55 (regcache_dump): Check that the registers, according to their
56 offset, are packed hard against each other.
57 (cooked_xfer_using_offset_hack): New function.
58
59 2002-08-25 Andrew Cagney <ac131313@redhat.com>
60
61 * regcache.c (struct regcache_descr): Add field register_type.
62 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
63 in as a parameter
64 (init_regcache_descr): Initialize register_type. Pass the descr
65 to init_legacy_regcache_descr. Use register_type instead of
66 REGISTER_VIRTUAL_TYPE.
67 (register_type): New function.
68 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
69 * regcache.h (register_type): Declare.
70
71 2002-08-25 Andrew Cagney <ac131313@redhat.com>
72
73 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
74 instead of deprecated_store_return_value. Fix fallout from
75 2002-08-23 Andrew Cagney <cagney@redhat.com>.
76
77 2002-08-25 Andrew Cagney <ac131313@redhat.com>
78
79 * regcache.c (max_register_size): New function.
80 (init_legacy_regcache_descr): Ensure that max_register_size is
81 large enough for REGISTER_VIRTUAL_SIZE.
82 * regcache.h (max_register_size): Declare.
83
84 2002-08-24 Andrew Cagney <ac131313@redhat.com>
85
86 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
87 store_return_value.
88 (e500_extract_return_value): Change type of valbuf pointer to
89 void.
90
91 2002-08-24 Mark Kettenis <kettenis@gnu.org>
92
93 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
94 workaround.
95
96 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
97 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
98 long long) to prevent compiler warning on 64-bit systems.
99
100 2002-08-23 Andrew Cagney <cagney@redhat.com>
101
102 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
103 (DEPRECATED_STORE_RETURN_VALUE): New method.
104 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
105 * gdbarch.h, gdbarch.c: Re-generate.
106
107 * values.c (set_return_value): Pass current_regcache to
108 STORE_RETURN_VALUE.
109 * arch-utils.h (legacy_store_return_value): Declare.
110 * arch-utils.c (legacy_store_return_value): New function.
111 (legacy_extract_return_value): Update parameters.
112
113 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
114 STORE_RETURN_VALUE.
115 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
116 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
117 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
118 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
119 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
120 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
121 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
122 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
123 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
124 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
125
126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
127 * i386-tdep.c (i386_extract_return_value): Update.
128 * arch-utils.c (legacy_extract_return_value): Update.
129 * frv-tdep.c (frv_gdbarch_init): Update.
130 * cris-tdep.c (cris_gdbarch_init): Update.
131 * d10v-tdep.c (d10v_gdbarch_init): Update.
132 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
133 * m68k-tdep.c (m68k_gdbarch_init): Update.
134 * mcore-tdep.c (mcore_gdbarch_init): Update.
135 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
136 * s390-tdep.c (s390_gdbarch_init): Update.
137 * sparc-tdep.c (sparc_gdbarch_init): Update.
138 * sh-tdep.c (sh_gdbarch_init): Update.
139 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
140 * v850-tdep.c (v850_gdbarch_init): Update.
141 * avr-tdep.c (avr_gdbarch_init): Update.
142 * ia64-tdep.c (ia64_gdbarch_init): Update.
143 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
144 * vax-tdep.c (vax_gdbarch_init): Update.
145 * alpha-tdep.c (alpha_gdbarch_init): Update.
146 * arm-tdep.c (arm_gdbarch_init): Update.
147 * mips-tdep.c (mips_gdbarch_init): Update.
148 * i386-tdep.c (i386_gdbarch_init): Update.
149
150 2002-08-23 Andrew Cagney <ac131313@redhat.com>
151
152 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
153 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
154
155 2002-08-24 Mark Kettenis <kettenis@gnu.org>
156
157 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
158 problems.
159
160 2002-08-23 Joel Brobecker <brobecker@gnat.com>
161
162 * infrun.c (handle_inferior_event): Move a comment outside of a
163 function call, in order to avoid indent reformatting this part
164 of the code in an unreadable way.
165
166 2002-08-23 Grace Sainsbury <graces@redhat.com>
167
168 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
169 when breakpoints fail. Move general breakpoint error messages to
170 insert_breakpoints.
171 * breakpoint.c (insert_breakpoints): Change warnings when
172 breakpoints are nto inserted to specify the type. Remove call to
173 memory_error when hardware breakpoints can't be inserted. Remove
174 multiple calls to warning so all messages are sent to the user at
175 once.
176 (delete_breakpoints): Make insert error messsages more explicit.
177
178 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
179
180 * ChangeLog: Move gdbserver entries after GDB 5.2 to
181 gdbserver/ChangeLog.
182
183 2002-08-23 Mark Kettenis <kettenis@gnu.org>
184
185 * i386-tdep.c: Include "objfiles.h".
186 (i386_svr4_init_abi): Set in_solib_call_trampoline and
187 skip_trampoline_code.
188 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
189 (CPLUS_MARKER): Define to '.'.
190
191 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
192 member.
193 (linux_corefile_thread_callback): Increase args->num_notes.
194 (linux_make_note_section): Initialize thread_args.num_notes, and
195 use it to determine whether notes for any threads were created.
196
197 2002-08-23 Donn Terry <dterry@microsoft.com>
198
199 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
200 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
201 and PCUNKILL.
202 (write_with_trace): Conditionalize out the switch branch handling
203 PCSHOLD if the corresponding macro is not defined. Likewise for
204 PRSABORT and PRSTOP.
205 This change will be needed by the Interix port.
206
207 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
208
209 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
210 ev_offset fields.
211 (skip_prologue): Add support for BookE/e500 instructions.
212 (e500_extract_return_value): New function.
213 (frame_get_saved_regs): Add support for saving ev registers and
214 pseudo gpr's.
215 (e500_store_return_value): New function.
216 (rs6000_gdbarch_init): Move up default intializations of
217 deprecated_extract_return_value and store_return_value. Overwrite
218 init of store_return_value with e500 specific version.
219 Set extract_return_value for e500.
220
221 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
222
223 * blockframe.c (generic_call_dummy_register_unwind): Use
224 regcache_cooked_read to catch cases in which the variable is
225 stored in a pseudo register.
226
227 2002-08-22 Andrew Cagney <cagney@redhat.com>
228
229 * NEWS: Mention that the i960 has been made obsolete.
230 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
231 i960-tdep.c
232 (remote-nrom.o): Obsolete target.
233 (remote-nindy.o, i960-tdep.o): Ditto.
234 * remote-nrom.c: Make file obsolete.
235 * remote-nindy.c, remote-vx960.c: Ditto.
236 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
237 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
238 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
239 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
240 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
241 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
242 i960-*-vxworks* obsolete.
243 * MAINTAINERS: Note that the i960 is obsolete.
244
245 2002-08-21 Corinna Vinschen <vinschen@redhat.com
246
247 * aix-thread.c (aix_thread_detach): Disable thread debugging on
248 detach to allow reinitialization.
249
250 2002-08-22 Andrew Cagney <ac131313@redhat.com>
251
252 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
253 attempt).
254
255 2002-08-22 Jim Blandy <jimb@redhat.com>
256
257 * coffread.c (coff_symfile_read): Don't try to read the line
258 number table from disk if the image file doesn't have a symbol
259 table; we'll never actually look at the info anyway, and Windows
260 ships DLL's with bogus file offsets for the line number data.
261
262 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
263
264 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
265 an e500 executable.
266
267 2002-08-21 Michael Snyder <msnyder@redhat.com>
268
269 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
270 (MSYMBOL_SIZE): Replace macro with function.
271 (DEFAULT_MIPS_TYPE): Delete unused macro.
272 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
273 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
274
275 2002-08-21 Jim Blandy <jimb@redhat.com>
276
277 * valops.c (value_cast): Simplify and correct logic for doing a
278 static cast from a pointer to a base class to a pointer to a
279 derived class.
280
281 2002-08-21 Andrew Cagney <ac131313@redhat.com>
282
283 * infcmd.c (default_print_registers_info): Replace
284 do_registers_info.
285 (registers_info): Use gdbarch_print_registers_info instead of
286 DO_REGISTERS_INFO.
287 * inferior.h (default_print_registers_info): Replace
288 do_registers_info.
289 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
290 (DO_REGISTERS_INFO): Change to a predicate function.
291 * gdbarch.h, gdbarch.c: Regenerate.
292
293 2002-08-21 Keith Seitz <keiths@redhat.com>
294
295 * gdb-events.sh: Add target-changed event.
296 * gdb-events.c: Regenerated.
297 * gdb-events.c: Regenerated.
298 * valops.c (value_assign): Add target-changed event notification
299 to inlval_register, lval_memory, and lval_reg_frame_relative.
300
301 2002-08-21 Joel Brobecker <brobecker@gnat.com>
302
303 * NEWS: Add an entry regarding the improvement of the next/step
304 operation on Alpha Tru64 multi-processor machines.
305
306 2002-08-21 Andrew Cagney <ac131313@redhat.com>
307
308 * Makefile.in: Update dependencies for mi/ cli/ and tui/
309 directores.
310 * Makefile.in: Update all _h macro definitions.
311 * Makefile.in (install-gdbtk): Move to install section.
312 (rdi-share/libangsd.a): Move to end of file.
313
314 2002-08-19 Andrew Cagney <ac131313@redhat.com>
315
316 * frame.c (frame_register_unwind): When a register, set addrp to
317 the register's byte.
318
319 2002-08-20 Michael Snyder <msnyder@redhat.com>
320
321 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
322 used locally, so move them from the target machine header to here.
323 (mips_set_processor_type, mips_register_name, mips32_next_pc,
324 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
325 Make static.
326 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
327
328 2002-08-20 Andrew Cagney <cagney@redhat.com>
329
330 * NEWS: Mention that the Apollo line was made obsolete.
331 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
332 m68*-hp-hpux* obsolete.
333 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
334 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
335 * buildsym.c (make_blockvector): Make static.
336 * buildsym.h (make_blockvector): Make extern declaration obsolete.
337 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
338 (ALLDEPFILES): Remove dstread.c.
339 (dstread.o): Obsolete make rule.
340 * dstread.c: Makefile obsolete.
341 * dst.h: Ditto.
342 * config/m68k/hp300hpux.mt: Ditto.
343 * config/m68k/hp300hpux.mh: Ditto.
344 * config/m68k/hp300bsd.mt: Ditto.
345 * config/m68k/hp300bsd.mh: Ditto.
346 * config/m68k/apollo68b.mt: Ditto.
347 * config/m68k/apollo68v.mh: Ditto.
348 * config/m68k/apollo68b.mh: Ditto.
349
350 2002-08-20 Michael Snyder <msnyder@redhat.com>
351
352 * mips-tdep.c (mips_in_return_stub): Make static.
353 (mips_gdbarch_init): Set in_solib_return_trampoline.
354 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
355
356 2002-08-20 Michael Snyder <msnyder@redhat.com>
357
358 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
359 * gdbarch.c, gdbarch.h: Regenerate.
360 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
361 Add.
362 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
363
364 2002-08-20 Michael Snyder <msnyder@redhat.com>
365
366 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
367 (mips_gdbarch_init): Set skip_trampoline_code,
368 in_solib_call_trampoline.
369 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
370 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
371
372 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
373
374 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
375
376 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
377 vector type for ev registers.
378 (e500_pseudo_register_read): New function.
379 (e500_pseudo_register_write): New function.
380 (e500_dwarf2_reg_to_regnum): New function.
381 (PPC_UISA_NOFP_SPRS): New macro.
382 (PPC_EV_REGS): New macro.
383 (PPC_GPRS_PSEUDO_REGS): New macro.
384 (registers_e500): New register set for e500.
385 (variants): Add e500 variant.
386 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
387 before setting architectural dependent variations. Initialize ev
388 registers numbers. Add case for e500 architecture. Set the
389 number of pseudo registers.
390
391 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
392
393 * rs6000-tdep.c: Clean up comments.
394
395 2002-08-20 Andrew Cagney <cagney@redhat.com>
396
397 * h8300-tdep.c: Re-indent file.
398
399 2002-08-20 Jim Blandy <jimb@redhat.com>
400
401 * Makefile.in (LDFLAGS): Allow the configure script to establish a
402 default for this.
403
404 2002-08-20 Keith Seitz <keiths@redhat.com>
405
406 * breakpoints.c (watch_command_1): Use internal breakpoint
407 when setting a watchpoint_scope breakpoint.
408
409 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
410
411 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
412 (build_builtin_type_vec64i): Ditto.
413 (build_builtin_type_vec128): Ditto.
414 (build_builtin_type_vec128i): Ditto.
415
416 2002-08-19 Michael Snyder <msnyder@redhat.com>
417
418 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
419 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
420 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
421 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
422 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
423 CALL_DUMMY_ADDRESS): Delete.
424 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
425 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
426 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
427 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
428 push_return_address.
429 (mips_register_raw_size, mips_eabi_use_struct_convention,
430 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
431 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
432 mips_init_extra_frame_info, mips_eabi_push_arguments,
433 mips_n32n64_push_arguments, mips_push_return_address,
434 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
435 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
436
437 2002-08-19 Michael Snyder <msnyder@redhat.com>
438
439 * mips-tdep.c (mips_frame_num_args): New function.
440 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
441 frame_saved_pc, frame_args_address, frame_locals_address,
442 frame_num_args, and frame_args_skip.
443 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
444 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
445 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
446 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
447
448 2002-08-20 Michael Snyder <msnyder@redhat.com>
449
450 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
451 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
452 * mips-tdep.c (mips_store_struct_return): New function.
453 (mips_extract_struct_value_address): New function.
454 (mips_gdbarch_init): Set store_struct_return and
455 extract_struct_value_address.
456
457 2002-08-20 David Carlton <carlton@math.stanford.edu>
458
459 * dwarf2read.c (dwarf2_build_psymtabs): Check that
460 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
461 (read_file_scope): Check that line_header is nonzero before
462 decoding macro information.
463
464 2002-08-20 Mark Kettenis <kettenis@gnu.org>
465
466 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
467 flag the general-purpose registers as floating-point on targets
468 that don't support the floating-point registers.
469
470 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
471
472 * rs6000-tdep.c (altivec_register_p): Delete.
473 (rs6000_do_altivec_registers): Delete.
474 (rs6000_altivec_registers_info): Delete.
475 (rs6000_do_registers_info): Delete.
476 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
477 (rs6000_gdbarch_init): Remove setting of do_registers_info.
478
479 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
480
481 * infcmd.c (do_registers_info): Print vector registers in hex
482 format only.
483 (print_vector_info): Check that printing registers
484 makes sense.
485 (print_float_info): Ditto.
486
487 2002-08-20 Andrew Cagney <ac131313@redhat.com>
488
489 * mips-tdep.c (mips_gdbarch_init): Update.
490 (mips_o32_extract_return_value): Rewrite.
491 (mips_o32_store_return_value): Rewrite.
492 (mips_o32_xfer_return_value): New function.
493 (mips_xfer_register): Tweak debug print message. Allow for
494 buf_offset when dumping the value transfered.
495
496 2002-08-20 Andrew Cagney <ac131313@redhat.com>
497
498 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
499 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
500 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
501 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
502 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
503
504 2002-08-14 Michael Snyder <msnyder@redhat.com>
505
506 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
507
508 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
509
510 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
511 register.
512 (P): New macro to define a register as a pseudo register.
513 (R, R4, R8, R16, FR32, R64, R0): Updated.
514 (struct variant): Add new fields for number of pseudo registers
515 and number of total registers.
516 (tot_num_registers): New macro replacing....
517 (num_registers): ...deleted macro.
518 (num_registers): New function.
519 (num_pseudo_registers): New function.
520 (variants): Update all variants to intialize new fields correctly.
521 Postpone initialization of number of pseudo regs and real regs.
522 (init_variants): New function.
523 (rs6000_gdbarch_init): Initialize variants. Update calculation of
524 registers offsets.
525
526 2002-08-19 David Carlton <carlton@math.stanford.edu>
527
528 * valops.c (search_struct_field): Change error message to treat
529 return value of 0 from value_static_field as meaning that field is
530 optimized out.
531 (value_struct_elt_for_reference): Ditto.
532 * values.c (value_static_field): Treat an unresolved location the
533 same as a nonexistent symbol. Fix PR gdb/635.
534 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
535 enclosed. Fix PR gdb/574.
536 * MAINTAINERS: Add self to Write After Approval list.
537
538 2002-08-19 Andrew Cagney <ac131313@redhat.com>
539
540 * mips-tdep.c (mips_xfer_register): New function.
541 (mips_n32n64_extract_return_value): Rewrite.
542 (mips_gdbarch_init): For N32 and N64, set extract_return_value
543 instead of deprecated_extract_return_value.
544
545 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
546
547 * rs6000-tdep.c (TDEP): Delete macro.
548 (branch_dest): Replace use of TDEP macro with its body.
549 (rs6000_pop_frame): Ditto.
550 (rs6000_push_arguments): Ditto.
551 (rs6000_skip_trampoline_code): Ditto.
552 (rs6000_frame_saved_pc): Ditto.
553 (rs6000_frame_chain): Ditto.
554 (rs6000_register_name): Ditto.
555 (rs6000_register_byte): Ditto.
556 (rs6000_register_raw_size): Ditto.
557 (rs6000_register_virtual_type): Ditto.
558 (rs6000_register_convertible): Ditto.
559 (rs6000_convert_from_func_ptr_addr): Ditto.
560
561 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
562
563 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
564 conditionally.
565 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
566 MIPS_LINUX_JB_ELEMENT_SIZE.
567 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
568 for MAX_REGISTER_RAW_SIZE arrays.
569 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
570 MIPS_LINUX_JB_ELEMENT_SIZE.
571
572 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
573
574 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
575
576 2002-08-19 Aidan Skinner <aidan@velvet.net>
577
578 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
579 ada-valprint.c ada-tasks.c.
580 (YYFILES): Add ada-exp.y.
581 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
582 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
583 (ada-exp.tab.o): New target.
584
585 2002-08-18 Andrew Cagney <ac131313@redhat.com>
586
587 * regcache.c (regcache_xfer_part): New function.
588 (regcache_raw_read_part): New function.
589 (regcache_raw_write_part): New function.
590 (regcache_cooked_read_part): New function.
591 (regcache_cooked_write_part): New function.
592 * regcache.h (regcache_raw_read_part): Declare.
593 (regcache_raw_write_part): Declare.
594 (regcache_cooked_read_part): Declare.
595 (regcache_cooked_write_part): Declare.
596
597 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
598
599 * remote.c (remote_open_1): Add async_p.
600 (remote_async_open_1): Delete.
601 (open_remote_target): Delete.
602 (remote_open, extended_remote_open): Update calls to remote_open_1.
603 (remote_async_open, extended_remote_async_open): Call
604 remote_open_1 instead of remote_async_open_1.
605
606 2002-08-19 Mark Kettenis <kettenis@gnu.org>
607
608 * blockframe.c: Fix a few coding standard violations.
609
610 2002-08-19 Mark Kettenis <kettenis@gnu.org>
611
612 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
613 here from ...
614 * config/i386/tm-i386sco5.h: ... here. File removed.
615 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
616
617 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
618 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
619 (TM_FILE): Set to tm-i386.h.
620 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
621 * config/i386/tm-i386v.h: Remove file.
622 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
623 instead of "i386/tm-i386v.h".
624 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
625 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
626 "i386/tm-i386v.h".
627 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
628 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
629 "i386/tm-i386.h".
630
631 2002-08-18 Mark Kettenis <kettenis@gnu.org>
632
633 * config/i386/nm-i386v.h: Add protection against
634 multiple-inclusion.
635 (i386_register_u_addr): Remove prototype.
636 (register_u_addr): New prototype.
637 (REGISTER_U_ADDR): Redefine accordingly.
638 * i386v-nat.c: Improve several comments.
639 (i386_register_u_addr): Change signature and rename to
640 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
641 ubase variable.
642
643 2002-08-18 Andrew Cagney <ac131313@redhat.com>
644
645 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
646 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
647 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
648 deprecated_extract_return_value.
649 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
650 rename mips_o32o64_push_arguments.
651 (mips_gdbarch_init): Update.
652 (mips_extract_return_value): Delete.
653 (mips_o32_extract_return_value): Clone mips_extract_return_value.
654 (mips_o64_extract_return_value): Clone mips_extract_return_value.
655 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
656 (mips_n32n64_extract_return_value): Clone
657 mips_extract_return_value.
658 (mips_store_return_value): Delete.
659 (mips_o32_store_return_value): Clone mips_store_return_value.
660 (mips_o64_store_return_value): Clone mips_store_return_value.
661 (mips_eabi_store_return_value): Clone mips_store_return_value.
662 (mips_n32n64_store_return_value): Clone mips_store_return_value.
663
664 2002-08-18 Aidan Skinner <aidan@velvet.net>
665
666 * ada-lang.c: Use gdb_string.h instead of <string.h>.
667 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
668
669 2002-08-18 Aidan Skinner <aidan@velvet.net>
670
671 * ada-lang.c: Run through gdb_indent.sh.
672 * ada-lang.h: Run through gdb_indent.sh.
673 * ada-tasks.c: Run through gdb_indent.sh.
674 * ada-typeprint.c: Run through gdb_indent.sh.
675 * ada-valprint.c: Run through gdb_indent.sh.
676
677 2002-08-18 Andrew Cagney <ac131313@redhat.com>
678
679 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
680 ABI.
681
682 2002-08-18 Mark Kettenis <kettenis@gnu.org>
683
684 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
685
686 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
687 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
688
689 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
690 write_register_gen instead of write_register_bytes.
691
692 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
693 i[3456]-*-osf1mk* configurations have been made obsolete.
694 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
695 i[3456]86-*-osf1mk* hosts obsolete.
696 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
697 targets obsolete.
698 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
699 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
700 config/i386/i386m3.mt, config/i386/nm-m3.h,
701 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
702 config/i386/i386mk.mh, config/i386/i386mk.mt,
703 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
704 obsolete.
705 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
706 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
707 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
708
709 2002-08-18 Andrew Cagney <ac131313@redhat.com>
710
711 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
712 (hppa_value_returned_from_stack): Declare.
713 (hppa_extract_return_value): Declare.
714 * config/pa/hppa.mt: New file.
715 * configure.tgt: Recognize hppa*-*-*.
716 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
717
718 2002-08-18 Mark Kettenis <kettenis@gnu.org>
719
720 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
721 comment.
722
723 2002-08-17 Mark Kettenis <kettenis@gnu.org>
724
725 * top.c (gdb_rl_operate_and_get_next): Make sure
726 operate-and-get-next functions correctly even when the history
727 list is completely filled.
728
729 2002-08-18 Andrew Cagney <ac131313@redhat.com>
730
731 * MAINTAINERS (Target Instruction Set Architectures): Rename
732 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
733 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
734 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
735 already listed under Host/Native.
736
737 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
738 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
739 mips*-*-*.
740
741 2002-08-17 Andrew Cagney <ac131313@redhat.com>
742
743 * config/ia64/ia64.mt: New file.
744 * config/alpha/alpha.mt: New file.
745 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
746 ia64-linux-gnu. Mention that ia64-elf is broken.
747 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
748
749 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
750
751 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
752 generic_func_frame_valid instead of func_frame_valid.
753
754 2002-08-16 Joel Brobecker <brobecker@gnat.com>
755
756 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
757 procfs appears to be broken when debugging on multi-processor
758 machines. So enable software single stepping in order to avoid
759 using the procfs interface to do next/step operations, using
760 internal breakpoints instead.
761
762 * infrun.c (handle_inferior_event): Readjust the stop_pc by
763 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
764 make this pc address equal to the value it would have if the
765 system stepping capability was used. Also set a new flag used
766 to ensure that we don't readjust the PC one more time later.
767
768 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
769 address by DECR_PC_AFTER_BREAK when software single step is
770 in use for this architecture, as this has already been taken
771 care of in handle_inferior_event().
772
773 2002-08-16 Joel Brobecker <brobecker@gnat.com>
774
775 * infrun.c (handle_inferior_event): Minor reformatting, to make
776 a rather long condition expression easier to read.
777
778 2002-08-16 Andrew Cagney <ac131313@redhat.com>
779
780 * Makefile.in (gdbtk.o): Move to end of file.
781 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
782 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
783 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
784 (gdbtk-wrapper.o, gdbres.o): Ditto.
785
786 2002-08-16 Andrew Cagney <ac131313@redhat.com>
787
788 * Makefile.in (copying.o): Separate out compile rule.
789 (hpux-thread.o, procfs.o, signals.o): Ditto.
790 (v850ice.o, z8k-tdep.o): Ditto.
791 (tui-file.o): Move to TUI section.
792 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
793 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
794
795 2002-08-16 Joel Brobecker <brobecker@gnat.com>
796
797 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
798 skip_trampoline_code, for better namespace-proofing.
799
800 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
801
802 2002-08-16 Joel Brobecker <brobecker@gnat.com>
803
804 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
805
806 2002-08-16 Joel Brobecker <brobecker@gnat.com>
807
808 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
809 signal, check whether we hit a breakpoint before checking for a
810 single step breakpoint. Otherwise, GDB fails to notice that a
811 breakpoint has been hit when stepping onto a breakpoint.
812
813 2002-08-16 Keith Seitz <keiths@redhat.com>
814
815 * gdb-events.sh (clear_gdb_event_hooks): New function.
816 * gdb-events.c: Regenerate.
817 * gdb-events.h: Regenerate.
818
819 2002-08-16 Andrew Cagney <ac131313@redhat.com>
820
821 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
822 not_a_sw_breakpoint.
823 * breakpoint.h (bpstat_stop_status): Add parameter names.
824
825 2002-08-16 Grace Sainsbury <graces@redhat.com>
826
827 * remote.c (remote_insert_hw_breakpoint)
828 (remote_remove_hw_breakpoint): Fix calculation of length field
829 for Z-packet.
830
831 2002-08-15 Michael Snyder <msnyder@redhat.com>
832
833 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
834 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
835 (supply_fpregset): Ditto.
836
837 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
838 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
839 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
840 (TARGET_READ_SP): Delete.
841 (DO_REGISTERS_INFO): Delete.
842 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
843 Delete.
844 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
845 from macros to functions.
846
847 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
848 (mips_register_convertible, mips_register_convert_to_virtual,
849 mips_register_convert_to_raw): Make static.
850 (mips_read_sp): New function.
851 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
852 (mips_do_registers_info): Make static.
853 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
854 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
855 (mips_register_convert_from_type, mips_register_convert_to_type):
856 New functions.
857 (mips_gdbarch_init): Set up function_start_offset,
858 register_virtual_size, pc_in_sigtramp.
859
860 2002-08-15 Andrew Cagney <ac131313@redhat.com>
861
862 * infcmd.c (vector_info): New function.
863 (_initialize_infcmd): Add command "info vector".
864 (print_vector_info): New function.
865
866 * gdbarch.sh (PRINT_VECTOR_INFO): New method
867 * gdbarch.h, gdbarch.c: Regenerate.
868
869 2002-08-15 Andrew Cagney <ac131313@redhat.com>
870
871 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
872 ``print_all''. Only print vector registers when ``print_all''.
873
874 2002-08-15 Andrew Cagney <ac131313@redhat.com>
875
876 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
877 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
878
879 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
880 Add `args' parameter.
881 * gdbarch.h, gdbarch.c: Regenerate.
882
883 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
884
885 * infcmd.c (float_info): Call print_float_info.
886 (print_float_info): New function. By default, print the
887 floating-point registers.
888
889 * arch-utils.h (default_print_float_info): Delete declaration.
890 * arch-utils.c (default_print_float_info): Delete function.
891
892 2002-08-16 Mark Kettenis <kettenis@gnu.org>
893
894 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
895 out define.
896
897 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
898 FRAME.
899
900 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
901 * configure.host: Make i[3456]86-*-aix host obsolete.
902 * configure.tgt: Make i[3456]86-*-aix target obsolete.
903 * config/i386/i386aix.mh, config/i386/i386aix.mt,
904 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
905 config/i386/xm-i386aix.h: Make files obsolete.
906 * i386aix-nat.c: Make file obsolete.
907 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
908 (i386aix-nat.o): Make target obsolete.
909
910 * config/i386/nm-gnu.h: Removed.
911 * config/i386/nm-i386gnu.h: New file.
912 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
913 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
914 Moved here from ...
915 * config/i386/tm-i386gnu.h: ... here. Removed.
916 * config/i386/xm-i386gnu.h: Removed.
917 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
918 (NAT_FILE): Set to nm-i386gnu.h.
919 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
920 * i386-tdep.c: New file.
921 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
922 (i386gnu-tdep.o): Specify dependencies.
923
924 2002-08-15 Mark Kettenis <kettenis@gnu.org>
925
926 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
927 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
928 Adjust a few comments to reflect reality a bit closer.
929 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
930 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
931 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
932 target_insert_watchpoint, target_remove_watchpoint):
933 Move defines to ...
934 * config/i386/nm-i386sco5.h: ... here.
935 (kernel_u_size): Add prototype. Improve a few comments and add
936 protection against multiple inclusion.
937
938 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
939 out define.
940
941 * uw-thread.c (SP_ARG0): Define if not already defined.
942 * config/i386/tm-i386.h (SO_ARG0): Remove define.
943
944 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
945
946 * config/i386/tm-i386.h: Don't include "regcache.h".
947
948 * i387-tdep.h (i387_print_float_info): New prototype.
949 * i387-tdep.c (print_i387_value, print_i387_ext,
950 print_i387_status_word, print_i387_control_word): Add `struct
951 ui_file *' argument and use it for output.
952 (i387_print_float_info): Renamed from i387_float_info. Add
953 `struct gdbarch *' and `struct ui_file *' arguments and use the
954 latter for output.
955 * i386-tdep.c: Include "i387-tdep.h".
956 (i386_gdbarch_init): Set print_float_info.
957 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
958 (FLOAT_INFO): Remove define.
959
960 2002-08-13 Michael Snyder <msnyder@redhat.com>
961
962 * mips-tdep.c (mips_push_arguments): Rename to
963 mips_eabi_push_arguments, and tune for EABI.
964 (MIPS_REGS_HAVE_HOME_P): Delete.
965 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
966 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
967 Delete references to mips_regs_have_home_p.
968
969 2002-08-14 Keith Seitz <keiths@redhat.com>
970
971 * Makefile.in (install-gdbtk): Create insight plugin directory.
972 Install plugins.tcl file.
973
974 2002-08-14 Keith Seitz <keiths@redhat.com>
975
976 * configure.in: Move SUBDIRS to near top of the file so that
977 --enable options may add things to it.
978 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
979 * configure: Regenerate.
980
981 2002-08-13 Michael Snyder <msnyder@redhat.com>
982
983 * mips-tdep.c (mips_o32o64_push_arguments): New function,
984 cloned from mips_push_arguments, tuned for o32/o64 ABI.
985 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
986
987 2002-08-13 Andrew Cagney <ac131313@redhat.com>
988
989 * vax-tdep.c (vax_get_saved_register): Delete function.
990 (vax_gdbarch_init): Update.
991 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
992 (ns32k_gdbarch_init): Update.
993 * alpha-tdep.c (alpha_get_saved_register): Delete function.
994 (alpha_gdbarch_init): Update.
995
996 2002-08-13 Andrew Cagney <cagney@redhat.com>
997
998 * regcache.c (init_regcache_descr): Overallocate the
999 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1000 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1001 nr_raw_registers.
1002 (set_register_cached): Add range checking assertions. Use
1003 current_regcache.
1004
1005 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1006
1007 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1008 numbers for MMX registers.
1009
1010 2002-08-13 Andrew Cagney <cagney@redhat.com>
1011
1012 * i386-tdep.c (i386_gdbarch_init): Use
1013 generic_unwind_get_saved_register.
1014
1015 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1016
1017 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1018 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1019 target vector.
1020 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1021 Delete. Add comment regarding this now-deleted target method.
1022
1023 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1024
1025 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1026 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1027 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1028 real PC and the page number (if it's within the memory bank window).
1029 (m68hc11_pseudo_register_write): Likewise when saving.
1030 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1031 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1032 (m68hc11_register_raw_size): And use 32-bit for it.
1033 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1034 16K memory bank is used by the prog; also use the virtual pc.
1035
1036 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1037
1038 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1039 (m68hc11_gdbarch_init): Install it in gdbarch.
1040 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1041 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1042 (MSYMBOL_SIZE): New for documentation.
1043 (insn_return_kind): Enum to specify how a function returns.
1044 (frame_extra_info): Cleanup and record the return mode.
1045 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1046 register in address computation.
1047 (m68hc11_get_return_insn): New to obtain the return instruction used
1048 by the function.
1049 (m68hc11_frame_init_saved_regs): Take into account the return
1050 instruction used by the function for far and interrupt functions.
1051 (m68hc11_init_extra_frame_info): Take into account page register.
1052 (m68hc11_frame_args_address): Adjust according to the return mode.
1053 (show_regs): Print page register only when it's used.
1054
1055 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1056
1057 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1058 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1059 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1060 registers.
1061 (m68hc11_register_raw_size): Likewise.
1062
1063 2002-08-13 Andrew Cagney <cagney@redhat.com>
1064
1065 * i386-tdep.c (i386_register_name): Handle mmx registers.
1066 (mmx_regnum_p): New function.
1067 (i386_mmx_names): New array.
1068 (mmx_num_regs): New variable.
1069 (i386_pseudo_register_read): New function.
1070 (i386_pseudo_register_write): New function.
1071 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1072
1073 * regcache.c (regcache_raw_read_unsigned): New function.
1074 (regcache_raw_read_signed): New function.
1075 * regcache.h (regcache_raw_read_unsigned): Declare.
1076 (regcache_raw_read_signed): Declare.
1077
1078 2002-08-13 Andrew Cagney <cagney@redhat.com>
1079
1080 * regcache.c (regcache_raw_read_as_address): Delete function.
1081 (regcache_cooked_read_signed): New function.
1082 (regcache_cooked_read_unsigned): New function.
1083 * regcache.h (regcache_cooked_read_signed): Declare.
1084 (regcache_cooked_read_unsigned): Declare.
1085 (regcache_raw_read_as_address): Delete declaration.
1086
1087 * blockframe.c (generic_read_register_dummy): Use
1088 regcache_cooked_read_unsigned.
1089 * i386-tdep.c (i386_extract_struct_value_address): Use
1090 regcache_cooked_read_unsigned.
1091
1092 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1093
1094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1095 double sizes according to ELF ABI flags.
1096 (gdbarch_tdep): Record elf_flags.
1097
1098 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1099
1100 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1101 (m6812_prolog): They can appear in 68HC12 function prologue.
1102 (m68hc11_frame_chain): Cleanup.
1103
1104 2002-08-12 Andrew Cagney <cagney@redhat.com>
1105
1106 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1107 declarations.
1108 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1109 (i386_linux_register_raw_size): Delete function.
1110 (i386_linux_init_abi): Update.
1111 * i386-tdep.c (i386_register_raw_size): Delete function.
1112 (i386_register_byte): Delete function.
1113 (i386_gdbarch_init): Update.
1114 (i386_register_size): Delete array.
1115 (i386_register_offset): Delete array.
1116
1117 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1118 (REGISTER_RAW_SIZE): Delete macro.
1119 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1120 (REGISTER_BYTE): Delete macro.
1121
1122 2002-08-11 Aidan Skinner <aidan@velvet.net>
1123
1124 * ada-lang.c (ada_lookup_partial_symbol)
1125 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1126 prototype names so that grep ^func works properly.
1127
1128 * ada-lang.c (ada_array_element_type)
1129 (ada_lookup_partial_symbol): Fix typos in parameter list.
1130
1131 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1132 Fix prototype names so that grep ^func works properly.
1133
1134 2002-08-10 Andrew Cagney <cagney@redhat.com>
1135 Elena Zannoni <ezannoni@redhat.com>
1136 Martin M. Hunt <hunt@redhat.com>
1137
1138 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1139 (build_builtin_type_vec128i): Set the vector bit.
1140 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1141 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1142 (build_builtin_type_vec64): New function.
1143 (build_builtin_type_vec64i): New function.
1144 (build_gdbtypes): Initialize builtin_type_vec64 and
1145 builtin_type_vec64i.
1146
1147 2002-08-09 Andrew Cagney <cagney@redhat.com>
1148
1149 * regcache.c (regcache_dump): Compare the register offset
1150 with REGISTER_BYTE.
1151 * arch-utils.c (generic_register_byte): New function.
1152 * arch-utils.h (generic_register_byte): Declare.
1153 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1154 * gdbarch.h, gdbarch.c: Regenerate.
1155
1156 2002-08-09 Andrew Cagney <cagney@redhat.com>
1157
1158 * regcache.c: Include "gdbcmd.h"
1159 (_initialize_regcache): Add commands "maintenance print
1160 registers", "maintenance print raw-registers" and "maintenance
1161 print cooked-registers".
1162 (enum regcache_dump_what): Define.
1163 (dump_endian_bytes): New function.
1164 (regcache_dump): New function.
1165 (regcache_print): New function.
1166 (maintenance_print_registers): New function.
1167 (maintenance_print_raw_registers): New function.
1168 (maintenance_print_cooked_registers): New function.
1169 * Makefile.in (regcache.o): Update dependencies.
1170
1171 2002-08-09 Michael Snyder <msnyder@redhat.com>
1172
1173 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1174 (mips_push_arguments): Correct some comments. Use paddr_nz
1175 for printing addresses in debug output. Replace static
1176 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1177 (mips_n32n64_push_arguments): New function, cloned from
1178 mips_push_arguments and tuned for the n32/n64 ABI.
1179 (mips_push_register): Buffer needs dynamic allocation.
1180 (mips_print_register): Ditto.
1181 (do_gp_register_row): Ditto.
1182 (mips_store_return_value): Ditto.
1183 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1184
1185 2002-08-09 Don Howard <dhoward@redhat.com>
1186
1187 * memattr.c (mem_info_command): Print special case of upper bound
1188 as max CORE_ADDR + 1.
1189
1190 2002-08-08 Michael Snyder <msnyder@redhat.com>
1191
1192 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1193 returns structs by ref if they're too big to fit in two registers.
1194
1195 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1196
1197 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1198 saved regs value.
1199 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1200 mips_find_saved_regs().
1201 (mips_pop_frame): Likewise.
1202
1203 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1204
1205 * blockframe.c (frame_saved_regs_register_unwind): Revise
1206 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1207 frames are in use.
1208
1209 2002-08-09 Grace Sainsbury <graces@redhat.com>
1210
1211 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1212 T-packets; the 'a' is not taken as a register number.
1213 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1214 (remote_stopped_data_address): New functions; add to target
1215 vector.
1216 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1217 prototypes to match other implementations of this
1218 function. replace integer argument with pointer -- the length
1219 field in the Z-packet is the length of what is pointed to or 1 if
1220 pointer is null. Add to target vector.
1221 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1222 target vector.
1223
1224 From Mark Salter:
1225 * remote.c (remote_wait): Add support to extract optional
1226 watchpoint information from T-packet. Ignore unrecognized
1227 optional info in T-packet.
1228 (remote_async_wait): Ditto.
1229
1230 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1231
1232 * cli/cli-dump.c: Change fopen modes to use binary open modes
1233 as defined in include/fopen-bin.h throughout.
1234
1235 2002-08-08 Michael Snyder <msnyder@redhat.com>
1236
1237 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1238
1239 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1240
1241 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1242 assertion failure by returning early after a warning.
1243
1244 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1245
1246 * mips-tdep.c (mips_find_saved_regs): Make static.
1247 (mips_frame_init_saved_regs): New function.
1248 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1249 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1250 (mips_find_saved_regs): Delete declaration.
1251
1252 2002-08-08 Grace Sainsbury <graces@redhat.com>
1253
1254 * remote.c (remote_wait, remote_async_wait): Change
1255 thread_num from int to ULONGEST.
1256 (unpack_varlen_hex): Change result parameter from
1257 int * to ULONGEST *.
1258
1259 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1260
1261 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1262 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1263 powerpc*-*-*.
1264 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1265
1266 2002-08-08 Andrew Cagney <cagney@redhat.com>
1267
1268 * gcore.c (override_derive_stack_segment): Delete variable.
1269 (preempt_derive_stack_segment): Delete function.
1270 (derive_stack_segment): Delete function.
1271 (default_derive_stack_segment): Renamed to derive_stack_segment.
1272 (override_derive_heap_segment): Delete variable.
1273 (preempt_derive_heap_segment): Delete function.
1274 (derive_heap_segment): Delete function.
1275 (default_derive_heap_segment): Rename to derive_heap_segment.
1276
1277 2002-08-06 Michael Snyder <msnyder@redhat.com>
1278
1279 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1280 * mips-tdep.c (mips_EABI_use_struct_convention,
1281 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1282 New functions. (mips_use_struct_convention): Delete.
1283 (mips_gdbarch_init): set use_gdbarch_convention.
1284
1285 2002-08-06 Michael Snyder <msnyder@redhat.com>
1286
1287 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1288 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1289 mips_o32_reg_struct_has_addr): New functions.
1290 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1291
1292 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1293
1294 * regcache.c (pseudo_register): Delete function.
1295 (fetch_register): Delete function.
1296 (store_register): Delete function.
1297 (regcache_raw_read, legacy_read_register_gen): Use
1298 target_fetch_registers instead of fetch_register.
1299 (legacy_write_register_gen, regcache_raw_write): Use
1300 target_store_register instead of store_register.
1301 (write_register_bytes): Ditto.
1302
1303 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1304 (STORE_PSEUDO_REGISTER): Delete.
1305 * gdbarch.h, gdbarch.c: Regenerate.
1306
1307 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1308
1309 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1310 write dump file binary.
1311
1312 2002-08-05 Michael Snyder <msnyder@redhat.com>
1313
1314 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1315 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1316 (mips_gdbarch_init): Set N32 target to be mips64.
1317
1318 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1319
1320 * frame.c (find_saved_register): Break out of loop once saved
1321 register address is found. Don't mention sparc in loop comment
1322 anymore.
1323
1324 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1325
1326 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1327 mips_default_saved_regsize to 8.
1328
1329 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1330
1331 * gcore.c: Do not include <sys/procfs.h>.
1332 * Makefile.in (gcore.o): Update dependencies.
1333
1334 2002-08-06 Andrew Cagney <cagney@redhat.com>
1335
1336 * configure.tgt: Make arc-*-* obsolete.
1337 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1338 * MAINTAINERS: Make arc-elf obsolete.
1339 * arc-tdep.c: Make file obsolete.
1340 * config/arc/arc.mt: Ditto.
1341 * config/arc/tm-arc.h: Ditto.
1342
1343 2002-08-05 Theodore A. Roth <troth@verinet.com>
1344
1345 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1346
1347 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1348
1349 * mcore-tdep.c (mcore_gdbarch_init): Use
1350 generic_unwind_get_saved_register instead of
1351 generic_get_saved_register.
1352 * v850-tdep.c (v850_gdbarch_init): Ditto.
1353 * frv-tdep.c (frv_gdbarch_init): Ditto.
1354 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1355 * s390-tdep.c (s390_gdbarch_init): Ditto.
1356 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1357 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1358 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1359
1360 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1361
1362 * objfiles.h: Add missing #include "symfile.h"
1363
1364 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1365
1366 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1367
1368 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1369 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1370 of FIELD_BITSIZE.
1371
1372 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1373
1374 * NEWS: Cleanup and nitpick.
1375
1376 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1377
1378 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1379
1380 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1381
1382 * Makefile.in (gdbtk-bp.o): Update dependencies.
1383 (gdbtk-register.o): Ditto.
1384 (gdbtk-varobj.o): Ditto.
1385
1386 2002-08-03 Andrew Cagney <cagney@redhat.com>
1387
1388 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1389 m68hc11_fetch_pseudo_register.
1390 (m68hc11_pseudo_register_write): Replace
1391 m68hc11_store_pseudo_register.
1392 (m68hc11_gdbarch_init): Update.
1393
1394 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1395
1396 * gdbarch.sh: Include "gdb_string.h".
1397 * gdbarch.c: Regenerate.
1398
1399 * regcache.c: Include "gdb_string.h".
1400 * ax-general.c: Ditto.
1401 * varobj.c: Ditto.
1402 * std-regs.c: Ditto.
1403 * fbsd-proc.c: Ditto.
1404 * thread.c: Ditto.
1405
1406 * Makefile.in (regcache.o): Update dependencies.
1407 (thread.o, gdbarch.o): Ditto.
1408 (ax-general.o, gdbarch.o): Ditto.
1409 (varobj.o, std-regs.o): Ditto.
1410 (fbsd-proc.o): Specify dependencies.
1411
1412 2002-08-02 Andrew Cagney <cagney@redhat.com>
1413
1414 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1415 regnum.
1416 (regcache_cooked_write): Ditto.
1417
1418 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1419
1420 * regcache.c (regcache_cooked_read): New function.
1421 (regcache_cooked_write): New function.
1422 (read_register_gen): Rewrite using regcache_cooked_read.
1423 (write_register_gen): Rewrite using regcache_cooked_write.
1424
1425 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1426 Declare.
1427
1428 2002-08-02 Andrew Cagney <cagney@redhat.com>
1429
1430 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1431 Replace the architecture methods register_read and register_write.
1432 * gdbarch.h, gdbarch.c: Regenerate.
1433 * regcache.c (init_regcache_descr): Update.
1434 (read_register_gen): Update.
1435 (write_register_gen): Update.
1436 (supply_register): Update comment.
1437
1438 * sh-tdep.c (sh_gdbarch_init): Update.
1439 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1440 `regcache' and `gdbarch' parameters. Make `buffer' a void
1441 pointer. Update code.
1442 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1443 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1444 void pointer. Update code.
1445 (sh64_register_write): Delete.
1446 (sh4_register_read): Delete.
1447 (sh64_register_read): Delete.
1448 (sh4_register_write): Delete.
1449 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1450 void pointer, `to' parameter a void pointer.
1451 (sh_sh64_register_convert_to_raw): Ditto.
1452
1453 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1454
1455 * mips-tdep.c (mips_register_virtual_type): Use architecture
1456 invariant return values.
1457
1458 2002-08-01 Andrew Cagney <cagney@redhat.com>
1459
1460 * linux-proc.c: Include "gdb_string.h".
1461 * Makefile.in (linux-proc.o): Update dependency list.
1462
1463 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1464
1465 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1466 comment.
1467
1468 2002-08-01 Grace Sainsbury <graces@redhat.com>
1469
1470 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1471 to_insert_watchpoint, to_remove_watchpoint,
1472 to_stopped_by_watchpoint, to_stopped_data_address,
1473 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1474 target vecctor. Define their corresponding macros so they call
1475 them.
1476
1477 * target.c: Add default and debug versions of for
1478 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1479 to_insert_watchpoint, to_remove_watchpoint,
1480 to_stopped_by_watchpoint, to_stopped_data_address,
1481 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1482
1483 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1484
1485 * mips-tdep.c (mips_register_virtual_type): New function.
1486 (mips_gdbarch_init): Register mips_register_virtual_type()
1487 with gdbarch machinery.
1488 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1489 this file instead of tm-bigmips.h.
1490 (MIPS_REGSIZE): Delete this macro.
1491 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1492 multiarch version in mips-tdep.c will be found.
1493
1494 2002-08-01 Andrew Cagney <cagney@redhat.com>
1495
1496 * NEWS: Menion that CHILL has been made obsolete.
1497
1498 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1499 * stabsread.c (read_range_type): Ditto.
1500 * gdbtypes.h: Ditto.
1501 * language.c (binop_type_check): Ditto.
1502 (binop_result_type): Ditto.
1503 (integral_type): Ditto.
1504 (character_type): Ditto.
1505 (string_type): Ditto.
1506 (boolean_type): Ditto.
1507 (structured_type): Ditto.
1508 (lang_bool_type): Ditto.
1509 (binop_type_check): Ditto.
1510 * language.h (_LANG_chill): Ditto.
1511 * dwarfread.c (set_cu_language): Ditto.
1512 * dwarfread.c (CHILL_PRODUCER): Ditto.
1513 * dwarfread.c (handle_producer): Ditto.
1514 * expression.h (enum exp_opcode): Ditto.
1515 * eval.c: Ditto for comments.
1516 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1517 * expprint.c (print_subexp): Ditto.
1518 (print_subexp): Ditto.
1519 * valops.c (value_cast): Ditto.
1520 (search_struct_field): Ditto.
1521 * value.h (COERCE_VARYING_ARRAY): Ditto.
1522 * symfile.c (init_filename_language_table): Ditto.
1523 (add_psymbol_with_dem_name_to_list): Ditto.
1524 * valarith.c (value_binop): Ditto.
1525 (value_neg): Ditto.
1526 * valops.c (value_slice): Ditto.
1527 * symtab.h (union language_specific): Ditto.
1528 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1529 (SYMBOL_DEMANGLED_NAME): Ditto.
1530 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1531 * defs.h (enum language): Ditto.
1532 * symtab.c (got_symtab): Ditto.
1533 * utils.c (fprintf_symbol_filtered): Ditto.
1534
1535 * ch-typeprint.c: Make file obsolete.
1536 * ch-valprint.c: Make file obsolete.
1537 * ch-lang.h: Make file obsolete.
1538 * ch-exp.c: Make file obsolete.
1539 * ch-lang.c: Make file obsolete.
1540
1541 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1542 CHILL_LIB.
1543 (TARGET_FLAGS_TO_PASS): Ditto.
1544 (CHILLFLAGS): Obsolete.
1545 (CHILL): Obsolete.
1546 (CHILL_FOR_TARGET): Obsolete.
1547 (CHILL_LIB): Obsolete.
1548 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1549 ch-valprint.c.
1550 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1551 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1552 ch-lang.o.
1553 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1554 targets.
1555
1556 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1557
1558 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1559 This does not change anything at the moment, but will be helpful
1560 later when full Ada support is integrated.
1561
1562 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1563
1564 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1565 help message.
1566
1567 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1568
1569 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1570 and save it in a local variable. Use variable in later test.
1571
1572 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1573
1574 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1575 test. (Thanks to Daniel Jacobowitz.)
1576
1577 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1578
1579 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1580 (mips_abi_strings): Add "n64".
1581 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1582
1583 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1584
1585 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1586 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1587
1588 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1589
1590 * utils.c (host_pointer_to_address, address_to_host_pointer):
1591 Use gdb_assert() instead of explicit call to internal_error().
1592
1593 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1594
1595 * Makefile.in (rs6000-nat.o): Update dependencies.
1596
1597 From Nicholas Duffek:
1598 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1599 (aix-thread.o): New rule.
1600 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1601 * config/powerpc/aix432.mh: New file.
1602
1603 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1604
1605 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1606 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1607 (fetch_core_registers, ppc_linux_supply_gregset)
1608 (ppc_linux_supply_fpregset): New functions.
1609 (ppc_linux_regset_core_fns): New.
1610 (_initialize_ppc_linux_tdep): Call add_core_fns.
1611 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1612 and ppc_linux_supply_gregset.
1613 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1614 (supply_fpregset): Call ppc_linux_supply_fpregset.
1615 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1616 corelow.o.
1617 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1618
1619 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1620
1621 * symtab.c (lookup_symbol): Demangle before lowercasing.
1622
1623 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1624
1625 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1626 declaration.
1627 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1628 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1629 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1630 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1631 "gdb_string.h".
1632 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1633 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1634 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1635 (avr-tdep.o, mon960-rom.o): Ditto.
1636 (aout_stabs_gnu_h): Define.
1637 (symtab_h): Remove $(gdb_obstack_h).
1638
1639 2002-07-30 Jim Blandy <jimb@redhat.com>
1640
1641 Patch from David Carlton <carlton@math.stanford.edu>:
1642 * gdbinit.in: Move the `dir' commands that add GDB's own source
1643 directory to the search path to the end, so that the `gdb' source
1644 directory will be searched first.
1645
1646 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1647
1648 * gdb_obstack.h: New file.
1649 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1650 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1651 * objfiles.h: Include "gdb_obstack.h".
1652 * Makefile.in (gdb_obstack_h): Define.
1653 (symtab_h): Add $(gdb_obstack_h).
1654 (objfiles_h): Add $(gdb_obstack_h).
1655
1656 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1657 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1658 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1659 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1660 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1661 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1662 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1663 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1664
1665 * Makefile.in (bcache.o): Update dependencies.
1666 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1667 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1668 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1669 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1670 (stabsread.o, symfile.o, symmisc.o): Ditto.
1671 (symtab.o, typeprint.o, macroexp.o): Ditto.
1672 (macrotab.o, mdebugread.o): Ditto.
1673 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1674 (coff_ecoff_h, aout_aout64_h): Define.
1675 (aout_stabs_gnu_h, libaout_h): Define.
1676
1677 2002-07-29 Andrew Cagney <cagney@redhat.com>
1678
1679 * regcache.c (struct regcache_descr): Rename nr_registers to
1680 nr_cooked_registers. Revise comments describing the structure
1681 member fields.
1682 (init_regcache_descr): Update.
1683 (init_legacy_regcache_descr): Update.
1684 (read_register_gen, write_register_gen): When a cooked register in
1685 the raw register range, directly access the value from the raw
1686 register cache.
1687
1688 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1689
1690 * z8k-tdep.c: Do not include "obstack.h".
1691 * h8300-tdep.c, h8500-tdep.c: Ditto.
1692 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1693 * valprint.c, v850-tdep.c: Ditto.
1694 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1695 * mn10200-tdep.c: Ditto.
1696
1697 * Makefile.in (z8k-tdep.o): Update dependencies.
1698 (m68hc11-tdep.o, valprint.o): Ditto.
1699 (v850-tdep.o, d10v-tdep.o): Ditto.
1700 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1701 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1702 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1703 (sh_opc_h, gdb_sim_sh_h): Define.
1704 (elf_sh_h, elf_bfd_h): Define.
1705 (opcode_m68hc11_h): Define.
1706 (OPCODES_SRC, OPCODES_DIR): define.
1707 (OPCODES): Use $(OPCODES_DIR).
1708 (gdb_sim_d10v_h): Rename sim_d10v_h.
1709 (gdb_sim_arm_h): Rename sim_arm_h.
1710
1711 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1712
1713 * utils.c (host_pointer_to_address, address_to_host_pointer):
1714 Change internal_error() message to indicate function responsible
1715 for the error.
1716
1717 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1718
1719 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1720 calls to local_hex_string_custom().
1721
1722 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1723
1724 * irix5-nat.c: Move IRIX shared library support from here...
1725 * solib-irix.c: ...to here. Revised substantially to work with
1726 generic solib framework.
1727
1728 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1729 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1730 * mips-irix-tdep.c: New file.
1731
1732 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1733 (mips-irix-tdep.o, solib-irix.o): New rules.
1734 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1735 solib-irix.o.
1736 * config/mips/irix6.mt (TDEPFILES): Likewise.
1737 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1738
1739 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1740
1741 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1742 disabled (via ``#if 0'') includes.
1743
1744 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1745
1746 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1747 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1748 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1749 Add support for the fpscr register.
1750 * rs6000-nat.c (regmap, fetch_inferior_registers)
1751 (store_inferior_registers, fetch_core_registers): Likewise.
1752
1753 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1754
1755 * rs6000-nat.c (language.h): Include.
1756 (special_regs): Delete this array.
1757 (regmap): New function.
1758 (fetch_register, store_register): Use regmap() to map gdb
1759 register numbers to ptrace register numbers. Also, use
1760 outputs from regmap() to make decisions regarding type of
1761 ptrace() call to make. In particular, don't compare against
1762 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1763 (fetch_inferior_registers, store_inferior_registers): Where
1764 possible, obtain register numbers from tdep struct. Don't
1765 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1766 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1767 (LAST_UISA_SP_REGNUM): Delete.
1768
1769 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1770
1771 * rs6000-nat.c (ppc-tdep.h): Include.
1772 (fetch_registers, store_register, fetch_core_registers): Don't
1773 access registers[] directly. Instead, use supply_register() or
1774 regcache_collect() as appropriate.
1775 (find_toc_address): Format hex address with local_hex_string().
1776
1777 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1778
1779 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1780 bfd/elf32-frv.c.
1781
1782 2002-07-24 Tom Tromey <tromey@redhat.com>
1783
1784 * jv-exp.y: Marked all strings with _().
1785 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1786 internal_error.
1787 (MethodInvocation, CastExpression, parse_number, yyerror,
1788 java_type_from_name, push_expression_name, yylex): Typo fixes.
1789
1790 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1791
1792 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1793 (tee_file_flush, tee_file_write, tee_file_fputs)
1794 (tee_file_isatty): New.
1795 * ui-file.h (tee_file_new): Add prototype.
1796
1797 2002-07-24 Aidan Skinner <aidan@velvet.net>
1798
1799 * ada-lang.c: Change k&r style function definitions to prototyped
1800 form.
1801 * ada-typeprint.c: Change k&r style function definitions to prototyped
1802 form.
1803 * ada-valprint.c: Change k&r style function definitions to prototyped
1804 form.
1805
1806 2002-07-24 Andrew Cagney <cagney@redhat.com>
1807
1808 * README: Remove reference to remote-bug.
1809 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1810 remote-bug.c.
1811 (m88k-nat.o): Delete rule.
1812 (m88k-tdep.o): Delete rule.
1813 (remote-bug.o): Delete rule.
1814 * MAINTAINERS: Mark as obsolete.
1815 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1816 * m88k-tdep.c: Make file obsolete.
1817 * config/m88k/m88k.mh: Ditto.
1818 * config/m88k/delta88v4.mh: Ditto.
1819 * config/m88k/delta88v4.mt: Ditto.
1820 * config/m88k/delta88.mt: Ditto.
1821 * config/m88k/delta88.mh: Ditto.
1822 * remote-bug.c: Ditto.
1823 * config/m88k/tm-delta88.h: Ditto.
1824 * config/m88k/nm-delta88v4.h: Ditto.
1825 * config/m88k/xm-delta88.h: Ditto.
1826 * config/m88k/xm-dgux.h: Ditto.
1827 * config/m88k/tm-m88k.h: Ditto.
1828 * config/m88k/nm-m88k.h: Ditto.
1829 * config/m88k/tm-delta88v4.h: Ditto.
1830 * m88k-nat.c: Ditto.
1831 * cxux-nat.c: Ditto.
1832 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1833 and m88*-*-* obsolete.
1834 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1835 m88*-*-* obsolete.
1836
1837 2002-07-24 Andrew Cagney <cagney@redhat.com>
1838
1839 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1840 constant. Same for local pointer variables.
1841 (extract_signed_integer): Ditto.
1842 * defs.h (extract_unsigned_integer): Update.
1843 (extract_signed_integer): Update.
1844
1845 2002-07-24 Andrew Cagney <cagney@redhat.com>
1846
1847 * regcache.c (regcache_raw_write): Change buf parameter to a
1848 constant void pointer.
1849 (regcache_raw_read): Change buf parameter to a void pointer.
1850 (legacy_write_register_gen): Change myaddr parameter a constant
1851 void pointer.
1852 (supply_register): Change val parameter to a const void pointer.
1853 * regcache.h (regcache_raw_write): Update declaration.
1854 (regcache_raw_read): Update declaration.
1855 (supply_register): Update declaration.
1856
1857 2002-07-24 Tom Tromey <tromey@redhat.com>
1858
1859 * defs.h (gdb_readline_wrapper): Declare.
1860 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1861 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1862 * top.c (gdb_readline_wrapper): New function.
1863 (command_line_input): Use it.
1864
1865 2002-07-24 Andrew Cagney <cagney@redhat.com>
1866
1867 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1868 regcache_read and regcache_write.
1869 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1870 * regcache.c: Update.
1871 * sh-tdep.c (sh64_push_arguments): Update comment.
1872 (sh_pseudo_register_read): Update.
1873 (sh_pseudo_register_write): Update.
1874 (sh4_register_read): Update.
1875 (sh4_register_write): Update.
1876 (sh64_pseudo_register_read): Update.
1877 (sh64_pseudo_register_write): Update.
1878 (sh64_register_read): Update.
1879 (sh64_register_write): Update.
1880 * i386-tdep.c (i386_extract_return_value): Update.
1881 (i386_extract_struct_value_address): Update.
1882 (i386_extract_return_value): Update.
1883 * blockframe.c (generic_read_register_dummy): Update.
1884 (generic_call_dummy_register_unwind): Update
1885 * infrun.c (write_inferior_status_register): Update.
1886
1887 2002-07-23 Jim Blandy <jimb@redhat.com>
1888
1889 * parser-defs.h (expression_context_pc): Make this extern.
1890 (Thanks to Michael Snyder.)
1891
1892 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1893
1894 GDB 5.2.1 released from 5.2 branch.
1895 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1896 * README: Update to mention 5.2.1.
1897
1898 2002-07-23 Mark Salter <msalter@redhat.com>
1899
1900 * remote.c (remote_read_bytes): Fix check for error.
1901
1902 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1903
1904 * aix-thread.c (language.h): Include.
1905 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1906 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1907 Print newlines at end of debug messages.
1908 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1909 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1910
1911 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1912
1913 * aix-thread.c (ppc-tdep.h): Include.
1914 (special_register_p): New function.
1915 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1916 (store_regs_user_thread): Use register number information from
1917 gdbarch_tdep struct instead of hardcoded offsets relative to
1918 FIRST_UISA_SP_REGNUM.
1919 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1920 special_register_p() instead of using FPLAST_REGNUM and
1921 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1922 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1923 will be MQ's register number.
1924
1925 2002-07-22 Michael Snyder <msnyder@redhat.com>
1926
1927 * aix-thread.c (ops): Rename to aix_thread_ops.
1928 (base_ops): Rename to base_target.
1929 (ops_attach): Rename to aix_thread_attach.
1930 (ops_detach): Rename to aix_thread_detach.
1931 (ops_resume): Rename to aix_thread_detach.
1932 (ops_wait): Rename to aix_thread_wait.
1933 (ops_kill): Rename to aix_thread_kill.
1934 (init_ops): Rename to init_aix_thread_ops.
1935 (ops_fetch_register): Rename to aix_thread_fetch_register.
1936 (ops_store_register): Rename to aix_thread_store_register.
1937 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1938 (ops_thread_alive): Rename to aix_thread_thread_alive.
1939 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1940 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1941 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1942 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1943 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1944 (store_regs_lib): Rename to store_regs_user_thread.
1945 (store_regs_kern): Rename to store_regs_kernel_thread.
1946
1947 2002-07-22 Michael Snyder <msnyder@redhat.com>
1948
1949 * aix-thread.c (ops_prepare_to_store): Eliminate.
1950 (init_ops): Don't initialize ops.prepare_to_store.
1951 (store_regs_kern): Pre-fetch register buffers from child,
1952 because some registers may not be in the cache. Copy
1953 regs from register cache only if they are cached.
1954 (store_regs_lib): Copy regs from register cache only
1955 if they are cached.
1956 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1957 fill_gprs64): Ditto.
1958
1959 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1960
1961 * aix-thread.c (gdb_assert.h): Include.
1962 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1963 register sizes (from register cache) match size of buffer holding
1964 register data.
1965 (fill_sprs32): Change parameter types to match those in the ptrace()
1966 buffer.
1967 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1968 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1969
1970 2002-07-22 Michael Snyder <msnyder@redhat.com>
1971
1972 * aix-thread.c (supply_sprs64): Cosmetic change.
1973 (supply_sprs32): Cosmetic change.
1974 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1975 (fill_sprs64): Use regcache_collect instead of read_register.
1976 (store_regs_lib): Use regcache_collect instead of
1977 read_register. Use fill_sprs32 instead of fill_sprs64,
1978 if debugging a 32-bit architecture.
1979 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1980 out of the register cache, instead of passing a pointer into
1981 the register cache directly to ptrace. Use regcache_collect
1982 insteaad of read_register.
1983 (ops_prepare_to_store): Use target_read_registers instead
1984 of read_register_bytes.
1985
1986 2002-07-20 Aidan Skinner <aidan@velvet.net>
1987
1988 * MAINTAINERS: Add self under write after approval.
1989
1990 2002-07-20 Aidan Skinner <aidan@velvet.net>
1991
1992 * ada-tasks.c: Change k&r style function definitions to prototyped
1993 form.
1994
1995 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1996
1997 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1998 * x86-64-tdep.c: Include "objfiles.h".
1999 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2000 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2001
2002 2002-07-17 Michal Ludvig <michal@suse.cz>
2003
2004 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2005 (update_context): Initialise cfa variable.
2006
2007 2002-07-17 Michael Snyder <msnyder@redhat.com>
2008
2009 * aix-thread.c: Shorten some long lines.
2010 Bring comments into line with code spec.
2011
2012 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2013
2014 * infrun.c: Re-indent using gdb_indent.sh.
2015
2016 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2017
2018 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2019 Leave the indentation temporarily untouched, to minimize the diffs.
2020
2021 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2022
2023 * stabsread.c: Make os9k sections of the code obsolete,
2024 for real this time.
2025 * stabsread.h: Make os9k sections of the code obsolete.
2026
2027 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2028
2029 * linux-low.c (regsets_store_inferior_registers): Add free()
2030 at the end of a loop to prevent memory leak.
2031 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2032 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2033 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2034 line a comment.
2035 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2036
2037 2002-07-17 Jim Blandy <jimb@redhat.com>
2038
2039 * macrocmd.c (info_macro_command): Remove newline from error
2040 message.
2041
2042 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2043
2044 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2045 (sh_gdbarch_init): Use it for sh-dsp.
2046
2047 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2048
2049 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2050 64-bit DWARF2 format.
2051
2052 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2053
2054 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2055 <sys/proc.h> when not available.
2056
2057 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2058
2059 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2060 * stabsread.c: Make os9k sections of the code obsolete.
2061 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2062 * config/i386/i386os9k.mt: Make file obsolete.
2063 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2064 (COMMON_OBS): Remove os9kread.o
2065 (SFILES): Remove os9kread.c.
2066 (os9kread.o, remote-os9k.o): Make target obsolete.
2067 * remote-os9k.c: Make file obsolete.
2068 * os9kread.c: Make file obsolete.
2069 * Makefile.in
2070
2071 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2072
2073 * NEWS: Mention that the FR30 has been made obsolete.
2074 * fr30-tdep.c: Make file obsolete.
2075 * config/fr30/tm-fr30.h: Ditto.
2076 * config/fr30/fr30.mt: Ditto.
2077 * configure.tgt: Make fr30-*-elf obsolete.
2078 * MAINTAINERS: Make fr30-elf obsolete.
2079
2080 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2081
2082 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2083 found is not inside a section.
2084
2085 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2086
2087 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2088 strerror().
2089 (pdc_realloc): Use xrealloc() instead of realloc().
2090
2091 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2092
2093 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2094 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2095 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2096 macros.
2097
2098 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2099
2100 * aix-thread.c (ptrace_check): Eliminate goto.
2101 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2102 problem.
2103
2104 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2105
2106 * aix-thread.c (gdbcmd.h): Include.
2107 (DEBUG, DBG, DBG2, dbg): Eliminate.
2108 (debug_aix_thread): New static global.
2109 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2110 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2111 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2112 invocations to DBG and DBG2 macros to test against
2113 ``debug_aix_thread'' and call fprintf_unfiltered().
2114 (_initialize_aix_thread): Add new command "set debug aix-thread".
2115
2116 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2117
2118 From Gerhard Tonn <TON@de.ibm.com>:
2119 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2120 instead of supply_register.
2121
2122 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2123
2124 * dwarf2cfi.c: Include "gdb_assert.h".
2125 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2126 non-NULL.
2127 (update_context): Do not use __func__. Add missing ``break''.
2128 (update_context): Do not use __func__.
2129
2130 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2131
2132 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2133 and its setting. Set gdbarch instruction printing functions
2134 directly. For non-rs6000 case use new function
2135 gdb_print_insn_powerpc.
2136 (gdb_print_insn_powerpc): New function.
2137
2138 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2139
2140 * NEWS: Mention that the d30v has been marked obsolete.
2141 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2142 * configure.tgt: Mark d30v-*-* as obsolete.
2143 * d30v-tdep.c: Mark file as obsolete.
2144 * config/d30v/d30v.mt: Ditto.
2145 * config/d30v/tm-d30v.h: Ditto.
2146
2147 2002-07-13 Aidan Skinner <aidan@velvet.net>
2148
2149 * ada-tasks.c (add_task_entry): replace calls to
2150 malloc() with xmalloc
2151 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2152
2153 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2154 ada_finish_decode_line_1, all_sals_for_line
2155 ada_breakpoint_rewrite): replace calls to free() with xfree()
2156
2157 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2158
2159 From Nicholas Duffek (with minor changes by Martin Hunt,
2160 Louis Hamilton, and Kevin Buettner):
2161 * aix-thread.c: New file.
2162
2163 2002-07-12 Petr Sorfa <petrs@caldera.com>
2164
2165 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2166 complaint for invalid attribute class or form.
2167 (read_func_scope): DW_AT_frame_base
2168 better handling of DW_AT_block*.
2169 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2170 better handling of DW_AT_block*.
2171 (read_common_block): DW_AT_location
2172 better handling of DW_AT_block*.
2173 (read_partial_die): DW_AT_location better handling
2174 of DW_AT_block*.
2175 (new_symbol): DW_AT_external better handling of
2176 DW_AT_block*. Proper initialization of variable
2177 "addr".
2178 (attr_form_is_block): New function that returns true
2179 if the attribute's form is of DW_FORM_block*.
2180
2181 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2182
2183 * valops.c (find_method_list): Remove comment about
2184 removed STATIC_MEMFUNCP argument.
2185 (value_find_oload_method_list): Likewise.
2186
2187 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2188
2189 From Nicholas Duffek:
2190 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2191 target_new_objfile_hook.
2192
2193 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2194
2195 From Nicholas Duffek:
2196 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2197 csect.
2198
2199 2002-07-12 Andrew Cagney <cagney@redhat.com>
2200
2201 * MAINTAINERS: Mention --enable-sim-build-warnings.
2202 (m68hc11-elf): Disable sim build warnings.
2203 (m32r-elf): Mark as broken obsolete candidate.
2204 (x86_64-linux-gnu): Mark as buildable with -Werror.
2205 (arm-elf): Change -w to ``,'' which enables warnings but not
2206 -Werror.
2207
2208 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2209
2210 * bcache.h: Update copyright.
2211 (struct bstring, struct bcache): Move definition to "bcache.c".
2212 Replaced by opaque declaration.
2213 (bcache_xfree): Replace free_bcache.
2214 (bcache_xmalloc, bcache_memory_used): Declare.
2215
2216 * bcache.c: Update copyright.
2217 (struct bstring, struct bcache): Moved to here from "bcache.h".
2218 Update comments.
2219 (bcache_xmalloc, bcache_memory_used): New functions.
2220 (bcache_xfree): Replace function free_bcache.
2221
2222 * Makefile.in (objfiles.o): Add $(bcache_h).
2223 (objfiles_h): Remove $(bcache_h).
2224 (symfile.o): Add $(bcache_h).
2225
2226 * symmisc.c: Update copyright.
2227 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2228 (print_objfile_statistics): Use bcache_memory_used.
2229
2230 * symfile.c: Include "bcache.h".
2231 (reread_symbols): Use bcache_xfree.
2232 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2233 (add_psymbol_to_list): Pass psymbol_cache by value.
2234 (add_psymbol_with_dem_name_to_list): Ditto.
2235
2236 * objfiles.h: Update copyright.
2237 (struct bcache): Declare opaque. Do not include "bcache.h".
2238 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2239 bcache'' pointers.
2240 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2241
2242 * objfiles.c: Include "bcache.h". Update copyright.
2243 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2244 macro_cache.
2245 (free_objfile): Use bcache_xfree.
2246
2247 2002-07-11 Grace Sainsbury <graces@redhat.com>
2248
2249 * monitor.c (monitor_fetch_register): Make name a constant.
2250 (monitor_store_register): Same.
2251
2252 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2253
2254 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2255 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2256 (finish_block) For non-function blocks, hash the symbol table. For
2257 function blocks, mark the symbol table as unhashed.
2258 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2259 (msymbol_hash_iw): Likewise.
2260 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2261 value.
2262 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2263 (lookup_minimal_symbol): Likewise for both.
2264 * symtab.h (struct block): Add `hashtable' flag. Comment the
2265 hashtable.
2266 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2267 (ALL_BLOCK_SYMBOLS): Update.
2268 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2269 (struct symbol): Add `hash_next' pointer.
2270 * symtab.c (lookup_block_symbol): Search using the hash table when
2271 possible.
2272 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2273 (search_symbols, find_addr_symbol): Likewise.
2274
2275 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2276 (read_dst_symtab): Likewise.
2277 * jv-lang.c (get_java_class_symtab): Likewise.
2278 * mdebugread.c: Include "gdb_assert.h".
2279 (shrink_block): Assert that the block being modified is not hashed.
2280 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2281 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2282 symbols.
2283 (dump_symtab): Recognize hashed blocks.
2284 * printcmd.c (print_frame_args): Assert that function blocks do not
2285 have hashed symbol tables.
2286 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2287 (fill_in_ada_prototype, debug_print_block): Likewise.
2288 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2289
2290 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2291
2292 * stack.c (print_frame): Use result of frame_address_in_block()
2293 instead of fi->pc when evaluating symbols.
2294 (backtrace_command_1): Ditto.
2295
2296 2002-07-11 Andrew Cagney <cagney@redhat.com>
2297
2298 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2299 Make static.
2300
2301 * arm-tdep.c (arm_register_name): Make return type constant.
2302
2303 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2304
2305 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2306 prototype.
2307 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2308 * s390-tdep.c (s390_fp_regnum): Ditto.
2309 (s390_read_fp): Ditto.
2310 (s390_pop_frame): Ditto.
2311 (_initialize_s390_tdep): Ditto.
2312 * remote.c (get_remote_state): Ditto.
2313 * procfs.c (mappingflags): Ditto.
2314 * memattr.c (_initialize_mem): Ditto.
2315 * mcore-tdep.c (mcore_pop_frame): Ditto.
2316 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2317 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2318 * language.c (set_case_str): Ditto.
2319 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2320 * frv-tdep.c (new_variant): Ditto.
2321 (frv_stopped_data_address): Ditto.
2322 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2323 (context_alloc): Ditto.
2324 (frame_state_alloc): Ditto.
2325 (unwind_tmp_obstack_init): Ditto.
2326 (unwind_tmp_obstack_free): Ditto.
2327 (cfi_read_fp): Ditto.
2328 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2329 (cris_pop_frame): Ditto.
2330 * c-lang.c (scanning_macro_expansion): Ditto.
2331 (finished_macro_expansion): Ditto.
2332 (c_preprocess_and_parse): Ditto.
2333 * gdbarch.sh: Ditto.
2334 * gdbarch.h, gdbarch.c: Regenerate.
2335 * config/mn10200/tm-mn10200.h: Adjust indentation.
2336 * target.c: Adjust indentation.
2337 * symtab.h: Adjust indentation.
2338 * stabsread.h: Adjust indentation.
2339 * remote-es.c: Adjust indentation.
2340 * os9kread.c: Adjust indentation.
2341
2342 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2343
2344 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2345 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2346
2347 2002-07-10 Grace Sainsbury <graces@redhat.com>
2348
2349 * NEWS: Mention m68k, mcore multi-arching.
2350 * MAINTAINERS: Change status of m68k, mcore to reflect
2351 multi-arching.
2352
2353 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2354
2355 * valops.c (find_overload_match): Free oload_syms.
2356
2357 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2358
2359 Define HAVE_SYS_PROC_H if sys/proc.h exists
2360 * configure.in: Add check for sys/proc.h
2361 * config.in: Regenerate.
2362 * configure: Regenerate.
2363
2364 2002-07-09 Grace Sainsbury <graces@redhat.com>
2365
2366 * config/m68k/tm-m68k.h: Remove macros wrapped in
2367 #if !GDB_MULTI_ARCH.
2368
2369 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2370
2371 * config.in, configure: Regenerate.
2372
2373 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2374
2375 * dwarf2cfi.c: Include "gcore.h".
2376 (execute_stack_op): Fix implementation of the
2377 DW_OP_deref and DW_OP_deref_size operators by letting do their
2378 lookup in the target.
2379
2380 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2381
2382 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2383 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2384 tdep->sc_sp_offset.
2385
2386 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2387
2388 Fix PR gdb/595, gdb/602
2389 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2390 Don't call value_cast, just read the vtable pointer; update comments
2391 to match.
2392
2393 2002-07-05 Grace Sainsbury <graces@redhat.com>
2394
2395 * config/mcore/tm-mcore.h: Remove file.
2396 * config/mcore/mcore.mt: Remove definition of TM_FILE
2397 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2398
2399 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2400
2401 * i386bsd-tdep.c: Include "gdb_string.h".
2402
2403 2002-07-04 Grace Sainsbury <graces@redhat.com>
2404
2405 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2406 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2407 mcore-tdep.
2408 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2409 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2410 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2411 (RETVAL_REGNUM): Move macros from tm-mcore.h
2412 (mcore_reg_struct_has_addr): New function.
2413 (mcore_gdbarch_init): Added initializations for the macros removed
2414 from tm-mcore.h.
2415
2416 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2417
2418 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2419 traditonal string branding within the ELF header.
2420
2421 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2422
2423 * symtab.c (remove_params): New function.
2424 (make_symbol_overload_list): Use it instead of cplus_demangle.
2425 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2426
2427 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2428
2429 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2430
2431 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2432 New variables.
2433 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2434 and tdep->sigtramp_end.
2435 * i386obsd-nat.c: New file.
2436 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2437
2438 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2439 Don't call get_current_frame().
2440
2441 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2442
2443 * i386-nat.c (child_post_startup_inferior): New function
2444 calling i386_cleanup_dregs if
2445 I386_USE_GENERIC_WATCHPOINTS is defined.
2446 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2447 conditional to acknowledge that i386-nat.c has its
2448 own child_post_startup_inferior function.
2449
2450 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2451
2452 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2453 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2454 instead of MAX_REGISTER_RAW_SIZE.
2455 (i386_extract_return_value, i386_extract_struct_value_address):
2456 Convert to use regcache.
2457 (i386_gdbarch_init): Set max_register_raw_size and
2458 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2459 Set extract_return_value and extract_struct_value_address instead
2460 of their deprecated variants.
2461
2462 Convert i386 target to generic dummy frames.
2463 * i386-tdep.c: Include "symfile.h".
2464 (i386_frameless_signal_p): Consider a function to be frameless if
2465 the pc points at the first instruction of the function.
2466 (i386_frame_chain): Handle (generic) call dummies.
2467 (i386_frame_saved_pc): Likewise.
2468 (i386_frame_init_saved_regs): Remove code dealing with call
2469 dummies on the stack.
2470 (i386_push_dummy_frame): Removed.
2471 (i386_call_dummy_words): Removed.
2472 (i386_fix_call_dummy): Removed.
2473 (i386_push_return_address): New function.
2474 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2475 parameter, and don't call get_current_frame.
2476 (i386_pop_frame): New function.
2477 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2478 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2479 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2480 call_dummy_length to 0, set call_dummy_words to NULL, set
2481 sizeof_call_dummy_words to 0, set fix_call_dummy to
2482 generic_fix_call_dummy, set pc_in_call_dummy to
2483 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2484 generic_push_dummy_frame, set push_return_address to
2485 i386_push_return_address and set frame_chain_valid to
2486 generic_file_frame_chain_valid.
2487
2488 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2489
2490 * gdbarch.sh (struct regcache): Add opaque declaration.
2491 (EXTRACT_RETURN_VALUE): New architecture method.
2492 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2493 * gdbarch.h, gdbarch.c: Regenerate.
2494 * arch-utils.c (legacy_extract_return_value): New function.
2495 * arch-utils.h (legacy_extract_return_value): Declare.
2496 * values.c (value_being_returned): Re-enable code handling
2497 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2498 deprecated_grub_regcache_for_registers call to block handling
2499 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2500 (EXTRACT_RETURN_VALUE): Do not define.
2501
2502 2002-07-03 Grace Sainsbury <graces@redhat.com>
2503
2504 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2505 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2506 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2507 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2508 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2509 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2510 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2511 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2512 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2513 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2514 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2515 argument so the function fits the prototype in the architecture
2516 vector.
2517 (mcore_pop_frame): Remove argument so the function fits the
2518 prototype. Use get_current_frame instead of the argument.
2519 (mcore_push_arguments): Change type of struct_return so the
2520 function can be used in the architecture vector.
2521 (mcore_store_struct_return): Add.
2522 (mcore_frame_init_saved_regs): Add.
2523 (mcore_gdbarch_init): Add function calls to replace the macros
2524 removed from tm-mcore.h
2525
2526 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2527
2528 * infcmd.c (print_return_value): Remove compatibility code calling
2529 deprecated_grub_regcache_for_registers.
2530
2531 * values.c: Include "regcache.h".
2532 (value_being_returned): Update. Use
2533 deprecated_grub_regcache_for_registers to extract the register
2534 buffer address.
2535 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2536 ``struct regcache''.
2537 * Makefile.in (values.o): Add dependency on $(regcache_h).
2538
2539 * inferior.h (run_stack_dummy): Change type of second parameter to
2540 a ``struct regcache''.
2541 * valops.c (hand_function_call): Change type of retbuf to ``struct
2542 regcache''. Allocate using regcache_xmalloc, clean using
2543 make_cleanup_regcache_xfree.
2544 * infcmd.c (run_stack_dummy): Update. Use
2545 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2546
2547 * regcache.c (do_regcache_xfree): New function.
2548 (make_cleanup_regcache_xfree): New function.
2549 * regcache.h (make_cleanup_regcache_xfree): Declare.
2550
2551 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2552
2553 * event-top.c (command_line_handler): Don't read past
2554 beginning of buffer.
2555
2556 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2557
2558 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2559 struct frame_id.
2560 (varobj_create): Store frame_id for root.
2561 (varobj_gen_name): Use xasprintf.
2562 (varobj_update): Save and restore frame using get_frame_id() and
2563 frame_find_by_id().
2564 (create_child): Use xasprintf.
2565 (new_root_variable): Initialize frame_id.
2566 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2567 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2568 to prevent memory leak.
2569
2570 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2571
2572 * valops.c (hand_function_call): Move declaration of retbuf to
2573 start of function, allocate using malloc, add a cleanup but before
2574 the inf_status cleanup, cleanup the buffer. Rename local variable
2575 old_chain to inf_status_cleanup.
2576
2577 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2578
2579 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2580
2581 * cli/cli-decode.c (cmd_func_p): New function.
2582 (cmd_func): New function.
2583
2584 * command.h: Add cmd_func() and cmd_func_p().
2585
2586 2002-07-03 Grace Sainsbury <graces@redhat.com>
2587
2588 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2589 (REGISTER_SIZE): Remove.
2590 (MAX_REGISTER_RAW_SIZE): Remove.
2591 (REGISTER_VIRTUAL_TYPE): Remove.
2592 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2593 (REGISTER_NAME): Remove.
2594 (USE_GENERIC_DUMMY_FRAMES): Remove.
2595 (CALL_DUMMY): Remove.
2596 (CALL_DUMMY_START_OFFSET): Remove.
2597 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2598 (CALL_DUMMY_LOCATION): Remove.
2599 (FIX_CALL_DUMMY): Remove.
2600 (CALL_DUMMY_ADDRESS): Remove.
2601 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2602 (SAVE_DUMMY_FRAME_TOS): Remove.
2603 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2604 (mcore_register_virtual_type): New function.
2605 (mcore_register_byte): New function.
2606 (mcore_register_size): New function.
2607 (mcore_register_name): New function.
2608 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2609 macros removed from tm-mcore.h.
2610 (mcore_dump_tdep): Add.
2611 (_initialize_mcore_tdep): Add gdbarch_register call.
2612
2613 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2614
2615 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2616 frameless_look_for_prologue, such that we actually call this
2617 function.
2618
2619 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2620
2621 * frame.h (frame_address_in_block): New function.
2622
2623 * blockframe.c (frame_address_in_block): New function extracted
2624 from get_frame_block().
2625 (get_frame_block): Use frame_address_in_block().
2626 (block_innermost_frame): Use frame_address_in_block() to match
2627 the frame pc address against the block boundaries rather than
2628 the frame pc directly. This prevents a failure when a frame pc
2629 is actually a return-address pointing immediately after the end
2630 of the given block.
2631
2632 2002-07-02 Grace Sainsbury <graces@redhat.com>
2633
2634 * MAINTAINERS: Add self under write after approval.
2635
2636 2002-07-02 Grace Sainsbury <graces@redhat.com>
2637
2638 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2639 used in architecture vector. The default is
2640 m68k_local_breakpoint_from_pc.
2641 (m68k_local_breakpoint_from_pc): Add.
2642 (enum): Add register numbers from tm-m68k.h.
2643 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2644 vector.
2645 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2646 GDB_MULTI_ARCH_PARTIAL.
2647 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2648 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2649 m68k-tdep.c.
2650 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2651 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2652 to enum in m68k-tdep.c
2653
2654 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2655
2656 * solib-osf.c (open_map): Compute the list of shared libraries
2657 loaded by the inferior, rather than the list of libraries loaded
2658 by GDB itself. Otherwise, GDB ends up reading the symbols from
2659 the wrong shared libraries...
2660
2661 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2662
2663 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2664 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2665 macros.
2666 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2667 Remove functions.
2668 (FRAMELESS_SIGNAL): Remove function.
2669 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2670 i386_linux_saved_pc_after_call): Removed.
2671 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2672 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2673 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2674
2675 * i386-tdep.c (i386_frameless_signal_p): New function.
2676 (i386_frame_chain): Deal with frameless signals.
2677 (i386_sigtramp_saved_sp): New function.
2678 (i386_frame_saved_pc): Deal with frameless signals.
2679 (i386_saved_pc_after_call): Make sure the correct value is
2680 returned just after entry into a sigtramp.
2681 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2682 i386fbsd4_sc_sp_offset): New variables.
2683 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2684 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2685 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2686 similiar to what we already did for sc_pc_offset.
2687 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2688 tdep->sc_sp_offset.
2689
2690 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2691
2692 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2693
2694 * config/i386/tm-x86-64linux.h: New.
2695 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2696 definitions.
2697 * config/i386/nm-x86-64.h: Rename to ...
2698 * config/i386/nm-x86-64linux.h: ... this one.
2699 * config/i386/x86-64linux.mh: Reflect the above change.
2700
2701 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2702
2703 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2704 with sigcontext_addr. Add sc_sp_offset.
2705 (i386bsd_sigtramp_saved_pc): Remove prototype.
2706 (i386bsd_sicontext_addr): Add prototype.
2707 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2708 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2709 (i386_svr4_sigtramp_saved_pc): Removed.
2710 (i386_svr4_sigcontext_addr): New function.
2711 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2712 Initialize tdep->sigcontext_addr instead. Initialize
2713 tdep->sc_pc_offset and tdep->sc_sp_offset.
2714 (i386_gdbarch_init): Likewise.
2715 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2716 any more.
2717 (i386bsd_sigtramp_saved_pc): Remove function.
2718 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2719 Initialize tdep->sigcontext_addr instead. Initialize
2720 tdep->sc_pc_offset.
2721 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2722 of tdep->sigtramp_saved_pc.
2723 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2724 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2725 instead.
2726
2727 * i386-tdep.c (i386_frameless_function_invocation,
2728 i386_frame_num_args, i386_frame_init_saved_regs,
2729 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2730 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2731 i386_extract_return_value, i386_store_return_value,
2732 i386_extract_struct_value_address, i386_register_virtual_type,
2733 i386_register_convertible, i386_register_convert_to_virtual,
2734 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2735 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2736 static.
2737
2738 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2739
2740 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2741
2742 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2743 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2744 this macro. Include "value.h".
2745
2746 2002-06-30 Aidan Skinner <aidan@velvet.net>
2747
2748 * ada-exp.tab.c: remove as it's a generated file
2749 * ada-lex.c: remove as it's a generated file
2750
2751 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2752
2753 * config/i386/tm-i386.h (struct frame_info, struct
2754 frame_saved_regs, struct value, struct type): Remove forward
2755 declarations.
2756
2757 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2758 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2759 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2760 (FILL_FPXREGSET): Define.
2761
2762 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2763
2764 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2765 i[3456]86-*-netbsd* case.
2766 * config/i386/tm-obsd.h: Removed.
2767 * config/i386/obsd.mt: Removed.
2768 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2769 core-aout.o.
2770 (MH_CFLAGS): Add -DYYDEBUG=0.
2771
2772 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2773 i386nbsd_sc_pc_offset on OpenBSD too.
2774
2775 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2776 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2777 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2778 define.
2779 * i386bsd-tdep.c: Include "arch-utils.h".
2780 (i386bsd_aout_in_solib_call_trampoline): New function.
2781 (i386bsd_init_abi): Set in_solib_call_trampoline to
2782 i386bsd_aout_in_solib_call_trampoline.
2783 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2784 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2785
2786 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2787
2788 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2789 (struct obstack, struct bcache): Add opaque declarations.
2790 * Makefile.in (macrotab_h): Update
2791
2792 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2793
2794 * blockframe.c (generic_find_dummy_frame): Change return type to
2795 ``struct regcache''.
2796 (struct dummy_frame): Replace field ``registers'' with regcache, a
2797 struct regcache object.
2798 (generic_find_dummy_frame): Update.
2799 (generic_push_dummy_frame): Update. Use regcache_xfree,
2800 regcache_xmalloc and regcache_cpy.
2801 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2802 regcache_xfree.
2803 (deprecated_generic_find_dummy_frame): Update.
2804 (generic_read_register_dummy): Update. Use
2805 regcache_read_as_address.
2806 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2807 (generic_get_saved_register): Update. Use regcache_read.
2808
2809 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2810
2811 * Makefile.in (objfiles_h): Add $(bcache_h).
2812 * objfiles.h: Include "bcache.h".
2813
2814 * Makefile.in (symtab_h): Remove $(bcache_h).
2815 * symtab.h: Do not include "bcache.h".
2816
2817 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2818
2819 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2820 generic_func_frame_chain_valid.
2821
2822 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2823
2824 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2825 * config/i386/tm-fbsd.h: Likewise.
2826
2827 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2828
2829 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2830 generic_unwind_get_saved_register.
2831
2832 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2833
2834 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2835 * regcache.c (supply_register): Add missing argument to
2836 register_buffer call.
2837
2838 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2839
2840 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2841 Solaris /bin/grep does not not like it. From Peter Schauer.
2842
2843 2002-06-26 Tom Tromey <tromey@redhat.com>
2844
2845 * command.h (add_setshow_cmd): Declare.
2846 (add_setshow_cmd_full): Declare.
2847 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2848 returns void. Use add_setshow_cmd_full.
2849 (add_setshow_cmd_full): New function.
2850 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2851 (add_setshow_boolean_cmd): Likewise.
2852
2853 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2854
2855 * config/vax/tm-vax.h: Protect from multiple inclusion.
2856 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2857 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2858 * config/vax/tm-vaxbsd.h: ...here. New file.
2859 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2860
2861 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2862
2863 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2864 (BELIEVE_PCC_PROMOTION): Remove.
2865 (AP_REGNUM): Move to...
2866 * config/vax/nm-vax.h: ...here.
2867 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2868 (vax_breakpoint_from_pc): New function.
2869 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2870 and gdbarch_believe_pcc_promotion.
2871
2872 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2873
2874 * Makefile.in (vax_tdep_h): Define.
2875 (vax-tdep.o): Use $(vax_tdep_h).
2876 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2877 (vax_dump_tdep): New function.
2878 (_initialize_vax_tdep): Register vax_dump_tdep.
2879 * vax-tdep.h: Include osabi.h.
2880 (struct gdbarch_tdep): New.
2881
2882 2002-06-26 Andrew Cagney <cagney@redhat.com>
2883
2884 * frame.h (deprecated_generic_find_dummy_frame): Rename
2885 generic_find_dummy_frame.
2886 * blockframe.c (generic_find_dummy_frame): Make static.
2887 (deprecated_generic_find_dummy_frame): New function.
2888 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2889 generic_find_dummy_frame with deprecated_find_dummy_frame.
2890 (sh64_nofp_frame_init_saved_regs): Ditto.
2891 (sh_fp_frame_init_saved_regs): Ditto.
2892 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2893 (s390_frame_chain): Ditto.
2894 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2895
2896 2002-06-26 Grace Sainsbury <graces@redhat.com>
2897
2898 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2899 gdbarch vector are at the top.
2900 (NUM_REGS): Remove.
2901 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2902 (FRAME_ARGS_ADDRESS): Remove.
2903 (FRAME_LOCALS_ADDRESS): Remove.
2904 (FRAME_NUM_ARGS): Remove.
2905 (FRAME_ARGS_SKIP): Remove.
2906 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2907 (m68k_gdbarch_init): Add gdbarch initializations for macros
2908 undefined in tm-m68k.h
2909
2910 2002-06-26 Grace Sainsbury <graces@redhat.com>
2911
2912 * monitor.h: Add the function regname to monitor_ops
2913 structure. This way NUM_REGS does not have to be a constant.
2914 * monitor.c (monitor_fetch_register): Added support for regname
2915 function. The function is called if the array regnames is NULL.
2916 (monitor_store_register): Same.
2917 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2918 regnames array.
2919 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2920 cpu32bug_cmds.regname to point to new function.
2921 * abug-rom.c (abug_regname): Same as above.
2922 (init_abug_cmds): Same.
2923 * dbug-rom.c (dbug_regname): Same as above.
2924 (init_dbug_cmds): Same.
2925 * remote-est.c (est_regname): Same.
2926 (init_est_cmds): Same.
2927 * rom68k-rom.c (rom68k_regname): Same.
2928 (init_rom68k_cmds): Same.
2929
2930 2002-06-25 Tom Tromey <tromey@redhat.com>
2931
2932 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2933
2934 2002-06-25 Andrew Cagney <cagney@redhat.com>
2935
2936 * infrun.c (stop_registers): Change variable's type to ``struct
2937 regcache'''.
2938 (xmalloc_inferior_status): Delete function.
2939 (free_inferior_status): Delete function.
2940 (normal_stop): Use regcache_cpy.
2941 (struct inferior_status): Change type of fields ``stop_registers''
2942 and ``registers'' to ``struct regcache''.
2943 (write_inferior_status_register): Use regcache_write.
2944 (save_inferior_status): Instead of calling
2945 xmalloc_inferior_status, allocate the inf_status buffer directly.
2946 Use regcache_dup_no_passthrough and regcache_dup to save the
2947 buffers.
2948 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2949 Replace the stop_registers regcache instead of overriding it. Use
2950 regcache_xfree. Instead of calling free_inferior_status, xfree
2951 the buffer directly.
2952 (discard_inferior_status): Use regcache_xfree. Instead of calling
2953 free_inferior_status, xfree the buffer directly.
2954 (build_infrun): Use regcache_xmalloc.
2955 (_initialize_infrun): Delete redundant call to build_infrun.
2956
2957 * Makefile.in (infcmd.o): Add $(regcache_h).
2958
2959 * infcmd.c: Include "regcache.h".
2960 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2961 obtain the address of `stop_registers' register buffer.
2962 (print_return_value): Ditto.
2963
2964 * inferior.h (struct regcache): Add opaque declaration.
2965 (stop_registers): Change variable's declared type to ``struct
2966 regcache''.
2967
2968 2002-06-24 Tom Tromey <tromey@redhat.com>
2969
2970 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2971 * target.c (initialize_targets): Fixed typo in
2972 trust-readonly-sections `show' documentation.
2973
2974 * main.c: Marked all strings with _().
2975
2976 2002-06-24 Don Howard <dhoward@redhat.com>
2977
2978 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2979 that means max CORE_ADDR+1.
2980 (lookup_mem_region): Ditto.
2981 (mem_info_command): Ditto.
2982
2983 2002-06-24 Grace Sainsbury <graces@redhat.com>
2984
2985 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2986 (REGISTER_BYTES_OK): Remove.
2987 (REGISTER_BYTES): Remove.
2988 (STORE_STRUCT_RETURN): Remove.
2989 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2990 (STORE_RETURN_VALUE): Remove.
2991 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2992 (FRAME_CHAIN): Remove.
2993 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2994 (FRAME_SAVED_PC): Remove.
2995 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2996 (m68k_store_struct_return): Add.
2997 (m68k_deprecated_extract_return_value): Add.
2998 (m68k_deprecated_extract_struct_value_address): Add.
2999 (m68k_store_return_value): Add.
3000 (m68k_frame_chain): Add.
3001 (m68k_frameless_function_invocation): Add.
3002 (m68k_frame_saved_pc): Add.
3003 (m68k_gdbarch_init): added set_gdbarch calls for new
3004 functions and deleted macros.
3005
3006 2002-06-23 Tom Tromey <tromey@redhat.com>
3007
3008 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3009 (ALLDEPFILES): Likewise.
3010 (udiheaders): Removed.
3011 (udip2soc.o): Likewise.
3012 (udi2go32.o): Likewise.
3013 (udr.o): Likewise.
3014 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3015
3016 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3017
3018 * infrun.c (_initialize_infrun): Delete unnecessary call to
3019 build_infrun.
3020
3021 * regcache.h: Update comments describing the regcache_cpy family
3022 of functions.
3023 (regcache_save, regcache_restore): Delete declaration.
3024 (regcache_save_no_passthrough): Delete declaration.
3025 (regcache_restore_no_passthrough): Delete declaration.
3026 * regcache.c (regcache_save): Delete function.
3027 (regcache_save_no_passthrough): Delete function.
3028 (regcache_restore): Delete function.
3029 (regcache_restore_no_passthrough): Delete function.
3030
3031 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3032
3033 * config/m68k/tm-m68k.h: Fix typo.
3034 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3035 (m68k_frame_init_saved_regs): Declare.
3036
3037 2002-06-21 Jim Blandy <jimb@redhat.com>
3038
3039 Remove some vestiges of Harris 88k support.
3040 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3041 register numbering quirk.
3042 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3043 odd symbols occurring in Harris 88k ELF targets.
3044
3045 2002-06-21 Tom Tromey <tromey@redhat.com>
3046
3047 * gdb_locale.h: New file.
3048 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3049 (defs_h): Added gdb_locale.h.
3050 * configure, config.in: Rebuilt.
3051 * configure.in (PACKAGE): Define.
3052 * defs.h: Include gdb_locale.h.
3053 * main.c (captured_main): Call setlocale, bindtextdomain,
3054 textdomain.
3055
3056 2002-06-21 Dave Brolley <brolley@redhat.com>
3057
3058 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3059 * config/frv/frv.mt: New file.
3060 * config/frv/tm-frv.h: New file.
3061 * configure.tgt: Support frv-*-*.
3062 * Makefile.in (frv-tdep.o): New target.
3063 * frv-tdep.c: New file.
3064 * NEWS: Mention frv.
3065
3066 2002-06-21 Dave Brolley <brolley@redhat.com>
3067
3068 * MAINTAINERS: Add self to "Write After Approval" list.
3069
3070 2002-06-21 Grace Sainsbury <graces@redhat.com>
3071
3072 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3073 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3074 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3075 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3076 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3077
3078 * m68k-tdep.c: Include arch-utils.h
3079 (m68k_register_raw_size): Add.
3080 (m68k_register_virtual_size): Add.
3081 (m68k_register_virtual_type): Add.
3082 (m68k_register_name): Add.
3083 (m68k_stack_align): Add.
3084 (m68k_register_byte): Add.
3085 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3086 tm-m68k.h.
3087
3088 2002-06-21 Grace Sainsbury <graces@redhat.com>
3089
3090 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3091 m68k_find_saved_regs.
3092 (m68k_pop_frame): Removed saved_regs structure, and replaced
3093 references to it with frame->saved_regs.
3094 (m68k_gdbarch_init): Added function calls to initialize the
3095 gdbarch structure.
3096 (m68k_fix_call_dummy): Add.
3097 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3098 (CALL_DUMMY): Remove.
3099 (CALL_DUMMY_LENGTH): Remove.
3100 (CALL_DUMMY_START_OFFSET): Remove.
3101 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3102 (FIX_CALL_DUMMY): Remove.
3103 (PUSH_DUMMY_FRAME): Remove.
3104 (POP_FRAME): Remove.
3105
3106 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3107
3108 * parse.c (parse_fprintf): New function used to avoid calls to
3109 fprintf in bison parser generated debug code.
3110 * parser-defs.h: Declaration of new parse_fprintf function.
3111 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3112 Set YYDEBUG to 1 by default.
3113 Set YYFPRINTF as parse_fprintf.
3114
3115 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3116
3117 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3118 encoding anymore.
3119 (pointer_encoding, enum ptr_encoding): New.
3120 (execute_cfa_program): Take care about pointer encoding.
3121 (dwarf2_build_frame_info): Only call parse_frame_info for
3122 .debug_frame and .eh_frame.
3123 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3124 fixed augmentation handling, added relative addressing,
3125 ignore duplicate FDEs. Added comments.
3126 * dwarf2cfi.c: Reindented.
3127
3128 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3129
3130 * event-top.c (command_handler): Don't use space_at_cmd_start
3131 unless there is sbrk() on the host. Assign time and space data
3132 to union fields of the appropriate length.
3133
3134 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3135
3136 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3137 x86_64_register_name. Return type changed to 'const char *'.
3138 (x86_64_register_name2nr): Rename to x86_64_register_number.
3139 (x86_64_gdbarch_init): Update to reflect the change.
3140 * x86-64-tdep.h: Ditto.
3141 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3142 (supply_fpregset): Ditto.
3143
3144 2002-06-19 Andrew Cagney <cagney@redhat.com>
3145
3146 * regcache.h: Update copyright.
3147 (struct regcache, struct gdbarch): Add opaque declarations.
3148 (current_regcache): Declare global variable.
3149 (regcache_read, regcache_write): Add gdbarch parameter.
3150 (regcache_save, regcache_save_no_passthrough)
3151 (regcache_restore, regcache_restore_no_passthrough)
3152 (regcache_dup, regcache_dup_no_passthrough)
3153 (regcache_cpy, regcache_cpy_no_passthrough)
3154 (deprecated_grub_regcache_for_registers)
3155 (deprecated_grub_regcache_for_register_valid)
3156 (regcache_valid_p): Add function declarations.
3157
3158 * regcache.c: Update copyright.
3159 (regcache_descr_handle): New global variable.
3160 (struct regcache_descr): Define.
3161 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3162 (regcache_descr, xfree_regcache_descr): New functions.
3163 (struct regcache): Define.
3164 (regcache_xmalloc, regcache_xfree): New functions.
3165 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3166 (regcache_dup, regcache_dup_no_passthrough): New functions.
3167 (regcache_valid_p, regcache_read_as_address): New functions.
3168 (deprecated_grub_regcache_for_registers): New function.
3169 (deprecated_grub_regcache_for_register_valid): New function.
3170 (current_regcache): New global variable.
3171 (register_buffer): Add regcache parameter. Update calls.
3172 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3173 (read_register_gen, write_register_gen): Update register_buffer
3174 call. Test for legacy_p instead of gdbarch_register_read_p or
3175 gdbarch_register_write_p.
3176 (regcache_collect): Update register_buffer call.
3177 (build_regcache): Rewrite. Use deprecated grub functions.
3178 (regcache_save, regcache_save_no_passthrough): New functions.
3179 (regcache_restore, regcache_restore_no_passthrough): New
3180 functions.
3181 (_initialize_regcache): Create the regcache_data_handle. Swap
3182 current_regcache global variable.
3183
3184 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3185 parameter to regcache_read and regcache_write calls.
3186 (sh4_register_read): Ditto.
3187 (sh64_pseudo_register_read): Ditto.
3188 (sh64_register_read): Ditto.
3189 (sh_pseudo_register_write): Ditto.
3190 (sh4_register_write): Ditto.
3191 (sh64_pseudo_register_write): Ditto.
3192 (sh64_register_write): Ditto.
3193
3194 * defs.h (XCALLOC): Define.
3195
3196 2002-06-19 Grace Sainsbury <graces@redhat.com>
3197
3198 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3199 * m68k-tdep.c (m68k_gdbarch_init): Added.
3200 (m68k_dump_tdep): Added.
3201
3202 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3203
3204 * ada-lang.c (fill_in_ada_prototype): Update comment.
3205
3206 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3207
3208 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3209 MIPS_ABI_LAST.
3210 (mips_abi_string, mips_abi_strings): New.
3211 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3212 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3213 tdep->mips_abi_string. Honor mips_abi_string. Default to
3214 O32 if no ABI is found.
3215 (mips_dump_tdep): Use mips_abi_strings.
3216 (mips_abi_update): New function.
3217 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3218 ``set mips abi'' and ``show mips abi''. Check the size of
3219 mips_abi_strings.
3220
3221 2002-06-19 Andrew Cagney <cagney@redhat.com>
3222
3223 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3224 constant.
3225
3226 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3227
3228 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3229 current frame using only the first stack size adjustment. All
3230 subsequent size adjustments are not considered to be part of
3231 the "static" part of the current frame.
3232 Compute the address of the saved registers relative to the
3233 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3234 in use in this frame.
3235
3236 2002-06-18 Don Howard <dhoward@redhat.com>
3237
3238 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3239 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3240 suggesting this solution.
3241
3242 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3243
3244 * config/romp/xm-rtbsd.h: Delete file.
3245 * config/romp/rtbsd.mh: Delete file.
3246
3247 2002-06-18 Keith Seitz <keiths@redhat.com>
3248
3249 * breakpoint.c (condition_command): Post breakpoint_modify
3250 when a condition is added to an existing breakpoint.
3251 (commands_command): Likewise for commands.
3252 (set_ignore_count): Likewise for ignore counts.
3253 If no tty, do not simply return, still need to send event
3254 notification.
3255 (ignore_command): Only print a newline if the command came
3256 from a tty.
3257 Don't call breakpoints_changed, since this is now properly
3258 handled by set_ignore_count.
3259
3260 2002-06-18 Andrew Cagney <cagney@redhat.com>
3261
3262 * MAINTAINERS: Note that cris-elf target can be compiled with
3263 -Werror.
3264 * cris-tdep.c (cris_register_name): Make return type constant.
3265 (cris_breakpoint_from_pc): Ditto.
3266
3267 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3268
3269 * frame.h (struct frame_info): Change type of context to
3270 'struct context'.
3271
3272 2002-06-17 Andrew Cagney <cagney@redhat.com>
3273
3274 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3275 pointer.
3276 * gdbarch.h, gdbarch.c: Regenerate.
3277 * config/mips/tm-mips.h (mips_register_name): Update.
3278 * i386-tdep.h (i386_register_name): Update.
3279 * mips-tdep.c (mips_register_name): Update
3280 * alpha-tdep.c (alpha_register_name): Update.
3281 * arch-utils.c (legacy_register_name): Update.
3282 * arch-utils.h (legacy_register_name): Update.
3283 * avr-tdep.c (avr_register_name): Update.
3284 * ia64-tdep.c (ia64_register_name): Update.
3285 * i386-tdep.c (i386_register_name): Update.
3286 * sparc-tdep.c (sparc32_register_name): Update.
3287 (sparc64_register_name): Update.
3288 (sparclite_register_name): Update.
3289 (sparclet_register_name): Update.
3290 * sh-tdep.c (sh_generic_register_name): Update.
3291 (sh_sh_register_name): Update.
3292 (sh_sh3_register_name): Update.
3293 (sh_sh3e_register_name): Update.
3294 (sh_sh_dsp_register_name): Update.
3295 (sh_sh3_dsp_register_name): Update.
3296 (sh_sh4_register_name): Update.
3297 (sh_sh64_register_name): Update.
3298 * s390-tdep.c (s390_register_name): Update.
3299 * rs6000-tdep.c (rs6000_register_name): Update.
3300 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3301 (ns32k_register_name_32382): Update.
3302 * d10v-tdep.c (d10v_ts2_register_name): Update.
3303 (d10v_ts3_register_name): Update.
3304 * xstormy16-tdep.c (xstormy16_register_name): Update.
3305 * vax-tdep.c (vax_register_name): Update.
3306 * v850-tdep.c (v850_register_name): Update.
3307 * m68hc11-tdep.c (m68hc11_register_name): Update.
3308 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3309 (am33_register_name): Update.
3310
3311 2002-06-17 Grace Sainsbury <graces@redhat.com>
3312
3313 * m68k-tdep.c: Reindented.
3314
3315 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3316
3317 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3318 list of predefined types.
3319
3320 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3321
3322 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3323 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3324 REGISTER_CONVERT_TO_RAW): Remove defines.
3325 (i386_register_virtual_type, i386_register_convertible,
3326 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3327 Remove prototypes.
3328 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3329 macros mentioned above.
3330
3331 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3332 (i386lynx_saved_pc_after_call): Remove prototype.
3333 * i386ly-tdep.c: Include "i386-tdep.h".
3334 (i386lynx_saved_pc_after_call): Make static. Use
3335 read_memory_nobpt instead of read_memory. Use
3336 read_memory_unsigned_integer instead of read_memory_integer.
3337 (i386lynx_init_abi): New function.
3338 (i386lynx_coff_osabi_sniffer): New function.
3339 (_initialize_i386bsd_tdep): New function.
3340
3341 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3342 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3343 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3344 (i386_fix_call_dummy): Remove prototype.
3345 * i386-tdep.c (i386_call_dummy_words): New variable.
3346 (i386_gdbarch_init): Adjust for removal of the
3347 macros mentioned above.
3348
3349 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3350
3351 * command.h (add_setshow_auto_boolean_cmd): Replace
3352 add_set_auto_boolean_cmd.
3353 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3354 add_set_auto_boolean_cmd.
3355 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3356 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3357 mask-address'' command.
3358 (show_mask_address): Add cmd parameter.
3359 * remote.c (add_packet_config_cmd): Update. Change type of
3360 set_func and show_func to cmd_sfunc_ftype.
3361 (_initialize_remote): Update `set remote Z-packet'
3362 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3363 (show_remote_protocol_e_packet_cmd): Ditto.
3364 (show_remote_protocol_E_packet_cmd): Ditto.
3365 (show_remote_protocol_P_packet_cmd): Ditto.
3366 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3367 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3368 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3369 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3370 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3371 (show_remote_protocol_Z_packet_cmd): Ditto.
3372 (show_remote_protocol_binary_download_cmd): Ditto.
3373 (show_remote_cmd): Pass NULL to all of above.
3374
3375 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3376
3377 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3378 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3379 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3380 POP_FRAME): Remove defines.
3381 (i386_push_arguments, i386_store_struct_return,
3382 i386_extract_return_value, i386_store_return_value,
3383 i386_extract_struct_value_address, i386_push_dummy_frame,
3384 i386_pop_frame): Renove prototypes.
3385 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3386 macros mentioned above.
3387
3388 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3389
3390 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3391 add_set_boolean_cmd.
3392 (add_setshow_cmd): New function.
3393 * command.h (add_setshow_boolean_cmd): Replace
3394 add_set_boolean_cmd.
3395 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3396 and ``set rdiromatzero''.
3397 * maint.c (_initialize_maint_cmds): Update commented out code.
3398 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3399 * target.c (initialize_targets): Update `set
3400 trust-readonly-sections'.
3401 * remote.c (_initialize_remote): Update `set remotebreak'.
3402
3403 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3404
3405 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3406 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3407 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3408 fit into multi-arch framework.
3409 (i386_breakpoint_from_pc): New function.
3410 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3411 above.
3412
3413 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3414 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3415 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3416 (i386_frameless_function_invocation, i386_frame_num_args,
3417 i386_frame_init_saved_regs): Remove prototypes.
3418 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3419 macros mentioned above.
3420
3421 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3422
3423 * cli/cli-decode.c (set_cmd_cfunc): Update.
3424 (set_cmd_sfunc): Update.
3425 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3426 (set_cmd_sfunc, set_cmd_cfunc): Update.
3427 * cli/cli-decode.h: Update.
3428
3429 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3430
3431 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3432 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3433
3434 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3435
3436 * defs.h (auto_boolean): Declare enum.
3437 * command.h (cmd_auto_boolean): Delete enum.
3438 * mips-tdep.c (mask_address_var): Update.
3439 (mips_mask_address_p): Update.
3440 (show_mask_address): Update.
3441 * remote.c (struct packet_config): Update.
3442 (update_packet_config): Update.
3443 (show_packet_config_cmd): Update.
3444 (packet_ok): Update.
3445 (add_packet_config_cmd): Update.
3446 (_initialize_remote):
3447 * command.h: Update.
3448 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3449 (do_setshow_command): Update.
3450 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3451 * cli/cli-decode.h: Update.
3452
3453 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3454
3455 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3456 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3457 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3458 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3459 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3460 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3461
3462 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3463 list of DJGPP COFF targets.
3464
3465 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3466 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3467 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3468 (FP0_REGNUM): Remove define.
3469 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3470 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3471 (i386_register_virtual_size): Remove protoype.
3472 * i386-tdep.c (i386_register_virtual_size): Removed.
3473 (i386_extract_return_value, i386_store_return_value): Use
3474 FP0_REGNUM instead of NUM_FREGS to determine whether the
3475 floating-point registers are available.
3476 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3477 Adjust for removal of macros mentioned above.
3478
3479 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3480
3481 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3482 comments.
3483 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3484 Remove prototypes.
3485 (supply_gregset, fill_gregset): Remove use of register keyword and
3486 remove declaration for regmap. Use I386_NUM_GREGS instead of
3487 NUM_REGS and NUM_FREGS.
3488 (FPREGSET_FSAVE_OFFSET): Remove.
3489 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3490 NUM_FREGS to determine whether the floating-point registers are
3491 available.
3492
3493 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3494 gnu_store_registers): Replace usage of NUM_GREGS with
3495 I386_NUM_GREGS.
3496
3497 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3498 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3499 usage of NUM_GREGS with I386_NUM_GREGS.
3500
3501 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3502
3503 * i386bsd-nat.c: Include "i386-tdep.h".
3504 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3505 I386_NUM_GREGS.
3506
3507 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3508 and associated comment. They no longer make any sense, since we
3509 don't use this file anymore on Linux.
3510
3511 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3512 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3513 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3514 elements in these arrays.
3515 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3516 MAX_NUM_REGS.
3517
3518 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3519
3520 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3521 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3522
3523 2002-06-14 Andrew Cagney <cagney@redhat.com>
3524
3525 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3526 EXTRACT_RETURN_VALUE.
3527 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3528 EXTRACT_STRUCT_VALUE_ADDRESS.
3529 * gdbarch.h, gdbarch.c: Regenerate.
3530
3531 * values.c (value_being_returned): Handle
3532 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3533 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3534
3535 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3536 * arm-tdep.c (arm_gdbarch_init): Update.
3537 * avr-tdep.c (avr_gdbarch_init): Update.
3538 * cris-tdep.c (cris_gdbarch_init): Update.
3539 * d10v-tdep.c (d10v_gdbarch_init): Update.
3540 * ia64-tdep.c (ia64_gdbarch_init): Update.
3541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3542 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3543 * s390-tdep.c (s390_gdbarch_init): Update.
3544 * sh-tdep.c (sh_gdbarch_init): Update.
3545 * s390-tdep.c (s390_gdbarch_init): Update.
3546 * sparc-tdep.c (sparc_gdbarch_init): Update.
3547 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3548 * v850-tdep.c (v850_gdbarch_init): Update.
3549 * vax-tdep.c (vax_gdbarch_init): Update.
3550 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3552
3553 * config/arc/tm-arc.h: Update.
3554 * config/d30v/tm-d30v.h: Update.
3555 * config/fr30/tm-fr30.h: Update.
3556 * config/h8300/tm-h8300.h: Update.
3557 * config/h8500/tm-h8500.h: Update.
3558 * config/i386/tm-i386.h: Update.
3559 * config/i386/tm-ptx.h: Update.
3560 * config/i386/tm-symmetry.h: Update.
3561 * config/i960/tm-i960.h: Update.
3562 * config/m32r/tm-m32r.h: Update.
3563 * config/m68k/tm-delta68.h: Update.
3564 * config/m68k/tm-linux.h: Update.
3565 * config/m68k/tm-m68k.h: Update.
3566 * config/m88k/tm-m88k.h: Update.
3567 * config/mcore/tm-mcore.h: Update.
3568 * config/mips/tm-mips.h: Update.
3569 * config/mn10200/tm-mn10200.h: Update.
3570 * config/pa/tm-hppa.h: Update.
3571 * config/pa/tm-hppa64.h: Update.
3572 * config/sparc/tm-sp64.h: Update.
3573 * config/sparc/tm-sparc.h: Update.
3574 * config/sparc/tm-sparclet.h: Update.
3575 * config/z8k/tm-z8k.h: Update.
3576
3577 2002-06-14 Andrew Cagney <cagney@redhat.com>
3578
3579 * Makefile.in (i386_linux_tdep_h): Define.
3580 (i386_tdep_h, i387_tdep_h): Define.
3581 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3582 $(i386_tdep_h) and $(i387_tdep_h).
3583 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3584
3585 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3586
3587 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3588 Already covered by the default.
3589
3590 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3591 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3592 (i386_gdbarch_init): Initialize long_double_format and long_double
3593 bit.
3594
3595 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3596 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3597 Move these to ...
3598 * config/i386/i386sol2.mh: ... here.
3599 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3600 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3601 (SIGCONTEXT_PC_OFFSET): Remove define.
3602 (IN_SIGTRAMP): Remove define.
3603 * i386-sol2-tdep.c: New file.
3604
3605 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3606 * config/i386/tm-i386nw.h: Removed.
3607
3608 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3609 USE_STRUCT_CONVENTION): Remove defines.
3610 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3611 (get_longjmp_target): Remove prototype.
3612 (IN_SIGTRAMP): Remove define.
3613 (i386bsd_in_sigtramp): Remove prototype.
3614 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3615 function. Update comment accordingly
3616 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3617 (FRAME_SAVED_PC): Remove define.
3618 (i386bsd_frame_saved_pc): Remove prototype.
3619 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3620 GET_LONGJMP_TARGET): Remove defines.
3621 (get_longjmp_target): Remove prototype.
3622 (IN_SIGTRAMP): Remove define.
3623 (i386bsd_in_sigtramp): Remove prototype.
3624 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3625 function. Update comment accordingly
3626 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3627 (FRAME_SAVED_PC): Remove define.
3628 (i386bsd_frame_saved_pc): Remove prototype.
3629 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3630 Remove prototype.
3631 (USE_STRUCT_CONVENTION): Remove prototype.
3632 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3633 declaration.
3634 (_initialize_i386bsd_nat): Revise logic to determine some
3635 constants at compile time when compiling a native GDB. Warn if
3636 things don't match up with what we expect.
3637 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3638 Remove variables.
3639 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3640 to use date stored in `struct gdbarch_tdep'.
3641 (i386bsd_sigcontext_offset): Remove varaible.
3642 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3643 stored in `struct gdbarch_tdep'.
3644 (i386bsd_frame_saved_pc): Make static.
3645 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3646 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3647 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3648 i386fbsd4_sc_pc_offset): New variables.
3649 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3650 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3651 functions.
3652 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3653 functions.
3654 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3655 Modify the value of i386fbsd_sigtramp_start and
3656 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3657 i386fbsd_sigtramp_end.
3658 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3659 function.
3660
3661 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3662 define to i386-linux-tdep.h.
3663 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3664 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3665 defines.
3666 (i386_linux_register_name, i386_linux_register_byte,
3667 i386_linux_register_raw_size): Remove prototypes.
3668 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3669 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3670 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3671 TARGET_WRITE_PC): Remove defines.
3672 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3673 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3674 i386_linux_write_pc): Remove prototypes.
3675 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3676 (get_longjmp_target): Remove prototype.
3677 * i386-linux-tdep.h: New file.
3678 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3679 * i386-linux-tdep.c: Include "i386-tdep.h" and
3680 "i386-linux-tdep.h".
3681 (i386_linux_register_name, i386_linux_register_byte,
3682 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3683 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3684 Make static.
3685 (i386_linux_init_abi): New function.
3686 (_initialize_i386_linux_tdep): New function.
3687
3688 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3689 (i386_saved_pc_after_call): Remove prototype.
3690 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3691 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3692 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3693 (i386_register_name, i386_stab_reg_to_regnum,
3694 i386_dwarf_reg_to_regnum): Remove prototypes.
3695 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3696 SIZEOF_SSE_REGS): Remove defines.
3697 (REGISTER_BYTES): Remove define.
3698 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3699 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3700 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3701 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3702 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3703 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3704 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3705 (get_longjmp_target): Remove prototype.
3706 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3707 (sigtramp_saved_pc): Remove define.
3708 (i386v4_sigtramp_saved_pc): Remove prototype.
3709 * config/i386/tm-go32.h (FRAME_CHAIN,
3710 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3711 (i386go32_frame_saved_pc): Remove prototype.
3712 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3713 (get_longjmp_target): Remove prototype.
3714 * i386-tdep.h: Include "osabi.h".
3715 (enum i386_abi): Removed.
3716 (enum struct_return): New enum.
3717 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3718 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3719 sc_pc_offset members.
3720 (i386_gdbarch_register_os_abi): Remove prototype.
3721 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3722 I386_SSE_NUM_REGS): New defines.
3723 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3724 I386_SSE_SIZEOF_REGS): New defines.
3725 (i386_register_name, i386_register_byte, i386_register_raw_size):
3726 New prototypes.
3727 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3728 (i386bsd_sigtramp_saved_pc): New prototype.
3729 * i386-tdep.c: Don't include "elf-bfd.h".
3730 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3731 i386_frame_chain, i386_saved_pc_after_call): Make static.
3732 (i386_frame_saved_pc): Rewrite to call architecture dependent
3733 function to deal with signal handlers. Make static.
3734 (i386go32_frame_saved_pc): Removed.
3735 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3736 Removed.
3737 (i386_get_longjmp_target): New function.
3738 (default_struct_convention, pcc_struct_convention,
3739 reg_struct_convention, valid_conventions, struct_convention): New
3740 variables.
3741 (i386_use_struct_convention): New function.
3742 (i386v4_sigtramp_saved_pc): Renamed to
3743 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3744 (i386_pc_in_sigtramp): New function.
3745 (i386_abi_names): Removed.
3746 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3747 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3748 Removed.
3749 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3750 i386_gdbarch_register_os_abi): Removed.
3751 (struct i386_abi_handler): Removed.
3752 (i386_abi_handler_list): Removed.
3753 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3754 functions.
3755 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3756 i386_nw_init_abi): New functions.
3757 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3758 Use set_gdbarch_xxx() calls instead of relying on macros for a
3759 number of calls.
3760 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3761 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3762 Register the various architecture variants defined in this file.
3763
3764 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3765
3766 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3767 (struct main_type): Remove arg_types member. Update comments for
3768 struct field.
3769 (TYPE_ARG_TYPES): Remove.
3770 (TYPE_FN_FIELD_ARGS): Update.
3771 (smash_to_method_type): Update prototype.
3772
3773 * c-typeprint.c (cp_type_print_method_args): Take method type
3774 instead of argument list. Use new argument layout. Simplify.
3775 (c_type_print_args): Use new argument layout. Simplify.
3776 (c_type_print_base): Update call to cp_type_print_method_args.
3777 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3778 argument; use die->type instead. Update call to
3779 smash_to_method_type.
3780 (read_structure_scope): Update call to dwarf2_add_member_fn.
3781 * gdbtypes.c (allocate_stub_method): Update comment.
3782 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3783 Use new argument layout.
3784 (check_stub_method): Use new argument layout. Don't count
3785 void as an argument.
3786 (print_arg_types): Update comments. Use new argument layout.
3787 (recursive_dump_type): Don't print arg_types member.
3788 * hpread.c (hpread_read_struct_type): Use new argument layout.
3789 (fixup_class_method_type): Likewise.
3790 (hpread_type_lookup): Likewise.
3791 * stabsread.c (read_type): Update calls to read_args and
3792 smash_to_method_type.
3793 (read_args): Use new argument layout. Simplify.
3794 * valops.c (typecmp): Use new argument layout. Update parameters
3795 and comments. Simplify.
3796 (hand_function_call): Use new argument layout.
3797 (search_struct_method): Update call to typecmp.
3798 (find_overload_match): Use new argument layout.
3799
3800 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3801
3802 * NEWS: Mention multithreaded debug support for gdbserver.
3803
3804 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3805
3806 * MAINTAINERS: Mention NEWS.
3807
3808 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3809
3810 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3811 (struct mips_objfile_private, compare_pdr_entries): New.
3812 (non_heuristic_proc_desc): Read the ".pdr" section if it
3813 is present.
3814
3815 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3816
3817 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3818 (arm_debug): New static variable.
3819 (_initialize_arm_tdep): Add ``set debug arm'' command.
3820
3821 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3822
3823 * Makefile.in (sim_arm_h): Define.
3824 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3825 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3826 (arm_register_sim_regno): New function, map an internal REGNUM
3827 onto a simulator register number.
3828 (arm_gdbarch_init): Set register_sim_regno.
3829
3830 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3831
3832 * MAINTAINERS: Add self.
3833
3834 2002-06-11 Jim Blandy <jimb@redhat.com>
3835
3836 * source.c (source_info): Mention whether the symtab has
3837 information about preprocessor macros.
3838
3839 Call the command `info macro', not `show macro'.
3840 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3841 Fix error message.
3842 (_initialize_macrocmd): Register `info_macro_command' in
3843 `infolist', not `showlist'.
3844
3845 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3846
3847 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3848 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3849 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3850 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3851 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3852 unconditionally.
3853 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3854 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3855 (_initialize_mips_tdep): Remove dead code.
3856 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3857 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3858 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3859 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3860 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3861 MIPS_LAST_FP_ARG_REGNUM): Remove.
3862
3863 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3864
3865 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3866 (unwind_tmp_obstack_free, parse_frame_info)
3867 (update_context, cfi_read_fp, cfi_write_fp)
3868 (cfi_frame_chain, cfi_init_extra_frame_info)
3869 (cfi_virtual_frame_pointer): Use the above function.
3870 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3871
3872 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3873
3874 * v850-tdep.c (v850_type_is_scalar): New function.
3875 (v850_use_struct_convention): Match current gcc implementation
3876 as close as possible.
3877 (v850_push_arguments): Fix stack_offset handling. Don't write
3878 struct_addr into register. This is done by v850_store_struct_return.
3879 (v850_extract_return_value): Care for structs.
3880 (v850_store_return_value): Ditto.
3881 (v850_store_struct_return): Actually write address.
3882
3883 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3884
3885 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3886 without debug information too.
3887
3888 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3889
3890 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3891 Make multi-arch pure.
3892 * gdbarch.h, gdbarch.c: Re-generate.
3893 * arm-tdep.c (arm_print_float_info): Update.
3894 * arch-utils.h (default_print_float_info): Update.
3895 * arch-utils.c (default_print_float_info): Update.
3896 * infcmd.c (float_info): Update call.
3897
3898 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3899
3900 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3901 the front of the initialize list.
3902
3903 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3904
3905 * infrun.c (struct inferior_status): Replace fields
3906 selected_frame_address and selected_level with field
3907 selected_frame_id.
3908 (save_inferior_status): Update. Use get_frame_id.
3909 (struct restore_selected_frame_args): Delete.
3910 (restore_selected_frame): Update. Use frame_find_by_id.
3911 (restore_inferior_status): Update.
3912
3913 * breakpoint.h (struct breakpoint): Change type of
3914 watchpoint_frame to frame_id.
3915 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3916 call to get_current_frame.
3917 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3918 get_current_frame.
3919 (watchpoint_check): Use frame_find_by_id.
3920
3921 * frame.h (record_selected_frame): Delete declaration.
3922 * stack.c (record_selected_frame): Delete function.
3923
3924 * frame.h (struct frame_id): Define.
3925 (get_frame_id): Declare.
3926 (frame_find_by_id): Declare.
3927 * frame.c (frame_find_by_id): New function.
3928 (get_frame_id): New function.
3929
3930 2002-06-10 Andrey Volkov <avolkov@transas.com>
3931
3932 * ser-e7kpc.c: Fix duplicated define and call of
3933 _initialize_ser_e7000pc
3934
3935 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * signals/signals.c (target_signal_from_host): Fix #ifdef
3938 SIGRTMIN case.
3939 (do_target_signal_to_host): Likewise.
3940
3941 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3942
3943 * mips-tdep.c (mips_find_abi_section): New function.
3944 (mips_gdbarch_init): Call it.
3945
3946 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3947
3948 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3949 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3950 after Andrew's 2002-06-08 gdbarch change.
3951
3952 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3953
3954 * i386-linux-nat.c (suppy_gregset): Don't supply
3955 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3956 register cache.
3957 (fill_gregset): Don't fetch it under the same circumstances.
3958
3959 2002-06-09 Andrew Cagney <cagney@redhat.com>
3960
3961 * Makefile.in (callback_h): Define.
3962 (remote_sim_h): Update path to remote-sim.h.
3963 (remote-rdp.o): Add $(callback_h).
3964 (remote-sim.o): Use $(callback_h).
3965 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3966 * remote-rdp.c: Include "gdb/callback.h".
3967
3968 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3969
3970 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3971 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3972
3973 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3974
3975 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3976 * rdi-share/serpardr.c: Ditto.
3977 * rdi-share/unixcomm.c: Ditto.
3978 * rdi-share/serdrv.c: Ditto.
3979 * rdi-share/hostchan.h: Ditto.
3980 * rdi-share/hostchan.c: Ditto.
3981 * rdi-share/host.h: Ditto.
3982 * rdi-share/devsw.c: Ditto.
3983
3984 * objfiles.h: Change type of obj_private to void pointer.
3985 * pa64solib.c: Update copyright. Don't include "assert.h", use
3986 strcmp instead of STREQ, use LONGEST, do not use PTR
3987 * somsolib.c: Ditto.
3988
3989 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3990 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3991 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3992
3993 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3994
3995 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3996 (default_get_saved_register): Delete function.
3997 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3998 generic_unwind_get_saved_register.
3999 * gdbarch.h, gdbarch.c: Re-generate.
4000
4001 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4002
4003 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4004 generic_func_frame_chain_valid.
4005 * gdbarch.h, gdbarch.c: Re-generate.
4006 * blockframe.c (generic_func_frame_chain_valid): Only check
4007 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4008 passing FP to PC_IN_CALL_DUMMY.
4009 Fix PR gdb/360.
4010
4011 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4012
4013 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4014 (register_gdbarch_data): Initialize init_p.
4015 (gdbarch_data): Initialize data pointer using the init function.
4016 (init_gdbarch_data): Delete function.
4017 (gdbarch_update_p): Update.
4018 (initialize_non_multiarch): Update.
4019 (struct gdbarch): Add field initialized_p.
4020 * gdbarch.h, gdbarch.c: Re-generate.
4021
4022 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4023
4024 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4025 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4026 better do the things actually here.
4027 * x86-64-tdep.c (x86_64_register_name2nr): New.
4028 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4029 (x86_64_gdbarch_init): Respect the above change.
4030 * x86-64-tdep.h (x86_64_register_name2nr)
4031 (x86_64_register_nr2name): Add prototypes.
4032 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4033
4034 2002-06-06 Michael Snyder <msnyder@redhat.com>
4035
4036 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4037 Delete extra braces and re-indent.
4038 (d10v_store_return_value): Char return values
4039 must be shifted over by one byte in R0.
4040 (d10v_extract_return_value): Delete extra braces, re-indent.
4041
4042 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4043
4044 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4045 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4046 (d10v_integer_to_address): Rewrite.
4047 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4048 the d10v specific functions which take care of converting to the
4049 correct space.
4050
4051 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4052
4053 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4054 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4055
4056 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4057
4058 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4059 includes.
4060 * config/tm-linux.h: Ditto.
4061 * config/alpha/tm-alphalinux.h: Ditto.
4062 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4063 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4064 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4065 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4066 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4067 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4068 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4069 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4070 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4071 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4072 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4073 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4074 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4075 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4076 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4077 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4078 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4079 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4080 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4081 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4082 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4083 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4084 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4085 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4086 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4087 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4088 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4089 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4090 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4091 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4092 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4093 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4094 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4095 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4096 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4097 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4098 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4099
4100 2002-05-04 Aidan Skinner <aidan@velvet.net>
4101
4102 * ada-exp.tab.c: New file
4103 * ada-exp.y: New file
4104 * ada-lang.c: New file
4105 * ada-lang.h: New file
4106 * ada-lex.c: New file
4107 * ada-lex.l: New file
4108 * ada-tasks.c: New file
4109 * ada-typeprint.c: New file
4110 * ada-valprint.c: New file
4111
4112 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4113
4114 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4115 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4116
4117 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4118
4119 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4120 insetead of ppc-linux-tdep.o.
4121 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4122 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4123
4124 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4125
4126 2002-05-07 Christian Groessler <chris@groessler.org>
4127 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4128 bit register contents for little endian hosts.
4129
4130 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4131
4132 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4133 any maintainer.
4134
4135 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4136
4137 * gdbarch.h: Regenerate.
4138
4139 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4140
4141 * MAINTAINERS: Add everyone to write-after-approval list.
4142
4143 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4144
4145 * stack.c (frame_info): Use frame_register_unwind instead of
4146 saved_regs. Mention when the SP is on the stack or in a register.
4147
4148 * frame.h (frame_register_unwind_ftype): Define. Document.
4149 (struct frame_info): Add field register_unwind and
4150 register_unwind_cache.
4151 (frame_register_unwind): Declare.
4152 (generic_unwind_get_saved_register): Declare.
4153
4154 * frame.c (frame_register_unwind): New function.
4155 (generic_unwind_get_saved_register): New function.
4156
4157 * blockframe.c (generic_call_dummy_register_unwind): New function.
4158 (frame_saved_regs_register_unwind): New function.
4159 (set_unwind_by_pc): New function.
4160 (create_new_frame): New function.
4161 (get_prev_frame): New function.
4162
4163 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4164
4165 * a29k-share/: Delete directory.
4166 * remote-vx29k.c: Delete file.
4167
4168 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4169
4170 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4171 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4172
4173 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4174
4175 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4176 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4177 (sparc64nbsd-nat.o)
4178 (sparcnbsd-nat.o)
4179 (sparcnbsd-tdep.o): New dependency lists.
4180 * NEWS: Note new UltraSPARC NetBSD native configuration.
4181 * configure.host (sparc64-*-netbsd*): New host.
4182 * configure.tgt (sparc-*-netbsdelf*)
4183 (sparc-*-netbsd*): Set gdb_target to nbsd.
4184 (sparc64-*-netbsd*): New target.
4185 * sparc64nbsd-nat.c: New file.
4186 * sparcnbsd-nat.c: New file.
4187 * sparcnbsd-tdep.c: New file.
4188 * sparcnbsd-tdep.h: New file.
4189 * config/sparc/nbsd.mt: New file.
4190 * config/sparc/nbsd64.mh: New file.
4191 * config/sparc/nbsd64.mt: New file.
4192 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4193 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4194 (HOST_IPC): Remove.
4195 * config/sparc/nbsdaout.mt: Remove.
4196 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4197 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4198 (HOST_IPC): Remove.
4199 * config/sparc/nbsdelf.mt: Remove.
4200 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4201 sparc-nat.c compatiblity defines.
4202 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4203 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4204 * config/sparc/tm-nbsd64.h: New file.
4205 * config/sparc/tm-nbsdaout.h: Remove.
4206 * config/sparc/xm-nbsd.h: Remove.
4207
4208 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4209
4210 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4211 * sparc-tdep.c: Include osabi.h.
4212 (gdbarch_tdep): Add osabi member.
4213 (_initialize_sparc_tdep): Use gdbarch_register.
4214 (sparc_gdbarch_init): Use generic OS ABI framework.
4215 (sparc_dump_tdep): New function.
4216
4217 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4218
4219 * corefile.c (do_captured_read_memory_integer): Return non-zero
4220 result.
4221 (safe_read_memory_integer): Copy result of memory read when
4222 status is non-zero. Also, add comments.
4223
4224 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4225
4226 * Makefile.in (ppc_tdep_h): Define.
4227 (ppc-linux-nat.o)
4228 (ppc-linux-tdep.o)
4229 (rs6000-tdep.o): Use $(ppc_tdep_h).
4230 (ppc-sysv-tdep.o)
4231 (ppcnbsd-nat.o)
4232 (ppcnbsd-tdep.o): New dependency lists.
4233 * ppc-tdep.h: Use generic OS ABI framework.
4234 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4235 (ppc_linux_init_abi): New functions.
4236 (ppc_sysv_abi_broken_use_struct_convention)
4237 (ppc_sysv_abi_use_struct_convention)
4238 (ppc_sysv_abi_push_arguments): Move to...
4239 * ppc-sysv-tdep.c: ...here.
4240 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4241 * rs6000-tdep.c (process_note_abi_tag_sections)
4242 (get_elfosabi): Remove.
4243 (rs6000_gdbarch_init): Use generic OS ABI framework.
4244 (rs6000_dump_tdep): New function.
4245 (_initialize_rs6000_tdep): Use gdbarch_register.
4246 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4247 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4248 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4249 of ppc-linux-tdep.o.
4250 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4251 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4252 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4253 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4254 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4255 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4256
4257 2002-05-29 Jim Blandy <jimb@redhat.com>
4258
4259 * macroscope.c (default_macro_scope): Put `void' in empty argument
4260 list.
4261
4262 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4263
4264 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4265 * arch-utils.c: Include "sim-regno.h".
4266 * gdbarch.sh: Don't include "sim-regno.h".
4267 * gdbarch.h, gdbarch.c: Regenerate.
4268 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4269 here.
4270 * arch-utils.h (legacy_register_sim_regno): To here.
4271 * remote-sim.c (legacy_register_sim_regno): Move function from
4272 here.
4273 * arch-utils.c (legacy_register_sim_regno): To here.
4274
4275 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4276
4277 * sim-regno.h: New file.
4278 * Makefile.in (sim_regno_h): Define.
4279 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4280 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4281 (legacy_register_sim_regno): New function.
4282 (one2one_register_sim_regno): New function.
4283 (gdbsim_fetch_register): Rewrite.
4284 (gdbsim_store_register): Only store a register when
4285 REGISTER_SIM_REGNO is valid.
4286 * d10v-tdep.c: Include "sim-regno.h".
4287 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4288 (d10v_ts3_register_sim_regno): Ditto.
4289 * gdbarch.sh: Include "sim-regno.h".
4290 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4291 * gdbarch.h, gdbarch.c: Regenerate.
4292 * arch-utils.h (default_register_sim_regno): Delete declaration.
4293 * arch-utils.c (default_register_sim_regno): Delete function.
4294
4295 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4296
4297 * ppcnbsd-nat.c: Rewrite.
4298 * ppcnbsd-tdep.c: New file.
4299 * ppcnbsd-tdep.h: New file.
4300 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4301 solib.o, and solib-svr4.o.
4302 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4303 nbsd-tdep.o, and corelow.o.
4304
4305 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4306
4307 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4308 `tr' and `sed'. Mention that `broken' targets are not expected to
4309 build.
4310
4311 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4312
4313 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4314 Let PC point right after the prologue before looking up symbols.
4315
4316 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4317
4318 * i386-tdep.c (i386_register_virtual_type): Return
4319 builtin_type_vec128i for SSE registers.
4320
4321 * gdbtypes.h (builtin_type_vec128i): Declare.
4322
4323 * gdbtypes.c (build_builtin_type_vec128i): New function.
4324 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4325 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4326 (build_gdbtypes): Initialize new builtin vector types.
4327 (_initialize_gdbtypes): Register new vector types with gdbarch.
4328
4329 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4330
4331 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4332 since it has been multi-arch'd.
4333 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4334 Move Alpha and VAX multi-arch news entries to same section
4335 as other multi-arch news.
4336
4337 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4338
4339 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4340 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4341 static. Rename some register numbers to put them in ns32k-tdep
4342 private namespace.
4343 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4344 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4345 functions.
4346 (_initialize_ns32k_tdep): Use gdbarch_register.
4347 * ns32k-tdep.h: New file.
4348 * ns32knbsd-tdep.c: New file.
4349 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4350 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4351 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4352 REGISTER_BYTES, REGISTER_BYTE): Remove.
4353 * config/ns32k/tm-ns32k.h: New file.
4354 * config/ns32k/tm-umax.h: Remove.
4355
4356 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4357
4358 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4359 ns32k_store_struct_return, ns32k_extract_return_value,
4360 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4361 functions.
4362 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4363 ns32k_saved_pc_after_call.
4364 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4365 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4366 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4367 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4368 ns32k_extract_struct_value_address.
4369
4370 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4371
4372 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4373 ns32k_fix_call_dummy): New.
4374 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4375 ns32k_call_dummy_words.
4376 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4377 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4378 CALL_DUMMY_NARGS): Remove.
4379 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4380
4381 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4382
4383 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4384 ns32k_frame_saved_pc, ns32k_frame_args_address,
4385 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4386 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4387 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4388 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4389 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4390 (BREAKPOINT): Remove..
4391 (FRAME_CHAIN): Define as ns32k_frame_chain.
4392 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4393 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4394 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4395 (FRAME_FIND_SAVED_REGS): Remove.
4396 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4397 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4398 (POP_FRAME): Define as ns32k_pop_frame.
4399
4400 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4401
4402 * ns32k-tdep.c (ns32k_register_byte_32082,
4403 ns32k_register_byte_32382, ns32k_register_raw_size,
4404 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4405 functions.
4406 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4407 ns32k_register_byte_32382.
4408 * config/ns32k/tm-umax.h: Update copyright years.
4409 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4410 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4411 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4412 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4413 (ns32k_get_enter_addr): Fix prototype.
4414
4415 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4416
4417 * ns32k-tdep.c: Update copyright years.
4418 (ns32k_register_name_32082): New function.
4419 (ns32k_register_name_32382): Ditto.
4420 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4421 (REGISTER_NAME): Define as ns32k_register_name_32382.
4422 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4423 (REGISTER_NAME): Define as ns32k_register_name_32082.
4424
4425 2002-05-24 Jim Blandy <jimb@redhat.com>
4426
4427 * dwarf2read.c (free_line_header): Use xfree, not free.
4428
4429 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4430
4431 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4432 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4433
4434 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4435
4436 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4437
4438 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4439
4440 From Ross Alexander at NEC Europe:
4441 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4442
4443 2002-05-23 Michael Snyder <msnyder@redhat.com>
4444
4445 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4446 for input, rather than parse_and_eval_address.
4447
4448 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4449
4450 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4451 * Makefile.in (sim_d10v_h): Update definition.
4452
4453 2002-05-24 Andrew Cagney <cagney@redhat.com>
4454
4455 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4456 change `2002-05-22 Michael Snyder' below.
4457 (d10v_push_arguments): Ditto.
4458 (d10v_extract_return_value): Ditto.
4459
4460 2002-05-23 Jim Blandy <jimb@redhat.com>
4461
4462 * macrotab.c (check_for_redefinition): Don't complain if the new
4463 definition is the same as the previous one. Take more arguments
4464 to allow the comparison.
4465 (macro_define_object, macro_define_function): Pass more arguments
4466 to check_for_redefinition.
4467
4468 2002-05-22 Michael Snyder <msnyder@redhat.com>
4469
4470 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4471 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4472 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4473 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4474 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4475 Add a temp variable to save a call (and a memory read).
4476 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4477 if possible (so that PC_IN_CALL_DUMMY will work).
4478
4479 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4480
4481 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4482
4483 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4484
4485 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4486 fde->cie_ptr.
4487 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4488 (dwarf2_build_frame_info): Add offset to fde->initial_location
4489 so that frames of shared libraries are mapped correctly.
4490 (execute_stack_op): Change type of 'result' from ULONGEST to
4491 CORE_ADDR.
4492
4493 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4494
4495 * config/alpha/tm-nbsd.h: Include solib.h.
4496
4497 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4498
4499 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4500 assumptions about the host's byte order.
4501
4502 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4503
4504 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4505 to dependency list.
4506 * alphanbsd-tdep.c: Include solib-svr4.h.
4507 * shnbsd-tdep.c: Ditto.
4508
4509 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4510
4511 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4512 nbsd-tdep.h to dependency list.
4513 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4514 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4515 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4516 nbsdaout.mh and nbsdelf.mh consistently.
4517 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4518 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4519 nbsdaout.mt and nbsdelf.mh consistently.
4520 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4521 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4522 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4523 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4524 a.out shared library stuff from here...
4525 * config/nm-nbsdaout.h: ...to here.
4526 * config/tm-nbsd.h: Remove.
4527 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4528 * config/arm/nbsd.mh: Remove.
4529 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4530 nbsd-tdep.o.
4531 * config/arm/nbsdaout.mh: New file.
4532 * config/arm/nbsdelf.mh: New file.
4533 * config/arm/nm-nbsdaout.h: New file.
4534 * config/i386/nbsd.mh: Remove.
4535 * config/i386/nbsd.mt: Remove.
4536 * config/i386/nbsdaout.mh: New file.
4537 * config/i386/nbsdaout.mt: New file.
4538 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4539 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4540 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4541 i386_register_u_addr): Remove.
4542 * config/i386/nm-nbsdaout.h: New file.
4543 * config/i386/nm-nbsdelf.h: Remove.
4544 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4545 (USE_STRUCT_CONVENTION): Remove.
4546 * config/i386/tm-nbsdaout.h: New file.
4547 * config/i386/tm-nbsdelf.h: Remove.
4548 * config/m68k/nbsd.mh: Remove.
4549 * config/m68k/nbsd.mt: Remove.
4550 * config/m68k/nbsdaout.mh: New file.
4551 * config/m68k/nbsdaout.mt: New file.
4552 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4553 * config/m68k/nm-nbsdaout.h: New file.
4554 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4555 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4556 * config/ns32k/nbsd.mh: Remove.
4557 * config/ns32k/nbsd.mt: Remove.
4558 * config/ns32k/nbsdaout.mh: New file.
4559 * config/ns32k/nbsdaout.mt: New file.
4560 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4561 * config/ns32k/nm-nbsdaout.h: New file.
4562 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4563 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4564 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4565 (SVR4_SHARED_LIBS): Remove.
4566 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4567 * config/sparc/nbsd.mh: Remove.
4568 * config/sparc/nbsd.mt: Remove.
4569 * config/sparc/nbsdaout.mh: New file.
4570 * config/sparc/nbsdaout.mt: New file.
4571 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4572 * config/sparc/nbsdelf.mt: New file.
4573 * config/sparc/nm-nbsdaout.h: New file.
4574 * config/sparc/nm-nbsdelf.h: Remove.
4575 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4576 * config/sparc/tm-nbsdaout.h: New file.
4577
4578 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4579
4580 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4581 mipsnbsd-tdep.c
4582 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4583
4584 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4585
4586 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4587 shnbsd-nat.c.
4588 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4589
4590 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4591
4592 * NEWS: Note new MIPS NetBSD native configuration.
4593 * configure.host (mips*-*-netbsd*): New host.
4594 * configure.tgt (mips*-*-netbsd*): New target.
4595 * mipsnbsd-nat.c: New file.
4596 * mipsnbsd-tdep.c: New file.
4597 * mipsnbsd-tdep.h: New file.
4598 * config/mips/nbsd.mh: New file.
4599 * config/mips/nbsd.mt: New file.
4600 * config/mips/nm-nbsd.h: New file.
4601 * config/mips/tm-nbsd.h: New file.
4602
4603 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4604
4605 * Makefile.in (SFILES): Add osabi.c.
4606 (COMMON_OBS): Add osabi.o.
4607 (osabi.o): New dependency list.
4608 * osabi.c: New file.
4609 * osabi.h: New file.
4610 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4611
4612 * Makefile.in (alpha_tdep_h): Define and use instead of
4613 alpha-tdep.h.
4614 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4615 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4616 Remove.
4617 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4618 * alpha-tdep.h: Include osabi.h.
4619 (alpha_abi): Remove.
4620 (gdbarch_tdep): Use generic OS ABI framework.
4621 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4622 gdbarch_register_osabi.
4623 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4624 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4625 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4626
4627 * Makefile.in (sh_tdep_h): Add osabi.h.
4628 * sh-tdep.h (sh_osabi): Remove.
4629 (gdbarch_tdep): Use generic OS ABI framework.
4630 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4631 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4632 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4633 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4634
4635 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4636 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4637 gdbarch_register_osabi.
4638 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4639 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4640 (get_elfosabi): Rename to...
4641 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4642 ABI framework support routines.
4643 (arm_gdbarch_init): Use generic OS ABI framework.
4644 (arm_dump_tdep): Likewise.
4645 (_initialize_arm_tdep): Likewise.
4646 * arm-tdep.h: Include osabi.h.
4647 (arm_abi): Remove.
4648 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4649 osabi member.
4650 (arm_gdbarch_register_os_abi): Remove prototype.
4651 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4652 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4653
4654 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4655 * mips-tdep.c: Include osabi.h.
4656 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4657 OS ABI framework.
4658
4659 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4660
4661 * h8300-tdep.c: Fix formatting.
4662
4663 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4664
4665 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4666 printing vector registers.
4667
4668 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4669
4670 From Fernando Nasser:
4671 * remote.c (remote_async_open_1): Re-throw the exception when the
4672 connection fails.
4673 (remote_cisco_open): Ditto.
4674 (remote_open_1): Ditto.
4675
4676 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4677
4678 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4679 (remote_start_remote): Add uiout parameter. Pass through to
4680 remote_start_remote_dummy.
4681 (remote_open_1): Use catch_exception instead of catch_errors.
4682 (remote_async_open_1): Ditto.
4683 (remote_cisco_open): Ditto.
4684
4685 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4686
4687 * remote.c (remote_start_remote): Replace PTR with void pointer.
4688 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4689 static.
4690
4691 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4692
4693 * gdb_indent.sh: Allow the script to be run in the sim directory.
4694
4695 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4696
4697 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4698 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4699
4700 * corelow.c (core_open): Only call set_gdbarch_from_file if
4701 exec_bfd is NULL.
4702
4703 2002-05-17 Andrey Volkov <avolkov@transas.com>
4704
4705 * h8300-tdep.c: Add support of EXR register
4706 * config/h8300/tm-h8300.h: Ditto.
4707
4708 2002-05-17 Andrey Volkov <avolkov@transas.com>
4709
4710 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4711
4712 2002-05-17 Andrey Volkov <avolkov@transas.com>
4713
4714 * h8300-tdep.c: Change literal regnums to REGNO.
4715
4716 2002-05-17 Jim Blandy <jimb@redhat.com>
4717
4718 * NEWS: Note addition of macro support.
4719
4720 Expand preprocessor macros in C expressions.
4721 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4722 (scan_macro_expansion, scanning_macro_expansion,
4723 finished_macro_expansion): New function declarations.
4724 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4725 variable declarations.
4726 * parser-defs.h (expression_context_pc): New declaration.
4727 * parse.c (expression_context_pc): New variable.
4728 (parse_exp_1): Set expression_context_pc, as well as
4729 expression_context_block.
4730 * c-exp.y (yylex): If we're not already reading the result of a
4731 macro expansion, try to macro-expand the next token. When we're
4732 done scanning a macro expansion, switch back to the mainline text.
4733 Commas and `if's in a macro's expansion don't terminate the input.
4734 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4735 (macro_original_text, macro_expanded_text,
4736 expression_macro_lookup_func, expression_macro_lookup_baton): New
4737 variables.
4738 (scan_macro_expansion, scanning_macro_expansion,
4739 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4740 c_preprocess_and_parse): New functions.
4741 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4742 c_preprocess_and_parse, instead of c_parse.
4743 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4744 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4745
4746 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4747
4748 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4749 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4750 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4751
4752 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4753
4754 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4755
4756 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4757
4758 * Makefile.in (sh_tdep_h): Define and use.
4759 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4760 register enum): Move to...
4761 * * sh-tdep.h: ...here.
4762 * sh-tdep.c: Include sh-tdep.h.
4763 * sh3-rom.c: Likewise.
4764 * shnbsd-tdep.c: Likewise.
4765
4766 2002-05-16 Michael Snyder <msnyder@redhat.com>
4767
4768 * arm-tdep.c: Spelling fix in comment.
4769
4770 2002-05-16 Jim Blandy <jimb@redhat.com>
4771
4772 Add commands for manually expanding macros and showing their
4773 definitions.
4774 * macrocmd.c, macroscope.c, macroscope.h: New files.
4775 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4776 (macroscope_h): New variable.
4777 (HFILES_NO_SRCDIR): Add macroscope.h.
4778 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4779 (macroscope.o, macrocmd.o): New rules.
4780
4781 Teach the Dwarf 2 reader to read macro information.
4782 * dwarf2read.c: #include "macrotab.h".
4783 (dwarf_macinfo_buffer): New variable.
4784 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4785 dwarf_macinfo_size.
4786 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4787 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4788 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4789 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4790 dwarf2_macro_spaces_in_definition): New complaints.
4791 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4792 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4793 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4794 the partial symbol table.
4795 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4796 from what's recorded in the partial symbol table.
4797 (read_file_scope): If the compilation unit has a
4798 `DW_AT_macro_info' attribute, read its macro information.
4799 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4800
4801 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4802
4803 Fix PR gdb/546
4804 * ser-tcp.c: Don't include <netinet/udp.h>.
4805
4806 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4807
4808 * MAINTAINERS: Update my email address.
4809
4810 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4811
4812 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4813 include file of the same name.
4814
4815 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4816
4817 * configure.tgt: Mark v850 as multi-arched.
4818 * config/v850/tm-v850.h: Remove file.
4819 * config/v850/v850.mt: Eliminate TM_FILE.
4820
4821 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4822
4823 * v850-tdep.c: Full multi-arch.
4824 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4825 Define GDB_MULTI_ARCH to 2.
4826
4827 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4828
4829 * p-exp.y (current_type): New static variable.
4830 Carries the type of the expression at the position that is parsed.
4831 (push_current_type, pop_current_type): Two new functions. Used
4832 to store/restore current_type in expression on specific tokens.
4833 (search_field): New static variable. Set to one after parsing a point
4834 as at that point only a FIELDNAME token should be searched.
4835 (FIELDNAME): New token. After a point only a token belonging to
4836 current_type type definition is allowed.
4837 (all over token rules): reset and change current_type according
4838 to rules.
4839 (exp '[' rule): insert implicit array index field if
4840 exp is a pascal string type.
4841
4842 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4843
4844 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4845 frame info. Use frame_info's saved_regs instead of matching member
4846 in extra_frame_info throughout.
4847 (v850_frame_init_saved_regs): New function.
4848 (v850_init_extra_frame_info): Move most functionality into
4849 v850_frame_init_saved_regs().
4850 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4851 (v850_frame_find_saved_regs): Remove declaration.
4852 (FRAME_FIND_SAVED_REGS): Remove definition.
4853 (v850_frame_init_saved_regs): Add declaration.
4854 (FRAME_INIT_SAVED_REGS): Add definition.
4855
4856 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4857
4858 * v850-tdep.c: Begin multi-arch'ing v850.
4859 (v850_target_architecture_hook): Remove function.
4860 (v850_gdbarch_init): New function. Add code previously in
4861 v850_target_architecture_hook().
4862 (_initialize_v850_tdep): Don't set target_architecture_hook.
4863 Call register_gdbarch_init() instead.
4864
4865 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4866
4867 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4868 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4869 (fixup_class_method_type): Likewise.
4870
4871 2002-05-15 Jim Blandy <jimb@redhat.com>
4872
4873 Add macro structures to GDB's symbol tables. Nobody puts anything
4874 in them yet.
4875 * symtab.h (struct symtab): New member: `macro_table'.
4876 * buildsym.h (pending_macros): New global variable.
4877 * buildsym.c: #include "macrotab.h".
4878 (buildsym_init): Initialize `pending_macros'.
4879 (end_symtab): If we found macro information while reading a CU's
4880 debugging info, do build a symtab structure for it. Make the
4881 symtab point to the macro information, and clear the
4882 `pending_macros' pointer which held it while we were reading the
4883 debug info.
4884 (really_free_pendings): Free any pending macro table.
4885 * objfiles.h (struct objfile): New member: `macro_cache'.
4886 * objfiles.c (allocate_objfile): Set allocate and free functions
4887 for the macro cache's objstack.
4888 (free_objfile): Empty the macro cache's obstack.
4889 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4890 set new allocate and free functions for it.
4891 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4892 free functions for the macro cache's objstack. (Why is this
4893 function building its own objfile?)
4894 * symmisc.c (print_objfile_statistics): Print statistics on the
4895 macro bcache.
4896 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4897
4898 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4899
4900 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4901 (REGISTER_U_ADDR): Delete definition.
4902 (arm_register_u_addr): Delete declaration.
4903
4904 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4905
4906 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4907 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4908
4909 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4910
4911 * regcache.c (register_valid): Revise comments refering to "Not
4912 available" and "unavailable".
4913 * frame.c (frame_register_read): Ditto.
4914 * findvar.c (value_of_register): Ditto.
4915
4916 2002-05-15 Andrew Cagney <cagney@redhat.com>
4917
4918 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4919 (remote-sim.o): Update dependencies.
4920 (d10v-tdep.o): Specify dependencies.
4921 (sim_d10v_h): Define.
4922
4923 2002-05-14 Jim Blandy <jimb@redhat.com>
4924
4925 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4926 * macrotab.c (macro_lookup_inclusion, find_definition,
4927 new_macro_table): Same.
4928
4929 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4930 not `! strcmp ()'. This is a dubious improvement.
4931 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4932
4933 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4934 although it's not necessary, to avoid a warning.
4935
4936 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4937
4938 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4939 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4940 TYPE_INSTANCE_FLAGS.
4941 (struct main_type): New.
4942 (struct type): Move most members to struct main_type. Change
4943 cv_type and as_type to new type_chain member. Add instance_flags.
4944 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4945 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4946 (finish_cv_type): Remove prototype.
4947 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4948 Set TYPE_CHAIN.
4949 (alloc_type_instance): New function.
4950 (smash_type): New function.
4951 (make_pointer_type, make_reference_type, make_function_type)
4952 (smash_to_member_type, smash_to_method_type): Call smash_type.
4953 (make_qualified_type): New function.
4954 (make_type_with_address_space): Call make_qualified_type.
4955 (make_cv_type): Likewise.
4956 (finish_cv_type): Remove unnecessary function.
4957 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4958 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4959 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4960 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4961 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4962 * hpread.c (hpread_read_struct_type): Likewise.
4963 * stabsread.c (read_struct_type): Likewise.
4964
4965 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4966
4967 * configure.tgt: Add a catch all sh* target, for cases like
4968 sh[2,3,4]-elf and sh-hms.
4969
4970 2002-05-14 Keith Seitz <keiths@redhat.com>
4971
4972 * event-loop.c (create_file_handler): Don't do anything but
4973 update data when we are given a fd which we are already
4974 monitoring.
4975
4976 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4977
4978 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4979 (update_context): Use __func__ in warnings.
4980
4981 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4982
4983 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4984 and tcp_close to net_open and net_close.
4985 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4986 using UDP if requested. Don't try to disable Nagle on UDP
4987 sockets.
4988 * remote.c (remote_serial_open): New function. Warn about UDP.
4989 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4990
4991 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4992
4993 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4994
4995 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4996
4997 * configure.tgt: Remove sh-hms target.
4998 * MAINTAINERS: Don't list sh-hms as a separate target.
4999
5000 2002-05-13 Jim Blandy <jimb@redhat.com>
5001
5002 Add first preprocessor macro-expansion files.
5003 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5004 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5005 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5006 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5007 (COMMON_OBS): Add macrotab.o, macroexp.o.
5008 (macroexp.o, macrotab.o): New rules.
5009
5010 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5011
5012 * config/m88k/tm-m88k.h: Update copyright.
5013 (m88k_target_write_pc): Declare
5014 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5015 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5016 (SHIFT_INST_REGS): Update definition.
5017 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5018 using old definition of TARGET_WRITE_PC.
5019 * regcache.c (generic_target_write_pc): Delete code handling
5020 NNPC_REGNUM.
5021 * gdbarch.sh (NNPC_REGNUM): Delete.
5022 * gdbarch.h, gdbarch.c: Regenerate.
5023
5024 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5025
5026 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5027 builtin reg number.
5028
5029 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5030
5031 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5032 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5033 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5034 access macros.
5035 * c-typeprint.c (cp_type_print_method_args): Likewise.
5036 (c_type_print_args): Likewise.
5037 * d10v-tdep.c (d10v_push_arguments): Likewise.
5038 (d10v_extract_return_value): Likewise.
5039 * expprint.c (print_subexp): Likewise.
5040 * gdbtypes.c (lookup_primitive_typename): Likewise.
5041 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5042 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5043 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5044 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5045 (TYPE_VECTOR): Likewise.
5046 * hpread.c (hpread_read_struct_type)
5047 (fix_static_member_physnames, fixup_class_method_type)
5048 (hpread_type_lookup): Likewise.
5049 * mdebugread.c (parse_symbol, parse_type): Likewise.
5050 * p-lang.c (is_pascal_string_type): Likewise.
5051 * valops.c (hand_function_call): Likewise.
5052 * x86-64-tdep.c (classify_argument): Likewise.
5053
5054 * hpread.c (hpread_read_function_type)
5055 (hpread_read_doc_function_type): Call replace_type.
5056 * dstread.c (create_new_type): Delete.
5057 (decode_dst_structure, process_dst_function): Call alloc_type.
5058 Use type access macros.
5059
5060 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5061
5062 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5063 the're not supported by the current architecture.
5064 (i387_fill_fxsave): Likewise.
5065
5066 2002-05-12 Fred Fish <fnf@redhat.com>
5067
5068 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5069 sect_index_xxx members to index the first slot in section_offsets
5070 if all of the section_offsets are zero.
5071
5072 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5073
5074 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5075 checked in with last change.
5076
5077 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5078
5079 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5080 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5081 config.sub.
5082
5083 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5084
5085 * Makefile.in: Update dependencies.
5086
5087 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5088
5089 * language.c (local_hex_string_custom): Simplify. Do not depend
5090 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5091
5092 * memattr.c (mem_info_command): Replace calls to
5093 longest_local_hex_string and longest_local_hex_string_custom.
5094 * buildsym.c (make_blockvector): Ditto.
5095 * solib.c (info_sharedlibrary_command): Ditto.
5096 * tracepoint.c (tracepoints_info): Ditto.
5097 * symtab.c (print_msymbol_info): Ditto.
5098
5099 * language.c (local_hex_string): Delete.
5100 (local_hex_string_custom): Delete.
5101 (longest_local_hex_string): Rename to local_hex_string.
5102 (longest_local_hex_string_custom): Rename to
5103 local_hex_string_custom.
5104 * language.h (local_hex_string): Change parameter type to LONGEST.
5105 (local_hex_string_custom): Ditto.
5106 (longest_local_hex_string): Delete declaration.
5107 (longest_local_hex_string_custom): Ditto.
5108
5109 * solib.c: Update copyright.
5110 * memattr.c: Update copyright.
5111
5112 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5113
5114 * arch-utils.h (legacy_register_to_value): Declare.
5115 (legacy_value_to_register): Declare.
5116 (legacy_convert_register_p): Declare.
5117 * arch-utils.c (legacy_register_to_value): New function.
5118 (legacy_value_to_register): New function.
5119 (legacy_convert_register_p): New function.
5120
5121 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5122 (VALUE_TO_REGISTER): Define.
5123 (CONVERT_REGISTER_P): Define.
5124 * gdbarch.h, gdbarch.c: Regenerate.
5125
5126 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5127 VALUE_TO_REGISTER.
5128 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5129 CONVERT_REGISTER_P.
5130
5131 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5132 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5133
5134 * Makefile.in: Update dependencies for valops.c.
5135 * valops.c: Include "gdb_assert.h".
5136 (typecmp): Skip THIS parameter to methods.
5137 (find_method_list): Remove static_memfuncp argument,
5138 update callers. Check for stub methods.
5139 (find_value_oload_method_list): Don't set *static_memfuncp.
5140 (find_overload_match): Don't check for stub methods. Assert
5141 that methods are not stubbed. Handle static methods.
5142 (value_find_oload_method_list): Remove static_memfuncp argument.
5143 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5144 to the argument list for static stub methods.
5145 * value.h (value_find_oload_method_list): Update prototype.
5146
5147 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5148
5149 * arch-utils.h (generic_register_size): Declare.
5150 (generic_register_raw_size, generic_register_virtual_size): Delete
5151 declarations.
5152 * arch-utils.c (generic_register_raw_size): Delete.
5153 (generic_register_size): New function.
5154 (generic_register_virtual_size): Delete.
5155
5156 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5157 default generic_register_size.
5158 * gdbarch.h, gdbarch.c: Re-generate.
5159
5160 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5161 register_virtual_size.
5162 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5163 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5164
5165 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5166
5167 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5168 * gdbarch.h, gdbarch.c: Regenerate.
5169 * gnu-v3-abi.c: Update copyright.
5170 (vtable_address_point_offset): Update.
5171 (gnuv3_rtti_type): Update.
5172 (gnuv3_baseclass_offset): Update.
5173 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5174 (init_fetch_link_map_offsets): Update.
5175 * remote.c (get_remote_state): Update.
5176
5177 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5178
5179 * TODO: Remove value_headof/value_from_vtable_info comment.
5180 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5181 * values.c (value_headof, value_from_vtable_info): Delete.
5182 * value.h (value_from_vtable_info): Delete prototype.
5183
5184 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5185
5186 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5187 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5188 $(gdb_regex_h).
5189 (gdb_assert_h): Define.
5190 (gdb_wait_h): Define.
5191 (gdb_regex_h): Define.
5192
5193 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5194
5195 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5196 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5197
5198 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5199
5200 * nbsd-tdep.c: Fix comment.
5201
5202 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5203
5204 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5205 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5206 (nbsd-tdep.o): New dependency list.
5207 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5208 nbsd-tdep.h.
5209 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5210 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5211 * nbsd-tdep.c: New file.
5212 * nbsd-tdep.h: New file.
5213 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5214 nbsd-tdep.h.
5215 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5216 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5217 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5218 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5219
5220 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5221
5222 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5223 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5224 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5225 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5226 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5227 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5228
5229 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5230
5231 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5232 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5233 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5234 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5235 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5236 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5237 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5238
5239 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5240
5241 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5242 fetch_elfcore_registers to...
5243 * i386nbsd-tdep.c: ...here.
5244 (i386nbsd_use_struct_convention): Rename to...
5245 (i386nbsd_aout_use_struct_convention): ...this.
5246 (i386nbsd_supply_reg): New function.
5247 (i386nbsd_fill_reg): New function.
5248 (fetch_core_registers): Use i386nbsd_supply_reg.
5249 (fetch_elfcore_registers): Likewise.
5250 (_initialize_i386nbsd_tdep): New function.
5251 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5252 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5253 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5254 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5255 (i386nbsd_aout_use_struct_convention): ...this.
5256
5257 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5258
5259 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5260 (store_inferior_registers): Use shnbsd_fill_reg.
5261 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5262 sh_nbsd_supply_register): Collapse into...
5263 (shnbsd_supply_reg): ...this.
5264 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5265 (shnbsd_fill_reg): ...this.
5266 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5267 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5268 (fetch_core_registers): Use shnbsd_supply_reg.
5269 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5270 (sh_nbsd_core_fns): Rename to...
5271 (shnbsd_core_fns): ...this.
5272 (sh_nbsd_elfcore_fns): Rename to...
5273 (shnbsd_elfcore_fns): ...this.
5274 (sh_nbsd_init_abi): Rename to...
5275 (shnbsd_init_abi): ...this.
5276 (_initialize_sh_nbsd_tdep): Rename to...
5277 (_initialize_shnbsd_tdep): ...this.
5278 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5279 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5280 sh_nbsd_fill_register): Remove prototypes.
5281 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5282
5283 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5284
5285 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5286 (i387-nat.o): Delete dependency list.
5287 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5288 (x86-64-linux-nat.o): Likewise.
5289 * i387-nat.c: Delete file, moving contents to...
5290 * i387-tdep.c: ...here.
5291 * i387-nat.h: Rename...
5292 * i387-tdep.h: ...to this.
5293 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5294 * i386-linux-nat.c: Likewise.
5295 * i386bsd-nat.c: Likewise.
5296 * i386gnu-nat.c: Likewise.
5297 * i386nbsd-nat.c: Likewise.
5298 * i386v4-nat.c: Likewise.
5299 * x86-64-linux-nat.c: Likewise.
5300 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5301 * config/i386/go32.mh (NATDEPFILES): Likewise.
5302 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5303 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5304 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5305 * config/i386/linux.mh (NATDEPFILES): Likewise.
5306 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5307 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5308 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5309 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5310
5311 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5312
5313 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5314 (alphanbsd-nat.o): Remove dependency list.
5315 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5316 * alphanbsd-nat.c: Delete. Contents moved to...
5317 * alphanbsd-tdep.c: ...here.
5318 (_initialize_alphanbsd_tdep): Register core functions.
5319 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5320
5321 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5322
5323 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5324 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5325 (alphanbsd-nat.o): Likewise.
5326 (alphabsd-tdep.o): New dependency list.
5327 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5328 (fill_gregset): Use alphabsd_fill_reg.
5329 (supply_fpregset): Use alphabsd_supply_fpreg.
5330 (fill_fpregset): Use alphabsd_fill_fpreg.
5331 (fetch_inferior_registers): Use struct reg and struct fpreg
5332 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5333 and alphabsd_supply_fpreg.
5334 (store_inferior_registers): Use struct reg and struct fpreg
5335 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5336 and alphabsd_fill_fpreg.
5337 * alphabsd-tdep.c: New file.
5338 * alphabsd-tdep.h: New file.
5339 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5340 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5341 alphabsd_supply_fpreg.
5342 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5343 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5344
5345 2002-05-11 Eric Christopher <echristo@redhat.com>
5346
5347 * mips-tdep.c (mips_double_register_type): Fix thinko.
5348 (mips_single_register_type): Ditto.
5349 * MAINTAINERS: Add self.
5350
5351 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5352
5353 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5354 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5355 right thing on architectures with different endianness and/or
5356 integer sizes.
5357
5358 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5359
5360 From Christian Limpach <chris@Pin.LU>
5361 * configure.in: Change sed expression which comments out
5362 NATDEPFILES to also comment out continuation lines.
5363 * configure: Regenerate.
5364
5365 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5366
5367 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5368 big patch.
5369
5370 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5371
5372 * sh-tdep.c: Include correct file.
5373
5374 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5375
5376 New support for sh64-elf (sh5) target.
5377
5378 * configure.tgt: For sh64-elf target, default to sh-elf.
5379
5380 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5381 (struct gdbarch_tdep): Add new fields for new registers and ABI
5382 info.
5383
5384 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5385 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5386 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5387 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5388 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5389 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5390 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5391 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5392 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5393 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5394 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5395 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5396 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5397 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5398 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5399 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5400 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5401 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5402 sign_extend, sh64_nofp_frame_init_saved_regs,
5403 sh64_init_extra_frame_info, sh64_get_saved_register,
5404 sh64_extract_struct_value_address, sh64_pop_frame,
5405 sh64_push_arguments, sh64_extract_return_value,
5406 sh64_store_return_value, sh64_show_media_regs,
5407 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5408 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5409 sh_sh64_register_virtual_type,
5410 sh_sh64_register_convert_to_virtual,
5411 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5412 sh64_register_read, sh64_pseudo_register_write,
5413 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5414 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5415 sh64_do_pseudo_register, sh_compact_do_registers_info,
5416 sh64_do_registers_info, sh_gdbarch_init): New functions.
5417
5418 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5419
5420 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5421
5422 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5423
5424 * linespec.c (decode_line_1): Check for a double quote after
5425 a filename correctly.
5426
5427 2002-05-10 Jim Blandy <jimb@redhat.com>
5428
5429 Properly track the size of the current objfile's .debug_line section.
5430 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5431 (DWARF_LINE_SIZE): New macro.
5432 (dwarf2_build_psymtabs_hard): Record the line section's size in
5433 the partial symbol table.
5434 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5435 symbol table.
5436
5437 2002-05-10 Petr Sorfa <petrs@caldera.com>
5438
5439 * ia64-tdep.c: Handle breakpoints on L instruction type
5440 in MLX instruction bundle by moving the breakpoint to
5441 the third slot (X instruction type) as L holds only data.
5442
5443 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5444
5445 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5446 (process_one_symbol): Complain about discarding local symbols
5447 due to a misplaced N_LBRAC entry.
5448
5449 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5450
5451 From Daniel Berlin <dan@cgsoftware.com>
5452 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5453 decrease the depth we are at, in the case of templates.
5454
5455 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5456
5457 * mips-tdep.c (mips_float_register_type): New function.
5458 (mips_double_register_type): New function.
5459 (mips_print_register): Use them.
5460 (do_fp_register_row): Likewise.
5461
5462 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5463
5464 * signals/signals.c (signals): Remove conditional compilation around
5465 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5466 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5467
5468 2002-05-09 Michael Snyder <msnyder@redhat.com>
5469
5470 * remote-rdp.c (remote_rdp_can_run): Remove.
5471
5472 2002-05-09 Tom Tromey <tromey@redhat.com>
5473
5474 * jv-valprint.c (java_val_print): Handle `char' as a special case
5475 of TYPE_CODE_INT.
5476
5477 2002-05-09 Michael Snyder <msnyder@redhat.com>
5478
5479 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5480 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5481 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5482 str r(0123),[sp,#nn].
5483 (arm_skip_prologue): Ditto. Also make disassembly
5484 order-independent by placing it in a loop.
5485
5486 2002-05-06 Michael Snyder <msnyder@redhat.com>
5487
5488 * stabsread.c (read_type): Add recognition for new attribute:
5489 "@V;" means that an array type is actually a vector.
5490 This is analogous to the vector flag that's been added to dwarf2.
5491
5492 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5493
5494 * i386-tdep.h (i386_abi): New enum.
5495 (struct gdbarch_tdep): Replace os_ident member with abi.
5496 (i386_gdbarch_register_os_abi): New prototype.
5497 * i386-tdep.c (i386_abi_names): New array.
5498 (process_note_abi_tag_sections): Removed.
5499 (process_note_sections): New function.
5500 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5501 (struct i386_abi_handler): New struct.
5502 (i386_abi_handler_list): New variable.
5503 (i386_gdbarch_register_os_abi): New function.
5504 (i386_gdbarch_init): Adapt for the changes given above.
5505
5506 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5507
5508 * gregset.h: Say "GNU/Linux".
5509
5510 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5511
5512 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5513 (build_gdbtypes): Build builtin_type_v2_float.
5514 (_initialize_gdbtypes): Register new builtin type.
5515
5516 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5517
5518 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5519 (clear_gdbarch_swap): New function.
5520 (initialize_non_multiarch): Call.
5521 (gdbarch_update_p): Before calling init(), swap out and clear the
5522 existing architecture.
5523 * gdbarch.c: Regenerate.
5524
5525 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5526
5527 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5528 alphanbsd-tdep.c.
5529
5530 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5531
5532 * sh-nbsd-nat.c: Rename to...
5533 * shnbsd-nat.c: ...this.
5534 * sh-nbsd-tdep.c: Rename to...
5535 * shnbsd-tdep.c: ...this.
5536 * sh-nbsd-tdep.h: Rename to...
5537 * shnbsd-tdep.h: ...this.
5538 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5539 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5540
5541 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5542
5543 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5544 concatenation for command help messages.
5545
5546 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5547
5548 * NEWS: Note new sh*-*-netbsdelf* configuration.
5549 * configure.host: Set gdb_host_cpu to sh for all sh*.
5550 (sh*-*-netbsdelf*): New host.
5551 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5552 (sh*-*-netbsdelf*): New target.
5553 * sh-nbsd-nat.c: New file.
5554 * sh-nbsd-tdep.c: New file.
5555 * sh-nbsd-tdep.h: New file.
5556 * config/sh/nbsd.mh: New file.
5557 * config/sh/nbsd.mt: New file.
5558 * config/sh/nm-nbsd.h: New file.
5559 * config/sh/tm-nbsd.h: New file.
5560
5561 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5562
5563 * sh-tdep.c (sh_osabi_names): Declare.
5564 (process_note_abi_tag_sections): New function.
5565 (get_elfosabi): Ditto.
5566 (sh_gdbarch_register_os_abi): Ditto.
5567 (sh_dump_tdep): Ditto.
5568 _initialize_sh_tdep): Use gdbarch_register to register
5569 sh_gdbarch_init and sh_dump_tdep.
5570 * config/sh/tm-sh.h (sh_osabi): Declare.
5571 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5572
5573 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5574
5575 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5576 (thumb_scan_prologue): Ditto.
5577 (arm_find_callers_reg): Ditto.
5578 (arm_frame_chain): Ditto.
5579 (arm_init_extra_frame_info): Ditto.
5580 (arm_frame_saved_pc): Ditto.
5581 (arm_pop_frame): Ditto.
5582 (arm_push_return_address): New function.
5583 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5584 call_dummy_location, call_dummy_breakpoint_offset_p,
5585 call_dummy_breakpoint_offset, call_dummy_p,
5586 call_dummy_stack_adjust_p, call_dummy_words,
5587 sizeof_call_dummy_words, call_dummy_start_offset,
5588 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5589 call_dummy_address, push_return_address and push_dummy_frame for
5590 generic dummy frames.
5591
5592 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5593
5594 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5595 size computation for alloca.
5596 (sh_fp_frame_init_saved_regs): Likewise.
5597
5598 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5599
5600 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5601 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5602 * arm-tdep.c (arm_store_return_value): Use them.
5603 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5604 * remote-rdp.c (remote_rdp_fetch_register): Use
5605 ARM_MAX_REGISTER_RAW_SIZE.
5606 (remote_rdp_store_register): Likewise.
5607
5608 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5609
5610 * dwarf2cfi.c: Code cleanup, removed unused variables,
5611 added default labels to switch {} statements.
5612 * x86-64-tdep.c: Ditto.
5613 * x86-64-linux-nat.c: Ditto.
5614
5615 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5616
5617 * solib.h: Protect against multiple inclusion.
5618
5619 2002-05-06 Jim Blandy <jimb@redhat.com>
5620
5621 Add first preprocessor macro-expansion files.
5622 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5623 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5624 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5625 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5626 (COMMON_OBS): Add macrotab.o, macroexp.o.
5627 (macroexp.o, macrotab.o): New rules.
5628
5629 Separate the job of reading the line number info statement program
5630 header (...expialidocious) out into its own function.
5631 * dwarf2read.c (struct line_head, struct filenames, struct
5632 directories): Replace with...
5633 (struct line_header): New structure, containing the full
5634 contents of the statement program header, including the
5635 include directory and file name tables.
5636 (read_file_scope): If we have line number info, instead of just
5637 calling dwarf_decode_lines to do all the work, call
5638 dwarf_decode_line_header first to get a `struct line_header'
5639 containing the data in the statement program header, and then
5640 pass that to dwarf_decode_lines, which will pick up where that
5641 left off. Be sure to clean up the `struct line_header' object.
5642 (dwarf_decode_line_header, free_line_header, add_include_dir,
5643 add_file_name): New functions.
5644 (dwarf_decode_lines): Move all the code to read the statement
5645 program header into dwarf_decode_line_header. Take the line
5646 header it built as the first argument, instead of the offset to
5647 the compilation unit's line number info. Use the new `struct
5648 line_header' type instead of the old structures. No need to do
5649 cleanups here now, since we don't allocate anything.
5650 (dwarf2_statement_list_fits_in_line_number_section,
5651 dwarf2_line_header_too_long): New complaints.
5652
5653 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5654
5655 * gdbtypes.c (init_vector_type): New function.
5656 (build_builtin_type_vec128): Simplify the representation of SIMD
5657 registers.
5658 (build_gdbtypes): Initialize new builtin vector types.
5659 (_initialize_gdbtypes): Register new vector types with gdbarch.
5660 (builtin_type_v4_float, builtin_type_v4_int32,
5661 builtin_type_v8_int16, builtin_type_v16_int8,
5662 builtin_type_v2_int32, builtin_type_v4_int16,
5663 builtin_type_v8_int8): New (renamed) SIMD types.
5664
5665 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5666
5667 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5668 (i387_fill_fxsave): Likewise.
5669
5670 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5671
5672 * alpha-tdep.c (alpha_extract_return_value): Don't use
5673 non-constant array size in prototype.
5674
5675 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5676
5677 From Brian Taylor <briant at model dot com>:
5678 * ui-out.c (ui_out_field_core_addr): Use the function
5679 longest_local_hex_string_custom'to format addresses > 32 bits
5680 wide.
5681
5682 * ui-out.c (ui_out_field_core_addr): Update comment.
5683
5684 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5685
5686 * stack.c (select_and_print_frame): Make static. Delete the
5687 parameter `level'.
5688 (func_command): Update call.
5689 (select_frame_command): Delete code computing the frame level.
5690 * frame.h (select_and_print_frame): Delete declaration.
5691
5692 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5693
5694 * sparc-tdep.c (sparc_get_saved_register): Comment why
5695 get_prev_frame call is safe.
5696
5697 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5698
5699 * frame.h (select_frame): Delete level parameter.
5700 * stack.c (select_frame): Update. Use frame_relative_level to
5701 obtain the frame's level.
5702 (select_and_print_frame): Update call.
5703 (select_frame_command): Ditto.
5704 (up_silently_base): Ditto.
5705 (down_silently_base): Ditto.
5706 * ocd.c (ocd_start_remote): Ditto.
5707 * remote-rdp.c (remote_rdp_open): Ditto.
5708 * remote-mips.c (mips_initialize): Ditto.
5709 (common_open): Ditto.
5710 * remote-e7000.c (e7000_start_remote): Ditto.
5711 * m3-nat.c (select_thread): Ditto.
5712 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5713 (child_get_current_exception_event): Ditto.
5714 * varobj.c (varobj_create): Ditto.
5715 (varobj_update): Ditto.
5716 (c_value_of_root): Ditto.
5717 * tracepoint.c (finish_tfind_command): Ditto.
5718 * corelow.c (core_open): Ditto.
5719 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5720 * thread.c (info_threads_command): Ditto.
5721 (switch_to_thread): Ditto.
5722 * infrun.c (normal_stop): Ditto.
5723 (restore_selected_frame): Ditto.
5724 (restore_inferior_status): Ditto.
5725 * breakpoint.c (insert_breakpoints): Ditto.
5726 (watchpoint_check): Ditto.
5727 (bpstat_stop_status): Ditto.
5728 (do_enable_breakpoint): Ditto.
5729 * blockframe.c (flush_cached_frames): Ditto.
5730 (reinit_frame_cache): Ditto.
5731
5732 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5733
5734 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5735 maintainer.
5736
5737 2002-05-04 Jim Blandy <jimb@redhat.com>
5738
5739 * gdbtypes.c (replace_type): Doc fix.
5740
5741 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5742
5743 * valprint.c (strcat_longest): Delete commented out function.
5744 Update copyright.
5745
5746 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5747
5748 * MAINTAINERS: Mark a29k as deleted.
5749 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5750 Move new configurations to the top.
5751 * configure.tgt: Remove a29k.
5752 * config/a29k/tm-vx29k.h: Delete.
5753 * config/a29k/vx29k.mt: Delete.
5754 * config/a29k/tm-a29k.h: Delete.
5755 * config/a29k/a29k-udi.mt: Delete.
5756 * config/a29k/a29k.mt: Delete.
5757 * a29k-tdep.c: Delete.
5758 * remote-udi.c: Delete.
5759 * remote-mm.c: Delete.
5760 * remote-eb.c: Delete.
5761 * remote-adapt.c: Delete.
5762 * Makefile.in: Remove obsolete code.
5763 * config/s390/s390x.mt: Ditto.
5764 * config/s390/s390.mt: Ditto.
5765 * config/sparc/sparclynx.mh: Ditto.
5766 * config/sparc/linux.mh: Ditto.
5767 * config/pa/hppaosf.mh: Ditto.
5768 * config/pa/hppabsd.mh: Ditto.
5769 * config/ns32k/nbsd.mt: Ditto.
5770 * config/mips/vr5000.mt: Ditto.
5771 * config/m68k/sun3os4.mh: Ditto.
5772 * config/m68k/nbsd.mt: Ditto.
5773 * config/m68k/m68klynx.mh: Ditto.
5774 * config/m32r/m32r.mt: Ditto.
5775 * config/i386/x86-64linux.mt: Ditto.
5776 * config/i386/nbsdelf.mt: Ditto.
5777 * config/i386/nbsd.mt: Ditto.
5778 * config/i386/i386lynx.mh: Ditto.
5779
5780 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5781
5782 * target.c (debug_print_register): New function. Handle oversize
5783 registers.
5784 (debug_to_fetch_registers): Call.
5785 (debug_to_store_registers): Call.
5786
5787 2002-05-03 Jim Blandy <jimb@redhat.com>
5788
5789 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5790 (read_type): Doc fix.
5791 * gdbtypes.c (replace_type): Doc fix.
5792
5793 * stabsread.c (multiply_defined_struct): New complaint.
5794 (read_struct_type): If the type we were passed isn't empty, or
5795 incomplete, don't read the new struct type into it; complain,
5796 and return the original type unchanged. Take a new `type_code'
5797 argument, which is the type code for the new type.
5798 (read_type): Rather than storing the type's type code here, pass
5799 it as an argument to read_struct_type, and let that take care of
5800 storing it. That way, we don't overwrite the original type code,
5801 so read_struct_type can use it to decide whether we're overwriting
5802 something we shouldn't.
5803 (complain_about_struct_wipeout): New function.
5804
5805 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5806
5807 * gdbarch.sh: Assert that gdbarch is non-NULL.
5808 * gdbarch.c: Regenerate.
5809
5810 2002-05-03 Jason Merrill <jason@redhat.com>
5811
5812 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5813 and return NULL.
5814
5815 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5816
5817 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5818 (x86_64_dwarf2gdb_regno_map_length),
5819 (x86_64_dwarf2_reg_to_regnum): Added.
5820 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5821 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5822 (_initialize_x86_64_tdep): Synced with the change above.
5823 (x86_64_skip_prologue): Reformulated message.
5824
5825 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5826
5827 * f-exp.y: Also use new prev_lexptr variable
5828 to improve error reporting. Based on Michael Snyder
5829 2002-04-24 dated patch to c-exp.y.
5830 * jv-exp.y: Likewise.
5831 * m2-exp.y: Likewise.
5832
5833 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5834
5835 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5836 we are dealing with vectors.
5837
5838 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5839
5840 * config/m68k/tm-nbsd.h: Obvious fix,
5841 correct machine name.
5842
5843 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5844
5845 * p-typeprint.c (pascal_type_print_base): Add support
5846 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5847
5848 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5849
5850 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5851 for fondamental pascal 'char' type.
5852
5853 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5854
5855 * p-lang.h (is_pascal_string_type): Declaration changed,
5856 new sixth argument of type char ** added.
5857 * p-lang.c (is_pascal_string_type): Implementation
5858 changed. Args length_pos, length_size, string_pos, char_size
5859 can now be NULL. New argument arrayname set to the field
5860 name of the char array. Return value set to char array
5861 field index plus one.
5862 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5863 is_pascal_string_type function.
5864
5865 2002-05-02 Andrew Cagney <cagney@redhat.com>
5866
5867 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5868 <cagney@redhat.com> change.
5869 * gdbarch.c: Regenerate.
5870
5871 2002-05-02 Andrew Cagney <cagney@redhat.com>
5872
5873 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5874 before probing for a new one. Detect errorenous gdbarch_init
5875 functions.
5876 * gdbarch.c: Regenerate.
5877
5878 2002-05-01 Andrew Cagney <cagney@redhat.com>
5879
5880 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5881 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5882 * config/v850/tm-v850.h: Ditto. Update copyright.
5883
5884 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5885
5886 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5887 current_gdbarch.
5888
5889 2002-04-30 Michael Snyder <msnyder@redhat.com>
5890
5891 * arm-tdep.c: Whitespace clean-ups.
5892 (arm_skip_prologue): Fix thinko; two lines
5893 should have been removed as part of 4/24 change.
5894
5895 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5896
5897 * rs6000-tdep.c: Added comment describing how fpscr register
5898 numbers were chosen.
5899
5900 2002-04-30 Michael Snyder <msnyder@redhat.com>
5901
5902 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5903
5904 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5905
5906 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5907 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5908 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5909
5910 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5911
5912 From Louis Hamilton <hamilton@redhat.com>:
5913 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5914 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5915 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5916 not bfd-private xcoff data, to determine wordsize.
5917 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5918
5919 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5920
5921 GDB 5.2 released from 5.2 branch.
5922
5923 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5924
5925 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5926 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5927 (x86_64_register_info_table): Added comments with register numbers.
5928
5929 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5930
5931 * rs6000-tdep.c (rs6000_extract_return_value,
5932 rs6000_store_return_value): Handle returning vectors.
5933 (rs6000_gdbarch_init): Use
5934 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5935 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5936 New function.
5937 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5938 vectors.
5939 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5940 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5941
5942 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5943
5944 * hpread.c (hpread_psymtab_to_symtab_1,
5945 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5946 with fprintf_unfiltered (gdb_stderr,...).
5947
5948 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5949
5950 * remote-array.c (printf_monitor, write_monitor,
5951 array_insert_breakpoint, array_remove_breakpoint ):
5952 Replace fprintf (stderr,...
5953 with fprintf_unfiltered (gdb_stderr,....
5954 * remote-es.c: Likewise.
5955 * remote-os9k.c: Likewise.
5956 * remote-st.c: Likewise.
5957
5958 2002-04-28 Andreas Schwab <schwab@suse.de>
5959
5960 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5961 linux-proc.o and gcore.o.
5962
5963 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5964
5965 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5966 code without frame pointers.
5967
5968 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5969
5970 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5971 ON_STACK is needed.
5972
5973 2002-04-26 Ben Elliston <bje@redhat.com>
5974
5975 * target.c (do_xfer_memory): Correct reference to the new option
5976 "trust-readonly-sections".
5977
5978 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5979
5980 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5981 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5982 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5983 vectors.
5984 (read_array_type): Record the fact that this array type is really a
5985 vector (i.e. are passed in by value).
5986
5987 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5988
5989 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5990 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5991 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5992 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5993 * alpha-linux-tdep.c: Include frame.h.
5994 (alpha_linux_sigcontext_addr): New function.
5995 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5996 alpha_linux_sigcontext_addr.
5997 * alpha-osf1-tdep.c: Include gdbcore.h.
5998 (alpha_osf1_sigcontext_addr): New function.
5999 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6000 alpha_osf1_sigcontext_addr.
6001 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6002 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6003
6004 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6005
6006 * stack.c (selected_frame_level):
6007 (select_frame): Do not set selected_frame_level.
6008 * frame.h (selected_frame_level): Delete declaration.
6009
6010 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6011
6012 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6013 convert_from_func_ptr-addr when AIX / PowerOpen.
6014
6015 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6016
6017 * valops.c (hand_function_call): Call
6018 generic_save_call_dummy_addr.
6019 * frame.h (generic_save_call_dummy_addr): Declare.
6020 * blockframe.c (struct dummy_frame): Add fields call_lo and
6021 call_hi.
6022 (generic_find_dummy_frame): Check for PC in range call_lo to
6023 call_hi instead of entry_point_address.
6024 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6025 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6026 (generic_save_call_dummy_addr): New function.
6027
6028 2002-04-24 David S. Miller <davem@redhat.com>
6029
6030 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6031 sparc_skip_prologue.
6032 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6033 information to find prologue when possible.
6034 (sparc_prologue_frameless_p): Call examine_prologue directly.
6035 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6036 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6037 second argument.
6038 (SKIP_PROLOGUE): Likewise.
6039
6040 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6041
6042 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6043 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6044 indicate that the condition it was testing is always true.
6045 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6046 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6047 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6048
6049 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6050
6051 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6052 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6053 tdep->jb_pc and tdep->jb_elt_size.
6054 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6055 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6056 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6057 * alpha-nat.c (get_longjmp_target): Remove.
6058 (JB_ELEMENT_SIZE): Ditto.
6059 (JB_PC): Ditto.
6060 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6061 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6062 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6063 to alpha_get_longjmp_target.
6064 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6065 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6066 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6067
6068 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6069
6070 * README: Update to GDB 5.2.
6071
6072 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6073
6074 * gdbarch.sh (LC_ALL): Set to `c'.
6075
6076 2002-04-25 Theodore A. Roth <troth@verinet.com>
6077
6078 * avr-tdep.c: Ran through gdb_indent.sh.
6079
6080 2002-04-25 Theodore A. Roth <troth@verinet.com>
6081
6082 * MAINTAINERS: Add myself as AVR maintainer.
6083 * NEWS: Note new target avr.
6084
6085 2002-04-25 Theodore A. Roth <troth@verinet.com>
6086
6087 * Makefile.in: Add support for AVR target.
6088 * configure.tgt: Add support for AVR target.
6089 * avr-tdep.c: New file
6090 * config/avr/avr.mt: New file.
6091
6092 2002-04-25 Theodore A. Roth <troth@verinet.com>
6093
6094 * MAINTAINERS: Add myself to write-after-approval.
6095
6096 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6097
6098 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6099 with fprintf_unfiltered (gdb_stderr,....
6100
6101 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6102
6103 Fix PR gdb/508.
6104 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6105
6106 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6107
6108 * p-exp.y: Also use new prev_lexptr variable
6109 to improve error reporting. Based on Michael Snyder
6110 2002-04-24 dated patch to c-exp.y.
6111
6112 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6113
6114 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6115 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6116 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6117 to 0.
6118 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6119 and struct value.
6120 (FUNCTION_START_OFFSET): Remove.
6121 (BREAKPOINT): Ditto.
6122
6123 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6124
6125 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6126 * NEWS: Ditto.
6127
6128 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6129
6130 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6131 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6132 alpha_linux_pc_in_sigtramp.
6133 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6134 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6135 alpha_osf1_pc_in_sigtramp.
6136 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6137 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6138 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6139 alphafbsd_pc_in_sigtramp.
6140 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6141 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6142 alphanbsd_pc_in_sigtramp.
6143 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6144 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6145
6146 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6147
6148 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6149
6150 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6151
6152 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6153 alphanbsd-tdep.c.
6154 (alphanbsd-nat.o): New dependency list.
6155 (alphanbsd-tdep.o): Ditto.
6156 * NEWS: Note new native NetBSD/alpha configuration.
6157 * alphanbsd-nat.c: New file.
6158 * alphanbsd-tdep.c: Ditto.
6159 * configure.host (alpha*-*-netbsd*): New host.
6160 * configure.tgt (alpha*-*-netbsd*): New target.
6161 * config/alpha/nbsd.mh: New file.
6162 * config/alpha/nbsd.mt: Ditto.
6163 * config/alpha/nm-nbsd.h: Ditto.
6164 * config/alpha/tm-nbsd.h: Ditto.
6165
6166 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6167
6168 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6169 (alpha-osf1-tdep.o): New dependency list.
6170 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6171 and skip_sigtramp_frame members.
6172 * alpha-linux-tdep.c: Include gdbcore.h.
6173 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6174 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6175 * alpha-osf1-tdep.c: New file.
6176 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6177 alpha-osf1-dep.c.
6178 (alpha_frame_past_sigtramp_frame): New function.
6179 (alpha_dynamic_sigtramp_offset): Ditto.
6180 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6181 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6182 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6183 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6184 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6185 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6186 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6187 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6188 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6189 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6190 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6191 to find_solib_trampoline_target.
6192 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6193 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6194 (SKIP_TRAMPOLINE_CODE): Remove.
6195 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6196 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6197 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6198 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6199 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6200 (PROC_SIGTRAMP_MAGIC): Ditto.
6201 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6202 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6203 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6204 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6205 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6206
6207 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6208
6209 * NEWS: Note that Alpha targets are now multi-arch.
6210
6211 2002-04-24 Michael Snyder <msnyder@redhat.com>
6212
6213 * parser-defs.h (prev_lexptr): New external variable.
6214 * parse.c (parse_exp_1): Set prev_lexptr to null before
6215 calling the language-specific parser.
6216 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6217 (yyerror): Use prev_lexptr in error reporting.
6218
6219 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6220
6221 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6222 * gregset.h: If FILL_FPXREGSET is defined, provide
6223 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6224 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6225 is defined, call fill_fpxregset.
6226
6227 2002-04-24 Roland McGrath <roland@frob.com>
6228
6229 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6230 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6231 (supply_gregset, supply_fpregset): New functions.
6232
6233 * gnu-nat.c (gnu_find_memory_regions): New function.
6234 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6235 (gnu_xfer_memory): Add a cast.
6236
6237 2002-04-24 Michael Snyder <msnyder@redhat.com>
6238
6239 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6240 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6241 of argument regs ("str r(0123), [r11, #-nn"]).
6242 (arm_skip_prologue): Better handling for frameless functions.
6243 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6244 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6245
6246 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6247
6248 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6249 NUM_PSEUDO_REGS can be used.
6250
6251 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6252
6253 * arch-utils.h: Update copyright.
6254
6255 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6256 * gdbarch.h, gdbarch.c: Re-generate.
6257
6258 * inferior.h (IN_SIGTRAMP): Delete definition.
6259 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6260 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6261
6262 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6263 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6264 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6265 (find_proc_framesize): Ditto.
6266 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6267 (alpha_init_extra_frame_info): Ditto.
6268 * infrun.c (handle_inferior_event): Ditto.
6269 (handle_inferior_event): Ditto.
6270 (check_sigtramp2): Ditto.
6271 * blockframe.c (create_new_frame): Ditto.
6272 (get_prev_frame): Ditto.
6273 * ppc-linux-tdep.c: Update comments.
6274 * i386-linux-tdep.c: Update comments.
6275 * breakpoint.c (bpstat_what): Update comment.
6276
6277 2002-04-24 David S. Miller <davem@redhat.com>
6278
6279 * i960-tdep.c (register_in_window_p): New function.
6280 (i960_find_saved_register): Use it instead of
6281 REGISTER_IN_WINDOW_P.
6282 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6283
6284 * symtab.h (find_stab_function_addr): Kill extern.
6285 * minsyms.c (find_stab_function_addr): Remove from here...
6286 * dbxread.c: ... to here, and mark it static.
6287
6288 2002-04-20 David S. Miller <davem@redhat.com>
6289
6290 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6291 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6292
6293 2002-04-21 David S. Miller <davem@redhat.com>
6294
6295 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6296 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6297 (vx_write_register): Likewise.
6298
6299 2002-04-23 J. Brobecker <brobecker@gnat.com>
6300
6301 * source.c (is_regular_file): New function.
6302 (openp): Check wether file to open is a regular file
6303 to avoid opening directories.
6304
6305 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6306
6307 * findvar.c (extract_signed_integer): Cast printf argument
6308 to suppress format warning.
6309 (extract_unsigned_integer): Likewise.
6310 * infcmd.c (registers_info): Likewise.
6311 * top.c (get_prompt_1): Likewise.
6312 * valops.c (value_assign): Likewise.
6313 * valprint.c (print_decimal): Likewise.
6314
6315 2002-04-22 H.J. Lu (hjl@gnu.org)
6316
6317 * c-exp.y (typebase): Support
6318
6319 [long|long long|short] [signed|unsigned] [int|]
6320
6321 and
6322
6323 signed [long|long long|short] int
6324
6325 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6326
6327 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6328 and vax-tdep.h.
6329 * vax-tdep.h: New file.
6330 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6331 Make several routines static.
6332 (vax_get_saved_register): New function.
6333 (vax_gdbarch_init): New function.
6334 (_initialize_vax_tdep): Register vax_gdbarch_init.
6335 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6336 Remove macros now under the control of gdbarch.
6337
6338 2002-04-22 Michael Snyder <msnyder@redhat.com>
6339
6340 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6341 Some whitespace and coding standards tweaks.
6342
6343 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6344
6345 * vax-tdep.c: Include regcache.h.
6346 (vax_call_dummy_words): New.
6347 (sizeof_vax_call_dummy_words): New.
6348 (vax_fix_call_dummy): New function.
6349 (vax_saved_pc_after_call): Ditto.
6350 * config/vax/tm-vax.h: Don't include regcache.h.
6351 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6352 (CALL_DUMMY): Remove.
6353 (CALL_DUMMY_WORDS): Define.
6354 (SIZEOF_CALL_DUMMY_WORDS): Define.
6355 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6356
6357 2002-04-18 Michael Snyder <msnyder@redhat.com>
6358
6359 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6360
6361 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6362
6363 * vax-tdep.c (vax_frame_chain): New function.
6364 (vax_push_dummy_frame): Ditto.
6365 (vax_pop_frame): Ditto.
6366 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6367 (FRAMELESS_FUNCTION_INVOCATION): Use
6368 generic_frameless_function_invocation_not.
6369 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6370 (POP_FRAME): Use vax_pop_frame.
6371
6372 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6373
6374 * vax-tdep.c (vax_store_struct_return): New function.
6375 (vax_extract_return_value): Ditto.
6376 (vax_store_return_value): Ditto.
6377 (vax_extract_struct_value_address): Ditto.
6378 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6379 vax_store_struct_return.
6380 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6381 (STORE_RETURN_VALUE): Use vax_store_return_value.
6382 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6383
6384 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6385
6386 * vax-tdep.c (vax_frame_saved_pc): New function.
6387 (vax_frame_args_address_correct): Ditto.
6388 (vax_frame_args_address): Ditto.
6389 (vax_frame_locals_address): Ditto.
6390 (vax_frame_num_args): Move code to be in proximity to
6391 other frame-related functions.
6392 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6393 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6394 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6395 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6396 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6397
6398 2002-04-22 H.J. Lu (hjl@gnu.org)
6399
6400 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6401 includedir.
6402
6403 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6406 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6407 (FRAME_INIT_SAVED_REGS): New macro.
6408
6409 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6410
6411 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6412
6413 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6414
6415 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6416 where needed.
6417 (fetch_osf_core_registers): Likewise.
6418 (supply_gregset): Likewise.
6419
6420 2002-04-22 J. Brobecker <brobecker@gnat.com>
6421
6422 * symfile.h (get_section_index): Define.
6423 * symfile.c (get_section_index): New function.
6424 * mdebugread.c (SC_IS_SBSS): New macro.
6425 (SC_IS_BSS): Return true for the scBss storage class only, as
6426 the scSBss storage class refers to the .sbss section.
6427 (parse_partial_symbols): Discard the symbols which associated
6428 section does not exist.
6429 Make sure to use the .sbss section index for symbols which
6430 storage class is scBss, rather than using the .bss section index.
6431
6432 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6433
6434 * vax-tdep.c: Update copyright years.
6435 (vax_register_name): New function.
6436 (vax_register_byte): Ditto.
6437 (vax_register_raw_size): Ditto.
6438 (vax_register_virtual_size): Ditto.
6439 (vax_register_virtual_type): Ditto.
6440 * config/vax/tm-vax.h: Update copyright years.
6441 (REGISTER_NAMES): Remove.
6442 (REGISTER_NAME): Define.
6443 (REGISTER_BYTE): Use vax_register_byte.
6444 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6445 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6446 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6447
6448 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6449
6450 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6451 declaration
6452 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6453
6454 2002-04-21 David S. Miller <davem@redhat.com>
6455
6456 * arch-utils.c (generic_prologue_frameless_p): Kill
6457 SKIP_PROLOGUE_FRAMELESS_P code.
6458 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6459 references.
6460 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6461 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6462 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6463 references.
6464 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6465 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6466 (sparc_gdbarch_init): Pass it to
6467 set_gdbarch_prologue_frameless_p.
6468
6469 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6470
6471 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6472 (alphabsd-nat.o): New dependency list.
6473
6474 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6475
6476 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6477 alphafbsd-tdep.c.
6478 (alpha-linux-tdep.o): New dependency list.
6479 (alphafbsd-tdep.o): Likewise.
6480
6481 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6482
6483 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6484 to here...
6485 * alpha-tdep.c: ...from here.
6486 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6487
6488 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6489
6490 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6491 prototype from here...
6492 * alpha-tdep.h: ...to here.
6493
6494 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6495
6496 * frame.h (selected_frame_level): Document as deprecated.
6497 (frame_relative_level): Declare.
6498 * stack.c (frame_relative_level): New function.
6499 (selected_frame_level): Document as deprecated.
6500 (select_frame): Do not set the selected_frame_level.
6501
6502 * stack.c (frame_info, record_selected_frame): Update.
6503 (frame_command, current_frame_command): Update.
6504 (up_silently_base, up_command, down_silently_base): Update.
6505 (down_command): Update.
6506 * inflow.c (kill_command): Update.
6507 * tracepoint.c (finish_tfind_command): Update.
6508 * corelow.c (core_open): Update.
6509 * thread.c (info_threads_command): Update.
6510 (do_captured_thread_select): Update.
6511 * infcmd.c (finish_command): Update.
6512 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6513
6514 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6515
6516 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6517
6518 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6519
6520 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6521 type const.
6522
6523 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6524
6525 * alphafbsd-tdep.c: Update copyright years. Include
6526 alpha-tdep.h.
6527 (alphafbsd_use_struct_convention): Make static.
6528 (alphafbsd_init_abi): New function.
6529 (_initialize_alphafbsd_tdep): New function.
6530 * config/alpha/tm-fbsd.h: Update copyright years.
6531 (USE_STRUCT_CONVENTION): Remove.
6532
6533 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6534
6535 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6536 an Alpha ABI variant.
6537 (alpha_abi_handler_list): Declare.
6538 (alpha_gdbarch_register_os_abi): New function.
6539 (alpha_gdbarch_init): Give registered ABI variant handlers a
6540 chance to tweak the gdbarch once we have set up defaults.
6541 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6542
6543 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6544
6545 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6546 to standard_coerce_float_to_double.
6547 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6548
6549 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6550
6551 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6552 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6553 from gdbarch_tdep rather than a constant.
6554 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6555 the default text address for all Alpha Unix ABIs.
6556 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6557 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6558
6559 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6560
6561 * alpha-tdep.h: New file. Includes several Alpha target constants
6562 taken from...
6563 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6564 let gdbarch deal with.
6565 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6566 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6567 to dependency list.
6568 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6569 Alpha target register names.
6570 * alphabsd-nat.c: Likewise.
6571 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6572 Alpha target register names. Make serveral routines static.
6573 (alpha_get_saved_register): New function.
6574 (alpha_abi_names): New.
6575 (process_note_abi_tag_sections): New function.
6576 (get_elfosabi): New function.
6577 (alpha_gdbarch_init): New function.
6578 (alpha_dump_tdep): New function.
6579 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6580
6581 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6582
6583 * frame.c (find_saved_register): Delete #ifdef
6584 HAVE_REGISTER_WINDOWS code.
6585 * config/sparc/tm-sparc.h: Update comments.
6586 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6587
6588 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6589
6590 * i960-tdep.c (i960_find_saved_register): New function.
6591 (i960_get_saved_register): New function.
6592 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6593 (i960_get_saved_register): Declare.
6594 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6595
6596 2002-04-20 David S. Miller <davem@redhat.com>
6597
6598 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6599
6600 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6601
6602 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6603 instead of NUM_PSEUDO_REGS.
6604
6605 2002-04-20 David S. Miller <davem@redhat.com>
6606
6607 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6608 GDB_MULTI_ARCH_PARTIAL
6609 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6610 define, let tm-sp64.h do it.
6611
6612 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6613
6614 * frame.c (find_saved_register): Avoid a NULL pointer
6615 dereference and actually walk the frame list.
6616
6617 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6618
6619 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6620 sorted in most most-recent-used order. Document.
6621 * gdbarch.h, gdbarch.c: Regenerate.
6622
6623 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6624
6625 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6626 instead of ->prev.
6627 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6628 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6629 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6630 instead of ->prev.
6631
6632 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6633
6634 Fix PR gdb/471.
6635 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6636 (build_builtin_type_vec128): Ditto.
6637 (append_composite_type_field): Fix calculation of type length in
6638 union case.
6639
6640 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6641
6642 * config/djgpp/README: Update.
6643
6644 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6645 compiler warnings.
6646
6647 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6648
6649 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6650 (alpha_setup_arbitrary_frame): ...to this.
6651 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6652 for alpha_setup_arbitrary_frame.
6653
6654 2002-04-18 Andrew Cagney <cagney@redhat.com>
6655
6656 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6657 * gdbarch.h, gdbarch.c: Regenerate.
6658
6659 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6660 * target.h (memory_breakpoint_from_pc): Update declaration.
6661 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6662
6663 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6664 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6665 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6666 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6667 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6668 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6669 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6670 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6671 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6672 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6673 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6674 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6675
6676 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6677 const pointer.
6678 * monitor.c (monitor_insert_breakpoint): Ditto.
6679 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6680
6681 * config/mcore/tm-mcore.h: Update copyright.
6682 * mem-break.c: Ditto.
6683 * xstormy16-tdep.c: Ditto.
6684
6685 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6686
6687 * p-exp.y: Add precedence rule for '^' token.
6688 This removes the shift/reduce conflicts.
6689 Remove the comment concerning these shift/reduce conflicts.
6690
6691 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6692
6693 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6694 (registers_powerpc_nofp): New register set for processors
6695 without floating point unit.
6696
6697 2002-04-18 David S. Miller <davem@redhat.com>
6698
6699 * MAINTAINERS: Add myself to write-after-approval.
6700
6701 2002-04-17 Michael Snyder <msnyder@redhat.com>
6702
6703 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6704
6705 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6706
6707 * rs6000-tdep.c (frame_initial_stack_address): Use
6708 frame_register_read to read the alloca_reg.
6709
6710 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6711
6712 * frame.c (find_saved_register): Find saved registers in the next
6713 not prev frame.
6714 Fix PR gdb/365.
6715
6716 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6717
6718 * gdbarch.sh (LANG): Set to ``c''.
6719
6720 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6721
6722 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6723
6724 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6725
6726 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6727 Update copyright.
6728
6729 * hpread.c (hpread_get_lntt): Add declaration.
6730 Also fix PR gdb/391.
6731
6732 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6733
6734 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6735 * aclocal.m4, configure: Re-generate.
6736 Fix PR gdb/391.
6737
6738 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6739
6740 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6741 instead of tm_print_insn.
6742
6743 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6744
6745 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6746
6747 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6748
6749 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6750 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6751 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6752
6753 2002-04-12 Don Howard <dhoward@redhat.com>
6754
6755 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6756 max_user_call_depth.
6757 (init_cmd_lists): Initialize the new value;
6758 * cli/cli-script.c (execute_user_command): Limit the call depth of
6759 user defined commands. This avoids a core-dump when user commands
6760 are infinitly recursive.
6761
6762 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6763
6764 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6765 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6766 from tdep struct instead of DEFAULT_LR_SAVE.
6767 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6768 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6769 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6770
6771 2002-04-12 Michael Snyder <msnyder@redhat.com>
6772
6773 * Remote.c: Spelling fix.
6774 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6775 If no symbol found for "sbrk", try "_sbrk".
6776 (make_output_phdrs): Use bfd_section_name.
6777 (gcore_copy_callback): Use bfd_section_name.
6778 * eval.c: Indentation fix-ups.
6779 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6780 in case it gets applied to an address that is already
6781 in the instruction space.
6782 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6783 * symfile.c: Fix indentation, long lines.
6784 * source.c: White space fix-up.
6785
6786 2002-04-12 Andrew Cagney <cagney@redhat.com>
6787
6788 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6789 * frame.c (frame_register_read): New function. Return non-zero on
6790 success.
6791 (read_relative_register_raw_bytes_for_frame): Delete.
6792 (read_relative_register_raw_bytes): Delete.
6793 * frame.h (frame_register_read): Declare.
6794 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6795 * sh-tdep.c: Ditto.
6796 * infcmd.c (do_registers_info): Ditto.
6797 * hppa-tdep.c: Ditto.
6798 * rs6000-tdep.c: Ditto.
6799 * h8500-tdep.c: Ditto.
6800 * mips-tdep.c: Ditto.
6801 * h8300-tdep.c: Ditto.
6802 * z8k-tdep.c: Ditto.
6803
6804 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6805
6806 From Jimi X <jimix@watson.ibm.com>:
6807 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6808 64-bit SysV ABI.
6809
6810 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6811
6812 From Jimi X <jimix@watson.ibm.com>:
6813 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6814 bfd info.
6815
6816 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6817
6818 From Jimi X <jimix@watson.ibm.com>:
6819 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6820 register sets for these processor variants.
6821
6822 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6823
6824 * regformats/reg-ppc.dat: Support FPSCR.
6825
6826 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6827
6828 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6829 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6830 Add fpscr as an invalid/unfetchable register.
6831 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6832 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6833 (fill_fpregset): Add support for register fpscr.
6834 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6835 (fill_gregset): Account for the fact that register ``mq'' might
6836 not exist.
6837 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6838 (registers_power): Add fpscr to register set at slot 71.
6839 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6840 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6841
6842 2002-04-11 Michael Snyder <msnyder@redhat.com>
6843
6844 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6845 * configure: Regenerate.
6846 * config.in: Regenerate.
6847 * acconfig.h: Add define for _SYSCALL32.
6848 * core-sol2.c: Remove #define _SYSCALL32.
6849 * solib-legacy.c: Remove #define _SYSCALL32.
6850
6851 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6852
6853 * stack.c (select_frame): Cleanup internal error message, do not
6854 use %p.
6855
6856 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6857
6858 * stack.c (select_frame): Check that selected_frame and the
6859 specified level are as expected.
6860 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6861 Update copyright.
6862 * frame.h (struct frame_info): Add field `level'. Update
6863 copyright.
6864 Work-in-progress PR gdb/464.
6865
6866 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6867
6868 * maint.c (maint_print_section_info): Rename print_section_info.
6869 (print_bfd_section_info, print_objfile_section_info): Update.
6870 * inferior.h (struct gdbarch): Add opaque declaration.
6871 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6872 * gdbarch.h: Regenerate.
6873
6874 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6875
6876 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6877 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6878 (kernel_u_size): Added.
6879 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6880 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6881
6882 2002-04-04 Jim Ingham <jingham@apple.com>
6883
6884 * valarith.c (find_size_for_pointer_math): New function, either returns
6885 the size for a pointer's target, returns 1 for void *, or errors for
6886 incomplete types.
6887 (value_add, value_sub): use find_size_for_pointer_math.
6888
6889 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6890
6891 * linux-low.c (linux_look_up_symbols): New hook.
6892 (linux_target_ops): Add linux_look_up_symbols.
6893 * remote-utils.c (decode_address): New function.
6894 (look_up_one_symbol): New function.
6895 * server.c (handle_query): Call target look_up_symbols hook.
6896 * server.h (look_up_one_symbol): Add prototype.
6897 * target.h (struct target_ops): Add look_up_symbols hook.
6898
6899 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6900
6901 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6902 override FP_REGNUM with frame->fp. Update copyright.
6903 * parse.c (num_std_regs, std_regs): Delete.
6904 (target_map_name_to_register): Do not search std_regs. Update
6905 function description.
6906 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6907 declarations. Update copyright.
6908 Fix PR gdb/251.
6909
6910 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6911
6912 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6913 after the last symbol in a block.
6914
6915 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6916
6917 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6918 is non zero as a found symbol.
6919
6920 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6921
6922 * findvar.c: Include "builtin-regs.h".
6923 (value_of_register): Call value_of_builtin_reg when applicable.
6924 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6925 (target_map_name_to_register): Call
6926 builtin_reg_map_name_to_regnum.
6927 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6928 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6929 (builtin_regs_h): Define.
6930 (builtin-regs.o): New target.
6931 (findvar.o): Add $(builtin_regs_h).
6932 * builtin-regs.c, builtin-regs.h: New files.
6933 * std-regs.c: New file.
6934 Partial fix for PR gdb/251.
6935
6936 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6937
6938 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6939 it's no longer required.
6940
6941 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6942
6943 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6944
6945 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6946
6947 From Jimi X <jimix@watson.ibm.com>:
6948 * rs6000-tdep.c (rs6000_software_single_step): Use
6949 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6950 and size. Use target_insert_breakpoint() and
6951 target_remove_breakpoint() to insert and remove breakpoints
6952 instead of explicit memory reads and writes.
6953
6954 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6955
6956 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6957 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6958 ELF_OBJECT_FORMAT ifdef.
6959
6960 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6961
6962 From Jimi X <jimix@watson.ibm.com>:
6963 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6964
6965 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6966
6967 From Jimi X <jimix@watson.ibm.com>:
6968 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6969 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6970
6971 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6972
6973 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6974 s/asprintf/xasprintf/.
6975 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6976
6977 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6978
6979 I believe Jeff Law denies responsability for this one:
6980 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6981 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6982 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6983 Work-around for PR gdb/366.
6984
6985 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6986
6987 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6988 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6989 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6990
6991 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6992
6993 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6994 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6995 information.
6996
6997 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6998
6999 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7000 maintainer.
7001
7002 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7003
7004 * README (Reporting Bugs in GDB): Document the bug web page as the
7005 prefered way of submitting bugs.
7006 Fix PR gdb/402.
7007
7008 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7009
7010 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7011 -1. Update comment.
7012 * gdbarch.h, gdbarch.c: Re-generate.
7013
7014 2002-04-07 Andreas Schwab <schwab@suse.de>
7015
7016 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7017 buffer to regcache_collect.
7018
7019 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7020
7021 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7022 * gdbarch.c, gdbarch.h: Re-generate.
7023
7024 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7025
7026 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7027 declaration. Fix -Werror.
7028
7029 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7030
7031 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7032 * gdbarch.c: Regenerate.
7033
7034 2002-04-05 Michael Snyder <msnyder@redhat.com>
7035
7036 * breakpoint.c (clear_command): Rewrite middle section to
7037 combine two loops with identical control conditions.
7038 Add a cleanup to eliminate a memory leak.
7039 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7040
7041 2002-04-05 H.J. Lu (hjl@gnu.org)
7042
7043 * solib-svr4.c (bkpt_names): Add "__start".
7044
7045 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7046
7047 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7048 as test for 64 bit target.
7049
7050 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7051
7052 * h8500-tdep.c (h8500_write_fp): Delete function.
7053 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7054 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7055 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7057 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7058 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7059 (s390_write_fp):
7060 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7061 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7062 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7063 (d10v_write_fp): Delete function.
7064 * inferior.h (write_fp, generic_target_write_fp): Delete
7065 declarations.
7066 * regcache.c (generic_target_write_fp): Delete function.
7067 (write_fp): Delete function.
7068 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7069 * gdbarch.h, gdbarch.c: Regenerate.
7070 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7071 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7072 (sparc64_write_fp): Delete declaration.
7073 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7074 (h8500_write_fp): Delete declaration.
7075
7076 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7077
7078 * sparc-tdep.c (sparc64_write_fp): Delete.
7079 (sparc_push_dummy_frame): Replace write_fp call with code to store
7080 the FP directly.
7081 (sparc_gdbarch_init): Do not initialize write_fp.
7082
7083 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7084
7085 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7086 clause.
7087
7088 2002-03-29 Jim Blandy <jimb@redhat.com>
7089
7090 * stack.c (get_selected_block): Add new argument `addr_in_block',
7091 used to return the exact code address we used to select the block,
7092 not just the block.
7093 * blockframe.c (get_frame_block, get_current_block): Same.
7094 * frame.h (get_frame_block, get_current_block,
7095 get_selected_block): Update declarations.
7096 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7097 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7098
7099 2002-04-05 Michael Snyder <msnyder@redhat.com>
7100
7101 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7102 warning message.
7103
7104 2002-04-05 J. Brobecker <brobecker@gnat.com>
7105
7106 * utils.c (xfullpath): New function.
7107 * defs.h (xfullpath): Add declaration.
7108 * source.c (openp): Use xfullpath in place of gdb_realpath to
7109 avoid resolving the basename part of filenames when the
7110 associated file is a symbolic link. This fixes a potential
7111 inconsistency between the filenames known to GDB and the
7112 filenames it prints in the annotations.
7113 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7114 to be able to match a filename with either the real filename, or
7115 the name of any symbolic link to this file.
7116 (lookup_partial_symtab): Ditto.
7117
7118 2002-04-04 Michael Snyder <msnyder@redhat.com>
7119
7120 * breakpoint.c: Add support for hardware breakpoints in overlays.
7121 (overlay_events_enabled): New state variable.
7122 (insert_breakpoints): Use overlay_events_enabled to decide
7123 whether to attempt to set a breakpoint at the overlay load addr.
7124 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7125 (remove_breakpoint): Use overlay_events_enabled to decide
7126 whether breakpoints need to be removed from overlay load addr.
7127 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7128 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7129 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7130 disable_overlay_breakpoints): Update overlay_events_enabled.
7131
7132 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7133
7134 * dwarf2read.c (struct function_range): New.
7135 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7136 (check_cu_functions): New.
7137 (read_file_scope): Initialize global function lists.
7138 Call dwarf_decode_line after processing children.
7139 (read_func_scope): Add to global function list.
7140 (dwarf_decode_lines): Call check_cu_functions everywhere
7141 record_line is called. Call record_line with a linenumber
7142 of 0 to mark sequence ends.
7143
7144 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7145
7146 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7147 change sync with glibc.
7148
7149 2002-04-03 Jim Blandy <jimb@redhat.com>
7150
7151 * configure.in: Call AC_C_INLINE.
7152 * configure: Regenerated.
7153
7154 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7155
7156 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7157 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7158
7159 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7160
7161 * NEWS: Mention gcore support on FreeBSD/i386.
7162
7163 * fbsd-proc.c: New file.
7164 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7165 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7166
7167 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7168 while statement.
7169
7170 2002-03-29 Jim Blandy <jimb@redhat.com>
7171
7172 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7173 unescaped newlines in string literals, but newer ones don't. So
7174 escape them.
7175
7176 2002-03-26 Michael Snyder <msnyder@redhat.com>
7177 Andrew Cagney <cagney@redhat.com>
7178
7179 * cli/cli-dump.c: New file. Dump memory to file,
7180 restore file to memory.
7181 * cli/cli-dump.h: New file.
7182 * Makefile.in: Add rules, dependencies for cli-dump.o.
7183 * NEWS: Mention new commands.
7184
7185 2002-03-28 Michael Snyder <msnyder@redhat.com>
7186
7187 * symfile.c (symbol_file_add): Move test for null symbols to later.
7188
7189 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7190
7191 From veksler at il.ibm.com:
7192 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7193 the xstrduped original path.
7194 Fix PR gdb/417.
7195
7196 2002-03-27 Michael Snyder <msnyder@redhat.com>
7197
7198 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7199 * infcmd.c (_initialize_infcmd): Ditto.
7200 * language.c (_initialize_language): Ditto.
7201 * symfile.c (_initialize_symfile): Ditto.
7202 * top.c (_init_main): Ditto.
7203 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7204
7205 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7206
7207 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7208 vector registers handling.
7209 (skip_prologue): Handle new AltiVec instructions. Fill in new
7210 fields of frame data.
7211 (frame_get_saved_regs): Fill in information for AltiVec registers.
7212
7213 2002-03-27 Jim Blandy <jimb@redhat.com>
7214
7215 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7216 a function; leave this macro here to invoke that function.
7217 (symbol_init_mangled_name): Declaration for that function.
7218 * symtab.c (symbol_init_mangled_name): New function.
7219
7220 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7221
7222 * valarith.c: Replace strerror with safe_strerror.
7223 * tracepoint.c: Ditto.
7224 * lin-lwp.c: Ditto.
7225 * go32-nat.c: Ditto.
7226 * inflow.c: Ditto.
7227 * gnu-nat.c: Ditto.
7228
7229 2002-03-27 Andreas Schwab <schwab@suse.de>
7230
7231 * event-top.c (command_line_handler): Remove useless if.
7232
7233 2002-03-27 Andreas Jaeger <aj@suse.de>
7234
7235 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7236 comment.
7237
7238 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7239
7240 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7241 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7242 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7243 (x86_64_linux_dr_get_status, supply_gregset),
7244 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7245 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7246 (x86_64_register_info_table): Add.
7247 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7248 (x86_64_register_raw_size, x86_64_register_virtual_type),
7249 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7250 general x86_64_register_info_table.
7251 (i386_gdbarch_init): gdbarch_register_bytes is now set
7252 dynamicaly during initialization.
7253 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7254 * gdbserver/linux-x86-64-low.c: Ditto.
7255
7256 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7257
7258 * gdbserver/server.c (main): Call target_signal_to_host_p
7259 and target_signal_to_host on signals received from the remote.
7260 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7261 target_signal_from_host on signals sent to the remote.
7262 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7263 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7264
7265 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7266
7267 * signals/signals.c: Include "server.h" in gdbserver build.
7268 (target_signal_from_name): Don't use STREQ.
7269 (_initialize_signals): Likewise. Don't include function in
7270 gdbserver build.
7271
7272 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7273
7274 * signals.c: Moved to...
7275 * signals/signals.c: Here.
7276 * Makefile (signals.o): Update.
7277
7278 2002-03-26 Jeff Law (law@redhat.com)
7279
7280 * somread.c (som_symtab_read): Remove some commented out code and
7281 updated related comments. Do not set the minimal symbol table to
7282 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7283 in a dynamic executable.
7284 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7285 where we are unable to find the minimal symbol for the given
7286 PC value.
7287
7288 2002-03-25 Jeff Law (law@redhat.com)
7289
7290 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7291
7292 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7293
7294 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7295
7296 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7297
7298 * command.h: Update copyright.
7299 (struct cmd_list_element): Replace definition with opaque
7300 declaration.
7301 (enum cmd_types): Document that it will eventually be moved to
7302 cli/cli-decode.h
7303 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7304 (MALLOCED_REPLACEMENT): Delete macro.
7305 * Makefile.in (cli_decode_h): Add $(command_h).
7306 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7307 * top.c: Include "cli/cli-decode.h".
7308 * completer.c: Include "cli/cli-decode.h".
7309 * maint.c: Include "cli/cli-decode.h".
7310 * cli/cli-decode.h: Include "command.h".
7311 (enum command_class): Delete.
7312 (enum cmd_types): Comment out.
7313 (enum cmd_auto_boolean): Delete.
7314 (enum var_types): Delete.
7315
7316 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7317
7318 * cli/cli-decode.c: Include "gdb_assert.h".
7319 (add_set_or_show_cmd): New static function.
7320 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7321 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7322 all fields, such as func, from the set command.
7323
7324 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7325
7326 * MAINTAINERS (sh-elf): Change warning flag to -w.
7327
7328 2002-03-23 Andrew Cagney <cagney@redhat.com>
7329
7330 * defs.h (error): Add printf format attribute.
7331 * thread-db.c (thread_from_lwp): Fix error format string.
7332 * stack.c (parse_frame_specification): Ditto.
7333 * cli/cli-decode.c (undef_cmd_error): Ditto.
7334 * scm-lang.c (scm_lookup_name): Ditto.
7335 * tracepoint.c (trace_error): Ditto.
7336 * remote-utils.c (usage): Ditto.
7337 * remote.c (compare_sections_command): Ditto.
7338 Fix PR gdb/328.
7339
7340 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7341
7342 * gdbtypes.c (append_composite_type_field): New function.
7343 (init_composite_type): New function.
7344 * gdbtypes.h (append_composite_type_field): Declare.
7345 (init_composite_type): Ditto.
7346
7347 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7348
7349 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7350 function.
7351 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7352 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7353 structure returning convention for SYSV ABI case, but not
7354 for GNU/Linux, FreeBSD, or NetBSD.
7355
7356 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7357
7358 * symtab.h (lookup_block_symbol): Add mangled_name argument
7359 to prototype.
7360
7361 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7362 with new mangled_name argument.
7363 * linespec.c (decode_line_1): Likewise.
7364 * valops (value_of_this): Likewise.
7365 * symtab.c (lookup_transparent_type): Likewise.
7366 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7367 (lookup_symbol): If we are given a mangled name, pass it down
7368 to lookup_symbol_aux.
7369 (lookup_block_symbol): If we are given a mangled name to check
7370 against, only return symbols which match it.
7371
7372 2002-03-22 Christopher Faylor <cgf@redhat.com>
7373
7374 * win32-nat.c (child_create_inferior): Check for proper shell to use
7375 here, in case the user changes it on the fly.
7376 (_initialize_inftarg): Remove shell path considerations.
7377
7378 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7379
7380 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7381 for gdbarch_max_register_raw_size and max_register_virtual_size.
7382 Adjust copyright year.
7383
7384 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7385
7386 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7387 in a function to cover the entire beginning of the function
7388 as well if it does not already.
7389
7390 2002-03-21 Tom Rix <trix@redhat.com>
7391
7392 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7393 (rs6000_ptrace64): Renamed from ptrace64.
7394
7395 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7396
7397 * gdbserver/remote-utils.c (remote_open): Don't call
7398 getprotobyname, we're all using TCP here so just use
7399 IPPROTO_TCP.
7400 * gdbserver/gdbreplay.c (remote_open): Ditto.
7401
7402 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7403
7404 * regcache.c (_initialize_regcache): No need to call
7405 build_regcache() at this time; it gets called whenever
7406 the gdbarch changes.
7407
7408 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7409
7410 * sparc-nat.c: Include sys/param.h where possible.
7411
7412 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7413
7414 Fix PR gdb/422.
7415 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7416 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7417 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7418 complex types.
7419 * stabsread.c (rs6000_builtin_type): Likewise.
7420 (read_sun_floating_type): Likewise.
7421
7422 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7423
7424 * stabsread.c (read_member_functions): Remove skip code for duplicate
7425 constructor/destructor methods. Use standard parsing for these
7426 methods and just do not chain them to the list of methods after
7427 parsing.
7428
7429 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7430
7431 * coffread.c: Remove redundant static declarations. Replace
7432 occurrences of `PTR' with `void *'.
7433 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7434 * top.h (quit_cover): Likewise.
7435 * defs.h (catch_errors): Likewise.
7436
7437 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7438
7439 * defs.h (XMALLOC): Define.
7440 * gdb-events.sh (XMALLOC): Delete macro.
7441 * gdb-events.c, gdb-events.h: Regenerate.
7442 * gdbarch.sh (XMALLOC): Delete macro.
7443 * gdbarch.c: Regenerate.
7444 * serial.c (XMALLOC): Delete macro.
7445 * ui-file.c (XMALLOC): Ditto.
7446 * ser-unix.h (XMALLOC): Ditto.
7447 * sh-tdep.c (XMALLOC): Ditto.
7448 * ui-out.c (XMALLOC): Ditto.
7449 * utils.c (XMALLOC): Ditto.
7450 * i386-tdep.c (XMALLOC): Ditto.
7451 * gdb-events.c (XMALLOC): Ditto.
7452 * d10v-tdep.c (XMALLOC): Ditto.
7453 * cli-out.c (XMALLOC): Ditto.
7454
7455 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7456 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7457 * ui-file.c, ui-out.c: Ditto.
7458
7459 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7460
7461 * command.h (struct cmd_list_element): Add field context.
7462 (set_cmd_context, get_cmd_context): Declare.
7463 * cli/cli-decode.h: Ditto.
7464 * cli/cli-decode.c (get_cmd_context): New function.
7465 (set_cmd_context): New function.
7466 (add_cmd): Initialize context.
7467 Part of fixing PR gdb/145 and PR gdb/146.
7468
7469 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7470
7471 * cli/cli-decode.c (cmd_type): New function.
7472 * command.h (cmd_type): Declare.
7473 * infrun.c (set_schedlock_func): Call function cmd_type.
7474 * kod.c (kod_set_os): Call cmd_type.
7475 * cris-tdep.c (cris_version_update): Use function cmd_type.
7476 (cris_mode_update, cris_abi_update): Ditto.
7477
7478 * command.h: (execute_cmd_post_hook): Declare.
7479 (execute_cmd_pre_hook): Declare.
7480 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7481 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7482 functions. Execute pre/post hook while ensuring that afterwords
7483 hook_in is cleared.
7484 * top.c (execute_command): Use execute_cmd_post_hook, and
7485 execute_cmd_pre_hook to execute pre/post commands.
7486 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7487 hook_stop_stub.
7488 (hook_stop_stub): Call execute_cmd_pre_hook.
7489
7490 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7491
7492 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7493 set'' and this leads to a core dump. Move xstrdup of
7494 operating_system to after check that it is not NULL.
7495
7496 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7497
7498 * kod.c (kod_set_os): Remove unnecessary check that
7499 ``command->type'' is set_cmd.
7500
7501 * valprint.c (set_input_radix): Use input_radix.
7502 (set_output_radix): Use output_radix.
7503 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7504 isn't reverted.
7505
7506 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7507
7508 * value.h (struct value): Delete field ``substring_addr''. Change
7509 aligner fields to force_doublest_align, force_longest_align,
7510 force_core_addr_align and force_pointer_aligh.
7511
7512 * value.h (struct value): Fix typo in above change.
7513
7514 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7515
7516 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7517 to fix internal_error from ``maintenance print architecture''.
7518
7519 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7520
7521 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7522 for gcc versions after gcc-2.8.1.
7523
7524 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7525
7526 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7527 for method resolution. Restore adjustment of ``this'' pointer after
7528 calling value_struct_elt, which was accidentally removed during the
7529 HP merge.
7530
7531 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7532
7533 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7534 value_of_register.
7535 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7536 get_saved_register.
7537 * value.h (value_of_register): Update.
7538
7539 2002-03-14 Richard Henderson <rth@redhat.com>
7540
7541 * configure.in: Detect declaration for canonicalize_file_name.
7542 * utils.c (canonicalize_file_name): Declare, if needed.
7543 (gdb_realpath): Prefer realpath if available and usable.
7544 * config.in, configure: Rebuild.
7545
7546 2002-03-14 Richard Henderson <rth@redhat.com>
7547
7548 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7549 a constant array bound.
7550
7551 * MAINTAINERS: Add myself to write-after-approval.
7552
7553 2002-03-14 Michael Snyder <msnyder@redhat.com>
7554
7555 * symfile.c (syms_from_objfile): Return immediately if no syms.
7556 (symbol_file_add): Return immediately if no syms.
7557 (find_sym_fns): Return immediately if no syms.
7558
7559 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7560
7561 * gdbserver/remote-util.c (remote_open): Print remote-side's
7562 IP address when remote debugging over the network.
7563
7564 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7565
7566 * config/sparc/fbsd.mh: Fix copyright.
7567 * config/sparc/fbsd.mt: Likewise.
7568
7569 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7570
7571 * MAINTAINERS: Fix typo in name of gdb warnings option.
7572 (x86-64): Fix formating so that this can be parsed by awk.
7573
7574 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7575
7576 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7577 * defs.h: Include "gdb/signals.h".
7578 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7579
7580 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7581
7582 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7583 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7584 from x86-64-tdep.h
7585
7586 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7587 Don Howard <dhoward@redhat.com>
7588
7589 * mips-tdep.c (ST0_FR): Define.
7590 (mips2_fp_compat): New function, temporarily disabled.
7591 (mips_read_fp_register_single): New function.
7592 (mips_read_fp_register_double): New function.
7593 (mips_print_register): Use them.
7594 (do_fp_register_row): Likewise.
7595
7596 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7597
7598 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7599 approval''.
7600
7601 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7602
7603 * stabsread.c (read_member_functions): Fix is_stub test for
7604 static member functions, improve comment.
7605
7606 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7607
7608 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7609 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7610 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7611 commands that set boolean values.
7612 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7613 (arm_rdi_resume): Always initialize PC.
7614 (arm_rdi_open): Don't use rslt as a boolean.
7615 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7616 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7617 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7618 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7619
7620 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7621
7622 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7623 * configure: Rebuilt.
7624
7625 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7626
7627 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7628 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7629
7630 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7631
7632 * cli/cli-decode.c (set_cmd_completer): New function.
7633 * command.h (set_cmd_completer): Declare.
7634 * cli/cli-decode.h (set_cmd_completer): Ditto.
7635
7636 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7637 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7638 * win32-nat.c (_initialize_inftarg): Ditto.
7639 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7640 * proc-api.c (_initialize_proc_api): Ditto.
7641 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7642 * source.c (_initialize_source): Ditto.
7643 * exec.c (_initialize_exec): Ditto.
7644 * solib.c (_initialize_solib): Ditto.
7645 * top.c (init_main): Ditto.
7646 * tracepoint.c (_initialize_tracepoint): Ditto.
7647 * symfile.c (_initialize_symfile): Ditto.
7648 * printcmd.c (_initialize_printcmd): Ditto.
7649 * infcmd.c (_initialize_infcmd): Ditto.
7650 * corefile.c (_initialize_core): Ditto.
7651
7652 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7653
7654 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7655
7656 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7657
7658 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7659
7660 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7661
7662 * NEWS: Update headings, 5.2 has branched.
7663
7664 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7665
7666 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7667 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7668 (register_addr, REGISTER_RAW_SIZE): Likewise.
7669 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7670 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7671
7672 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7673
7674 * MAINTAINERS (x86-64): Add myself.
7675 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7676 changed value_ptr -> struct value *
7677
7678 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7679
7680 * configure.host (sparc64-*-freebsd): Add.
7681 * configure.tgt: Likewise.
7682 * config/sparc/fbsd.mh: New file.
7683 * config/sparc/fbsd.mt: Likewise.
7684 * config/sparc/nm-fbsd.h: Likewise.
7685 * config/sparc/tm-fbsd.h: Likewise.
7686
7687 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7688
7689 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7690 regformats/reg-s390x.dat.
7691
7692 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7693
7694 * utils.c: Add FIXME explaining true/false problem.
7695
7696 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7697
7698 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7699
7700 2002-02-28 Michael Chastain <mec@shout.net>
7701
7702 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7703
7704 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7705
7706 * gdbserver/linux-s390-low.c: New file.
7707 * regformats/reg-s390.dat: New file.
7708 * regformats/reg-s390x.dat: New file.
7709 * gdbserver/configure.srv: Add S/390.
7710 * gdbserver/Makefile.in: Add S/390.
7711 * configure.tgt: Enable gdbserver for S/390.
7712
7713 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7714
7715 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7716 first line of the doc string for "info dos", except at the end of
7717 the sentence, since the short help stops at the first period.
7718
7719 2002-02-28 Jason Merrill <jason@redhat.com>
7720
7721 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7722
7723 2002-02-27 Fred Fish <fnf@redhat.com>
7724
7725 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7726 comment (dumy -> dummy).
7727
7728 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7729
7730 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7731
7732 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7733
7734 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7735
7736 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7737
7738 * gdbserver/acconfig.h: New file.
7739 * gdbserver/i387-fp.c: New file.
7740 * gdbserver/i387-fp.h: New file.
7741 * gdbserver/linux-x86-64.c: New file.
7742 * regformats/reg-x86-64.dat: New file.
7743 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7744 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7745 * gdbserver/configure.in: Add support for regsets.
7746 * gdbserver/config.in: Regenerate.
7747 * gdbserver/configure: Regenerate.
7748 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7749 * gdbserver/linux-low.h: New file.
7750 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7751 for regsets.
7752 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7753 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7754 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7755 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7756 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7757 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7758 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7759 "i387-fp.h". Add PTRACE_GETREGS and friends.
7760 * gdbserver/regcache.c (supply_register): New function.
7761 (supply_register_by_name): New function.
7762 (collect_register): New function.
7763 (collect_register_by_name): New function.
7764
7765 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7766
7767 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7768 (config.status): Add configure.srv dependency.
7769 (server_h): Add config.h dependency.
7770
7771 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7772
7773 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7774 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7775 * gdbserver/configure.srv: Change i386-*-linux* to use
7776 reg-i386-linux.o.
7777
7778 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7779
7780 * x86-64-tdep.c: Re-indent. Update copyright date.
7781
7782 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7783
7784 From Michal Ludvig <mludvig@suse.cz>:
7785 * x86-64-tdep.c (value.h): Delete.
7786 (gdb_assert.h): Include.
7787 (x86_64_register_convert_to_virtual,
7788 x86_64_register_convert_to_raw ): Add check which lets only
7789 floating-point values to be converted.
7790 (value_push): Delete.
7791 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7792 (i386_gdbarch_init): Number of register_bytes fixed.
7793
7794 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7795
7796 * MAINTAINERS: Add x86-64 target.
7797
7798 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7799
7800 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7801 * osfsolib.c (solib_map_sections): Ditto.
7802 * irix5-nat.c (solib_map_sections): Ditto.
7803 * corelow.c (gdb_check_format): Ditto.
7804 * symfile.c (symfile_bfd_open): Ditto.
7805 * solib.c (solib_map_sections): Ditto.
7806 Fix PR gdb/354.
7807
7808 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7809
7810 * remote.c (_initialize_remote): By default, disable ``e'' and
7811 ``E'' step out-of-range packets.
7812
7813 2002-02-26 Andreas Schwab <schwab@suse.de>
7814
7815 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7816 m68k_linux_frame_saved_pc.
7817 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7818 in_sigtramp.
7819 (SIGCONTEXT_PC_OFFSET): Remove.
7820 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7821 m68k_linux_sigtramp_saved_pc): New functions.
7822 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7823 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7824 (UCONTEXT_PC_OFFSET): Define.
7825 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7826 non-RT and RT signal trampolines.
7827
7828 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7829
7830 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7831 (TARGET_NBPG, STACK_END_ADDR): Delete
7832 (VARIABLES_INSIDE_BLOCK): Delete.
7833
7834 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7835
7836 * utils.c (perror_with_name): Make string parameter constant.
7837 (print_sys_errmsg): Ditto.
7838 (query): Ditto.
7839 * defs.h (perror_with_name): Update.
7840 (print_sys_errmsg): Update.
7841 (query): Update.
7842
7843 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7844
7845 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7846 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7847
7848 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7849
7850 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7851 if it already matches the current architecture from the exec file.
7852 Include arch-utils.h for gdbarch_info_init prototype.
7853 * Makefile.in (rs6000-nat.o): Update dependencies.
7854
7855 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7856
7857 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7858 list of exported variables.
7859
7860 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * gdbserver/configure.srv: New file.
7863 * gdbserver/configure.in: Use configure.srv instead
7864 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7865 from it.
7866 * gdbserver/configure: Regenerated.
7867 * gdbserver/terminal.h: New file.
7868 * gdbserver/Makefile.in: Update for configure changes. Remove
7869 more unneeded include paths.
7870
7871 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7872
7873 From wiz at danbala:
7874 * config/sparc/tm-sp64.h: Fix grammar and typos.
7875 Fix PR gdb/287.
7876
7877 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7878
7879 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7880 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7881 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7882 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7883 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7884 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7885 * s390-tdep.c: Ditto.
7886 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7887 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7888 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7889 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7890 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7891 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7892 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7893 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7894 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7895 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7896 Fix PR gdb/378.
7897
7898 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7899
7900 * lin-thread.c: Delete file.
7901 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7902 to gdb_proc_service.h.
7903 * configure: Re-generate.
7904
7905 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7906 * serial.c (serial_open): Delete check for "ocd".
7907 Fix PR gdb/349.
7908
7909 * Makefile.in (linux-thread.o): Delete target.
7910 * linux-thread.c: Delete file.
7911
7912 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7913 renamed SH files to be consistent.
7914
7915 * symtab.c (sort_search_symbols): Use xfree.
7916
7917 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7918
7919 * arm-linux-tdep.c (arm_linux_init_abi): Register
7920 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7921 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7922 definition with undef, since we don't want the sysvr4 definition.
7923 (SKIP_TRAMPOLINE_CODE): Likewise.
7924
7925 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7926
7927 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7928
7929 * configure.in: (AC_CHECK_FUNCS) Added test for
7930 canonicalize_file_name Regenerated.
7931 * config.in, configure: Regenerated.
7932 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7933 defined use canonicalize_file_name.
7934
7935 2002-02-23 Michael Chastain <mec@shout.net>
7936
7937 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7938
7939 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7940
7941 * README: Remove references to cygnus.com.
7942 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7943 dot com'' form. Remove references to cygnus.com and sourceware.
7944
7945 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7946
7947 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7948 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7949 1003.1-2001 no longer allows "head -1".
7950 * gdb/Makefile.in (version.c): Likewise.
7951 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7952 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7953 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7954
7955 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7956
7957 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7958 * command.h (cmd_cfunc_eq): Declare.
7959 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7960
7961 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7962 ``struct cmd_list_element *''.
7963 * cli/cli-cmds.c (is_complete_command): Update. Use
7964 cmd_cfunc_eq.
7965 * top.c (execute_command): Pass the command to
7966 is_complete_command.
7967 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7968
7969 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7970
7971 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7972 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7973 architecture defines.
7974 * s390-tdep.c (s390_gdbarch_init): Likewise.
7975
7976 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7977
7978 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7979 (arm_linux_push_arguments): Likewise.
7980 (arm_linux_init_abi): Register them. Also register linux-specific
7981 call_dummy_words.
7982 (find_minsym_and_objfile): Use strcmp, not STREQ.
7983 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7984 (arm_linux_call_dummy_words): Delete declaration.
7985 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7986 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7987 declarations.
7988 (LOWEST_PC): Delete.
7989
7990 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7991
7992 * maint.c (print_section_info): Do not prepend `0x' to filepos
7993 output, it will be handled by local_hex_string_custom.
7994
7995 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7996
7997 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7998 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7999 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8000
8001 2002-02-22 Jim Blandy <jimb@redhat.com>
8002
8003 Indicate that the bcache functions don't change the strings
8004 they're passed.
8005 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8006 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8007
8008 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8009
8010 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8011
8012 2002-02-21 Christopher Faylor <cgf@redhat.com>
8013
8014 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8015 find the complete path to a loaded DLL.
8016
8017 2002-02-21 Fred Fish <fnf@redhat.com>
8018
8019 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8020 that marks the end of the range of a function, enter a line number
8021 entry that has a line number of zero and a PC offset that matches
8022 the end of the function. This starts a range of PC's for which no
8023 line number information is known.
8024 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8025 PC's for which no line number info is found (line number is zero)
8026 then we didn't find any valid line information.
8027 * symtab.h: Document use of zero line number entry.
8028
8029 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8030
8031 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8032 (have_ptrace_getvrregs): Define for run time checks.
8033 (gdb_vrregset_t): New type for Altivec register handling.
8034 (fetch_register, store_register): Fetch/store altivec register
8035 when needed.
8036 (fetch_altivec_register, store_altivec_register): New functions.
8037 (supply_vrregset, fill_vrregset): New functions.
8038 (fetch_altivec_registers, store_altivec_registers): New functions.
8039 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8040 registers as well.
8041
8042 2002-02-21 Jiri Smid <smid@suse.cz>
8043
8044 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8045
8046 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8047
8048 * Makefile.in (armnbsd-nat.o): Update dependencies.
8049 * armnbsd-nat.c (supply_gregset): New function. Common code to
8050 supply the integer register set.
8051 (supply_fparegset): New function. Similar for FPA registers.
8052 (fetch_regs, fetch_fp_regs): Use them.
8053 (fetch_core_registers): Likewise.
8054 (fetch_elfcore_registers): New function.
8055 (arm_netbsd_elfcore_fns): New core-file type specification.
8056 (_initialize_arm_netbsd_nat): Register it.
8057
8058 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8059
8060 * armnbsd-nat.c: Include gdbcore.h.
8061 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8062 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8063 'void' to declaration, to shut up ARI.
8064 (fetch_core_registers): Make static. Rewrite using supply_register.
8065 (arm_netbsd_core_fns): New core-file type specification.
8066 (_initialize_arm_netbsd_nat): New function.
8067
8068 2002-02-21 Christopher Faylor <cgf@redhat.com>
8069
8070 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8071 value.
8072
8073 2002-02-20 Christopher Faylor <cgf@redhat.com>
8074
8075 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8076 fails.
8077
8078 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8079
8080 * jv-exp.y (parse_number): Change type of implicit longs
8081 to builtin_type_uint64.
8082
8083 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8084
8085 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8086 to be an integer instead of a `union wait'.
8087
8088 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8089
8090 * mips-linux-nat.c: Call the operating system GNU/Linux.
8091 * mips-linux-tdep.c: Likewise.
8092 * mips-tdep.c: Likewise.
8093
8094 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8095
8096 Fix PR gdb/265.
8097 * jv-exp.y (parse_number): Handle 64-bit integers.
8098
8099 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8100
8101 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8102 AC_STDC_HEADERS to AC_HEADER_STDC.
8103 * gdbserver/configure: Regenerated.
8104
8105 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8106
8107 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8108 is defined.
8109 * sparc-tdep.c (get_longjmp_target): Likewise.
8110
8111 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8112
8113 * News: Add news about ARM and Multi-arch. Mention the new target
8114 arm*-*-netbsd*.
8115
8116 2002-02-19 Jim Blandy <jimb@redhat.com>
8117
8118 * stabsread.c (error_type_complaint): Improve error message.
8119
8120 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8121
8122 * gdbserver/README: Update documentation.
8123 * gdbserver/configure.in: Update configury to match documentation.
8124 * gdbserver/Makefile.in: Likewise.
8125 * gdbserver/configure: Regenerated.
8126 * gdbserver/aclocal.m4: New file, generated by aclocal.
8127 * gdbserver/config.in: New file, generated by autoheader.
8128
8129 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8130
8131 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8132 armnbsd-nat.c.
8133
8134 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8135
8136 * arm-tdep.h (enum arm_float_model): New enum.
8137 (struct gdbarch_tdep): Add fp_model.
8138 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8139 up floating-point conversions until we know the floating-point model
8140 in use by the inferior. Don't complain about being unable to
8141 determine the ABI of the inferior when we don't have one.
8142 (arm_extract_return_value): Support different floating-point models.
8143 (arm_store_return_value): Likewise.
8144 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8145 ARM_FLOAT_SOFT.
8146 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8147
8148 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8149
8150 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8151 of ``current_gdbarch''.
8152
8153 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8154
8155 * armnbsd-nat.c : ANSIfy all function declarations.
8156 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8157 (fetch_inferior_registers): Re-implement in terms of above.
8158 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8159 (store_inferior_registers): Re-implement in terms of above.
8160
8161 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8162
8163 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8164 kernel.
8165 * arm-linux-tdep.c: Likewise.
8166 * config/arm/tm-linux.h: Likewise.
8167
8168 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8169
8170 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8171 * config/arm/nbsd.mt (TM_FILE): Delete.
8172 * config/arm/tm-nbsd.h: Delete.
8173
8174 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8175
8176 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8177 Initialize CALL_DUMMY_LENGTH.
8178
8179 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8180
8181 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8182 function.
8183 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8184 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8185 defines one thing and that is incorrect for this port.
8186 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8187
8188 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8189
8190 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8191
8192 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8193
8194 * win32-nat.c (display_selector): New function. Displays information
8195 about the information returned by GetThreadSelectorEntry API function.
8196 (display_selectors): New function. Displays the infomation of
8197 the selector given as argument, or of CS, DS ans FS selectors
8198 if no argument is given.
8199 ( _initialize_inftarg): Add "w32" as info prefix command.
8200 Add "info w32 selector" as command calling display_selectors.
8201
8202 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8203
8204 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8205 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8206 if not defined.
8207
8208 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8209
8210 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8211
8212 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8213
8214 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8215 (arm_fix_call_dummy): Call it.
8216 (arm_call_dummy_breakpoint_offset): Delete.
8217 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8218 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8219
8220 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8221
8222 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8223 Default to func_frame_chain_valid.
8224 * gdbarch.h, gdbarch.c: Re-generate.
8225 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8226
8227 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8228
8229 * ppc-linux-nat.c: Update copyright.
8230 (fetch_register, store_register): Add tid parameter, don't compute
8231 tid here.
8232 (fetch_ppc_registers, store_ppc_registers): Add tid
8233 parameter. Pass it along to callees.
8234 (fetch_inferior_registers, store_inferior_registers): Compute tid
8235 here, and pass it to calleed functions.
8236 (fill_gregset, supply_fpregset): Clean up formatting.
8237
8238 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8239
8240 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8241 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8242
8243 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8244
8245 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8246 * gdbarch.c gdbarch.h: Regenerate.
8247 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8248 function.
8249 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8250 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8251 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8252
8253 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8254 * arm-tdep.c (arm_get_longjmp_target): New function.
8255 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8256 this to a positive value register arm_get_longjmp_target as the
8257 longjmp handler.
8258 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8259 (arm_linux_init_abi): Set up longjmp description in tdep.
8260 * armnbsd-nat.c (get_longjmp_target): Delete.
8261 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8262 description in tdep.
8263 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8264 (get_longjmp_target): Delete declaration.
8265 (GET_LONGJMP_TARGET): Delete.
8266 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8267 (GET_LONGJMP_TARGET): Delete.
8268
8269 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8270
8271 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8272 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8273 of ``current_gdbarch''.
8274
8275 2002-02-17 Tom Tromey <tromey@redhat.com>
8276
8277 * cli/cli-cmds.c (compare_strings): New function.
8278 (complete_command): Only print each unique item once.
8279 * completer.h (complete_line): Declare.
8280 * completer.c (complete_line): New function.
8281 (line_completion_function): Use it.
8282
8283 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8284
8285 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8286 * gdbarch.h, gdbarch.c: Re-generate.
8287
8288 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8289
8290 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8291
8292 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8293
8294 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8295 * valops.c (value_arg_coerce): Don't take the address of a reference
8296 to convert an argument to a reference.
8297
8298 2002-02-15 Christopher Faylor <cgf@redhat.com>
8299
8300 * win32-nat.c (get_image_name): New function.
8301 (handle_load_dll): Use get_image_name function.
8302 (get_child_debug_event): Avoid registering debug events until possibly
8303 execed process is started.
8304 (child_create_inferior): Allow invocation via shell so that command
8305 line redirection, etc. works ok.
8306 (_initialize_inftarg): Add new command: "set shell" to control whether
8307 a shell is used to start a process.
8308
8309 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8310
8311 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8312 instead of find_register_by_number.
8313 (cannot_store_register): Likewise.
8314
8315 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8316
8317 * dwarf2read.c: Replace fprintf (stderr, ...) by
8318 fprintf_unfiltered (gdb_stderr, ...).
8319
8320 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8321
8322 * gdbserver/gdbserver.1: Document --attach.
8323
8324 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8325
8326 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8327 descriptions.
8328 * arm-tdep.c (arm_default_arm_le_breakpoint)
8329 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8330 (arm_default_thumb_be_breakpoint): New. Initialize them from
8331 traditional breakpoint defines.
8332 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8333 (arm_gdbarch_init): Initialize new breakpoint variables.
8334 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8335 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8336 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8337 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8338 code out to ...
8339 (arm_netbsd_init_abi_common): ... here; new function.
8340 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8341 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8342 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8343 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8344
8345 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8346
8347 * arm-tdep.h (enum arm_abi): New enum.
8348 (struct gdbarch_tdep): New structure.
8349 (LOWEST_PC): Provide a default.
8350 (arm_gdbarch_register_os_abi): Declare new function.
8351 * arm-tdep.c (arm_abi_names): New array.
8352 (process_note_abi_tag_sections): New function.
8353 (get_elfosabi): New function.
8354 (arm_gdbarch_register_os_abi): New function.
8355 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8356 support for that ABI has been built in, then call the appropriate
8357 configuration routine. Use gdbarch_num_regs() to get the number
8358 of registers.
8359 (arm_dump_tdep): New function.
8360 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8361 place-holder functions.
8362 (_initialize_arm_tdep): Register them.
8363 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8364
8365 * armnbsd-tdep.c: New file.
8366 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8367 * config/arm/nbsd.mt (TDEPFILES): Add it.
8368 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8369
8370 * armnbsd-nat.c: Include regcache.h.
8371 * Makefile.in (armnbsd-nat.o): Update dependency list.
8372
8373 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8374
8375 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * gdbserver/Makefile.in: Fix typos in target rules.
8378
8379 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8380
8381 Fix part of PR gdb/267.
8382 * linespec.c (find_methods): Handle constructors specially for now.
8383
8384 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8385
8386 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8387 handling.
8388 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8389 standard_coerce_float_to_double().
8390
8391 2002-02-14 Christopher Faylor <cgf@redhat.com>
8392
8393 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8394 GDBINIT_FILENAME.
8395
8396 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8397
8398 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8399 find_variant_by_name, because it confuses the multiarch
8400 framework. Return NULL if there isn't an architecture with the
8401 user supplied name, instead of forcing a different one without
8402 recording the change with the multiarch machinery.
8403 (find_variant_by_name): Delete.
8404
8405 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8406
8407 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8408 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8409
8410 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8411
8412 * stack.c (print_frame_info_base): When calling
8413 print_frame_info_listing_hook, set current_source_symtab.
8414
8415 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8416
8417 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8418 and remove unused $(INCLUDE_DIR).
8419 Add regcache.c to OBS.
8420 Add generated register protocol files to clean target.
8421 Update dependencies for new objects, obsolete old target code.
8422
8423 * gdbserver/linux-low.c: Remove all platform-specific code to
8424 new files. Remove various dead code. Update to use regcache
8425 functionality.
8426 * gdbserver/remote-utils.c (fromhex): Add return statement
8427 to quiet warning.
8428 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8429 constant.
8430 (input_interrupt): Add integer parameter to match prototype
8431 of a signal handler.
8432 (outreg): Use register_data ().
8433 (prepare_resume_reply): Use gdbserver_expedite_regs.
8434 * gdbserver/server.c (main): Dynamically allocate own_buf because
8435 PBUFSIZ is no longer constant. Use registers_to_string () and
8436 registers_from_string ().
8437 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8438 for error (), fatal (), and warning (). Update definition of
8439 PBUFSIZ to use regcache functionality. Add include guard.
8440 * gdbserver/utils.c (fatal): Add missing ``const''.
8441 (warning): New function.
8442
8443 * regformats/regdat.sh: Include "regcache.h" in generated files.
8444 Provide init_registers () function.
8445 * regformats/regdef.h: Add prototype for set_register_cache ().
8446 Add include guard.
8447
8448 * gdbserver/linux-arm-low.c: New file.
8449 * gdbserver/linux-i386-low.c: New file.
8450 * gdbserver/linux-ia64-low.c: New file.
8451 * gdbserver/linux-m68k-low.c: New file.
8452 * gdbserver/linux-mips-low.c: New file.
8453 * gdbserver/linux-ppc-low.c: New file.
8454 * gdbserver/linux-sh-low.c: New file.
8455
8456 * gdbserver/regcache.c: New file.
8457 * gdbserver/regcache.h: New file.
8458
8459 * gdbserver/low-linux.c: Removed obsolete file.
8460
8461 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8462
8463 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8464 * config/i386/linux.mt: Likewise.
8465 * config/ia64/linux.mt: Likewise.
8466 * config/m68k/linux.mh: Likewise.
8467 * config/powerpc/linux.mh: Likewise.
8468 * config/mips/linux.mt: Likewise.
8469
8470 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8471
8472 * config/i386/i386lynx.mh: Mark gdbserver variables
8473 as (currently) obsolete for this target.
8474 * config/i386/nbsd.mt: Likewise.
8475 * config/i386/nbsdelf.mt: Likewise.
8476 * config/m32r/m32r.mt: Likewise.
8477 * config/m68k/m68klynx.mh: Likewise.
8478 * config/m68k/nbsd.mt: Likewise.
8479 * config/m68k/sun3os4.mh: Likewise.
8480 * config/mips/vr5000.mt: Likewise.
8481 * config/ns32k/nbsd.mt: Likewise.
8482 * config/pa/hppabsd.mh: Likewise.
8483 * config/pa/hppaosf.mh: Likewise.
8484 * config/powerpc/nbsd.mt: Likewise.
8485 * config/rs6000/rs6000lynx.mh: Likewise.
8486 * config/s390/s390.mt: Likewise.
8487 * config/s390/s390x.mt: Likewise.
8488 * config/sparc/sparclynx.mh: Likewise.
8489 * config/sparc/sun4os4.mh: Likewise.
8490 * config/i386/x86-64linux.mt: Likewise.
8491 * config/sparc/linux.mh: Likewise.
8492
8493 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8494
8495 * configure.tgt: Configure gdbserver only for known working
8496 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8497 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8498 SUBDIRS if it is configured. Update comment for ${nativefile}.
8499 * configure: Regenerated.
8500
8501 2002-02-13 Michael Snyder <msnyder@redhat.com>
8502
8503 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8504
8505 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8506 (default_gcore_mach): Just return 0, work around a problem in bfd.
8507 (default_gcore_target): OK to return NULL if exec_bfd is null.
8508 (make_mem_sec): Use a cast, avoid a warning.
8509
8510 * procfs.c (find_memory_regions_callback): Use a cast instead of
8511 calling host_pointer_to_address (which complains if
8512 sizeof (host pointer) != sizeof (target pointer)).
8513 (procfs_make_note_section): Avoid overflow in psargs string.
8514
8515 * procfs.c (procfs_make_note_section): Make the default
8516 implementation return an error.
8517
8518 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8519
8520 * procfs.c (procfs_make_note_section): Provide a default definition
8521 (for alpha-dec-osf4.0f). Fix typos.
8522
8523 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8524
8525 * linux-proc.c: Add include of regcache.h.
8526 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8527
8528 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8529
8530 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8531 * memattr.c (create_mem_region): Disallow useless empty region.
8532 Regions are half-open intervals, so allow [A..B) [B..C) as
8533 non-overlapping.
8534
8535 2002-02-13 Michael Chastain <mec@shout.net>
8536
8537 * defs.h: Kill CONST_PTR.
8538 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8539 * c-lang.c (c_builtin_types): Likewise.
8540 * ch-lang.c (ch_builtin_types): Likewise.
8541 * f-lang.c (f_builtin_types): Likewise.
8542 * language.c (unknown_builtin_types): Likewise.
8543 * m2-lang.c (m2_builtin_types): Likewise.
8544 * p-lang.c (pascal_builtin_types): Likewise.
8545 * scm-lang.c (c_builtin_types): Likewise.
8546
8547 2002-02-13 Keith Seitz <keiths@redhat.com>
8548
8549 * arm-tdep.h (arm_get_next_pc): Add declaration.
8550
8551 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8552
8553 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8554 with other related struct-returning functions.
8555 (arm_extract_struct_value_address): New function.
8556 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8557 initialize float_format, double_format and long_double_format as
8558 appropriate to the endianness of the target.
8559 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8560 (arm_use_struct_convention): Delete declaration.
8561 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8562
8563 2002-02-13 Keith Seitz <keiths@redhat.com>
8564
8565 * defs.h (core_addr_to_string_nz): New function.
8566
8567 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8568
8569 Apply missing bits of 2002-01-15 patch.
8570 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8571 (fill_fpregset): Use i387_fill_fsave.
8572
8573 2002-02-12 Keith Seitz <keiths@redhat.com>
8574
8575 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8576 (core_addr_to_string_nz): New function.
8577
8578 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8579
8580 * arm-linux-nat.c: Really include arm-tdep.h.
8581 * config/arm/tm-linux.h (struct type, struct value): Declare.
8582
8583 2002-02-11 Michael Snyder <msnyder@redhat.com>
8584
8585 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8586 (gcore section): Ifdef for Solaris and Unixware only.
8587 (procfs_do_thread_registers): Unixware needs one lwpstatus
8588 per thread (not one prstatus or pstatus).
8589 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8590 not over all gdb threads. For unixware, call elfcore_write_pstatus
8591 once before iterating over threads.
8592
8593 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8594
8595 * arm-tdep.h: New file.
8596 * arm-tdep.c: Include arm-tdep.h.
8597 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8598 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8599 (arm_print_float_info, arm_register_type, convert_to_extended)
8600 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8601 (arm_extract_return_value, arm_register_name): Make static.
8602 (arm_software_single_step): Similarly. Fix types in declaration.
8603 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8604 (arm_store_return_value, arm_store_struct_return): New functions.
8605 (arm_gdbarch_init): Register the above functions. Also register
8606 call_dummy_start_offset, sizeof_call_dummy_words,
8607 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8608 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8609 max_register_virtual_size, register_size. Set up
8610 prologue_cache.saved_regs here, rather than ...
8611 (_initialize_arm_tdep): ... here.
8612 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8613 declarations.
8614 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8615 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8616 (arm_print_float_info, arm_register_type, convert_to_extended)
8617 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8618 (arm_extract_return_value, arm_register_name): Delete declarations.
8619 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8620 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8621 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8622 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8623 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8624 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8625 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8626 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8627 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8628 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8629 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8630 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8631 interface.
8632 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8633 * remote-rdi.c remote-rdp.c: Likewise.
8634 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8635 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8636 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8637 definition.
8638
8639 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8640 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8641 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8642 from non-ARM_ prefixed definitions.
8643 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8644 all uses of above.
8645 * remote-rdi.c remote-rdp.c: Likewise.
8646 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8647
8648 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8649
8650 * arm-tdep.c (arm_frameless_function_invocation)
8651 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8652 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8653 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8654 (arm_pop_frame, arm_get_next_pc): Make static.
8655 (arm_gdbarch_init): Register above in gdbarch structure.
8656 (arm_read_fp): Renamed from arm_target_read_fp.
8657 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8658 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8659 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8660 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8661 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8662 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8663 (arm_pc_is_thumb_dummy): Delete declarations.
8664 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8665 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8666 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8667 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8668
8669 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8670
8671 * symtab.c (compare_search_syms): New function.
8672 (sort_search_symbols): New function.
8673 (search_symbols): Sort symbols after searching rather than
8674 before.
8675
8676 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8677
8678 * NEWS: Linux -> GNU/Linux.
8679
8680 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8681
8682 * gdbarch.sh: For for level one methods, disallow a definition
8683 when partially multi-arched. Add comments explaining rationale.
8684 * gdbarch.h: Re-generate.
8685
8686 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8687
8688 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8689 multi-arch partial.
8690
8691 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8692
8693 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8694 field. Use diff -u.
8695 * gdbarch.c: Re-generate.
8696
8697 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8698
8699 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8700 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8701 partial.
8702
8703 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8704
8705 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8706 multi-arch partial.
8707 (PUSH_ARGUMENTS): Switch to using predefault.
8708 * gdbarch.c: Regenerate.
8709
8710 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8711
8712 * valops.c (PUSH_ARGUMENTS): Delete definition.
8713 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8714 partial. Default to default_push_arguments.
8715 * gdbarch.h, gdbarch.c: Regenerate.
8716
8717 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8718
8719 * defs.h (throw_exception): Rename return_to_top_level. Update
8720 comments.
8721 * utils.c (error_stream, internal_verror, quit): Ditto.
8722 * top.c (throw_exception, catcher): Ditto.
8723 * sparclet-rom.c (sparclet_load): Ditto.
8724 * remote.c (interrupt_query, minitelnet): Ditto.
8725 * remote-sds.c (interrupt_query): Ditto.
8726 * remote-mips.c (mips_error, mips_kill): Ditto.
8727 * ocd.c (interrupt_query): Ditto.
8728 * monitor.c (monitor_interrupt_query): Ditto.
8729 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8730 * target.h: Update comment.
8731
8732 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8733
8734 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8735
8736 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8737 default_double_format.
8738 * gdbarch.h, gdbarch.c: Re-generate.
8739 * findvar.c (floatformat_unknown): Delete variable definition.
8740 * doublest.h (floatformat_unknown): Delete variable declaration.
8741
8742 2002-02-09 Jim Blandy <jimb@redhat.com>
8743
8744 * stabsread.c (read_type): Add code to parse Sun's syntax for
8745 prototyped function types.
8746
8747 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8748
8749 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8750 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8751
8752 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8753
8754 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8755 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8756 now _initialize_xcoffsolib gets called again and overrides the
8757 commands from solib.c in a native configuration.
8758
8759 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8760
8761 * doublest.c (store_typed_floating): Don't try to return a value.
8762 Fixes PR gdb/290.
8763
8764 2002-02-08 Jim Blandy <jimb@redhat.com>
8765
8766 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8767 is prototyped and has no arguments, print its argument list as
8768 `(void)'.
8769
8770 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8771
8772 * MAINTAINERS (write-after-approval): Add myself.
8773 (paper-trail): I've escaped!
8774
8775 2002-02-08 Christopher Faylor <cgf@redhat.com>
8776
8777 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8778 changes.
8779 (_initialize_check_for_gdb_ini): Ditto.
8780
8781 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8782
8783 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8784 xaprintf -> xasprintf.
8785
8786 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8787
8788 * win32-nat.c: Remove use of printf and sprintf functions.
8789
8790 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * arm-tdep.c (arm_frame_chain_valid): Make static.
8793 (arm_push_arguments): Likewise.
8794 (arm_gdbarch_init): New function.
8795 (_initialize_arm_tdep): Call it.
8796 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8797 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8798 (FRAME_CHAIN_VALID): Delete.
8799 (arm_frame_chain_valid): Delete declaration.
8800 (PUSH_ARGUMENTS): Delete.
8801 (arm_push_arguments): Delete declaration.
8802 (CALL_DUMMY_P): Delete.
8803
8804 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8805 Corinna Vinschen <vinschen@redhat.com>
8806
8807 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8808 on builtin float types.
8809
8810 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8811
8812 * utils.c: Include <curses.h> before "bfd.h".
8813 * tui/tui-hooks.c: Likewise.
8814 * tui/tui.c: Likewise.
8815 * tui/tuiCommand.c: Likewise.
8816 * tui/tuiData.c: Likewise.
8817 * tui/tuiDataWin.c: Likewise.
8818 * tui/tuiDisassem.c: Likewise.
8819 * tui/tuiGeneralWin.c: Likewise.
8820 * tui/tuiIO.c: Likewise.
8821 * tui/tuiLayout.c: Likewise.
8822 * tui/tuiRegs.c: Likewise.
8823 * tui/tuiSource.c: Likewise.
8824 * tui/tuiSourceWin.c: Likewise.
8825 * tui/tuiStack.c: Likewise.
8826 * tui/tuiWin.c: Likewise.
8827
8828 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8829
8830 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8831 to include space for pseudoregs as well. Update loops accordingly.
8832 (sh_fp_frame_init_saved_regs): Ditto.
8833 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8834
8835 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8836
8837 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8838 Add Richard Earnshaw to Arm maintainers.
8839
8840 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8841
8842 * defs.h (warning_begin): Delete declaration.
8843
8844 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8845 Delete macro.
8846
8847 2002-02-07 Michael Snyder <msnyder@redhat.com>
8848
8849 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8850 Logic bug, remove misplaced else.
8851
8852 2002-02-07 Klee Dienes <klee@apple.com>
8853
8854 * fork-inferior.c (fork_inferior): Add '!' to the list of
8855 characters that need to be quoted when building a string for the
8856 shell. Quote '!' specifically with a backslash, since CSH chokes
8857 when trying to evaluate "str!str".
8858
8859 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8860
8861 * rdi-share/host.h: Only provide a typedef for bool if it is not
8862 defined.
8863
8864 2002-02-04 Michael Snyder <msnyder@redhat.com>
8865
8866 * breakpoint.h (enum bptype): Add new overlay event bp type.
8867 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8868
8869 * breakpoint.c (create_internal_breakpoint): New function.
8870 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8871 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8872 (create_thread_event_breakpoint): Ditto.
8873 (create_solib_event_breakpoint): Ditto.
8874 (create_overlay_event_breakpoint): New function.
8875 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8876 (update_breakpoints_after_exec): Delete and re-initialize
8877 overlay event breakpoints after an exec. Add FIXME comment
8878 about longjmp breakpoint.
8879 (print_it_typical): Ignore overlay event breakpoints.
8880 (print_one_breakpoint): Ditto.
8881 (mention): Ditto.
8882 (bpstat_what): Do not stop for overlay event breakpoints.
8883 (delete_breakpoint): Don't delete overlay event breakpoints.
8884 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8885 (breakpoint_re_set): Re-create overlay event breakpoint.
8886
8887 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8888 (overlay_manual_command): Disable overlay breakpoints.
8889 (overlay_off_command): Disable overlay breakpoints.
8890
8891 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8892
8893 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8894 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8895 to here from config/tm-arm.h.
8896 (coff_sym_is_thumb): Make static.
8897 (arm_elf_make_msymbol_special): New function.
8898 (arm_coff_make_msymbol_special): New function.
8899 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8900 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8901 (coff_sym_is_thumb): Delete declaration.
8902 (arm_elf_make_msymbol_special): Declare.
8903 (arm_coff_make_msymbol_special): Declare.
8904 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8905 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8906
8907 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8908
8909 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8910
8911 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8912
8913 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8914 * gdbarch.c gdbarch.h: Regenerate.
8915 * arch-utils.c (default_print_float_info): New function.
8916 * arch-utils.h (default_print_float_info): Prototype it.
8917 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8918 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8919 (PRINT_FLOAT_INFO): Document it.
8920
8921 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8922 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8923 (PRINT_FLOAT_INFO): Define.
8924
8925 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8926
8927 * win32-nat.c (_initialize_check_for_gdb_ini):
8928 Add typecast to sprintf argument to suppress a warning.
8929
8930 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8931
8932 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8933 to allow easier handling of pass state.
8934 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8935 that gives exception name and address.
8936 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8937 and set last_sig value to ourstatus->value.sig. Some missing
8938 exceptions added.
8939 (child_continue): Correctly report continue_status.
8940 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8941 TARGET_SIGNAL_0 (new default value).
8942 (child_resume): consider sig argument passed to decide if
8943 the exception should be passed to debuggee or not.
8944
8945 2002-02-05 Michael Snyder <msnyder@redhat.com>
8946
8947 * regcache.c (fetch_register): Call target_fetch_register
8948 only if we don't call FETCH_PSEUDO_REGISTER.
8949 (store_register): Call target_store_register only if we
8950 don't call STORE_PSEUDO_REGISTER.
8951
8952 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8953
8954 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8955 ELF_MAKE_MSYMBOL_SPECIAL.
8956 * gdbarch.c, gdbarch.h: Regenerate.
8957 * arch-utils.c (default_make_msymbol_special): New function.
8958 * arch-utils.h (default_make_msymbol_special): Export.
8959 * elfread.c (elf_symtab_read): Compile use of
8960 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8961 multiarched.
8962 * coffread.c (coff_symtab_read): Ditto, for
8963 COFF_MAKE_MSYMBOL_SPECIAL.
8964
8965 2002-02-05 Jim Blandy <jimb@redhat.com>
8966
8967 * solib-svr4.c (svr4_truncate_ptr): New function.
8968 (svr4_relocate_section_addresses): Do the address arithmetic with
8969 the appropriate truncation for target addresses, even when
8970 CORE_ADDR is larger than a target address.
8971
8972 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8973
8974 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8975 to (int *).
8976
8977 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8978
8979 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8980 code.
8981
8982 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8983
8984 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8985
8986 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8987
8988 * gdbserver/linux-low.c: Remove unused include files.
8989
8990 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8991
8992 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8993 (read_inferior_memory): Use it.
8994 (write_inferior_memory): Likewise.
8995
8996 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8997
8998 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8999 grubbing through sys_errlist.
9000
9001 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9002
9003 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9004
9005 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9006 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9007
9008 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9009
9010 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9011 (do_sfunc, set_cmd_sfunc): New functions.
9012
9013 * command.h (struct cmd_list_element): Add field func.
9014 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9015 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9016 * cli/cli-decode.h: Ditto.
9017
9018 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9019 (help_all, help_cmd_list): Ditto.
9020 (find_cmd, complete_on_cmdlist): Ditto.
9021 * top.c (execute_command): Ditto.
9022
9023 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9024 function.sfunc.
9025
9026 * infcmd.c (notice_args_read): Fix function signature.
9027
9028 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9029 * cli/cli-decode.c (add_set_cmd): Ditto.
9030 * utils.c (initialize_utils): Ditto.
9031 * maint.c (_initialize_maint_cmds): Ditto.
9032 * infrun.c (_initialize_infrun): Ditto.
9033 * demangle.c (_initialize_demangler): Ditto.
9034 * remote.c (add_packet_config_cmd): Ditto.
9035 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9036 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9037 * proc-api.c (_initialize_proc_api): Ditto.
9038 * kod.c (_initialize_kod): Ditto.
9039 * valprint.c (_initialize_valprint): Ditto.
9040 * top.c (init_main): Ditto.
9041 * infcmd.c (_initialize_infcmd): Ditto.
9042 * corefile.c (_initialize_core): Ditto.
9043 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9044 * arch-utils.c (initialize_current_architecture): Ditto.
9045 (_initialize_gdbarch_utils): Ditto.
9046 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9047
9048 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9049 * wince.c (_initialize_inftarg): Ditto.
9050 * symfile.c (_initialize_symfile): Ditto.
9051 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9052 * language.c (_initialize_language): Ditto.
9053 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9054
9055 2002-02-04 Michael Snyder <msnyder@redhat.com>
9056
9057 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9058
9059 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9060
9061 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9062 Add rules for building the register data files.
9063
9064 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9065
9066 * regformats/regdat.sh: Add braces to the definition of
9067 expedite_regs_${arch}.
9068
9069 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * regformats/regdef.h (struct reg): Add comment describing the
9072 requirements for offset and size fields.
9073
9074 2002-02-04 Andreas Schwab <schwab@suse.de>
9075
9076 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9077 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9078
9079 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9080
9081 * gdbarch.sh (copyright): Update years in generated header.
9082 (SMASH_TEXT_ADDRESS): Add rule.
9083 * gdbarch.h, gdbarch.c: Re-generate.
9084 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9085 * dbxread.c: Likewise.
9086 * dwarfread.c: Likewise.
9087 * elfread.c: Likewise.
9088 * somread.c: Likewise.
9089
9090 * arm-tdep.c (arm_smash_text_address): New function.
9091 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9092
9093 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9094
9095 Add support for hardware watchpoints on win32 native.
9096 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9097 CONTEXT_DEBUG_REGISTERS.
9098 (dr variable): New variable. Static array containing a local copy
9099 of debug registers.
9100 (debug_registers_changed): New variable. Reflects when debug registers
9101 are changed and need to be written to inferior.
9102 (debug_registers_used): New variable. Reflects when any debug register
9103 was set, used when new threads are created.
9104 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9105 i386-nat code.
9106 (thread_rec): Set dr array if id is the thread of current_event .
9107 (child_continue, child_resume): Change the debug registers for all
9108 threads if debug_registers_changed.
9109 (child_add_thread): Change the debug registers if debug_registers_used.
9110 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9111 Link nm.h to new nm-cygwin.h file.
9112 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9113 of hardware registers.
9114
9115 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9116
9117 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9118 Restore behavour broken by 2002-01-20 Andrew Cagney
9119 <ac131313@redhat.com> IEEE_FLOAT removal.
9120
9121 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9122
9123 * c-valprint.c (c_val_print): Pass a proper valaddr to
9124 cp_print_class_method.
9125 * valops.c (search_struct_method): If there is only one method
9126 and args is NULL, return that method.
9127
9128 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9129
9130 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9131 accessing tag_name directly.
9132
9133 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9134
9135 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9136 of accessing tag_name directly.
9137
9138 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9139
9140 PR gdb/280
9141 * gdbtypes.c (replace_type): New function.
9142 * gdbtypes.h (replace_type): Add prototype.
9143 * stabsread.c (read_type): Use replace_type.
9144
9145 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9146
9147 * Makefile.in (memattr.o): Add missing dependencies rule.
9148
9149 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9150
9151 * breakpoint.c (break_at_finish_command): Really export.
9152 (break_at_finish_at_depth_command): Ditto.
9153 (tbreak_at_finish_command): Ditto.
9154 * hppa-tdep.c: Include completer.h.
9155 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9156 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9157
9158 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9159
9160 * utils.c (do_write): New function.
9161 (error_stream): Rewrite combining the code from error_begin and
9162 verror.
9163 (verror): Rewrite using error_stream.
9164 (error_begin): Delete function.
9165
9166 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9167
9168 * utils.c (error_begin): Make static.
9169 * defs.h (error_begin): Delete declaration.
9170
9171 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9172 (decode_line_1): Use cplusplus_error instead of error_begin,
9173 cplusplus_hint and return_to_top_level.
9174 * coffread.c (coff_symfile_read): Use error instead of error_begin
9175 and return_to_top_level.
9176 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9177
9178 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9179
9180 * language.h (type_error, range_error): Make string parameter
9181 constant.
9182 * language.c (warning_pre_print): Delete extern declaration.
9183 * dwarfread.c (warning_pre_print): Ditto.
9184 * language.c (type_error, range_error): Rewrite to use verror and
9185 vwarning instead of warning_begin.
9186
9187 2002-02-01 Michael Snyder <msnyder@redhat.com>
9188
9189 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9190 (set_ignore_count): Move misplaced comment back where it belongs.
9191
9192 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9193
9194 * command.h (NO_FUNCTION): Delete macro.
9195 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9196 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9197 * tracepoint.c (_initialize_tracepoint): Ditto.
9198 * cli/cli-decode.c (add_set_cmd): Ditto.
9199 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9200
9201 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9202
9203 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9204 Update ``this'' pointer when calling virtual functions.
9205
9206 2002-02-01 Michael Snyder <msnyder@redhat.com>
9207
9208 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9209 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9210
9211 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9212
9213 * regformats/reg-arm.dat: New file.
9214 * regformats/reg-i386.dat: New file.
9215 * regformats/reg-ia64.dat: New file.
9216 * regformats/reg-m68k.dat: New file.
9217 * regformats/reg-mips.dat: New file.
9218 * regformats/reg-ppc.dat: New file.
9219 * regformats/reg-sh.dat: New file.
9220 * regformats/regdef.h: New file.
9221 * regformats/regdat.sh: New file.
9222
9223 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9224
9225 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9226 (arm_frame_args_address, arm_frame_locals_address): New functions.
9227 (arm_frame_num_args): New function.
9228 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9229 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9230 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9231
9232 2002-01-31 Michael Snyder <msnyder@redhat.com>
9233
9234 * breakpoint.c (break_at_finish_command): Export.
9235 (break_at_finish_at_depth_command): Export.
9236 (tbreak_at_finish_command): Export.
9237 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9238 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9239 "tbreak" commands, which are HPPA specific.
9240
9241 * printcmd.c (disassemble_command): Remove an ancient
9242 artifact of an old merge.
9243
9244 * symfile.h (enum overlay_debugging_state):
9245 Define enum constant values for overlay mode.
9246 * symfile.c (overlay_debugging): Use enums instead of literals.
9247 (overlay_is_mapped, overlay_auto_command,
9248 overlay_manual_command): Ditto.
9249
9250 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9251 breakpoint_here_p, breakpoint_inserted_here_p,
9252 breakpoint_thread_match, bpstat_stop_status,
9253 describe_other_breakpoints, check_duplicates, clear_command):
9254 Coding standard fixes.
9255
9256 * target.c (target_xfer_memory): Add spaces, coding standard.
9257 (do_xfer_memory): Add missing line to trust-readonly
9258 code: check bfd SEC_READONLY flag for section.
9259
9260 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9261
9262 * PROBLEMS: Fix typo, 5.1->5.1.1.
9263
9264 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9265
9266 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9267 data symbols, since we search based on textlow and texthigh.
9268 (find_pc_sect_symtab): Likewise.
9269
9270 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9271
9272 * defs.h (vwarning): Declare.
9273 * utils.c (vwarning): New function.
9274 (warning): Call vwarning.
9275 (warning_begin): Delete function.
9276
9277 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9278 the warning message.
9279 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9280 warning_begin.
9281
9282 2002-01-30 Michael Snyder <msnyder@redhat.com>
9283
9284 * NEWS: Mention "set trust-readonly-sections" command.
9285 Mention generate-core-file command.
9286
9287 2002-01-15 Michael Snyder <msnyder@redhat.com>
9288
9289 * target.c: New command, "set trust-readonly-sections on".
9290 (do_xfer_memory): Honor the suggestion to trust readonly sections
9291 by reading them from the object file instead of from the target.
9292 (initialize_targets): Register command "set trust-readonly-sections".
9293
9294 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9295
9296 * parse.c (target_map_name_to_register): Simplify, search regs and
9297 pseudo-regs using a single loop.
9298
9299 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9300
9301 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9302
9303 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9304
9305 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9306 * config/i386/i386v42mp.mh: Add i387-nat.o .
9307 * i386v4-nat.c: Include i387-nat.h.
9308 (supply_fpregset): Use i387_supply_fsave.
9309 (fill_fpregset): Use i387_fill_fsave.
9310
9311 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9312
9313 * arm-tdep.c (arm_call_dummy_words): Define.
9314 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9315 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9316 (CALL_DUMMY_WORDS): Define.
9317 (arm_call_dummy_words): Declare.
9318 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9319 (arm_linux_call_dummy_words): Declare.
9320
9321 2002-01-30 Andreas Schwab <schwab@suse.de>
9322
9323 * m68klinux-nat.c: Fix last change to use regcache_collect
9324 instead of referencing registers[] directly.
9325
9326 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9327
9328 * parse.c (target_map_name_to_register): Delete code wrapped in
9329 #ifdef REGISTER_NAME_ALIAS_HOOK.
9330
9331 2002-01-28 Michael Snyder <msnyder@redhat.com>
9332
9333 * regcache.c (legacy_read_register_gen): Need to be able to
9334 read pseudo-register as well as real register.
9335 (legacy_write_register_gen): Ditto.
9336
9337 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9338
9339 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9340 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9341 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9342 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9343 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9344 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9345 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9346 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9347 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9348 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9349 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9350 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9351 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9352 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9353 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9354 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9355 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9356 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9357 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9358 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9359
9360 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9361
9362 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9363 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9364 (initialize_current_architecture): Update target_byte_order using
9365 information from BFD.
9366 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9367 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9368
9369 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9370
9371 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9372 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9373
9374 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9375 #ifdef INVALID_FLOAT.
9376 * infcmd.c (do_registers_info): Ditto.
9377 * values.c (unpack_double): Ditto. Add comment.
9378
9379 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9380 already commented out.
9381
9382 2002-01-26 Andreas Schwab <schwab@suse.de>
9383
9384 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9385 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9386 registers and add support for PTRACE_GETREGS.
9387
9388 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9389
9390 GDB 5.1.1 released from 5.1 branch.
9391 * NEWS: Add 5.1.1 news.
9392 * README: Sync with 5.1 branch.
9393
9394 2002-01-23 Fred Fish <fnf@redhat.com>
9395
9396 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9397 stabstring on initial malloc. Reallocing will copy it for us,
9398 if necessary.
9399
9400 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9401
9402 * Makefile.in (hpread_h): Delete.
9403 (HFILES_NO_SRCDIR): Remove hpread.h.
9404 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9405 (hpread.o): Update dependencies.
9406 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9407
9408 * hp-psymtab-read.c: Remove file.
9409 * hp-symtab-read.c: Remove file.
9410 * hpread.h: Remove file.
9411
9412 * hpread.c: Merge all contents of hp-psymtab-read.c,
9413 hp-symtab-read.c and hpread.h into this file, as it was prior to
9414 January 1999.
9415
9416 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9417 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9418 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9419 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9420
9421 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9422
9423 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9424 fill_gregset): Call gdbarch_tdep() just once, assign result to
9425 variable and use that, instead of calling the function several
9426 times.
9427
9428 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9429
9430 * configure.host: Accept sparcv9 as alias for sparc64.
9431 * configure.tgt: Likewise.
9432
9433 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9434
9435 * solib-aix5.c (build_so_list_from_mapfile)
9436 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9437 arguments is not reversed.
9438 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9439 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9440
9441 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9442
9443 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9444 modified version of obsolete sh_fetch_pseudo_register.
9445 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9446 (sh4_register_read): New function.
9447 (sh_pseudo_register_write): New function. Renamed and modified
9448 version of obsolete sh_store_pseudo_register.
9449 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9450 (sh4_register_write): New function.
9451 (sh_gdbarch_init): Remove setting of gdbarch function
9452 fetch_pseudo_register and store_pseudo_register. Remove setting of
9453 register_convert_to_raw, register_convert_to_virtual,
9454 register_convertible.
9455 (sh_sh4_register_convertible): Delete. No longer needed. All is
9456 taken care by architecture specific functions
9457 register_read/register_write.
9458 (sh_sh4_register_convert_to_virtual): Make static.
9459 (sh_sh4_register_convert_to_raw): Ditto.
9460
9461 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9462
9463 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9464 (floatformat_is_nan, floatformat_mantissa): Ditto.
9465
9466 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9467 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9468 builtin_type_ieee_double_little,
9469 builtin_type_ieee_double_littlebyte_bigword,
9470 builtin_type_m68881_ext, builtin_type_i960_ext,
9471 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9472 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9473 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9474 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9475
9476 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9477
9478 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9479 parameter. Set frameless flag if it exists and depended of
9480 whether the scanned function is frameless or not.
9481 (xstormy16_skip_prologue): If function is frameless, return
9482 result of xstormy16_scan_prologue().
9483 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9484 call.
9485
9486 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9487
9488 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9489 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9490 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9491 sh_sh4_register_byte, sh_sh4_register_raw_size,
9492 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9493 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9494 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9495 sh_store_pseudo_register, sh_do_pseudo_register): Call
9496 gdbarch_tdep() just once, assign result to variable and use that,
9497 instead of calling the function several times.
9498
9499 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9500
9501 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9502 macros instead of LAST_FPU_CTRL_REGNUM.
9503 (store_register): Likewise.
9504
9505 2002-01-21 Jim Blandy <jimb@redhat.com>
9506
9507 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9508 is up-to-date before running the program, not just when a program
9509 exits.
9510
9511 2002-01-21 Fred Fish <fnf@redhat.com>
9512
9513 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9514 when we have found all instructions we are looking for.
9515
9516 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9517
9518 * arm-tdep.c (arm_register_name): New function.
9519 (arm_registers_names): Make static.
9520 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9521 (arm_register_name): Declare.
9522 (REGISTER_NAME): Use it.
9523
9524 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9525 Kevin Buettner <kevinb@redhat.com>
9526
9527 Convert arm targets to new FRAME interface.
9528 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9529 (arm_frame_find_save_regs): Delete.
9530 (arm_frame_init_saved_regs): New.
9531 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9532 Allocate extra_info as required. Convert all uses of fsr.regs
9533 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9534 to use extra_info.
9535 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9536 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9537 (check_prologue_cache, save_prologue_cache): Likewise.
9538 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9539 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9540 (FRAME_FIND_SAVED_REGS): Delete.
9541 (arm_frame_find_saved_regs): Delete prototype.
9542 (arm_frame_init_saved_regs): New prototype.
9543 (FRAME_INIT_SAVED_REGS): Define.
9544
9545 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9546
9547 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9548
9549 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9550
9551 From Jeff Law <law@redhat.com>:
9552 * infttrace.c: Include <sys/pstat.h>.
9553 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9554 exec file if the ttrace equivalent fails.
9555
9556 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9557
9558 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9559 (closeLogFile): Ditto.
9560
9561 2002-01-20 Michael Chastain <mec@shout.net>
9562
9563 * top.c (print_gdb_version): Bump copyright year to 2002.
9564
9565 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9566
9567 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9568 Zannoni and Eli Zaretskii.
9569
9570 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9571
9572 * buildsym.c: Update copyright years.
9573 * c-typeprint.c: Likewise.
9574 * dwarf2read.c: Likewise.
9575 * f-typeprint.c: Likewise.
9576 * gdbtypes.c: Likewise.
9577 * gdbtypes.h: Likewise.
9578 * hp-symtab-read.c: Likewise.
9579 * hpread.c: Likewise.
9580 * mdebugread.c: Likewise.
9581 * p-typeprint.c: Likewise.
9582
9583 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9584
9585 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9586 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9587 byte-order selectable.
9588 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9589 * arch-utils.c: Ditto.
9590 (set_endian): Ditto.
9591 (set_endian_from_file): Ditto.
9592 * gdbserver/low-sim.c (create_inferior): Ditto.
9593 * gdbarch.sh: Ditto.
9594 * gdbarch.h: Re-generate.
9595 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9596 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9597 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9598 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9599 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9600 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9601 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9602 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9603 macro definition.
9604 * config/mips/tm-wince.h: Remove #undef of macro
9605 TARGET_BYTE_ORDER_SELECTABLE.
9606 * config/sh/tm-wince.h: Ditto.
9607
9608 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9609
9610 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9611 member function fields. Add accessor macro
9612 TYPE_FN_FIELD_ARTIFICIAL.
9613 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9614 * c-typeprint.c (c_type_print_base): Skip artificial member
9615 functions.
9616
9617 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9618
9619 * f-typeprint.c: Delete unused function f_type_print_args.
9620 * p-typeprint.c: Delete unused function pascal_type_print_args.
9621
9622 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9623
9624 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9625 comment. Add ``artificial'' to ``union field_location''.
9626
9627 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9628
9629 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9630 * mdebugread.c (parse_symbol): Likewise.
9631 * stabsread.c (define_symbol): Likewise.
9632 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9633 initializing TYPE_FIELD_BITPOS to n (obsolete).
9634 (hpread_doc_function_type): Likewise.
9635 * hpread.c (hpread_function_type): Likewise.
9636
9637 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9638
9639 * configure.in (host_makefile_frag): Only require a host makefile
9640 fragment when a native build.
9641 * configure: Re-generate.
9642
9643 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9644
9645 * doublest.h (floatformat_from_type): Declare.
9646 * doublest.c (floatformat_from_type): New function.
9647 (convert_typed_floating): Use.
9648
9649 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9650 call to function floatformat_from_type.
9651
9652 * gdbarch.sh (IEEE_FLOAT): Delete.
9653 * gdbarch.h, gdbarch.c: Re-generate.
9654 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9655 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9656 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9657 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9658 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9659 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9660 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9661 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9662 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9663 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9664 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9665 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9666
9667 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9668 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9669 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9670 * sh-tdep.c (sh_gdbarch_init): Ditto.
9671 * mips-tdep.c (mips_gdbarch_init): Ditto.
9672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9673 * cris-tdep.c (cris_gdbarch_init): Ditto.
9674
9675 2002-01-20 Jiri Smid <smid@suse.cz>
9676
9677 * configure.host, configure.tgt: Support x86-64.
9678 * NEWS: Note new target x86-64.
9679
9680 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9681 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9682 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9683 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9684 x86-64-linux-nat.o): Fix dependencies.
9685
9686 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9687
9688 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9689 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9690 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9691 * config/sparc/xm-sun4os4.h: Delete file.
9692 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9693
9694 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9695
9696 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9697 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9698 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9699 * config/i386/i386lynx.mh (XM_FILE): Delete.
9700 * config/rs6000/xm-rs6000ly.h: Delete file.
9701 * config/sparc/xm-sparclynx.h: Delete file.
9702 * config/m68k/xm-m68klynx.h: Delete file.
9703 * config/i386/xm-i386lynx.h: Delete file.
9704 * config/xm-lynx.h: Delete file.
9705 * config/djgpp/fnchange.lst: Update.
9706
9707 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9708
9709 * alpha-tdep.c (alpha_register_byte): New function.
9710 (alpha_register_raw_size): Ditto.
9711 (alpha_register_virtual_size): Ditto.
9712 (alpha_skip_prologue_internal): Renamed from
9713 alpha_skip_prologue.
9714 (alpha_skip_prologue): New version that calls
9715 alpha_skip_prologue_internal.
9716 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9717 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9718 second argument from alpha_skip_prologue.
9719 (REGISTER_BYTE): Use alpha_register_byte.
9720 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9721 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9722 (FRAMELESS_FUNCTION_INVOCATION): Use
9723 generic_frameless_function_invocation_not.
9724 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9725 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9726
9727 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9728
9729 * config/mips/xm-news-mips.h: Delete file.
9730 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9731
9732 * config/m88k/xm-m88k.h: Delete file.
9733 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9734 * config/m88k/xm-delta88v4.h: Ditto.
9735 * config/m88k/xm-delta88.h: Ditto.
9736
9737 * config/alpha/xm-fbsd.h: Delete file.
9738 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9739
9740 * config/sparc/xm-sparc.h: Delete file.
9741 * Makefile.in (xm-sun4os4.h): Delete dependency.
9742 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9743 * config/sparc/xm-sun4os4.h: Ditto.
9744 * config/sparc/xm-linux.h: Ditto.
9745
9746 * config/i386/xm-windows.h: Delete file.
9747
9748 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9749
9750 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9751 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9752
9753 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9754
9755 * alpha-tdep.c (alpha_call_dummy_words): New.
9756 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9757 (CALL_DUMMY_P): Define.
9758 (CALL_DUMMY_WORDS): Define.
9759 (SIZEOF_CALL_DUMMY_WORDS): Define.
9760
9761 2002-01-19 Per Bothner <per@bothner.com>
9762
9763 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9764 isn't NULL, which can happen with some gcj-3.x-produced code.
9765
9766 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9767
9768 * alpha-tdep.c (alpha_register_virtual_type): New function.
9769 (alpha_init_frame_pc_first): Ditto.
9770 (alpha_fix_call_dummy): Ditto.
9771 (alpha_store_struct_return): Ditto.
9772 (alpha_extract_struct_value_address): Ditto.
9773 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9774 alpha_register_virtual_type.
9775 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9776 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9777 alpha_extract_struct_value_address.
9778 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9779 (INIT_FRAME_PC): Use init_frame_pc_noop.
9780 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9781
9782 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9783
9784 * i386gnu-nat.c: Include "i386-tdep.h".
9785 (fetch_fpregs): Simplify code dealing with uninitialized floating
9786 point states such that it doesn't require FP7_REGNUM.
9787
9788 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9789
9790 * alpha-tdep.c (frame_extra_info): New.
9791 (alpha_find_saved_regs): Make static. Use
9792 frame->extra_info.
9793 (alpha_frame_init_saved_regs): New function.
9794 (alpha_frame_saved_pc): Use frame->extra_info.
9795 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9796 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9797 (init_extra_frame_info): Rename to...
9798 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9799 (alpha_print_extra_frame_info): New function.
9800 (alpha_frame_locals_address): Ditto.
9801 (alpha_frame_args_address): Ditto.
9802 (alpha_pop_frame): Use frame->extra_info.
9803 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9804 alpha_frame_args_address.
9805 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9806 (alpha_find_saved_regs): Remove prototype.
9807 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9808 (EXTRA_FRAME_INFO): Remove.
9809 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9810 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9811
9812 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9813
9814 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9815 (alpha_cannot_fetch_register): Ditto.
9816 (alpha_cannot_store_register): Ditto.
9817 (alpha_register_convertible): Ditto.
9818 (alpha_use_struct_convention): Ditto.
9819 * config/alpha/tm-alpha.h: Update copyright years.
9820 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9821 (INNER_THAN): Use core_addr_lessthan.
9822 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9823 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9824 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9825 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9826 (FRAME_CHAIN): Remove unnecessary cast.
9827
9828 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9829
9830 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9831 obsolete.
9832
9833 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9834
9835 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9836 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9837 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9838 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9839 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9840 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9841 * x86-64-linux-nat.c: Ditto.
9842
9843 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9844
9845 * alpha-tdep.c (alpha_register_name): New function.
9846 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9847 (REGISTER_NAME): Define.
9848
9849 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9850
9851 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9852
9853 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9854
9855 * alpha-tdep.c: Update copyright years.
9856 (alpha_next_pc): New function.
9857 (alpha_software_single_step): Ditto.
9858 * config/alpha/tm-alpha.h: Add prototype for
9859 alpha_software_single_step.
9860
9861 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9862
9863 * alphabsd-nat.c: Update copyright years.
9864 (fill_gregset): Use regcache_collect.
9865 (fill_fpregset): Likewise.
9866 (fetch_inferior_registers): Only fetch integer registers
9867 if requested to do so.
9868 (store_inferior_registers): Only store integer registers
9869 if requested to do so.
9870
9871 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9872
9873 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9874 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9875 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9876 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9877 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9878 * config/arm/linux.mh (XDEPFILES): Delete.
9879 * config/arm/nbsd.mh (XDEPFILES): Delete.
9880 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9881 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9882 * config/i386/i386m3.mh (XDEPFILES): Delete.
9883 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9884 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9885 * config/i386/fbsd.mh (XDEPFILES): Delete.
9886 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9887 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9888 * config/i386/i386v4.mh (XDEPFILES): Delete.
9889 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9890 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9891 * config/i386/i386aix.mh (XDEPFILES): Delete.
9892 * config/i386/go32.mh (XDEPFILES): Delete.
9893 * config/i386/cygwin.mh (XDEPFILES): Delete.
9894 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9895 * config/i386/i386mach.mh (XDEPFILES): Delete.
9896 * config/i386/i386v32.mh (XDEPFILES): Delete.
9897 * config/i386/linux.mh (XDEPFILES): Delete.
9898 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9899 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9900 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9901 * config/i386/i386sco.mh (XDEPFILES): Delete.
9902 * config/i386/i386v.mh (XDEPFILES): Delete.
9903 * config/i386/nbsd.mh (XDEPFILES): Delete.
9904 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9905 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9906 * config/i386/symmetry.mh (XDEPFILES): Delete.
9907 * config/i386/obsd.mh (XDEPFILES): Delete.
9908 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9909 * config/ia64/linux.mh (XDEPFILES): Delete.
9910 * config/ia64/aix.mh (XDEPFILES): Delete.
9911 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9912 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9913 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9914 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9915 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9916 * config/m68k/linux.mh (XDEPFILES): Delete.
9917 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9918 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9919 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9920 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9921 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9922 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9923 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9924 * config/m88k/delta88.mh (XDEPFILES): Delete.
9925 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9926 * config/m88k/m88k.mh (XDEPFILES): Delete.
9927 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9928 * config/mips/linux.mh (XDEPFILES): Delete.
9929 * config/mips/irix6.mh (XDEPFILES): Delete.
9930 * config/mips/irix5.mh (XDEPFILES): Delete.
9931 * config/mips/irix4.mh (XDEPFILES): Delete.
9932 * config/mips/irix3.mh (XDEPFILES): Delete.
9933 * config/mips/decstation.mh (XDEPFILES): Delete.
9934 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9935 (NATDEPFILES): Move core-aout.o to here.
9936 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9937 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9938 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9939 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9940 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9941 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9942 * config/pa/hpux11.mh (XDEPFILES): Delete.
9943 * config/powerpc/aix.mh (XDEPFILES): Delete.
9944 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9945 * config/powerpc/linux.mh (XDEPFILES): Delete.
9946 * config/romp/rtbsd.mh: Rename XDEPFILES.
9947 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9948 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9949 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9950 * config/s390/s390.mh (XDEPFILES): Delete.
9951 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9952 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9953 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9954 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9955 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9956 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9957 * config/sparc/linux.mh (XDEPFILES): Delete.
9958 * config/vax/vaxult.mh (XDEPFILES): Delete.
9959 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9960 * Makefile.in (DEPFILES): Remove XDEPFILES.
9961
9962 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9963
9964 * utils.c (internal_verror): Fix comments, default is yes not no.
9965 Update queries to match. Default to quit and dump core.
9966
9967 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9968
9969 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9970 copyright.
9971 * defs.h, event-top.c, gdbcmd.h: Ditto.
9972 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9973 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9974 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9975 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9976 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9977 * mi/mi-main.c:Ditto.
9978
9979 * stack.c, symfile.c: Update copyright.
9980
9981 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9982
9983 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9984 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9985 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9986 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9987
9988 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9989
9990 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9991 * gdbserver/low-lynx.c (myattach): Likewise.
9992 * gdbserver/low-nbsd.c (myattach): Likewise.
9993 * gdbserver/low-sim.c (myattach): Likewise.
9994 * gdbserver/low-sparc.c (myattach): Likewise.
9995 * gdbserver/low-sun3.c (myattach): Likewise.
9996
9997 * gdbserver/low-linux.c (myattach): New function.
9998
9999 * gdbserver/server.c (attach_inferior): New function.
10000 (main): Handle "--attach".
10001
10002 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10003
10004 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10005 maintainer.
10006
10007 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10008
10009 * c-typeprint.c (is_type_conversion_operator): Add additional
10010 check for non-conversion operators.
10011
10012 2002-01-15 Michael Snyder <msnyder@redhat.com>
10013
10014 * linux-proc.c: Add "info proc" command, a la procfs.c.
10015 (read_mapping): New function, abstract and re-use code.
10016 (linux_find_memory_regions): Use new func read_mapping.
10017 (linux_info_proc_cmd): New function, implement "info proc".
10018 (_initialize_linux_proc): Add new command "info proc".
10019
10020 2002-01-15 Michael Snyder <msnyder@redhat.com>
10021
10022 * symfile.c (generic_load): Use bfd_map_over_sections method
10023 instead of manipulating bfd structure members directly.
10024 (add_section_size_callback): New function, bfd sections callback
10025 used by generic_load.
10026 (load_sections_callback): New function, bfd sections callback
10027 used by generic_load.
10028
10029 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10030
10031 [Based on work by Jim Blandy]
10032 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10033 (builtin_type_vec128): Export.
10034 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10035 types.
10036 (builtin_type_vec128): New builtin type for 128 bit vector
10037 registers.
10038 (build_gdbtypes): Initialize builtin_type_v16qi and
10039 builtin_type_v8hi. Create the vec128 register builtin type
10040 structure.
10041 (build_builtin_type_vec128): New function.
10042 (_initialize_gdbtypes): Register builtin_type_v16qi and
10043 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10044 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10045 AltiVec register to new builtin type.
10046
10047 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10048
10049 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10050 to make_cv_type.
10051
10052 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10053
10054 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10055 CLEAN_UP_REGISTER_VALUE.
10056 * regcache.c (supply_register): Update only call.
10057
10058 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10059
10060 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10061 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10062 a29k-*-vxworks* targets as obsolete.
10063
10064 2002-01-14 Michael Snyder <msnyder@redhat.com>
10065
10066 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10067 until we can resolve portability issues.
10068 * gregset.h: Remove references to fpxregs.
10069 * gcore.c (gcore_command): Initialize note_sec to NULL.
10070
10071 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10072
10073 * signals.c (target_signal_to_name): Rewrite. Only use
10074 signals[].name when in bounds and non-NULL.
10075
10076 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10077
10078 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10079 * signals.c (target_signal_to_name): Verify that SIG is within the
10080 bounds of the signals array.
10081
10082 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10083
10084 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10085
10086 2002-01-13 Keith Seitz <keiths@redhat.com>
10087
10088 * stack.c (print_frame_info_base): Print the frame's pc
10089 only if when print_frame_info_listing_hook is not defined.
10090
10091 2002-01-13 Keith Seitz <keiths@redhat.com>
10092
10093 * varobj.c (varobj_set_value): Make sure that there were no
10094 errors evaluating the object before attempting to set its
10095 value.
10096 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10097 so this offset adjustment is no longer necessary.
10098 (create_child): Don't set the error flag if the child is
10099 a CPLUS_FAKE_CHILD.
10100 (value_of_child): If value_fetch_lazy fails, return NULL
10101 so that callers will be notified that an error occurred.
10102 (c_value_of_variable): Delay check of variable's validity
10103 until later. We actually want all structs and unions to have
10104 the value "{...}".
10105 Do not return "???" for variables which could not be evaluated.
10106 This error condition must be returned to the caller so that it
10107 can get the error condition from gdb.
10108 (cplus_name_of_child): Adjust index for vptr before figuring
10109 out the name of the child.
10110 (cplus_value_of_child): If a child's (real) parent is not valid,
10111 don't even bother trying to give a value for it. Just return
10112 an error. Change all instances in this function.
10113 (cplus_type_of_child): If our parent is one of the "fake"
10114 parents, we need to get at the type of the real parent, and
10115 derive the child's true type using this information.
10116
10117 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10118
10119 From 2002-01-09 John Marshall <johnm@falch.net>:
10120 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10121 sources.redhat.com, and tweak some related URLs which had
10122 suffered from linkrot.
10123
10124 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10125
10126 From Jeff law:
10127 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10128 structures passed in registers.
10129
10130 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10131
10132 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10133 white space which prevented compilation. Reported by DSK
10134 <dsk@student.unsw.edu.au>.
10135
10136 2002-01-11 Michael Snyder <msnyder@redhat.com>
10137
10138 * symfile.c (build_section_addr_info_from_section_tab):
10139 Use bfd access method instead of manipulating bfd directly.
10140 (syms_from_objfile): Ditto.
10141 (simple_overlay_update_1): Ditto.
10142 (simple_overlay_update): Ditto.
10143 (generic_load): Ditto.
10144 (overlay_unmapped_address): FIXME comment, bfd access methods.
10145 (sections_overlap): FIXME comment, bfd access methods.
10146 (pc_in_mapped_range): FIXME comment, bfd access methods.
10147 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10148 (section_is_mapped): FIXME comment, bfd access methods.
10149 (section_is_overlay): FIXME comment, bfd access methods.
10150
10151 * symfile.c (generic_load): Whitespace and long line cleanups.
10152 Remove duplicate variable, change several local variables to
10153 more appropriate data types.
10154 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10155
10156 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10157
10158 From Peter Schauer:
10159 * language.c (longest_local_hex_string_custom): Use phex_nz to
10160 convert NUM to a hex string.
10161
10162 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10163
10164 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10165 the function.
10166 Update Copyright year.
10167
10168 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10169
10170 * language.c (longest_raw_hex_string): Delete unused function.
10171
10172 2002-01-11 Petr Sorfa <petrs@caldera.com>
10173
10174 * MAINTAINERS (write-after-approval): Add myself.
10175 * dwarf2read.c (read_tag_string_type): Handling of
10176 DW_AT_byte_size.
10177 (read_tag_string_type): FORTRAN fix to prevent propagation of
10178 first string size.
10179 (set_cu_language): Handling of DW_LANG_Fortran95
10180
10181 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10182
10183 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10184 GETPID(inferior_ptid).
10185 (store_inferior_registers): Likewise.
10186
10187 2002-01-10 Jason Merrill <jason@redhat.com>
10188
10189 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10190 Fix DW_OP_minus.
10191
10192 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10193
10194 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10195 and bfd/elf32-sh-nbsd.c.
10196
10197 2002-01-10 Michael Snyder <msnyder@redhat.com>
10198
10199 * NEWS: Mention --pid and corefile/proc-id behavior change.
10200
10201 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10202 * gcore.c: Include cli/cli-decode.h instead of command.h.
10203
10204 * main.c (captured_main): Add new command line option "--pid".
10205 If the second command line argument (following the symbol-file)
10206 begins with a digit, try to attach to it before trying to open
10207 it as a corefile.
10208 (print_gdb_help): Document the "--pid" argument.
10209
10210 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10211
10212 * completer.c (command_completer): New function.
10213
10214 * completer.h <command_completer>: Add prototype.
10215
10216 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10217 completer for the "help" command.
10218
10219 2002-01-09 Jason Merrill <jason@redhat.com>
10220
10221 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10222
10223 2002-01-09 Michael Snyder <msnyder@redhat.com>
10224
10225 * i386-linux-nat.c (fill_fpxregset): Make global.
10226 (store_fpxregset): Ditto.
10227
10228 * gregset.h (gdb_fpxregset_t): Define.
10229 (supply_fpxregset): Prototype.
10230 (fill_fpxregset): Prototype.
10231
10232 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10233
10234 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10235
10236 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10237 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10238 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10239
10240 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10241
10242 * MAINTAINERS: Update target maintainer rules so that any
10243 Maintainer can approve a tested patch for a maintenance-only
10244 target.
10245
10246 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10247
10248 * MAINTAINERS (write-after-approval): Add myself.
10249
10250 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10251 IN_SIGTRAMP.
10252
10253 2002-01-08 Michael Snyder <msnyder@redhat.com>
10254
10255 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10256 real name of the executable, rather than the /proc name.
10257
10258 2002-01-03 Michael Snyder <msnyder@redhat.com>
10259
10260 Implement a "generate-core-file" command in gdb, save target state.
10261 * gcore.c: New file. Implement new command 'generate-core-file'.
10262 Save a corefile image of the current state of the inferior.
10263 * linux-proc.c: Add linux-specific code for saving corefiles.
10264 * target.h (struct target_ops): Add new target vectors for saving
10265 corefiles; to_find_memory_regions and to_make_corefile_notes.
10266 (target_find_memory_regions): New macro.
10267 (target_make_corefile_notes): New macro.
10268 * target.c (update_current_target): Inherit new target methods.
10269 (dummy_find_memory_regions): New place-holder method.
10270 (dummy_make_corefile_notes): New place-holder method.
10271 (init_dummy_target): Initialize new dummy target vectors.
10272 * exec.c (exec_set_find_memory_regions): New function.
10273 Allow the exec_ops vector for memory regions to be taken over.
10274 (exec_make_note_section): New function, target vector method.
10275 * defs.h (exec_set_find_memory_regions): Export prototype.
10276 * procfs.c (proc_find_memory_regions): New function, corefile method.
10277 (procfs_make_note_section): New function, corefile method.
10278 (init_procfs_ops): Set new target vector pointers.
10279 (find_memory_regions_callback): New function.
10280 (procfs_do_thread_registers): New function.
10281 (procfs_corefile_thread_callback): New function.
10282 * sol-thread.c (sol_find_memory_regions): New function.
10283 (sol_make_note_section): New function.
10284 (init_sol_thread_ops): Initialize new target vectors.
10285 * inftarg.c (inftarg_set_find_memory_regions): New function.
10286 Allow to_find_memory_regions vector to be taken over.
10287 (inftarg_set_make_corefile_notes): New function.
10288 Allow to_make_corefile_notes vector to be taken over.
10289 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10290 interface layer if not target_has_execution (may be a corefile).
10291 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10292 * config/sparc/sun4sol2.mh: Ditto.
10293 * config/alpha/alpha-linux.mh: Ditto.
10294 * config/arm/linux.mh: Ditto.
10295 * config/i386/x86-64linux.mh: Ditto.
10296 * config/ia64/linux.mh: Ditto.
10297 * config/m68k/linux.mh: Ditto.
10298 * config/mips/linux.mh: Ditto.
10299 * config/powerpc/linux.mh: Ditto.
10300 * config/sparc/linux.mh: Ditto.
10301
10302 2002-01-07 Michael Snyder <msnyder@redhat.com>
10303
10304 * arm-linux-nat.c: Remove references to regcache.c internal data
10305 (registers[] and register_valid[]).
10306
10307 2002-01-07 Michael Snyder <msnyder@redhat.com>
10308
10309 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10310 so that attaching to a pid will automatically read the process's
10311 symbol file and shlibs.
10312 * Makefile.in: Add rule for linux-proc.o.
10313 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10314 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10315 * config/arm/linux.mh: Ditto.
10316 * config/i386/linux.mh: Ditto.
10317 * config/i386/x86-64linux.mh: Ditto.
10318 * config/ia64/linux.mh: Ditto.
10319 * config/m68k/linux.mh: Ditto.
10320 * config/mips/linux.mh: Ditto.
10321 * config/powerpc/linux.mh: Ditto.
10322 * config/sparc/linux.mh: Ditto.
10323
10324 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10325
10326 * win32-nat.c: Add i386-tdep.h dependency.
10327
10328 2002-01-07 Michael Snyder <msnyder@redhat.com>
10329
10330 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10331 instead of bfd_get_arch_size. Don't bail out just because
10332 there's no exec_bfd.
10333
10334 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10335 * p-valprint.c (pascal_object_print_value): Ditto.
10336 * somread.c (som_symtab_read): Ditto.
10337 * symfile.c (simple_free_overlay_region_table): Ditto.
10338 * valops.c (value_assign): Ditto.
10339
10340 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10341 use tilde_expand and strerror for opening save-tracepoints file.
10342
10343 * thread-db.c (thread_db_new_objfile): Indendation fix.
10344
10345 * infptrace.c (GDB_MAX_ALLOCA): New define.
10346 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10347 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10348 can be overridden with whatever value is appropriate to the host).
10349 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10350 alloca to allocate potentially large buffer.
10351 * rs6000-nat.c (child_xfer_memory): Ditto.
10352 * symm-nat.c (child_xfer_memory): Ditto.
10353 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10354
10355 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10356
10357 From Nick Clifton <nickc@redhat.com>
10358 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10359
10360 2002-01-07 Michael Snyder <msnyder@redhat.com>
10361
10362 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10363 Don't use exec_bfd if it's NULL.
10364
10365 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10366
10367 * valops.c (value_arg_coerce): Fix formatting.
10368
10369 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10370
10371 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10372 * gnu-nat.c: Ditto.
10373
10374 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10375
10376 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10377 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10378 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10379 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10380 z8k-coff have not been multi-arched. Update z8k-coff build
10381 status.
10382
10383 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10384
10385 * MAINTAINERS: Mark a29k target as obsolete.
10386 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10387 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10388 comments.
10389 * NEWS: Note that a29k targets are obsolete.
10390 * a29k-tdep.c: Mark as obsolete.
10391 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10392 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10393 a29k-*-vxworks* targets as obsolete.
10394 * remote-adapt.c: Obsolete.
10395 * remote-eb.c: Obsolete.
10396 * remote-mm.c: Obsolete.
10397 * remote-udi.c: Obsolete.
10398 * config/a29k/a29k-udi.mt: Obsolete.
10399 * config/a29k/a29k.mt: Obsolete.
10400 * config/a29k/tm-a29k.h: Obsolete.
10401 * config/a29k/tm-vx29k.h: Obsolete.
10402 * config/a29k/vx29k.mt: Obsolete.
10403
10404 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10405
10406 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10407 with BFD_ENDIAN_BIG.
10408
10409 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10410
10411 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10412 * configure, config.in: Re-generate.
10413 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10414 * defs.h: Do not include <endian.h>.
10415
10416 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10417
10418 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10419 * config.in: Regenerate.
10420 * configure.in: Update copyright years.
10421 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10422 * configure: Regenerate.
10423 * i386bsd-nat.c: Update copyright years.
10424 (fill_gregset): Use regcache_collect.
10425 (fetch_inferior_registers): Only fetch integer registers
10426 if requested to do so. Add support for XMM registers
10427 using PT_GETXMMREGS.
10428 (store_inferior_registers): Only store integer registers
10429 if requested to do so. Add support for XMM registers
10430 using PT_SETXMMREGS.
10431 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10432 (store_inferior_registers): Remove.
10433 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10434 (fetch_elfcore_registers): New function.
10435 (i386nbsd_elfcore_fns): New.
10436 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10437 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10438 i386bsd-nat.o.
10439 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10440 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10441 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10442 * config/i386/tm-nbsd.h: Update copyright years.
10443 (HAVE_SSE_REGS): Define.
10444 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10445 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10446 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10447 (SIGCONTEXT_PC_OFFSET): Remove.
10448 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10449
10450 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10451
10452 * configure.tgt: Remove powerpc-*-macos* target.
10453 * config/m68k/xm-mpw.h: Delete file.
10454 * config/xm-mpw.h: Delete file.
10455 * ser-mac.c: Delete file.
10456 * mpw-make.sed: Delete file.
10457 * mpw-config.in: Delete file.
10458 * mac-xdep.c: Delete file.
10459 * mac-gdb.r: Delete file.
10460 * mac-defs.h: Delete file.
10461 * mac-nat.c: Delete file.
10462 * config/powerpc/macos.mh: Delete file.
10463 * config/powerpc/macos.mt: Delete file.
10464 * config/powerpc/nm-macos.h: Delete file.
10465 * config/powerpc/tm-macos.h: Delete file.
10466 * source.c (openp, open_source_file): Remove obsolete code.
10467 * top.c (gdb_readline): Ditto.
10468 * utils.c (query): Ditto.
10469 * event-top.c (display_gdb_prompt): Ditto.
10470 * Makefile.in (ser-mac.o): Delete obsolete target.
10471 * NEWS: Update.
10472
10473 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10474
10475 * defs.h (BIG_ENDIAN): Delete macro definition.
10476 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10477 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10478 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10479 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10480 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10481 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10482 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10483 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10484 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10485 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10486 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10487 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10488 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10489 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10490 * gdbarch.c: Re-generate.
10491
10492 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10493
10494 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10495 for core files.
10496
10497 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10498
10499 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10500
10501 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10502
10503 * value.h (value_ptr): Delete typedef.
10504
10505 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10506
10507 * i386nbsd-nat.c: Update copyright years.
10508 Include i386-tdep.h.
10509
10510 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10511
10512 * stabsread.c: Update copyright years.
10513
10514 From Debashis Mahata <debashis.mahata@wipro.com>:
10515 (read_struct_fields): Deal with Sun C compiler erroneous stab
10516 output for structs and unions.
10517 Fix PR gdb/269.
10518
10519 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10520
10521 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10522 prototype.
10523
10524 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10525
10526 * cp-abi.c: Fix whitespace.
10527 (baseclass_offset): New wrapper function.
10528 * cp-abi.h (baseclass_offset): Add prototype.
10529 (struct cp_abi_ops): Add baseclass_offset pointer.
10530
10531 * valops.c (vb_match): Move to...
10532 * gnu-v2-abi.c (vb_match): here.
10533 * valops.c (baseclass_offset): Move to...
10534 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10535
10536 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10537
10538 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10539 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10540 * hpacc-abi.c (init_hpacc_ops): Likewise.
10541
10542 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10543
10544 * valops.c (find_overload_match): Accept obj as a
10545 reference parameter. Update it before returning.
10546 * value.h (find_overload_match): Update prototype.
10547 * eval.c (evaluate_subexp_standard): Pass object to
10548 find_overload_match by reference.
10549
10550 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10551
10552 * valarith.c: Replace value_ptr with struct value pointer. Remove
10553 register attribute from value declarations.
10554 * valops.c: Ditto.
10555 * value.h: Ditto.
10556 * scm-lang.c (scm_lookup_name): Ditto.
10557
10558 2002-01-03 Michael Snyder <msnyder@redhat.com>
10559
10560 Abstract the functionality of iterating over mapped memory
10561 regions into a general purpose iterator function.
10562 * procfs.c (iterate_over_mappings): New function, general purpose
10563 iterator for memory sections.
10564 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10565 (solib_mappings_callback): New function, callback for above.
10566 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10567 (info_mappings_callback): New function, callback for above.
10568
10569 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10570
10571 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10572
10573 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10574 * i386-tdep.c: Include "elf-bfd.h".
10575 (process_note_abi_tag_sections): New function.
10576 (i386_gdbarch_init): Add code to recognize various OS/ABI
10577 combinations.
10578
10579 * maint.c (_initialize_maint_cmds): Add missing \ in
10580 string-literal.
10581
10582 For older changes see ChangeLog-2001
10583 \f
10584 Local Variables:
10585 mode: change-log
10586 left-margin: 8
10587 fill-column: 74
10588 version-control: never
10589 End: