2002-08-23 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2
3 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5
6 2002-08-24 Mark Kettenis <kettenis@gnu.org>
7
8 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
9 problems.
10
11 2002-08-23 Joel Brobecker <brobecker@gnat.com>
12
13 * infrun.c (handle_inferior_event): Move a comment outside of a
14 function call, in order to avoid indent reformatting this part
15 of the code in an unreadable way.
16
17 2002-08-23 Grace Sainsbury <graces@redhat.com>
18
19 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
20 when breakpoints fail. Move general breakpoint error messages to
21 insert_breakpoints.
22 * breakpoint.c (insert_breakpoints): Change warnings when
23 breakpoints are nto inserted to specify the type. Remove call to
24 memory_error when hardware breakpoints can't be inserted. Remove
25 multiple calls to warning so all messages are sent to the user at
26 once.
27 (delete_breakpoints): Make insert error messsages more explicit.
28
29 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
30
31 * ChangeLog: Move gdbserver entries after GDB 5.2 to
32 gdbserver/ChangeLog.
33
34 2002-08-23 Mark Kettenis <kettenis@gnu.org>
35
36 * i386-tdep.c: Include "objfiles.h".
37 (i386_svr4_init_abi): Set in_solib_call_trampoline and
38 skip_trampoline_code.
39 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
40 (CPLUS_MARKER): Define to '.'.
41
42 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
43 member.
44 (linux_corefile_thread_callback): Increase args->num_notes.
45 (linux_make_note_section): Initialize thread_args.num_notes, and
46 use it to determine whether notes for any threads were created.
47
48 2002-08-23 Donn Terry <dterry@microsoft.com>
49
50 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
51 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
52 and PCUNKILL.
53 (write_with_trace): Conditionalize out the switch branch handling
54 PCSHOLD if the corresponding macro is not defined. Likewise for
55 PRSABORT and PRSTOP.
56 This change will be needed by the Interix port.
57
58 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
59
60 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
61 ev_offset fields.
62 (skip_prologue): Add support for BookE/e500 instructions.
63 (e500_extract_return_value): New function.
64 (frame_get_saved_regs): Add support for saving ev registers and
65 pseudo gpr's.
66 (e500_store_return_value): New function.
67 (rs6000_gdbarch_init): Move up default intializations of
68 deprecated_extract_return_value and store_return_value. Overwrite
69 init of store_return_value with e500 specific version.
70 Set extract_return_value for e500.
71
72 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
73
74 * blockframe.c (generic_call_dummy_register_unwind): Use
75 regcache_cooked_read to catch cases in which the variable is
76 stored in a pseudo register.
77
78 2002-08-22 Andrew Cagney <cagney@redhat.com>
79
80 * NEWS: Mention that the i960 has been made obsolete.
81 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
82 i960-tdep.c
83 (remote-nrom.o): Obsolete target.
84 (remote-nindy.o, i960-tdep.o): Ditto.
85 * remote-nrom.c: Make file obsolete.
86 * remote-nindy.c, remote-vx960.c: Ditto.
87 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
88 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
89 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
90 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
91 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
92 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
93 i960-*-vxworks* obsolete.
94 * MAINTAINERS: Note that the i960 is obsolete.
95
96 >>>>>>> 1.3141
97 2002-08-21 Corinna Vinschen <vinschen@redhat.com
98
99 * aix-thread.c (aix_thread_detach): Disable thread debugging on
100 detach to allow reinitialization.
101
102 2002-08-22 Andrew Cagney <ac131313@redhat.com>
103
104 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
105 attempt).
106
107 2002-08-22 Jim Blandy <jimb@redhat.com>
108
109 * coffread.c (coff_symfile_read): Don't try to read the line
110 number table from disk if the image file doesn't have a symbol
111 table; we'll never actually look at the info anyway, and Windows
112 ships DLL's with bogus file offsets for the line number data.
113
114 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
115
116 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
117 an e500 executable.
118
119 2002-08-21 Michael Snyder <msnyder@redhat.com>
120
121 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
122 (MSYMBOL_SIZE): Replace macro with function.
123 (DEFAULT_MIPS_TYPE): Delete unused macro.
124 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
125 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
126
127 >>>>>>> 1.3134
128 2002-08-21 Jim Blandy <jimb@redhat.com>
129
130 * valops.c (value_cast): Simplify and correct logic for doing a
131 static cast from a pointer to a base class to a pointer to a
132 derived class.
133
134 2002-08-21 Andrew Cagney <ac131313@redhat.com>
135
136 * infcmd.c (default_print_registers_info): Replace
137 do_registers_info.
138 (registers_info): Use gdbarch_print_registers_info instead of
139 DO_REGISTERS_INFO.
140 * inferior.h (default_print_registers_info): Replace
141 do_registers_info.
142 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
143 (DO_REGISTERS_INFO): Change to a predicate function.
144 * gdbarch.h, gdbarch.c: Regenerate.
145
146 2002-08-21 Keith Seitz <keiths@redhat.com>
147
148 * gdb-events.sh: Add target-changed event.
149 * gdb-events.c: Regenerated.
150 * gdb-events.c: Regenerated.
151 * valops.c (value_assign): Add target-changed event notification
152 to inlval_register, lval_memory, and lval_reg_frame_relative.
153
154 2002-08-21 Joel Brobecker <brobecker@gnat.com>
155
156 * NEWS: Add an entry regarding the improvement of the next/step
157 operation on Alpha Tru64 multi-processor machines.
158
159 2002-08-21 Andrew Cagney <ac131313@redhat.com>
160
161 * Makefile.in: Update dependencies for mi/ cli/ and tui/
162 directores.
163 * Makefile.in: Update all _h macro definitions.
164 * Makefile.in (install-gdbtk): Move to install section.
165 (rdi-share/libangsd.a): Move to end of file.
166
167 2002-08-19 Andrew Cagney <ac131313@redhat.com>
168
169 * frame.c (frame_register_unwind): When a register, set addrp to
170 the register's byte.
171
172 2002-08-20 Michael Snyder <msnyder@redhat.com>
173
174 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
175 used locally, so move them from the target machine header to here.
176 (mips_set_processor_type, mips_register_name, mips32_next_pc,
177 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
178 Make static.
179 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
180
181 2002-08-20 Andrew Cagney <cagney@redhat.com>
182
183 * NEWS: Mention that the Apollo line was made obsolete.
184 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
185 m68*-hp-hpux* obsolete.
186 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
187 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
188 * buildsym.c (make_blockvector): Make static.
189 * buildsym.h (make_blockvector): Make extern declaration obsolete.
190 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
191 (ALLDEPFILES): Remove dstread.c.
192 (dstread.o): Obsolete make rule.
193 * dstread.c: Makefile obsolete.
194 * dst.h: Ditto.
195 * config/m68k/hp300hpux.mt: Ditto.
196 * config/m68k/hp300hpux.mh: Ditto.
197 * config/m68k/hp300bsd.mt: Ditto.
198 * config/m68k/hp300bsd.mh: Ditto.
199 * config/m68k/apollo68b.mt: Ditto.
200 * config/m68k/apollo68v.mh: Ditto.
201 * config/m68k/apollo68b.mh: Ditto.
202
203 2002-08-20 Michael Snyder <msnyder@redhat.com>
204
205 * mips-tdep.c (mips_in_return_stub): Make static.
206 (mips_gdbarch_init): Set in_solib_return_trampoline.
207 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
208
209 2002-08-20 Michael Snyder <msnyder@redhat.com>
210
211 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
212 * gdbarch.c, gdbarch.h: Regenerate.
213 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
214 Add.
215 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
216
217 2002-08-20 Michael Snyder <msnyder@redhat.com>
218
219 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
220 (mips_gdbarch_init): Set skip_trampoline_code,
221 in_solib_call_trampoline.
222 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
223 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
224
225 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
226
227 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
228
229 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
230 vector type for ev registers.
231 (e500_pseudo_register_read): New function.
232 (e500_pseudo_register_write): New function.
233 (e500_dwarf2_reg_to_regnum): New function.
234 (PPC_UISA_NOFP_SPRS): New macro.
235 (PPC_EV_REGS): New macro.
236 (PPC_GPRS_PSEUDO_REGS): New macro.
237 (registers_e500): New register set for e500.
238 (variants): Add e500 variant.
239 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
240 before setting architectural dependent variations. Initialize ev
241 registers numbers. Add case for e500 architecture. Set the
242 number of pseudo registers.
243
244 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
245
246 * rs6000-tdep.c: Clean up comments.
247
248 2002-08-20 Andrew Cagney <cagney@redhat.com>
249
250 * h8300-tdep.c: Re-indent file.
251
252 2002-08-20 Jim Blandy <jimb@redhat.com>
253
254 * Makefile.in (LDFLAGS): Allow the configure script to establish a
255 default for this.
256
257 2002-08-20 Keith Seitz <keiths@redhat.com>
258
259 * breakpoints.c (watch_command_1): Use internal breakpoint
260 when setting a watchpoint_scope breakpoint.
261
262 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
263
264 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
265 (build_builtin_type_vec64i): Ditto.
266 (build_builtin_type_vec128): Ditto.
267 (build_builtin_type_vec128i): Ditto.
268
269 2002-08-19 Michael Snyder <msnyder@redhat.com>
270
271 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
272 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
273 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
274 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
275 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
276 CALL_DUMMY_ADDRESS): Delete.
277 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
278 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
279 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
280 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
281 push_return_address.
282 (mips_register_raw_size, mips_eabi_use_struct_convention,
283 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
284 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
285 mips_init_extra_frame_info, mips_eabi_push_arguments,
286 mips_n32n64_push_arguments, mips_push_return_address,
287 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
288 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
289
290 >>>>>>> 1.3128
291 2002-08-19 Michael Snyder <msnyder@redhat.com>
292
293 * mips-tdep.c (mips_frame_num_args): New function.
294 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
295 frame_saved_pc, frame_args_address, frame_locals_address,
296 frame_num_args, and frame_args_skip.
297 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
298 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
299 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
300 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
301
302 2002-08-20 Michael Snyder <msnyder@redhat.com>
303
304 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
305 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
306 * mips-tdep.c (mips_store_struct_return): New function.
307 (mips_extract_struct_value_address): New function.
308 (mips_gdbarch_init): Set store_struct_return and
309 extract_struct_value_address.
310
311 2002-08-20 David Carlton <carlton@math.stanford.edu>
312
313 * dwarf2read.c (dwarf2_build_psymtabs): Check that
314 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
315 (read_file_scope): Check that line_header is nonzero before
316 decoding macro information.
317
318 2002-08-20 Mark Kettenis <kettenis@gnu.org>
319
320 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
321 flag the general-purpose registers as floating-point on targets
322 that don't support the floating-point registers.
323
324 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
325
326 * rs6000-tdep.c (altivec_register_p): Delete.
327 (rs6000_do_altivec_registers): Delete.
328 (rs6000_altivec_registers_info): Delete.
329 (rs6000_do_registers_info): Delete.
330 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
331 (rs6000_gdbarch_init): Remove setting of do_registers_info.
332
333 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
334
335 * infcmd.c (do_registers_info): Print vector registers in hex
336 format only.
337 (print_vector_info): Check that printing registers
338 makes sense.
339 (print_float_info): Ditto.
340
341 2002-08-20 Andrew Cagney <ac131313@redhat.com>
342
343 * mips-tdep.c (mips_gdbarch_init): Update.
344 (mips_o32_extract_return_value): Rewrite.
345 (mips_o32_store_return_value): Rewrite.
346 (mips_o32_xfer_return_value): New function.
347 (mips_xfer_register): Tweak debug print message. Allow for
348 buf_offset when dumping the value transfered.
349
350 2002-08-20 Andrew Cagney <ac131313@redhat.com>
351
352 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
353 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
354 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
355 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
356 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
357
358 2002-08-14 Michael Snyder <msnyder@redhat.com>
359
360 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
361
362 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
363
364 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
365 register.
366 (P): New macro to define a register as a pseudo register.
367 (R, R4, R8, R16, FR32, R64, R0): Updated.
368 (struct variant): Add new fields for number of pseudo registers
369 and number of total registers.
370 (tot_num_registers): New macro replacing....
371 (num_registers): ...deleted macro.
372 (num_registers): New function.
373 (num_pseudo_registers): New function.
374 (variants): Update all variants to intialize new fields correctly.
375 Postpone initialization of number of pseudo regs and real regs.
376 (init_variants): New function.
377 (rs6000_gdbarch_init): Initialize variants. Update calculation of
378 registers offsets.
379
380 2002-08-19 David Carlton <carlton@math.stanford.edu>
381
382 * valops.c (search_struct_field): Change error message to treat
383 return value of 0 from value_static_field as meaning that field is
384 optimized out.
385 (value_struct_elt_for_reference): Ditto.
386 * values.c (value_static_field): Treat an unresolved location the
387 same as a nonexistent symbol. Fix PR gdb/635.
388 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
389 enclosed. Fix PR gdb/574.
390 * MAINTAINERS: Add self to Write After Approval list.
391
392 2002-08-19 Andrew Cagney <ac131313@redhat.com>
393
394 * mips-tdep.c (mips_xfer_register): New function.
395 (mips_n32n64_extract_return_value): Rewrite.
396 (mips_gdbarch_init): For N32 and N64, set extract_return_value
397 instead of deprecated_extract_return_value.
398
399 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
400
401 * rs6000-tdep.c (TDEP): Delete macro.
402 (branch_dest): Replace use of TDEP macro with its body.
403 (rs6000_pop_frame): Ditto.
404 (rs6000_push_arguments): Ditto.
405 (rs6000_skip_trampoline_code): Ditto.
406 (rs6000_frame_saved_pc): Ditto.
407 (rs6000_frame_chain): Ditto.
408 (rs6000_register_name): Ditto.
409 (rs6000_register_byte): Ditto.
410 (rs6000_register_raw_size): Ditto.
411 (rs6000_register_virtual_type): Ditto.
412 (rs6000_register_convertible): Ditto.
413 (rs6000_convert_from_func_ptr_addr): Ditto.
414
415 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
416
417 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
418 conditionally.
419 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
420 MIPS_LINUX_JB_ELEMENT_SIZE.
421 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
422 for MAX_REGISTER_RAW_SIZE arrays.
423 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
424 MIPS_LINUX_JB_ELEMENT_SIZE.
425
426 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
427
428 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
429
430 2002-08-19 Aidan Skinner <aidan@velvet.net>
431
432 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
433 ada-valprint.c ada-tasks.c.
434 (YYFILES): Add ada-exp.y.
435 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
436 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
437 (ada-exp.tab.o): New target.
438
439 2002-08-18 Andrew Cagney <ac131313@redhat.com>
440
441 * regcache.c (regcache_xfer_part): New function.
442 (regcache_raw_read_part): New function.
443 (regcache_raw_write_part): New function.
444 (regcache_cooked_read_part): New function.
445 (regcache_cooked_write_part): New function.
446 * regcache.h (regcache_raw_read_part): Declare.
447 (regcache_raw_write_part): Declare.
448 (regcache_cooked_read_part): Declare.
449 (regcache_cooked_write_part): Declare.
450
451 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
452
453 * remote.c (remote_open_1): Add async_p.
454 (remote_async_open_1): Delete.
455 (open_remote_target): Delete.
456 (remote_open, extended_remote_open): Update calls to remote_open_1.
457 (remote_async_open, extended_remote_async_open): Call
458 remote_open_1 instead of remote_async_open_1.
459
460 2002-08-19 Mark Kettenis <kettenis@gnu.org>
461
462 * blockframe.c: Fix a few coding standard violations.
463
464 2002-08-19 Mark Kettenis <kettenis@gnu.org>
465
466 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
467 here from ...
468 * config/i386/tm-i386sco5.h: ... here. File removed.
469 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
470
471 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
472 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
473 (TM_FILE): Set to tm-i386.h.
474 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
475 * config/i386/tm-i386v.h: Remove file.
476 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
477 instead of "i386/tm-i386v.h".
478 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
479 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
480 "i386/tm-i386v.h".
481 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
482 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
483 "i386/tm-i386.h".
484
485 2002-08-18 Mark Kettenis <kettenis@gnu.org>
486
487 * config/i386/nm-i386v.h: Add protection against
488 multiple-inclusion.
489 (i386_register_u_addr): Remove prototype.
490 (register_u_addr): New prototype.
491 (REGISTER_U_ADDR): Redefine accordingly.
492 * i386v-nat.c: Improve several comments.
493 (i386_register_u_addr): Change signature and rename to
494 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
495 ubase variable.
496
497 2002-08-18 Andrew Cagney <ac131313@redhat.com>
498
499 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
500 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
501 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
502 deprecated_extract_return_value.
503 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
504 rename mips_o32o64_push_arguments.
505 (mips_gdbarch_init): Update.
506 (mips_extract_return_value): Delete.
507 (mips_o32_extract_return_value): Clone mips_extract_return_value.
508 (mips_o64_extract_return_value): Clone mips_extract_return_value.
509 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
510 (mips_n32n64_extract_return_value): Clone
511 mips_extract_return_value.
512 (mips_store_return_value): Delete.
513 (mips_o32_store_return_value): Clone mips_store_return_value.
514 (mips_o64_store_return_value): Clone mips_store_return_value.
515 (mips_eabi_store_return_value): Clone mips_store_return_value.
516 (mips_n32n64_store_return_value): Clone mips_store_return_value.
517
518 2002-08-18 Aidan Skinner <aidan@velvet.net>
519
520 * ada-lang.c: Use gdb_string.h instead of <string.h>.
521 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
522
523 2002-08-18 Aidan Skinner <aidan@velvet.net>
524
525 * ada-lang.c: Run through gdb_indent.sh.
526 * ada-lang.h: Run through gdb_indent.sh.
527 * ada-tasks.c: Run through gdb_indent.sh.
528 * ada-typeprint.c: Run through gdb_indent.sh.
529 * ada-valprint.c: Run through gdb_indent.sh.
530
531 2002-08-18 Andrew Cagney <ac131313@redhat.com>
532
533 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
534 ABI.
535
536 2002-08-18 Mark Kettenis <kettenis@gnu.org>
537
538 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
539
540 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
541 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
542
543 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
544 write_register_gen instead of write_register_bytes.
545
546 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
547 i[3456]-*-osf1mk* configurations have been made obsolete.
548 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
549 i[3456]86-*-osf1mk* hosts obsolete.
550 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
551 targets obsolete.
552 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
553 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
554 config/i386/i386m3.mt, config/i386/nm-m3.h,
555 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
556 config/i386/i386mk.mh, config/i386/i386mk.mt,
557 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
558 obsolete.
559 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
560 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
561 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
562
563 2002-08-18 Andrew Cagney <ac131313@redhat.com>
564
565 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
566 (hppa_value_returned_from_stack): Declare.
567 (hppa_extract_return_value): Declare.
568 * config/pa/hppa.mt: New file.
569 * configure.tgt: Recognize hppa*-*-*.
570 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
571
572 2002-08-18 Mark Kettenis <kettenis@gnu.org>
573
574 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
575 comment.
576
577 2002-08-17 Mark Kettenis <kettenis@gnu.org>
578
579 * top.c (gdb_rl_operate_and_get_next): Make sure
580 operate-and-get-next functions correctly even when the history
581 list is completely filled.
582
583 2002-08-18 Andrew Cagney <ac131313@redhat.com>
584
585 * MAINTAINERS (Target Instruction Set Architectures): Rename
586 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
587 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
588 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
589 already listed under Host/Native.
590
591 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
592 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
593 mips*-*-*.
594
595 2002-08-17 Andrew Cagney <ac131313@redhat.com>
596
597 * config/ia64/ia64.mt: New file.
598 * config/alpha/alpha.mt: New file.
599 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
600 ia64-linux-gnu. Mention that ia64-elf is broken.
601 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
602
603 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
604
605 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
606 generic_func_frame_valid instead of func_frame_valid.
607
608 2002-08-16 Joel Brobecker <brobecker@gnat.com>
609
610 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
611 procfs appears to be broken when debugging on multi-processor
612 machines. So enable software single stepping in order to avoid
613 using the procfs interface to do next/step operations, using
614 internal breakpoints instead.
615
616 * infrun.c (handle_inferior_event): Readjust the stop_pc by
617 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
618 make this pc address equal to the value it would have if the
619 system stepping capability was used. Also set a new flag used
620 to ensure that we don't readjust the PC one more time later.
621
622 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
623 address by DECR_PC_AFTER_BREAK when software single step is
624 in use for this architecture, as this has already been taken
625 care of in handle_inferior_event().
626
627 2002-08-16 Joel Brobecker <brobecker@gnat.com>
628
629 * infrun.c (handle_inferior_event): Minor reformatting, to make
630 a rather long condition expression easier to read.
631
632 2002-08-16 Andrew Cagney <ac131313@redhat.com>
633
634 * Makefile.in (gdbtk.o): Move to end of file.
635 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
636 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
637 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
638 (gdbtk-wrapper.o, gdbres.o): Ditto.
639
640 2002-08-16 Andrew Cagney <ac131313@redhat.com>
641
642 * Makefile.in (copying.o): Separate out compile rule.
643 (hpux-thread.o, procfs.o, signals.o): Ditto.
644 (v850ice.o, z8k-tdep.o): Ditto.
645 (tui-file.o): Move to TUI section.
646 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
647 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
648
649 2002-08-16 Joel Brobecker <brobecker@gnat.com>
650
651 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
652 skip_trampoline_code, for better namespace-proofing.
653
654 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
655
656 2002-08-16 Joel Brobecker <brobecker@gnat.com>
657
658 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
659
660 2002-08-16 Joel Brobecker <brobecker@gnat.com>
661
662 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
663 signal, check whether we hit a breakpoint before checking for a
664 single step breakpoint. Otherwise, GDB fails to notice that a
665 breakpoint has been hit when stepping onto a breakpoint.
666
667 2002-08-16 Keith Seitz <keiths@redhat.com>
668
669 * gdb-events.sh (clear_gdb_event_hooks): New function.
670 * gdb-events.c: Regenerate.
671 * gdb-events.h: Regenerate.
672
673 2002-08-16 Andrew Cagney <ac131313@redhat.com>
674
675 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
676 not_a_sw_breakpoint.
677 * breakpoint.h (bpstat_stop_status): Add parameter names.
678
679 2002-08-16 Grace Sainsbury <graces@redhat.com>
680
681 * remote.c (remote_insert_hw_breakpoint)
682 (remote_remove_hw_breakpoint): Fix calculation of length field
683 for Z-packet.
684
685 2002-08-15 Michael Snyder <msnyder@redhat.com>
686
687 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
688 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
689 (supply_fpregset): Ditto.
690
691 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
692 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
693 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
694 (TARGET_READ_SP): Delete.
695 (DO_REGISTERS_INFO): Delete.
696 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
697 Delete.
698 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
699 from macros to functions.
700
701 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
702 (mips_register_convertible, mips_register_convert_to_virtual,
703 mips_register_convert_to_raw): Make static.
704 (mips_read_sp): New function.
705 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
706 (mips_do_registers_info): Make static.
707 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
708 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
709 (mips_register_convert_from_type, mips_register_convert_to_type):
710 New functions.
711 (mips_gdbarch_init): Set up function_start_offset,
712 register_virtual_size, pc_in_sigtramp.
713
714 2002-08-15 Andrew Cagney <ac131313@redhat.com>
715
716 * infcmd.c (vector_info): New function.
717 (_initialize_infcmd): Add command "info vector".
718 (print_vector_info): New function.
719
720 * gdbarch.sh (PRINT_VECTOR_INFO): New method
721 * gdbarch.h, gdbarch.c: Regenerate.
722
723 2002-08-15 Andrew Cagney <ac131313@redhat.com>
724
725 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
726 ``print_all''. Only print vector registers when ``print_all''.
727
728 2002-08-15 Andrew Cagney <ac131313@redhat.com>
729
730 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
731 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
732
733 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
734 Add `args' parameter.
735 * gdbarch.h, gdbarch.c: Regenerate.
736
737 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
738
739 * infcmd.c (float_info): Call print_float_info.
740 (print_float_info): New function. By default, print the
741 floating-point registers.
742
743 * arch-utils.h (default_print_float_info): Delete declaration.
744 * arch-utils.c (default_print_float_info): Delete function.
745
746 2002-08-16 Mark Kettenis <kettenis@gnu.org>
747
748 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
749 out define.
750
751 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
752 FRAME.
753
754 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
755 * configure.host: Make i[3456]86-*-aix host obsolete.
756 * configure.tgt: Make i[3456]86-*-aix target obsolete.
757 * config/i386/i386aix.mh, config/i386/i386aix.mt,
758 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
759 config/i386/xm-i386aix.h: Make files obsolete.
760 * i386aix-nat.c: Make file obsolete.
761 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
762 (i386aix-nat.o): Make target obsolete.
763
764 * config/i386/nm-gnu.h: Removed.
765 * config/i386/nm-i386gnu.h: New file.
766 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
767 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
768 Moved here from ...
769 * config/i386/tm-i386gnu.h: ... here. Removed.
770 * config/i386/xm-i386gnu.h: Removed.
771 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
772 (NAT_FILE): Set to nm-i386gnu.h.
773 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
774 * i386-tdep.c: New file.
775 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
776 (i386gnu-tdep.o): Specify dependencies.
777
778 2002-08-15 Mark Kettenis <kettenis@gnu.org>
779
780 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
781 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
782 Adjust a few comments to reflect reality a bit closer.
783 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
784 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
785 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
786 target_insert_watchpoint, target_remove_watchpoint):
787 Move defines to ...
788 * config/i386/nm-i386sco5.h: ... here.
789 (kernel_u_size): Add prototype. Improve a few comments and add
790 protection against multiple inclusion.
791
792 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
793 out define.
794
795 * uw-thread.c (SP_ARG0): Define if not already defined.
796 * config/i386/tm-i386.h (SO_ARG0): Remove define.
797
798 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
799
800 * config/i386/tm-i386.h: Don't include "regcache.h".
801
802 * i387-tdep.h (i387_print_float_info): New prototype.
803 * i387-tdep.c (print_i387_value, print_i387_ext,
804 print_i387_status_word, print_i387_control_word): Add `struct
805 ui_file *' argument and use it for output.
806 (i387_print_float_info): Renamed from i387_float_info. Add
807 `struct gdbarch *' and `struct ui_file *' arguments and use the
808 latter for output.
809 * i386-tdep.c: Include "i387-tdep.h".
810 (i386_gdbarch_init): Set print_float_info.
811 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
812 (FLOAT_INFO): Remove define.
813
814 2002-08-13 Michael Snyder <msnyder@redhat.com>
815
816 * mips-tdep.c (mips_push_arguments): Rename to
817 mips_eabi_push_arguments, and tune for EABI.
818 (MIPS_REGS_HAVE_HOME_P): Delete.
819 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
820 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
821 Delete references to mips_regs_have_home_p.
822
823 2002-08-14 Keith Seitz <keiths@redhat.com>
824
825 * Makefile.in (install-gdbtk): Create insight plugin directory.
826 Install plugins.tcl file.
827
828 2002-08-14 Keith Seitz <keiths@redhat.com>
829
830 * configure.in: Move SUBDIRS to near top of the file so that
831 --enable options may add things to it.
832 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
833 * configure: Regenerate.
834
835 2002-08-13 Michael Snyder <msnyder@redhat.com>
836
837 * mips-tdep.c (mips_o32o64_push_arguments): New function,
838 cloned from mips_push_arguments, tuned for o32/o64 ABI.
839 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
840
841 2002-08-13 Andrew Cagney <ac131313@redhat.com>
842
843 * vax-tdep.c (vax_get_saved_register): Delete function.
844 (vax_gdbarch_init): Update.
845 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
846 (ns32k_gdbarch_init): Update.
847 * alpha-tdep.c (alpha_get_saved_register): Delete function.
848 (alpha_gdbarch_init): Update.
849
850 2002-08-13 Andrew Cagney <cagney@redhat.com>
851
852 * regcache.c (init_regcache_descr): Overallocate the
853 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
854 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
855 nr_raw_registers.
856 (set_register_cached): Add range checking assertions. Use
857 current_regcache.
858
859 2002-08-13 Mark Kettenis <kettenis@gnu.org>
860
861 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
862 numbers for MMX registers.
863
864 2002-08-13 Andrew Cagney <cagney@redhat.com>
865
866 * i386-tdep.c (i386_gdbarch_init): Use
867 generic_unwind_get_saved_register.
868
869 2002-08-13 Kevin Buettner <kevinb@redhat.com>
870
871 * procfs.c (procfs_can_use_hw_breakpoint): New function.
872 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
873 target vector.
874 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
875 Delete. Add comment regarding this now-deleted target method.
876
877 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
878
879 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
880 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
881 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
882 real PC and the page number (if it's within the memory bank window).
883 (m68hc11_pseudo_register_write): Likewise when saving.
884 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
885 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
886 (m68hc11_register_raw_size): And use 32-bit for it.
887 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
888 16K memory bank is used by the prog; also use the virtual pc.
889
890 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
891
892 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
893 (m68hc11_gdbarch_init): Install it in gdbarch.
894 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
895 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
896 (MSYMBOL_SIZE): New for documentation.
897 (insn_return_kind): Enum to specify how a function returns.
898 (frame_extra_info): Cleanup and record the return mode.
899 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
900 register in address computation.
901 (m68hc11_get_return_insn): New to obtain the return instruction used
902 by the function.
903 (m68hc11_frame_init_saved_regs): Take into account the return
904 instruction used by the function for far and interrupt functions.
905 (m68hc11_init_extra_frame_info): Take into account page register.
906 (m68hc11_frame_args_address): Adjust according to the return mode.
907 (show_regs): Print page register only when it's used.
908
909 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
910
911 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
912 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
913 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
914 registers.
915 (m68hc11_register_raw_size): Likewise.
916
917 2002-08-13 Andrew Cagney <cagney@redhat.com>
918
919 * i386-tdep.c (i386_register_name): Handle mmx registers.
920 (mmx_regnum_p): New function.
921 (i386_mmx_names): New array.
922 (mmx_num_regs): New variable.
923 (i386_pseudo_register_read): New function.
924 (i386_pseudo_register_write): New function.
925 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
926
927 * regcache.c (regcache_raw_read_unsigned): New function.
928 (regcache_raw_read_signed): New function.
929 * regcache.h (regcache_raw_read_unsigned): Declare.
930 (regcache_raw_read_signed): Declare.
931
932 2002-08-13 Andrew Cagney <cagney@redhat.com>
933
934 * regcache.c (regcache_raw_read_as_address): Delete function.
935 (regcache_cooked_read_signed): New function.
936 (regcache_cooked_read_unsigned): New function.
937 * regcache.h (regcache_cooked_read_signed): Declare.
938 (regcache_cooked_read_unsigned): Declare.
939 (regcache_raw_read_as_address): Delete declaration.
940
941 * blockframe.c (generic_read_register_dummy): Use
942 regcache_cooked_read_unsigned.
943 * i386-tdep.c (i386_extract_struct_value_address): Use
944 regcache_cooked_read_unsigned.
945
946 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
947
948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
949 double sizes according to ELF ABI flags.
950 (gdbarch_tdep): Record elf_flags.
951
952 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
953
954 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
955 (m6812_prolog): They can appear in 68HC12 function prologue.
956 (m68hc11_frame_chain): Cleanup.
957
958 2002-08-12 Andrew Cagney <cagney@redhat.com>
959
960 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
961 declarations.
962 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
963 (i386_linux_register_raw_size): Delete function.
964 (i386_linux_init_abi): Update.
965 * i386-tdep.c (i386_register_raw_size): Delete function.
966 (i386_register_byte): Delete function.
967 (i386_gdbarch_init): Update.
968 (i386_register_size): Delete array.
969 (i386_register_offset): Delete array.
970
971 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
972 (REGISTER_RAW_SIZE): Delete macro.
973 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
974 (REGISTER_BYTE): Delete macro.
975
976 2002-08-11 Aidan Skinner <aidan@velvet.net>
977
978 * ada-lang.c (ada_lookup_partial_symbol)
979 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
980 prototype names so that grep ^func works properly.
981
982 * ada-lang.c (ada_array_element_type)
983 (ada_lookup_partial_symbol): Fix typos in parameter list.
984
985 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
986 Fix prototype names so that grep ^func works properly.
987
988 2002-08-10 Andrew Cagney <cagney@redhat.com>
989 Elena Zannoni <ezannoni@redhat.com>
990 Martin M. Hunt <hunt@redhat.com>
991
992 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
993 (build_builtin_type_vec128i): Set the vector bit.
994 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
995 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
996 (build_builtin_type_vec64): New function.
997 (build_builtin_type_vec64i): New function.
998 (build_gdbtypes): Initialize builtin_type_vec64 and
999 builtin_type_vec64i.
1000
1001 2002-08-09 Andrew Cagney <cagney@redhat.com>
1002
1003 * regcache.c (regcache_dump): Compare the register offset
1004 with REGISTER_BYTE.
1005 * arch-utils.c (generic_register_byte): New function.
1006 * arch-utils.h (generic_register_byte): Declare.
1007 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1008 * gdbarch.h, gdbarch.c: Regenerate.
1009
1010 2002-08-09 Andrew Cagney <cagney@redhat.com>
1011
1012 * regcache.c: Include "gdbcmd.h"
1013 (_initialize_regcache): Add commands "maintenance print
1014 registers", "maintenance print raw-registers" and "maintenance
1015 print cooked-registers".
1016 (enum regcache_dump_what): Define.
1017 (dump_endian_bytes): New function.
1018 (regcache_dump): New function.
1019 (regcache_print): New function.
1020 (maintenance_print_registers): New function.
1021 (maintenance_print_raw_registers): New function.
1022 (maintenance_print_cooked_registers): New function.
1023 * Makefile.in (regcache.o): Update dependencies.
1024
1025 2002-08-09 Michael Snyder <msnyder@redhat.com>
1026
1027 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1028 (mips_push_arguments): Correct some comments. Use paddr_nz
1029 for printing addresses in debug output. Replace static
1030 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1031 (mips_n32n64_push_arguments): New function, cloned from
1032 mips_push_arguments and tuned for the n32/n64 ABI.
1033 (mips_push_register): Buffer needs dynamic allocation.
1034 (mips_print_register): Ditto.
1035 (do_gp_register_row): Ditto.
1036 (mips_store_return_value): Ditto.
1037 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1038
1039 2002-08-09 Don Howard <dhoward@redhat.com>
1040
1041 * memattr.c (mem_info_command): Print special case of upper bound
1042 as max CORE_ADDR + 1.
1043
1044 2002-08-08 Michael Snyder <msnyder@redhat.com>
1045
1046 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1047 returns structs by ref if they're too big to fit in two registers.
1048
1049 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1050
1051 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1052 saved regs value.
1053 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1054 mips_find_saved_regs().
1055 (mips_pop_frame): Likewise.
1056
1057 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1058
1059 * blockframe.c (frame_saved_regs_register_unwind): Revise
1060 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1061 frames are in use.
1062
1063 2002-08-09 Grace Sainsbury <graces@redhat.com>
1064
1065 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1066 T-packets; the 'a' is not taken as a register number.
1067 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1068 (remote_stopped_data_address): New functions; add to target
1069 vector.
1070 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1071 prototypes to match other implementations of this
1072 function. replace integer argument with pointer -- the length
1073 field in the Z-packet is the length of what is pointed to or 1 if
1074 pointer is null. Add to target vector.
1075 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1076 target vector.
1077
1078 From Mark Salter:
1079 * remote.c (remote_wait): Add support to extract optional
1080 watchpoint information from T-packet. Ignore unrecognized
1081 optional info in T-packet.
1082 (remote_async_wait): Ditto.
1083
1084 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1085
1086 * cli/cli-dump.c: Change fopen modes to use binary open modes
1087 as defined in include/fopen-bin.h throughout.
1088
1089 2002-08-08 Michael Snyder <msnyder@redhat.com>
1090
1091 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1092
1093 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1094
1095 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1096 assertion failure by returning early after a warning.
1097
1098 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1099
1100 * mips-tdep.c (mips_find_saved_regs): Make static.
1101 (mips_frame_init_saved_regs): New function.
1102 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1103 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1104 (mips_find_saved_regs): Delete declaration.
1105
1106 2002-08-08 Grace Sainsbury <graces@redhat.com>
1107
1108 * remote.c (remote_wait, remote_async_wait): Change
1109 thread_num from int to ULONGEST.
1110 (unpack_varlen_hex): Change result parameter from
1111 int * to ULONGEST *.
1112
1113 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1114
1115 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1116 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1117 powerpc*-*-*.
1118 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1119
1120 2002-08-08 Andrew Cagney <cagney@redhat.com>
1121
1122 * gcore.c (override_derive_stack_segment): Delete variable.
1123 (preempt_derive_stack_segment): Delete function.
1124 (derive_stack_segment): Delete function.
1125 (default_derive_stack_segment): Renamed to derive_stack_segment.
1126 (override_derive_heap_segment): Delete variable.
1127 (preempt_derive_heap_segment): Delete function.
1128 (derive_heap_segment): Delete function.
1129 (default_derive_heap_segment): Rename to derive_heap_segment.
1130
1131 2002-08-06 Michael Snyder <msnyder@redhat.com>
1132
1133 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1134 * mips-tdep.c (mips_EABI_use_struct_convention,
1135 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1136 New functions. (mips_use_struct_convention): Delete.
1137 (mips_gdbarch_init): set use_gdbarch_convention.
1138
1139 2002-08-06 Michael Snyder <msnyder@redhat.com>
1140
1141 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1142 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1143 mips_o32_reg_struct_has_addr): New functions.
1144 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1145
1146 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1147
1148 * regcache.c (pseudo_register): Delete function.
1149 (fetch_register): Delete function.
1150 (store_register): Delete function.
1151 (regcache_raw_read, legacy_read_register_gen): Use
1152 target_fetch_registers instead of fetch_register.
1153 (legacy_write_register_gen, regcache_raw_write): Use
1154 target_store_register instead of store_register.
1155 (write_register_bytes): Ditto.
1156
1157 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1158 (STORE_PSEUDO_REGISTER): Delete.
1159 * gdbarch.h, gdbarch.c: Regenerate.
1160
1161 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1162
1163 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1164 write dump file binary.
1165
1166 2002-08-05 Michael Snyder <msnyder@redhat.com>
1167
1168 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1169 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1170 (mips_gdbarch_init): Set N32 target to be mips64.
1171
1172 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1173
1174 * frame.c (find_saved_register): Break out of loop once saved
1175 register address is found. Don't mention sparc in loop comment
1176 anymore.
1177
1178 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1179
1180 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1181 mips_default_saved_regsize to 8.
1182
1183 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1184
1185 * gcore.c: Do not include <sys/procfs.h>.
1186 * Makefile.in (gcore.o): Update dependencies.
1187
1188 2002-08-06 Andrew Cagney <cagney@redhat.com>
1189
1190 * configure.tgt: Make arc-*-* obsolete.
1191 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1192 * MAINTAINERS: Make arc-elf obsolete.
1193 * arc-tdep.c: Make file obsolete.
1194 * config/arc/arc.mt: Ditto.
1195 * config/arc/tm-arc.h: Ditto.
1196
1197 2002-08-05 Theodore A. Roth <troth@verinet.com>
1198
1199 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1200
1201 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1202
1203 * mcore-tdep.c (mcore_gdbarch_init): Use
1204 generic_unwind_get_saved_register instead of
1205 generic_get_saved_register.
1206 * v850-tdep.c (v850_gdbarch_init): Ditto.
1207 * frv-tdep.c (frv_gdbarch_init): Ditto.
1208 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1209 * s390-tdep.c (s390_gdbarch_init): Ditto.
1210 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1211 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1212 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1213
1214 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1215
1216 * objfiles.h: Add missing #include "symfile.h"
1217
1218 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1219
1220 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1221
1222 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1223 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1224 of FIELD_BITSIZE.
1225
1226 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1227
1228 * NEWS: Cleanup and nitpick.
1229
1230 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1231
1232 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1233
1234 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1235
1236 * Makefile.in (gdbtk-bp.o): Update dependencies.
1237 (gdbtk-register.o): Ditto.
1238 (gdbtk-varobj.o): Ditto.
1239
1240 2002-08-03 Andrew Cagney <cagney@redhat.com>
1241
1242 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1243 m68hc11_fetch_pseudo_register.
1244 (m68hc11_pseudo_register_write): Replace
1245 m68hc11_store_pseudo_register.
1246 (m68hc11_gdbarch_init): Update.
1247
1248 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1249
1250 * gdbarch.sh: Include "gdb_string.h".
1251 * gdbarch.c: Regenerate.
1252
1253 * regcache.c: Include "gdb_string.h".
1254 * ax-general.c: Ditto.
1255 * varobj.c: Ditto.
1256 * std-regs.c: Ditto.
1257 * fbsd-proc.c: Ditto.
1258 * thread.c: Ditto.
1259
1260 * Makefile.in (regcache.o): Update dependencies.
1261 (thread.o, gdbarch.o): Ditto.
1262 (ax-general.o, gdbarch.o): Ditto.
1263 (varobj.o, std-regs.o): Ditto.
1264 (fbsd-proc.o): Specify dependencies.
1265
1266 2002-08-02 Andrew Cagney <cagney@redhat.com>
1267
1268 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1269 regnum.
1270 (regcache_cooked_write): Ditto.
1271
1272 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1273
1274 * regcache.c (regcache_cooked_read): New function.
1275 (regcache_cooked_write): New function.
1276 (read_register_gen): Rewrite using regcache_cooked_read.
1277 (write_register_gen): Rewrite using regcache_cooked_write.
1278
1279 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1280 Declare.
1281
1282 2002-08-02 Andrew Cagney <cagney@redhat.com>
1283
1284 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1285 Replace the architecture methods register_read and register_write.
1286 * gdbarch.h, gdbarch.c: Regenerate.
1287 * regcache.c (init_regcache_descr): Update.
1288 (read_register_gen): Update.
1289 (write_register_gen): Update.
1290 (supply_register): Update comment.
1291
1292 * sh-tdep.c (sh_gdbarch_init): Update.
1293 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1294 `regcache' and `gdbarch' parameters. Make `buffer' a void
1295 pointer. Update code.
1296 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1297 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1298 void pointer. Update code.
1299 (sh64_register_write): Delete.
1300 (sh4_register_read): Delete.
1301 (sh64_register_read): Delete.
1302 (sh4_register_write): Delete.
1303 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1304 void pointer, `to' parameter a void pointer.
1305 (sh_sh64_register_convert_to_raw): Ditto.
1306
1307 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1308
1309 * mips-tdep.c (mips_register_virtual_type): Use architecture
1310 invariant return values.
1311
1312 2002-08-01 Andrew Cagney <cagney@redhat.com>
1313
1314 * linux-proc.c: Include "gdb_string.h".
1315 * Makefile.in (linux-proc.o): Update dependency list.
1316
1317 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1318
1319 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1320 comment.
1321
1322 2002-08-01 Grace Sainsbury <graces@redhat.com>
1323
1324 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1325 to_insert_watchpoint, to_remove_watchpoint,
1326 to_stopped_by_watchpoint, to_stopped_data_address,
1327 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1328 target vecctor. Define their corresponding macros so they call
1329 them.
1330
1331 * target.c: Add default and debug versions of for
1332 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1333 to_insert_watchpoint, to_remove_watchpoint,
1334 to_stopped_by_watchpoint, to_stopped_data_address,
1335 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1336
1337 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1338
1339 * mips-tdep.c (mips_register_virtual_type): New function.
1340 (mips_gdbarch_init): Register mips_register_virtual_type()
1341 with gdbarch machinery.
1342 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1343 this file instead of tm-bigmips.h.
1344 (MIPS_REGSIZE): Delete this macro.
1345 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1346 multiarch version in mips-tdep.c will be found.
1347
1348 2002-08-01 Andrew Cagney <cagney@redhat.com>
1349
1350 * NEWS: Menion that CHILL has been made obsolete.
1351
1352 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1353 * stabsread.c (read_range_type): Ditto.
1354 * gdbtypes.h: Ditto.
1355 * language.c (binop_type_check): Ditto.
1356 (binop_result_type): Ditto.
1357 (integral_type): Ditto.
1358 (character_type): Ditto.
1359 (string_type): Ditto.
1360 (boolean_type): Ditto.
1361 (structured_type): Ditto.
1362 (lang_bool_type): Ditto.
1363 (binop_type_check): Ditto.
1364 * language.h (_LANG_chill): Ditto.
1365 * dwarfread.c (set_cu_language): Ditto.
1366 * dwarfread.c (CHILL_PRODUCER): Ditto.
1367 * dwarfread.c (handle_producer): Ditto.
1368 * expression.h (enum exp_opcode): Ditto.
1369 * eval.c: Ditto for comments.
1370 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1371 * expprint.c (print_subexp): Ditto.
1372 (print_subexp): Ditto.
1373 * valops.c (value_cast): Ditto.
1374 (search_struct_field): Ditto.
1375 * value.h (COERCE_VARYING_ARRAY): Ditto.
1376 * symfile.c (init_filename_language_table): Ditto.
1377 (add_psymbol_with_dem_name_to_list): Ditto.
1378 * valarith.c (value_binop): Ditto.
1379 (value_neg): Ditto.
1380 * valops.c (value_slice): Ditto.
1381 * symtab.h (union language_specific): Ditto.
1382 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1383 (SYMBOL_DEMANGLED_NAME): Ditto.
1384 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1385 * defs.h (enum language): Ditto.
1386 * symtab.c (got_symtab): Ditto.
1387 * utils.c (fprintf_symbol_filtered): Ditto.
1388
1389 * ch-typeprint.c: Make file obsolete.
1390 * ch-valprint.c: Make file obsolete.
1391 * ch-lang.h: Make file obsolete.
1392 * ch-exp.c: Make file obsolete.
1393 * ch-lang.c: Make file obsolete.
1394
1395 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1396 CHILL_LIB.
1397 (TARGET_FLAGS_TO_PASS): Ditto.
1398 (CHILLFLAGS): Obsolete.
1399 (CHILL): Obsolete.
1400 (CHILL_FOR_TARGET): Obsolete.
1401 (CHILL_LIB): Obsolete.
1402 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1403 ch-valprint.c.
1404 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1405 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1406 ch-lang.o.
1407 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1408 targets.
1409
1410 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1411
1412 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1413 This does not change anything at the moment, but will be helpful
1414 later when full Ada support is integrated.
1415
1416 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1417
1418 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1419 help message.
1420
1421 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1422
1423 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1424 and save it in a local variable. Use variable in later test.
1425
1426 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1427
1428 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1429 test. (Thanks to Daniel Jacobowitz.)
1430
1431 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1432
1433 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1434 (mips_abi_strings): Add "n64".
1435 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1436
1437 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1438
1439 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1440 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1441
1442 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1443
1444 * utils.c (host_pointer_to_address, address_to_host_pointer):
1445 Use gdb_assert() instead of explicit call to internal_error().
1446
1447 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1448
1449 * Makefile.in (rs6000-nat.o): Update dependencies.
1450
1451 From Nicholas Duffek:
1452 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1453 (aix-thread.o): New rule.
1454 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1455 * config/powerpc/aix432.mh: New file.
1456
1457 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1458
1459 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1460 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1461 (fetch_core_registers, ppc_linux_supply_gregset)
1462 (ppc_linux_supply_fpregset): New functions.
1463 (ppc_linux_regset_core_fns): New.
1464 (_initialize_ppc_linux_tdep): Call add_core_fns.
1465 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1466 and ppc_linux_supply_gregset.
1467 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1468 (supply_fpregset): Call ppc_linux_supply_fpregset.
1469 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1470 corelow.o.
1471 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1472
1473 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1474
1475 * symtab.c (lookup_symbol): Demangle before lowercasing.
1476
1477 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1478
1479 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1480 declaration.
1481 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1482 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1483 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1484 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1485 "gdb_string.h".
1486 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1487 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1488 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1489 (avr-tdep.o, mon960-rom.o): Ditto.
1490 (aout_stabs_gnu_h): Define.
1491 (symtab_h): Remove $(gdb_obstack_h).
1492
1493 2002-07-30 Jim Blandy <jimb@redhat.com>
1494
1495 Patch from David Carlton <carlton@math.stanford.edu>:
1496 * gdbinit.in: Move the `dir' commands that add GDB's own source
1497 directory to the search path to the end, so that the `gdb' source
1498 directory will be searched first.
1499
1500 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1501
1502 * gdb_obstack.h: New file.
1503 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1504 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1505 * objfiles.h: Include "gdb_obstack.h".
1506 * Makefile.in (gdb_obstack_h): Define.
1507 (symtab_h): Add $(gdb_obstack_h).
1508 (objfiles_h): Add $(gdb_obstack_h).
1509
1510 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1511 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1512 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1513 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1514 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1515 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1516 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1517 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1518
1519 * Makefile.in (bcache.o): Update dependencies.
1520 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1521 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1522 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1523 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1524 (stabsread.o, symfile.o, symmisc.o): Ditto.
1525 (symtab.o, typeprint.o, macroexp.o): Ditto.
1526 (macrotab.o, mdebugread.o): Ditto.
1527 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1528 (coff_ecoff_h, aout_aout64_h): Define.
1529 (aout_stabs_gnu_h, libaout_h): Define.
1530
1531 2002-07-29 Andrew Cagney <cagney@redhat.com>
1532
1533 * regcache.c (struct regcache_descr): Rename nr_registers to
1534 nr_cooked_registers. Revise comments describing the structure
1535 member fields.
1536 (init_regcache_descr): Update.
1537 (init_legacy_regcache_descr): Update.
1538 (read_register_gen, write_register_gen): When a cooked register in
1539 the raw register range, directly access the value from the raw
1540 register cache.
1541
1542 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1543
1544 * z8k-tdep.c: Do not include "obstack.h".
1545 * h8300-tdep.c, h8500-tdep.c: Ditto.
1546 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1547 * valprint.c, v850-tdep.c: Ditto.
1548 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1549 * mn10200-tdep.c: Ditto.
1550
1551 * Makefile.in (z8k-tdep.o): Update dependencies.
1552 (m68hc11-tdep.o, valprint.o): Ditto.
1553 (v850-tdep.o, d10v-tdep.o): Ditto.
1554 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1555 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1556 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1557 (sh_opc_h, gdb_sim_sh_h): Define.
1558 (elf_sh_h, elf_bfd_h): Define.
1559 (opcode_m68hc11_h): Define.
1560 (OPCODES_SRC, OPCODES_DIR): define.
1561 (OPCODES): Use $(OPCODES_DIR).
1562 (gdb_sim_d10v_h): Rename sim_d10v_h.
1563 (gdb_sim_arm_h): Rename sim_arm_h.
1564
1565 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1566
1567 * utils.c (host_pointer_to_address, address_to_host_pointer):
1568 Change internal_error() message to indicate function responsible
1569 for the error.
1570
1571 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1572
1573 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1574 calls to local_hex_string_custom().
1575
1576 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1577
1578 * irix5-nat.c: Move IRIX shared library support from here...
1579 * solib-irix.c: ...to here. Revised substantially to work with
1580 generic solib framework.
1581
1582 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1583 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1584 * mips-irix-tdep.c: New file.
1585
1586 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1587 (mips-irix-tdep.o, solib-irix.o): New rules.
1588 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1589 solib-irix.o.
1590 * config/mips/irix6.mt (TDEPFILES): Likewise.
1591 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1592
1593 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1594
1595 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1596 disabled (via ``#if 0'') includes.
1597
1598 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1599
1600 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1601 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1602 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1603 Add support for the fpscr register.
1604 * rs6000-nat.c (regmap, fetch_inferior_registers)
1605 (store_inferior_registers, fetch_core_registers): Likewise.
1606
1607 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1608
1609 * rs6000-nat.c (language.h): Include.
1610 (special_regs): Delete this array.
1611 (regmap): New function.
1612 (fetch_register, store_register): Use regmap() to map gdb
1613 register numbers to ptrace register numbers. Also, use
1614 outputs from regmap() to make decisions regarding type of
1615 ptrace() call to make. In particular, don't compare against
1616 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1617 (fetch_inferior_registers, store_inferior_registers): Where
1618 possible, obtain register numbers from tdep struct. Don't
1619 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1620 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1621 (LAST_UISA_SP_REGNUM): Delete.
1622
1623 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1624
1625 * rs6000-nat.c (ppc-tdep.h): Include.
1626 (fetch_registers, store_register, fetch_core_registers): Don't
1627 access registers[] directly. Instead, use supply_register() or
1628 regcache_collect() as appropriate.
1629 (find_toc_address): Format hex address with local_hex_string().
1630
1631 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1632
1633 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1634 bfd/elf32-frv.c.
1635
1636 2002-07-24 Tom Tromey <tromey@redhat.com>
1637
1638 * jv-exp.y: Marked all strings with _().
1639 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1640 internal_error.
1641 (MethodInvocation, CastExpression, parse_number, yyerror,
1642 java_type_from_name, push_expression_name, yylex): Typo fixes.
1643
1644 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1645
1646 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1647 (tee_file_flush, tee_file_write, tee_file_fputs)
1648 (tee_file_isatty): New.
1649 * ui-file.h (tee_file_new): Add prototype.
1650
1651 2002-07-24 Aidan Skinner <aidan@velvet.net>
1652
1653 * ada-lang.c: Change k&r style function definitions to prototyped
1654 form.
1655 * ada-typeprint.c: Change k&r style function definitions to prototyped
1656 form.
1657 * ada-valprint.c: Change k&r style function definitions to prototyped
1658 form.
1659
1660 2002-07-24 Andrew Cagney <cagney@redhat.com>
1661
1662 * README: Remove reference to remote-bug.
1663 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1664 remote-bug.c.
1665 (m88k-nat.o): Delete rule.
1666 (m88k-tdep.o): Delete rule.
1667 (remote-bug.o): Delete rule.
1668 * MAINTAINERS: Mark as obsolete.
1669 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1670 * m88k-tdep.c: Make file obsolete.
1671 * config/m88k/m88k.mh: Ditto.
1672 * config/m88k/delta88v4.mh: Ditto.
1673 * config/m88k/delta88v4.mt: Ditto.
1674 * config/m88k/delta88.mt: Ditto.
1675 * config/m88k/delta88.mh: Ditto.
1676 * remote-bug.c: Ditto.
1677 * config/m88k/tm-delta88.h: Ditto.
1678 * config/m88k/nm-delta88v4.h: Ditto.
1679 * config/m88k/xm-delta88.h: Ditto.
1680 * config/m88k/xm-dgux.h: Ditto.
1681 * config/m88k/tm-m88k.h: Ditto.
1682 * config/m88k/nm-m88k.h: Ditto.
1683 * config/m88k/tm-delta88v4.h: Ditto.
1684 * m88k-nat.c: Ditto.
1685 * cxux-nat.c: Ditto.
1686 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1687 and m88*-*-* obsolete.
1688 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1689 m88*-*-* obsolete.
1690
1691 2002-07-24 Andrew Cagney <cagney@redhat.com>
1692
1693 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1694 constant. Same for local pointer variables.
1695 (extract_signed_integer): Ditto.
1696 * defs.h (extract_unsigned_integer): Update.
1697 (extract_signed_integer): Update.
1698
1699 2002-07-24 Andrew Cagney <cagney@redhat.com>
1700
1701 * regcache.c (regcache_raw_write): Change buf parameter to a
1702 constant void pointer.
1703 (regcache_raw_read): Change buf parameter to a void pointer.
1704 (legacy_write_register_gen): Change myaddr parameter a constant
1705 void pointer.
1706 (supply_register): Change val parameter to a const void pointer.
1707 * regcache.h (regcache_raw_write): Update declaration.
1708 (regcache_raw_read): Update declaration.
1709 (supply_register): Update declaration.
1710
1711 2002-07-24 Tom Tromey <tromey@redhat.com>
1712
1713 * defs.h (gdb_readline_wrapper): Declare.
1714 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1715 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1716 * top.c (gdb_readline_wrapper): New function.
1717 (command_line_input): Use it.
1718
1719 2002-07-24 Andrew Cagney <cagney@redhat.com>
1720
1721 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1722 regcache_read and regcache_write.
1723 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1724 * regcache.c: Update.
1725 * sh-tdep.c (sh64_push_arguments): Update comment.
1726 (sh_pseudo_register_read): Update.
1727 (sh_pseudo_register_write): Update.
1728 (sh4_register_read): Update.
1729 (sh4_register_write): Update.
1730 (sh64_pseudo_register_read): Update.
1731 (sh64_pseudo_register_write): Update.
1732 (sh64_register_read): Update.
1733 (sh64_register_write): Update.
1734 * i386-tdep.c (i386_extract_return_value): Update.
1735 (i386_extract_struct_value_address): Update.
1736 (i386_extract_return_value): Update.
1737 * blockframe.c (generic_read_register_dummy): Update.
1738 (generic_call_dummy_register_unwind): Update
1739 * infrun.c (write_inferior_status_register): Update.
1740
1741 2002-07-23 Jim Blandy <jimb@redhat.com>
1742
1743 * parser-defs.h (expression_context_pc): Make this extern.
1744 (Thanks to Michael Snyder.)
1745
1746 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1747
1748 GDB 5.2.1 released from 5.2 branch.
1749 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1750 * README: Update to mention 5.2.1.
1751
1752 2002-07-23 Mark Salter <msalter@redhat.com>
1753
1754 * remote.c (remote_read_bytes): Fix check for error.
1755
1756 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1757
1758 * aix-thread.c (language.h): Include.
1759 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1760 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1761 Print newlines at end of debug messages.
1762 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1763 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1764
1765 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1766
1767 * aix-thread.c (ppc-tdep.h): Include.
1768 (special_register_p): New function.
1769 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1770 (store_regs_user_thread): Use register number information from
1771 gdbarch_tdep struct instead of hardcoded offsets relative to
1772 FIRST_UISA_SP_REGNUM.
1773 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1774 special_register_p() instead of using FPLAST_REGNUM and
1775 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1776 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1777 will be MQ's register number.
1778
1779 2002-07-22 Michael Snyder <msnyder@redhat.com>
1780
1781 * aix-thread.c (ops): Rename to aix_thread_ops.
1782 (base_ops): Rename to base_target.
1783 (ops_attach): Rename to aix_thread_attach.
1784 (ops_detach): Rename to aix_thread_detach.
1785 (ops_resume): Rename to aix_thread_detach.
1786 (ops_wait): Rename to aix_thread_wait.
1787 (ops_kill): Rename to aix_thread_kill.
1788 (init_ops): Rename to init_aix_thread_ops.
1789 (ops_fetch_register): Rename to aix_thread_fetch_register.
1790 (ops_store_register): Rename to aix_thread_store_register.
1791 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1792 (ops_thread_alive): Rename to aix_thread_thread_alive.
1793 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1794 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1795 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1796 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1797 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1798 (store_regs_lib): Rename to store_regs_user_thread.
1799 (store_regs_kern): Rename to store_regs_kernel_thread.
1800
1801 2002-07-22 Michael Snyder <msnyder@redhat.com>
1802
1803 * aix-thread.c (ops_prepare_to_store): Eliminate.
1804 (init_ops): Don't initialize ops.prepare_to_store.
1805 (store_regs_kern): Pre-fetch register buffers from child,
1806 because some registers may not be in the cache. Copy
1807 regs from register cache only if they are cached.
1808 (store_regs_lib): Copy regs from register cache only
1809 if they are cached.
1810 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1811 fill_gprs64): Ditto.
1812
1813 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1814
1815 * aix-thread.c (gdb_assert.h): Include.
1816 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1817 register sizes (from register cache) match size of buffer holding
1818 register data.
1819 (fill_sprs32): Change parameter types to match those in the ptrace()
1820 buffer.
1821 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1822 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1823
1824 2002-07-22 Michael Snyder <msnyder@redhat.com>
1825
1826 * aix-thread.c (supply_sprs64): Cosmetic change.
1827 (supply_sprs32): Cosmetic change.
1828 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1829 (fill_sprs64): Use regcache_collect instead of read_register.
1830 (store_regs_lib): Use regcache_collect instead of
1831 read_register. Use fill_sprs32 instead of fill_sprs64,
1832 if debugging a 32-bit architecture.
1833 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1834 out of the register cache, instead of passing a pointer into
1835 the register cache directly to ptrace. Use regcache_collect
1836 insteaad of read_register.
1837 (ops_prepare_to_store): Use target_read_registers instead
1838 of read_register_bytes.
1839
1840 2002-07-20 Aidan Skinner <aidan@velvet.net>
1841
1842 * MAINTAINERS: Add self under write after approval.
1843
1844 2002-07-20 Aidan Skinner <aidan@velvet.net>
1845
1846 * ada-tasks.c: Change k&r style function definitions to prototyped
1847 form.
1848
1849 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1850
1851 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1852 * x86-64-tdep.c: Include "objfiles.h".
1853 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1854 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1855
1856 2002-07-17 Michal Ludvig <michal@suse.cz>
1857
1858 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1859 (update_context): Initialise cfa variable.
1860
1861 2002-07-17 Michael Snyder <msnyder@redhat.com>
1862
1863 * aix-thread.c: Shorten some long lines.
1864 Bring comments into line with code spec.
1865
1866 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1867
1868 * infrun.c: Re-indent using gdb_indent.sh.
1869
1870 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1871
1872 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1873 Leave the indentation temporarily untouched, to minimize the diffs.
1874
1875 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1876
1877 * stabsread.c: Make os9k sections of the code obsolete,
1878 for real this time.
1879 * stabsread.h: Make os9k sections of the code obsolete.
1880
1881 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1882
1883 * linux-low.c (regsets_store_inferior_registers): Add free()
1884 at the end of a loop to prevent memory leak.
1885 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1886 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1887 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1888 line a comment.
1889 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1890
1891 2002-07-17 Jim Blandy <jimb@redhat.com>
1892
1893 * macrocmd.c (info_macro_command): Remove newline from error
1894 message.
1895
1896 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1897
1898 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1899 (sh_gdbarch_init): Use it for sh-dsp.
1900
1901 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1902
1903 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1904 64-bit DWARF2 format.
1905
1906 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1907
1908 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1909 <sys/proc.h> when not available.
1910
1911 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1912
1913 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1914 * stabsread.c: Make os9k sections of the code obsolete.
1915 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1916 * config/i386/i386os9k.mt: Make file obsolete.
1917 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1918 (COMMON_OBS): Remove os9kread.o
1919 (SFILES): Remove os9kread.c.
1920 (os9kread.o, remote-os9k.o): Make target obsolete.
1921 * remote-os9k.c: Make file obsolete.
1922 * os9kread.c: Make file obsolete.
1923 * Makefile.in
1924
1925 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1926
1927 * NEWS: Mention that the FR30 has been made obsolete.
1928 * fr30-tdep.c: Make file obsolete.
1929 * config/fr30/tm-fr30.h: Ditto.
1930 * config/fr30/fr30.mt: Ditto.
1931 * configure.tgt: Make fr30-*-elf obsolete.
1932 * MAINTAINERS: Make fr30-elf obsolete.
1933
1934 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1935
1936 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1937 found is not inside a section.
1938
1939 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1940
1941 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1942 strerror().
1943 (pdc_realloc): Use xrealloc() instead of realloc().
1944
1945 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1946
1947 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1948 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1949 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1950 macros.
1951
1952 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1953
1954 * aix-thread.c (ptrace_check): Eliminate goto.
1955 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1956 problem.
1957
1958 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1959
1960 * aix-thread.c (gdbcmd.h): Include.
1961 (DEBUG, DBG, DBG2, dbg): Eliminate.
1962 (debug_aix_thread): New static global.
1963 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1964 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1965 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1966 invocations to DBG and DBG2 macros to test against
1967 ``debug_aix_thread'' and call fprintf_unfiltered().
1968 (_initialize_aix_thread): Add new command "set debug aix-thread".
1969
1970 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1971
1972 From Gerhard Tonn <TON@de.ibm.com>:
1973 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1974 instead of supply_register.
1975
1976 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1977
1978 * dwarf2cfi.c: Include "gdb_assert.h".
1979 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1980 non-NULL.
1981 (update_context): Do not use __func__. Add missing ``break''.
1982 (update_context): Do not use __func__.
1983
1984 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1985
1986 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1987 and its setting. Set gdbarch instruction printing functions
1988 directly. For non-rs6000 case use new function
1989 gdb_print_insn_powerpc.
1990 (gdb_print_insn_powerpc): New function.
1991
1992 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1993
1994 * NEWS: Mention that the d30v has been marked obsolete.
1995 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1996 * configure.tgt: Mark d30v-*-* as obsolete.
1997 * d30v-tdep.c: Mark file as obsolete.
1998 * config/d30v/d30v.mt: Ditto.
1999 * config/d30v/tm-d30v.h: Ditto.
2000
2001 2002-07-13 Aidan Skinner <aidan@velvet.net>
2002
2003 * ada-tasks.c (add_task_entry): replace calls to
2004 malloc() with xmalloc
2005 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2006
2007 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2008 ada_finish_decode_line_1, all_sals_for_line
2009 ada_breakpoint_rewrite): replace calls to free() with xfree()
2010
2011 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2012
2013 From Nicholas Duffek (with minor changes by Martin Hunt,
2014 Louis Hamilton, and Kevin Buettner):
2015 * aix-thread.c: New file.
2016
2017 2002-07-12 Petr Sorfa <petrs@caldera.com>
2018
2019 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2020 complaint for invalid attribute class or form.
2021 (read_func_scope): DW_AT_frame_base
2022 better handling of DW_AT_block*.
2023 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2024 better handling of DW_AT_block*.
2025 (read_common_block): DW_AT_location
2026 better handling of DW_AT_block*.
2027 (read_partial_die): DW_AT_location better handling
2028 of DW_AT_block*.
2029 (new_symbol): DW_AT_external better handling of
2030 DW_AT_block*. Proper initialization of variable
2031 "addr".
2032 (attr_form_is_block): New function that returns true
2033 if the attribute's form is of DW_FORM_block*.
2034
2035 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2036
2037 * valops.c (find_method_list): Remove comment about
2038 removed STATIC_MEMFUNCP argument.
2039 (value_find_oload_method_list): Likewise.
2040
2041 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2042
2043 From Nicholas Duffek:
2044 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2045 target_new_objfile_hook.
2046
2047 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2048
2049 From Nicholas Duffek:
2050 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2051 csect.
2052
2053 2002-07-12 Andrew Cagney <cagney@redhat.com>
2054
2055 * MAINTAINERS: Mention --enable-sim-build-warnings.
2056 (m68hc11-elf): Disable sim build warnings.
2057 (m32r-elf): Mark as broken obsolete candidate.
2058 (x86_64-linux-gnu): Mark as buildable with -Werror.
2059 (arm-elf): Change -w to ``,'' which enables warnings but not
2060 -Werror.
2061
2062 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2063
2064 * bcache.h: Update copyright.
2065 (struct bstring, struct bcache): Move definition to "bcache.c".
2066 Replaced by opaque declaration.
2067 (bcache_xfree): Replace free_bcache.
2068 (bcache_xmalloc, bcache_memory_used): Declare.
2069
2070 * bcache.c: Update copyright.
2071 (struct bstring, struct bcache): Moved to here from "bcache.h".
2072 Update comments.
2073 (bcache_xmalloc, bcache_memory_used): New functions.
2074 (bcache_xfree): Replace function free_bcache.
2075
2076 * Makefile.in (objfiles.o): Add $(bcache_h).
2077 (objfiles_h): Remove $(bcache_h).
2078 (symfile.o): Add $(bcache_h).
2079
2080 * symmisc.c: Update copyright.
2081 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2082 (print_objfile_statistics): Use bcache_memory_used.
2083
2084 * symfile.c: Include "bcache.h".
2085 (reread_symbols): Use bcache_xfree.
2086 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2087 (add_psymbol_to_list): Pass psymbol_cache by value.
2088 (add_psymbol_with_dem_name_to_list): Ditto.
2089
2090 * objfiles.h: Update copyright.
2091 (struct bcache): Declare opaque. Do not include "bcache.h".
2092 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2093 bcache'' pointers.
2094 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2095
2096 * objfiles.c: Include "bcache.h". Update copyright.
2097 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2098 macro_cache.
2099 (free_objfile): Use bcache_xfree.
2100
2101 2002-07-11 Grace Sainsbury <graces@redhat.com>
2102
2103 * monitor.c (monitor_fetch_register): Make name a constant.
2104 (monitor_store_register): Same.
2105
2106 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2107
2108 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2109 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2110 (finish_block) For non-function blocks, hash the symbol table. For
2111 function blocks, mark the symbol table as unhashed.
2112 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2113 (msymbol_hash_iw): Likewise.
2114 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2115 value.
2116 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2117 (lookup_minimal_symbol): Likewise for both.
2118 * symtab.h (struct block): Add `hashtable' flag. Comment the
2119 hashtable.
2120 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2121 (ALL_BLOCK_SYMBOLS): Update.
2122 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2123 (struct symbol): Add `hash_next' pointer.
2124 * symtab.c (lookup_block_symbol): Search using the hash table when
2125 possible.
2126 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2127 (search_symbols, find_addr_symbol): Likewise.
2128
2129 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2130 (read_dst_symtab): Likewise.
2131 * jv-lang.c (get_java_class_symtab): Likewise.
2132 * mdebugread.c: Include "gdb_assert.h".
2133 (shrink_block): Assert that the block being modified is not hashed.
2134 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2135 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2136 symbols.
2137 (dump_symtab): Recognize hashed blocks.
2138 * printcmd.c (print_frame_args): Assert that function blocks do not
2139 have hashed symbol tables.
2140 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2141 (fill_in_ada_prototype, debug_print_block): Likewise.
2142 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2143
2144 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2145
2146 * stack.c (print_frame): Use result of frame_address_in_block()
2147 instead of fi->pc when evaluating symbols.
2148 (backtrace_command_1): Ditto.
2149
2150 2002-07-11 Andrew Cagney <cagney@redhat.com>
2151
2152 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2153 Make static.
2154
2155 * arm-tdep.c (arm_register_name): Make return type constant.
2156
2157 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2158
2159 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2160 prototype.
2161 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2162 * s390-tdep.c (s390_fp_regnum): Ditto.
2163 (s390_read_fp): Ditto.
2164 (s390_pop_frame): Ditto.
2165 (_initialize_s390_tdep): Ditto.
2166 * remote.c (get_remote_state): Ditto.
2167 * procfs.c (mappingflags): Ditto.
2168 * memattr.c (_initialize_mem): Ditto.
2169 * mcore-tdep.c (mcore_pop_frame): Ditto.
2170 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2171 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2172 * language.c (set_case_str): Ditto.
2173 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2174 * frv-tdep.c (new_variant): Ditto.
2175 (frv_stopped_data_address): Ditto.
2176 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2177 (context_alloc): Ditto.
2178 (frame_state_alloc): Ditto.
2179 (unwind_tmp_obstack_init): Ditto.
2180 (unwind_tmp_obstack_free): Ditto.
2181 (cfi_read_fp): Ditto.
2182 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2183 (cris_pop_frame): Ditto.
2184 * c-lang.c (scanning_macro_expansion): Ditto.
2185 (finished_macro_expansion): Ditto.
2186 (c_preprocess_and_parse): Ditto.
2187 * gdbarch.sh: Ditto.
2188 * gdbarch.h, gdbarch.c: Regenerate.
2189 * config/mn10200/tm-mn10200.h: Adjust indentation.
2190 * target.c: Adjust indentation.
2191 * symtab.h: Adjust indentation.
2192 * stabsread.h: Adjust indentation.
2193 * remote-es.c: Adjust indentation.
2194 * os9kread.c: Adjust indentation.
2195
2196 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2197
2198 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2199 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2200
2201 2002-07-10 Grace Sainsbury <graces@redhat.com>
2202
2203 * NEWS: Mention m68k, mcore multi-arching.
2204 * MAINTAINERS: Change status of m68k, mcore to reflect
2205 multi-arching.
2206
2207 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2208
2209 * valops.c (find_overload_match): Free oload_syms.
2210
2211 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2212
2213 Define HAVE_SYS_PROC_H if sys/proc.h exists
2214 * configure.in: Add check for sys/proc.h
2215 * config.in: Regenerate.
2216 * configure: Regenerate.
2217
2218 2002-07-09 Grace Sainsbury <graces@redhat.com>
2219
2220 * config/m68k/tm-m68k.h: Remove macros wrapped in
2221 #if !GDB_MULTI_ARCH.
2222
2223 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2224
2225 * config.in, configure: Regenerate.
2226
2227 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2228
2229 * dwarf2cfi.c: Include "gcore.h".
2230 (execute_stack_op): Fix implementation of the
2231 DW_OP_deref and DW_OP_deref_size operators by letting do their
2232 lookup in the target.
2233
2234 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2235
2236 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2237 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2238 tdep->sc_sp_offset.
2239
2240 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2241
2242 Fix PR gdb/595, gdb/602
2243 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2244 Don't call value_cast, just read the vtable pointer; update comments
2245 to match.
2246
2247 2002-07-05 Grace Sainsbury <graces@redhat.com>
2248
2249 * config/mcore/tm-mcore.h: Remove file.
2250 * config/mcore/mcore.mt: Remove definition of TM_FILE
2251 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2252
2253 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2254
2255 * i386bsd-tdep.c: Include "gdb_string.h".
2256
2257 2002-07-04 Grace Sainsbury <graces@redhat.com>
2258
2259 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2260 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2261 mcore-tdep.
2262 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2263 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2264 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2265 (RETVAL_REGNUM): Move macros from tm-mcore.h
2266 (mcore_reg_struct_has_addr): New function.
2267 (mcore_gdbarch_init): Added initializations for the macros removed
2268 from tm-mcore.h.
2269
2270 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2271
2272 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2273 traditonal string branding within the ELF header.
2274
2275 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2276
2277 * symtab.c (remove_params): New function.
2278 (make_symbol_overload_list): Use it instead of cplus_demangle.
2279 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2280
2281 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2282
2283 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2284
2285 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2286 New variables.
2287 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2288 and tdep->sigtramp_end.
2289 * i386obsd-nat.c: New file.
2290 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2291
2292 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2293 Don't call get_current_frame().
2294
2295 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2296
2297 * i386-nat.c (child_post_startup_inferior): New function
2298 calling i386_cleanup_dregs if
2299 I386_USE_GENERIC_WATCHPOINTS is defined.
2300 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2301 conditional to acknowledge that i386-nat.c has its
2302 own child_post_startup_inferior function.
2303
2304 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2305
2306 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2307 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2308 instead of MAX_REGISTER_RAW_SIZE.
2309 (i386_extract_return_value, i386_extract_struct_value_address):
2310 Convert to use regcache.
2311 (i386_gdbarch_init): Set max_register_raw_size and
2312 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2313 Set extract_return_value and extract_struct_value_address instead
2314 of their deprecated variants.
2315
2316 Convert i386 target to generic dummy frames.
2317 * i386-tdep.c: Include "symfile.h".
2318 (i386_frameless_signal_p): Consider a function to be frameless if
2319 the pc points at the first instruction of the function.
2320 (i386_frame_chain): Handle (generic) call dummies.
2321 (i386_frame_saved_pc): Likewise.
2322 (i386_frame_init_saved_regs): Remove code dealing with call
2323 dummies on the stack.
2324 (i386_push_dummy_frame): Removed.
2325 (i386_call_dummy_words): Removed.
2326 (i386_fix_call_dummy): Removed.
2327 (i386_push_return_address): New function.
2328 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2329 parameter, and don't call get_current_frame.
2330 (i386_pop_frame): New function.
2331 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2332 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2333 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2334 call_dummy_length to 0, set call_dummy_words to NULL, set
2335 sizeof_call_dummy_words to 0, set fix_call_dummy to
2336 generic_fix_call_dummy, set pc_in_call_dummy to
2337 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2338 generic_push_dummy_frame, set push_return_address to
2339 i386_push_return_address and set frame_chain_valid to
2340 generic_file_frame_chain_valid.
2341
2342 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2343
2344 * gdbarch.sh (struct regcache): Add opaque declaration.
2345 (EXTRACT_RETURN_VALUE): New architecture method.
2346 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2347 * gdbarch.h, gdbarch.c: Regenerate.
2348 * arch-utils.c (legacy_extract_return_value): New function.
2349 * arch-utils.h (legacy_extract_return_value): Declare.
2350 * values.c (value_being_returned): Re-enable code handling
2351 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2352 deprecated_grub_regcache_for_registers call to block handling
2353 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2354 (EXTRACT_RETURN_VALUE): Do not define.
2355
2356 2002-07-03 Grace Sainsbury <graces@redhat.com>
2357
2358 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2359 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2360 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2361 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2362 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2363 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2364 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2365 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2366 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2367 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2368 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2369 argument so the function fits the prototype in the architecture
2370 vector.
2371 (mcore_pop_frame): Remove argument so the function fits the
2372 prototype. Use get_current_frame instead of the argument.
2373 (mcore_push_arguments): Change type of struct_return so the
2374 function can be used in the architecture vector.
2375 (mcore_store_struct_return): Add.
2376 (mcore_frame_init_saved_regs): Add.
2377 (mcore_gdbarch_init): Add function calls to replace the macros
2378 removed from tm-mcore.h
2379
2380 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2381
2382 * infcmd.c (print_return_value): Remove compatibility code calling
2383 deprecated_grub_regcache_for_registers.
2384
2385 * values.c: Include "regcache.h".
2386 (value_being_returned): Update. Use
2387 deprecated_grub_regcache_for_registers to extract the register
2388 buffer address.
2389 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2390 ``struct regcache''.
2391 * Makefile.in (values.o): Add dependency on $(regcache_h).
2392
2393 * inferior.h (run_stack_dummy): Change type of second parameter to
2394 a ``struct regcache''.
2395 * valops.c (hand_function_call): Change type of retbuf to ``struct
2396 regcache''. Allocate using regcache_xmalloc, clean using
2397 make_cleanup_regcache_xfree.
2398 * infcmd.c (run_stack_dummy): Update. Use
2399 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2400
2401 * regcache.c (do_regcache_xfree): New function.
2402 (make_cleanup_regcache_xfree): New function.
2403 * regcache.h (make_cleanup_regcache_xfree): Declare.
2404
2405 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2406
2407 * event-top.c (command_line_handler): Don't read past
2408 beginning of buffer.
2409
2410 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2411
2412 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2413 struct frame_id.
2414 (varobj_create): Store frame_id for root.
2415 (varobj_gen_name): Use xasprintf.
2416 (varobj_update): Save and restore frame using get_frame_id() and
2417 frame_find_by_id().
2418 (create_child): Use xasprintf.
2419 (new_root_variable): Initialize frame_id.
2420 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2421 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2422 to prevent memory leak.
2423
2424 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2425
2426 * valops.c (hand_function_call): Move declaration of retbuf to
2427 start of function, allocate using malloc, add a cleanup but before
2428 the inf_status cleanup, cleanup the buffer. Rename local variable
2429 old_chain to inf_status_cleanup.
2430
2431 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2432
2433 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2434
2435 * cli/cli-decode.c (cmd_func_p): New function.
2436 (cmd_func): New function.
2437
2438 * command.h: Add cmd_func() and cmd_func_p().
2439
2440 2002-07-03 Grace Sainsbury <graces@redhat.com>
2441
2442 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2443 (REGISTER_SIZE): Remove.
2444 (MAX_REGISTER_RAW_SIZE): Remove.
2445 (REGISTER_VIRTUAL_TYPE): Remove.
2446 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2447 (REGISTER_NAME): Remove.
2448 (USE_GENERIC_DUMMY_FRAMES): Remove.
2449 (CALL_DUMMY): Remove.
2450 (CALL_DUMMY_START_OFFSET): Remove.
2451 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2452 (CALL_DUMMY_LOCATION): Remove.
2453 (FIX_CALL_DUMMY): Remove.
2454 (CALL_DUMMY_ADDRESS): Remove.
2455 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2456 (SAVE_DUMMY_FRAME_TOS): Remove.
2457 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2458 (mcore_register_virtual_type): New function.
2459 (mcore_register_byte): New function.
2460 (mcore_register_size): New function.
2461 (mcore_register_name): New function.
2462 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2463 macros removed from tm-mcore.h.
2464 (mcore_dump_tdep): Add.
2465 (_initialize_mcore_tdep): Add gdbarch_register call.
2466
2467 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2468
2469 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2470 frameless_look_for_prologue, such that we actually call this
2471 function.
2472
2473 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2474
2475 * frame.h (frame_address_in_block): New function.
2476
2477 * blockframe.c (frame_address_in_block): New function extracted
2478 from get_frame_block().
2479 (get_frame_block): Use frame_address_in_block().
2480 (block_innermost_frame): Use frame_address_in_block() to match
2481 the frame pc address against the block boundaries rather than
2482 the frame pc directly. This prevents a failure when a frame pc
2483 is actually a return-address pointing immediately after the end
2484 of the given block.
2485
2486 2002-07-02 Grace Sainsbury <graces@redhat.com>
2487
2488 * MAINTAINERS: Add self under write after approval.
2489
2490 2002-07-02 Grace Sainsbury <graces@redhat.com>
2491
2492 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2493 used in architecture vector. The default is
2494 m68k_local_breakpoint_from_pc.
2495 (m68k_local_breakpoint_from_pc): Add.
2496 (enum): Add register numbers from tm-m68k.h.
2497 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2498 vector.
2499 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2500 GDB_MULTI_ARCH_PARTIAL.
2501 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2502 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2503 m68k-tdep.c.
2504 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2505 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2506 to enum in m68k-tdep.c
2507
2508 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2509
2510 * solib-osf.c (open_map): Compute the list of shared libraries
2511 loaded by the inferior, rather than the list of libraries loaded
2512 by GDB itself. Otherwise, GDB ends up reading the symbols from
2513 the wrong shared libraries...
2514
2515 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2516
2517 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2518 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2519 macros.
2520 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2521 Remove functions.
2522 (FRAMELESS_SIGNAL): Remove function.
2523 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2524 i386_linux_saved_pc_after_call): Removed.
2525 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2526 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2527 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2528
2529 * i386-tdep.c (i386_frameless_signal_p): New function.
2530 (i386_frame_chain): Deal with frameless signals.
2531 (i386_sigtramp_saved_sp): New function.
2532 (i386_frame_saved_pc): Deal with frameless signals.
2533 (i386_saved_pc_after_call): Make sure the correct value is
2534 returned just after entry into a sigtramp.
2535 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2536 i386fbsd4_sc_sp_offset): New variables.
2537 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2538 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2539 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2540 similiar to what we already did for sc_pc_offset.
2541 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2542 tdep->sc_sp_offset.
2543
2544 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2545
2546 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2547
2548 * config/i386/tm-x86-64linux.h: New.
2549 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2550 definitions.
2551 * config/i386/nm-x86-64.h: Rename to ...
2552 * config/i386/nm-x86-64linux.h: ... this one.
2553 * config/i386/x86-64linux.mh: Reflect the above change.
2554
2555 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2556
2557 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2558 with sigcontext_addr. Add sc_sp_offset.
2559 (i386bsd_sigtramp_saved_pc): Remove prototype.
2560 (i386bsd_sicontext_addr): Add prototype.
2561 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2562 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2563 (i386_svr4_sigtramp_saved_pc): Removed.
2564 (i386_svr4_sigcontext_addr): New function.
2565 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2566 Initialize tdep->sigcontext_addr instead. Initialize
2567 tdep->sc_pc_offset and tdep->sc_sp_offset.
2568 (i386_gdbarch_init): Likewise.
2569 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2570 any more.
2571 (i386bsd_sigtramp_saved_pc): Remove function.
2572 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2573 Initialize tdep->sigcontext_addr instead. Initialize
2574 tdep->sc_pc_offset.
2575 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2576 of tdep->sigtramp_saved_pc.
2577 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2578 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2579 instead.
2580
2581 * i386-tdep.c (i386_frameless_function_invocation,
2582 i386_frame_num_args, i386_frame_init_saved_regs,
2583 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2584 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2585 i386_extract_return_value, i386_store_return_value,
2586 i386_extract_struct_value_address, i386_register_virtual_type,
2587 i386_register_convertible, i386_register_convert_to_virtual,
2588 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2589 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2590 static.
2591
2592 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2593
2594 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2595
2596 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2597 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2598 this macro. Include "value.h".
2599
2600 2002-06-30 Aidan Skinner <aidan@velvet.net>
2601
2602 * ada-exp.tab.c: remove as it's a generated file
2603 * ada-lex.c: remove as it's a generated file
2604
2605 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2606
2607 * config/i386/tm-i386.h (struct frame_info, struct
2608 frame_saved_regs, struct value, struct type): Remove forward
2609 declarations.
2610
2611 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2612 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2613 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2614 (FILL_FPXREGSET): Define.
2615
2616 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2617
2618 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2619 i[3456]86-*-netbsd* case.
2620 * config/i386/tm-obsd.h: Removed.
2621 * config/i386/obsd.mt: Removed.
2622 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2623 core-aout.o.
2624 (MH_CFLAGS): Add -DYYDEBUG=0.
2625
2626 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2627 i386nbsd_sc_pc_offset on OpenBSD too.
2628
2629 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2630 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2631 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2632 define.
2633 * i386bsd-tdep.c: Include "arch-utils.h".
2634 (i386bsd_aout_in_solib_call_trampoline): New function.
2635 (i386bsd_init_abi): Set in_solib_call_trampoline to
2636 i386bsd_aout_in_solib_call_trampoline.
2637 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2638 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2639
2640 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2641
2642 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2643 (struct obstack, struct bcache): Add opaque declarations.
2644 * Makefile.in (macrotab_h): Update
2645
2646 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2647
2648 * blockframe.c (generic_find_dummy_frame): Change return type to
2649 ``struct regcache''.
2650 (struct dummy_frame): Replace field ``registers'' with regcache, a
2651 struct regcache object.
2652 (generic_find_dummy_frame): Update.
2653 (generic_push_dummy_frame): Update. Use regcache_xfree,
2654 regcache_xmalloc and regcache_cpy.
2655 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2656 regcache_xfree.
2657 (deprecated_generic_find_dummy_frame): Update.
2658 (generic_read_register_dummy): Update. Use
2659 regcache_read_as_address.
2660 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2661 (generic_get_saved_register): Update. Use regcache_read.
2662
2663 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2664
2665 * Makefile.in (objfiles_h): Add $(bcache_h).
2666 * objfiles.h: Include "bcache.h".
2667
2668 * Makefile.in (symtab_h): Remove $(bcache_h).
2669 * symtab.h: Do not include "bcache.h".
2670
2671 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2672
2673 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2674 generic_func_frame_chain_valid.
2675
2676 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2677
2678 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2679 * config/i386/tm-fbsd.h: Likewise.
2680
2681 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2682
2683 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2684 generic_unwind_get_saved_register.
2685
2686 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2687
2688 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2689 * regcache.c (supply_register): Add missing argument to
2690 register_buffer call.
2691
2692 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2693
2694 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2695 Solaris /bin/grep does not not like it. From Peter Schauer.
2696
2697 2002-06-26 Tom Tromey <tromey@redhat.com>
2698
2699 * command.h (add_setshow_cmd): Declare.
2700 (add_setshow_cmd_full): Declare.
2701 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2702 returns void. Use add_setshow_cmd_full.
2703 (add_setshow_cmd_full): New function.
2704 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2705 (add_setshow_boolean_cmd): Likewise.
2706
2707 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2708
2709 * config/vax/tm-vax.h: Protect from multiple inclusion.
2710 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2711 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2712 * config/vax/tm-vaxbsd.h: ...here. New file.
2713 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2714
2715 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2716
2717 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2718 (BELIEVE_PCC_PROMOTION): Remove.
2719 (AP_REGNUM): Move to...
2720 * config/vax/nm-vax.h: ...here.
2721 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2722 (vax_breakpoint_from_pc): New function.
2723 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2724 and gdbarch_believe_pcc_promotion.
2725
2726 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2727
2728 * Makefile.in (vax_tdep_h): Define.
2729 (vax-tdep.o): Use $(vax_tdep_h).
2730 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2731 (vax_dump_tdep): New function.
2732 (_initialize_vax_tdep): Register vax_dump_tdep.
2733 * vax-tdep.h: Include osabi.h.
2734 (struct gdbarch_tdep): New.
2735
2736 2002-06-26 Andrew Cagney <cagney@redhat.com>
2737
2738 * frame.h (deprecated_generic_find_dummy_frame): Rename
2739 generic_find_dummy_frame.
2740 * blockframe.c (generic_find_dummy_frame): Make static.
2741 (deprecated_generic_find_dummy_frame): New function.
2742 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2743 generic_find_dummy_frame with deprecated_find_dummy_frame.
2744 (sh64_nofp_frame_init_saved_regs): Ditto.
2745 (sh_fp_frame_init_saved_regs): Ditto.
2746 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2747 (s390_frame_chain): Ditto.
2748 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2749
2750 2002-06-26 Grace Sainsbury <graces@redhat.com>
2751
2752 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2753 gdbarch vector are at the top.
2754 (NUM_REGS): Remove.
2755 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2756 (FRAME_ARGS_ADDRESS): Remove.
2757 (FRAME_LOCALS_ADDRESS): Remove.
2758 (FRAME_NUM_ARGS): Remove.
2759 (FRAME_ARGS_SKIP): Remove.
2760 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2761 (m68k_gdbarch_init): Add gdbarch initializations for macros
2762 undefined in tm-m68k.h
2763
2764 2002-06-26 Grace Sainsbury <graces@redhat.com>
2765
2766 * monitor.h: Add the function regname to monitor_ops
2767 structure. This way NUM_REGS does not have to be a constant.
2768 * monitor.c (monitor_fetch_register): Added support for regname
2769 function. The function is called if the array regnames is NULL.
2770 (monitor_store_register): Same.
2771 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2772 regnames array.
2773 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2774 cpu32bug_cmds.regname to point to new function.
2775 * abug-rom.c (abug_regname): Same as above.
2776 (init_abug_cmds): Same.
2777 * dbug-rom.c (dbug_regname): Same as above.
2778 (init_dbug_cmds): Same.
2779 * remote-est.c (est_regname): Same.
2780 (init_est_cmds): Same.
2781 * rom68k-rom.c (rom68k_regname): Same.
2782 (init_rom68k_cmds): Same.
2783
2784 2002-06-25 Tom Tromey <tromey@redhat.com>
2785
2786 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2787
2788 2002-06-25 Andrew Cagney <cagney@redhat.com>
2789
2790 * infrun.c (stop_registers): Change variable's type to ``struct
2791 regcache'''.
2792 (xmalloc_inferior_status): Delete function.
2793 (free_inferior_status): Delete function.
2794 (normal_stop): Use regcache_cpy.
2795 (struct inferior_status): Change type of fields ``stop_registers''
2796 and ``registers'' to ``struct regcache''.
2797 (write_inferior_status_register): Use regcache_write.
2798 (save_inferior_status): Instead of calling
2799 xmalloc_inferior_status, allocate the inf_status buffer directly.
2800 Use regcache_dup_no_passthrough and regcache_dup to save the
2801 buffers.
2802 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2803 Replace the stop_registers regcache instead of overriding it. Use
2804 regcache_xfree. Instead of calling free_inferior_status, xfree
2805 the buffer directly.
2806 (discard_inferior_status): Use regcache_xfree. Instead of calling
2807 free_inferior_status, xfree the buffer directly.
2808 (build_infrun): Use regcache_xmalloc.
2809 (_initialize_infrun): Delete redundant call to build_infrun.
2810
2811 * Makefile.in (infcmd.o): Add $(regcache_h).
2812
2813 * infcmd.c: Include "regcache.h".
2814 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2815 obtain the address of `stop_registers' register buffer.
2816 (print_return_value): Ditto.
2817
2818 * inferior.h (struct regcache): Add opaque declaration.
2819 (stop_registers): Change variable's declared type to ``struct
2820 regcache''.
2821
2822 2002-06-24 Tom Tromey <tromey@redhat.com>
2823
2824 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2825 * target.c (initialize_targets): Fixed typo in
2826 trust-readonly-sections `show' documentation.
2827
2828 * main.c: Marked all strings with _().
2829
2830 2002-06-24 Don Howard <dhoward@redhat.com>
2831
2832 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2833 that means max CORE_ADDR+1.
2834 (lookup_mem_region): Ditto.
2835 (mem_info_command): Ditto.
2836
2837 2002-06-24 Grace Sainsbury <graces@redhat.com>
2838
2839 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2840 (REGISTER_BYTES_OK): Remove.
2841 (REGISTER_BYTES): Remove.
2842 (STORE_STRUCT_RETURN): Remove.
2843 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2844 (STORE_RETURN_VALUE): Remove.
2845 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2846 (FRAME_CHAIN): Remove.
2847 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2848 (FRAME_SAVED_PC): Remove.
2849 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2850 (m68k_store_struct_return): Add.
2851 (m68k_deprecated_extract_return_value): Add.
2852 (m68k_deprecated_extract_struct_value_address): Add.
2853 (m68k_store_return_value): Add.
2854 (m68k_frame_chain): Add.
2855 (m68k_frameless_function_invocation): Add.
2856 (m68k_frame_saved_pc): Add.
2857 (m68k_gdbarch_init): added set_gdbarch calls for new
2858 functions and deleted macros.
2859
2860 2002-06-23 Tom Tromey <tromey@redhat.com>
2861
2862 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2863 (ALLDEPFILES): Likewise.
2864 (udiheaders): Removed.
2865 (udip2soc.o): Likewise.
2866 (udi2go32.o): Likewise.
2867 (udr.o): Likewise.
2868 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2869
2870 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2871
2872 * infrun.c (_initialize_infrun): Delete unnecessary call to
2873 build_infrun.
2874
2875 * regcache.h: Update comments describing the regcache_cpy family
2876 of functions.
2877 (regcache_save, regcache_restore): Delete declaration.
2878 (regcache_save_no_passthrough): Delete declaration.
2879 (regcache_restore_no_passthrough): Delete declaration.
2880 * regcache.c (regcache_save): Delete function.
2881 (regcache_save_no_passthrough): Delete function.
2882 (regcache_restore): Delete function.
2883 (regcache_restore_no_passthrough): Delete function.
2884
2885 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2886
2887 * config/m68k/tm-m68k.h: Fix typo.
2888 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2889 (m68k_frame_init_saved_regs): Declare.
2890
2891 2002-06-21 Jim Blandy <jimb@redhat.com>
2892
2893 Remove some vestiges of Harris 88k support.
2894 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2895 register numbering quirk.
2896 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2897 odd symbols occurring in Harris 88k ELF targets.
2898
2899 2002-06-21 Tom Tromey <tromey@redhat.com>
2900
2901 * gdb_locale.h: New file.
2902 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2903 (defs_h): Added gdb_locale.h.
2904 * configure, config.in: Rebuilt.
2905 * configure.in (PACKAGE): Define.
2906 * defs.h: Include gdb_locale.h.
2907 * main.c (captured_main): Call setlocale, bindtextdomain,
2908 textdomain.
2909
2910 2002-06-21 Dave Brolley <brolley@redhat.com>
2911
2912 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2913 * config/frv/frv.mt: New file.
2914 * config/frv/tm-frv.h: New file.
2915 * configure.tgt: Support frv-*-*.
2916 * Makefile.in (frv-tdep.o): New target.
2917 * frv-tdep.c: New file.
2918 * NEWS: Mention frv.
2919
2920 2002-06-21 Dave Brolley <brolley@redhat.com>
2921
2922 * MAINTAINERS: Add self to "Write After Approval" list.
2923
2924 2002-06-21 Grace Sainsbury <graces@redhat.com>
2925
2926 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2927 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2928 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2929 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2930 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2931
2932 * m68k-tdep.c: Include arch-utils.h
2933 (m68k_register_raw_size): Add.
2934 (m68k_register_virtual_size): Add.
2935 (m68k_register_virtual_type): Add.
2936 (m68k_register_name): Add.
2937 (m68k_stack_align): Add.
2938 (m68k_register_byte): Add.
2939 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2940 tm-m68k.h.
2941
2942 2002-06-21 Grace Sainsbury <graces@redhat.com>
2943
2944 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2945 m68k_find_saved_regs.
2946 (m68k_pop_frame): Removed saved_regs structure, and replaced
2947 references to it with frame->saved_regs.
2948 (m68k_gdbarch_init): Added function calls to initialize the
2949 gdbarch structure.
2950 (m68k_fix_call_dummy): Add.
2951 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2952 (CALL_DUMMY): Remove.
2953 (CALL_DUMMY_LENGTH): Remove.
2954 (CALL_DUMMY_START_OFFSET): Remove.
2955 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2956 (FIX_CALL_DUMMY): Remove.
2957 (PUSH_DUMMY_FRAME): Remove.
2958 (POP_FRAME): Remove.
2959
2960 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2961
2962 * parse.c (parse_fprintf): New function used to avoid calls to
2963 fprintf in bison parser generated debug code.
2964 * parser-defs.h: Declaration of new parse_fprintf function.
2965 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2966 Set YYDEBUG to 1 by default.
2967 Set YYFPRINTF as parse_fprintf.
2968
2969 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2970
2971 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2972 encoding anymore.
2973 (pointer_encoding, enum ptr_encoding): New.
2974 (execute_cfa_program): Take care about pointer encoding.
2975 (dwarf2_build_frame_info): Only call parse_frame_info for
2976 .debug_frame and .eh_frame.
2977 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2978 fixed augmentation handling, added relative addressing,
2979 ignore duplicate FDEs. Added comments.
2980 * dwarf2cfi.c: Reindented.
2981
2982 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2983
2984 * event-top.c (command_handler): Don't use space_at_cmd_start
2985 unless there is sbrk() on the host. Assign time and space data
2986 to union fields of the appropriate length.
2987
2988 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2989
2990 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2991 x86_64_register_name. Return type changed to 'const char *'.
2992 (x86_64_register_name2nr): Rename to x86_64_register_number.
2993 (x86_64_gdbarch_init): Update to reflect the change.
2994 * x86-64-tdep.h: Ditto.
2995 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2996 (supply_fpregset): Ditto.
2997
2998 2002-06-19 Andrew Cagney <cagney@redhat.com>
2999
3000 * regcache.h: Update copyright.
3001 (struct regcache, struct gdbarch): Add opaque declarations.
3002 (current_regcache): Declare global variable.
3003 (regcache_read, regcache_write): Add gdbarch parameter.
3004 (regcache_save, regcache_save_no_passthrough)
3005 (regcache_restore, regcache_restore_no_passthrough)
3006 (regcache_dup, regcache_dup_no_passthrough)
3007 (regcache_cpy, regcache_cpy_no_passthrough)
3008 (deprecated_grub_regcache_for_registers)
3009 (deprecated_grub_regcache_for_register_valid)
3010 (regcache_valid_p): Add function declarations.
3011
3012 * regcache.c: Update copyright.
3013 (regcache_descr_handle): New global variable.
3014 (struct regcache_descr): Define.
3015 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3016 (regcache_descr, xfree_regcache_descr): New functions.
3017 (struct regcache): Define.
3018 (regcache_xmalloc, regcache_xfree): New functions.
3019 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3020 (regcache_dup, regcache_dup_no_passthrough): New functions.
3021 (regcache_valid_p, regcache_read_as_address): New functions.
3022 (deprecated_grub_regcache_for_registers): New function.
3023 (deprecated_grub_regcache_for_register_valid): New function.
3024 (current_regcache): New global variable.
3025 (register_buffer): Add regcache parameter. Update calls.
3026 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3027 (read_register_gen, write_register_gen): Update register_buffer
3028 call. Test for legacy_p instead of gdbarch_register_read_p or
3029 gdbarch_register_write_p.
3030 (regcache_collect): Update register_buffer call.
3031 (build_regcache): Rewrite. Use deprecated grub functions.
3032 (regcache_save, regcache_save_no_passthrough): New functions.
3033 (regcache_restore, regcache_restore_no_passthrough): New
3034 functions.
3035 (_initialize_regcache): Create the regcache_data_handle. Swap
3036 current_regcache global variable.
3037
3038 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3039 parameter to regcache_read and regcache_write calls.
3040 (sh4_register_read): Ditto.
3041 (sh64_pseudo_register_read): Ditto.
3042 (sh64_register_read): Ditto.
3043 (sh_pseudo_register_write): Ditto.
3044 (sh4_register_write): Ditto.
3045 (sh64_pseudo_register_write): Ditto.
3046 (sh64_register_write): Ditto.
3047
3048 * defs.h (XCALLOC): Define.
3049
3050 2002-06-19 Grace Sainsbury <graces@redhat.com>
3051
3052 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3053 * m68k-tdep.c (m68k_gdbarch_init): Added.
3054 (m68k_dump_tdep): Added.
3055
3056 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3057
3058 * ada-lang.c (fill_in_ada_prototype): Update comment.
3059
3060 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3061
3062 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3063 MIPS_ABI_LAST.
3064 (mips_abi_string, mips_abi_strings): New.
3065 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3066 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3067 tdep->mips_abi_string. Honor mips_abi_string. Default to
3068 O32 if no ABI is found.
3069 (mips_dump_tdep): Use mips_abi_strings.
3070 (mips_abi_update): New function.
3071 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3072 ``set mips abi'' and ``show mips abi''. Check the size of
3073 mips_abi_strings.
3074
3075 2002-06-19 Andrew Cagney <cagney@redhat.com>
3076
3077 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3078 constant.
3079
3080 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3081
3082 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3083 current frame using only the first stack size adjustment. All
3084 subsequent size adjustments are not considered to be part of
3085 the "static" part of the current frame.
3086 Compute the address of the saved registers relative to the
3087 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3088 in use in this frame.
3089
3090 2002-06-18 Don Howard <dhoward@redhat.com>
3091
3092 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3093 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3094 suggesting this solution.
3095
3096 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3097
3098 * config/romp/xm-rtbsd.h: Delete file.
3099 * config/romp/rtbsd.mh: Delete file.
3100
3101 2002-06-18 Keith Seitz <keiths@redhat.com>
3102
3103 * breakpoint.c (condition_command): Post breakpoint_modify
3104 when a condition is added to an existing breakpoint.
3105 (commands_command): Likewise for commands.
3106 (set_ignore_count): Likewise for ignore counts.
3107 If no tty, do not simply return, still need to send event
3108 notification.
3109 (ignore_command): Only print a newline if the command came
3110 from a tty.
3111 Don't call breakpoints_changed, since this is now properly
3112 handled by set_ignore_count.
3113
3114 2002-06-18 Andrew Cagney <cagney@redhat.com>
3115
3116 * MAINTAINERS: Note that cris-elf target can be compiled with
3117 -Werror.
3118 * cris-tdep.c (cris_register_name): Make return type constant.
3119 (cris_breakpoint_from_pc): Ditto.
3120
3121 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3122
3123 * frame.h (struct frame_info): Change type of context to
3124 'struct context'.
3125
3126 2002-06-17 Andrew Cagney <cagney@redhat.com>
3127
3128 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3129 pointer.
3130 * gdbarch.h, gdbarch.c: Regenerate.
3131 * config/mips/tm-mips.h (mips_register_name): Update.
3132 * i386-tdep.h (i386_register_name): Update.
3133 * mips-tdep.c (mips_register_name): Update
3134 * alpha-tdep.c (alpha_register_name): Update.
3135 * arch-utils.c (legacy_register_name): Update.
3136 * arch-utils.h (legacy_register_name): Update.
3137 * avr-tdep.c (avr_register_name): Update.
3138 * ia64-tdep.c (ia64_register_name): Update.
3139 * i386-tdep.c (i386_register_name): Update.
3140 * sparc-tdep.c (sparc32_register_name): Update.
3141 (sparc64_register_name): Update.
3142 (sparclite_register_name): Update.
3143 (sparclet_register_name): Update.
3144 * sh-tdep.c (sh_generic_register_name): Update.
3145 (sh_sh_register_name): Update.
3146 (sh_sh3_register_name): Update.
3147 (sh_sh3e_register_name): Update.
3148 (sh_sh_dsp_register_name): Update.
3149 (sh_sh3_dsp_register_name): Update.
3150 (sh_sh4_register_name): Update.
3151 (sh_sh64_register_name): Update.
3152 * s390-tdep.c (s390_register_name): Update.
3153 * rs6000-tdep.c (rs6000_register_name): Update.
3154 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3155 (ns32k_register_name_32382): Update.
3156 * d10v-tdep.c (d10v_ts2_register_name): Update.
3157 (d10v_ts3_register_name): Update.
3158 * xstormy16-tdep.c (xstormy16_register_name): Update.
3159 * vax-tdep.c (vax_register_name): Update.
3160 * v850-tdep.c (v850_register_name): Update.
3161 * m68hc11-tdep.c (m68hc11_register_name): Update.
3162 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3163 (am33_register_name): Update.
3164
3165 2002-06-17 Grace Sainsbury <graces@redhat.com>
3166
3167 * m68k-tdep.c: Reindented.
3168
3169 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3170
3171 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3172 list of predefined types.
3173
3174 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3175
3176 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3177 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3178 REGISTER_CONVERT_TO_RAW): Remove defines.
3179 (i386_register_virtual_type, i386_register_convertible,
3180 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3181 Remove prototypes.
3182 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3183 macros mentioned above.
3184
3185 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3186 (i386lynx_saved_pc_after_call): Remove prototype.
3187 * i386ly-tdep.c: Include "i386-tdep.h".
3188 (i386lynx_saved_pc_after_call): Make static. Use
3189 read_memory_nobpt instead of read_memory. Use
3190 read_memory_unsigned_integer instead of read_memory_integer.
3191 (i386lynx_init_abi): New function.
3192 (i386lynx_coff_osabi_sniffer): New function.
3193 (_initialize_i386bsd_tdep): New function.
3194
3195 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3196 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3197 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3198 (i386_fix_call_dummy): Remove prototype.
3199 * i386-tdep.c (i386_call_dummy_words): New variable.
3200 (i386_gdbarch_init): Adjust for removal of the
3201 macros mentioned above.
3202
3203 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3204
3205 * command.h (add_setshow_auto_boolean_cmd): Replace
3206 add_set_auto_boolean_cmd.
3207 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3208 add_set_auto_boolean_cmd.
3209 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3210 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3211 mask-address'' command.
3212 (show_mask_address): Add cmd parameter.
3213 * remote.c (add_packet_config_cmd): Update. Change type of
3214 set_func and show_func to cmd_sfunc_ftype.
3215 (_initialize_remote): Update `set remote Z-packet'
3216 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3217 (show_remote_protocol_e_packet_cmd): Ditto.
3218 (show_remote_protocol_E_packet_cmd): Ditto.
3219 (show_remote_protocol_P_packet_cmd): Ditto.
3220 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3221 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3222 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3223 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3224 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3225 (show_remote_protocol_Z_packet_cmd): Ditto.
3226 (show_remote_protocol_binary_download_cmd): Ditto.
3227 (show_remote_cmd): Pass NULL to all of above.
3228
3229 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3230
3231 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3232 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3233 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3234 POP_FRAME): Remove defines.
3235 (i386_push_arguments, i386_store_struct_return,
3236 i386_extract_return_value, i386_store_return_value,
3237 i386_extract_struct_value_address, i386_push_dummy_frame,
3238 i386_pop_frame): Renove prototypes.
3239 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3240 macros mentioned above.
3241
3242 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3243
3244 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3245 add_set_boolean_cmd.
3246 (add_setshow_cmd): New function.
3247 * command.h (add_setshow_boolean_cmd): Replace
3248 add_set_boolean_cmd.
3249 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3250 and ``set rdiromatzero''.
3251 * maint.c (_initialize_maint_cmds): Update commented out code.
3252 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3253 * target.c (initialize_targets): Update `set
3254 trust-readonly-sections'.
3255 * remote.c (_initialize_remote): Update `set remotebreak'.
3256
3257 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3258
3259 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3260 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3261 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3262 fit into multi-arch framework.
3263 (i386_breakpoint_from_pc): New function.
3264 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3265 above.
3266
3267 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3268 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3269 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3270 (i386_frameless_function_invocation, i386_frame_num_args,
3271 i386_frame_init_saved_regs): Remove prototypes.
3272 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3273 macros mentioned above.
3274
3275 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3276
3277 * cli/cli-decode.c (set_cmd_cfunc): Update.
3278 (set_cmd_sfunc): Update.
3279 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3280 (set_cmd_sfunc, set_cmd_cfunc): Update.
3281 * cli/cli-decode.h: Update.
3282
3283 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3284
3285 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3286 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3287
3288 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3289
3290 * defs.h (auto_boolean): Declare enum.
3291 * command.h (cmd_auto_boolean): Delete enum.
3292 * mips-tdep.c (mask_address_var): Update.
3293 (mips_mask_address_p): Update.
3294 (show_mask_address): Update.
3295 * remote.c (struct packet_config): Update.
3296 (update_packet_config): Update.
3297 (show_packet_config_cmd): Update.
3298 (packet_ok): Update.
3299 (add_packet_config_cmd): Update.
3300 (_initialize_remote):
3301 * command.h: Update.
3302 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3303 (do_setshow_command): Update.
3304 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3305 * cli/cli-decode.h: Update.
3306
3307 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3308
3309 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3310 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3311 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3312 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3313 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3314 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3315
3316 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3317 list of DJGPP COFF targets.
3318
3319 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3320 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3321 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3322 (FP0_REGNUM): Remove define.
3323 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3324 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3325 (i386_register_virtual_size): Remove protoype.
3326 * i386-tdep.c (i386_register_virtual_size): Removed.
3327 (i386_extract_return_value, i386_store_return_value): Use
3328 FP0_REGNUM instead of NUM_FREGS to determine whether the
3329 floating-point registers are available.
3330 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3331 Adjust for removal of macros mentioned above.
3332
3333 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3334
3335 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3336 comments.
3337 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3338 Remove prototypes.
3339 (supply_gregset, fill_gregset): Remove use of register keyword and
3340 remove declaration for regmap. Use I386_NUM_GREGS instead of
3341 NUM_REGS and NUM_FREGS.
3342 (FPREGSET_FSAVE_OFFSET): Remove.
3343 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3344 NUM_FREGS to determine whether the floating-point registers are
3345 available.
3346
3347 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3348 gnu_store_registers): Replace usage of NUM_GREGS with
3349 I386_NUM_GREGS.
3350
3351 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3352 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3353 usage of NUM_GREGS with I386_NUM_GREGS.
3354
3355 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3356
3357 * i386bsd-nat.c: Include "i386-tdep.h".
3358 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3359 I386_NUM_GREGS.
3360
3361 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3362 and associated comment. They no longer make any sense, since we
3363 don't use this file anymore on Linux.
3364
3365 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3366 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3367 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3368 elements in these arrays.
3369 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3370 MAX_NUM_REGS.
3371
3372 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3373
3374 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3375 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3376
3377 2002-06-14 Andrew Cagney <cagney@redhat.com>
3378
3379 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3380 EXTRACT_RETURN_VALUE.
3381 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3382 EXTRACT_STRUCT_VALUE_ADDRESS.
3383 * gdbarch.h, gdbarch.c: Regenerate.
3384
3385 * values.c (value_being_returned): Handle
3386 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3387 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3388
3389 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3390 * arm-tdep.c (arm_gdbarch_init): Update.
3391 * avr-tdep.c (avr_gdbarch_init): Update.
3392 * cris-tdep.c (cris_gdbarch_init): Update.
3393 * d10v-tdep.c (d10v_gdbarch_init): Update.
3394 * ia64-tdep.c (ia64_gdbarch_init): Update.
3395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3397 * s390-tdep.c (s390_gdbarch_init): Update.
3398 * sh-tdep.c (sh_gdbarch_init): Update.
3399 * s390-tdep.c (s390_gdbarch_init): Update.
3400 * sparc-tdep.c (sparc_gdbarch_init): Update.
3401 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3402 * v850-tdep.c (v850_gdbarch_init): Update.
3403 * vax-tdep.c (vax_gdbarch_init): Update.
3404 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3406
3407 * config/arc/tm-arc.h: Update.
3408 * config/d30v/tm-d30v.h: Update.
3409 * config/fr30/tm-fr30.h: Update.
3410 * config/h8300/tm-h8300.h: Update.
3411 * config/h8500/tm-h8500.h: Update.
3412 * config/i386/tm-i386.h: Update.
3413 * config/i386/tm-ptx.h: Update.
3414 * config/i386/tm-symmetry.h: Update.
3415 * config/i960/tm-i960.h: Update.
3416 * config/m32r/tm-m32r.h: Update.
3417 * config/m68k/tm-delta68.h: Update.
3418 * config/m68k/tm-linux.h: Update.
3419 * config/m68k/tm-m68k.h: Update.
3420 * config/m88k/tm-m88k.h: Update.
3421 * config/mcore/tm-mcore.h: Update.
3422 * config/mips/tm-mips.h: Update.
3423 * config/mn10200/tm-mn10200.h: Update.
3424 * config/pa/tm-hppa.h: Update.
3425 * config/pa/tm-hppa64.h: Update.
3426 * config/sparc/tm-sp64.h: Update.
3427 * config/sparc/tm-sparc.h: Update.
3428 * config/sparc/tm-sparclet.h: Update.
3429 * config/z8k/tm-z8k.h: Update.
3430
3431 2002-06-14 Andrew Cagney <cagney@redhat.com>
3432
3433 * Makefile.in (i386_linux_tdep_h): Define.
3434 (i386_tdep_h, i387_tdep_h): Define.
3435 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3436 $(i386_tdep_h) and $(i387_tdep_h).
3437 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3438
3439 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3440
3441 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3442 Already covered by the default.
3443
3444 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3445 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3446 (i386_gdbarch_init): Initialize long_double_format and long_double
3447 bit.
3448
3449 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3450 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3451 Move these to ...
3452 * config/i386/i386sol2.mh: ... here.
3453 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3454 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3455 (SIGCONTEXT_PC_OFFSET): Remove define.
3456 (IN_SIGTRAMP): Remove define.
3457 * i386-sol2-tdep.c: New file.
3458
3459 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3460 * config/i386/tm-i386nw.h: Removed.
3461
3462 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3463 USE_STRUCT_CONVENTION): Remove defines.
3464 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3465 (get_longjmp_target): Remove prototype.
3466 (IN_SIGTRAMP): Remove define.
3467 (i386bsd_in_sigtramp): Remove prototype.
3468 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3469 function. Update comment accordingly
3470 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3471 (FRAME_SAVED_PC): Remove define.
3472 (i386bsd_frame_saved_pc): Remove prototype.
3473 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3474 GET_LONGJMP_TARGET): Remove defines.
3475 (get_longjmp_target): Remove prototype.
3476 (IN_SIGTRAMP): Remove define.
3477 (i386bsd_in_sigtramp): Remove prototype.
3478 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3479 function. Update comment accordingly
3480 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3481 (FRAME_SAVED_PC): Remove define.
3482 (i386bsd_frame_saved_pc): Remove prototype.
3483 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3484 Remove prototype.
3485 (USE_STRUCT_CONVENTION): Remove prototype.
3486 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3487 declaration.
3488 (_initialize_i386bsd_nat): Revise logic to determine some
3489 constants at compile time when compiling a native GDB. Warn if
3490 things don't match up with what we expect.
3491 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3492 Remove variables.
3493 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3494 to use date stored in `struct gdbarch_tdep'.
3495 (i386bsd_sigcontext_offset): Remove varaible.
3496 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3497 stored in `struct gdbarch_tdep'.
3498 (i386bsd_frame_saved_pc): Make static.
3499 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3500 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3501 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3502 i386fbsd4_sc_pc_offset): New variables.
3503 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3504 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3505 functions.
3506 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3507 functions.
3508 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3509 Modify the value of i386fbsd_sigtramp_start and
3510 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3511 i386fbsd_sigtramp_end.
3512 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3513 function.
3514
3515 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3516 define to i386-linux-tdep.h.
3517 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3518 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3519 defines.
3520 (i386_linux_register_name, i386_linux_register_byte,
3521 i386_linux_register_raw_size): Remove prototypes.
3522 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3523 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3524 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3525 TARGET_WRITE_PC): Remove defines.
3526 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3527 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3528 i386_linux_write_pc): Remove prototypes.
3529 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3530 (get_longjmp_target): Remove prototype.
3531 * i386-linux-tdep.h: New file.
3532 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3533 * i386-linux-tdep.c: Include "i386-tdep.h" and
3534 "i386-linux-tdep.h".
3535 (i386_linux_register_name, i386_linux_register_byte,
3536 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3537 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3538 Make static.
3539 (i386_linux_init_abi): New function.
3540 (_initialize_i386_linux_tdep): New function.
3541
3542 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3543 (i386_saved_pc_after_call): Remove prototype.
3544 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3545 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3546 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3547 (i386_register_name, i386_stab_reg_to_regnum,
3548 i386_dwarf_reg_to_regnum): Remove prototypes.
3549 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3550 SIZEOF_SSE_REGS): Remove defines.
3551 (REGISTER_BYTES): Remove define.
3552 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3553 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3554 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3555 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3556 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3557 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3558 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3559 (get_longjmp_target): Remove prototype.
3560 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3561 (sigtramp_saved_pc): Remove define.
3562 (i386v4_sigtramp_saved_pc): Remove prototype.
3563 * config/i386/tm-go32.h (FRAME_CHAIN,
3564 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3565 (i386go32_frame_saved_pc): Remove prototype.
3566 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3567 (get_longjmp_target): Remove prototype.
3568 * i386-tdep.h: Include "osabi.h".
3569 (enum i386_abi): Removed.
3570 (enum struct_return): New enum.
3571 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3572 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3573 sc_pc_offset members.
3574 (i386_gdbarch_register_os_abi): Remove prototype.
3575 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3576 I386_SSE_NUM_REGS): New defines.
3577 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3578 I386_SSE_SIZEOF_REGS): New defines.
3579 (i386_register_name, i386_register_byte, i386_register_raw_size):
3580 New prototypes.
3581 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3582 (i386bsd_sigtramp_saved_pc): New prototype.
3583 * i386-tdep.c: Don't include "elf-bfd.h".
3584 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3585 i386_frame_chain, i386_saved_pc_after_call): Make static.
3586 (i386_frame_saved_pc): Rewrite to call architecture dependent
3587 function to deal with signal handlers. Make static.
3588 (i386go32_frame_saved_pc): Removed.
3589 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3590 Removed.
3591 (i386_get_longjmp_target): New function.
3592 (default_struct_convention, pcc_struct_convention,
3593 reg_struct_convention, valid_conventions, struct_convention): New
3594 variables.
3595 (i386_use_struct_convention): New function.
3596 (i386v4_sigtramp_saved_pc): Renamed to
3597 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3598 (i386_pc_in_sigtramp): New function.
3599 (i386_abi_names): Removed.
3600 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3601 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3602 Removed.
3603 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3604 i386_gdbarch_register_os_abi): Removed.
3605 (struct i386_abi_handler): Removed.
3606 (i386_abi_handler_list): Removed.
3607 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3608 functions.
3609 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3610 i386_nw_init_abi): New functions.
3611 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3612 Use set_gdbarch_xxx() calls instead of relying on macros for a
3613 number of calls.
3614 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3615 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3616 Register the various architecture variants defined in this file.
3617
3618 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3619
3620 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3621 (struct main_type): Remove arg_types member. Update comments for
3622 struct field.
3623 (TYPE_ARG_TYPES): Remove.
3624 (TYPE_FN_FIELD_ARGS): Update.
3625 (smash_to_method_type): Update prototype.
3626
3627 * c-typeprint.c (cp_type_print_method_args): Take method type
3628 instead of argument list. Use new argument layout. Simplify.
3629 (c_type_print_args): Use new argument layout. Simplify.
3630 (c_type_print_base): Update call to cp_type_print_method_args.
3631 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3632 argument; use die->type instead. Update call to
3633 smash_to_method_type.
3634 (read_structure_scope): Update call to dwarf2_add_member_fn.
3635 * gdbtypes.c (allocate_stub_method): Update comment.
3636 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3637 Use new argument layout.
3638 (check_stub_method): Use new argument layout. Don't count
3639 void as an argument.
3640 (print_arg_types): Update comments. Use new argument layout.
3641 (recursive_dump_type): Don't print arg_types member.
3642 * hpread.c (hpread_read_struct_type): Use new argument layout.
3643 (fixup_class_method_type): Likewise.
3644 (hpread_type_lookup): Likewise.
3645 * stabsread.c (read_type): Update calls to read_args and
3646 smash_to_method_type.
3647 (read_args): Use new argument layout. Simplify.
3648 * valops.c (typecmp): Use new argument layout. Update parameters
3649 and comments. Simplify.
3650 (hand_function_call): Use new argument layout.
3651 (search_struct_method): Update call to typecmp.
3652 (find_overload_match): Use new argument layout.
3653
3654 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3655
3656 * NEWS: Mention multithreaded debug support for gdbserver.
3657
3658 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3659
3660 * MAINTAINERS: Mention NEWS.
3661
3662 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3663
3664 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3665 (struct mips_objfile_private, compare_pdr_entries): New.
3666 (non_heuristic_proc_desc): Read the ".pdr" section if it
3667 is present.
3668
3669 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3670
3671 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3672 (arm_debug): New static variable.
3673 (_initialize_arm_tdep): Add ``set debug arm'' command.
3674
3675 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3676
3677 * Makefile.in (sim_arm_h): Define.
3678 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3679 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3680 (arm_register_sim_regno): New function, map an internal REGNUM
3681 onto a simulator register number.
3682 (arm_gdbarch_init): Set register_sim_regno.
3683
3684 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3685
3686 * MAINTAINERS: Add self.
3687
3688 2002-06-11 Jim Blandy <jimb@redhat.com>
3689
3690 * source.c (source_info): Mention whether the symtab has
3691 information about preprocessor macros.
3692
3693 Call the command `info macro', not `show macro'.
3694 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3695 Fix error message.
3696 (_initialize_macrocmd): Register `info_macro_command' in
3697 `infolist', not `showlist'.
3698
3699 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3700
3701 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3702 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3703 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3704 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3705 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3706 unconditionally.
3707 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3708 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3709 (_initialize_mips_tdep): Remove dead code.
3710 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3711 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3712 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3713 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3714 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3715 MIPS_LAST_FP_ARG_REGNUM): Remove.
3716
3717 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3718
3719 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3720 (unwind_tmp_obstack_free, parse_frame_info)
3721 (update_context, cfi_read_fp, cfi_write_fp)
3722 (cfi_frame_chain, cfi_init_extra_frame_info)
3723 (cfi_virtual_frame_pointer): Use the above function.
3724 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3725
3726 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3727
3728 * v850-tdep.c (v850_type_is_scalar): New function.
3729 (v850_use_struct_convention): Match current gcc implementation
3730 as close as possible.
3731 (v850_push_arguments): Fix stack_offset handling. Don't write
3732 struct_addr into register. This is done by v850_store_struct_return.
3733 (v850_extract_return_value): Care for structs.
3734 (v850_store_return_value): Ditto.
3735 (v850_store_struct_return): Actually write address.
3736
3737 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3738
3739 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3740 without debug information too.
3741
3742 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3743
3744 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3745 Make multi-arch pure.
3746 * gdbarch.h, gdbarch.c: Re-generate.
3747 * arm-tdep.c (arm_print_float_info): Update.
3748 * arch-utils.h (default_print_float_info): Update.
3749 * arch-utils.c (default_print_float_info): Update.
3750 * infcmd.c (float_info): Update call.
3751
3752 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3753
3754 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3755 the front of the initialize list.
3756
3757 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3758
3759 * infrun.c (struct inferior_status): Replace fields
3760 selected_frame_address and selected_level with field
3761 selected_frame_id.
3762 (save_inferior_status): Update. Use get_frame_id.
3763 (struct restore_selected_frame_args): Delete.
3764 (restore_selected_frame): Update. Use frame_find_by_id.
3765 (restore_inferior_status): Update.
3766
3767 * breakpoint.h (struct breakpoint): Change type of
3768 watchpoint_frame to frame_id.
3769 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3770 call to get_current_frame.
3771 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3772 get_current_frame.
3773 (watchpoint_check): Use frame_find_by_id.
3774
3775 * frame.h (record_selected_frame): Delete declaration.
3776 * stack.c (record_selected_frame): Delete function.
3777
3778 * frame.h (struct frame_id): Define.
3779 (get_frame_id): Declare.
3780 (frame_find_by_id): Declare.
3781 * frame.c (frame_find_by_id): New function.
3782 (get_frame_id): New function.
3783
3784 2002-06-10 Andrey Volkov <avolkov@transas.com>
3785
3786 * ser-e7kpc.c: Fix duplicated define and call of
3787 _initialize_ser_e7000pc
3788
3789 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3790
3791 * signals/signals.c (target_signal_from_host): Fix #ifdef
3792 SIGRTMIN case.
3793 (do_target_signal_to_host): Likewise.
3794
3795 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3796
3797 * mips-tdep.c (mips_find_abi_section): New function.
3798 (mips_gdbarch_init): Call it.
3799
3800 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3801
3802 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3803 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3804 after Andrew's 2002-06-08 gdbarch change.
3805
3806 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3807
3808 * i386-linux-nat.c (suppy_gregset): Don't supply
3809 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3810 register cache.
3811 (fill_gregset): Don't fetch it under the same circumstances.
3812
3813 2002-06-09 Andrew Cagney <cagney@redhat.com>
3814
3815 * Makefile.in (callback_h): Define.
3816 (remote_sim_h): Update path to remote-sim.h.
3817 (remote-rdp.o): Add $(callback_h).
3818 (remote-sim.o): Use $(callback_h).
3819 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3820 * remote-rdp.c: Include "gdb/callback.h".
3821
3822 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3823
3824 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3825 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3826
3827 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3828
3829 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3830 * rdi-share/serpardr.c: Ditto.
3831 * rdi-share/unixcomm.c: Ditto.
3832 * rdi-share/serdrv.c: Ditto.
3833 * rdi-share/hostchan.h: Ditto.
3834 * rdi-share/hostchan.c: Ditto.
3835 * rdi-share/host.h: Ditto.
3836 * rdi-share/devsw.c: Ditto.
3837
3838 * objfiles.h: Change type of obj_private to void pointer.
3839 * pa64solib.c: Update copyright. Don't include "assert.h", use
3840 strcmp instead of STREQ, use LONGEST, do not use PTR
3841 * somsolib.c: Ditto.
3842
3843 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3844 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3845 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3846
3847 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3848
3849 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3850 (default_get_saved_register): Delete function.
3851 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3852 generic_unwind_get_saved_register.
3853 * gdbarch.h, gdbarch.c: Re-generate.
3854
3855 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3856
3857 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3858 generic_func_frame_chain_valid.
3859 * gdbarch.h, gdbarch.c: Re-generate.
3860 * blockframe.c (generic_func_frame_chain_valid): Only check
3861 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3862 passing FP to PC_IN_CALL_DUMMY.
3863 Fix PR gdb/360.
3864
3865 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3866
3867 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3868 (register_gdbarch_data): Initialize init_p.
3869 (gdbarch_data): Initialize data pointer using the init function.
3870 (init_gdbarch_data): Delete function.
3871 (gdbarch_update_p): Update.
3872 (initialize_non_multiarch): Update.
3873 (struct gdbarch): Add field initialized_p.
3874 * gdbarch.h, gdbarch.c: Re-generate.
3875
3876 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3877
3878 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3879 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3880 better do the things actually here.
3881 * x86-64-tdep.c (x86_64_register_name2nr): New.
3882 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3883 (x86_64_gdbarch_init): Respect the above change.
3884 * x86-64-tdep.h (x86_64_register_name2nr)
3885 (x86_64_register_nr2name): Add prototypes.
3886 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3887
3888 2002-06-06 Michael Snyder <msnyder@redhat.com>
3889
3890 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3891 Delete extra braces and re-indent.
3892 (d10v_store_return_value): Char return values
3893 must be shifted over by one byte in R0.
3894 (d10v_extract_return_value): Delete extra braces, re-indent.
3895
3896 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3897
3898 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3899 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3900 (d10v_integer_to_address): Rewrite.
3901 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3902 the d10v specific functions which take care of converting to the
3903 correct space.
3904
3905 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3906
3907 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3908 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3909
3910 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3911
3912 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3913 includes.
3914 * config/tm-linux.h: Ditto.
3915 * config/alpha/tm-alphalinux.h: Ditto.
3916 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3917 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3918 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3919 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3920 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3921 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3922 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3923 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3924 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3925 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3926 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3927 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3928 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3929 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3930 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3931 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3932 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3933 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3934 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3935 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3936 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3937 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3938 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3939 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3940 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3941 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3942 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3943 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3944 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3945 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3946 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3947 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3948 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3949 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3950 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3951 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3952 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3953
3954 2002-05-04 Aidan Skinner <aidan@velvet.net>
3955
3956 * ada-exp.tab.c: New file
3957 * ada-exp.y: New file
3958 * ada-lang.c: New file
3959 * ada-lang.h: New file
3960 * ada-lex.c: New file
3961 * ada-lex.l: New file
3962 * ada-tasks.c: New file
3963 * ada-typeprint.c: New file
3964 * ada-valprint.c: New file
3965
3966 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3967
3968 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3969 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3970
3971 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3972
3973 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3974 insetead of ppc-linux-tdep.o.
3975 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3976 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3977
3978 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3979
3980 2002-05-07 Christian Groessler <chris@groessler.org>
3981 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3982 bit register contents for little endian hosts.
3983
3984 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3985
3986 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3987 any maintainer.
3988
3989 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3990
3991 * gdbarch.h: Regenerate.
3992
3993 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3994
3995 * MAINTAINERS: Add everyone to write-after-approval list.
3996
3997 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3998
3999 * stack.c (frame_info): Use frame_register_unwind instead of
4000 saved_regs. Mention when the SP is on the stack or in a register.
4001
4002 * frame.h (frame_register_unwind_ftype): Define. Document.
4003 (struct frame_info): Add field register_unwind and
4004 register_unwind_cache.
4005 (frame_register_unwind): Declare.
4006 (generic_unwind_get_saved_register): Declare.
4007
4008 * frame.c (frame_register_unwind): New function.
4009 (generic_unwind_get_saved_register): New function.
4010
4011 * blockframe.c (generic_call_dummy_register_unwind): New function.
4012 (frame_saved_regs_register_unwind): New function.
4013 (set_unwind_by_pc): New function.
4014 (create_new_frame): New function.
4015 (get_prev_frame): New function.
4016
4017 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4018
4019 * a29k-share/: Delete directory.
4020 * remote-vx29k.c: Delete file.
4021
4022 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4023
4024 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4025 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4026
4027 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4028
4029 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4030 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4031 (sparc64nbsd-nat.o)
4032 (sparcnbsd-nat.o)
4033 (sparcnbsd-tdep.o): New dependency lists.
4034 * NEWS: Note new UltraSPARC NetBSD native configuration.
4035 * configure.host (sparc64-*-netbsd*): New host.
4036 * configure.tgt (sparc-*-netbsdelf*)
4037 (sparc-*-netbsd*): Set gdb_target to nbsd.
4038 (sparc64-*-netbsd*): New target.
4039 * sparc64nbsd-nat.c: New file.
4040 * sparcnbsd-nat.c: New file.
4041 * sparcnbsd-tdep.c: New file.
4042 * sparcnbsd-tdep.h: New file.
4043 * config/sparc/nbsd.mt: New file.
4044 * config/sparc/nbsd64.mh: New file.
4045 * config/sparc/nbsd64.mt: New file.
4046 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4047 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4048 (HOST_IPC): Remove.
4049 * config/sparc/nbsdaout.mt: Remove.
4050 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4051 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4052 (HOST_IPC): Remove.
4053 * config/sparc/nbsdelf.mt: Remove.
4054 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4055 sparc-nat.c compatiblity defines.
4056 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4057 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4058 * config/sparc/tm-nbsd64.h: New file.
4059 * config/sparc/tm-nbsdaout.h: Remove.
4060 * config/sparc/xm-nbsd.h: Remove.
4061
4062 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4063
4064 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4065 * sparc-tdep.c: Include osabi.h.
4066 (gdbarch_tdep): Add osabi member.
4067 (_initialize_sparc_tdep): Use gdbarch_register.
4068 (sparc_gdbarch_init): Use generic OS ABI framework.
4069 (sparc_dump_tdep): New function.
4070
4071 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4072
4073 * corefile.c (do_captured_read_memory_integer): Return non-zero
4074 result.
4075 (safe_read_memory_integer): Copy result of memory read when
4076 status is non-zero. Also, add comments.
4077
4078 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4079
4080 * Makefile.in (ppc_tdep_h): Define.
4081 (ppc-linux-nat.o)
4082 (ppc-linux-tdep.o)
4083 (rs6000-tdep.o): Use $(ppc_tdep_h).
4084 (ppc-sysv-tdep.o)
4085 (ppcnbsd-nat.o)
4086 (ppcnbsd-tdep.o): New dependency lists.
4087 * ppc-tdep.h: Use generic OS ABI framework.
4088 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4089 (ppc_linux_init_abi): New functions.
4090 (ppc_sysv_abi_broken_use_struct_convention)
4091 (ppc_sysv_abi_use_struct_convention)
4092 (ppc_sysv_abi_push_arguments): Move to...
4093 * ppc-sysv-tdep.c: ...here.
4094 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4095 * rs6000-tdep.c (process_note_abi_tag_sections)
4096 (get_elfosabi): Remove.
4097 (rs6000_gdbarch_init): Use generic OS ABI framework.
4098 (rs6000_dump_tdep): New function.
4099 (_initialize_rs6000_tdep): Use gdbarch_register.
4100 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4101 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4102 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4103 of ppc-linux-tdep.o.
4104 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4105 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4106 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4107 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4108 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4109 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4110
4111 2002-05-29 Jim Blandy <jimb@redhat.com>
4112
4113 * macroscope.c (default_macro_scope): Put `void' in empty argument
4114 list.
4115
4116 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4117
4118 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4119 * arch-utils.c: Include "sim-regno.h".
4120 * gdbarch.sh: Don't include "sim-regno.h".
4121 * gdbarch.h, gdbarch.c: Regenerate.
4122 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4123 here.
4124 * arch-utils.h (legacy_register_sim_regno): To here.
4125 * remote-sim.c (legacy_register_sim_regno): Move function from
4126 here.
4127 * arch-utils.c (legacy_register_sim_regno): To here.
4128
4129 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4130
4131 * sim-regno.h: New file.
4132 * Makefile.in (sim_regno_h): Define.
4133 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4134 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4135 (legacy_register_sim_regno): New function.
4136 (one2one_register_sim_regno): New function.
4137 (gdbsim_fetch_register): Rewrite.
4138 (gdbsim_store_register): Only store a register when
4139 REGISTER_SIM_REGNO is valid.
4140 * d10v-tdep.c: Include "sim-regno.h".
4141 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4142 (d10v_ts3_register_sim_regno): Ditto.
4143 * gdbarch.sh: Include "sim-regno.h".
4144 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4145 * gdbarch.h, gdbarch.c: Regenerate.
4146 * arch-utils.h (default_register_sim_regno): Delete declaration.
4147 * arch-utils.c (default_register_sim_regno): Delete function.
4148
4149 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4150
4151 * ppcnbsd-nat.c: Rewrite.
4152 * ppcnbsd-tdep.c: New file.
4153 * ppcnbsd-tdep.h: New file.
4154 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4155 solib.o, and solib-svr4.o.
4156 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4157 nbsd-tdep.o, and corelow.o.
4158
4159 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4160
4161 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4162 `tr' and `sed'. Mention that `broken' targets are not expected to
4163 build.
4164
4165 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4166
4167 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4168 Let PC point right after the prologue before looking up symbols.
4169
4170 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4171
4172 * i386-tdep.c (i386_register_virtual_type): Return
4173 builtin_type_vec128i for SSE registers.
4174
4175 * gdbtypes.h (builtin_type_vec128i): Declare.
4176
4177 * gdbtypes.c (build_builtin_type_vec128i): New function.
4178 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4179 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4180 (build_gdbtypes): Initialize new builtin vector types.
4181 (_initialize_gdbtypes): Register new vector types with gdbarch.
4182
4183 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4184
4185 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4186 since it has been multi-arch'd.
4187 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4188 Move Alpha and VAX multi-arch news entries to same section
4189 as other multi-arch news.
4190
4191 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4192
4193 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4194 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4195 static. Rename some register numbers to put them in ns32k-tdep
4196 private namespace.
4197 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4198 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4199 functions.
4200 (_initialize_ns32k_tdep): Use gdbarch_register.
4201 * ns32k-tdep.h: New file.
4202 * ns32knbsd-tdep.c: New file.
4203 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4204 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4205 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4206 REGISTER_BYTES, REGISTER_BYTE): Remove.
4207 * config/ns32k/tm-ns32k.h: New file.
4208 * config/ns32k/tm-umax.h: Remove.
4209
4210 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4211
4212 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4213 ns32k_store_struct_return, ns32k_extract_return_value,
4214 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4215 functions.
4216 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4217 ns32k_saved_pc_after_call.
4218 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4219 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4220 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4221 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4222 ns32k_extract_struct_value_address.
4223
4224 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4225
4226 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4227 ns32k_fix_call_dummy): New.
4228 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4229 ns32k_call_dummy_words.
4230 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4231 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4232 CALL_DUMMY_NARGS): Remove.
4233 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4234
4235 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4236
4237 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4238 ns32k_frame_saved_pc, ns32k_frame_args_address,
4239 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4240 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4241 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4242 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4243 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4244 (BREAKPOINT): Remove..
4245 (FRAME_CHAIN): Define as ns32k_frame_chain.
4246 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4247 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4248 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4249 (FRAME_FIND_SAVED_REGS): Remove.
4250 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4251 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4252 (POP_FRAME): Define as ns32k_pop_frame.
4253
4254 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4255
4256 * ns32k-tdep.c (ns32k_register_byte_32082,
4257 ns32k_register_byte_32382, ns32k_register_raw_size,
4258 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4259 functions.
4260 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4261 ns32k_register_byte_32382.
4262 * config/ns32k/tm-umax.h: Update copyright years.
4263 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4264 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4265 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4266 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4267 (ns32k_get_enter_addr): Fix prototype.
4268
4269 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4270
4271 * ns32k-tdep.c: Update copyright years.
4272 (ns32k_register_name_32082): New function.
4273 (ns32k_register_name_32382): Ditto.
4274 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4275 (REGISTER_NAME): Define as ns32k_register_name_32382.
4276 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4277 (REGISTER_NAME): Define as ns32k_register_name_32082.
4278
4279 2002-05-24 Jim Blandy <jimb@redhat.com>
4280
4281 * dwarf2read.c (free_line_header): Use xfree, not free.
4282
4283 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4284
4285 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4286 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4287
4288 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4289
4290 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4291
4292 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4293
4294 From Ross Alexander at NEC Europe:
4295 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4296
4297 2002-05-23 Michael Snyder <msnyder@redhat.com>
4298
4299 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4300 for input, rather than parse_and_eval_address.
4301
4302 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4303
4304 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4305 * Makefile.in (sim_d10v_h): Update definition.
4306
4307 2002-05-24 Andrew Cagney <cagney@redhat.com>
4308
4309 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4310 change `2002-05-22 Michael Snyder' below.
4311 (d10v_push_arguments): Ditto.
4312 (d10v_extract_return_value): Ditto.
4313
4314 2002-05-23 Jim Blandy <jimb@redhat.com>
4315
4316 * macrotab.c (check_for_redefinition): Don't complain if the new
4317 definition is the same as the previous one. Take more arguments
4318 to allow the comparison.
4319 (macro_define_object, macro_define_function): Pass more arguments
4320 to check_for_redefinition.
4321
4322 2002-05-22 Michael Snyder <msnyder@redhat.com>
4323
4324 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4325 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4326 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4327 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4328 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4329 Add a temp variable to save a call (and a memory read).
4330 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4331 if possible (so that PC_IN_CALL_DUMMY will work).
4332
4333 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4334
4335 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4336
4337 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4338
4339 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4340 fde->cie_ptr.
4341 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4342 (dwarf2_build_frame_info): Add offset to fde->initial_location
4343 so that frames of shared libraries are mapped correctly.
4344 (execute_stack_op): Change type of 'result' from ULONGEST to
4345 CORE_ADDR.
4346
4347 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4348
4349 * config/alpha/tm-nbsd.h: Include solib.h.
4350
4351 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4352
4353 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4354 assumptions about the host's byte order.
4355
4356 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4357
4358 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4359 to dependency list.
4360 * alphanbsd-tdep.c: Include solib-svr4.h.
4361 * shnbsd-tdep.c: Ditto.
4362
4363 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4364
4365 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4366 nbsd-tdep.h to dependency list.
4367 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4368 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4369 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4370 nbsdaout.mh and nbsdelf.mh consistently.
4371 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4372 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4373 nbsdaout.mt and nbsdelf.mh consistently.
4374 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4375 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4376 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4377 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4378 a.out shared library stuff from here...
4379 * config/nm-nbsdaout.h: ...to here.
4380 * config/tm-nbsd.h: Remove.
4381 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4382 * config/arm/nbsd.mh: Remove.
4383 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4384 nbsd-tdep.o.
4385 * config/arm/nbsdaout.mh: New file.
4386 * config/arm/nbsdelf.mh: New file.
4387 * config/arm/nm-nbsdaout.h: New file.
4388 * config/i386/nbsd.mh: Remove.
4389 * config/i386/nbsd.mt: Remove.
4390 * config/i386/nbsdaout.mh: New file.
4391 * config/i386/nbsdaout.mt: New file.
4392 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4393 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4394 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4395 i386_register_u_addr): Remove.
4396 * config/i386/nm-nbsdaout.h: New file.
4397 * config/i386/nm-nbsdelf.h: Remove.
4398 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4399 (USE_STRUCT_CONVENTION): Remove.
4400 * config/i386/tm-nbsdaout.h: New file.
4401 * config/i386/tm-nbsdelf.h: Remove.
4402 * config/m68k/nbsd.mh: Remove.
4403 * config/m68k/nbsd.mt: Remove.
4404 * config/m68k/nbsdaout.mh: New file.
4405 * config/m68k/nbsdaout.mt: New file.
4406 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4407 * config/m68k/nm-nbsdaout.h: New file.
4408 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4409 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4410 * config/ns32k/nbsd.mh: Remove.
4411 * config/ns32k/nbsd.mt: Remove.
4412 * config/ns32k/nbsdaout.mh: New file.
4413 * config/ns32k/nbsdaout.mt: New file.
4414 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4415 * config/ns32k/nm-nbsdaout.h: New file.
4416 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4417 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4418 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4419 (SVR4_SHARED_LIBS): Remove.
4420 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4421 * config/sparc/nbsd.mh: Remove.
4422 * config/sparc/nbsd.mt: Remove.
4423 * config/sparc/nbsdaout.mh: New file.
4424 * config/sparc/nbsdaout.mt: New file.
4425 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4426 * config/sparc/nbsdelf.mt: New file.
4427 * config/sparc/nm-nbsdaout.h: New file.
4428 * config/sparc/nm-nbsdelf.h: Remove.
4429 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4430 * config/sparc/tm-nbsdaout.h: New file.
4431
4432 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4433
4434 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4435 mipsnbsd-tdep.c
4436 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4437
4438 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4439
4440 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4441 shnbsd-nat.c.
4442 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4443
4444 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4445
4446 * NEWS: Note new MIPS NetBSD native configuration.
4447 * configure.host (mips*-*-netbsd*): New host.
4448 * configure.tgt (mips*-*-netbsd*): New target.
4449 * mipsnbsd-nat.c: New file.
4450 * mipsnbsd-tdep.c: New file.
4451 * mipsnbsd-tdep.h: New file.
4452 * config/mips/nbsd.mh: New file.
4453 * config/mips/nbsd.mt: New file.
4454 * config/mips/nm-nbsd.h: New file.
4455 * config/mips/tm-nbsd.h: New file.
4456
4457 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4458
4459 * Makefile.in (SFILES): Add osabi.c.
4460 (COMMON_OBS): Add osabi.o.
4461 (osabi.o): New dependency list.
4462 * osabi.c: New file.
4463 * osabi.h: New file.
4464 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4465
4466 * Makefile.in (alpha_tdep_h): Define and use instead of
4467 alpha-tdep.h.
4468 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4469 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4470 Remove.
4471 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4472 * alpha-tdep.h: Include osabi.h.
4473 (alpha_abi): Remove.
4474 (gdbarch_tdep): Use generic OS ABI framework.
4475 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4476 gdbarch_register_osabi.
4477 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4478 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4479 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4480
4481 * Makefile.in (sh_tdep_h): Add osabi.h.
4482 * sh-tdep.h (sh_osabi): Remove.
4483 (gdbarch_tdep): Use generic OS ABI framework.
4484 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4485 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4486 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4487 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4488
4489 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4490 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4491 gdbarch_register_osabi.
4492 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4493 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4494 (get_elfosabi): Rename to...
4495 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4496 ABI framework support routines.
4497 (arm_gdbarch_init): Use generic OS ABI framework.
4498 (arm_dump_tdep): Likewise.
4499 (_initialize_arm_tdep): Likewise.
4500 * arm-tdep.h: Include osabi.h.
4501 (arm_abi): Remove.
4502 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4503 osabi member.
4504 (arm_gdbarch_register_os_abi): Remove prototype.
4505 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4506 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4507
4508 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4509 * mips-tdep.c: Include osabi.h.
4510 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4511 OS ABI framework.
4512
4513 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4514
4515 * h8300-tdep.c: Fix formatting.
4516
4517 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4518
4519 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4520 printing vector registers.
4521
4522 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4523
4524 From Fernando Nasser:
4525 * remote.c (remote_async_open_1): Re-throw the exception when the
4526 connection fails.
4527 (remote_cisco_open): Ditto.
4528 (remote_open_1): Ditto.
4529
4530 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4531
4532 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4533 (remote_start_remote): Add uiout parameter. Pass through to
4534 remote_start_remote_dummy.
4535 (remote_open_1): Use catch_exception instead of catch_errors.
4536 (remote_async_open_1): Ditto.
4537 (remote_cisco_open): Ditto.
4538
4539 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4540
4541 * remote.c (remote_start_remote): Replace PTR with void pointer.
4542 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4543 static.
4544
4545 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4546
4547 * gdb_indent.sh: Allow the script to be run in the sim directory.
4548
4549 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4550
4551 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4552 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4553
4554 * corelow.c (core_open): Only call set_gdbarch_from_file if
4555 exec_bfd is NULL.
4556
4557 2002-05-17 Andrey Volkov <avolkov@transas.com>
4558
4559 * h8300-tdep.c: Add support of EXR register
4560 * config/h8300/tm-h8300.h: Ditto.
4561
4562 2002-05-17 Andrey Volkov <avolkov@transas.com>
4563
4564 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4565
4566 2002-05-17 Andrey Volkov <avolkov@transas.com>
4567
4568 * h8300-tdep.c: Change literal regnums to REGNO.
4569
4570 2002-05-17 Jim Blandy <jimb@redhat.com>
4571
4572 * NEWS: Note addition of macro support.
4573
4574 Expand preprocessor macros in C expressions.
4575 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4576 (scan_macro_expansion, scanning_macro_expansion,
4577 finished_macro_expansion): New function declarations.
4578 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4579 variable declarations.
4580 * parser-defs.h (expression_context_pc): New declaration.
4581 * parse.c (expression_context_pc): New variable.
4582 (parse_exp_1): Set expression_context_pc, as well as
4583 expression_context_block.
4584 * c-exp.y (yylex): If we're not already reading the result of a
4585 macro expansion, try to macro-expand the next token. When we're
4586 done scanning a macro expansion, switch back to the mainline text.
4587 Commas and `if's in a macro's expansion don't terminate the input.
4588 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4589 (macro_original_text, macro_expanded_text,
4590 expression_macro_lookup_func, expression_macro_lookup_baton): New
4591 variables.
4592 (scan_macro_expansion, scanning_macro_expansion,
4593 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4594 c_preprocess_and_parse): New functions.
4595 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4596 c_preprocess_and_parse, instead of c_parse.
4597 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4598 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4599
4600 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4601
4602 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4603 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4604 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4605
4606 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4607
4608 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4609
4610 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4611
4612 * Makefile.in (sh_tdep_h): Define and use.
4613 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4614 register enum): Move to...
4615 * * sh-tdep.h: ...here.
4616 * sh-tdep.c: Include sh-tdep.h.
4617 * sh3-rom.c: Likewise.
4618 * shnbsd-tdep.c: Likewise.
4619
4620 2002-05-16 Michael Snyder <msnyder@redhat.com>
4621
4622 * arm-tdep.c: Spelling fix in comment.
4623
4624 2002-05-16 Jim Blandy <jimb@redhat.com>
4625
4626 Add commands for manually expanding macros and showing their
4627 definitions.
4628 * macrocmd.c, macroscope.c, macroscope.h: New files.
4629 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4630 (macroscope_h): New variable.
4631 (HFILES_NO_SRCDIR): Add macroscope.h.
4632 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4633 (macroscope.o, macrocmd.o): New rules.
4634
4635 Teach the Dwarf 2 reader to read macro information.
4636 * dwarf2read.c: #include "macrotab.h".
4637 (dwarf_macinfo_buffer): New variable.
4638 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4639 dwarf_macinfo_size.
4640 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4641 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4642 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4643 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4644 dwarf2_macro_spaces_in_definition): New complaints.
4645 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4646 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4647 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4648 the partial symbol table.
4649 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4650 from what's recorded in the partial symbol table.
4651 (read_file_scope): If the compilation unit has a
4652 `DW_AT_macro_info' attribute, read its macro information.
4653 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4654
4655 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4656
4657 Fix PR gdb/546
4658 * ser-tcp.c: Don't include <netinet/udp.h>.
4659
4660 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4661
4662 * MAINTAINERS: Update my email address.
4663
4664 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4665
4666 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4667 include file of the same name.
4668
4669 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4670
4671 * configure.tgt: Mark v850 as multi-arched.
4672 * config/v850/tm-v850.h: Remove file.
4673 * config/v850/v850.mt: Eliminate TM_FILE.
4674
4675 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4676
4677 * v850-tdep.c: Full multi-arch.
4678 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4679 Define GDB_MULTI_ARCH to 2.
4680
4681 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4682
4683 * p-exp.y (current_type): New static variable.
4684 Carries the type of the expression at the position that is parsed.
4685 (push_current_type, pop_current_type): Two new functions. Used
4686 to store/restore current_type in expression on specific tokens.
4687 (search_field): New static variable. Set to one after parsing a point
4688 as at that point only a FIELDNAME token should be searched.
4689 (FIELDNAME): New token. After a point only a token belonging to
4690 current_type type definition is allowed.
4691 (all over token rules): reset and change current_type according
4692 to rules.
4693 (exp '[' rule): insert implicit array index field if
4694 exp is a pascal string type.
4695
4696 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4697
4698 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4699 frame info. Use frame_info's saved_regs instead of matching member
4700 in extra_frame_info throughout.
4701 (v850_frame_init_saved_regs): New function.
4702 (v850_init_extra_frame_info): Move most functionality into
4703 v850_frame_init_saved_regs().
4704 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4705 (v850_frame_find_saved_regs): Remove declaration.
4706 (FRAME_FIND_SAVED_REGS): Remove definition.
4707 (v850_frame_init_saved_regs): Add declaration.
4708 (FRAME_INIT_SAVED_REGS): Add definition.
4709
4710 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4711
4712 * v850-tdep.c: Begin multi-arch'ing v850.
4713 (v850_target_architecture_hook): Remove function.
4714 (v850_gdbarch_init): New function. Add code previously in
4715 v850_target_architecture_hook().
4716 (_initialize_v850_tdep): Don't set target_architecture_hook.
4717 Call register_gdbarch_init() instead.
4718
4719 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4720
4721 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4722 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4723 (fixup_class_method_type): Likewise.
4724
4725 2002-05-15 Jim Blandy <jimb@redhat.com>
4726
4727 Add macro structures to GDB's symbol tables. Nobody puts anything
4728 in them yet.
4729 * symtab.h (struct symtab): New member: `macro_table'.
4730 * buildsym.h (pending_macros): New global variable.
4731 * buildsym.c: #include "macrotab.h".
4732 (buildsym_init): Initialize `pending_macros'.
4733 (end_symtab): If we found macro information while reading a CU's
4734 debugging info, do build a symtab structure for it. Make the
4735 symtab point to the macro information, and clear the
4736 `pending_macros' pointer which held it while we were reading the
4737 debug info.
4738 (really_free_pendings): Free any pending macro table.
4739 * objfiles.h (struct objfile): New member: `macro_cache'.
4740 * objfiles.c (allocate_objfile): Set allocate and free functions
4741 for the macro cache's objstack.
4742 (free_objfile): Empty the macro cache's obstack.
4743 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4744 set new allocate and free functions for it.
4745 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4746 free functions for the macro cache's objstack. (Why is this
4747 function building its own objfile?)
4748 * symmisc.c (print_objfile_statistics): Print statistics on the
4749 macro bcache.
4750 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4751
4752 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4753
4754 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4755 (REGISTER_U_ADDR): Delete definition.
4756 (arm_register_u_addr): Delete declaration.
4757
4758 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4759
4760 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4761 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4762
4763 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4764
4765 * regcache.c (register_valid): Revise comments refering to "Not
4766 available" and "unavailable".
4767 * frame.c (frame_register_read): Ditto.
4768 * findvar.c (value_of_register): Ditto.
4769
4770 2002-05-15 Andrew Cagney <cagney@redhat.com>
4771
4772 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4773 (remote-sim.o): Update dependencies.
4774 (d10v-tdep.o): Specify dependencies.
4775 (sim_d10v_h): Define.
4776
4777 2002-05-14 Jim Blandy <jimb@redhat.com>
4778
4779 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4780 * macrotab.c (macro_lookup_inclusion, find_definition,
4781 new_macro_table): Same.
4782
4783 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4784 not `! strcmp ()'. This is a dubious improvement.
4785 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4786
4787 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4788 although it's not necessary, to avoid a warning.
4789
4790 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4791
4792 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4793 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4794 TYPE_INSTANCE_FLAGS.
4795 (struct main_type): New.
4796 (struct type): Move most members to struct main_type. Change
4797 cv_type and as_type to new type_chain member. Add instance_flags.
4798 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4799 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4800 (finish_cv_type): Remove prototype.
4801 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4802 Set TYPE_CHAIN.
4803 (alloc_type_instance): New function.
4804 (smash_type): New function.
4805 (make_pointer_type, make_reference_type, make_function_type)
4806 (smash_to_member_type, smash_to_method_type): Call smash_type.
4807 (make_qualified_type): New function.
4808 (make_type_with_address_space): Call make_qualified_type.
4809 (make_cv_type): Likewise.
4810 (finish_cv_type): Remove unnecessary function.
4811 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4812 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4813 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4814 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4815 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4816 * hpread.c (hpread_read_struct_type): Likewise.
4817 * stabsread.c (read_struct_type): Likewise.
4818
4819 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4820
4821 * configure.tgt: Add a catch all sh* target, for cases like
4822 sh[2,3,4]-elf and sh-hms.
4823
4824 2002-05-14 Keith Seitz <keiths@redhat.com>
4825
4826 * event-loop.c (create_file_handler): Don't do anything but
4827 update data when we are given a fd which we are already
4828 monitoring.
4829
4830 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4831
4832 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4833 (update_context): Use __func__ in warnings.
4834
4835 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4836
4837 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4838 and tcp_close to net_open and net_close.
4839 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4840 using UDP if requested. Don't try to disable Nagle on UDP
4841 sockets.
4842 * remote.c (remote_serial_open): New function. Warn about UDP.
4843 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4844
4845 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4846
4847 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4848
4849 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4850
4851 * configure.tgt: Remove sh-hms target.
4852 * MAINTAINERS: Don't list sh-hms as a separate target.
4853
4854 2002-05-13 Jim Blandy <jimb@redhat.com>
4855
4856 Add first preprocessor macro-expansion files.
4857 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4858 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4859 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4860 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4861 (COMMON_OBS): Add macrotab.o, macroexp.o.
4862 (macroexp.o, macrotab.o): New rules.
4863
4864 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4865
4866 * config/m88k/tm-m88k.h: Update copyright.
4867 (m88k_target_write_pc): Declare
4868 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4869 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4870 (SHIFT_INST_REGS): Update definition.
4871 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4872 using old definition of TARGET_WRITE_PC.
4873 * regcache.c (generic_target_write_pc): Delete code handling
4874 NNPC_REGNUM.
4875 * gdbarch.sh (NNPC_REGNUM): Delete.
4876 * gdbarch.h, gdbarch.c: Regenerate.
4877
4878 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4879
4880 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4881 builtin reg number.
4882
4883 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4884
4885 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4886 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4887 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4888 access macros.
4889 * c-typeprint.c (cp_type_print_method_args): Likewise.
4890 (c_type_print_args): Likewise.
4891 * d10v-tdep.c (d10v_push_arguments): Likewise.
4892 (d10v_extract_return_value): Likewise.
4893 * expprint.c (print_subexp): Likewise.
4894 * gdbtypes.c (lookup_primitive_typename): Likewise.
4895 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4896 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4897 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4898 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4899 (TYPE_VECTOR): Likewise.
4900 * hpread.c (hpread_read_struct_type)
4901 (fix_static_member_physnames, fixup_class_method_type)
4902 (hpread_type_lookup): Likewise.
4903 * mdebugread.c (parse_symbol, parse_type): Likewise.
4904 * p-lang.c (is_pascal_string_type): Likewise.
4905 * valops.c (hand_function_call): Likewise.
4906 * x86-64-tdep.c (classify_argument): Likewise.
4907
4908 * hpread.c (hpread_read_function_type)
4909 (hpread_read_doc_function_type): Call replace_type.
4910 * dstread.c (create_new_type): Delete.
4911 (decode_dst_structure, process_dst_function): Call alloc_type.
4912 Use type access macros.
4913
4914 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4915
4916 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4917 the're not supported by the current architecture.
4918 (i387_fill_fxsave): Likewise.
4919
4920 2002-05-12 Fred Fish <fnf@redhat.com>
4921
4922 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4923 sect_index_xxx members to index the first slot in section_offsets
4924 if all of the section_offsets are zero.
4925
4926 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4927
4928 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4929 checked in with last change.
4930
4931 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4932
4933 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4934 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4935 config.sub.
4936
4937 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4938
4939 * Makefile.in: Update dependencies.
4940
4941 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4942
4943 * language.c (local_hex_string_custom): Simplify. Do not depend
4944 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4945
4946 * memattr.c (mem_info_command): Replace calls to
4947 longest_local_hex_string and longest_local_hex_string_custom.
4948 * buildsym.c (make_blockvector): Ditto.
4949 * solib.c (info_sharedlibrary_command): Ditto.
4950 * tracepoint.c (tracepoints_info): Ditto.
4951 * symtab.c (print_msymbol_info): Ditto.
4952
4953 * language.c (local_hex_string): Delete.
4954 (local_hex_string_custom): Delete.
4955 (longest_local_hex_string): Rename to local_hex_string.
4956 (longest_local_hex_string_custom): Rename to
4957 local_hex_string_custom.
4958 * language.h (local_hex_string): Change parameter type to LONGEST.
4959 (local_hex_string_custom): Ditto.
4960 (longest_local_hex_string): Delete declaration.
4961 (longest_local_hex_string_custom): Ditto.
4962
4963 * solib.c: Update copyright.
4964 * memattr.c: Update copyright.
4965
4966 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4967
4968 * arch-utils.h (legacy_register_to_value): Declare.
4969 (legacy_value_to_register): Declare.
4970 (legacy_convert_register_p): Declare.
4971 * arch-utils.c (legacy_register_to_value): New function.
4972 (legacy_value_to_register): New function.
4973 (legacy_convert_register_p): New function.
4974
4975 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4976 (VALUE_TO_REGISTER): Define.
4977 (CONVERT_REGISTER_P): Define.
4978 * gdbarch.h, gdbarch.c: Regenerate.
4979
4980 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4981 VALUE_TO_REGISTER.
4982 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4983 CONVERT_REGISTER_P.
4984
4985 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4986 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4987
4988 * Makefile.in: Update dependencies for valops.c.
4989 * valops.c: Include "gdb_assert.h".
4990 (typecmp): Skip THIS parameter to methods.
4991 (find_method_list): Remove static_memfuncp argument,
4992 update callers. Check for stub methods.
4993 (find_value_oload_method_list): Don't set *static_memfuncp.
4994 (find_overload_match): Don't check for stub methods. Assert
4995 that methods are not stubbed. Handle static methods.
4996 (value_find_oload_method_list): Remove static_memfuncp argument.
4997 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4998 to the argument list for static stub methods.
4999 * value.h (value_find_oload_method_list): Update prototype.
5000
5001 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5002
5003 * arch-utils.h (generic_register_size): Declare.
5004 (generic_register_raw_size, generic_register_virtual_size): Delete
5005 declarations.
5006 * arch-utils.c (generic_register_raw_size): Delete.
5007 (generic_register_size): New function.
5008 (generic_register_virtual_size): Delete.
5009
5010 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5011 default generic_register_size.
5012 * gdbarch.h, gdbarch.c: Re-generate.
5013
5014 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5015 register_virtual_size.
5016 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5017 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5018
5019 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5020
5021 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5022 * gdbarch.h, gdbarch.c: Regenerate.
5023 * gnu-v3-abi.c: Update copyright.
5024 (vtable_address_point_offset): Update.
5025 (gnuv3_rtti_type): Update.
5026 (gnuv3_baseclass_offset): Update.
5027 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5028 (init_fetch_link_map_offsets): Update.
5029 * remote.c (get_remote_state): Update.
5030
5031 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5032
5033 * TODO: Remove value_headof/value_from_vtable_info comment.
5034 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5035 * values.c (value_headof, value_from_vtable_info): Delete.
5036 * value.h (value_from_vtable_info): Delete prototype.
5037
5038 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5039
5040 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5041 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5042 $(gdb_regex_h).
5043 (gdb_assert_h): Define.
5044 (gdb_wait_h): Define.
5045 (gdb_regex_h): Define.
5046
5047 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5048
5049 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5050 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5051
5052 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5053
5054 * nbsd-tdep.c: Fix comment.
5055
5056 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5057
5058 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5059 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5060 (nbsd-tdep.o): New dependency list.
5061 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5062 nbsd-tdep.h.
5063 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5064 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5065 * nbsd-tdep.c: New file.
5066 * nbsd-tdep.h: New file.
5067 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5068 nbsd-tdep.h.
5069 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5070 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5071 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5072 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5073
5074 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5075
5076 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5077 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5078 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5079 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5080 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5081 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5082
5083 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5084
5085 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5086 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5087 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5088 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5089 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5090 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5091 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5092
5093 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5094
5095 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5096 fetch_elfcore_registers to...
5097 * i386nbsd-tdep.c: ...here.
5098 (i386nbsd_use_struct_convention): Rename to...
5099 (i386nbsd_aout_use_struct_convention): ...this.
5100 (i386nbsd_supply_reg): New function.
5101 (i386nbsd_fill_reg): New function.
5102 (fetch_core_registers): Use i386nbsd_supply_reg.
5103 (fetch_elfcore_registers): Likewise.
5104 (_initialize_i386nbsd_tdep): New function.
5105 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5106 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5107 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5108 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5109 (i386nbsd_aout_use_struct_convention): ...this.
5110
5111 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5112
5113 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5114 (store_inferior_registers): Use shnbsd_fill_reg.
5115 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5116 sh_nbsd_supply_register): Collapse into...
5117 (shnbsd_supply_reg): ...this.
5118 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5119 (shnbsd_fill_reg): ...this.
5120 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5121 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5122 (fetch_core_registers): Use shnbsd_supply_reg.
5123 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5124 (sh_nbsd_core_fns): Rename to...
5125 (shnbsd_core_fns): ...this.
5126 (sh_nbsd_elfcore_fns): Rename to...
5127 (shnbsd_elfcore_fns): ...this.
5128 (sh_nbsd_init_abi): Rename to...
5129 (shnbsd_init_abi): ...this.
5130 (_initialize_sh_nbsd_tdep): Rename to...
5131 (_initialize_shnbsd_tdep): ...this.
5132 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5133 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5134 sh_nbsd_fill_register): Remove prototypes.
5135 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5136
5137 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5138
5139 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5140 (i387-nat.o): Delete dependency list.
5141 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5142 (x86-64-linux-nat.o): Likewise.
5143 * i387-nat.c: Delete file, moving contents to...
5144 * i387-tdep.c: ...here.
5145 * i387-nat.h: Rename...
5146 * i387-tdep.h: ...to this.
5147 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5148 * i386-linux-nat.c: Likewise.
5149 * i386bsd-nat.c: Likewise.
5150 * i386gnu-nat.c: Likewise.
5151 * i386nbsd-nat.c: Likewise.
5152 * i386v4-nat.c: Likewise.
5153 * x86-64-linux-nat.c: Likewise.
5154 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5155 * config/i386/go32.mh (NATDEPFILES): Likewise.
5156 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5157 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5158 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5159 * config/i386/linux.mh (NATDEPFILES): Likewise.
5160 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5161 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5162 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5163 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5164
5165 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5166
5167 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5168 (alphanbsd-nat.o): Remove dependency list.
5169 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5170 * alphanbsd-nat.c: Delete. Contents moved to...
5171 * alphanbsd-tdep.c: ...here.
5172 (_initialize_alphanbsd_tdep): Register core functions.
5173 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5174
5175 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5176
5177 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5178 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5179 (alphanbsd-nat.o): Likewise.
5180 (alphabsd-tdep.o): New dependency list.
5181 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5182 (fill_gregset): Use alphabsd_fill_reg.
5183 (supply_fpregset): Use alphabsd_supply_fpreg.
5184 (fill_fpregset): Use alphabsd_fill_fpreg.
5185 (fetch_inferior_registers): Use struct reg and struct fpreg
5186 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5187 and alphabsd_supply_fpreg.
5188 (store_inferior_registers): Use struct reg and struct fpreg
5189 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5190 and alphabsd_fill_fpreg.
5191 * alphabsd-tdep.c: New file.
5192 * alphabsd-tdep.h: New file.
5193 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5194 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5195 alphabsd_supply_fpreg.
5196 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5197 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5198
5199 2002-05-11 Eric Christopher <echristo@redhat.com>
5200
5201 * mips-tdep.c (mips_double_register_type): Fix thinko.
5202 (mips_single_register_type): Ditto.
5203 * MAINTAINERS: Add self.
5204
5205 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5206
5207 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5208 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5209 right thing on architectures with different endianness and/or
5210 integer sizes.
5211
5212 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5213
5214 From Christian Limpach <chris@Pin.LU>
5215 * configure.in: Change sed expression which comments out
5216 NATDEPFILES to also comment out continuation lines.
5217 * configure: Regenerate.
5218
5219 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5220
5221 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5222 big patch.
5223
5224 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5225
5226 * sh-tdep.c: Include correct file.
5227
5228 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5229
5230 New support for sh64-elf (sh5) target.
5231
5232 * configure.tgt: For sh64-elf target, default to sh-elf.
5233
5234 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5235 (struct gdbarch_tdep): Add new fields for new registers and ABI
5236 info.
5237
5238 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5239 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5240 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5241 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5242 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5243 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5244 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5245 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5246 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5247 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5248 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5249 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5250 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5251 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5252 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5253 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5254 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5255 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5256 sign_extend, sh64_nofp_frame_init_saved_regs,
5257 sh64_init_extra_frame_info, sh64_get_saved_register,
5258 sh64_extract_struct_value_address, sh64_pop_frame,
5259 sh64_push_arguments, sh64_extract_return_value,
5260 sh64_store_return_value, sh64_show_media_regs,
5261 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5262 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5263 sh_sh64_register_virtual_type,
5264 sh_sh64_register_convert_to_virtual,
5265 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5266 sh64_register_read, sh64_pseudo_register_write,
5267 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5268 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5269 sh64_do_pseudo_register, sh_compact_do_registers_info,
5270 sh64_do_registers_info, sh_gdbarch_init): New functions.
5271
5272 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5273
5274 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5275
5276 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5277
5278 * linespec.c (decode_line_1): Check for a double quote after
5279 a filename correctly.
5280
5281 2002-05-10 Jim Blandy <jimb@redhat.com>
5282
5283 Properly track the size of the current objfile's .debug_line section.
5284 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5285 (DWARF_LINE_SIZE): New macro.
5286 (dwarf2_build_psymtabs_hard): Record the line section's size in
5287 the partial symbol table.
5288 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5289 symbol table.
5290
5291 2002-05-10 Petr Sorfa <petrs@caldera.com>
5292
5293 * ia64-tdep.c: Handle breakpoints on L instruction type
5294 in MLX instruction bundle by moving the breakpoint to
5295 the third slot (X instruction type) as L holds only data.
5296
5297 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5298
5299 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5300 (process_one_symbol): Complain about discarding local symbols
5301 due to a misplaced N_LBRAC entry.
5302
5303 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5304
5305 From Daniel Berlin <dan@cgsoftware.com>
5306 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5307 decrease the depth we are at, in the case of templates.
5308
5309 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5310
5311 * mips-tdep.c (mips_float_register_type): New function.
5312 (mips_double_register_type): New function.
5313 (mips_print_register): Use them.
5314 (do_fp_register_row): Likewise.
5315
5316 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5317
5318 * signals/signals.c (signals): Remove conditional compilation around
5319 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5320 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5321
5322 2002-05-09 Michael Snyder <msnyder@redhat.com>
5323
5324 * remote-rdp.c (remote_rdp_can_run): Remove.
5325
5326 2002-05-09 Tom Tromey <tromey@redhat.com>
5327
5328 * jv-valprint.c (java_val_print): Handle `char' as a special case
5329 of TYPE_CODE_INT.
5330
5331 2002-05-09 Michael Snyder <msnyder@redhat.com>
5332
5333 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5334 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5335 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5336 str r(0123),[sp,#nn].
5337 (arm_skip_prologue): Ditto. Also make disassembly
5338 order-independent by placing it in a loop.
5339
5340 2002-05-06 Michael Snyder <msnyder@redhat.com>
5341
5342 * stabsread.c (read_type): Add recognition for new attribute:
5343 "@V;" means that an array type is actually a vector.
5344 This is analogous to the vector flag that's been added to dwarf2.
5345
5346 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5347
5348 * i386-tdep.h (i386_abi): New enum.
5349 (struct gdbarch_tdep): Replace os_ident member with abi.
5350 (i386_gdbarch_register_os_abi): New prototype.
5351 * i386-tdep.c (i386_abi_names): New array.
5352 (process_note_abi_tag_sections): Removed.
5353 (process_note_sections): New function.
5354 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5355 (struct i386_abi_handler): New struct.
5356 (i386_abi_handler_list): New variable.
5357 (i386_gdbarch_register_os_abi): New function.
5358 (i386_gdbarch_init): Adapt for the changes given above.
5359
5360 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5361
5362 * gregset.h: Say "GNU/Linux".
5363
5364 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5365
5366 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5367 (build_gdbtypes): Build builtin_type_v2_float.
5368 (_initialize_gdbtypes): Register new builtin type.
5369
5370 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5371
5372 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5373 (clear_gdbarch_swap): New function.
5374 (initialize_non_multiarch): Call.
5375 (gdbarch_update_p): Before calling init(), swap out and clear the
5376 existing architecture.
5377 * gdbarch.c: Regenerate.
5378
5379 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5380
5381 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5382 alphanbsd-tdep.c.
5383
5384 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5385
5386 * sh-nbsd-nat.c: Rename to...
5387 * shnbsd-nat.c: ...this.
5388 * sh-nbsd-tdep.c: Rename to...
5389 * shnbsd-tdep.c: ...this.
5390 * sh-nbsd-tdep.h: Rename to...
5391 * shnbsd-tdep.h: ...this.
5392 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5393 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5394
5395 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5396
5397 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5398 concatenation for command help messages.
5399
5400 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5401
5402 * NEWS: Note new sh*-*-netbsdelf* configuration.
5403 * configure.host: Set gdb_host_cpu to sh for all sh*.
5404 (sh*-*-netbsdelf*): New host.
5405 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5406 (sh*-*-netbsdelf*): New target.
5407 * sh-nbsd-nat.c: New file.
5408 * sh-nbsd-tdep.c: New file.
5409 * sh-nbsd-tdep.h: New file.
5410 * config/sh/nbsd.mh: New file.
5411 * config/sh/nbsd.mt: New file.
5412 * config/sh/nm-nbsd.h: New file.
5413 * config/sh/tm-nbsd.h: New file.
5414
5415 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5416
5417 * sh-tdep.c (sh_osabi_names): Declare.
5418 (process_note_abi_tag_sections): New function.
5419 (get_elfosabi): Ditto.
5420 (sh_gdbarch_register_os_abi): Ditto.
5421 (sh_dump_tdep): Ditto.
5422 _initialize_sh_tdep): Use gdbarch_register to register
5423 sh_gdbarch_init and sh_dump_tdep.
5424 * config/sh/tm-sh.h (sh_osabi): Declare.
5425 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5426
5427 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5428
5429 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5430 (thumb_scan_prologue): Ditto.
5431 (arm_find_callers_reg): Ditto.
5432 (arm_frame_chain): Ditto.
5433 (arm_init_extra_frame_info): Ditto.
5434 (arm_frame_saved_pc): Ditto.
5435 (arm_pop_frame): Ditto.
5436 (arm_push_return_address): New function.
5437 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5438 call_dummy_location, call_dummy_breakpoint_offset_p,
5439 call_dummy_breakpoint_offset, call_dummy_p,
5440 call_dummy_stack_adjust_p, call_dummy_words,
5441 sizeof_call_dummy_words, call_dummy_start_offset,
5442 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5443 call_dummy_address, push_return_address and push_dummy_frame for
5444 generic dummy frames.
5445
5446 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5447
5448 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5449 size computation for alloca.
5450 (sh_fp_frame_init_saved_regs): Likewise.
5451
5452 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5453
5454 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5455 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5456 * arm-tdep.c (arm_store_return_value): Use them.
5457 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5458 * remote-rdp.c (remote_rdp_fetch_register): Use
5459 ARM_MAX_REGISTER_RAW_SIZE.
5460 (remote_rdp_store_register): Likewise.
5461
5462 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5463
5464 * dwarf2cfi.c: Code cleanup, removed unused variables,
5465 added default labels to switch {} statements.
5466 * x86-64-tdep.c: Ditto.
5467 * x86-64-linux-nat.c: Ditto.
5468
5469 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5470
5471 * solib.h: Protect against multiple inclusion.
5472
5473 2002-05-06 Jim Blandy <jimb@redhat.com>
5474
5475 Add first preprocessor macro-expansion files.
5476 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5477 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5478 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5479 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5480 (COMMON_OBS): Add macrotab.o, macroexp.o.
5481 (macroexp.o, macrotab.o): New rules.
5482
5483 Separate the job of reading the line number info statement program
5484 header (...expialidocious) out into its own function.
5485 * dwarf2read.c (struct line_head, struct filenames, struct
5486 directories): Replace with...
5487 (struct line_header): New structure, containing the full
5488 contents of the statement program header, including the
5489 include directory and file name tables.
5490 (read_file_scope): If we have line number info, instead of just
5491 calling dwarf_decode_lines to do all the work, call
5492 dwarf_decode_line_header first to get a `struct line_header'
5493 containing the data in the statement program header, and then
5494 pass that to dwarf_decode_lines, which will pick up where that
5495 left off. Be sure to clean up the `struct line_header' object.
5496 (dwarf_decode_line_header, free_line_header, add_include_dir,
5497 add_file_name): New functions.
5498 (dwarf_decode_lines): Move all the code to read the statement
5499 program header into dwarf_decode_line_header. Take the line
5500 header it built as the first argument, instead of the offset to
5501 the compilation unit's line number info. Use the new `struct
5502 line_header' type instead of the old structures. No need to do
5503 cleanups here now, since we don't allocate anything.
5504 (dwarf2_statement_list_fits_in_line_number_section,
5505 dwarf2_line_header_too_long): New complaints.
5506
5507 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5508
5509 * gdbtypes.c (init_vector_type): New function.
5510 (build_builtin_type_vec128): Simplify the representation of SIMD
5511 registers.
5512 (build_gdbtypes): Initialize new builtin vector types.
5513 (_initialize_gdbtypes): Register new vector types with gdbarch.
5514 (builtin_type_v4_float, builtin_type_v4_int32,
5515 builtin_type_v8_int16, builtin_type_v16_int8,
5516 builtin_type_v2_int32, builtin_type_v4_int16,
5517 builtin_type_v8_int8): New (renamed) SIMD types.
5518
5519 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5520
5521 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5522 (i387_fill_fxsave): Likewise.
5523
5524 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5525
5526 * alpha-tdep.c (alpha_extract_return_value): Don't use
5527 non-constant array size in prototype.
5528
5529 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5530
5531 From Brian Taylor <briant at model dot com>:
5532 * ui-out.c (ui_out_field_core_addr): Use the function
5533 longest_local_hex_string_custom'to format addresses > 32 bits
5534 wide.
5535
5536 * ui-out.c (ui_out_field_core_addr): Update comment.
5537
5538 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5539
5540 * stack.c (select_and_print_frame): Make static. Delete the
5541 parameter `level'.
5542 (func_command): Update call.
5543 (select_frame_command): Delete code computing the frame level.
5544 * frame.h (select_and_print_frame): Delete declaration.
5545
5546 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5547
5548 * sparc-tdep.c (sparc_get_saved_register): Comment why
5549 get_prev_frame call is safe.
5550
5551 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5552
5553 * frame.h (select_frame): Delete level parameter.
5554 * stack.c (select_frame): Update. Use frame_relative_level to
5555 obtain the frame's level.
5556 (select_and_print_frame): Update call.
5557 (select_frame_command): Ditto.
5558 (up_silently_base): Ditto.
5559 (down_silently_base): Ditto.
5560 * ocd.c (ocd_start_remote): Ditto.
5561 * remote-rdp.c (remote_rdp_open): Ditto.
5562 * remote-mips.c (mips_initialize): Ditto.
5563 (common_open): Ditto.
5564 * remote-e7000.c (e7000_start_remote): Ditto.
5565 * m3-nat.c (select_thread): Ditto.
5566 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5567 (child_get_current_exception_event): Ditto.
5568 * varobj.c (varobj_create): Ditto.
5569 (varobj_update): Ditto.
5570 (c_value_of_root): Ditto.
5571 * tracepoint.c (finish_tfind_command): Ditto.
5572 * corelow.c (core_open): Ditto.
5573 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5574 * thread.c (info_threads_command): Ditto.
5575 (switch_to_thread): Ditto.
5576 * infrun.c (normal_stop): Ditto.
5577 (restore_selected_frame): Ditto.
5578 (restore_inferior_status): Ditto.
5579 * breakpoint.c (insert_breakpoints): Ditto.
5580 (watchpoint_check): Ditto.
5581 (bpstat_stop_status): Ditto.
5582 (do_enable_breakpoint): Ditto.
5583 * blockframe.c (flush_cached_frames): Ditto.
5584 (reinit_frame_cache): Ditto.
5585
5586 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5587
5588 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5589 maintainer.
5590
5591 2002-05-04 Jim Blandy <jimb@redhat.com>
5592
5593 * gdbtypes.c (replace_type): Doc fix.
5594
5595 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5596
5597 * valprint.c (strcat_longest): Delete commented out function.
5598 Update copyright.
5599
5600 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5601
5602 * MAINTAINERS: Mark a29k as deleted.
5603 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5604 Move new configurations to the top.
5605 * configure.tgt: Remove a29k.
5606 * config/a29k/tm-vx29k.h: Delete.
5607 * config/a29k/vx29k.mt: Delete.
5608 * config/a29k/tm-a29k.h: Delete.
5609 * config/a29k/a29k-udi.mt: Delete.
5610 * config/a29k/a29k.mt: Delete.
5611 * a29k-tdep.c: Delete.
5612 * remote-udi.c: Delete.
5613 * remote-mm.c: Delete.
5614 * remote-eb.c: Delete.
5615 * remote-adapt.c: Delete.
5616 * Makefile.in: Remove obsolete code.
5617 * config/s390/s390x.mt: Ditto.
5618 * config/s390/s390.mt: Ditto.
5619 * config/sparc/sparclynx.mh: Ditto.
5620 * config/sparc/linux.mh: Ditto.
5621 * config/pa/hppaosf.mh: Ditto.
5622 * config/pa/hppabsd.mh: Ditto.
5623 * config/ns32k/nbsd.mt: Ditto.
5624 * config/mips/vr5000.mt: Ditto.
5625 * config/m68k/sun3os4.mh: Ditto.
5626 * config/m68k/nbsd.mt: Ditto.
5627 * config/m68k/m68klynx.mh: Ditto.
5628 * config/m32r/m32r.mt: Ditto.
5629 * config/i386/x86-64linux.mt: Ditto.
5630 * config/i386/nbsdelf.mt: Ditto.
5631 * config/i386/nbsd.mt: Ditto.
5632 * config/i386/i386lynx.mh: Ditto.
5633
5634 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5635
5636 * target.c (debug_print_register): New function. Handle oversize
5637 registers.
5638 (debug_to_fetch_registers): Call.
5639 (debug_to_store_registers): Call.
5640
5641 2002-05-03 Jim Blandy <jimb@redhat.com>
5642
5643 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5644 (read_type): Doc fix.
5645 * gdbtypes.c (replace_type): Doc fix.
5646
5647 * stabsread.c (multiply_defined_struct): New complaint.
5648 (read_struct_type): If the type we were passed isn't empty, or
5649 incomplete, don't read the new struct type into it; complain,
5650 and return the original type unchanged. Take a new `type_code'
5651 argument, which is the type code for the new type.
5652 (read_type): Rather than storing the type's type code here, pass
5653 it as an argument to read_struct_type, and let that take care of
5654 storing it. That way, we don't overwrite the original type code,
5655 so read_struct_type can use it to decide whether we're overwriting
5656 something we shouldn't.
5657 (complain_about_struct_wipeout): New function.
5658
5659 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5660
5661 * gdbarch.sh: Assert that gdbarch is non-NULL.
5662 * gdbarch.c: Regenerate.
5663
5664 2002-05-03 Jason Merrill <jason@redhat.com>
5665
5666 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5667 and return NULL.
5668
5669 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5670
5671 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5672 (x86_64_dwarf2gdb_regno_map_length),
5673 (x86_64_dwarf2_reg_to_regnum): Added.
5674 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5675 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5676 (_initialize_x86_64_tdep): Synced with the change above.
5677 (x86_64_skip_prologue): Reformulated message.
5678
5679 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5680
5681 * f-exp.y: Also use new prev_lexptr variable
5682 to improve error reporting. Based on Michael Snyder
5683 2002-04-24 dated patch to c-exp.y.
5684 * jv-exp.y: Likewise.
5685 * m2-exp.y: Likewise.
5686
5687 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5688
5689 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5690 we are dealing with vectors.
5691
5692 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5693
5694 * config/m68k/tm-nbsd.h: Obvious fix,
5695 correct machine name.
5696
5697 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5698
5699 * p-typeprint.c (pascal_type_print_base): Add support
5700 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5701
5702 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5703
5704 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5705 for fondamental pascal 'char' type.
5706
5707 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5708
5709 * p-lang.h (is_pascal_string_type): Declaration changed,
5710 new sixth argument of type char ** added.
5711 * p-lang.c (is_pascal_string_type): Implementation
5712 changed. Args length_pos, length_size, string_pos, char_size
5713 can now be NULL. New argument arrayname set to the field
5714 name of the char array. Return value set to char array
5715 field index plus one.
5716 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5717 is_pascal_string_type function.
5718
5719 2002-05-02 Andrew Cagney <cagney@redhat.com>
5720
5721 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5722 <cagney@redhat.com> change.
5723 * gdbarch.c: Regenerate.
5724
5725 2002-05-02 Andrew Cagney <cagney@redhat.com>
5726
5727 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5728 before probing for a new one. Detect errorenous gdbarch_init
5729 functions.
5730 * gdbarch.c: Regenerate.
5731
5732 2002-05-01 Andrew Cagney <cagney@redhat.com>
5733
5734 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5735 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5736 * config/v850/tm-v850.h: Ditto. Update copyright.
5737
5738 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5739
5740 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5741 current_gdbarch.
5742
5743 2002-04-30 Michael Snyder <msnyder@redhat.com>
5744
5745 * arm-tdep.c: Whitespace clean-ups.
5746 (arm_skip_prologue): Fix thinko; two lines
5747 should have been removed as part of 4/24 change.
5748
5749 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5750
5751 * rs6000-tdep.c: Added comment describing how fpscr register
5752 numbers were chosen.
5753
5754 2002-04-30 Michael Snyder <msnyder@redhat.com>
5755
5756 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5757
5758 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5759
5760 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5761 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5762 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5763
5764 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5765
5766 From Louis Hamilton <hamilton@redhat.com>:
5767 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5768 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5769 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5770 not bfd-private xcoff data, to determine wordsize.
5771 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5772
5773 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5774
5775 GDB 5.2 released from 5.2 branch.
5776
5777 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5778
5779 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5780 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5781 (x86_64_register_info_table): Added comments with register numbers.
5782
5783 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5784
5785 * rs6000-tdep.c (rs6000_extract_return_value,
5786 rs6000_store_return_value): Handle returning vectors.
5787 (rs6000_gdbarch_init): Use
5788 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5789 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5790 New function.
5791 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5792 vectors.
5793 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5794 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5795
5796 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5797
5798 * hpread.c (hpread_psymtab_to_symtab_1,
5799 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5800 with fprintf_unfiltered (gdb_stderr,...).
5801
5802 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5803
5804 * remote-array.c (printf_monitor, write_monitor,
5805 array_insert_breakpoint, array_remove_breakpoint ):
5806 Replace fprintf (stderr,...
5807 with fprintf_unfiltered (gdb_stderr,....
5808 * remote-es.c: Likewise.
5809 * remote-os9k.c: Likewise.
5810 * remote-st.c: Likewise.
5811
5812 2002-04-28 Andreas Schwab <schwab@suse.de>
5813
5814 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5815 linux-proc.o and gcore.o.
5816
5817 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5818
5819 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5820 code without frame pointers.
5821
5822 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5823
5824 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5825 ON_STACK is needed.
5826
5827 2002-04-26 Ben Elliston <bje@redhat.com>
5828
5829 * target.c (do_xfer_memory): Correct reference to the new option
5830 "trust-readonly-sections".
5831
5832 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5833
5834 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5835 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5836 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5837 vectors.
5838 (read_array_type): Record the fact that this array type is really a
5839 vector (i.e. are passed in by value).
5840
5841 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5842
5843 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5844 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5845 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5846 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5847 * alpha-linux-tdep.c: Include frame.h.
5848 (alpha_linux_sigcontext_addr): New function.
5849 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5850 alpha_linux_sigcontext_addr.
5851 * alpha-osf1-tdep.c: Include gdbcore.h.
5852 (alpha_osf1_sigcontext_addr): New function.
5853 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5854 alpha_osf1_sigcontext_addr.
5855 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5856 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5857
5858 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5859
5860 * stack.c (selected_frame_level):
5861 (select_frame): Do not set selected_frame_level.
5862 * frame.h (selected_frame_level): Delete declaration.
5863
5864 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5865
5866 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5867 convert_from_func_ptr-addr when AIX / PowerOpen.
5868
5869 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5870
5871 * valops.c (hand_function_call): Call
5872 generic_save_call_dummy_addr.
5873 * frame.h (generic_save_call_dummy_addr): Declare.
5874 * blockframe.c (struct dummy_frame): Add fields call_lo and
5875 call_hi.
5876 (generic_find_dummy_frame): Check for PC in range call_lo to
5877 call_hi instead of entry_point_address.
5878 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5879 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5880 (generic_save_call_dummy_addr): New function.
5881
5882 2002-04-24 David S. Miller <davem@redhat.com>
5883
5884 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5885 sparc_skip_prologue.
5886 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5887 information to find prologue when possible.
5888 (sparc_prologue_frameless_p): Call examine_prologue directly.
5889 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5890 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5891 second argument.
5892 (SKIP_PROLOGUE): Likewise.
5893
5894 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5895
5896 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5897 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5898 indicate that the condition it was testing is always true.
5899 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5900 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5901 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5902
5903 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5904
5905 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5906 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5907 tdep->jb_pc and tdep->jb_elt_size.
5908 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5909 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5910 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5911 * alpha-nat.c (get_longjmp_target): Remove.
5912 (JB_ELEMENT_SIZE): Ditto.
5913 (JB_PC): Ditto.
5914 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5915 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5916 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5917 to alpha_get_longjmp_target.
5918 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5919 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5920 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5921
5922 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5923
5924 * README: Update to GDB 5.2.
5925
5926 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5927
5928 * gdbarch.sh (LC_ALL): Set to `c'.
5929
5930 2002-04-25 Theodore A. Roth <troth@verinet.com>
5931
5932 * avr-tdep.c: Ran through gdb_indent.sh.
5933
5934 2002-04-25 Theodore A. Roth <troth@verinet.com>
5935
5936 * MAINTAINERS: Add myself as AVR maintainer.
5937 * NEWS: Note new target avr.
5938
5939 2002-04-25 Theodore A. Roth <troth@verinet.com>
5940
5941 * Makefile.in: Add support for AVR target.
5942 * configure.tgt: Add support for AVR target.
5943 * avr-tdep.c: New file
5944 * config/avr/avr.mt: New file.
5945
5946 2002-04-25 Theodore A. Roth <troth@verinet.com>
5947
5948 * MAINTAINERS: Add myself to write-after-approval.
5949
5950 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5951
5952 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5953 with fprintf_unfiltered (gdb_stderr,....
5954
5955 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5956
5957 Fix PR gdb/508.
5958 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5959
5960 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5961
5962 * p-exp.y: Also use new prev_lexptr variable
5963 to improve error reporting. Based on Michael Snyder
5964 2002-04-24 dated patch to c-exp.y.
5965
5966 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5967
5968 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5969 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5970 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5971 to 0.
5972 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5973 and struct value.
5974 (FUNCTION_START_OFFSET): Remove.
5975 (BREAKPOINT): Ditto.
5976
5977 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5978
5979 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5980 * NEWS: Ditto.
5981
5982 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5983
5984 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5985 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5986 alpha_linux_pc_in_sigtramp.
5987 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5988 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5989 alpha_osf1_pc_in_sigtramp.
5990 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5991 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5992 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5993 alphafbsd_pc_in_sigtramp.
5994 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5995 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5996 alphanbsd_pc_in_sigtramp.
5997 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5998 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5999
6000 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6001
6002 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6003
6004 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6005
6006 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6007 alphanbsd-tdep.c.
6008 (alphanbsd-nat.o): New dependency list.
6009 (alphanbsd-tdep.o): Ditto.
6010 * NEWS: Note new native NetBSD/alpha configuration.
6011 * alphanbsd-nat.c: New file.
6012 * alphanbsd-tdep.c: Ditto.
6013 * configure.host (alpha*-*-netbsd*): New host.
6014 * configure.tgt (alpha*-*-netbsd*): New target.
6015 * config/alpha/nbsd.mh: New file.
6016 * config/alpha/nbsd.mt: Ditto.
6017 * config/alpha/nm-nbsd.h: Ditto.
6018 * config/alpha/tm-nbsd.h: Ditto.
6019
6020 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6021
6022 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6023 (alpha-osf1-tdep.o): New dependency list.
6024 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6025 and skip_sigtramp_frame members.
6026 * alpha-linux-tdep.c: Include gdbcore.h.
6027 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6028 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6029 * alpha-osf1-tdep.c: New file.
6030 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6031 alpha-osf1-dep.c.
6032 (alpha_frame_past_sigtramp_frame): New function.
6033 (alpha_dynamic_sigtramp_offset): Ditto.
6034 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6035 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6036 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6037 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6038 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6039 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6040 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6041 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6042 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6043 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6044 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6045 to find_solib_trampoline_target.
6046 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6047 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6048 (SKIP_TRAMPOLINE_CODE): Remove.
6049 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6050 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6051 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6052 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6053 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6054 (PROC_SIGTRAMP_MAGIC): Ditto.
6055 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6056 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6057 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6058 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6059 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6060
6061 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6062
6063 * NEWS: Note that Alpha targets are now multi-arch.
6064
6065 2002-04-24 Michael Snyder <msnyder@redhat.com>
6066
6067 * parser-defs.h (prev_lexptr): New external variable.
6068 * parse.c (parse_exp_1): Set prev_lexptr to null before
6069 calling the language-specific parser.
6070 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6071 (yyerror): Use prev_lexptr in error reporting.
6072
6073 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6074
6075 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6076 * gregset.h: If FILL_FPXREGSET is defined, provide
6077 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6078 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6079 is defined, call fill_fpxregset.
6080
6081 2002-04-24 Roland McGrath <roland@frob.com>
6082
6083 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6084 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6085 (supply_gregset, supply_fpregset): New functions.
6086
6087 * gnu-nat.c (gnu_find_memory_regions): New function.
6088 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6089 (gnu_xfer_memory): Add a cast.
6090
6091 2002-04-24 Michael Snyder <msnyder@redhat.com>
6092
6093 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6094 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6095 of argument regs ("str r(0123), [r11, #-nn"]).
6096 (arm_skip_prologue): Better handling for frameless functions.
6097 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6098 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6099
6100 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6101
6102 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6103 NUM_PSEUDO_REGS can be used.
6104
6105 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6106
6107 * arch-utils.h: Update copyright.
6108
6109 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6110 * gdbarch.h, gdbarch.c: Re-generate.
6111
6112 * inferior.h (IN_SIGTRAMP): Delete definition.
6113 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6114 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6115
6116 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6117 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6118 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6119 (find_proc_framesize): Ditto.
6120 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6121 (alpha_init_extra_frame_info): Ditto.
6122 * infrun.c (handle_inferior_event): Ditto.
6123 (handle_inferior_event): Ditto.
6124 (check_sigtramp2): Ditto.
6125 * blockframe.c (create_new_frame): Ditto.
6126 (get_prev_frame): Ditto.
6127 * ppc-linux-tdep.c: Update comments.
6128 * i386-linux-tdep.c: Update comments.
6129 * breakpoint.c (bpstat_what): Update comment.
6130
6131 2002-04-24 David S. Miller <davem@redhat.com>
6132
6133 * i960-tdep.c (register_in_window_p): New function.
6134 (i960_find_saved_register): Use it instead of
6135 REGISTER_IN_WINDOW_P.
6136 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6137
6138 * symtab.h (find_stab_function_addr): Kill extern.
6139 * minsyms.c (find_stab_function_addr): Remove from here...
6140 * dbxread.c: ... to here, and mark it static.
6141
6142 2002-04-20 David S. Miller <davem@redhat.com>
6143
6144 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6145 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6146
6147 2002-04-21 David S. Miller <davem@redhat.com>
6148
6149 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6150 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6151 (vx_write_register): Likewise.
6152
6153 2002-04-23 J. Brobecker <brobecker@gnat.com>
6154
6155 * source.c (is_regular_file): New function.
6156 (openp): Check wether file to open is a regular file
6157 to avoid opening directories.
6158
6159 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6160
6161 * findvar.c (extract_signed_integer): Cast printf argument
6162 to suppress format warning.
6163 (extract_unsigned_integer): Likewise.
6164 * infcmd.c (registers_info): Likewise.
6165 * top.c (get_prompt_1): Likewise.
6166 * valops.c (value_assign): Likewise.
6167 * valprint.c (print_decimal): Likewise.
6168
6169 2002-04-22 H.J. Lu (hjl@gnu.org)
6170
6171 * c-exp.y (typebase): Support
6172
6173 [long|long long|short] [signed|unsigned] [int|]
6174
6175 and
6176
6177 signed [long|long long|short] int
6178
6179 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6180
6181 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6182 and vax-tdep.h.
6183 * vax-tdep.h: New file.
6184 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6185 Make several routines static.
6186 (vax_get_saved_register): New function.
6187 (vax_gdbarch_init): New function.
6188 (_initialize_vax_tdep): Register vax_gdbarch_init.
6189 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6190 Remove macros now under the control of gdbarch.
6191
6192 2002-04-22 Michael Snyder <msnyder@redhat.com>
6193
6194 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6195 Some whitespace and coding standards tweaks.
6196
6197 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6198
6199 * vax-tdep.c: Include regcache.h.
6200 (vax_call_dummy_words): New.
6201 (sizeof_vax_call_dummy_words): New.
6202 (vax_fix_call_dummy): New function.
6203 (vax_saved_pc_after_call): Ditto.
6204 * config/vax/tm-vax.h: Don't include regcache.h.
6205 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6206 (CALL_DUMMY): Remove.
6207 (CALL_DUMMY_WORDS): Define.
6208 (SIZEOF_CALL_DUMMY_WORDS): Define.
6209 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6210
6211 2002-04-18 Michael Snyder <msnyder@redhat.com>
6212
6213 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6214
6215 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6216
6217 * vax-tdep.c (vax_frame_chain): New function.
6218 (vax_push_dummy_frame): Ditto.
6219 (vax_pop_frame): Ditto.
6220 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6221 (FRAMELESS_FUNCTION_INVOCATION): Use
6222 generic_frameless_function_invocation_not.
6223 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6224 (POP_FRAME): Use vax_pop_frame.
6225
6226 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6227
6228 * vax-tdep.c (vax_store_struct_return): New function.
6229 (vax_extract_return_value): Ditto.
6230 (vax_store_return_value): Ditto.
6231 (vax_extract_struct_value_address): Ditto.
6232 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6233 vax_store_struct_return.
6234 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6235 (STORE_RETURN_VALUE): Use vax_store_return_value.
6236 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6237
6238 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6239
6240 * vax-tdep.c (vax_frame_saved_pc): New function.
6241 (vax_frame_args_address_correct): Ditto.
6242 (vax_frame_args_address): Ditto.
6243 (vax_frame_locals_address): Ditto.
6244 (vax_frame_num_args): Move code to be in proximity to
6245 other frame-related functions.
6246 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6247 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6248 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6249 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6250 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6251
6252 2002-04-22 H.J. Lu (hjl@gnu.org)
6253
6254 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6255 includedir.
6256
6257 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6258
6259 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6260 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6261 (FRAME_INIT_SAVED_REGS): New macro.
6262
6263 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6264
6265 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6266
6267 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6268
6269 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6270 where needed.
6271 (fetch_osf_core_registers): Likewise.
6272 (supply_gregset): Likewise.
6273
6274 2002-04-22 J. Brobecker <brobecker@gnat.com>
6275
6276 * symfile.h (get_section_index): Define.
6277 * symfile.c (get_section_index): New function.
6278 * mdebugread.c (SC_IS_SBSS): New macro.
6279 (SC_IS_BSS): Return true for the scBss storage class only, as
6280 the scSBss storage class refers to the .sbss section.
6281 (parse_partial_symbols): Discard the symbols which associated
6282 section does not exist.
6283 Make sure to use the .sbss section index for symbols which
6284 storage class is scBss, rather than using the .bss section index.
6285
6286 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6287
6288 * vax-tdep.c: Update copyright years.
6289 (vax_register_name): New function.
6290 (vax_register_byte): Ditto.
6291 (vax_register_raw_size): Ditto.
6292 (vax_register_virtual_size): Ditto.
6293 (vax_register_virtual_type): Ditto.
6294 * config/vax/tm-vax.h: Update copyright years.
6295 (REGISTER_NAMES): Remove.
6296 (REGISTER_NAME): Define.
6297 (REGISTER_BYTE): Use vax_register_byte.
6298 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6299 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6300 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6301
6302 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6303
6304 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6305 declaration
6306 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6307
6308 2002-04-21 David S. Miller <davem@redhat.com>
6309
6310 * arch-utils.c (generic_prologue_frameless_p): Kill
6311 SKIP_PROLOGUE_FRAMELESS_P code.
6312 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6313 references.
6314 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6315 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6316 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6317 references.
6318 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6319 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6320 (sparc_gdbarch_init): Pass it to
6321 set_gdbarch_prologue_frameless_p.
6322
6323 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6324
6325 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6326 (alphabsd-nat.o): New dependency list.
6327
6328 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6329
6330 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6331 alphafbsd-tdep.c.
6332 (alpha-linux-tdep.o): New dependency list.
6333 (alphafbsd-tdep.o): Likewise.
6334
6335 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6336
6337 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6338 to here...
6339 * alpha-tdep.c: ...from here.
6340 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6341
6342 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6343
6344 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6345 prototype from here...
6346 * alpha-tdep.h: ...to here.
6347
6348 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6349
6350 * frame.h (selected_frame_level): Document as deprecated.
6351 (frame_relative_level): Declare.
6352 * stack.c (frame_relative_level): New function.
6353 (selected_frame_level): Document as deprecated.
6354 (select_frame): Do not set the selected_frame_level.
6355
6356 * stack.c (frame_info, record_selected_frame): Update.
6357 (frame_command, current_frame_command): Update.
6358 (up_silently_base, up_command, down_silently_base): Update.
6359 (down_command): Update.
6360 * inflow.c (kill_command): Update.
6361 * tracepoint.c (finish_tfind_command): Update.
6362 * corelow.c (core_open): Update.
6363 * thread.c (info_threads_command): Update.
6364 (do_captured_thread_select): Update.
6365 * infcmd.c (finish_command): Update.
6366 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6367
6368 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6369
6370 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6371
6372 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6373
6374 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6375 type const.
6376
6377 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6378
6379 * alphafbsd-tdep.c: Update copyright years. Include
6380 alpha-tdep.h.
6381 (alphafbsd_use_struct_convention): Make static.
6382 (alphafbsd_init_abi): New function.
6383 (_initialize_alphafbsd_tdep): New function.
6384 * config/alpha/tm-fbsd.h: Update copyright years.
6385 (USE_STRUCT_CONVENTION): Remove.
6386
6387 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6388
6389 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6390 an Alpha ABI variant.
6391 (alpha_abi_handler_list): Declare.
6392 (alpha_gdbarch_register_os_abi): New function.
6393 (alpha_gdbarch_init): Give registered ABI variant handlers a
6394 chance to tweak the gdbarch once we have set up defaults.
6395 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6396
6397 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6398
6399 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6400 to standard_coerce_float_to_double.
6401 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6402
6403 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6406 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6407 from gdbarch_tdep rather than a constant.
6408 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6409 the default text address for all Alpha Unix ABIs.
6410 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6411 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6412
6413 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6414
6415 * alpha-tdep.h: New file. Includes several Alpha target constants
6416 taken from...
6417 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6418 let gdbarch deal with.
6419 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6420 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6421 to dependency list.
6422 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6423 Alpha target register names.
6424 * alphabsd-nat.c: Likewise.
6425 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6426 Alpha target register names. Make serveral routines static.
6427 (alpha_get_saved_register): New function.
6428 (alpha_abi_names): New.
6429 (process_note_abi_tag_sections): New function.
6430 (get_elfosabi): New function.
6431 (alpha_gdbarch_init): New function.
6432 (alpha_dump_tdep): New function.
6433 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6434
6435 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6436
6437 * frame.c (find_saved_register): Delete #ifdef
6438 HAVE_REGISTER_WINDOWS code.
6439 * config/sparc/tm-sparc.h: Update comments.
6440 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6441
6442 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6443
6444 * i960-tdep.c (i960_find_saved_register): New function.
6445 (i960_get_saved_register): New function.
6446 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6447 (i960_get_saved_register): Declare.
6448 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6449
6450 2002-04-20 David S. Miller <davem@redhat.com>
6451
6452 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6453
6454 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6455
6456 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6457 instead of NUM_PSEUDO_REGS.
6458
6459 2002-04-20 David S. Miller <davem@redhat.com>
6460
6461 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6462 GDB_MULTI_ARCH_PARTIAL
6463 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6464 define, let tm-sp64.h do it.
6465
6466 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6467
6468 * frame.c (find_saved_register): Avoid a NULL pointer
6469 dereference and actually walk the frame list.
6470
6471 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6472
6473 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6474 sorted in most most-recent-used order. Document.
6475 * gdbarch.h, gdbarch.c: Regenerate.
6476
6477 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6478
6479 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6480 instead of ->prev.
6481 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6482 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6483 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6484 instead of ->prev.
6485
6486 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6487
6488 Fix PR gdb/471.
6489 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6490 (build_builtin_type_vec128): Ditto.
6491 (append_composite_type_field): Fix calculation of type length in
6492 union case.
6493
6494 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6495
6496 * config/djgpp/README: Update.
6497
6498 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6499 compiler warnings.
6500
6501 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6502
6503 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6504 (alpha_setup_arbitrary_frame): ...to this.
6505 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6506 for alpha_setup_arbitrary_frame.
6507
6508 2002-04-18 Andrew Cagney <cagney@redhat.com>
6509
6510 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6511 * gdbarch.h, gdbarch.c: Regenerate.
6512
6513 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6514 * target.h (memory_breakpoint_from_pc): Update declaration.
6515 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6516
6517 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6518 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6519 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6520 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6521 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6522 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6523 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6524 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6525 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6526 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6527 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6528 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6529
6530 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6531 const pointer.
6532 * monitor.c (monitor_insert_breakpoint): Ditto.
6533 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6534
6535 * config/mcore/tm-mcore.h: Update copyright.
6536 * mem-break.c: Ditto.
6537 * xstormy16-tdep.c: Ditto.
6538
6539 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6540
6541 * p-exp.y: Add precedence rule for '^' token.
6542 This removes the shift/reduce conflicts.
6543 Remove the comment concerning these shift/reduce conflicts.
6544
6545 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6546
6547 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6548 (registers_powerpc_nofp): New register set for processors
6549 without floating point unit.
6550
6551 2002-04-18 David S. Miller <davem@redhat.com>
6552
6553 * MAINTAINERS: Add myself to write-after-approval.
6554
6555 2002-04-17 Michael Snyder <msnyder@redhat.com>
6556
6557 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6558
6559 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6560
6561 * rs6000-tdep.c (frame_initial_stack_address): Use
6562 frame_register_read to read the alloca_reg.
6563
6564 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6565
6566 * frame.c (find_saved_register): Find saved registers in the next
6567 not prev frame.
6568 Fix PR gdb/365.
6569
6570 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6571
6572 * gdbarch.sh (LANG): Set to ``c''.
6573
6574 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6575
6576 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6577
6578 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6579
6580 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6581 Update copyright.
6582
6583 * hpread.c (hpread_get_lntt): Add declaration.
6584 Also fix PR gdb/391.
6585
6586 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6587
6588 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6589 * aclocal.m4, configure: Re-generate.
6590 Fix PR gdb/391.
6591
6592 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6593
6594 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6595 instead of tm_print_insn.
6596
6597 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6598
6599 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6600
6601 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6602
6603 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6604 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6605 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6606
6607 2002-04-12 Don Howard <dhoward@redhat.com>
6608
6609 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6610 max_user_call_depth.
6611 (init_cmd_lists): Initialize the new value;
6612 * cli/cli-script.c (execute_user_command): Limit the call depth of
6613 user defined commands. This avoids a core-dump when user commands
6614 are infinitly recursive.
6615
6616 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6617
6618 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6619 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6620 from tdep struct instead of DEFAULT_LR_SAVE.
6621 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6622 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6623 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6624
6625 2002-04-12 Michael Snyder <msnyder@redhat.com>
6626
6627 * Remote.c: Spelling fix.
6628 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6629 If no symbol found for "sbrk", try "_sbrk".
6630 (make_output_phdrs): Use bfd_section_name.
6631 (gcore_copy_callback): Use bfd_section_name.
6632 * eval.c: Indentation fix-ups.
6633 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6634 in case it gets applied to an address that is already
6635 in the instruction space.
6636 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6637 * symfile.c: Fix indentation, long lines.
6638 * source.c: White space fix-up.
6639
6640 2002-04-12 Andrew Cagney <cagney@redhat.com>
6641
6642 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6643 * frame.c (frame_register_read): New function. Return non-zero on
6644 success.
6645 (read_relative_register_raw_bytes_for_frame): Delete.
6646 (read_relative_register_raw_bytes): Delete.
6647 * frame.h (frame_register_read): Declare.
6648 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6649 * sh-tdep.c: Ditto.
6650 * infcmd.c (do_registers_info): Ditto.
6651 * hppa-tdep.c: Ditto.
6652 * rs6000-tdep.c: Ditto.
6653 * h8500-tdep.c: Ditto.
6654 * mips-tdep.c: Ditto.
6655 * h8300-tdep.c: Ditto.
6656 * z8k-tdep.c: Ditto.
6657
6658 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6659
6660 From Jimi X <jimix@watson.ibm.com>:
6661 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6662 64-bit SysV ABI.
6663
6664 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6665
6666 From Jimi X <jimix@watson.ibm.com>:
6667 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6668 bfd info.
6669
6670 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6671
6672 From Jimi X <jimix@watson.ibm.com>:
6673 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6674 register sets for these processor variants.
6675
6676 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6677
6678 * regformats/reg-ppc.dat: Support FPSCR.
6679
6680 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6681
6682 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6683 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6684 Add fpscr as an invalid/unfetchable register.
6685 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6686 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6687 (fill_fpregset): Add support for register fpscr.
6688 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6689 (fill_gregset): Account for the fact that register ``mq'' might
6690 not exist.
6691 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6692 (registers_power): Add fpscr to register set at slot 71.
6693 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6694 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6695
6696 2002-04-11 Michael Snyder <msnyder@redhat.com>
6697
6698 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6699 * configure: Regenerate.
6700 * config.in: Regenerate.
6701 * acconfig.h: Add define for _SYSCALL32.
6702 * core-sol2.c: Remove #define _SYSCALL32.
6703 * solib-legacy.c: Remove #define _SYSCALL32.
6704
6705 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6706
6707 * stack.c (select_frame): Cleanup internal error message, do not
6708 use %p.
6709
6710 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6711
6712 * stack.c (select_frame): Check that selected_frame and the
6713 specified level are as expected.
6714 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6715 Update copyright.
6716 * frame.h (struct frame_info): Add field `level'. Update
6717 copyright.
6718 Work-in-progress PR gdb/464.
6719
6720 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6721
6722 * maint.c (maint_print_section_info): Rename print_section_info.
6723 (print_bfd_section_info, print_objfile_section_info): Update.
6724 * inferior.h (struct gdbarch): Add opaque declaration.
6725 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6726 * gdbarch.h: Regenerate.
6727
6728 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6729
6730 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6731 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6732 (kernel_u_size): Added.
6733 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6734 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6735
6736 2002-04-04 Jim Ingham <jingham@apple.com>
6737
6738 * valarith.c (find_size_for_pointer_math): New function, either returns
6739 the size for a pointer's target, returns 1 for void *, or errors for
6740 incomplete types.
6741 (value_add, value_sub): use find_size_for_pointer_math.
6742
6743 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6744
6745 * linux-low.c (linux_look_up_symbols): New hook.
6746 (linux_target_ops): Add linux_look_up_symbols.
6747 * remote-utils.c (decode_address): New function.
6748 (look_up_one_symbol): New function.
6749 * server.c (handle_query): Call target look_up_symbols hook.
6750 * server.h (look_up_one_symbol): Add prototype.
6751 * target.h (struct target_ops): Add look_up_symbols hook.
6752
6753 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6754
6755 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6756 override FP_REGNUM with frame->fp. Update copyright.
6757 * parse.c (num_std_regs, std_regs): Delete.
6758 (target_map_name_to_register): Do not search std_regs. Update
6759 function description.
6760 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6761 declarations. Update copyright.
6762 Fix PR gdb/251.
6763
6764 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6765
6766 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6767 after the last symbol in a block.
6768
6769 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6770
6771 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6772 is non zero as a found symbol.
6773
6774 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6775
6776 * findvar.c: Include "builtin-regs.h".
6777 (value_of_register): Call value_of_builtin_reg when applicable.
6778 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6779 (target_map_name_to_register): Call
6780 builtin_reg_map_name_to_regnum.
6781 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6782 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6783 (builtin_regs_h): Define.
6784 (builtin-regs.o): New target.
6785 (findvar.o): Add $(builtin_regs_h).
6786 * builtin-regs.c, builtin-regs.h: New files.
6787 * std-regs.c: New file.
6788 Partial fix for PR gdb/251.
6789
6790 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6791
6792 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6793 it's no longer required.
6794
6795 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6796
6797 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6798
6799 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6800
6801 From Jimi X <jimix@watson.ibm.com>:
6802 * rs6000-tdep.c (rs6000_software_single_step): Use
6803 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6804 and size. Use target_insert_breakpoint() and
6805 target_remove_breakpoint() to insert and remove breakpoints
6806 instead of explicit memory reads and writes.
6807
6808 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6809
6810 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6811 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6812 ELF_OBJECT_FORMAT ifdef.
6813
6814 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6815
6816 From Jimi X <jimix@watson.ibm.com>:
6817 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6818
6819 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6820
6821 From Jimi X <jimix@watson.ibm.com>:
6822 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6823 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6824
6825 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6826
6827 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6828 s/asprintf/xasprintf/.
6829 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6830
6831 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6832
6833 I believe Jeff Law denies responsability for this one:
6834 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6835 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6836 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6837 Work-around for PR gdb/366.
6838
6839 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6840
6841 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6842 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6843 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6844
6845 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6846
6847 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6848 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6849 information.
6850
6851 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6852
6853 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6854 maintainer.
6855
6856 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6857
6858 * README (Reporting Bugs in GDB): Document the bug web page as the
6859 prefered way of submitting bugs.
6860 Fix PR gdb/402.
6861
6862 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6863
6864 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6865 -1. Update comment.
6866 * gdbarch.h, gdbarch.c: Re-generate.
6867
6868 2002-04-07 Andreas Schwab <schwab@suse.de>
6869
6870 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6871 buffer to regcache_collect.
6872
6873 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6874
6875 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6876 * gdbarch.c, gdbarch.h: Re-generate.
6877
6878 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6879
6880 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6881 declaration. Fix -Werror.
6882
6883 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6884
6885 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6886 * gdbarch.c: Regenerate.
6887
6888 2002-04-05 Michael Snyder <msnyder@redhat.com>
6889
6890 * breakpoint.c (clear_command): Rewrite middle section to
6891 combine two loops with identical control conditions.
6892 Add a cleanup to eliminate a memory leak.
6893 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6894
6895 2002-04-05 H.J. Lu (hjl@gnu.org)
6896
6897 * solib-svr4.c (bkpt_names): Add "__start".
6898
6899 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6900
6901 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6902 as test for 64 bit target.
6903
6904 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6905
6906 * h8500-tdep.c (h8500_write_fp): Delete function.
6907 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6908 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6909 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6911 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6912 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6913 (s390_write_fp):
6914 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6915 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6916 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6917 (d10v_write_fp): Delete function.
6918 * inferior.h (write_fp, generic_target_write_fp): Delete
6919 declarations.
6920 * regcache.c (generic_target_write_fp): Delete function.
6921 (write_fp): Delete function.
6922 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6923 * gdbarch.h, gdbarch.c: Regenerate.
6924 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6925 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6926 (sparc64_write_fp): Delete declaration.
6927 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6928 (h8500_write_fp): Delete declaration.
6929
6930 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6931
6932 * sparc-tdep.c (sparc64_write_fp): Delete.
6933 (sparc_push_dummy_frame): Replace write_fp call with code to store
6934 the FP directly.
6935 (sparc_gdbarch_init): Do not initialize write_fp.
6936
6937 2002-04-05 Kevin Buettner <kevinb@redhat.com>
6938
6939 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6940 clause.
6941
6942 2002-03-29 Jim Blandy <jimb@redhat.com>
6943
6944 * stack.c (get_selected_block): Add new argument `addr_in_block',
6945 used to return the exact code address we used to select the block,
6946 not just the block.
6947 * blockframe.c (get_frame_block, get_current_block): Same.
6948 * frame.h (get_frame_block, get_current_block,
6949 get_selected_block): Update declarations.
6950 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6951 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6952
6953 2002-04-05 Michael Snyder <msnyder@redhat.com>
6954
6955 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6956 warning message.
6957
6958 2002-04-05 J. Brobecker <brobecker@gnat.com>
6959
6960 * utils.c (xfullpath): New function.
6961 * defs.h (xfullpath): Add declaration.
6962 * source.c (openp): Use xfullpath in place of gdb_realpath to
6963 avoid resolving the basename part of filenames when the
6964 associated file is a symbolic link. This fixes a potential
6965 inconsistency between the filenames known to GDB and the
6966 filenames it prints in the annotations.
6967 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6968 to be able to match a filename with either the real filename, or
6969 the name of any symbolic link to this file.
6970 (lookup_partial_symtab): Ditto.
6971
6972 2002-04-04 Michael Snyder <msnyder@redhat.com>
6973
6974 * breakpoint.c: Add support for hardware breakpoints in overlays.
6975 (overlay_events_enabled): New state variable.
6976 (insert_breakpoints): Use overlay_events_enabled to decide
6977 whether to attempt to set a breakpoint at the overlay load addr.
6978 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6979 (remove_breakpoint): Use overlay_events_enabled to decide
6980 whether breakpoints need to be removed from overlay load addr.
6981 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6982 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
6983 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
6984 disable_overlay_breakpoints): Update overlay_events_enabled.
6985
6986 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
6987
6988 * dwarf2read.c (struct function_range): New.
6989 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6990 (check_cu_functions): New.
6991 (read_file_scope): Initialize global function lists.
6992 Call dwarf_decode_line after processing children.
6993 (read_func_scope): Add to global function list.
6994 (dwarf_decode_lines): Call check_cu_functions everywhere
6995 record_line is called. Call record_line with a linenumber
6996 of 0 to mark sequence ends.
6997
6998 2002-04-04 Michal Ludvig <mludvig@suse.cz>
6999
7000 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7001 change sync with glibc.
7002
7003 2002-04-03 Jim Blandy <jimb@redhat.com>
7004
7005 * configure.in: Call AC_C_INLINE.
7006 * configure: Regenerated.
7007
7008 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7011 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7012
7013 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7014
7015 * NEWS: Mention gcore support on FreeBSD/i386.
7016
7017 * fbsd-proc.c: New file.
7018 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7019 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7020
7021 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7022 while statement.
7023
7024 2002-03-29 Jim Blandy <jimb@redhat.com>
7025
7026 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7027 unescaped newlines in string literals, but newer ones don't. So
7028 escape them.
7029
7030 2002-03-26 Michael Snyder <msnyder@redhat.com>
7031 Andrew Cagney <cagney@redhat.com>
7032
7033 * cli/cli-dump.c: New file. Dump memory to file,
7034 restore file to memory.
7035 * cli/cli-dump.h: New file.
7036 * Makefile.in: Add rules, dependencies for cli-dump.o.
7037 * NEWS: Mention new commands.
7038
7039 2002-03-28 Michael Snyder <msnyder@redhat.com>
7040
7041 * symfile.c (symbol_file_add): Move test for null symbols to later.
7042
7043 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7044
7045 From veksler at il.ibm.com:
7046 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7047 the xstrduped original path.
7048 Fix PR gdb/417.
7049
7050 2002-03-27 Michael Snyder <msnyder@redhat.com>
7051
7052 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7053 * infcmd.c (_initialize_infcmd): Ditto.
7054 * language.c (_initialize_language): Ditto.
7055 * symfile.c (_initialize_symfile): Ditto.
7056 * top.c (_init_main): Ditto.
7057 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7058
7059 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7060
7061 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7062 vector registers handling.
7063 (skip_prologue): Handle new AltiVec instructions. Fill in new
7064 fields of frame data.
7065 (frame_get_saved_regs): Fill in information for AltiVec registers.
7066
7067 2002-03-27 Jim Blandy <jimb@redhat.com>
7068
7069 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7070 a function; leave this macro here to invoke that function.
7071 (symbol_init_mangled_name): Declaration for that function.
7072 * symtab.c (symbol_init_mangled_name): New function.
7073
7074 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7075
7076 * valarith.c: Replace strerror with safe_strerror.
7077 * tracepoint.c: Ditto.
7078 * lin-lwp.c: Ditto.
7079 * go32-nat.c: Ditto.
7080 * inflow.c: Ditto.
7081 * gnu-nat.c: Ditto.
7082
7083 2002-03-27 Andreas Schwab <schwab@suse.de>
7084
7085 * event-top.c (command_line_handler): Remove useless if.
7086
7087 2002-03-27 Andreas Jaeger <aj@suse.de>
7088
7089 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7090 comment.
7091
7092 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7093
7094 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7095 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7096 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7097 (x86_64_linux_dr_get_status, supply_gregset),
7098 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7099 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7100 (x86_64_register_info_table): Add.
7101 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7102 (x86_64_register_raw_size, x86_64_register_virtual_type),
7103 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7104 general x86_64_register_info_table.
7105 (i386_gdbarch_init): gdbarch_register_bytes is now set
7106 dynamicaly during initialization.
7107 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7108 * gdbserver/linux-x86-64-low.c: Ditto.
7109
7110 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7111
7112 * gdbserver/server.c (main): Call target_signal_to_host_p
7113 and target_signal_to_host on signals received from the remote.
7114 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7115 target_signal_from_host on signals sent to the remote.
7116 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7117 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7118
7119 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7120
7121 * signals/signals.c: Include "server.h" in gdbserver build.
7122 (target_signal_from_name): Don't use STREQ.
7123 (_initialize_signals): Likewise. Don't include function in
7124 gdbserver build.
7125
7126 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7127
7128 * signals.c: Moved to...
7129 * signals/signals.c: Here.
7130 * Makefile (signals.o): Update.
7131
7132 2002-03-26 Jeff Law (law@redhat.com)
7133
7134 * somread.c (som_symtab_read): Remove some commented out code and
7135 updated related comments. Do not set the minimal symbol table to
7136 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7137 in a dynamic executable.
7138 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7139 where we are unable to find the minimal symbol for the given
7140 PC value.
7141
7142 2002-03-25 Jeff Law (law@redhat.com)
7143
7144 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7145
7146 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7147
7148 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7149
7150 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7151
7152 * command.h: Update copyright.
7153 (struct cmd_list_element): Replace definition with opaque
7154 declaration.
7155 (enum cmd_types): Document that it will eventually be moved to
7156 cli/cli-decode.h
7157 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7158 (MALLOCED_REPLACEMENT): Delete macro.
7159 * Makefile.in (cli_decode_h): Add $(command_h).
7160 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7161 * top.c: Include "cli/cli-decode.h".
7162 * completer.c: Include "cli/cli-decode.h".
7163 * maint.c: Include "cli/cli-decode.h".
7164 * cli/cli-decode.h: Include "command.h".
7165 (enum command_class): Delete.
7166 (enum cmd_types): Comment out.
7167 (enum cmd_auto_boolean): Delete.
7168 (enum var_types): Delete.
7169
7170 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7171
7172 * cli/cli-decode.c: Include "gdb_assert.h".
7173 (add_set_or_show_cmd): New static function.
7174 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7175 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7176 all fields, such as func, from the set command.
7177
7178 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7179
7180 * MAINTAINERS (sh-elf): Change warning flag to -w.
7181
7182 2002-03-23 Andrew Cagney <cagney@redhat.com>
7183
7184 * defs.h (error): Add printf format attribute.
7185 * thread-db.c (thread_from_lwp): Fix error format string.
7186 * stack.c (parse_frame_specification): Ditto.
7187 * cli/cli-decode.c (undef_cmd_error): Ditto.
7188 * scm-lang.c (scm_lookup_name): Ditto.
7189 * tracepoint.c (trace_error): Ditto.
7190 * remote-utils.c (usage): Ditto.
7191 * remote.c (compare_sections_command): Ditto.
7192 Fix PR gdb/328.
7193
7194 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7195
7196 * gdbtypes.c (append_composite_type_field): New function.
7197 (init_composite_type): New function.
7198 * gdbtypes.h (append_composite_type_field): Declare.
7199 (init_composite_type): Ditto.
7200
7201 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7202
7203 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7204 function.
7205 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7206 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7207 structure returning convention for SYSV ABI case, but not
7208 for GNU/Linux, FreeBSD, or NetBSD.
7209
7210 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7211
7212 * symtab.h (lookup_block_symbol): Add mangled_name argument
7213 to prototype.
7214
7215 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7216 with new mangled_name argument.
7217 * linespec.c (decode_line_1): Likewise.
7218 * valops (value_of_this): Likewise.
7219 * symtab.c (lookup_transparent_type): Likewise.
7220 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7221 (lookup_symbol): If we are given a mangled name, pass it down
7222 to lookup_symbol_aux.
7223 (lookup_block_symbol): If we are given a mangled name to check
7224 against, only return symbols which match it.
7225
7226 2002-03-22 Christopher Faylor <cgf@redhat.com>
7227
7228 * win32-nat.c (child_create_inferior): Check for proper shell to use
7229 here, in case the user changes it on the fly.
7230 (_initialize_inftarg): Remove shell path considerations.
7231
7232 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7233
7234 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7235 for gdbarch_max_register_raw_size and max_register_virtual_size.
7236 Adjust copyright year.
7237
7238 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7239
7240 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7241 in a function to cover the entire beginning of the function
7242 as well if it does not already.
7243
7244 2002-03-21 Tom Rix <trix@redhat.com>
7245
7246 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7247 (rs6000_ptrace64): Renamed from ptrace64.
7248
7249 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7250
7251 * gdbserver/remote-utils.c (remote_open): Don't call
7252 getprotobyname, we're all using TCP here so just use
7253 IPPROTO_TCP.
7254 * gdbserver/gdbreplay.c (remote_open): Ditto.
7255
7256 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7257
7258 * regcache.c (_initialize_regcache): No need to call
7259 build_regcache() at this time; it gets called whenever
7260 the gdbarch changes.
7261
7262 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7263
7264 * sparc-nat.c: Include sys/param.h where possible.
7265
7266 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7267
7268 Fix PR gdb/422.
7269 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7270 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7271 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7272 complex types.
7273 * stabsread.c (rs6000_builtin_type): Likewise.
7274 (read_sun_floating_type): Likewise.
7275
7276 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7277
7278 * stabsread.c (read_member_functions): Remove skip code for duplicate
7279 constructor/destructor methods. Use standard parsing for these
7280 methods and just do not chain them to the list of methods after
7281 parsing.
7282
7283 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7284
7285 * coffread.c: Remove redundant static declarations. Replace
7286 occurrences of `PTR' with `void *'.
7287 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7288 * top.h (quit_cover): Likewise.
7289 * defs.h (catch_errors): Likewise.
7290
7291 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7292
7293 * defs.h (XMALLOC): Define.
7294 * gdb-events.sh (XMALLOC): Delete macro.
7295 * gdb-events.c, gdb-events.h: Regenerate.
7296 * gdbarch.sh (XMALLOC): Delete macro.
7297 * gdbarch.c: Regenerate.
7298 * serial.c (XMALLOC): Delete macro.
7299 * ui-file.c (XMALLOC): Ditto.
7300 * ser-unix.h (XMALLOC): Ditto.
7301 * sh-tdep.c (XMALLOC): Ditto.
7302 * ui-out.c (XMALLOC): Ditto.
7303 * utils.c (XMALLOC): Ditto.
7304 * i386-tdep.c (XMALLOC): Ditto.
7305 * gdb-events.c (XMALLOC): Ditto.
7306 * d10v-tdep.c (XMALLOC): Ditto.
7307 * cli-out.c (XMALLOC): Ditto.
7308
7309 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7310 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7311 * ui-file.c, ui-out.c: Ditto.
7312
7313 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7314
7315 * command.h (struct cmd_list_element): Add field context.
7316 (set_cmd_context, get_cmd_context): Declare.
7317 * cli/cli-decode.h: Ditto.
7318 * cli/cli-decode.c (get_cmd_context): New function.
7319 (set_cmd_context): New function.
7320 (add_cmd): Initialize context.
7321 Part of fixing PR gdb/145 and PR gdb/146.
7322
7323 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7324
7325 * cli/cli-decode.c (cmd_type): New function.
7326 * command.h (cmd_type): Declare.
7327 * infrun.c (set_schedlock_func): Call function cmd_type.
7328 * kod.c (kod_set_os): Call cmd_type.
7329 * cris-tdep.c (cris_version_update): Use function cmd_type.
7330 (cris_mode_update, cris_abi_update): Ditto.
7331
7332 * command.h: (execute_cmd_post_hook): Declare.
7333 (execute_cmd_pre_hook): Declare.
7334 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7335 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7336 functions. Execute pre/post hook while ensuring that afterwords
7337 hook_in is cleared.
7338 * top.c (execute_command): Use execute_cmd_post_hook, and
7339 execute_cmd_pre_hook to execute pre/post commands.
7340 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7341 hook_stop_stub.
7342 (hook_stop_stub): Call execute_cmd_pre_hook.
7343
7344 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7345
7346 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7347 set'' and this leads to a core dump. Move xstrdup of
7348 operating_system to after check that it is not NULL.
7349
7350 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7351
7352 * kod.c (kod_set_os): Remove unnecessary check that
7353 ``command->type'' is set_cmd.
7354
7355 * valprint.c (set_input_radix): Use input_radix.
7356 (set_output_radix): Use output_radix.
7357 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7358 isn't reverted.
7359
7360 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7361
7362 * value.h (struct value): Delete field ``substring_addr''. Change
7363 aligner fields to force_doublest_align, force_longest_align,
7364 force_core_addr_align and force_pointer_aligh.
7365
7366 * value.h (struct value): Fix typo in above change.
7367
7368 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7369
7370 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7371 to fix internal_error from ``maintenance print architecture''.
7372
7373 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7374
7375 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7376 for gcc versions after gcc-2.8.1.
7377
7378 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7379
7380 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7381 for method resolution. Restore adjustment of ``this'' pointer after
7382 calling value_struct_elt, which was accidentally removed during the
7383 HP merge.
7384
7385 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7386
7387 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7388 value_of_register.
7389 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7390 get_saved_register.
7391 * value.h (value_of_register): Update.
7392
7393 2002-03-14 Richard Henderson <rth@redhat.com>
7394
7395 * configure.in: Detect declaration for canonicalize_file_name.
7396 * utils.c (canonicalize_file_name): Declare, if needed.
7397 (gdb_realpath): Prefer realpath if available and usable.
7398 * config.in, configure: Rebuild.
7399
7400 2002-03-14 Richard Henderson <rth@redhat.com>
7401
7402 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7403 a constant array bound.
7404
7405 * MAINTAINERS: Add myself to write-after-approval.
7406
7407 2002-03-14 Michael Snyder <msnyder@redhat.com>
7408
7409 * symfile.c (syms_from_objfile): Return immediately if no syms.
7410 (symbol_file_add): Return immediately if no syms.
7411 (find_sym_fns): Return immediately if no syms.
7412
7413 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7414
7415 * gdbserver/remote-util.c (remote_open): Print remote-side's
7416 IP address when remote debugging over the network.
7417
7418 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7419
7420 * config/sparc/fbsd.mh: Fix copyright.
7421 * config/sparc/fbsd.mt: Likewise.
7422
7423 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7424
7425 * MAINTAINERS: Fix typo in name of gdb warnings option.
7426 (x86-64): Fix formating so that this can be parsed by awk.
7427
7428 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7429
7430 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7431 * defs.h: Include "gdb/signals.h".
7432 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7433
7434 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7435
7436 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7437 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7438 from x86-64-tdep.h
7439
7440 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7441 Don Howard <dhoward@redhat.com>
7442
7443 * mips-tdep.c (ST0_FR): Define.
7444 (mips2_fp_compat): New function, temporarily disabled.
7445 (mips_read_fp_register_single): New function.
7446 (mips_read_fp_register_double): New function.
7447 (mips_print_register): Use them.
7448 (do_fp_register_row): Likewise.
7449
7450 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7451
7452 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7453 approval''.
7454
7455 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7456
7457 * stabsread.c (read_member_functions): Fix is_stub test for
7458 static member functions, improve comment.
7459
7460 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7461
7462 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7463 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7464 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7465 commands that set boolean values.
7466 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7467 (arm_rdi_resume): Always initialize PC.
7468 (arm_rdi_open): Don't use rslt as a boolean.
7469 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7470 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7471 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7472 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7473
7474 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7475
7476 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7477 * configure: Rebuilt.
7478
7479 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7480
7481 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7482 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7483
7484 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7485
7486 * cli/cli-decode.c (set_cmd_completer): New function.
7487 * command.h (set_cmd_completer): Declare.
7488 * cli/cli-decode.h (set_cmd_completer): Ditto.
7489
7490 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7491 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7492 * win32-nat.c (_initialize_inftarg): Ditto.
7493 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7494 * proc-api.c (_initialize_proc_api): Ditto.
7495 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7496 * source.c (_initialize_source): Ditto.
7497 * exec.c (_initialize_exec): Ditto.
7498 * solib.c (_initialize_solib): Ditto.
7499 * top.c (init_main): Ditto.
7500 * tracepoint.c (_initialize_tracepoint): Ditto.
7501 * symfile.c (_initialize_symfile): Ditto.
7502 * printcmd.c (_initialize_printcmd): Ditto.
7503 * infcmd.c (_initialize_infcmd): Ditto.
7504 * corefile.c (_initialize_core): Ditto.
7505
7506 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7507
7508 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7509
7510 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7511
7512 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7513
7514 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7515
7516 * NEWS: Update headings, 5.2 has branched.
7517
7518 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7519
7520 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7521 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7522 (register_addr, REGISTER_RAW_SIZE): Likewise.
7523 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7524 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7525
7526 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7527
7528 * MAINTAINERS (x86-64): Add myself.
7529 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7530 changed value_ptr -> struct value *
7531
7532 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7533
7534 * configure.host (sparc64-*-freebsd): Add.
7535 * configure.tgt: Likewise.
7536 * config/sparc/fbsd.mh: New file.
7537 * config/sparc/fbsd.mt: Likewise.
7538 * config/sparc/nm-fbsd.h: Likewise.
7539 * config/sparc/tm-fbsd.h: Likewise.
7540
7541 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7542
7543 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7544 regformats/reg-s390x.dat.
7545
7546 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7547
7548 * utils.c: Add FIXME explaining true/false problem.
7549
7550 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7551
7552 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7553
7554 2002-02-28 Michael Chastain <mec@shout.net>
7555
7556 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7557
7558 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7559
7560 * gdbserver/linux-s390-low.c: New file.
7561 * regformats/reg-s390.dat: New file.
7562 * regformats/reg-s390x.dat: New file.
7563 * gdbserver/configure.srv: Add S/390.
7564 * gdbserver/Makefile.in: Add S/390.
7565 * configure.tgt: Enable gdbserver for S/390.
7566
7567 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7568
7569 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7570 first line of the doc string for "info dos", except at the end of
7571 the sentence, since the short help stops at the first period.
7572
7573 2002-02-28 Jason Merrill <jason@redhat.com>
7574
7575 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7576
7577 2002-02-27 Fred Fish <fnf@redhat.com>
7578
7579 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7580 comment (dumy -> dummy).
7581
7582 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7583
7584 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7585
7586 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7587
7588 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7589
7590 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7591
7592 * gdbserver/acconfig.h: New file.
7593 * gdbserver/i387-fp.c: New file.
7594 * gdbserver/i387-fp.h: New file.
7595 * gdbserver/linux-x86-64.c: New file.
7596 * regformats/reg-x86-64.dat: New file.
7597 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7598 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7599 * gdbserver/configure.in: Add support for regsets.
7600 * gdbserver/config.in: Regenerate.
7601 * gdbserver/configure: Regenerate.
7602 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7603 * gdbserver/linux-low.h: New file.
7604 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7605 for regsets.
7606 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7607 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7608 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7609 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7610 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7611 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7612 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7613 "i387-fp.h". Add PTRACE_GETREGS and friends.
7614 * gdbserver/regcache.c (supply_register): New function.
7615 (supply_register_by_name): New function.
7616 (collect_register): New function.
7617 (collect_register_by_name): New function.
7618
7619 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7620
7621 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7622 (config.status): Add configure.srv dependency.
7623 (server_h): Add config.h dependency.
7624
7625 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7626
7627 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7628 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7629 * gdbserver/configure.srv: Change i386-*-linux* to use
7630 reg-i386-linux.o.
7631
7632 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7633
7634 * x86-64-tdep.c: Re-indent. Update copyright date.
7635
7636 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7637
7638 From Michal Ludvig <mludvig@suse.cz>:
7639 * x86-64-tdep.c (value.h): Delete.
7640 (gdb_assert.h): Include.
7641 (x86_64_register_convert_to_virtual,
7642 x86_64_register_convert_to_raw ): Add check which lets only
7643 floating-point values to be converted.
7644 (value_push): Delete.
7645 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7646 (i386_gdbarch_init): Number of register_bytes fixed.
7647
7648 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7649
7650 * MAINTAINERS: Add x86-64 target.
7651
7652 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7653
7654 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7655 * osfsolib.c (solib_map_sections): Ditto.
7656 * irix5-nat.c (solib_map_sections): Ditto.
7657 * corelow.c (gdb_check_format): Ditto.
7658 * symfile.c (symfile_bfd_open): Ditto.
7659 * solib.c (solib_map_sections): Ditto.
7660 Fix PR gdb/354.
7661
7662 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7663
7664 * remote.c (_initialize_remote): By default, disable ``e'' and
7665 ``E'' step out-of-range packets.
7666
7667 2002-02-26 Andreas Schwab <schwab@suse.de>
7668
7669 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7670 m68k_linux_frame_saved_pc.
7671 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7672 in_sigtramp.
7673 (SIGCONTEXT_PC_OFFSET): Remove.
7674 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7675 m68k_linux_sigtramp_saved_pc): New functions.
7676 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7677 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7678 (UCONTEXT_PC_OFFSET): Define.
7679 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7680 non-RT and RT signal trampolines.
7681
7682 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7683
7684 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7685 (TARGET_NBPG, STACK_END_ADDR): Delete
7686 (VARIABLES_INSIDE_BLOCK): Delete.
7687
7688 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7689
7690 * utils.c (perror_with_name): Make string parameter constant.
7691 (print_sys_errmsg): Ditto.
7692 (query): Ditto.
7693 * defs.h (perror_with_name): Update.
7694 (print_sys_errmsg): Update.
7695 (query): Update.
7696
7697 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7698
7699 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7700 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7701
7702 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7703
7704 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7705 if it already matches the current architecture from the exec file.
7706 Include arch-utils.h for gdbarch_info_init prototype.
7707 * Makefile.in (rs6000-nat.o): Update dependencies.
7708
7709 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7710
7711 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7712 list of exported variables.
7713
7714 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7715
7716 * gdbserver/configure.srv: New file.
7717 * gdbserver/configure.in: Use configure.srv instead
7718 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7719 from it.
7720 * gdbserver/configure: Regenerated.
7721 * gdbserver/terminal.h: New file.
7722 * gdbserver/Makefile.in: Update for configure changes. Remove
7723 more unneeded include paths.
7724
7725 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7726
7727 From wiz at danbala:
7728 * config/sparc/tm-sp64.h: Fix grammar and typos.
7729 Fix PR gdb/287.
7730
7731 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7732
7733 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7734 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7735 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7736 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7737 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7738 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7739 * s390-tdep.c: Ditto.
7740 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7741 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7742 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7743 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7744 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7745 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7746 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7747 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7748 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7749 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7750 Fix PR gdb/378.
7751
7752 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7753
7754 * lin-thread.c: Delete file.
7755 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7756 to gdb_proc_service.h.
7757 * configure: Re-generate.
7758
7759 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7760 * serial.c (serial_open): Delete check for "ocd".
7761 Fix PR gdb/349.
7762
7763 * Makefile.in (linux-thread.o): Delete target.
7764 * linux-thread.c: Delete file.
7765
7766 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7767 renamed SH files to be consistent.
7768
7769 * symtab.c (sort_search_symbols): Use xfree.
7770
7771 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7772
7773 * arm-linux-tdep.c (arm_linux_init_abi): Register
7774 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7775 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7776 definition with undef, since we don't want the sysvr4 definition.
7777 (SKIP_TRAMPOLINE_CODE): Likewise.
7778
7779 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7780
7781 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7782
7783 * configure.in: (AC_CHECK_FUNCS) Added test for
7784 canonicalize_file_name Regenerated.
7785 * config.in, configure: Regenerated.
7786 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7787 defined use canonicalize_file_name.
7788
7789 2002-02-23 Michael Chastain <mec@shout.net>
7790
7791 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7792
7793 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7794
7795 * README: Remove references to cygnus.com.
7796 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7797 dot com'' form. Remove references to cygnus.com and sourceware.
7798
7799 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7800
7801 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7802 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7803 1003.1-2001 no longer allows "head -1".
7804 * gdb/Makefile.in (version.c): Likewise.
7805 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7806 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7807 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7808
7809 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7810
7811 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7812 * command.h (cmd_cfunc_eq): Declare.
7813 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7814
7815 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7816 ``struct cmd_list_element *''.
7817 * cli/cli-cmds.c (is_complete_command): Update. Use
7818 cmd_cfunc_eq.
7819 * top.c (execute_command): Pass the command to
7820 is_complete_command.
7821 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7822
7823 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7824
7825 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7826 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7827 architecture defines.
7828 * s390-tdep.c (s390_gdbarch_init): Likewise.
7829
7830 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7831
7832 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7833 (arm_linux_push_arguments): Likewise.
7834 (arm_linux_init_abi): Register them. Also register linux-specific
7835 call_dummy_words.
7836 (find_minsym_and_objfile): Use strcmp, not STREQ.
7837 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7838 (arm_linux_call_dummy_words): Delete declaration.
7839 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7840 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7841 declarations.
7842 (LOWEST_PC): Delete.
7843
7844 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7845
7846 * maint.c (print_section_info): Do not prepend `0x' to filepos
7847 output, it will be handled by local_hex_string_custom.
7848
7849 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7850
7851 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7852 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7853 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7854
7855 2002-02-22 Jim Blandy <jimb@redhat.com>
7856
7857 Indicate that the bcache functions don't change the strings
7858 they're passed.
7859 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7860 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7861
7862 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7863
7864 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7865
7866 2002-02-21 Christopher Faylor <cgf@redhat.com>
7867
7868 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7869 find the complete path to a loaded DLL.
7870
7871 2002-02-21 Fred Fish <fnf@redhat.com>
7872
7873 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7874 that marks the end of the range of a function, enter a line number
7875 entry that has a line number of zero and a PC offset that matches
7876 the end of the function. This starts a range of PC's for which no
7877 line number information is known.
7878 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7879 PC's for which no line number info is found (line number is zero)
7880 then we didn't find any valid line information.
7881 * symtab.h: Document use of zero line number entry.
7882
7883 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7884
7885 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7886 (have_ptrace_getvrregs): Define for run time checks.
7887 (gdb_vrregset_t): New type for Altivec register handling.
7888 (fetch_register, store_register): Fetch/store altivec register
7889 when needed.
7890 (fetch_altivec_register, store_altivec_register): New functions.
7891 (supply_vrregset, fill_vrregset): New functions.
7892 (fetch_altivec_registers, store_altivec_registers): New functions.
7893 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7894 registers as well.
7895
7896 2002-02-21 Jiri Smid <smid@suse.cz>
7897
7898 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7899
7900 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7901
7902 * Makefile.in (armnbsd-nat.o): Update dependencies.
7903 * armnbsd-nat.c (supply_gregset): New function. Common code to
7904 supply the integer register set.
7905 (supply_fparegset): New function. Similar for FPA registers.
7906 (fetch_regs, fetch_fp_regs): Use them.
7907 (fetch_core_registers): Likewise.
7908 (fetch_elfcore_registers): New function.
7909 (arm_netbsd_elfcore_fns): New core-file type specification.
7910 (_initialize_arm_netbsd_nat): Register it.
7911
7912 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7913
7914 * armnbsd-nat.c: Include gdbcore.h.
7915 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7916 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7917 'void' to declaration, to shut up ARI.
7918 (fetch_core_registers): Make static. Rewrite using supply_register.
7919 (arm_netbsd_core_fns): New core-file type specification.
7920 (_initialize_arm_netbsd_nat): New function.
7921
7922 2002-02-21 Christopher Faylor <cgf@redhat.com>
7923
7924 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7925 value.
7926
7927 2002-02-20 Christopher Faylor <cgf@redhat.com>
7928
7929 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7930 fails.
7931
7932 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7933
7934 * jv-exp.y (parse_number): Change type of implicit longs
7935 to builtin_type_uint64.
7936
7937 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7938
7939 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7940 to be an integer instead of a `union wait'.
7941
7942 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7943
7944 * mips-linux-nat.c: Call the operating system GNU/Linux.
7945 * mips-linux-tdep.c: Likewise.
7946 * mips-tdep.c: Likewise.
7947
7948 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7949
7950 Fix PR gdb/265.
7951 * jv-exp.y (parse_number): Handle 64-bit integers.
7952
7953 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7954
7955 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7956 AC_STDC_HEADERS to AC_HEADER_STDC.
7957 * gdbserver/configure: Regenerated.
7958
7959 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7960
7961 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7962 is defined.
7963 * sparc-tdep.c (get_longjmp_target): Likewise.
7964
7965 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7966
7967 * News: Add news about ARM and Multi-arch. Mention the new target
7968 arm*-*-netbsd*.
7969
7970 2002-02-19 Jim Blandy <jimb@redhat.com>
7971
7972 * stabsread.c (error_type_complaint): Improve error message.
7973
7974 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
7975
7976 * gdbserver/README: Update documentation.
7977 * gdbserver/configure.in: Update configury to match documentation.
7978 * gdbserver/Makefile.in: Likewise.
7979 * gdbserver/configure: Regenerated.
7980 * gdbserver/aclocal.m4: New file, generated by aclocal.
7981 * gdbserver/config.in: New file, generated by autoheader.
7982
7983 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7984
7985 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7986 armnbsd-nat.c.
7987
7988 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7989
7990 * arm-tdep.h (enum arm_float_model): New enum.
7991 (struct gdbarch_tdep): Add fp_model.
7992 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7993 up floating-point conversions until we know the floating-point model
7994 in use by the inferior. Don't complain about being unable to
7995 determine the ABI of the inferior when we don't have one.
7996 (arm_extract_return_value): Support different floating-point models.
7997 (arm_store_return_value): Likewise.
7998 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
7999 ARM_FLOAT_SOFT.
8000 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8001
8002 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8003
8004 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8005 of ``current_gdbarch''.
8006
8007 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8008
8009 * armnbsd-nat.c : ANSIfy all function declarations.
8010 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8011 (fetch_inferior_registers): Re-implement in terms of above.
8012 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8013 (store_inferior_registers): Re-implement in terms of above.
8014
8015 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8016
8017 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8018 kernel.
8019 * arm-linux-tdep.c: Likewise.
8020 * config/arm/tm-linux.h: Likewise.
8021
8022 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8023
8024 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8025 * config/arm/nbsd.mt (TM_FILE): Delete.
8026 * config/arm/tm-nbsd.h: Delete.
8027
8028 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8029
8030 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8031 Initialize CALL_DUMMY_LENGTH.
8032
8033 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8034
8035 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8036 function.
8037 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8038 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8039 defines one thing and that is incorrect for this port.
8040 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8041
8042 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8043
8044 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8045
8046 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8047
8048 * win32-nat.c (display_selector): New function. Displays information
8049 about the information returned by GetThreadSelectorEntry API function.
8050 (display_selectors): New function. Displays the infomation of
8051 the selector given as argument, or of CS, DS ans FS selectors
8052 if no argument is given.
8053 ( _initialize_inftarg): Add "w32" as info prefix command.
8054 Add "info w32 selector" as command calling display_selectors.
8055
8056 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8057
8058 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8059 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8060 if not defined.
8061
8062 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8063
8064 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8065
8066 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8067
8068 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8069 (arm_fix_call_dummy): Call it.
8070 (arm_call_dummy_breakpoint_offset): Delete.
8071 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8072 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8073
8074 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8075
8076 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8077 Default to func_frame_chain_valid.
8078 * gdbarch.h, gdbarch.c: Re-generate.
8079 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8080
8081 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8082
8083 * ppc-linux-nat.c: Update copyright.
8084 (fetch_register, store_register): Add tid parameter, don't compute
8085 tid here.
8086 (fetch_ppc_registers, store_ppc_registers): Add tid
8087 parameter. Pass it along to callees.
8088 (fetch_inferior_registers, store_inferior_registers): Compute tid
8089 here, and pass it to calleed functions.
8090 (fill_gregset, supply_fpregset): Clean up formatting.
8091
8092 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8093
8094 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8095 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8096
8097 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8098
8099 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8100 * gdbarch.c gdbarch.h: Regenerate.
8101 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8102 function.
8103 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8104 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8105 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8106
8107 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8108 * arm-tdep.c (arm_get_longjmp_target): New function.
8109 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8110 this to a positive value register arm_get_longjmp_target as the
8111 longjmp handler.
8112 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8113 (arm_linux_init_abi): Set up longjmp description in tdep.
8114 * armnbsd-nat.c (get_longjmp_target): Delete.
8115 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8116 description in tdep.
8117 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8118 (get_longjmp_target): Delete declaration.
8119 (GET_LONGJMP_TARGET): Delete.
8120 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8121 (GET_LONGJMP_TARGET): Delete.
8122
8123 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8124
8125 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8126 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8127 of ``current_gdbarch''.
8128
8129 2002-02-17 Tom Tromey <tromey@redhat.com>
8130
8131 * cli/cli-cmds.c (compare_strings): New function.
8132 (complete_command): Only print each unique item once.
8133 * completer.h (complete_line): Declare.
8134 * completer.c (complete_line): New function.
8135 (line_completion_function): Use it.
8136
8137 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8138
8139 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8140 * gdbarch.h, gdbarch.c: Re-generate.
8141
8142 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8143
8144 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8145
8146 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8147
8148 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8149 * valops.c (value_arg_coerce): Don't take the address of a reference
8150 to convert an argument to a reference.
8151
8152 2002-02-15 Christopher Faylor <cgf@redhat.com>
8153
8154 * win32-nat.c (get_image_name): New function.
8155 (handle_load_dll): Use get_image_name function.
8156 (get_child_debug_event): Avoid registering debug events until possibly
8157 execed process is started.
8158 (child_create_inferior): Allow invocation via shell so that command
8159 line redirection, etc. works ok.
8160 (_initialize_inftarg): Add new command: "set shell" to control whether
8161 a shell is used to start a process.
8162
8163 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8164
8165 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8166 instead of find_register_by_number.
8167 (cannot_store_register): Likewise.
8168
8169 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8170
8171 * dwarf2read.c: Replace fprintf (stderr, ...) by
8172 fprintf_unfiltered (gdb_stderr, ...).
8173
8174 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8175
8176 * gdbserver/gdbserver.1: Document --attach.
8177
8178 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8179
8180 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8181 descriptions.
8182 * arm-tdep.c (arm_default_arm_le_breakpoint)
8183 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8184 (arm_default_thumb_be_breakpoint): New. Initialize them from
8185 traditional breakpoint defines.
8186 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8187 (arm_gdbarch_init): Initialize new breakpoint variables.
8188 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8189 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8190 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8191 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8192 code out to ...
8193 (arm_netbsd_init_abi_common): ... here; new function.
8194 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8195 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8196 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8197 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8198
8199 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8200
8201 * arm-tdep.h (enum arm_abi): New enum.
8202 (struct gdbarch_tdep): New structure.
8203 (LOWEST_PC): Provide a default.
8204 (arm_gdbarch_register_os_abi): Declare new function.
8205 * arm-tdep.c (arm_abi_names): New array.
8206 (process_note_abi_tag_sections): New function.
8207 (get_elfosabi): New function.
8208 (arm_gdbarch_register_os_abi): New function.
8209 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8210 support for that ABI has been built in, then call the appropriate
8211 configuration routine. Use gdbarch_num_regs() to get the number
8212 of registers.
8213 (arm_dump_tdep): New function.
8214 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8215 place-holder functions.
8216 (_initialize_arm_tdep): Register them.
8217 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8218
8219 * armnbsd-tdep.c: New file.
8220 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8221 * config/arm/nbsd.mt (TDEPFILES): Add it.
8222 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8223
8224 * armnbsd-nat.c: Include regcache.h.
8225 * Makefile.in (armnbsd-nat.o): Update dependency list.
8226
8227 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8228
8229 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8230
8231 * gdbserver/Makefile.in: Fix typos in target rules.
8232
8233 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8234
8235 Fix part of PR gdb/267.
8236 * linespec.c (find_methods): Handle constructors specially for now.
8237
8238 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8239
8240 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8241 handling.
8242 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8243 standard_coerce_float_to_double().
8244
8245 2002-02-14 Christopher Faylor <cgf@redhat.com>
8246
8247 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8248 GDBINIT_FILENAME.
8249
8250 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8251
8252 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8253 find_variant_by_name, because it confuses the multiarch
8254 framework. Return NULL if there isn't an architecture with the
8255 user supplied name, instead of forcing a different one without
8256 recording the change with the multiarch machinery.
8257 (find_variant_by_name): Delete.
8258
8259 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8260
8261 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8262 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8263
8264 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8265
8266 * stack.c (print_frame_info_base): When calling
8267 print_frame_info_listing_hook, set current_source_symtab.
8268
8269 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8270
8271 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8272 and remove unused $(INCLUDE_DIR).
8273 Add regcache.c to OBS.
8274 Add generated register protocol files to clean target.
8275 Update dependencies for new objects, obsolete old target code.
8276
8277 * gdbserver/linux-low.c: Remove all platform-specific code to
8278 new files. Remove various dead code. Update to use regcache
8279 functionality.
8280 * gdbserver/remote-utils.c (fromhex): Add return statement
8281 to quiet warning.
8282 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8283 constant.
8284 (input_interrupt): Add integer parameter to match prototype
8285 of a signal handler.
8286 (outreg): Use register_data ().
8287 (prepare_resume_reply): Use gdbserver_expedite_regs.
8288 * gdbserver/server.c (main): Dynamically allocate own_buf because
8289 PBUFSIZ is no longer constant. Use registers_to_string () and
8290 registers_from_string ().
8291 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8292 for error (), fatal (), and warning (). Update definition of
8293 PBUFSIZ to use regcache functionality. Add include guard.
8294 * gdbserver/utils.c (fatal): Add missing ``const''.
8295 (warning): New function.
8296
8297 * regformats/regdat.sh: Include "regcache.h" in generated files.
8298 Provide init_registers () function.
8299 * regformats/regdef.h: Add prototype for set_register_cache ().
8300 Add include guard.
8301
8302 * gdbserver/linux-arm-low.c: New file.
8303 * gdbserver/linux-i386-low.c: New file.
8304 * gdbserver/linux-ia64-low.c: New file.
8305 * gdbserver/linux-m68k-low.c: New file.
8306 * gdbserver/linux-mips-low.c: New file.
8307 * gdbserver/linux-ppc-low.c: New file.
8308 * gdbserver/linux-sh-low.c: New file.
8309
8310 * gdbserver/regcache.c: New file.
8311 * gdbserver/regcache.h: New file.
8312
8313 * gdbserver/low-linux.c: Removed obsolete file.
8314
8315 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8316
8317 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8318 * config/i386/linux.mt: Likewise.
8319 * config/ia64/linux.mt: Likewise.
8320 * config/m68k/linux.mh: Likewise.
8321 * config/powerpc/linux.mh: Likewise.
8322 * config/mips/linux.mt: Likewise.
8323
8324 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8325
8326 * config/i386/i386lynx.mh: Mark gdbserver variables
8327 as (currently) obsolete for this target.
8328 * config/i386/nbsd.mt: Likewise.
8329 * config/i386/nbsdelf.mt: Likewise.
8330 * config/m32r/m32r.mt: Likewise.
8331 * config/m68k/m68klynx.mh: Likewise.
8332 * config/m68k/nbsd.mt: Likewise.
8333 * config/m68k/sun3os4.mh: Likewise.
8334 * config/mips/vr5000.mt: Likewise.
8335 * config/ns32k/nbsd.mt: Likewise.
8336 * config/pa/hppabsd.mh: Likewise.
8337 * config/pa/hppaosf.mh: Likewise.
8338 * config/powerpc/nbsd.mt: Likewise.
8339 * config/rs6000/rs6000lynx.mh: Likewise.
8340 * config/s390/s390.mt: Likewise.
8341 * config/s390/s390x.mt: Likewise.
8342 * config/sparc/sparclynx.mh: Likewise.
8343 * config/sparc/sun4os4.mh: Likewise.
8344 * config/i386/x86-64linux.mt: Likewise.
8345 * config/sparc/linux.mh: Likewise.
8346
8347 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8348
8349 * configure.tgt: Configure gdbserver only for known working
8350 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8351 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8352 SUBDIRS if it is configured. Update comment for ${nativefile}.
8353 * configure: Regenerated.
8354
8355 2002-02-13 Michael Snyder <msnyder@redhat.com>
8356
8357 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8358
8359 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8360 (default_gcore_mach): Just return 0, work around a problem in bfd.
8361 (default_gcore_target): OK to return NULL if exec_bfd is null.
8362 (make_mem_sec): Use a cast, avoid a warning.
8363
8364 * procfs.c (find_memory_regions_callback): Use a cast instead of
8365 calling host_pointer_to_address (which complains if
8366 sizeof (host pointer) != sizeof (target pointer)).
8367 (procfs_make_note_section): Avoid overflow in psargs string.
8368
8369 * procfs.c (procfs_make_note_section): Make the default
8370 implementation return an error.
8371
8372 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8373
8374 * procfs.c (procfs_make_note_section): Provide a default definition
8375 (for alpha-dec-osf4.0f). Fix typos.
8376
8377 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8378
8379 * linux-proc.c: Add include of regcache.h.
8380 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8381
8382 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8383
8384 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8385 * memattr.c (create_mem_region): Disallow useless empty region.
8386 Regions are half-open intervals, so allow [A..B) [B..C) as
8387 non-overlapping.
8388
8389 2002-02-13 Michael Chastain <mec@shout.net>
8390
8391 * defs.h: Kill CONST_PTR.
8392 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8393 * c-lang.c (c_builtin_types): Likewise.
8394 * ch-lang.c (ch_builtin_types): Likewise.
8395 * f-lang.c (f_builtin_types): Likewise.
8396 * language.c (unknown_builtin_types): Likewise.
8397 * m2-lang.c (m2_builtin_types): Likewise.
8398 * p-lang.c (pascal_builtin_types): Likewise.
8399 * scm-lang.c (c_builtin_types): Likewise.
8400
8401 2002-02-13 Keith Seitz <keiths@redhat.com>
8402
8403 * arm-tdep.h (arm_get_next_pc): Add declaration.
8404
8405 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8406
8407 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8408 with other related struct-returning functions.
8409 (arm_extract_struct_value_address): New function.
8410 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8411 initialize float_format, double_format and long_double_format as
8412 appropriate to the endianness of the target.
8413 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8414 (arm_use_struct_convention): Delete declaration.
8415 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8416
8417 2002-02-13 Keith Seitz <keiths@redhat.com>
8418
8419 * defs.h (core_addr_to_string_nz): New function.
8420
8421 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8422
8423 Apply missing bits of 2002-01-15 patch.
8424 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8425 (fill_fpregset): Use i387_fill_fsave.
8426
8427 2002-02-12 Keith Seitz <keiths@redhat.com>
8428
8429 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8430 (core_addr_to_string_nz): New function.
8431
8432 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8433
8434 * arm-linux-nat.c: Really include arm-tdep.h.
8435 * config/arm/tm-linux.h (struct type, struct value): Declare.
8436
8437 2002-02-11 Michael Snyder <msnyder@redhat.com>
8438
8439 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8440 (gcore section): Ifdef for Solaris and Unixware only.
8441 (procfs_do_thread_registers): Unixware needs one lwpstatus
8442 per thread (not one prstatus or pstatus).
8443 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8444 not over all gdb threads. For unixware, call elfcore_write_pstatus
8445 once before iterating over threads.
8446
8447 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8448
8449 * arm-tdep.h: New file.
8450 * arm-tdep.c: Include arm-tdep.h.
8451 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8452 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8453 (arm_print_float_info, arm_register_type, convert_to_extended)
8454 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8455 (arm_extract_return_value, arm_register_name): Make static.
8456 (arm_software_single_step): Similarly. Fix types in declaration.
8457 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8458 (arm_store_return_value, arm_store_struct_return): New functions.
8459 (arm_gdbarch_init): Register the above functions. Also register
8460 call_dummy_start_offset, sizeof_call_dummy_words,
8461 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8462 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8463 max_register_virtual_size, register_size. Set up
8464 prologue_cache.saved_regs here, rather than ...
8465 (_initialize_arm_tdep): ... here.
8466 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8467 declarations.
8468 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8469 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8470 (arm_print_float_info, arm_register_type, convert_to_extended)
8471 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8472 (arm_extract_return_value, arm_register_name): Delete declarations.
8473 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8474 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8475 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8476 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8477 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8478 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8479 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8480 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8481 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8482 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8483 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8484 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8485 interface.
8486 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8487 * remote-rdi.c remote-rdp.c: Likewise.
8488 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8489 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8490 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8491 definition.
8492
8493 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8494 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8495 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8496 from non-ARM_ prefixed definitions.
8497 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8498 all uses of above.
8499 * remote-rdi.c remote-rdp.c: Likewise.
8500 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8501
8502 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8503
8504 * arm-tdep.c (arm_frameless_function_invocation)
8505 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8506 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8507 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8508 (arm_pop_frame, arm_get_next_pc): Make static.
8509 (arm_gdbarch_init): Register above in gdbarch structure.
8510 (arm_read_fp): Renamed from arm_target_read_fp.
8511 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8512 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8513 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8514 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8515 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8516 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8517 (arm_pc_is_thumb_dummy): Delete declarations.
8518 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8519 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8520 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8521 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8522
8523 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8524
8525 * symtab.c (compare_search_syms): New function.
8526 (sort_search_symbols): New function.
8527 (search_symbols): Sort symbols after searching rather than
8528 before.
8529
8530 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8531
8532 * NEWS: Linux -> GNU/Linux.
8533
8534 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8535
8536 * gdbarch.sh: For for level one methods, disallow a definition
8537 when partially multi-arched. Add comments explaining rationale.
8538 * gdbarch.h: Re-generate.
8539
8540 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8541
8542 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8543 multi-arch partial.
8544
8545 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8546
8547 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8548 field. Use diff -u.
8549 * gdbarch.c: Re-generate.
8550
8551 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8552
8553 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8554 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8555 partial.
8556
8557 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8558
8559 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8560 multi-arch partial.
8561 (PUSH_ARGUMENTS): Switch to using predefault.
8562 * gdbarch.c: Regenerate.
8563
8564 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8565
8566 * valops.c (PUSH_ARGUMENTS): Delete definition.
8567 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8568 partial. Default to default_push_arguments.
8569 * gdbarch.h, gdbarch.c: Regenerate.
8570
8571 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8572
8573 * defs.h (throw_exception): Rename return_to_top_level. Update
8574 comments.
8575 * utils.c (error_stream, internal_verror, quit): Ditto.
8576 * top.c (throw_exception, catcher): Ditto.
8577 * sparclet-rom.c (sparclet_load): Ditto.
8578 * remote.c (interrupt_query, minitelnet): Ditto.
8579 * remote-sds.c (interrupt_query): Ditto.
8580 * remote-mips.c (mips_error, mips_kill): Ditto.
8581 * ocd.c (interrupt_query): Ditto.
8582 * monitor.c (monitor_interrupt_query): Ditto.
8583 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8584 * target.h: Update comment.
8585
8586 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8587
8588 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8589
8590 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8591 default_double_format.
8592 * gdbarch.h, gdbarch.c: Re-generate.
8593 * findvar.c (floatformat_unknown): Delete variable definition.
8594 * doublest.h (floatformat_unknown): Delete variable declaration.
8595
8596 2002-02-09 Jim Blandy <jimb@redhat.com>
8597
8598 * stabsread.c (read_type): Add code to parse Sun's syntax for
8599 prototyped function types.
8600
8601 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8602
8603 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8604 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8605
8606 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8607
8608 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8609 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8610 now _initialize_xcoffsolib gets called again and overrides the
8611 commands from solib.c in a native configuration.
8612
8613 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8614
8615 * doublest.c (store_typed_floating): Don't try to return a value.
8616 Fixes PR gdb/290.
8617
8618 2002-02-08 Jim Blandy <jimb@redhat.com>
8619
8620 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8621 is prototyped and has no arguments, print its argument list as
8622 `(void)'.
8623
8624 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8625
8626 * MAINTAINERS (write-after-approval): Add myself.
8627 (paper-trail): I've escaped!
8628
8629 2002-02-08 Christopher Faylor <cgf@redhat.com>
8630
8631 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8632 changes.
8633 (_initialize_check_for_gdb_ini): Ditto.
8634
8635 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8636
8637 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8638 xaprintf -> xasprintf.
8639
8640 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8641
8642 * win32-nat.c: Remove use of printf and sprintf functions.
8643
8644 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8645
8646 * arm-tdep.c (arm_frame_chain_valid): Make static.
8647 (arm_push_arguments): Likewise.
8648 (arm_gdbarch_init): New function.
8649 (_initialize_arm_tdep): Call it.
8650 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8651 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8652 (FRAME_CHAIN_VALID): Delete.
8653 (arm_frame_chain_valid): Delete declaration.
8654 (PUSH_ARGUMENTS): Delete.
8655 (arm_push_arguments): Delete declaration.
8656 (CALL_DUMMY_P): Delete.
8657
8658 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8659 Corinna Vinschen <vinschen@redhat.com>
8660
8661 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8662 on builtin float types.
8663
8664 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8665
8666 * utils.c: Include <curses.h> before "bfd.h".
8667 * tui/tui-hooks.c: Likewise.
8668 * tui/tui.c: Likewise.
8669 * tui/tuiCommand.c: Likewise.
8670 * tui/tuiData.c: Likewise.
8671 * tui/tuiDataWin.c: Likewise.
8672 * tui/tuiDisassem.c: Likewise.
8673 * tui/tuiGeneralWin.c: Likewise.
8674 * tui/tuiIO.c: Likewise.
8675 * tui/tuiLayout.c: Likewise.
8676 * tui/tuiRegs.c: Likewise.
8677 * tui/tuiSource.c: Likewise.
8678 * tui/tuiSourceWin.c: Likewise.
8679 * tui/tuiStack.c: Likewise.
8680 * tui/tuiWin.c: Likewise.
8681
8682 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8683
8684 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8685 to include space for pseudoregs as well. Update loops accordingly.
8686 (sh_fp_frame_init_saved_regs): Ditto.
8687 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8688
8689 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8690
8691 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8692 Add Richard Earnshaw to Arm maintainers.
8693
8694 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8695
8696 * defs.h (warning_begin): Delete declaration.
8697
8698 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8699 Delete macro.
8700
8701 2002-02-07 Michael Snyder <msnyder@redhat.com>
8702
8703 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8704 Logic bug, remove misplaced else.
8705
8706 2002-02-07 Klee Dienes <klee@apple.com>
8707
8708 * fork-inferior.c (fork_inferior): Add '!' to the list of
8709 characters that need to be quoted when building a string for the
8710 shell. Quote '!' specifically with a backslash, since CSH chokes
8711 when trying to evaluate "str!str".
8712
8713 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8714
8715 * rdi-share/host.h: Only provide a typedef for bool if it is not
8716 defined.
8717
8718 2002-02-04 Michael Snyder <msnyder@redhat.com>
8719
8720 * breakpoint.h (enum bptype): Add new overlay event bp type.
8721 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8722
8723 * breakpoint.c (create_internal_breakpoint): New function.
8724 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8725 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8726 (create_thread_event_breakpoint): Ditto.
8727 (create_solib_event_breakpoint): Ditto.
8728 (create_overlay_event_breakpoint): New function.
8729 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8730 (update_breakpoints_after_exec): Delete and re-initialize
8731 overlay event breakpoints after an exec. Add FIXME comment
8732 about longjmp breakpoint.
8733 (print_it_typical): Ignore overlay event breakpoints.
8734 (print_one_breakpoint): Ditto.
8735 (mention): Ditto.
8736 (bpstat_what): Do not stop for overlay event breakpoints.
8737 (delete_breakpoint): Don't delete overlay event breakpoints.
8738 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8739 (breakpoint_re_set): Re-create overlay event breakpoint.
8740
8741 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8742 (overlay_manual_command): Disable overlay breakpoints.
8743 (overlay_off_command): Disable overlay breakpoints.
8744
8745 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8746
8747 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8748 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8749 to here from config/tm-arm.h.
8750 (coff_sym_is_thumb): Make static.
8751 (arm_elf_make_msymbol_special): New function.
8752 (arm_coff_make_msymbol_special): New function.
8753 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8754 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8755 (coff_sym_is_thumb): Delete declaration.
8756 (arm_elf_make_msymbol_special): Declare.
8757 (arm_coff_make_msymbol_special): Declare.
8758 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8759 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8760
8761 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8762
8763 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8764
8765 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8766
8767 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8768 * gdbarch.c gdbarch.h: Regenerate.
8769 * arch-utils.c (default_print_float_info): New function.
8770 * arch-utils.h (default_print_float_info): Prototype it.
8771 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8772 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8773 (PRINT_FLOAT_INFO): Document it.
8774
8775 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8776 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8777 (PRINT_FLOAT_INFO): Define.
8778
8779 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8780
8781 * win32-nat.c (_initialize_check_for_gdb_ini):
8782 Add typecast to sprintf argument to suppress a warning.
8783
8784 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8785
8786 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8787 to allow easier handling of pass state.
8788 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8789 that gives exception name and address.
8790 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8791 and set last_sig value to ourstatus->value.sig. Some missing
8792 exceptions added.
8793 (child_continue): Correctly report continue_status.
8794 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8795 TARGET_SIGNAL_0 (new default value).
8796 (child_resume): consider sig argument passed to decide if
8797 the exception should be passed to debuggee or not.
8798
8799 2002-02-05 Michael Snyder <msnyder@redhat.com>
8800
8801 * regcache.c (fetch_register): Call target_fetch_register
8802 only if we don't call FETCH_PSEUDO_REGISTER.
8803 (store_register): Call target_store_register only if we
8804 don't call STORE_PSEUDO_REGISTER.
8805
8806 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8807
8808 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8809 ELF_MAKE_MSYMBOL_SPECIAL.
8810 * gdbarch.c, gdbarch.h: Regenerate.
8811 * arch-utils.c (default_make_msymbol_special): New function.
8812 * arch-utils.h (default_make_msymbol_special): Export.
8813 * elfread.c (elf_symtab_read): Compile use of
8814 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8815 multiarched.
8816 * coffread.c (coff_symtab_read): Ditto, for
8817 COFF_MAKE_MSYMBOL_SPECIAL.
8818
8819 2002-02-05 Jim Blandy <jimb@redhat.com>
8820
8821 * solib-svr4.c (svr4_truncate_ptr): New function.
8822 (svr4_relocate_section_addresses): Do the address arithmetic with
8823 the appropriate truncation for target addresses, even when
8824 CORE_ADDR is larger than a target address.
8825
8826 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8827
8828 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8829 to (int *).
8830
8831 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8832
8833 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8834 code.
8835
8836 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8837
8838 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8839
8840 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8841
8842 * gdbserver/linux-low.c: Remove unused include files.
8843
8844 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8845
8846 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8847 (read_inferior_memory): Use it.
8848 (write_inferior_memory): Likewise.
8849
8850 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8851
8852 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8853 grubbing through sys_errlist.
8854
8855 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8858
8859 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8860 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8861
8862 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8863
8864 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8865 (do_sfunc, set_cmd_sfunc): New functions.
8866
8867 * command.h (struct cmd_list_element): Add field func.
8868 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8869 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8870 * cli/cli-decode.h: Ditto.
8871
8872 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8873 (help_all, help_cmd_list): Ditto.
8874 (find_cmd, complete_on_cmdlist): Ditto.
8875 * top.c (execute_command): Ditto.
8876
8877 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8878 function.sfunc.
8879
8880 * infcmd.c (notice_args_read): Fix function signature.
8881
8882 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8883 * cli/cli-decode.c (add_set_cmd): Ditto.
8884 * utils.c (initialize_utils): Ditto.
8885 * maint.c (_initialize_maint_cmds): Ditto.
8886 * infrun.c (_initialize_infrun): Ditto.
8887 * demangle.c (_initialize_demangler): Ditto.
8888 * remote.c (add_packet_config_cmd): Ditto.
8889 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8890 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8891 * proc-api.c (_initialize_proc_api): Ditto.
8892 * kod.c (_initialize_kod): Ditto.
8893 * valprint.c (_initialize_valprint): Ditto.
8894 * top.c (init_main): Ditto.
8895 * infcmd.c (_initialize_infcmd): Ditto.
8896 * corefile.c (_initialize_core): Ditto.
8897 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8898 * arch-utils.c (initialize_current_architecture): Ditto.
8899 (_initialize_gdbarch_utils): Ditto.
8900 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8901
8902 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8903 * wince.c (_initialize_inftarg): Ditto.
8904 * symfile.c (_initialize_symfile): Ditto.
8905 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8906 * language.c (_initialize_language): Ditto.
8907 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8908
8909 2002-02-04 Michael Snyder <msnyder@redhat.com>
8910
8911 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8912
8913 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8914
8915 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8916 Add rules for building the register data files.
8917
8918 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * regformats/regdat.sh: Add braces to the definition of
8921 expedite_regs_${arch}.
8922
8923 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8924
8925 * regformats/regdef.h (struct reg): Add comment describing the
8926 requirements for offset and size fields.
8927
8928 2002-02-04 Andreas Schwab <schwab@suse.de>
8929
8930 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8931 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8932
8933 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
8934
8935 * gdbarch.sh (copyright): Update years in generated header.
8936 (SMASH_TEXT_ADDRESS): Add rule.
8937 * gdbarch.h, gdbarch.c: Re-generate.
8938 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8939 * dbxread.c: Likewise.
8940 * dwarfread.c: Likewise.
8941 * elfread.c: Likewise.
8942 * somread.c: Likewise.
8943
8944 * arm-tdep.c (arm_smash_text_address): New function.
8945 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8946
8947 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8948
8949 Add support for hardware watchpoints on win32 native.
8950 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8951 CONTEXT_DEBUG_REGISTERS.
8952 (dr variable): New variable. Static array containing a local copy
8953 of debug registers.
8954 (debug_registers_changed): New variable. Reflects when debug registers
8955 are changed and need to be written to inferior.
8956 (debug_registers_used): New variable. Reflects when any debug register
8957 was set, used when new threads are created.
8958 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8959 i386-nat code.
8960 (thread_rec): Set dr array if id is the thread of current_event .
8961 (child_continue, child_resume): Change the debug registers for all
8962 threads if debug_registers_changed.
8963 (child_add_thread): Change the debug registers if debug_registers_used.
8964 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8965 Link nm.h to new nm-cygwin.h file.
8966 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8967 of hardware registers.
8968
8969 2002-02-03 Andrew Cagney <ac131313@redhat.com>
8970
8971 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8972 Restore behavour broken by 2002-01-20 Andrew Cagney
8973 <ac131313@redhat.com> IEEE_FLOAT removal.
8974
8975 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8976
8977 * c-valprint.c (c_val_print): Pass a proper valaddr to
8978 cp_print_class_method.
8979 * valops.c (search_struct_method): If there is only one method
8980 and args is NULL, return that method.
8981
8982 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8983
8984 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8985 accessing tag_name directly.
8986
8987 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8988
8989 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8990 of accessing tag_name directly.
8991
8992 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8993
8994 PR gdb/280
8995 * gdbtypes.c (replace_type): New function.
8996 * gdbtypes.h (replace_type): Add prototype.
8997 * stabsread.c (read_type): Use replace_type.
8998
8999 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9000
9001 * Makefile.in (memattr.o): Add missing dependencies rule.
9002
9003 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9004
9005 * breakpoint.c (break_at_finish_command): Really export.
9006 (break_at_finish_at_depth_command): Ditto.
9007 (tbreak_at_finish_command): Ditto.
9008 * hppa-tdep.c: Include completer.h.
9009 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9010 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9011
9012 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9013
9014 * utils.c (do_write): New function.
9015 (error_stream): Rewrite combining the code from error_begin and
9016 verror.
9017 (verror): Rewrite using error_stream.
9018 (error_begin): Delete function.
9019
9020 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9021
9022 * utils.c (error_begin): Make static.
9023 * defs.h (error_begin): Delete declaration.
9024
9025 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9026 (decode_line_1): Use cplusplus_error instead of error_begin,
9027 cplusplus_hint and return_to_top_level.
9028 * coffread.c (coff_symfile_read): Use error instead of error_begin
9029 and return_to_top_level.
9030 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9031
9032 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9033
9034 * language.h (type_error, range_error): Make string parameter
9035 constant.
9036 * language.c (warning_pre_print): Delete extern declaration.
9037 * dwarfread.c (warning_pre_print): Ditto.
9038 * language.c (type_error, range_error): Rewrite to use verror and
9039 vwarning instead of warning_begin.
9040
9041 2002-02-01 Michael Snyder <msnyder@redhat.com>
9042
9043 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9044 (set_ignore_count): Move misplaced comment back where it belongs.
9045
9046 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9047
9048 * command.h (NO_FUNCTION): Delete macro.
9049 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9050 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9051 * tracepoint.c (_initialize_tracepoint): Ditto.
9052 * cli/cli-decode.c (add_set_cmd): Ditto.
9053 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9054
9055 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9056
9057 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9058 Update ``this'' pointer when calling virtual functions.
9059
9060 2002-02-01 Michael Snyder <msnyder@redhat.com>
9061
9062 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9063 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9064
9065 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9066
9067 * regformats/reg-arm.dat: New file.
9068 * regformats/reg-i386.dat: New file.
9069 * regformats/reg-ia64.dat: New file.
9070 * regformats/reg-m68k.dat: New file.
9071 * regformats/reg-mips.dat: New file.
9072 * regformats/reg-ppc.dat: New file.
9073 * regformats/reg-sh.dat: New file.
9074 * regformats/regdef.h: New file.
9075 * regformats/regdat.sh: New file.
9076
9077 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9078
9079 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9080 (arm_frame_args_address, arm_frame_locals_address): New functions.
9081 (arm_frame_num_args): New function.
9082 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9083 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9084 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9085
9086 2002-01-31 Michael Snyder <msnyder@redhat.com>
9087
9088 * breakpoint.c (break_at_finish_command): Export.
9089 (break_at_finish_at_depth_command): Export.
9090 (tbreak_at_finish_command): Export.
9091 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9092 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9093 "tbreak" commands, which are HPPA specific.
9094
9095 * printcmd.c (disassemble_command): Remove an ancient
9096 artifact of an old merge.
9097
9098 * symfile.h (enum overlay_debugging_state):
9099 Define enum constant values for overlay mode.
9100 * symfile.c (overlay_debugging): Use enums instead of literals.
9101 (overlay_is_mapped, overlay_auto_command,
9102 overlay_manual_command): Ditto.
9103
9104 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9105 breakpoint_here_p, breakpoint_inserted_here_p,
9106 breakpoint_thread_match, bpstat_stop_status,
9107 describe_other_breakpoints, check_duplicates, clear_command):
9108 Coding standard fixes.
9109
9110 * target.c (target_xfer_memory): Add spaces, coding standard.
9111 (do_xfer_memory): Add missing line to trust-readonly
9112 code: check bfd SEC_READONLY flag for section.
9113
9114 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9115
9116 * PROBLEMS: Fix typo, 5.1->5.1.1.
9117
9118 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9121 data symbols, since we search based on textlow and texthigh.
9122 (find_pc_sect_symtab): Likewise.
9123
9124 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9125
9126 * defs.h (vwarning): Declare.
9127 * utils.c (vwarning): New function.
9128 (warning): Call vwarning.
9129 (warning_begin): Delete function.
9130
9131 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9132 the warning message.
9133 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9134 warning_begin.
9135
9136 2002-01-30 Michael Snyder <msnyder@redhat.com>
9137
9138 * NEWS: Mention "set trust-readonly-sections" command.
9139 Mention generate-core-file command.
9140
9141 2002-01-15 Michael Snyder <msnyder@redhat.com>
9142
9143 * target.c: New command, "set trust-readonly-sections on".
9144 (do_xfer_memory): Honor the suggestion to trust readonly sections
9145 by reading them from the object file instead of from the target.
9146 (initialize_targets): Register command "set trust-readonly-sections".
9147
9148 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9149
9150 * parse.c (target_map_name_to_register): Simplify, search regs and
9151 pseudo-regs using a single loop.
9152
9153 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9154
9155 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9156
9157 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9158
9159 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9160 * config/i386/i386v42mp.mh: Add i387-nat.o .
9161 * i386v4-nat.c: Include i387-nat.h.
9162 (supply_fpregset): Use i387_supply_fsave.
9163 (fill_fpregset): Use i387_fill_fsave.
9164
9165 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9166
9167 * arm-tdep.c (arm_call_dummy_words): Define.
9168 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9169 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9170 (CALL_DUMMY_WORDS): Define.
9171 (arm_call_dummy_words): Declare.
9172 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9173 (arm_linux_call_dummy_words): Declare.
9174
9175 2002-01-30 Andreas Schwab <schwab@suse.de>
9176
9177 * m68klinux-nat.c: Fix last change to use regcache_collect
9178 instead of referencing registers[] directly.
9179
9180 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9181
9182 * parse.c (target_map_name_to_register): Delete code wrapped in
9183 #ifdef REGISTER_NAME_ALIAS_HOOK.
9184
9185 2002-01-28 Michael Snyder <msnyder@redhat.com>
9186
9187 * regcache.c (legacy_read_register_gen): Need to be able to
9188 read pseudo-register as well as real register.
9189 (legacy_write_register_gen): Ditto.
9190
9191 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9192
9193 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9194 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9195 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9196 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9197 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9198 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9199 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9200 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9201 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9202 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9203 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9204 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9205 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9206 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9207 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9208 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9209 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9210 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9211 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9212 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9213
9214 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9215
9216 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9217 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9218 (initialize_current_architecture): Update target_byte_order using
9219 information from BFD.
9220 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9221 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9222
9223 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9224
9225 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9226 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9227
9228 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9229 #ifdef INVALID_FLOAT.
9230 * infcmd.c (do_registers_info): Ditto.
9231 * values.c (unpack_double): Ditto. Add comment.
9232
9233 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9234 already commented out.
9235
9236 2002-01-26 Andreas Schwab <schwab@suse.de>
9237
9238 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9239 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9240 registers and add support for PTRACE_GETREGS.
9241
9242 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9243
9244 GDB 5.1.1 released from 5.1 branch.
9245 * NEWS: Add 5.1.1 news.
9246 * README: Sync with 5.1 branch.
9247
9248 2002-01-23 Fred Fish <fnf@redhat.com>
9249
9250 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9251 stabstring on initial malloc. Reallocing will copy it for us,
9252 if necessary.
9253
9254 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9255
9256 * Makefile.in (hpread_h): Delete.
9257 (HFILES_NO_SRCDIR): Remove hpread.h.
9258 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9259 (hpread.o): Update dependencies.
9260 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9261
9262 * hp-psymtab-read.c: Remove file.
9263 * hp-symtab-read.c: Remove file.
9264 * hpread.h: Remove file.
9265
9266 * hpread.c: Merge all contents of hp-psymtab-read.c,
9267 hp-symtab-read.c and hpread.h into this file, as it was prior to
9268 January 1999.
9269
9270 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9271 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9272 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9273 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9274
9275 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9276
9277 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9278 fill_gregset): Call gdbarch_tdep() just once, assign result to
9279 variable and use that, instead of calling the function several
9280 times.
9281
9282 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9283
9284 * configure.host: Accept sparcv9 as alias for sparc64.
9285 * configure.tgt: Likewise.
9286
9287 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9288
9289 * solib-aix5.c (build_so_list_from_mapfile)
9290 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9291 arguments is not reversed.
9292 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9293 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9294
9295 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9296
9297 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9298 modified version of obsolete sh_fetch_pseudo_register.
9299 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9300 (sh4_register_read): New function.
9301 (sh_pseudo_register_write): New function. Renamed and modified
9302 version of obsolete sh_store_pseudo_register.
9303 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9304 (sh4_register_write): New function.
9305 (sh_gdbarch_init): Remove setting of gdbarch function
9306 fetch_pseudo_register and store_pseudo_register. Remove setting of
9307 register_convert_to_raw, register_convert_to_virtual,
9308 register_convertible.
9309 (sh_sh4_register_convertible): Delete. No longer needed. All is
9310 taken care by architecture specific functions
9311 register_read/register_write.
9312 (sh_sh4_register_convert_to_virtual): Make static.
9313 (sh_sh4_register_convert_to_raw): Ditto.
9314
9315 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9316
9317 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9318 (floatformat_is_nan, floatformat_mantissa): Ditto.
9319
9320 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9321 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9322 builtin_type_ieee_double_little,
9323 builtin_type_ieee_double_littlebyte_bigword,
9324 builtin_type_m68881_ext, builtin_type_i960_ext,
9325 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9326 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9327 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9328 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9329
9330 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9331
9332 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9333 parameter. Set frameless flag if it exists and depended of
9334 whether the scanned function is frameless or not.
9335 (xstormy16_skip_prologue): If function is frameless, return
9336 result of xstormy16_scan_prologue().
9337 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9338 call.
9339
9340 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9341
9342 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9343 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9344 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9345 sh_sh4_register_byte, sh_sh4_register_raw_size,
9346 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9347 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9348 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9349 sh_store_pseudo_register, sh_do_pseudo_register): Call
9350 gdbarch_tdep() just once, assign result to variable and use that,
9351 instead of calling the function several times.
9352
9353 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9354
9355 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9356 macros instead of LAST_FPU_CTRL_REGNUM.
9357 (store_register): Likewise.
9358
9359 2002-01-21 Jim Blandy <jimb@redhat.com>
9360
9361 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9362 is up-to-date before running the program, not just when a program
9363 exits.
9364
9365 2002-01-21 Fred Fish <fnf@redhat.com>
9366
9367 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9368 when we have found all instructions we are looking for.
9369
9370 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9371
9372 * arm-tdep.c (arm_register_name): New function.
9373 (arm_registers_names): Make static.
9374 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9375 (arm_register_name): Declare.
9376 (REGISTER_NAME): Use it.
9377
9378 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9379 Kevin Buettner <kevinb@redhat.com>
9380
9381 Convert arm targets to new FRAME interface.
9382 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9383 (arm_frame_find_save_regs): Delete.
9384 (arm_frame_init_saved_regs): New.
9385 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9386 Allocate extra_info as required. Convert all uses of fsr.regs
9387 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9388 to use extra_info.
9389 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9390 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9391 (check_prologue_cache, save_prologue_cache): Likewise.
9392 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9393 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9394 (FRAME_FIND_SAVED_REGS): Delete.
9395 (arm_frame_find_saved_regs): Delete prototype.
9396 (arm_frame_init_saved_regs): New prototype.
9397 (FRAME_INIT_SAVED_REGS): Define.
9398
9399 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9400
9401 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9402
9403 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9404
9405 From Jeff Law <law@redhat.com>:
9406 * infttrace.c: Include <sys/pstat.h>.
9407 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9408 exec file if the ttrace equivalent fails.
9409
9410 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9411
9412 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9413 (closeLogFile): Ditto.
9414
9415 2002-01-20 Michael Chastain <mec@shout.net>
9416
9417 * top.c (print_gdb_version): Bump copyright year to 2002.
9418
9419 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9420
9421 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9422 Zannoni and Eli Zaretskii.
9423
9424 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9425
9426 * buildsym.c: Update copyright years.
9427 * c-typeprint.c: Likewise.
9428 * dwarf2read.c: Likewise.
9429 * f-typeprint.c: Likewise.
9430 * gdbtypes.c: Likewise.
9431 * gdbtypes.h: Likewise.
9432 * hp-symtab-read.c: Likewise.
9433 * hpread.c: Likewise.
9434 * mdebugread.c: Likewise.
9435 * p-typeprint.c: Likewise.
9436
9437 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9438
9439 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9440 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9441 byte-order selectable.
9442 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9443 * arch-utils.c: Ditto.
9444 (set_endian): Ditto.
9445 (set_endian_from_file): Ditto.
9446 * gdbserver/low-sim.c (create_inferior): Ditto.
9447 * gdbarch.sh: Ditto.
9448 * gdbarch.h: Re-generate.
9449 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9450 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9451 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9452 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9453 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9454 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9455 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9456 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9457 macro definition.
9458 * config/mips/tm-wince.h: Remove #undef of macro
9459 TARGET_BYTE_ORDER_SELECTABLE.
9460 * config/sh/tm-wince.h: Ditto.
9461
9462 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9463
9464 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9465 member function fields. Add accessor macro
9466 TYPE_FN_FIELD_ARTIFICIAL.
9467 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9468 * c-typeprint.c (c_type_print_base): Skip artificial member
9469 functions.
9470
9471 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9472
9473 * f-typeprint.c: Delete unused function f_type_print_args.
9474 * p-typeprint.c: Delete unused function pascal_type_print_args.
9475
9476 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9477
9478 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9479 comment. Add ``artificial'' to ``union field_location''.
9480
9481 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9482
9483 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9484 * mdebugread.c (parse_symbol): Likewise.
9485 * stabsread.c (define_symbol): Likewise.
9486 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9487 initializing TYPE_FIELD_BITPOS to n (obsolete).
9488 (hpread_doc_function_type): Likewise.
9489 * hpread.c (hpread_function_type): Likewise.
9490
9491 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9492
9493 * configure.in (host_makefile_frag): Only require a host makefile
9494 fragment when a native build.
9495 * configure: Re-generate.
9496
9497 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9498
9499 * doublest.h (floatformat_from_type): Declare.
9500 * doublest.c (floatformat_from_type): New function.
9501 (convert_typed_floating): Use.
9502
9503 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9504 call to function floatformat_from_type.
9505
9506 * gdbarch.sh (IEEE_FLOAT): Delete.
9507 * gdbarch.h, gdbarch.c: Re-generate.
9508 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9509 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9510 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9511 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9512 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9513 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9514 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9515 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9516 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9517 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9518 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9519 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9520
9521 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9522 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9523 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9524 * sh-tdep.c (sh_gdbarch_init): Ditto.
9525 * mips-tdep.c (mips_gdbarch_init): Ditto.
9526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9527 * cris-tdep.c (cris_gdbarch_init): Ditto.
9528
9529 2002-01-20 Jiri Smid <smid@suse.cz>
9530
9531 * configure.host, configure.tgt: Support x86-64.
9532 * NEWS: Note new target x86-64.
9533
9534 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9535 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9536 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9537 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9538 x86-64-linux-nat.o): Fix dependencies.
9539
9540 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9541
9542 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9543 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9544 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9545 * config/sparc/xm-sun4os4.h: Delete file.
9546 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9547
9548 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9549
9550 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9551 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9552 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9553 * config/i386/i386lynx.mh (XM_FILE): Delete.
9554 * config/rs6000/xm-rs6000ly.h: Delete file.
9555 * config/sparc/xm-sparclynx.h: Delete file.
9556 * config/m68k/xm-m68klynx.h: Delete file.
9557 * config/i386/xm-i386lynx.h: Delete file.
9558 * config/xm-lynx.h: Delete file.
9559 * config/djgpp/fnchange.lst: Update.
9560
9561 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9562
9563 * alpha-tdep.c (alpha_register_byte): New function.
9564 (alpha_register_raw_size): Ditto.
9565 (alpha_register_virtual_size): Ditto.
9566 (alpha_skip_prologue_internal): Renamed from
9567 alpha_skip_prologue.
9568 (alpha_skip_prologue): New version that calls
9569 alpha_skip_prologue_internal.
9570 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9571 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9572 second argument from alpha_skip_prologue.
9573 (REGISTER_BYTE): Use alpha_register_byte.
9574 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9575 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9576 (FRAMELESS_FUNCTION_INVOCATION): Use
9577 generic_frameless_function_invocation_not.
9578 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9579 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9580
9581 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9582
9583 * config/mips/xm-news-mips.h: Delete file.
9584 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9585
9586 * config/m88k/xm-m88k.h: Delete file.
9587 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9588 * config/m88k/xm-delta88v4.h: Ditto.
9589 * config/m88k/xm-delta88.h: Ditto.
9590
9591 * config/alpha/xm-fbsd.h: Delete file.
9592 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9593
9594 * config/sparc/xm-sparc.h: Delete file.
9595 * Makefile.in (xm-sun4os4.h): Delete dependency.
9596 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9597 * config/sparc/xm-sun4os4.h: Ditto.
9598 * config/sparc/xm-linux.h: Ditto.
9599
9600 * config/i386/xm-windows.h: Delete file.
9601
9602 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9603
9604 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9605 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9606
9607 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * alpha-tdep.c (alpha_call_dummy_words): New.
9610 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9611 (CALL_DUMMY_P): Define.
9612 (CALL_DUMMY_WORDS): Define.
9613 (SIZEOF_CALL_DUMMY_WORDS): Define.
9614
9615 2002-01-19 Per Bothner <per@bothner.com>
9616
9617 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9618 isn't NULL, which can happen with some gcj-3.x-produced code.
9619
9620 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9621
9622 * alpha-tdep.c (alpha_register_virtual_type): New function.
9623 (alpha_init_frame_pc_first): Ditto.
9624 (alpha_fix_call_dummy): Ditto.
9625 (alpha_store_struct_return): Ditto.
9626 (alpha_extract_struct_value_address): Ditto.
9627 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9628 alpha_register_virtual_type.
9629 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9630 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9631 alpha_extract_struct_value_address.
9632 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9633 (INIT_FRAME_PC): Use init_frame_pc_noop.
9634 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9635
9636 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9637
9638 * i386gnu-nat.c: Include "i386-tdep.h".
9639 (fetch_fpregs): Simplify code dealing with uninitialized floating
9640 point states such that it doesn't require FP7_REGNUM.
9641
9642 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9643
9644 * alpha-tdep.c (frame_extra_info): New.
9645 (alpha_find_saved_regs): Make static. Use
9646 frame->extra_info.
9647 (alpha_frame_init_saved_regs): New function.
9648 (alpha_frame_saved_pc): Use frame->extra_info.
9649 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9650 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9651 (init_extra_frame_info): Rename to...
9652 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9653 (alpha_print_extra_frame_info): New function.
9654 (alpha_frame_locals_address): Ditto.
9655 (alpha_frame_args_address): Ditto.
9656 (alpha_pop_frame): Use frame->extra_info.
9657 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9658 alpha_frame_args_address.
9659 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9660 (alpha_find_saved_regs): Remove prototype.
9661 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9662 (EXTRA_FRAME_INFO): Remove.
9663 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9664 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9665
9666 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9667
9668 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9669 (alpha_cannot_fetch_register): Ditto.
9670 (alpha_cannot_store_register): Ditto.
9671 (alpha_register_convertible): Ditto.
9672 (alpha_use_struct_convention): Ditto.
9673 * config/alpha/tm-alpha.h: Update copyright years.
9674 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9675 (INNER_THAN): Use core_addr_lessthan.
9676 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9677 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9678 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9679 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9680 (FRAME_CHAIN): Remove unnecessary cast.
9681
9682 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9683
9684 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9685 obsolete.
9686
9687 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9688
9689 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9690 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9691 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9692 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9693 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9694 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9695 * x86-64-linux-nat.c: Ditto.
9696
9697 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9698
9699 * alpha-tdep.c (alpha_register_name): New function.
9700 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9701 (REGISTER_NAME): Define.
9702
9703 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9704
9705 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9706
9707 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9708
9709 * alpha-tdep.c: Update copyright years.
9710 (alpha_next_pc): New function.
9711 (alpha_software_single_step): Ditto.
9712 * config/alpha/tm-alpha.h: Add prototype for
9713 alpha_software_single_step.
9714
9715 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9716
9717 * alphabsd-nat.c: Update copyright years.
9718 (fill_gregset): Use regcache_collect.
9719 (fill_fpregset): Likewise.
9720 (fetch_inferior_registers): Only fetch integer registers
9721 if requested to do so.
9722 (store_inferior_registers): Only store integer registers
9723 if requested to do so.
9724
9725 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9726
9727 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9728 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9729 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9730 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9731 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9732 * config/arm/linux.mh (XDEPFILES): Delete.
9733 * config/arm/nbsd.mh (XDEPFILES): Delete.
9734 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9735 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9736 * config/i386/i386m3.mh (XDEPFILES): Delete.
9737 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9738 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9739 * config/i386/fbsd.mh (XDEPFILES): Delete.
9740 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9741 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9742 * config/i386/i386v4.mh (XDEPFILES): Delete.
9743 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9744 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9745 * config/i386/i386aix.mh (XDEPFILES): Delete.
9746 * config/i386/go32.mh (XDEPFILES): Delete.
9747 * config/i386/cygwin.mh (XDEPFILES): Delete.
9748 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9749 * config/i386/i386mach.mh (XDEPFILES): Delete.
9750 * config/i386/i386v32.mh (XDEPFILES): Delete.
9751 * config/i386/linux.mh (XDEPFILES): Delete.
9752 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9753 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9754 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9755 * config/i386/i386sco.mh (XDEPFILES): Delete.
9756 * config/i386/i386v.mh (XDEPFILES): Delete.
9757 * config/i386/nbsd.mh (XDEPFILES): Delete.
9758 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9759 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9760 * config/i386/symmetry.mh (XDEPFILES): Delete.
9761 * config/i386/obsd.mh (XDEPFILES): Delete.
9762 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9763 * config/ia64/linux.mh (XDEPFILES): Delete.
9764 * config/ia64/aix.mh (XDEPFILES): Delete.
9765 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9766 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9767 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9768 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9769 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9770 * config/m68k/linux.mh (XDEPFILES): Delete.
9771 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9772 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9773 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9774 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9775 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9776 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9777 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9778 * config/m88k/delta88.mh (XDEPFILES): Delete.
9779 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9780 * config/m88k/m88k.mh (XDEPFILES): Delete.
9781 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9782 * config/mips/linux.mh (XDEPFILES): Delete.
9783 * config/mips/irix6.mh (XDEPFILES): Delete.
9784 * config/mips/irix5.mh (XDEPFILES): Delete.
9785 * config/mips/irix4.mh (XDEPFILES): Delete.
9786 * config/mips/irix3.mh (XDEPFILES): Delete.
9787 * config/mips/decstation.mh (XDEPFILES): Delete.
9788 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9789 (NATDEPFILES): Move core-aout.o to here.
9790 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9791 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9792 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9793 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9794 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9795 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9796 * config/pa/hpux11.mh (XDEPFILES): Delete.
9797 * config/powerpc/aix.mh (XDEPFILES): Delete.
9798 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9799 * config/powerpc/linux.mh (XDEPFILES): Delete.
9800 * config/romp/rtbsd.mh: Rename XDEPFILES.
9801 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9802 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9803 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9804 * config/s390/s390.mh (XDEPFILES): Delete.
9805 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9806 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9807 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9808 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9809 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9810 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9811 * config/sparc/linux.mh (XDEPFILES): Delete.
9812 * config/vax/vaxult.mh (XDEPFILES): Delete.
9813 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9814 * Makefile.in (DEPFILES): Remove XDEPFILES.
9815
9816 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9817
9818 * utils.c (internal_verror): Fix comments, default is yes not no.
9819 Update queries to match. Default to quit and dump core.
9820
9821 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9822
9823 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9824 copyright.
9825 * defs.h, event-top.c, gdbcmd.h: Ditto.
9826 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9827 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9828 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9829 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9830 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9831 * mi/mi-main.c:Ditto.
9832
9833 * stack.c, symfile.c: Update copyright.
9834
9835 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9836
9837 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9838 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9839 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9840 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9841
9842 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9843
9844 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9845 * gdbserver/low-lynx.c (myattach): Likewise.
9846 * gdbserver/low-nbsd.c (myattach): Likewise.
9847 * gdbserver/low-sim.c (myattach): Likewise.
9848 * gdbserver/low-sparc.c (myattach): Likewise.
9849 * gdbserver/low-sun3.c (myattach): Likewise.
9850
9851 * gdbserver/low-linux.c (myattach): New function.
9852
9853 * gdbserver/server.c (attach_inferior): New function.
9854 (main): Handle "--attach".
9855
9856 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9857
9858 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9859 maintainer.
9860
9861 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9862
9863 * c-typeprint.c (is_type_conversion_operator): Add additional
9864 check for non-conversion operators.
9865
9866 2002-01-15 Michael Snyder <msnyder@redhat.com>
9867
9868 * linux-proc.c: Add "info proc" command, a la procfs.c.
9869 (read_mapping): New function, abstract and re-use code.
9870 (linux_find_memory_regions): Use new func read_mapping.
9871 (linux_info_proc_cmd): New function, implement "info proc".
9872 (_initialize_linux_proc): Add new command "info proc".
9873
9874 2002-01-15 Michael Snyder <msnyder@redhat.com>
9875
9876 * symfile.c (generic_load): Use bfd_map_over_sections method
9877 instead of manipulating bfd structure members directly.
9878 (add_section_size_callback): New function, bfd sections callback
9879 used by generic_load.
9880 (load_sections_callback): New function, bfd sections callback
9881 used by generic_load.
9882
9883 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9884
9885 [Based on work by Jim Blandy]
9886 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9887 (builtin_type_vec128): Export.
9888 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9889 types.
9890 (builtin_type_vec128): New builtin type for 128 bit vector
9891 registers.
9892 (build_gdbtypes): Initialize builtin_type_v16qi and
9893 builtin_type_v8hi. Create the vec128 register builtin type
9894 structure.
9895 (build_builtin_type_vec128): New function.
9896 (_initialize_gdbtypes): Register builtin_type_v16qi and
9897 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9898 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9899 AltiVec register to new builtin type.
9900
9901 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9902
9903 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9904 to make_cv_type.
9905
9906 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9907
9908 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9909 CLEAN_UP_REGISTER_VALUE.
9910 * regcache.c (supply_register): Update only call.
9911
9912 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9913
9914 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9915 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9916 a29k-*-vxworks* targets as obsolete.
9917
9918 2002-01-14 Michael Snyder <msnyder@redhat.com>
9919
9920 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9921 until we can resolve portability issues.
9922 * gregset.h: Remove references to fpxregs.
9923 * gcore.c (gcore_command): Initialize note_sec to NULL.
9924
9925 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9926
9927 * signals.c (target_signal_to_name): Rewrite. Only use
9928 signals[].name when in bounds and non-NULL.
9929
9930 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9931
9932 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9933 * signals.c (target_signal_to_name): Verify that SIG is within the
9934 bounds of the signals array.
9935
9936 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9937
9938 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9939
9940 2002-01-13 Keith Seitz <keiths@redhat.com>
9941
9942 * stack.c (print_frame_info_base): Print the frame's pc
9943 only if when print_frame_info_listing_hook is not defined.
9944
9945 2002-01-13 Keith Seitz <keiths@redhat.com>
9946
9947 * varobj.c (varobj_set_value): Make sure that there were no
9948 errors evaluating the object before attempting to set its
9949 value.
9950 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9951 so this offset adjustment is no longer necessary.
9952 (create_child): Don't set the error flag if the child is
9953 a CPLUS_FAKE_CHILD.
9954 (value_of_child): If value_fetch_lazy fails, return NULL
9955 so that callers will be notified that an error occurred.
9956 (c_value_of_variable): Delay check of variable's validity
9957 until later. We actually want all structs and unions to have
9958 the value "{...}".
9959 Do not return "???" for variables which could not be evaluated.
9960 This error condition must be returned to the caller so that it
9961 can get the error condition from gdb.
9962 (cplus_name_of_child): Adjust index for vptr before figuring
9963 out the name of the child.
9964 (cplus_value_of_child): If a child's (real) parent is not valid,
9965 don't even bother trying to give a value for it. Just return
9966 an error. Change all instances in this function.
9967 (cplus_type_of_child): If our parent is one of the "fake"
9968 parents, we need to get at the type of the real parent, and
9969 derive the child's true type using this information.
9970
9971 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9972
9973 From 2002-01-09 John Marshall <johnm@falch.net>:
9974 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9975 sources.redhat.com, and tweak some related URLs which had
9976 suffered from linkrot.
9977
9978 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9979
9980 From Jeff law:
9981 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9982 structures passed in registers.
9983
9984 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9985
9986 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9987 white space which prevented compilation. Reported by DSK
9988 <dsk@student.unsw.edu.au>.
9989
9990 2002-01-11 Michael Snyder <msnyder@redhat.com>
9991
9992 * symfile.c (build_section_addr_info_from_section_tab):
9993 Use bfd access method instead of manipulating bfd directly.
9994 (syms_from_objfile): Ditto.
9995 (simple_overlay_update_1): Ditto.
9996 (simple_overlay_update): Ditto.
9997 (generic_load): Ditto.
9998 (overlay_unmapped_address): FIXME comment, bfd access methods.
9999 (sections_overlap): FIXME comment, bfd access methods.
10000 (pc_in_mapped_range): FIXME comment, bfd access methods.
10001 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10002 (section_is_mapped): FIXME comment, bfd access methods.
10003 (section_is_overlay): FIXME comment, bfd access methods.
10004
10005 * symfile.c (generic_load): Whitespace and long line cleanups.
10006 Remove duplicate variable, change several local variables to
10007 more appropriate data types.
10008 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10009
10010 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10011
10012 From Peter Schauer:
10013 * language.c (longest_local_hex_string_custom): Use phex_nz to
10014 convert NUM to a hex string.
10015
10016 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10017
10018 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10019 the function.
10020 Update Copyright year.
10021
10022 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10023
10024 * language.c (longest_raw_hex_string): Delete unused function.
10025
10026 2002-01-11 Petr Sorfa <petrs@caldera.com>
10027
10028 * MAINTAINERS (write-after-approval): Add myself.
10029 * dwarf2read.c (read_tag_string_type): Handling of
10030 DW_AT_byte_size.
10031 (read_tag_string_type): FORTRAN fix to prevent propagation of
10032 first string size.
10033 (set_cu_language): Handling of DW_LANG_Fortran95
10034
10035 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10036
10037 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10038 GETPID(inferior_ptid).
10039 (store_inferior_registers): Likewise.
10040
10041 2002-01-10 Jason Merrill <jason@redhat.com>
10042
10043 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10044 Fix DW_OP_minus.
10045
10046 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10047
10048 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10049 and bfd/elf32-sh-nbsd.c.
10050
10051 2002-01-10 Michael Snyder <msnyder@redhat.com>
10052
10053 * NEWS: Mention --pid and corefile/proc-id behavior change.
10054
10055 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10056 * gcore.c: Include cli/cli-decode.h instead of command.h.
10057
10058 * main.c (captured_main): Add new command line option "--pid".
10059 If the second command line argument (following the symbol-file)
10060 begins with a digit, try to attach to it before trying to open
10061 it as a corefile.
10062 (print_gdb_help): Document the "--pid" argument.
10063
10064 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10065
10066 * completer.c (command_completer): New function.
10067
10068 * completer.h <command_completer>: Add prototype.
10069
10070 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10071 completer for the "help" command.
10072
10073 2002-01-09 Jason Merrill <jason@redhat.com>
10074
10075 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10076
10077 2002-01-09 Michael Snyder <msnyder@redhat.com>
10078
10079 * i386-linux-nat.c (fill_fpxregset): Make global.
10080 (store_fpxregset): Ditto.
10081
10082 * gregset.h (gdb_fpxregset_t): Define.
10083 (supply_fpxregset): Prototype.
10084 (fill_fpxregset): Prototype.
10085
10086 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10087
10088 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10089
10090 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10091 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10092 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10093
10094 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10095
10096 * MAINTAINERS: Update target maintainer rules so that any
10097 Maintainer can approve a tested patch for a maintenance-only
10098 target.
10099
10100 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10101
10102 * MAINTAINERS (write-after-approval): Add myself.
10103
10104 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10105 IN_SIGTRAMP.
10106
10107 2002-01-08 Michael Snyder <msnyder@redhat.com>
10108
10109 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10110 real name of the executable, rather than the /proc name.
10111
10112 2002-01-03 Michael Snyder <msnyder@redhat.com>
10113
10114 Implement a "generate-core-file" command in gdb, save target state.
10115 * gcore.c: New file. Implement new command 'generate-core-file'.
10116 Save a corefile image of the current state of the inferior.
10117 * linux-proc.c: Add linux-specific code for saving corefiles.
10118 * target.h (struct target_ops): Add new target vectors for saving
10119 corefiles; to_find_memory_regions and to_make_corefile_notes.
10120 (target_find_memory_regions): New macro.
10121 (target_make_corefile_notes): New macro.
10122 * target.c (update_current_target): Inherit new target methods.
10123 (dummy_find_memory_regions): New place-holder method.
10124 (dummy_make_corefile_notes): New place-holder method.
10125 (init_dummy_target): Initialize new dummy target vectors.
10126 * exec.c (exec_set_find_memory_regions): New function.
10127 Allow the exec_ops vector for memory regions to be taken over.
10128 (exec_make_note_section): New function, target vector method.
10129 * defs.h (exec_set_find_memory_regions): Export prototype.
10130 * procfs.c (proc_find_memory_regions): New function, corefile method.
10131 (procfs_make_note_section): New function, corefile method.
10132 (init_procfs_ops): Set new target vector pointers.
10133 (find_memory_regions_callback): New function.
10134 (procfs_do_thread_registers): New function.
10135 (procfs_corefile_thread_callback): New function.
10136 * sol-thread.c (sol_find_memory_regions): New function.
10137 (sol_make_note_section): New function.
10138 (init_sol_thread_ops): Initialize new target vectors.
10139 * inftarg.c (inftarg_set_find_memory_regions): New function.
10140 Allow to_find_memory_regions vector to be taken over.
10141 (inftarg_set_make_corefile_notes): New function.
10142 Allow to_make_corefile_notes vector to be taken over.
10143 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10144 interface layer if not target_has_execution (may be a corefile).
10145 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10146 * config/sparc/sun4sol2.mh: Ditto.
10147 * config/alpha/alpha-linux.mh: Ditto.
10148 * config/arm/linux.mh: Ditto.
10149 * config/i386/x86-64linux.mh: Ditto.
10150 * config/ia64/linux.mh: Ditto.
10151 * config/m68k/linux.mh: Ditto.
10152 * config/mips/linux.mh: Ditto.
10153 * config/powerpc/linux.mh: Ditto.
10154 * config/sparc/linux.mh: Ditto.
10155
10156 2002-01-07 Michael Snyder <msnyder@redhat.com>
10157
10158 * arm-linux-nat.c: Remove references to regcache.c internal data
10159 (registers[] and register_valid[]).
10160
10161 2002-01-07 Michael Snyder <msnyder@redhat.com>
10162
10163 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10164 so that attaching to a pid will automatically read the process's
10165 symbol file and shlibs.
10166 * Makefile.in: Add rule for linux-proc.o.
10167 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10168 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10169 * config/arm/linux.mh: Ditto.
10170 * config/i386/linux.mh: Ditto.
10171 * config/i386/x86-64linux.mh: Ditto.
10172 * config/ia64/linux.mh: Ditto.
10173 * config/m68k/linux.mh: Ditto.
10174 * config/mips/linux.mh: Ditto.
10175 * config/powerpc/linux.mh: Ditto.
10176 * config/sparc/linux.mh: Ditto.
10177
10178 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10179
10180 * win32-nat.c: Add i386-tdep.h dependency.
10181
10182 2002-01-07 Michael Snyder <msnyder@redhat.com>
10183
10184 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10185 instead of bfd_get_arch_size. Don't bail out just because
10186 there's no exec_bfd.
10187
10188 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10189 * p-valprint.c (pascal_object_print_value): Ditto.
10190 * somread.c (som_symtab_read): Ditto.
10191 * symfile.c (simple_free_overlay_region_table): Ditto.
10192 * valops.c (value_assign): Ditto.
10193
10194 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10195 use tilde_expand and strerror for opening save-tracepoints file.
10196
10197 * thread-db.c (thread_db_new_objfile): Indendation fix.
10198
10199 * infptrace.c (GDB_MAX_ALLOCA): New define.
10200 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10201 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10202 can be overridden with whatever value is appropriate to the host).
10203 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10204 alloca to allocate potentially large buffer.
10205 * rs6000-nat.c (child_xfer_memory): Ditto.
10206 * symm-nat.c (child_xfer_memory): Ditto.
10207 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10208
10209 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10210
10211 From Nick Clifton <nickc@redhat.com>
10212 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10213
10214 2002-01-07 Michael Snyder <msnyder@redhat.com>
10215
10216 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10217 Don't use exec_bfd if it's NULL.
10218
10219 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10220
10221 * valops.c (value_arg_coerce): Fix formatting.
10222
10223 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10224
10225 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10226 * gnu-nat.c: Ditto.
10227
10228 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10229
10230 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10231 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10232 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10233 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10234 z8k-coff have not been multi-arched. Update z8k-coff build
10235 status.
10236
10237 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10238
10239 * MAINTAINERS: Mark a29k target as obsolete.
10240 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10241 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10242 comments.
10243 * NEWS: Note that a29k targets are obsolete.
10244 * a29k-tdep.c: Mark as obsolete.
10245 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10246 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10247 a29k-*-vxworks* targets as obsolete.
10248 * remote-adapt.c: Obsolete.
10249 * remote-eb.c: Obsolete.
10250 * remote-mm.c: Obsolete.
10251 * remote-udi.c: Obsolete.
10252 * config/a29k/a29k-udi.mt: Obsolete.
10253 * config/a29k/a29k.mt: Obsolete.
10254 * config/a29k/tm-a29k.h: Obsolete.
10255 * config/a29k/tm-vx29k.h: Obsolete.
10256 * config/a29k/vx29k.mt: Obsolete.
10257
10258 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10259
10260 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10261 with BFD_ENDIAN_BIG.
10262
10263 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10264
10265 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10266 * configure, config.in: Re-generate.
10267 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10268 * defs.h: Do not include <endian.h>.
10269
10270 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10271
10272 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10273 * config.in: Regenerate.
10274 * configure.in: Update copyright years.
10275 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10276 * configure: Regenerate.
10277 * i386bsd-nat.c: Update copyright years.
10278 (fill_gregset): Use regcache_collect.
10279 (fetch_inferior_registers): Only fetch integer registers
10280 if requested to do so. Add support for XMM registers
10281 using PT_GETXMMREGS.
10282 (store_inferior_registers): Only store integer registers
10283 if requested to do so. Add support for XMM registers
10284 using PT_SETXMMREGS.
10285 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10286 (store_inferior_registers): Remove.
10287 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10288 (fetch_elfcore_registers): New function.
10289 (i386nbsd_elfcore_fns): New.
10290 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10291 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10292 i386bsd-nat.o.
10293 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10294 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10295 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10296 * config/i386/tm-nbsd.h: Update copyright years.
10297 (HAVE_SSE_REGS): Define.
10298 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10299 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10300 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10301 (SIGCONTEXT_PC_OFFSET): Remove.
10302 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10303
10304 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10305
10306 * configure.tgt: Remove powerpc-*-macos* target.
10307 * config/m68k/xm-mpw.h: Delete file.
10308 * config/xm-mpw.h: Delete file.
10309 * ser-mac.c: Delete file.
10310 * mpw-make.sed: Delete file.
10311 * mpw-config.in: Delete file.
10312 * mac-xdep.c: Delete file.
10313 * mac-gdb.r: Delete file.
10314 * mac-defs.h: Delete file.
10315 * mac-nat.c: Delete file.
10316 * config/powerpc/macos.mh: Delete file.
10317 * config/powerpc/macos.mt: Delete file.
10318 * config/powerpc/nm-macos.h: Delete file.
10319 * config/powerpc/tm-macos.h: Delete file.
10320 * source.c (openp, open_source_file): Remove obsolete code.
10321 * top.c (gdb_readline): Ditto.
10322 * utils.c (query): Ditto.
10323 * event-top.c (display_gdb_prompt): Ditto.
10324 * Makefile.in (ser-mac.o): Delete obsolete target.
10325 * NEWS: Update.
10326
10327 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10328
10329 * defs.h (BIG_ENDIAN): Delete macro definition.
10330 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10331 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10332 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10333 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10334 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10335 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10336 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10337 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10338 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10339 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10340 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10341 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10342 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10343 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10344 * gdbarch.c: Re-generate.
10345
10346 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10347
10348 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10349 for core files.
10350
10351 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10352
10353 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10354
10355 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10356
10357 * value.h (value_ptr): Delete typedef.
10358
10359 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10360
10361 * i386nbsd-nat.c: Update copyright years.
10362 Include i386-tdep.h.
10363
10364 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10365
10366 * stabsread.c: Update copyright years.
10367
10368 From Debashis Mahata <debashis.mahata@wipro.com>:
10369 (read_struct_fields): Deal with Sun C compiler erroneous stab
10370 output for structs and unions.
10371 Fix PR gdb/269.
10372
10373 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10374
10375 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10376 prototype.
10377
10378 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10379
10380 * cp-abi.c: Fix whitespace.
10381 (baseclass_offset): New wrapper function.
10382 * cp-abi.h (baseclass_offset): Add prototype.
10383 (struct cp_abi_ops): Add baseclass_offset pointer.
10384
10385 * valops.c (vb_match): Move to...
10386 * gnu-v2-abi.c (vb_match): here.
10387 * valops.c (baseclass_offset): Move to...
10388 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10389
10390 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10391
10392 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10393 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10394 * hpacc-abi.c (init_hpacc_ops): Likewise.
10395
10396 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10397
10398 * valops.c (find_overload_match): Accept obj as a
10399 reference parameter. Update it before returning.
10400 * value.h (find_overload_match): Update prototype.
10401 * eval.c (evaluate_subexp_standard): Pass object to
10402 find_overload_match by reference.
10403
10404 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10405
10406 * valarith.c: Replace value_ptr with struct value pointer. Remove
10407 register attribute from value declarations.
10408 * valops.c: Ditto.
10409 * value.h: Ditto.
10410 * scm-lang.c (scm_lookup_name): Ditto.
10411
10412 2002-01-03 Michael Snyder <msnyder@redhat.com>
10413
10414 Abstract the functionality of iterating over mapped memory
10415 regions into a general purpose iterator function.
10416 * procfs.c (iterate_over_mappings): New function, general purpose
10417 iterator for memory sections.
10418 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10419 (solib_mappings_callback): New function, callback for above.
10420 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10421 (info_mappings_callback): New function, callback for above.
10422
10423 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10424
10425 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10426
10427 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10428 * i386-tdep.c: Include "elf-bfd.h".
10429 (process_note_abi_tag_sections): New function.
10430 (i386_gdbarch_init): Add code to recognize various OS/ABI
10431 combinations.
10432
10433 * maint.c (_initialize_maint_cmds): Add missing \ in
10434 string-literal.
10435
10436 For older changes see ChangeLog-2001
10437 \f
10438 Local Variables:
10439 mode: change-log
10440 left-margin: 8
10441 fill-column: 74
10442 version-control: never
10443 End: