]> Git Repo - binutils.git/blame - gdb/ChangeLog
* gas/m68k/all.exp: xfail non-ELF targets on pcrel test.
[binutils.git] / gdb / ChangeLog
CommitLineData
c00dcbe9
MK
12002-08-26 Mark Kettenis <[email protected]>
2
3 * regcache.c (regcache_raw_write_signed,
4 regcache_raw_write_unsigned): New functions.
5 * regcache.h (regcache_raw_write_signed,
6 regcache_raw_write_unsigned): New prototypes.
7
0e0d15ca
AC
82002-08-25 Andrew Cagney <[email protected]>
9
10 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
11 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
12 source file dependencies. Cleanup corresponding generator rules.
13
d3b22ed5
AC
142002-08-25 Andrew Cagney <[email protected]>
15
16 * regcache.h (register_offset_hack): Declare.
17 (regcache_cooked_read_using_offset_hack): Declare.
18 (regcache_cooked_write_using_offset_hack): Declare.
19
20 * regcache.c (register_offset_hack): New function.
21 (regcache_cooked_read_using_offset_hack): New function.
22 (regcache_cooked_write_using_offset_hack): New function.
23 (regcache_dump): Check that the registers, according to their
24 offset, are packed hard against each other.
25 (cooked_xfer_using_offset_hack): New function.
26
bb425013
AC
272002-08-25 Andrew Cagney <[email protected]>
28
29 * regcache.c (struct regcache_descr): Add field register_type.
30 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
31 in as a parameter
32 (init_regcache_descr): Initialize register_type. Pass the descr
33 to init_legacy_regcache_descr. Use register_type instead of
34 REGISTER_VIRTUAL_TYPE.
35 (register_type): New function.
36 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
37 * regcache.h (register_type): Declare.
38
d0403e00
AC
392002-08-25 Andrew Cagney <[email protected]>
40
41 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
42 instead of deprecated_store_return_value. Fix fallout from
43 2002-08-23 Andrew Cagney <[email protected]>.
44
0ed04cce
AC
452002-08-25 Andrew Cagney <[email protected]>
46
47 * regcache.c (max_register_size): New function.
48 (init_legacy_regcache_descr): Ensure that max_register_size is
49 large enough for REGISTER_VIRTUAL_SIZE.
50 * regcache.h (max_register_size): Declare.
51
46d79c04
AC
522002-08-24 Andrew Cagney <[email protected]>
53
54 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
55 store_return_value.
56 (e500_extract_return_value): Change type of valbuf pointer to
57 void.
58
853c7bd0
MK
592002-08-24 Mark Kettenis <[email protected]>
60
cd87e769
MK
61 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
62 workaround.
63
853c7bd0
MK
64 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
65 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
66 long long) to prevent compiler warning on 64-bit systems.
67
ebba8386
AC
682002-08-23 Andrew Cagney <[email protected]>
69
70 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
71 (DEPRECATED_STORE_RETURN_VALUE): New method.
72 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
73 * gdbarch.h, gdbarch.c: Re-generate.
74
75 * values.c (set_return_value): Pass current_regcache to
76 STORE_RETURN_VALUE.
77 * arch-utils.h (legacy_store_return_value): Declare.
78 * arch-utils.c (legacy_store_return_value): New function.
79 (legacy_extract_return_value): Update parameters.
80
81 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
82 STORE_RETURN_VALUE.
83 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
84 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
85 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
86 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
87 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
88 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
89 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
90 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
91 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
92 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
93
94 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
95 * i386-tdep.c (i386_extract_return_value): Update.
96 * arch-utils.c (legacy_extract_return_value): Update.
97 * frv-tdep.c (frv_gdbarch_init): Update.
98 * cris-tdep.c (cris_gdbarch_init): Update.
99 * d10v-tdep.c (d10v_gdbarch_init): Update.
100 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
101 * m68k-tdep.c (m68k_gdbarch_init): Update.
102 * mcore-tdep.c (mcore_gdbarch_init): Update.
103 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
104 * s390-tdep.c (s390_gdbarch_init): Update.
105 * sparc-tdep.c (sparc_gdbarch_init): Update.
106 * sh-tdep.c (sh_gdbarch_init): Update.
107 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
108 * v850-tdep.c (v850_gdbarch_init): Update.
109 * avr-tdep.c (avr_gdbarch_init): Update.
110 * ia64-tdep.c (ia64_gdbarch_init): Update.
111 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
112 * vax-tdep.c (vax_gdbarch_init): Update.
113 * alpha-tdep.c (alpha_gdbarch_init): Update.
114 * arm-tdep.c (arm_gdbarch_init): Update.
115 * mips-tdep.c (mips_gdbarch_init): Update.
116 * i386-tdep.c (i386_gdbarch_init): Update.
117
5bd8c6d0
AC
1182002-08-23 Andrew Cagney <[email protected]>
119
120 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
121 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
122
e73e1724
MK
1232002-08-24 Mark Kettenis <[email protected]>
124
125 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
126 problems.
127
3e6564e1
JB
1282002-08-23 Joel Brobecker <[email protected]>
129
130 * infrun.c (handle_inferior_event): Move a comment outside of a
131 function call, in order to avoid indent reformatting this part
132 of the code in an unreadable way.
133
81d0cc19
GS
1342002-08-23 Grace Sainsbury <[email protected]>
135
136 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
137 when breakpoints fail. Move general breakpoint error messages to
138 insert_breakpoints.
139 * breakpoint.c (insert_breakpoints): Change warnings when
140 breakpoints are nto inserted to specify the type. Remove call to
141 memory_error when hardware breakpoints can't be inserted. Remove
142 multiple calls to warning so all messages are sent to the user at
143 once.
144 (delete_breakpoints): Make insert error messsages more explicit.
145
17574093
DJ
1462002-08-23 Daniel Jacobowitz <[email protected]>
147
148 * ChangeLog: Move gdbserver entries after GDB 5.2 to
149 gdbserver/ChangeLog.
150
8acc2935
MK
1512002-08-23 Mark Kettenis <[email protected]>
152
dfe01d39
MK
153 * i386-tdep.c: Include "objfiles.h".
154 (i386_svr4_init_abi): Set in_solib_call_trampoline and
155 skip_trampoline_code.
156 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
157 (CPLUS_MARKER): Define to '.'.
158
8acc2935
MK
159 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
160 member.
161 (linux_corefile_thread_callback): Increase args->num_notes.
162 (linux_make_note_section): Initialize thread_args.num_notes, and
163 use it to determine whether notes for any threads were created.
164
640b227f
JB
1652002-08-23 Donn Terry <[email protected]>
166
167 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
168 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
169 and PCUNKILL.
170 (write_with_trace): Conditionalize out the switch branch handling
171 PCSHOLD if the corresponding macro is not defined. Likewise for
172 PRSABORT and PRSTOP.
173 This change will be needed by the Interix port.
174
96ff0de4
EZ
1752002-08-22 Elena Zannoni <[email protected]>
176
177 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
178 ev_offset fields.
179 (skip_prologue): Add support for BookE/e500 instructions.
180 (e500_extract_return_value): New function.
181 (frame_get_saved_regs): Add support for saving ev registers and
182 pseudo gpr's.
183 (e500_store_return_value): New function.
184 (rs6000_gdbarch_init): Move up default intializations of
185 deprecated_extract_return_value and store_return_value. Overwrite
186 init of store_return_value with e500 specific version.
187 Set extract_return_value for e500.
188
fbefca5b
EZ
1892002-08-22 Elena Zannoni <[email protected]>
190
191 * blockframe.c (generic_call_dummy_register_unwind): Use
192 regcache_cooked_read to catch cases in which the variable is
193 stored in a pseudo register.
194
4d210288
AC
1952002-08-22 Andrew Cagney <[email protected]>
196
197 * NEWS: Mention that the i960 has been made obsolete.
198 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
199 i960-tdep.c
200 (remote-nrom.o): Obsolete target.
201 (remote-nindy.o, i960-tdep.o): Ditto.
202 * remote-nrom.c: Make file obsolete.
203 * remote-nindy.c, remote-vx960.c: Ditto.
204 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
205 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
206 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
207 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
208 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
209 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
210 i960-*-vxworks* obsolete.
211 * MAINTAINERS: Note that the i960 is obsolete.
212
6c0c456d
CV
2132002-08-21 Corinna Vinschen <[email protected]
214
215 * aix-thread.c (aix_thread_detach): Disable thread debugging on
216 detach to allow reinitialization.
217
9f9d12b3
AC
2182002-08-22 Andrew Cagney <[email protected]>
219
220 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
221 attempt).
222
ebeb39fe
JB
2232002-08-22 Jim Blandy <[email protected]>
224
225 * coffread.c (coff_symfile_read): Don't try to read the line
226 number table from disk if the image file doesn't have a symbol
227 table; we'll never actually look at the info anyway, and Windows
228 ships DLL's with bogus file offsets for the line number data.
229
5bf1c677
EZ
2302002-08-21 Elena Zannoni <[email protected]>
231
232 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
233 an e500 executable.
234
71b8ef93
MS
2352002-08-21 Michael Snyder <[email protected]>
236
237 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
238 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
239 (DEFAULT_MIPS_TYPE): Delete unused macro.
240 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
241 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 242
d174216d
JB
2432002-08-21 Jim Blandy <[email protected]>
244
245 * valops.c (value_cast): Simplify and correct logic for doing a
246 static cast from a pointer to a base class to a pointer to a
247 derived class.
248
0ab7a791
AC
2492002-08-21 Andrew Cagney <[email protected]>
250
251 * infcmd.c (default_print_registers_info): Replace
252 do_registers_info.
253 (registers_info): Use gdbarch_print_registers_info instead of
254 DO_REGISTERS_INFO.
255 * inferior.h (default_print_registers_info): Replace
256 do_registers_info.
257 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
258 (DO_REGISTERS_INFO): Change to a predicate function.
259 * gdbarch.h, gdbarch.c: Regenerate.
260
e23792cc
KS
2612002-08-21 Keith Seitz <[email protected]>
262
263 * gdb-events.sh: Add target-changed event.
264 * gdb-events.c: Regenerated.
265 * gdb-events.c: Regenerated.
266 * valops.c (value_assign): Add target-changed event notification
267 to inlval_register, lval_memory, and lval_reg_frame_relative.
268
9fb14e79
JB
2692002-08-21 Joel Brobecker <[email protected]>
270
271 * NEWS: Add an entry regarding the improvement of the next/step
272 operation on Alpha Tru64 multi-processor machines.
273
6d39a69f
AC
2742002-08-21 Andrew Cagney <[email protected]>
275
72acd513
AC
276 * Makefile.in: Update dependencies for mi/ cli/ and tui/
277 directores.
342af04b 278 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
279 * Makefile.in (install-gdbtk): Move to install section.
280 (rdi-share/libangsd.a): Move to end of file.
281
fa5f27c7
AC
2822002-08-19 Andrew Cagney <[email protected]>
283
284 * frame.c (frame_register_unwind): When a register, set addrp to
285 the register's byte.
286
5a89d8aa
MS
2872002-08-20 Michael Snyder <[email protected]>
288
289 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
290 used locally, so move them from the target machine header to here.
291 (mips_set_processor_type, mips_register_name, mips32_next_pc,
292 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
293 Make static.
294 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
295
822e978b
AC
2962002-08-20 Andrew Cagney <[email protected]>
297
298 * NEWS: Mention that the Apollo line was made obsolete.
299 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
300 m68*-hp-hpux* obsolete.
301 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
302 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
303 * buildsym.c (make_blockvector): Make static.
304 * buildsym.h (make_blockvector): Make extern declaration obsolete.
305 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
306 (ALLDEPFILES): Remove dstread.c.
307 (dstread.o): Obsolete make rule.
308 * dstread.c: Makefile obsolete.
309 * dst.h: Ditto.
310 * config/m68k/hp300hpux.mt: Ditto.
311 * config/m68k/hp300hpux.mh: Ditto.
312 * config/m68k/hp300bsd.mt: Ditto.
313 * config/m68k/hp300bsd.mh: Ditto.
314 * config/m68k/apollo68b.mt: Ditto.
315 * config/m68k/apollo68v.mh: Ditto.
316 * config/m68k/apollo68b.mh: Ditto.
317
e41b17f0
MS
3182002-08-20 Michael Snyder <[email protected]>
319
320 * mips-tdep.c (mips_in_return_stub): Make static.
321 (mips_gdbarch_init): Set in_solib_return_trampoline.
322 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
323
d50355b6
MS
3242002-08-20 Michael Snyder <[email protected]>
325
326 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
327 * gdbarch.c, gdbarch.h: Regenerate.
328 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
329 Add.
330 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
331
757a7cc6
MS
3322002-08-20 Michael Snyder <[email protected]>
333
334 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
335 (mips_gdbarch_init): Set skip_trampoline_code,
336 in_solib_call_trampoline.
337 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
338 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
339
c8001721
EZ
3402002-08-20 Elena Zannoni <[email protected]>
341
342 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
343
344 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
345 vector type for ev registers.
346 (e500_pseudo_register_read): New function.
347 (e500_pseudo_register_write): New function.
348 (e500_dwarf2_reg_to_regnum): New function.
349 (PPC_UISA_NOFP_SPRS): New macro.
350 (PPC_EV_REGS): New macro.
351 (PPC_GPRS_PSEUDO_REGS): New macro.
352 (registers_e500): New register set for e500.
353 (variants): Add e500 variant.
354 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
355 before setting architectural dependent variations. Initialize ev
356 registers numbers. Add case for e500 architecture. Set the
357 number of pseudo registers.
358
64366f1c
EZ
3592002-08-20 Elena Zannoni <[email protected]>
360
361 * rs6000-tdep.c: Clean up comments.
362
7e78f0ca
AC
3632002-08-20 Andrew Cagney <[email protected]>
364
365 * h8300-tdep.c: Re-indent file.
366
697f7479
JB
3672002-08-20 Jim Blandy <[email protected]>
368
369 * Makefile.in (LDFLAGS): Allow the configure script to establish a
370 default for this.
697f7479 371
e86ae29f
KS
3722002-08-20 Keith Seitz <[email protected]>
373
374 * breakpoints.c (watch_command_1): Use internal breakpoint
375 when setting a watchpoint_scope breakpoint.
376
216b504f
EZ
3772002-08-20 Elena Zannoni <[email protected]>
378
379 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
380 (build_builtin_type_vec64i): Ditto.
381 (build_builtin_type_vec128): Ditto.
382 (build_builtin_type_vec128i): Ditto.
383
f7ab6ec6
MS
3842002-08-19 Michael Snyder <[email protected]>
385
386 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
387 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
388 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
389 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
390 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
391 CALL_DUMMY_ADDRESS): Delete.
392 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
393 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
394 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
395 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
396 push_return_address.
397 (mips_register_raw_size, mips_eabi_use_struct_convention,
398 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
399 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
400 mips_init_extra_frame_info, mips_eabi_push_arguments,
401 mips_n32n64_push_arguments, mips_push_return_address,
402 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
403 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
404
b5d1566e
MS
4052002-08-19 Michael Snyder <[email protected]>
406
407 * mips-tdep.c (mips_frame_num_args): New function.
408 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
409 frame_saved_pc, frame_args_address, frame_locals_address,
410 frame_num_args, and frame_args_skip.
411 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
412 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
413 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
414 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
415
2f1488ce
MS
4162002-08-20 Michael Snyder <[email protected]>
417
418 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
419 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
420 * mips-tdep.c (mips_store_struct_return): New function.
421 (mips_extract_struct_value_address): New function.
422 (mips_gdbarch_init): Set store_struct_return and
423 extract_struct_value_address.
424
41ff2da1
DC
4252002-08-20 David Carlton <[email protected]>
426
427 * dwarf2read.c (dwarf2_build_psymtabs): Check that
428 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
429 (read_file_scope): Check that line_header is nonzero before
430 decoding macro information.
431
e5451d58
MK
4322002-08-20 Mark Kettenis <[email protected]>
433
434 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
435 flag the general-purpose registers as floating-point on targets
436 that don't support the floating-point registers.
437
4a6daafa
EZ
4382002-08-20 Elena Zannoni <[email protected]>
439
440 * rs6000-tdep.c (altivec_register_p): Delete.
441 (rs6000_do_altivec_registers): Delete.
442 (rs6000_altivec_registers_info): Delete.
443 (rs6000_do_registers_info): Delete.
444 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
445 (rs6000_gdbarch_init): Remove setting of do_registers_info.
446
ab4327e0
EZ
4472002-08-20 Elena Zannoni <[email protected]>
448
449 * infcmd.c (do_registers_info): Print vector registers in hex
450 format only.
451 (print_vector_info): Check that printing registers
452 makes sense.
453 (print_float_info): Ditto.
454
cb1d2653
AC
4552002-08-20 Andrew Cagney <[email protected]>
456
457 * mips-tdep.c (mips_gdbarch_init): Update.
458 (mips_o32_extract_return_value): Rewrite.
459 (mips_o32_store_return_value): Rewrite.
460 (mips_o32_xfer_return_value): New function.
461 (mips_xfer_register): Tweak debug print message. Allow for
462 buf_offset when dumping the value transfered.
463
dfc3d9b2
AC
4642002-08-20 Andrew Cagney <[email protected]>
465
466 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
467 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
468 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
469 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
470 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
471
7807aa61
MS
4722002-08-14 Michael Snyder <[email protected]>
473
474 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
475
489461e2
EZ
4762002-08-19 Elena Zannoni <[email protected]>
477
478 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
479 register.
480 (P): New macro to define a register as a pseudo register.
481 (R, R4, R8, R16, FR32, R64, R0): Updated.
482 (struct variant): Add new fields for number of pseudo registers
483 and number of total registers.
484 (tot_num_registers): New macro replacing....
485 (num_registers): ...deleted macro.
486 (num_registers): New function.
487 (num_pseudo_registers): New function.
488 (variants): Update all variants to intialize new fields correctly.
489 Postpone initialization of number of pseudo regs and real regs.
490 (init_variants): New function.
491 (rs6000_gdbarch_init): Initialize variants. Update calculation of
492 registers offsets.
493
fcaffe4c
DC
4942002-08-19 David Carlton <[email protected]>
495
2c2738a0
DC
496 * valops.c (search_struct_field): Change error message to treat
497 return value of 0 from value_static_field as meaning that field is
498 optimized out.
499 (value_struct_elt_for_reference): Ditto.
500 * values.c (value_static_field): Treat an unresolved location the
501 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
502 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
503 enclosed. Fix PR gdb/574.
fcaffe4c
DC
504 * MAINTAINERS: Add self to Write After Approval list.
505
88658117
AC
5062002-08-19 Andrew Cagney <[email protected]>
507
508 * mips-tdep.c (mips_xfer_register): New function.
509 (mips_n32n64_extract_return_value): Rewrite.
510 (mips_gdbarch_init): For N32 and N64, set extract_return_value
511 instead of deprecated_extract_return_value.
512
21283beb
EZ
5132002-08-19 Elena Zannoni <[email protected]>
514
515 * rs6000-tdep.c (TDEP): Delete macro.
516 (branch_dest): Replace use of TDEP macro with its body.
517 (rs6000_pop_frame): Ditto.
518 (rs6000_push_arguments): Ditto.
519 (rs6000_skip_trampoline_code): Ditto.
520 (rs6000_frame_saved_pc): Ditto.
521 (rs6000_frame_chain): Ditto.
522 (rs6000_register_name): Ditto.
523 (rs6000_register_byte): Ditto.
524 (rs6000_register_raw_size): Ditto.
525 (rs6000_register_virtual_type): Ditto.
526 (rs6000_register_convertible): Ditto.
527 (rs6000_convert_from_func_ptr_addr): Ditto.
528
bf072999
DJ
5292002-08-19 Daniel Jacobowitz <[email protected]>
530
531 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
532 conditionally.
533 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
534 MIPS_LINUX_JB_ELEMENT_SIZE.
535 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
536 for MAX_REGISTER_RAW_SIZE arrays.
537 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
538 MIPS_LINUX_JB_ELEMENT_SIZE.
539
9b949a49
PM
5402002-08-19 Pierre Muller <[email protected]>
541
542 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
543
6d3e79c6
AS
5442002-08-19 Aidan Skinner <[email protected]>
545
546 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
547 ada-valprint.c ada-tasks.c.
548 (YYFILES): Add ada-exp.y.
549 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
550 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
551 (ada-exp.tab.o): New target.
552
06c0b04e
AC
5532002-08-18 Andrew Cagney <[email protected]>
554
555 * regcache.c (regcache_xfer_part): New function.
556 (regcache_raw_read_part): New function.
557 (regcache_raw_write_part): New function.
558 (regcache_cooked_read_part): New function.
559 (regcache_cooked_write_part): New function.
560 * regcache.h (regcache_raw_read_part): Declare.
561 (regcache_raw_write_part): Declare.
562 (regcache_cooked_read_part): Declare.
563 (regcache_cooked_write_part): Declare.
564
92d1e331
DJ
5652002-08-18 Daniel Jacobowitz <[email protected]>
566
567 * remote.c (remote_open_1): Add async_p.
568 (remote_async_open_1): Delete.
569 (open_remote_target): Delete.
570 (remote_open, extended_remote_open): Update calls to remote_open_1.
571 (remote_async_open, extended_remote_async_open): Call
572 remote_open_1 instead of remote_async_open_1.
573
247055de
MK
5742002-08-19 Mark Kettenis <[email protected]>
575
576 * blockframe.c: Fix a few coding standard violations.
577
641eda39
MK
5782002-08-19 Mark Kettenis <[email protected]>
579
0b717710
MK
580 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
581 here from ...
582 * config/i386/tm-i386sco5.h: ... here. File removed.
583 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
584
26d28e12 585 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
586 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
587 (TM_FILE): Set to tm-i386.h.
588 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
589 * config/i386/tm-i386v.h: Remove file.
590 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
591 instead of "i386/tm-i386v.h".
592 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
593 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
594 "i386/tm-i386v.h".
595 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
596 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
597 "i386/tm-i386.h".
598
d4e0bab4
MK
5992002-08-18 Mark Kettenis <[email protected]>
600
601 * config/i386/nm-i386v.h: Add protection against
602 multiple-inclusion.
603 (i386_register_u_addr): Remove prototype.
604 (register_u_addr): New prototype.
605 (REGISTER_U_ADDR): Redefine accordingly.
606 * i386v-nat.c: Improve several comments.
607 (i386_register_u_addr): Change signature and rename to
608 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
609 ubase variable.
610
46cac009
AC
6112002-08-18 Andrew Cagney <[email protected]>
612
613 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
614 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
615 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
616 deprecated_extract_return_value.
617 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
618 rename mips_o32o64_push_arguments.
619 (mips_gdbarch_init): Update.
620 (mips_extract_return_value): Delete.
621 (mips_o32_extract_return_value): Clone mips_extract_return_value.
622 (mips_o64_extract_return_value): Clone mips_extract_return_value.
623 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
624 (mips_n32n64_extract_return_value): Clone
625 mips_extract_return_value.
626 (mips_store_return_value): Delete.
627 (mips_o32_store_return_value): Clone mips_store_return_value.
628 (mips_o64_store_return_value): Clone mips_store_return_value.
629 (mips_eabi_store_return_value): Clone mips_store_return_value.
630 (mips_n32n64_store_return_value): Clone mips_store_return_value.
631
d2e4a39e
AS
6322002-08-18 Aidan Skinner <[email protected]>
633
0c30c098
AS
634 * ada-lang.c: Use gdb_string.h instead of <string.h>.
635 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
636
6372002-08-18 Aidan Skinner <[email protected]>
638
639 * ada-lang.c: Run through gdb_indent.sh.
640 * ada-lang.h: Run through gdb_indent.sh.
641 * ada-tasks.c: Run through gdb_indent.sh.
642 * ada-typeprint.c: Run through gdb_indent.sh.
643 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 644
01fc4e33
AC
6452002-08-18 Andrew Cagney <[email protected]>
646
647 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
648 ABI.
649
d8ee244c
MK
6502002-08-18 Mark Kettenis <[email protected]>
651
c38d8261
MK
652 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
653
222db64c
MK
654 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
655 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
656
c2848c82
MK
657 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
658 write_register_gen instead of write_register_bytes.
659
d8ee244c
MK
660 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
661 i[3456]-*-osf1mk* configurations have been made obsolete.
662 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
663 i[3456]86-*-osf1mk* hosts obsolete.
664 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
665 targets obsolete.
666 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
667 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
668 config/i386/i386m3.mt, config/i386/nm-m3.h,
669 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
670 config/i386/i386mk.mh, config/i386/i386mk.mt,
671 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
672 obsolete.
673 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
674 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
675 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
676
61d8d407
AC
6772002-08-18 Andrew Cagney <[email protected]>
678
679 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
680 (hppa_value_returned_from_stack): Declare.
681 (hppa_extract_return_value): Declare.
682 * config/pa/hppa.mt: New file.
683 * configure.tgt: Recognize hppa*-*-*.
684 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
685
0c52bd59
MK
6862002-08-18 Mark Kettenis <[email protected]>
687
688 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
689 comment.
690
b5686e99
MK
6912002-08-17 Mark Kettenis <[email protected]>
692
693 * top.c (gdb_rl_operate_and_get_next): Make sure
694 operate-and-get-next functions correctly even when the history
695 list is completely filled.
696
c1bab85b
AC
6972002-08-18 Andrew Cagney <[email protected]>
698
699 * MAINTAINERS (Target Instruction Set Architectures): Rename
700 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
701 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
702 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
703 already listed under Host/Native.
704
705 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
706 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
707 mips*-*-*.
708
32089c7c
AC
7092002-08-17 Andrew Cagney <[email protected]>
710
711 * config/ia64/ia64.mt: New file.
712 * config/alpha/alpha.mt: New file.
713 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
714 ia64-linux-gnu. Mention that ia64-elf is broken.
715 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
716
b4671f85
MK
7172002-08-17 Mark Kettenis <[email protected]>
718
719 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
720 generic_func_frame_valid instead of func_frame_valid.
721
c8edd8b4
JB
7222002-08-16 Joel Brobecker <[email protected]>
723
724 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
725 procfs appears to be broken when debugging on multi-processor
726 machines. So enable software single stepping in order to avoid
727 using the procfs interface to do next/step operations, using
728 internal breakpoints instead.
729
730 * infrun.c (handle_inferior_event): Readjust the stop_pc by
731 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
732 make this pc address equal to the value it would have if the
733 system stepping capability was used. Also set a new flag used
734 to ensure that we don't readjust the PC one more time later.
735
736 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
737 address by DECR_PC_AFTER_BREAK when software single step is
738 in use for this architecture, as this has already been taken
739 care of in handle_inferior_event().
740
238617f6
JB
7412002-08-16 Joel Brobecker <[email protected]>
742
743 * infrun.c (handle_inferior_event): Minor reformatting, to make
744 a rather long condition expression easier to read.
745
541a7aac
AC
7462002-08-16 Andrew Cagney <[email protected]>
747
748 * Makefile.in (gdbtk.o): Move to end of file.
749 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
750 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
751 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
752 (gdbtk-wrapper.o, gdbres.o): Ditto.
753
f92d4a7b
AC
7542002-08-16 Andrew Cagney <[email protected]>
755
756 * Makefile.in (copying.o): Separate out compile rule.
757 (hpux-thread.o, procfs.o, signals.o): Ditto.
758 (v850ice.o, z8k-tdep.o): Ditto.
759 (tui-file.o): Move to TUI section.
760 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
761 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
762
1cce71eb
JB
7632002-08-16 Joel Brobecker <[email protected]>
764
765 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
766 skip_trampoline_code, for better namespace-proofing.
767
768 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
769
0851f23d
JB
7702002-08-16 Joel Brobecker <[email protected]>
771
772 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
773
f8d40ec8
JB
7742002-08-16 Joel Brobecker <[email protected]>
775
776 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
777 signal, check whether we hit a breakpoint before checking for a
778 single step breakpoint. Otherwise, GDB fails to notice that a
779 breakpoint has been hit when stepping onto a breakpoint.
780
63d022e0
KS
7812002-08-16 Keith Seitz <[email protected]>
782
783 * gdb-events.sh (clear_gdb_event_hooks): New function.
784 * gdb-events.c: Regenerate.
785 * gdb-events.h: Regenerate.
786
6e31adb3
AC
7872002-08-16 Andrew Cagney <[email protected]>
788
789 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
790 not_a_sw_breakpoint.
791 * breakpoint.h (bpstat_stop_status): Add parameter names.
792
c8189ed1
GS
7932002-08-16 Grace Sainsbury <[email protected]>
794
795 * remote.c (remote_insert_hw_breakpoint)
796 (remote_remove_hw_breakpoint): Fix calculation of length field
797 for Z-packet.
798
d05285fa
MS
7992002-08-15 Michael Snyder <[email protected]>
800
466d7106
MS
801 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
802 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
803 (supply_fpregset): Ditto.
804
d05285fa
MS
805 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
806 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
807 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 808 (TARGET_READ_SP): Delete.
bf1f5b4c 809 (DO_REGISTERS_INFO): Delete.
102182a9
MS
810 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
811 Delete.
812 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
813 from macros to functions.
bf1f5b4c 814
d05285fa
MS
815 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
816 (mips_register_convertible, mips_register_convert_to_virtual,
817 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
818 (mips_read_sp): New function.
819 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
820 (mips_do_registers_info): Make static.
821 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
822 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
823 (mips_register_convert_from_type, mips_register_convert_to_type):
824 New functions.
825 (mips_gdbarch_init): Set up function_start_offset,
826 register_virtual_size, pc_in_sigtramp.
d05285fa 827
e76f1f2e
AC
8282002-08-15 Andrew Cagney <[email protected]>
829
830 * infcmd.c (vector_info): New function.
831 (_initialize_infcmd): Add command "info vector".
832 (print_vector_info): New function.
833
834 * gdbarch.sh (PRINT_VECTOR_INFO): New method
835 * gdbarch.h, gdbarch.c: Regenerate.
836
4782dc19
AC
8372002-08-15 Andrew Cagney <[email protected]>
838
839 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
840 ``print_all''. Only print vector registers when ``print_all''.
841
23e3a7ac
AC
8422002-08-15 Andrew Cagney <[email protected]>
843
8e186fd6
AC
844 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
845 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
846
23e3a7ac
AC
847 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
848 Add `args' parameter.
849 * gdbarch.h, gdbarch.c: Regenerate.
850
851 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
852
853 * infcmd.c (float_info): Call print_float_info.
854 (print_float_info): New function. By default, print the
855 floating-point registers.
856
857 * arch-utils.h (default_print_float_info): Delete declaration.
858 * arch-utils.c (default_print_float_info): Delete function.
859
e0ca2bb9
MK
8602002-08-16 Mark Kettenis <[email protected]>
861
3f733acc
MK
862 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
863 out define.
864
7d8d2918
MK
865 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
866 FRAME.
867
1c7cc583
MK
868 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
869 * configure.host: Make i[3456]86-*-aix host obsolete.
870 * configure.tgt: Make i[3456]86-*-aix target obsolete.
871 * config/i386/i386aix.mh, config/i386/i386aix.mt,
872 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
873 config/i386/xm-i386aix.h: Make files obsolete.
874 * i386aix-nat.c: Make file obsolete.
875 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
876 (i386aix-nat.o): Make target obsolete.
877
e0ca2bb9
MK
878 * config/i386/nm-gnu.h: Removed.
879 * config/i386/nm-i386gnu.h: New file.
880 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
881 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
882 Moved here from ...
883 * config/i386/tm-i386gnu.h: ... here. Removed.
884 * config/i386/xm-i386gnu.h: Removed.
885 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
886 (NAT_FILE): Set to nm-i386gnu.h.
887 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
888 * i386-tdep.c: New file.
889 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
890 (i386gnu-tdep.o): Specify dependencies.
891
16057ec7 8922002-08-15 Mark Kettenis <[email protected]>
61113f8b 893
6b99ee2e
MK
894 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
895 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
896 Adjust a few comments to reflect reality a bit closer.
897 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
898 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
899 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
900 target_insert_watchpoint, target_remove_watchpoint):
901 Move defines to ...
902 * config/i386/nm-i386sco5.h: ... here.
903 (kernel_u_size): Add prototype. Improve a few comments and add
904 protection against multiple inclusion.
905
d9a6f65c
MK
906 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
907 out define.
908
047eff6a
MK
909 * uw-thread.c (SP_ARG0): Define if not already defined.
910 * config/i386/tm-i386.h (SO_ARG0): Remove define.
911
dcdb1290
MK
912 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
913
5d2d0b2a
MK
914 * config/i386/tm-i386.h: Don't include "regcache.h".
915
61113f8b
MK
916 * i387-tdep.h (i387_print_float_info): New prototype.
917 * i387-tdep.c (print_i387_value, print_i387_ext,
918 print_i387_status_word, print_i387_control_word): Add `struct
919 ui_file *' argument and use it for output.
920 (i387_print_float_info): Renamed from i387_float_info. Add
921 `struct gdbarch *' and `struct ui_file *' arguments and use the
922 latter for output.
923 * i386-tdep.c: Include "i387-tdep.h".
924 (i386_gdbarch_init): Set print_float_info.
925 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
926 (FLOAT_INFO): Remove define.
927
46e0f506
MS
9282002-08-13 Michael Snyder <[email protected]>
929
930 * mips-tdep.c (mips_push_arguments): Rename to
931 mips_eabi_push_arguments, and tune for EABI.
932 (MIPS_REGS_HAVE_HOME_P): Delete.
933 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
934 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
935 Delete references to mips_regs_have_home_p.
936
409268de
KS
9372002-08-14 Keith Seitz <[email protected]>
938
939 * Makefile.in (install-gdbtk): Create insight plugin directory.
940 Install plugins.tcl file.
941
ffc6a242
KS
9422002-08-14 Keith Seitz <[email protected]>
943
944 * configure.in: Move SUBDIRS to near top of the file so that
945 --enable options may add things to it.
946 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
947 * configure: Regenerate.
948
ebafbe83
MS
9492002-08-13 Michael Snyder <[email protected]>
950
951 * mips-tdep.c (mips_o32o64_push_arguments): New function,
952 cloned from mips_push_arguments, tuned for o32/o64 ABI.
953 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
954
32f6f25d
AC
9552002-08-13 Andrew Cagney <[email protected]>
956
957 * vax-tdep.c (vax_get_saved_register): Delete function.
958 (vax_gdbarch_init): Update.
959 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
960 (ns32k_gdbarch_init): Update.
961 * alpha-tdep.c (alpha_get_saved_register): Delete function.
962 (alpha_gdbarch_init): Update.
963
53826de9
AC
9642002-08-13 Andrew Cagney <[email protected]>
965
966 * regcache.c (init_regcache_descr): Overallocate the
967 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
968 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
969 nr_raw_registers.
970 (set_register_cached): Add range checking assertions. Use
971 current_regcache.
972
16057ec7 9732002-08-13 Mark Kettenis <[email protected]>
7d12f766
MK
974
975 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
976 numbers for MMX registers.
977
7b4c2dce
AC
9782002-08-13 Andrew Cagney <[email protected]>
979
980 * i386-tdep.c (i386_gdbarch_init): Use
981 generic_unwind_get_saved_register.
982
1e03ad20
KB
9832002-08-13 Kevin Buettner <[email protected]>
984
985 * procfs.c (procfs_can_use_hw_breakpoint): New function.
986 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
987 target vector.
988 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
989 Delete. Add comment regarding this now-deleted target method.
990
548bcbec
SC
9912002-08-13 Stephane Carrez <[email protected]>
992
993 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
994 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
995 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
996 real PC and the page number (if it's within the memory bank window).
997 (m68hc11_pseudo_register_write): Likewise when saving.
998 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
999 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1000 (m68hc11_register_raw_size): And use 32-bit for it.
1001 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1002 16K memory bank is used by the prog; also use the virtual pc.
1003
7df11f59
SC
10042002-08-13 Stephane Carrez <[email protected]>
1005
1006 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1007 (m68hc11_gdbarch_init): Install it in gdbarch.
1008 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1009 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1010 (MSYMBOL_SIZE): New for documentation.
1011 (insn_return_kind): Enum to specify how a function returns.
1012 (frame_extra_info): Cleanup and record the return mode.
1013 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1014 register in address computation.
1015 (m68hc11_get_return_insn): New to obtain the return instruction used
1016 by the function.
1017 (m68hc11_frame_init_saved_regs): Take into account the return
1018 instruction used by the function for far and interrupt functions.
1019 (m68hc11_init_extra_frame_info): Take into account page register.
1020 (m68hc11_frame_args_address): Adjust according to the return mode.
1021 (show_regs): Print page register only when it's used.
1022
5706502a
SC
10232002-08-13 Stephane Carrez <[email protected]>
1024
1025 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1026 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1027 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1028 registers.
1029 (m68hc11_register_raw_size): Likewise.
1030
28fc6740
AC
10312002-08-13 Andrew Cagney <[email protected]>
1032
1033 * i386-tdep.c (i386_register_name): Handle mmx registers.
1034 (mmx_regnum_p): New function.
1035 (i386_mmx_names): New array.
1036 (mmx_num_regs): New variable.
1037 (i386_pseudo_register_read): New function.
1038 (i386_pseudo_register_write): New function.
1039 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1040
1041 * regcache.c (regcache_raw_read_unsigned): New function.
1042 (regcache_raw_read_signed): New function.
1043 * regcache.h (regcache_raw_read_unsigned): Declare.
1044 (regcache_raw_read_signed): Declare.
1045
a378f419
AC
10462002-08-13 Andrew Cagney <[email protected]>
1047
1048 * regcache.c (regcache_raw_read_as_address): Delete function.
1049 (regcache_cooked_read_signed): New function.
1050 (regcache_cooked_read_unsigned): New function.
1051 * regcache.h (regcache_cooked_read_signed): Declare.
1052 (regcache_cooked_read_unsigned): Declare.
1053 (regcache_raw_read_as_address): Delete declaration.
1054
1055 * blockframe.c (generic_read_register_dummy): Use
1056 regcache_cooked_read_unsigned.
1057 * i386-tdep.c (i386_extract_struct_value_address): Use
1058 regcache_cooked_read_unsigned.
1059
81967506
SC
10602002-08-13 Stephane Carrez <[email protected]>
1061
1062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1063 double sizes according to ELF ABI flags.
1064 (gdbarch_tdep): Record elf_flags.
1065
ffe1f3ee
SC
10662002-08-13 Stephane Carrez <[email protected]>
1067
1068 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1069 (m6812_prolog): They can appear in 68HC12 function prologue.
1070 (m68hc11_frame_chain): Cleanup.
1071
98216c5d
AC
10722002-08-12 Andrew Cagney <[email protected]>
1073
1074 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1075 declarations.
1076 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1077 (i386_linux_register_raw_size): Delete function.
1078 (i386_linux_init_abi): Update.
1079 * i386-tdep.c (i386_register_raw_size): Delete function.
1080 (i386_register_byte): Delete function.
1081 (i386_gdbarch_init): Update.
1082 (i386_register_size): Delete array.
1083 (i386_register_offset): Delete array.
1084
1085 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1086 (REGISTER_RAW_SIZE): Delete macro.
1087 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1088 (REGISTER_BYTE): Delete macro.
1089
3b19021e
AS
10902002-08-11 Aidan Skinner <[email protected]>
1091
1092 * ada-lang.c (ada_lookup_partial_symbol)
1093 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1094 prototype names so that grep ^func works properly.
1095
1096 * ada-lang.c (ada_array_element_type)
1097 (ada_lookup_partial_symbol): Fix typos in parameter list.
1098
1099 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1100 Fix prototype names so that grep ^func works properly.
1101
b063e7a2
AC
11022002-08-10 Andrew Cagney <[email protected]>
1103 Elena Zannoni <[email protected]>
1104 Martin M. Hunt <[email protected]>
1105
1106 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1107 (build_builtin_type_vec128i): Set the vector bit.
1108 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1109 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1110 (build_builtin_type_vec64): New function.
1111 (build_builtin_type_vec64i): New function.
1112 (build_gdbtypes): Initialize builtin_type_vec64 and
1113 builtin_type_vec64i.
1114
a7e3c2ad
AC
11152002-08-09 Andrew Cagney <[email protected]>
1116
1117 * regcache.c (regcache_dump): Compare the register offset
1118 with REGISTER_BYTE.
1119 * arch-utils.c (generic_register_byte): New function.
1120 * arch-utils.h (generic_register_byte): Declare.
1121 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1122 * gdbarch.h, gdbarch.c: Regenerate.
1123
af030b9a
AC
11242002-08-09 Andrew Cagney <[email protected]>
1125
1126 * regcache.c: Include "gdbcmd.h"
1127 (_initialize_regcache): Add commands "maintenance print
1128 registers", "maintenance print raw-registers" and "maintenance
1129 print cooked-registers".
1130 (enum regcache_dump_what): Define.
1131 (dump_endian_bytes): New function.
1132 (regcache_dump): New function.
1133 (regcache_print): New function.
1134 (maintenance_print_registers): New function.
1135 (maintenance_print_raw_registers): New function.
1136 (maintenance_print_cooked_registers): New function.
1137 * Makefile.in (regcache.o): Update dependencies.
1138
cb3d25d1
MS
11392002-08-09 Michael Snyder <[email protected]>
1140
1141 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1142 (mips_push_arguments): Correct some comments. Use paddr_nz
1143 for printing addresses in debug output. Replace static
1144 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1145 (mips_n32n64_push_arguments): New function, cloned from
1146 mips_push_arguments and tuned for the n32/n64 ABI.
1147 (mips_push_register): Buffer needs dynamic allocation.
1148 (mips_print_register): Ditto.
1149 (do_gp_register_row): Ditto.
1150 (mips_store_return_value): Ditto.
1151 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1152
2163ab9d
DH
11532002-08-09 Don Howard <[email protected]>
1154
1155 * memattr.c (mem_info_command): Print special case of upper bound
1156 as max CORE_ADDR + 1.
1157
b78bcb18
MS
11582002-08-08 Michael Snyder <[email protected]>
1159
1160 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1161 returns structs by ref if they're too big to fit in two registers.
1162
ffabd70d
KB
11632002-08-09 Kevin Buettner <[email protected]>
1164
1165 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1166 saved regs value.
1167 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1168 mips_find_saved_regs().
1169 (mips_pop_frame): Likewise.
1170
fbcdb4a3
KB
11712002-08-09 Kevin Buettner <[email protected]>
1172
1173 * blockframe.c (frame_saved_regs_register_unwind): Revise
1174 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1175 frames are in use.
1176
3c3bea1c
GS
11772002-08-09 Grace Sainsbury <[email protected]>
1178
1179 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1180 T-packets; the 'a' is not taken as a register number.
1181 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1182 (remote_stopped_data_address): New functions; add to target
1183 vector.
1184 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1185 prototypes to match other implementations of this
1186 function. replace integer argument with pointer -- the length
1187 field in the Z-packet is the length of what is pointed to or 1 if
1188 pointer is null. Add to target vector.
1189 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1190 target vector.
1191
1192 From Mark Salter:
1193 * remote.c (remote_wait): Add support to extract optional
1194 watchpoint information from T-packet. Ignore unrecognized
1195 optional info in T-packet.
1196 (remote_async_wait): Ditto.
1197
5d1d95de
CV
11982002-08-09 Corinna Vinschen <[email protected]>
1199
1200 * cli/cli-dump.c: Change fopen modes to use binary open modes
1201 as defined in include/fopen-bin.h throughout.
1202
c86b5b38
MS
12032002-08-08 Michael Snyder <[email protected]>
1204
1205 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1206
b30590dc
KB
12072002-08-08 Kevin Buettner <[email protected]>
1208
1209 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1210 assertion failure by returning early after a warning.
1211
498868ed
KB
12122002-08-08 Kevin Buettner <[email protected]>
1213
1214 * mips-tdep.c (mips_find_saved_regs): Make static.
1215 (mips_frame_init_saved_regs): New function.
1216 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1217 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1218 (mips_find_saved_regs): Delete declaration.
1219
b2dd6311
GS
12202002-08-08 Grace Sainsbury <[email protected]>
1221
3c3bea1c
GS
1222 * remote.c (remote_wait, remote_async_wait): Change
1223 thread_num from int to ULONGEST.
1224 (unpack_varlen_hex): Change result parameter from
1225 int * to ULONGEST *.
b2dd6311 1226
ea47855f
AC
12272002-08-08 Andrew Cagney <[email protected]>
1228
1229 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1230 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1231 powerpc*-*-*.
1232 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1233
69db8bae
AC
12342002-08-08 Andrew Cagney <[email protected]>
1235
1236 * gcore.c (override_derive_stack_segment): Delete variable.
1237 (preempt_derive_stack_segment): Delete function.
1238 (derive_stack_segment): Delete function.
1239 (default_derive_stack_segment): Renamed to derive_stack_segment.
1240 (override_derive_heap_segment): Delete variable.
1241 (preempt_derive_heap_segment): Delete function.
1242 (derive_heap_segment): Delete function.
1243 (default_derive_heap_segment): Rename to derive_heap_segment.
1244
cb811fe7
MS
12452002-08-06 Michael Snyder <[email protected]>
1246
1247 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1248 * mips-tdep.c (mips_EABI_use_struct_convention,
1249 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1250 New functions. (mips_use_struct_convention): Delete.
1251 (mips_gdbarch_init): set use_gdbarch_convention.
1252
8b389c40
MS
12532002-08-06 Michael Snyder <[email protected]>
1254
1255 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1256 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1257 mips_o32_reg_struct_has_addr): New functions.
1258 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1259
5c27f28a
AC
12602002-08-07 Andrew Cagney <[email protected]>
1261
1262 * regcache.c (pseudo_register): Delete function.
1263 (fetch_register): Delete function.
1264 (store_register): Delete function.
1265 (regcache_raw_read, legacy_read_register_gen): Use
1266 target_fetch_registers instead of fetch_register.
1267 (legacy_write_register_gen, regcache_raw_write): Use
1268 target_store_register instead of store_register.
1269 (write_register_bytes): Ditto.
1270
1271 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1272 (STORE_PSEUDO_REGISTER): Delete.
1273 * gdbarch.h, gdbarch.c: Regenerate.
1274
5b331675
CV
12752002-08-06 Corinna Vinschen <[email protected]>
1276
1277 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1278 write dump file binary.
1279
6acdf5c7
MS
12802002-08-05 Michael Snyder <[email protected]>
1281
1282 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1283 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1284 (mips_gdbarch_init): Set N32 target to be mips64.
1285
b2f01c35
KB
12862002-08-06 Kevin Buettner <[email protected]>
1287
1288 * frame.c (find_saved_register): Break out of loop once saved
1289 register address is found. Don't mention sparc in loop comment
1290 anymore.
1291
63db5580
KB
12922002-08-06 Kevin Buettner <[email protected]>
1293
1294 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1295 mips_default_saved_regsize to 8.
1296
5e34e75e
AC
12972002-08-06 Andrew Cagney <[email protected]>
1298
1299 * gcore.c: Do not include <sys/procfs.h>.
1300 * Makefile.in (gcore.o): Update dependencies.
1301
eb4c54a2
AC
13022002-08-06 Andrew Cagney <[email protected]>
1303
1304 * configure.tgt: Make arc-*-* obsolete.
1305 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1306 * MAINTAINERS: Make arc-elf obsolete.
1307 * arc-tdep.c: Make file obsolete.
1308 * config/arc/arc.mt: Ditto.
1309 * config/arc/tm-arc.h: Ditto.
1310
ced15480
TR
13112002-08-05 Theodore A. Roth <[email protected]>
1312
c1bab85b 1313 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1314
b4743822
AC
13152002-08-05 Andrew Cagney <[email protected]>
1316
1317 * mcore-tdep.c (mcore_gdbarch_init): Use
1318 generic_unwind_get_saved_register instead of
1319 generic_get_saved_register.
1320 * v850-tdep.c (v850_gdbarch_init): Ditto.
1321 * frv-tdep.c (frv_gdbarch_init): Ditto.
1322 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1323 * s390-tdep.c (s390_gdbarch_init): Ditto.
1324 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1325 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1326 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1327
3956d554
JB
13282002-08-05 Joel Brobecker <[email protected]>
1329
1330 * objfiles.h: Add missing #include "symfile.h"
1331
1332 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1333
8249c0d6
AC
13342002-08-04 Andrew Cagney <[email protected]>
1335
1336 From 2002-08-01 david carlton <[email protected]>:
1337 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1338 of FIELD_BITSIZE.
1339
b9d14705
DJ
13402002-08-04 Daniel Jacobowitz <[email protected]>
1341
1342 * NEWS: Cleanup and nitpick.
1343
dd73b9bb
AC
13442002-08-03 Andrew Cagney <[email protected]>
1345
1346 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1347
043a27f8
AC
13482002-08-03 Andrew Cagney <[email protected]>
1349
1350 * Makefile.in (gdbtk-bp.o): Update dependencies.
1351 (gdbtk-register.o): Ditto.
1352 (gdbtk-varobj.o): Ditto.
1353
46ce284d
AC
13542002-08-03 Andrew Cagney <[email protected]>
1355
1356 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1357 m68hc11_fetch_pseudo_register.
1358 (m68hc11_pseudo_register_write): Replace
1359 m68hc11_store_pseudo_register.
1360 (m68hc11_gdbarch_init): Update.
1361
b66d6d2e
AC
1362Fri Aug 2 15:53:50 2002 Andrew Cagney <[email protected]>
1363
1364 * gdbarch.sh: Include "gdb_string.h".
1365 * gdbarch.c: Regenerate.
1366
1367 * regcache.c: Include "gdb_string.h".
1368 * ax-general.c: Ditto.
1369 * varobj.c: Ditto.
1370 * std-regs.c: Ditto.
1371 * fbsd-proc.c: Ditto.
1372 * thread.c: Ditto.
1373
1374 * Makefile.in (regcache.o): Update dependencies.
1375 (thread.o, gdbarch.o): Ditto.
1376 (ax-general.o, gdbarch.o): Ditto.
1377 (varobj.o, std-regs.o): Ditto.
1378 (fbsd-proc.o): Specify dependencies.
1379
29e1842b
AC
13802002-08-02 Andrew Cagney <[email protected]>
1381
1382 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1383 regnum.
1384 (regcache_cooked_write): Ditto.
1385
68365089
AC
13862002-08-02 Andrew Cagney <[email protected]>
1387
1388 * regcache.c (regcache_cooked_read): New function.
1389 (regcache_cooked_write): New function.
1390 (read_register_gen): Rewrite using regcache_cooked_read.
1391 (write_register_gen): Rewrite using regcache_cooked_write.
1392
1393 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1394 Declare.
1395
d8124050
AC
13962002-08-02 Andrew Cagney <[email protected]>
1397
1398 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1399 Replace the architecture methods register_read and register_write.
1400 * gdbarch.h, gdbarch.c: Regenerate.
1401 * regcache.c (init_regcache_descr): Update.
1402 (read_register_gen): Update.
1403 (write_register_gen): Update.
1404 (supply_register): Update comment.
1405
1406 * sh-tdep.c (sh_gdbarch_init): Update.
1407 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1408 `regcache' and `gdbarch' parameters. Make `buffer' a void
1409 pointer. Update code.
1410 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1411 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1412 void pointer. Update code.
1413 (sh64_register_write): Delete.
1414 (sh4_register_read): Delete.
1415 (sh64_register_read): Delete.
1416 (sh4_register_write): Delete.
1417 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1418 void pointer, `to' parameter a void pointer.
1419 (sh_sh64_register_convert_to_raw): Ditto.
1420
a6425924
KB
14212002-08-01 Kevin Buettner <[email protected]>
1422
1423 * mips-tdep.c (mips_register_virtual_type): Use architecture
1424 invariant return values.
1425
ff5922b5
AC
14262002-08-01 Andrew Cagney <[email protected]>
1427
1428 * linux-proc.c: Include "gdb_string.h".
1429 * Makefile.in (linux-proc.o): Update dependency list.
1430
32a6503c
KB
14312002-08-01 Kevin Buettner <[email protected]>
1432
1433 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1434 comment.
1435
ccaa32c7
GS
14362002-08-01 Grace Sainsbury <[email protected]>
1437
1438 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1439 to_insert_watchpoint, to_remove_watchpoint,
1440 to_stopped_by_watchpoint, to_stopped_data_address,
1441 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1442 target vecctor. Define their corresponding macros so they call
1443 them.
1444
1445 * target.c: Add default and debug versions of for
1446 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1447 to_insert_watchpoint, to_remove_watchpoint,
1448 to_stopped_by_watchpoint, to_stopped_data_address,
1449 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1450
78fde5f8
KB
14512002-08-01 Kevin Buettner <[email protected]>
1452
1453 * mips-tdep.c (mips_register_virtual_type): New function.
1454 (mips_gdbarch_init): Register mips_register_virtual_type()
1455 with gdbarch machinery.
1456 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1457 this file instead of tm-bigmips.h.
1458 (MIPS_REGSIZE): Delete this macro.
1459 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1460 multiarch version in mips-tdep.c will be found.
1461
db034ac5
AC
14622002-08-01 Andrew Cagney <[email protected]>
1463
1464 * NEWS: Menion that CHILL has been made obsolete.
1465
1466 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1467 * stabsread.c (read_range_type): Ditto.
1468 * gdbtypes.h: Ditto.
1469 * language.c (binop_type_check): Ditto.
1470 (binop_result_type): Ditto.
1471 (integral_type): Ditto.
1472 (character_type): Ditto.
1473 (string_type): Ditto.
1474 (boolean_type): Ditto.
1475 (structured_type): Ditto.
1476 (lang_bool_type): Ditto.
1477 (binop_type_check): Ditto.
1478 * language.h (_LANG_chill): Ditto.
1479 * dwarfread.c (set_cu_language): Ditto.
1480 * dwarfread.c (CHILL_PRODUCER): Ditto.
1481 * dwarfread.c (handle_producer): Ditto.
1482 * expression.h (enum exp_opcode): Ditto.
1483 * eval.c: Ditto for comments.
1484 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1485 * expprint.c (print_subexp): Ditto.
1486 (print_subexp): Ditto.
1487 * valops.c (value_cast): Ditto.
1488 (search_struct_field): Ditto.
1489 * value.h (COERCE_VARYING_ARRAY): Ditto.
1490 * symfile.c (init_filename_language_table): Ditto.
1491 (add_psymbol_with_dem_name_to_list): Ditto.
1492 * valarith.c (value_binop): Ditto.
1493 (value_neg): Ditto.
1494 * valops.c (value_slice): Ditto.
1495 * symtab.h (union language_specific): Ditto.
1496 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1497 (SYMBOL_DEMANGLED_NAME): Ditto.
1498 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1499 * defs.h (enum language): Ditto.
1500 * symtab.c (got_symtab): Ditto.
1501 * utils.c (fprintf_symbol_filtered): Ditto.
1502
1503 * ch-typeprint.c: Make file obsolete.
1504 * ch-valprint.c: Make file obsolete.
1505 * ch-lang.h: Make file obsolete.
1506 * ch-exp.c: Make file obsolete.
1507 * ch-lang.c: Make file obsolete.
1508
1509 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1510 CHILL_LIB.
1511 (TARGET_FLAGS_TO_PASS): Ditto.
1512 (CHILLFLAGS): Obsolete.
1513 (CHILL): Obsolete.
1514 (CHILL_FOR_TARGET): Obsolete.
1515 (CHILL_LIB): Obsolete.
1516 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1517 ch-valprint.c.
1518 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1519 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1520 ch-lang.o.
1521 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1522 targets.
1523
8aaf0b47
JB
15242002-07-31 Joel Brobecker <[email protected]>
1525
1526 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1527 This does not change anything at the moment, but will be helpful
1528 later when full Ada support is integrated.
1529
f3a7b3a5
KB
15302002-07-31 Kevin Buettner <[email protected]>
1531
1532 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1533 help message.
1534
fb850278
KB
15352002-07-31 Kevin Buettner <[email protected]>
1536
1537 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1538 and save it in a local variable. Use variable in later test.
1539
e3bddbfa
KB
15402002-07-31 Kevin Buettner <[email protected]>
1541
1542 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1543 test. (Thanks to Daniel Jacobowitz.)
1544
28d169de
KB
15452002-07-31 Kevin Buettner <[email protected]>
1546
1547 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1548 (mips_abi_strings): Add "n64".
1549 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1550
7fe7e44e
KB
15512002-07-31 Kevin Buettner <[email protected]>
1552
1553 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1554 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1555
c6caf090
KB
15562002-07-31 Kevin Buettner <[email protected]>
1557
1558 * utils.c (host_pointer_to_address, address_to_host_pointer):
1559 Use gdb_assert() instead of explicit call to internal_error().
1560
c41669e0
KB
15612002-07-30 Kevin Buettner <[email protected]>
1562
1563 * Makefile.in (rs6000-nat.o): Update dependencies.
1564
1565 From Nicholas Duffek:
1566 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1567 (aix-thread.o): New rule.
1568 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1569 * config/powerpc/aix432.mh: New file.
1570
2fda4977
DJ
15712002-07-30 Daniel Jacobowitz <[email protected]>
1572
1573 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1574 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1575 (fetch_core_registers, ppc_linux_supply_gregset)
1576 (ppc_linux_supply_fpregset): New functions.
1577 (ppc_linux_regset_core_fns): New.
1578 (_initialize_ppc_linux_tdep): Call add_core_fns.
1579 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1580 and ppc_linux_supply_gregset.
1581 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1582 (supply_fpregset): Call ppc_linux_supply_fpregset.
1583 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1584 corelow.o.
1585 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1586
729051e6
DJ
15872002-07-30 Daniel Jacobowitz <[email protected]>
1588
1589 * symtab.c (lookup_symbol): Demangle before lowercasing.
1590
5f8a3188
AC
15912002-07-30 Andrew Cagney <[email protected]>
1592
1593 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1594 declaration.
1595 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1596 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1597 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1598 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1599 "gdb_string.h".
1600 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1601 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1602 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1603 (avr-tdep.o, mon960-rom.o): Ditto.
1604 (aout_stabs_gnu_h): Define.
1605 (symtab_h): Remove $(gdb_obstack_h).
1606
67f07146
JB
16072002-07-30 Jim Blandy <[email protected]>
1608
1609 Patch from David Carlton <[email protected]>:
1610 * gdbinit.in: Move the `dir' commands that add GDB's own source
1611 directory to the search path to the end, so that the `gdb' source
1612 directory will be searched first.
1613
04ea0df1
AC
16142002-07-29 Andrew Cagney <[email protected]>
1615
1616 * gdb_obstack.h: New file.
1617 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1618 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1619 * objfiles.h: Include "gdb_obstack.h".
1620 * Makefile.in (gdb_obstack_h): Define.
1621 (symtab_h): Add $(gdb_obstack_h).
1622 (objfiles_h): Add $(gdb_obstack_h).
1623
1624 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1625 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1626 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1627 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1628 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1629 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1630 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1631 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1632
1633 * Makefile.in (bcache.o): Update dependencies.
1634 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1635 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1636 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1637 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1638 (stabsread.o, symfile.o, symmisc.o): Ditto.
1639 (symtab.o, typeprint.o, macroexp.o): Ditto.
1640 (macrotab.o, mdebugread.o): Ditto.
1641 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1642 (coff_ecoff_h, aout_aout64_h): Define.
1643 (aout_stabs_gnu_h, libaout_h): Define.
1644
d138e37a
AC
16452002-07-29 Andrew Cagney <[email protected]>
1646
1647 * regcache.c (struct regcache_descr): Rename nr_registers to
1648 nr_cooked_registers. Revise comments describing the structure
1649 member fields.
1650 (init_regcache_descr): Update.
1651 (init_legacy_regcache_descr): Update.
1652 (read_register_gen, write_register_gen): When a cooked register in
1653 the raw register range, directly access the value from the raw
1654 register cache.
1655
460e6ec3
AC
16562002-07-29 Andrew Cagney <[email protected]>
1657
1658 * z8k-tdep.c: Do not include "obstack.h".
1659 * h8300-tdep.c, h8500-tdep.c: Ditto.
1660 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1661 * valprint.c, v850-tdep.c: Ditto.
1662 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1663 * mn10200-tdep.c: Ditto.
1664
1665 * Makefile.in (z8k-tdep.o): Update dependencies.
1666 (m68hc11-tdep.o, valprint.o): Ditto.
1667 (v850-tdep.o, d10v-tdep.o): Ditto.
1668 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1669 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1670 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1671 (sh_opc_h, gdb_sim_sh_h): Define.
1672 (elf_sh_h, elf_bfd_h): Define.
1673 (opcode_m68hc11_h): Define.
1674 (OPCODES_SRC, OPCODES_DIR): define.
1675 (OPCODES): Use $(OPCODES_DIR).
1676 (gdb_sim_d10v_h): Rename sim_d10v_h.
1677 (gdb_sim_arm_h): Rename sim_arm_h.
1678
790c9cf0
KB
16792002-07-26 Kevin Buettner <[email protected]>
1680
1681 * utils.c (host_pointer_to_address, address_to_host_pointer):
1682 Change internal_error() message to indicate function responsible
1683 for the error.
1684
9647fa49
KB
16852002-07-26 Kevin Buettner <[email protected]>
1686
1687 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1688 calls to local_hex_string_custom().
1689
dabbe2c0
KB
16902002-07-26 Kevin Buettner <[email protected]>
1691
1692 * irix5-nat.c: Move IRIX shared library support from here...
1693 * solib-irix.c: ...to here. Revised substantially to work with
1694 generic solib framework.
1695
b96d0a4e
KB
1696 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1697 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1698 * mips-irix-tdep.c: New file.
1699
313fb2f6
KB
1700 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1701 (mips-irix-tdep.o, solib-irix.o): New rules.
1702 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1703 solib-irix.o.
1704 * config/mips/irix6.mt (TDEPFILES): Likewise.
1705 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1706
ab2eaf26
KB
17072002-07-26 Kevin Buettner <[email protected]>
1708
177e4768 1709 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1710 disabled (via ``#if 0'') includes.
1711
7244546a
KB
17122002-07-26 Kevin Buettner <[email protected]>
1713
1714 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1715 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1716 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1717 Add support for the fpscr register.
1718 * rs6000-nat.c (regmap, fetch_inferior_registers)
1719 (store_inferior_registers, fetch_core_registers): Likewise.
1720
dd7be90a
KB
17212002-07-26 Kevin Buettner <[email protected]>
1722
1723 * rs6000-nat.c (language.h): Include.
1724 (special_regs): Delete this array.
1725 (regmap): New function.
1726 (fetch_register, store_register): Use regmap() to map gdb
1727 register numbers to ptrace register numbers. Also, use
1728 outputs from regmap() to make decisions regarding type of
1729 ptrace() call to make. In particular, don't compare against
1730 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1731 (fetch_inferior_registers, store_inferior_registers): Where
1732 possible, obtain register numbers from tdep struct. Don't
1733 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1734 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1735 (LAST_UISA_SP_REGNUM): Delete.
1736
11bf77db
KB
17372002-07-25 Kevin Buettner <[email protected]>
1738
1739 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1740 (fetch_registers, store_register, fetch_core_registers): Don't
1741 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1742 regcache_collect() as appropriate.
1743 (find_toc_address): Format hex address with local_hex_string().
1744
06afebeb
AC
17452002-07-25 Andrew Cagney <[email protected]>
1746
1747 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1748 bfd/elf32-frv.c.
1749
8c554d79
TT
17502002-07-24 Tom Tromey <[email protected]>
1751
1752 * jv-exp.y: Marked all strings with _().
1753 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1754 internal_error.
1755 (MethodInvocation, CastExpression, parse_number, yyerror,
1756 java_type_from_name, push_expression_name, yylex): Typo fixes.
1757
e4c242d9
DJ
17582002-07-24 Daniel Jacobowitz <[email protected]>
1759
1760 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1761 (tee_file_flush, tee_file_write, tee_file_fputs)
1762 (tee_file_isatty): New.
1763 * ui-file.h (tee_file_new): Add prototype.
1764
ebf56fd3
AS
17652002-07-24 Aidan Skinner <[email protected]>
1766
1767 * ada-lang.c: Change k&r style function definitions to prototyped
1768 form.
1769 * ada-typeprint.c: Change k&r style function definitions to prototyped
1770 form.
1771 * ada-valprint.c: Change k&r style function definitions to prototyped
1772 form.
1773
7fb623f7
AC
17742002-07-24 Andrew Cagney <[email protected]>
1775
1776 * README: Remove reference to remote-bug.
1777 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1778 remote-bug.c.
1779 (m88k-nat.o): Delete rule.
1780 (m88k-tdep.o): Delete rule.
1781 (remote-bug.o): Delete rule.
1782 * MAINTAINERS: Mark as obsolete.
1783 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1784 * m88k-tdep.c: Make file obsolete.
1785 * config/m88k/m88k.mh: Ditto.
1786 * config/m88k/delta88v4.mh: Ditto.
1787 * config/m88k/delta88v4.mt: Ditto.
1788 * config/m88k/delta88.mt: Ditto.
1789 * config/m88k/delta88.mh: Ditto.
1790 * remote-bug.c: Ditto.
1791 * config/m88k/tm-delta88.h: Ditto.
1792 * config/m88k/nm-delta88v4.h: Ditto.
1793 * config/m88k/xm-delta88.h: Ditto.
1794 * config/m88k/xm-dgux.h: Ditto.
1795 * config/m88k/tm-m88k.h: Ditto.
1796 * config/m88k/nm-m88k.h: Ditto.
1797 * config/m88k/tm-delta88v4.h: Ditto.
1798 * m88k-nat.c: Ditto.
1799 * cxux-nat.c: Ditto.
1800 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1801 and m88*-*-* obsolete.
1802 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1803 m88*-*-* obsolete.
1804
37611a2b
AC
18052002-07-24 Andrew Cagney <[email protected]>
1806
1807 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1808 constant. Same for local pointer variables.
1809 (extract_signed_integer): Ditto.
1810 * defs.h (extract_unsigned_integer): Update.
1811 (extract_signed_integer): Update.
1812
1aaa5f99
AC
18132002-07-24 Andrew Cagney <[email protected]>
1814
1815 * regcache.c (regcache_raw_write): Change buf parameter to a
1816 constant void pointer.
1817 (regcache_raw_read): Change buf parameter to a void pointer.
1818 (legacy_write_register_gen): Change myaddr parameter a constant
1819 void pointer.
1820 (supply_register): Change val parameter to a const void pointer.
1821 * regcache.h (regcache_raw_write): Update declaration.
1822 (regcache_raw_read): Update declaration.
1823 (supply_register): Update declaration.
1824
b4f5539f
TT
18252002-07-24 Tom Tromey <[email protected]>
1826
1827 * defs.h (gdb_readline_wrapper): Declare.
1828 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1829 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1830 * top.c (gdb_readline_wrapper): New function.
1831 (command_line_input): Use it.
1832
0818c12a
AC
18332002-07-24 Andrew Cagney <[email protected]>
1834
1835 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1836 regcache_read and regcache_write.
1837 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1838 * regcache.c: Update.
1839 * sh-tdep.c (sh64_push_arguments): Update comment.
1840 (sh_pseudo_register_read): Update.
1841 (sh_pseudo_register_write): Update.
1842 (sh4_register_read): Update.
1843 (sh4_register_write): Update.
1844 (sh64_pseudo_register_read): Update.
1845 (sh64_pseudo_register_write): Update.
1846 (sh64_register_read): Update.
1847 (sh64_register_write): Update.
1848 * i386-tdep.c (i386_extract_return_value): Update.
1849 (i386_extract_struct_value_address): Update.
1850 (i386_extract_return_value): Update.
1851 * blockframe.c (generic_read_register_dummy): Update.
1852 (generic_call_dummy_register_unwind): Update
1853 * infrun.c (write_inferior_status_register): Update.
1854
f7321c06
JB
18552002-07-23 Jim Blandy <[email protected]>
1856
1857 * parser-defs.h (expression_context_pc): Make this extern.
1858 (Thanks to Michael Snyder.)
1859
2037aebb
AC
18602002-07-23 Andrew Cagney <[email protected]>
1861
1862 GDB 5.2.1 released from 5.2 branch.
1863 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1864 * README: Update to mention 5.2.1.
1865
66504d44
MS
18662002-07-23 Mark Salter <[email protected]>
1867
1868 * remote.c (remote_read_bytes): Fix check for error.
1869
27bae383
KB
18702002-07-22 Kevin Buettner <[email protected]>
1871
1872 * aix-thread.c (language.h): Include.
1873 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1874 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1875 Print newlines at end of debug messages.
1876 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1877 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1878
18792002-07-22 Kevin Buettner <[email protected]>
1880
1881 * aix-thread.c (ppc-tdep.h): Include.
1882 (special_register_p): New function.
1883 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1884 (store_regs_user_thread): Use register number information from
1885 gdbarch_tdep struct instead of hardcoded offsets relative to
1886 FIRST_UISA_SP_REGNUM.
1887 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1888 special_register_p() instead of using FPLAST_REGNUM and
1889 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1890 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1891 will be MQ's register number.
1892
18932002-07-22 Michael Snyder <[email protected]>
206d3d3c
KB
1894
1895 * aix-thread.c (ops): Rename to aix_thread_ops.
1896 (base_ops): Rename to base_target.
1897 (ops_attach): Rename to aix_thread_attach.
1898 (ops_detach): Rename to aix_thread_detach.
1899 (ops_resume): Rename to aix_thread_detach.
1900 (ops_wait): Rename to aix_thread_wait.
1901 (ops_kill): Rename to aix_thread_kill.
1902 (init_ops): Rename to init_aix_thread_ops.
1903 (ops_fetch_register): Rename to aix_thread_fetch_register.
1904 (ops_store_register): Rename to aix_thread_store_register.
1905 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1906 (ops_thread_alive): Rename to aix_thread_thread_alive.
1907 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1908 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1909 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1910 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1911 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1912 (store_regs_lib): Rename to store_regs_user_thread.
1913 (store_regs_kern): Rename to store_regs_kernel_thread.
1914
27bae383 19152002-07-22 Michael Snyder <[email protected]>
cbe92db4
KB
1916
1917 * aix-thread.c (ops_prepare_to_store): Eliminate.
1918 (init_ops): Don't initialize ops.prepare_to_store.
1919 (store_regs_kern): Pre-fetch register buffers from child,
1920 because some registers may not be in the cache. Copy
1921 regs from register cache only if they are cached.
1922 (store_regs_lib): Copy regs from register cache only
1923 if they are cached.
1924 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1925 fill_gprs64): Ditto.
1926
61c5da0b
KB
19272002-07-22 Kevin Buettner <[email protected]>
1928
1929 * aix-thread.c (gdb_assert.h): Include.
1930 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1931 register sizes (from register cache) match size of buffer holding
1932 register data.
1933 (fill_sprs32): Change parameter types to match those in the ptrace()
1934 buffer.
1935 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1936 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1937
19382002-07-22 Michael Snyder <[email protected]>
1939
1940 * aix-thread.c (supply_sprs64): Cosmetic change.
1941 (supply_sprs32): Cosmetic change.
1942 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1943 (fill_sprs64): Use regcache_collect instead of read_register.
1944 (store_regs_lib): Use regcache_collect instead of
1945 read_register. Use fill_sprs32 instead of fill_sprs64,
1946 if debugging a 32-bit architecture.
1947 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1948 out of the register cache, instead of passing a pointer into
1949 the register cache directly to ptrace. Use regcache_collect
1950 insteaad of read_register.
1951 (ops_prepare_to_store): Use target_read_registers instead
1952 of read_register_bytes.
1953
36479eb1
AS
19542002-07-20 Aidan Skinner <[email protected]>
1955
1956 * MAINTAINERS: Add self under write after approval.
1957
80ae6ee2
AS
19582002-07-20 Aidan Skinner <[email protected]>
1959
1960 * ada-tasks.c: Change k&r style function definitions to prototyped
1961 form.
1962
8a8ab2b9
AC
19632002-07-19 Andrew Cagney <[email protected]>
1964
1965 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1966 * x86-64-tdep.c: Include "objfiles.h".
1967 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1968 in_plt_section. From 2002-07-18 Michal Ludvig <[email protected]>.
1969
fb16b900
ML
19702002-07-17 Michal Ludvig <[email protected]>
1971
1972 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1973 (update_context): Initialise cfa variable.
1974
0fe7bf7b
MS
19752002-07-17 Michael Snyder <[email protected]>
1976
1977 * aix-thread.c: Shorten some long lines.
1978 Bring comments into line with code spec.
1979
488f131b
JB
19802002-07-18 Joel Brobecker <[email protected]>
1981
1982 * infrun.c: Re-indent using gdb_indent.sh.
1983
46c415d2
JB
19842002-07-18 Joel Brobecker <[email protected]>
1985
1986 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1987 Leave the indentation temporarily untouched, to minimize the diffs.
1988
cdecafbe
EZ
19892002-07-18 Elena Zannoni <[email protected]>
1990
1991 * stabsread.c: Make os9k sections of the code obsolete,
1992 for real this time.
1993 * stabsread.h: Make os9k sections of the code obsolete.
1994
7b6aa020
ML
19952002-07-18 Michal Ludvig <[email protected]>
1996
09ec9b38
ML
1997 * linux-low.c (regsets_store_inferior_registers): Add free()
1998 at the end of a loop to prevent memory leak.
1999 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2000 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2001 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2002 line a comment.
4894ac5d 2003 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2004
233282cd
JB
20052002-07-17 Jim Blandy <[email protected]>
2006
2007 * macrocmd.c (info_macro_command): Remove newline from error
2008 message.
2009
7b6aa020 20102002-07-17 J"orn Rennecke <[email protected]>
2f14585c
JR
2011
2012 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2013 (sh_gdbarch_init): Use it for sh-dsp.
2014
f7ef9339
KB
20152002-07-16 Kevin Buettner <[email protected]>
2016
2017 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2018 64-bit DWARF2 format.
2019
8dd72958
JB
20202002-07-16 Joel Brobecker <[email protected]>
2021
2022 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2023 <sys/proc.h> when not available.
2024
a99a9e1b
AC
20252002-07-16 Andrew Cagney <[email protected]>
2026
2027 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2028 * stabsread.c: Make os9k sections of the code obsolete.
2029 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2030 * config/i386/i386os9k.mt: Make file obsolete.
2031 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2032 (COMMON_OBS): Remove os9kread.o
2033 (SFILES): Remove os9kread.c.
2034 (os9kread.o, remote-os9k.o): Make target obsolete.
2035 * remote-os9k.c: Make file obsolete.
2036 * os9kread.c: Make file obsolete.
2037 * Makefile.in
2038
7a3085c1
AC
20392002-07-16 Andrew Cagney <[email protected]>
2040
2041 * NEWS: Mention that the FR30 has been made obsolete.
2042 * fr30-tdep.c: Make file obsolete.
2043 * config/fr30/tm-fr30.h: Ditto.
2044 * config/fr30/fr30.mt: Ditto.
2045 * configure.tgt: Make fr30-*-elf obsolete.
2046 * MAINTAINERS: Make fr30-elf obsolete.
2047
28a93f5a
PM
20482002-07-16 Pierre Muller <[email protected]>
2049
2050 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2051 found is not inside a section.
2052
be006b8b
KB
20532002-07-15 Kevin Buettner <[email protected]>
2054
2055 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2056 strerror().
2057 (pdc_realloc): Use xrealloc() instead of realloc().
2058
14fa3751
KB
20592002-07-15 Kevin Buettner <[email protected]>
2060
2061 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2062 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2063 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2064 macros.
2065
42cc437f
KB
20662002-07-15 Kevin Buettner <[email protected]>
2067
2068 * aix-thread.c (ptrace_check): Eliminate goto.
2069 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2070 problem.
2071
8e2c28d4
KB
20722002-07-15 Kevin Buettner <[email protected]>
2073
2074 * aix-thread.c (gdbcmd.h): Include.
2075 (DEBUG, DBG, DBG2, dbg): Eliminate.
2076 (debug_aix_thread): New static global.
2077 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2078 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2079 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2080 invocations to DBG and DBG2 macros to test against
2081 ``debug_aix_thread'' and call fprintf_unfiltered().
2082 (_initialize_aix_thread): Add new command "set debug aix-thread".
2083
30413464
AC
20842002-07-15 Andrew Cagney <[email protected]>
2085
2086 From Gerhard Tonn <[email protected]>:
2087 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2088 instead of supply_register.
2089
7c43edc1
AC
20902002-07-15 Andrew Cagney <[email protected]>
2091
2092 * dwarf2cfi.c: Include "gdb_assert.h".
2093 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2094 non-NULL.
2095 (update_context): Do not use __func__. Add missing ``break''.
2096 (update_context): Do not use __func__.
2097
9364a0ef
EZ
20982002-07-15 Elena Zannoni <[email protected]>
2099
2100 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2101 and its setting. Set gdbarch instruction printing functions
2102 directly. For non-rs6000 case use new function
2103 gdb_print_insn_powerpc.
2104 (gdb_print_insn_powerpc): New function.
2105
3fbeef0b
AC
21062002-07-13 Andrew Cagney <[email protected]>
2107
92eb23c5 2108 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2109 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2110 * configure.tgt: Mark d30v-*-* as obsolete.
2111 * d30v-tdep.c: Mark file as obsolete.
2112 * config/d30v/d30v.mt: Ditto.
2113 * config/d30v/tm-d30v.h: Ditto.
2114
aacb1f0a
AS
21152002-07-13 Aidan Skinner <[email protected]>
2116
2117 * ada-tasks.c (add_task_entry): replace calls to
2118 malloc() with xmalloc
2119 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2120
2121 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2122 ada_finish_decode_line_1, all_sals_for_line
2123 ada_breakpoint_rewrite): replace calls to free() with xfree()
2124
c11d79f2
KB
21252002-07-12 Kevin Buettner <[email protected]>
2126
2127 From Nicholas Duffek (with minor changes by Martin Hunt,
2128 Louis Hamilton, and Kevin Buettner):
2129 * aix-thread.c: New file.
2130
8e19ed76
PS
21312002-07-12 Petr Sorfa <[email protected]>
2132
2133 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2134 complaint for invalid attribute class or form.
2135 (read_func_scope): DW_AT_frame_base
2136 better handling of DW_AT_block*.
2137 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2138 better handling of DW_AT_block*.
2139 (read_common_block): DW_AT_location
2140 better handling of DW_AT_block*.
2141 (read_partial_die): DW_AT_location better handling
2142 of DW_AT_block*.
2143 (new_symbol): DW_AT_external better handling of
2144 DW_AT_block*. Proper initialization of variable
2145 "addr".
2146 (attr_form_is_block): New function that returns true
2147 if the attribute's form is of DW_FORM_block*.
2148
295401f7
DJ
21492002-07-12 Peter Schauer <[email protected]>
2150
2151 * valops.c (find_method_list): Remove comment about
2152 removed STATIC_MEMFUNCP argument.
2153 (value_find_oload_method_list): Likewise.
2154
e42dc924
KB
21552002-07-12 Kevin Buettner <[email protected]>
2156
2157 From Nicholas Duffek:
2158 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2159 target_new_objfile_hook.
2160
6904b546
KB
21612002-07-12 Kevin Buettner <[email protected]>
2162
2163 From Nicholas Duffek:
2164 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2165 csect.
2166
53fe9346
AC
21672002-07-12 Andrew Cagney <[email protected]>
2168
2169 * MAINTAINERS: Mention --enable-sim-build-warnings.
2170 (m68hc11-elf): Disable sim build warnings.
2171 (m32r-elf): Mark as broken obsolete candidate.
2172 (x86_64-linux-gnu): Mark as buildable with -Werror.
2173 (arm-elf): Change -w to ``,'' which enables warnings but not
2174 -Werror.
2175
af5f3db6
AC
21762002-07-12 Andrew Cagney <[email protected]>
2177
2178 * bcache.h: Update copyright.
2179 (struct bstring, struct bcache): Move definition to "bcache.c".
2180 Replaced by opaque declaration.
2181 (bcache_xfree): Replace free_bcache.
2182 (bcache_xmalloc, bcache_memory_used): Declare.
2183
2184 * bcache.c: Update copyright.
2185 (struct bstring, struct bcache): Moved to here from "bcache.h".
2186 Update comments.
2187 (bcache_xmalloc, bcache_memory_used): New functions.
2188 (bcache_xfree): Replace function free_bcache.
2189
2190 * Makefile.in (objfiles.o): Add $(bcache_h).
2191 (objfiles_h): Remove $(bcache_h).
2192 (symfile.o): Add $(bcache_h).
2193
2194 * symmisc.c: Update copyright.
2195 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2196 (print_objfile_statistics): Use bcache_memory_used.
2197
2198 * symfile.c: Include "bcache.h".
2199 (reread_symbols): Use bcache_xfree.
2200 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2201 (add_psymbol_to_list): Pass psymbol_cache by value.
2202 (add_psymbol_with_dem_name_to_list): Ditto.
2203
2204 * objfiles.h: Update copyright.
2205 (struct bcache): Declare opaque. Do not include "bcache.h".
2206 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2207 bcache'' pointers.
2208 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2209
2210 * objfiles.c: Include "bcache.h". Update copyright.
2211 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2212 macro_cache.
2213 (free_objfile): Use bcache_xfree.
2214
444199e7
GS
22152002-07-11 Grace Sainsbury <[email protected]>
2216
2217 * monitor.c (monitor_fetch_register): Make name a constant.
2218 (monitor_store_register): Same.
2219
261397f8
DJ
22202002-07-11 Daniel Jacobowitz <[email protected]>
2221
2222 Based on patch from Daniel Berlin <[email protected]>.
2223 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2224 (finish_block) For non-function blocks, hash the symbol table. For
2225 function blocks, mark the symbol table as unhashed.
2226 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2227 (msymbol_hash_iw): Likewise.
2228 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2229 value.
2230 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2231 (lookup_minimal_symbol): Likewise for both.
2232 * symtab.h (struct block): Add `hashtable' flag. Comment the
2233 hashtable.
2234 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2235 (ALL_BLOCK_SYMBOLS): Update.
2236 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2237 (struct symbol): Add `hash_next' pointer.
2238 * symtab.c (lookup_block_symbol): Search using the hash table when
2239 possible.
2240 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2241 (search_symbols, find_addr_symbol): Likewise.
2242
2243 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2244 (read_dst_symtab): Likewise.
2245 * jv-lang.c (get_java_class_symtab): Likewise.
2246 * mdebugread.c: Include "gdb_assert.h".
2247 (shrink_block): Assert that the block being modified is not hashed.
2248 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2249 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2250 symbols.
2251 (dump_symtab): Recognize hashed blocks.
2252 * printcmd.c (print_frame_args): Assert that function blocks do not
2253 have hashed symbol tables.
2254 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2255 (fill_in_ada_prototype, debug_print_block): Likewise.
2256 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2257
6f0eaa01
CV
22582002-07-11 Corinna Vinschen <[email protected]>
2259
2260 * stack.c (print_frame): Use result of frame_address_in_block()
2261 instead of fi->pc when evaluating symbols.
2262 (backtrace_command_1): Ditto.
2263
a208b0cb
AC
22642002-07-11 Andrew Cagney <[email protected]>
2265
2266 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2267 Make static.
2268
2269 * arm-tdep.c (arm_register_name): Make return type constant.
2270
a6b6b089
AC
22712002-07-10 Andrew Cagney <[email protected]>
2272
5ae5f592
AC
2273 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2274 prototype.
2275 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2276 * s390-tdep.c (s390_fp_regnum): Ditto.
2277 (s390_read_fp): Ditto.
2278 (s390_pop_frame): Ditto.
2279 (_initialize_s390_tdep): Ditto.
2280 * remote.c (get_remote_state): Ditto.
2281 * procfs.c (mappingflags): Ditto.
2282 * memattr.c (_initialize_mem): Ditto.
2283 * mcore-tdep.c (mcore_pop_frame): Ditto.
2284 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2285 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2286 * language.c (set_case_str): Ditto.
2287 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2288 * frv-tdep.c (new_variant): Ditto.
2289 (frv_stopped_data_address): Ditto.
2290 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2291 (context_alloc): Ditto.
2292 (frame_state_alloc): Ditto.
2293 (unwind_tmp_obstack_init): Ditto.
2294 (unwind_tmp_obstack_free): Ditto.
2295 (cfi_read_fp): Ditto.
2296 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2297 (cris_pop_frame): Ditto.
2298 * c-lang.c (scanning_macro_expansion): Ditto.
2299 (finished_macro_expansion): Ditto.
2300 (c_preprocess_and_parse): Ditto.
2301 * gdbarch.sh: Ditto.
2302 * gdbarch.h, gdbarch.c: Regenerate.
2303 * config/mn10200/tm-mn10200.h: Adjust indentation.
2304 * target.c: Adjust indentation.
2305 * symtab.h: Adjust indentation.
2306 * stabsread.h: Adjust indentation.
2307 * remote-es.c: Adjust indentation.
2308 * os9kread.c: Adjust indentation.
2309
23102002-07-10 Andrew Cagney <[email protected]>
2311
a6b6b089
AC
2312 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2313 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2314
a1789893
GS
23152002-07-10 Grace Sainsbury <[email protected]>
2316
2317 * NEWS: Mention m68k, mcore multi-arching.
2318 * MAINTAINERS: Change status of m68k, mcore to reflect
2319 multi-arching.
2320
02f0d45d
DJ
23212002-07-10 Daniel Jacobowitz <[email protected]>
2322
2323 * valops.c (find_overload_match): Free oload_syms.
2324
f15f768e
JB
23252002-07-09 Joel Brobecker <[email protected]>
2326
2327 Define HAVE_SYS_PROC_H if sys/proc.h exists
2328 * configure.in: Add check for sys/proc.h
2329 * config.in: Regenerate.
2330 * configure: Regenerate.
2331
902a7139
GS
23322002-07-09 Grace Sainsbury <[email protected]>
2333
2334 * config/m68k/tm-m68k.h: Remove macros wrapped in
2335 #if !GDB_MULTI_ARCH.
2336
a534e424
AC
23372002-07-08 Andrew Cagney <[email protected]>
2338
2339 * config.in, configure: Regenerate.
2340
9b94f7bf
MK
23412002-07-08 Mark Kettenis <[email protected]>
2342
2343 * dwarf2cfi.c: Include "gcore.h".
2344 (execute_stack_op): Fix implementation of the
2345 DW_OP_deref and DW_OP_deref_size operators by letting do their
2346 lookup in the target.
2347
1d34db41
MK
23482002-07-07 Mark Kettenis <[email protected]>
2349
2350 From Peter Schauer <[email protected]>:
2351 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2352 tdep->sc_sp_offset.
2353
79d5b63a
DJ
23542002-07-05 Daniel Jacobowitz <[email protected]>
2355
2356 Fix PR gdb/595, gdb/602
2357 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2358 Don't call value_cast, just read the vtable pointer; update comments
2359 to match.
2360
3bb912e8
GS
23612002-07-05 Grace Sainsbury <[email protected]>
2362
2363 * config/mcore/tm-mcore.h: Remove file.
2364 * config/mcore/mcore.mt: Remove definition of TM_FILE
2365 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2366
ca39387d
MK
23672002-07-05 Mark Kettenis <[email protected]>
2368
2369 * i386bsd-tdep.c: Include "gdb_string.h".
2370
efdc1108
GS
23712002-07-04 Grace Sainsbury <[email protected]>
2372
2373 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2374 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2375 mcore-tdep.
2376 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2377 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2378 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2379 (RETVAL_REGNUM): Move macros from tm-mcore.h
2380 (mcore_reg_struct_has_addr): New function.
2381 (mcore_gdbarch_init): Added initializations for the macros removed
2382 from tm-mcore.h.
2383
bb21884d
MK
23842002-07-04 Mark Kettenis <[email protected]>
2385
2386 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2387 traditonal string branding within the ELF header.
2388
228c6d41
DJ
23892002-07-04 Daniel Jacobowitz <[email protected]>
2390
2391 * symtab.c (remove_params): New function.
2392 (make_symbol_overload_list): Use it instead of cplus_demangle.
2393 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2394
2404952e
MK
23952002-07-04 Mark Kettenis <[email protected]>
2396
e5e4acad
MK
2397 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2398
baadce09
MK
2399 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2400 New variables.
2401 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2402 and tdep->sigtramp_end.
2403 * i386obsd-nat.c: New file.
2404 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2405
2404952e
MK
2406 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2407 Don't call get_current_frame().
2408
9b4f1ba7
PM
24092002-07-04 Pierre Muller <[email protected]>
2410
2411 * i386-nat.c (child_post_startup_inferior): New function
2412 calling i386_cleanup_dregs if
2413 I386_USE_GENERIC_WATCHPOINTS is defined.
2414 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2415 conditional to acknowledge that i386-nat.c has its
2416 own child_post_startup_inferior function.
2417
c0d1d883
MK
24182002-07-04 Mark Kettenis <[email protected]>
2419
00f8375e
MK
2420 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2421 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2422 instead of MAX_REGISTER_RAW_SIZE.
2423 (i386_extract_return_value, i386_extract_struct_value_address):
2424 Convert to use regcache.
2425 (i386_gdbarch_init): Set max_register_raw_size and
2426 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2427 Set extract_return_value and extract_struct_value_address instead
2428 of their deprecated variants.
2429
c0d1d883
MK
2430 Convert i386 target to generic dummy frames.
2431 * i386-tdep.c: Include "symfile.h".
2432 (i386_frameless_signal_p): Consider a function to be frameless if
2433 the pc points at the first instruction of the function.
2434 (i386_frame_chain): Handle (generic) call dummies.
2435 (i386_frame_saved_pc): Likewise.
2436 (i386_frame_init_saved_regs): Remove code dealing with call
2437 dummies on the stack.
2438 (i386_push_dummy_frame): Removed.
2439 (i386_call_dummy_words): Removed.
2440 (i386_fix_call_dummy): Removed.
2441 (i386_push_return_address): New function.
2442 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2443 parameter, and don't call get_current_frame.
2444 (i386_pop_frame): New function.
2445 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2446 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2447 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2448 call_dummy_length to 0, set call_dummy_words to NULL, set
2449 sizeof_call_dummy_words to 0, set fix_call_dummy to
2450 generic_fix_call_dummy, set pc_in_call_dummy to
2451 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2452 generic_push_dummy_frame, set push_return_address to
2453 i386_push_return_address and set frame_chain_valid to
2454 generic_file_frame_chain_valid.
2455
049ee0e4
AC
24562002-07-03 Andrew Cagney <[email protected]>
2457
2458 * gdbarch.sh (struct regcache): Add opaque declaration.
2459 (EXTRACT_RETURN_VALUE): New architecture method.
2460 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2461 * gdbarch.h, gdbarch.c: Regenerate.
2462 * arch-utils.c (legacy_extract_return_value): New function.
2463 * arch-utils.h (legacy_extract_return_value): Declare.
2464 * values.c (value_being_returned): Re-enable code handling
2465 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2466 deprecated_grub_regcache_for_registers call to block handling
2467 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2468 (EXTRACT_RETURN_VALUE): Do not define.
2469
4e0d9804
GS
24702002-07-03 Grace Sainsbury <[email protected]>
2471
2472 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2473 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2474 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2475 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2476 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2477 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2478 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2479 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2480 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2481 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2482 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2483 argument so the function fits the prototype in the architecture
2484 vector.
2485 (mcore_pop_frame): Remove argument so the function fits the
2486 prototype. Use get_current_frame instead of the argument.
2487 (mcore_push_arguments): Change type of struct_return so the
2488 function can be used in the architecture vector.
2489 (mcore_store_struct_return): Add.
2490 (mcore_frame_init_saved_regs): Add.
2491 (mcore_gdbarch_init): Add function calls to replace the macros
2492 removed from tm-mcore.h
2493
36160dc4
AC
24942002-07-03 Andrew Cagney <[email protected]>
2495
2496 * infcmd.c (print_return_value): Remove compatibility code calling
2497 deprecated_grub_regcache_for_registers.
2498
2499 * values.c: Include "regcache.h".
2500 (value_being_returned): Update. Use
2501 deprecated_grub_regcache_for_registers to extract the register
2502 buffer address.
2503 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2504 ``struct regcache''.
2505 * Makefile.in (values.o): Add dependency on $(regcache_h).
2506
2507 * inferior.h (run_stack_dummy): Change type of second parameter to
2508 a ``struct regcache''.
2509 * valops.c (hand_function_call): Change type of retbuf to ``struct
2510 regcache''. Allocate using regcache_xmalloc, clean using
2511 make_cleanup_regcache_xfree.
2512 * infcmd.c (run_stack_dummy): Update. Use
2513 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2514
2515 * regcache.c (do_regcache_xfree): New function.
2516 (make_cleanup_regcache_xfree): New function.
2517 * regcache.h (make_cleanup_regcache_xfree): Declare.
2518
e64d9b3d
MH
25192002-07-03 Martin M. Hunt <[email protected]>
2520
4dd79c29
MH
2521 * event-top.c (command_line_handler): Don't read past
2522 beginning of buffer.
e64d9b3d 2523
4dd79c29
MH
25242002-07-03 Martin M. Hunt <[email protected]>
2525
e64d9b3d
MH
2526 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2527 struct frame_id.
2528 (varobj_create): Store frame_id for root.
2529 (varobj_gen_name): Use xasprintf.
2530 (varobj_update): Save and restore frame using get_frame_id() and
2531 frame_find_by_id().
2532 (create_child): Use xasprintf.
2533 (new_root_variable): Initialize frame_id.
2534 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2535 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2536 to prevent memory leak.
2537
26e6c56a
AC
25382002-07-03 Andrew Cagney <[email protected]>
2539
2540 * valops.c (hand_function_call): Move declaration of retbuf to
2541 start of function, allocate using malloc, add a cleanup but before
2542 the inf_status cleanup, cleanup the buffer. Rename local variable
2543 old_chain to inf_status_cleanup.
2544
f436dd25
MH
25452002-07-03 Martin M. Hunt <[email protected]>
2546
2547 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2548
2549 * cli/cli-decode.c (cmd_func_p): New function.
2550 (cmd_func): New function.
2551
2552 * command.h: Add cmd_func() and cmd_func_p().
2553
4cfe2084
GS
25542002-07-03 Grace Sainsbury <[email protected]>
2555
2556 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2557 (REGISTER_SIZE): Remove.
2558 (MAX_REGISTER_RAW_SIZE): Remove.
2559 (REGISTER_VIRTUAL_TYPE): Remove.
2560 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2561 (REGISTER_NAME): Remove.
2562 (USE_GENERIC_DUMMY_FRAMES): Remove.
2563 (CALL_DUMMY): Remove.
2564 (CALL_DUMMY_START_OFFSET): Remove.
2565 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2566 (CALL_DUMMY_LOCATION): Remove.
2567 (FIX_CALL_DUMMY): Remove.
2568 (CALL_DUMMY_ADDRESS): Remove.
2569 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2570 (SAVE_DUMMY_FRAME_TOS): Remove.
2571 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2572 (mcore_register_virtual_type): New function.
2573 (mcore_register_byte): New function.
2574 (mcore_register_size): New function.
2575 (mcore_register_name): New function.
2576 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2577 macros removed from tm-mcore.h.
2578 (mcore_dump_tdep): Add.
2579 (_initialize_mcore_tdep): Add gdbarch_register call.
2580
4fd667e9
MK
25812002-07-03 Mark Kettenis <[email protected]>
2582
2583 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2584 frameless_look_for_prologue, such that we actually call this
2585 function.
2586
42f99ac2
JB
25872002-07-02 Joel Brobecker <[email protected]>
2588
2589 * frame.h (frame_address_in_block): New function.
2590
2591 * blockframe.c (frame_address_in_block): New function extracted
2592 from get_frame_block().
2593 (get_frame_block): Use frame_address_in_block().
2594 (block_innermost_frame): Use frame_address_in_block() to match
2595 the frame pc address against the block boundaries rather than
2596 the frame pc directly. This prevents a failure when a frame pc
2597 is actually a return-address pointing immediately after the end
2598 of the given block.
2599
103a1597 26002002-07-02 Grace Sainsbury <[email protected]>
83b4a0fe
GS
2601
2602 * MAINTAINERS: Add self under write after approval.
2603
26042002-07-02 Grace Sainsbury <[email protected]>
2605
103a1597
GS
2606 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2607 used in architecture vector. The default is
2608 m68k_local_breakpoint_from_pc.
2609 (m68k_local_breakpoint_from_pc): Add.
2610 (enum): Add register numbers from tm-m68k.h.
2611 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2612 vector.
2613 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2614 GDB_MULTI_ARCH_PARTIAL.
2615 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2616 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2617 m68k-tdep.c.
2618 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2619 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2620 to enum in m68k-tdep.c
2621
7a5a0534
JB
26222002-07-02 Joel Brobecker <[email protected]>
2623
2624 * solib-osf.c (open_map): Compute the list of shared libraries
2625 loaded by the inferior, rather than the list of libraries loaded
2626 by GDB itself. Otherwise, GDB ends up reading the symbols from
2627 the wrong shared libraries...
2628
6f558d74
MK
26292002-07-02 Mark Kettenis <[email protected]>
2630
b7d15bf7
MK
2631 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2632 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2633 macros.
2634 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2635 Remove functions.
2636 (FRAMELESS_SIGNAL): Remove function.
2637 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2638 i386_linux_saved_pc_after_call): Removed.
2639 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2640 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2641 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2642
6bff26de
MK
2643 * i386-tdep.c (i386_frameless_signal_p): New function.
2644 (i386_frame_chain): Deal with frameless signals.
2645 (i386_sigtramp_saved_sp): New function.
2646 (i386_frame_saved_pc): Deal with frameless signals.
2647 (i386_saved_pc_after_call): Make sure the correct value is
2648 returned just after entry into a sigtramp.
2649 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2650 i386fbsd4_sc_sp_offset): New variables.
2651 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2652 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2653 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2654 similiar to what we already did for sc_pc_offset.
2655 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2656 tdep->sc_sp_offset.
2657
6f558d74
MK
2658 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2659
145564b7
ML
26602002-07-02 Michal Ludvig <[email protected]>
2661
2662 * config/i386/tm-x86-64linux.h: New.
2663 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2664 definitions.
2665 * config/i386/nm-x86-64.h: Rename to ...
2666 * config/i386/nm-x86-64linux.h: ... this one.
2667 * config/i386/x86-64linux.mh: Reflect the above change.
2668
3a1e71e3
MK
26692002-07-01 Mark Kettenis <[email protected]>
2670
21d0e8a4
MK
2671 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2672 with sigcontext_addr. Add sc_sp_offset.
2673 (i386bsd_sigtramp_saved_pc): Remove prototype.
2674 (i386bsd_sicontext_addr): Add prototype.
2675 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2676 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2677 (i386_svr4_sigtramp_saved_pc): Removed.
2678 (i386_svr4_sigcontext_addr): New function.
2679 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2680 Initialize tdep->sigcontext_addr instead. Initialize
2681 tdep->sc_pc_offset and tdep->sc_sp_offset.
2682 (i386_gdbarch_init): Likewise.
2683 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2684 any more.
2685 (i386bsd_sigtramp_saved_pc): Remove function.
2686 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2687 Initialize tdep->sigcontext_addr instead. Initialize
2688 tdep->sc_pc_offset.
2689 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2690 of tdep->sigtramp_saved_pc.
2691 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2692 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2693 instead.
2694
3a1e71e3
MK
2695 * i386-tdep.c (i386_frameless_function_invocation,
2696 i386_frame_num_args, i386_frame_init_saved_regs,
2697 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2698 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2699 i386_extract_return_value, i386_store_return_value,
2700 i386_extract_struct_value_address, i386_register_virtual_type,
2701 i386_register_convertible, i386_register_convert_to_virtual,
2702 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2703 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2704 static.
2705
52e9098c
MK
27062002-07-01 Mark Kettenis <[email protected]>
2707
77b13a25
MK
2708 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2709
52e9098c
MK
2710 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2711 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2712 this macro. Include "value.h".
2713
1b372fff
AS
27142002-06-30 Aidan Skinner <[email protected]>
2715
2716 * ada-exp.tab.c: remove as it's a generated file
2717 * ada-lex.c: remove as it's a generated file
2718
9c5045b5
MK
27192002-06-30 Mark Kettenis <[email protected]>
2720
4a93c5bb
MK
2721 * config/i386/tm-i386.h (struct frame_info, struct
2722 frame_saved_regs, struct value, struct type): Remove forward
2723 declarations.
2724
322d4fe0
MK
2725 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2726 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2727 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2728 (FILL_FPXREGSET): Define.
2729
fdd8263d
MK
2730 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2731
482e577b
MK
2732 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2733 i[3456]86-*-netbsd* case.
2734 * config/i386/tm-obsd.h: Removed.
2735 * config/i386/obsd.mt: Removed.
2736 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2737 core-aout.o.
2738 (MH_CFLAGS): Add -DYYDEBUG=0.
2739
6916549a
MK
2740 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2741 i386nbsd_sc_pc_offset on OpenBSD too.
2742
9c5045b5
MK
2743 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2744 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2745 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2746 define.
2747 * i386bsd-tdep.c: Include "arch-utils.h".
2748 (i386bsd_aout_in_solib_call_trampoline): New function.
2749 (i386bsd_init_abi): Set in_solib_call_trampoline to
2750 i386bsd_aout_in_solib_call_trampoline.
2751 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2752 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2753
aa84d1bb
AC
27542002-06-28 Andrew Cagney <[email protected]>
2755
2756 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2757 (struct obstack, struct bcache): Add opaque declarations.
2758 * Makefile.in (macrotab_h): Update
2759
b4d83933
AC
27602002-06-28 Andrew Cagney <[email protected]>
2761
2762 * blockframe.c (generic_find_dummy_frame): Change return type to
2763 ``struct regcache''.
2764 (struct dummy_frame): Replace field ``registers'' with regcache, a
2765 struct regcache object.
2766 (generic_find_dummy_frame): Update.
2767 (generic_push_dummy_frame): Update. Use regcache_xfree,
2768 regcache_xmalloc and regcache_cpy.
2769 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2770 regcache_xfree.
2771 (deprecated_generic_find_dummy_frame): Update.
2772 (generic_read_register_dummy): Update. Use
2773 regcache_read_as_address.
2774 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2775 (generic_get_saved_register): Update. Use regcache_read.
2776
08c0b5bc
AC
27772002-06-28 Andrew Cagney <[email protected]>
2778
2779 * Makefile.in (objfiles_h): Add $(bcache_h).
2780 * objfiles.h: Include "bcache.h".
2781
2782 * Makefile.in (symtab_h): Remove $(bcache_h).
2783 * symtab.h: Do not include "bcache.h".
2784
1f89801a
AC
27852002-06-28 Andrew Cagney <[email protected]>
2786
2787 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2788 generic_func_frame_chain_valid.
2789
b9644b58
DB
27902002-06-28 David O'Brien <[email protected]>
2791
2792 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2793 * config/i386/tm-fbsd.h: Likewise.
2794
dd486634
AC
27952002-06-28 Andrew Cagney <[email protected]>
2796
2797 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2798 generic_unwind_get_saved_register.
2799
0b434a00
AC
28002002-06-27 Andrew Cagney <[email protected]>
2801
2802 From 2002-06-27 John David Anglin <[email protected]>:
2803 * regcache.c (supply_register): Add missing argument to
2804 register_buffer call.
2805
f30e5a77
AC
28062002-06-27 Andrew Cagney <[email protected]>
2807
2808 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2809 Solaris /bin/grep does not not like it. From Peter Schauer.
2810
9f064c95
TT
28112002-06-26 Tom Tromey <[email protected]>
2812
2813 * command.h (add_setshow_cmd): Declare.
2814 (add_setshow_cmd_full): Declare.
2815 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2816 returns void. Use add_setshow_cmd_full.
2817 (add_setshow_cmd_full): New function.
2818 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2819 (add_setshow_boolean_cmd): Likewise.
2820
099c7589
JT
28212002-06-26 Jason Thorpe <[email protected]>
2822
2823 * config/vax/tm-vax.h: Protect from multiple inclusion.
2824 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2825 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2826 * config/vax/tm-vaxbsd.h: ...here. New file.
2827 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2828
1d049c5e
JT
28292002-06-26 Jason Thorpe <[email protected]>
2830
2831 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2832 (BELIEVE_PCC_PROMOTION): Remove.
2833 (AP_REGNUM): Move to...
2834 * config/vax/nm-vax.h: ...here.
2835 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2836 (vax_breakpoint_from_pc): New function.
2837 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2838 and gdbarch_believe_pcc_promotion.
2839
4791e091
JT
28402002-06-26 Jason Thorpe <[email protected]>
2841
2842 * Makefile.in (vax_tdep_h): Define.
2843 (vax-tdep.o): Use $(vax_tdep_h).
2844 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2845 (vax_dump_tdep): New function.
2846 (_initialize_vax_tdep): Register vax_dump_tdep.
2847 * vax-tdep.h: Include osabi.h.
2848 (struct gdbarch_tdep): New.
2849
da130f98
AC
28502002-06-26 Andrew Cagney <[email protected]>
2851
2852 * frame.h (deprecated_generic_find_dummy_frame): Rename
2853 generic_find_dummy_frame.
2854 * blockframe.c (generic_find_dummy_frame): Make static.
2855 (deprecated_generic_find_dummy_frame): New function.
2856 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2857 generic_find_dummy_frame with deprecated_find_dummy_frame.
2858 (sh64_nofp_frame_init_saved_regs): Ditto.
2859 (sh_fp_frame_init_saved_regs): Ditto.
2860 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2861 (s390_frame_chain): Ditto.
2862 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2863
6300c360
GS
28642002-06-26 Grace Sainsbury <[email protected]>
2865
2866 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2867 gdbarch vector are at the top.
2868 (NUM_REGS): Remove.
2869 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2870 (FRAME_ARGS_ADDRESS): Remove.
2871 (FRAME_LOCALS_ADDRESS): Remove.
2872 (FRAME_NUM_ARGS): Remove.
2873 (FRAME_ARGS_SKIP): Remove.
2874 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2875 (m68k_gdbarch_init): Add gdbarch initializations for macros
2876 undefined in tm-m68k.h
2877
1c617db8
GS
28782002-06-26 Grace Sainsbury <[email protected]>
2879
2880 * monitor.h: Add the function regname to monitor_ops
2881 structure. This way NUM_REGS does not have to be a constant.
2882 * monitor.c (monitor_fetch_register): Added support for regname
2883 function. The function is called if the array regnames is NULL.
2884 (monitor_store_register): Same.
da130f98
AC
2885 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2886 regnames array.
1c617db8
GS
2887 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2888 cpu32bug_cmds.regname to point to new function.
2889 * abug-rom.c (abug_regname): Same as above.
2890 (init_abug_cmds): Same.
2891 * dbug-rom.c (dbug_regname): Same as above.
2892 (init_dbug_cmds): Same.
2893 * remote-est.c (est_regname): Same.
2894 (init_est_cmds): Same.
2895 * rom68k-rom.c (rom68k_regname): Same.
2896 (init_rom68k_cmds): Same.
2897
ea9365bb
TT
28982002-06-25 Tom Tromey <[email protected]>
2899
2900 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2901
72cec141
AC
29022002-06-25 Andrew Cagney <[email protected]>
2903
2904 * infrun.c (stop_registers): Change variable's type to ``struct
2905 regcache'''.
2906 (xmalloc_inferior_status): Delete function.
2907 (free_inferior_status): Delete function.
2908 (normal_stop): Use regcache_cpy.
2909 (struct inferior_status): Change type of fields ``stop_registers''
2910 and ``registers'' to ``struct regcache''.
2911 (write_inferior_status_register): Use regcache_write.
2912 (save_inferior_status): Instead of calling
2913 xmalloc_inferior_status, allocate the inf_status buffer directly.
2914 Use regcache_dup_no_passthrough and regcache_dup to save the
2915 buffers.
2916 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2917 Replace the stop_registers regcache instead of overriding it. Use
2918 regcache_xfree. Instead of calling free_inferior_status, xfree
2919 the buffer directly.
2920 (discard_inferior_status): Use regcache_xfree. Instead of calling
2921 free_inferior_status, xfree the buffer directly.
2922 (build_infrun): Use regcache_xmalloc.
2923 (_initialize_infrun): Delete redundant call to build_infrun.
2924
2925 * Makefile.in (infcmd.o): Add $(regcache_h).
2926
2927 * infcmd.c: Include "regcache.h".
2928 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2929 obtain the address of `stop_registers' register buffer.
2930 (print_return_value): Ditto.
2931
2932 * inferior.h (struct regcache): Add opaque declaration.
2933 (stop_registers): Change variable's declared type to ``struct
2934 regcache''.
2935
defc6f8c
TT
29362002-06-24 Tom Tromey <[email protected]>
2937
c0e624e7
TT
2938 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2939 * target.c (initialize_targets): Fixed typo in
2940 trust-readonly-sections `show' documentation.
2941
defc6f8c
TT
2942 * main.c: Marked all strings with _().
2943
2b236d82
DH
29442002-06-24 Don Howard <[email protected]>
2945
2946 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2947 that means max CORE_ADDR+1.
2948 (lookup_mem_region): Ditto.
2949 (mem_info_command): Ditto.
2950
942dc0e9
GS
29512002-06-24 Grace Sainsbury <[email protected]>
2952
2953 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2954 (REGISTER_BYTES_OK): Remove.
2955 (REGISTER_BYTES): Remove.
2956 (STORE_STRUCT_RETURN): Remove.
2957 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2958 (STORE_RETURN_VALUE): Remove.
2959 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2960 (FRAME_CHAIN): Remove.
2961 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2962 (FRAME_SAVED_PC): Remove.
2963 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2964 (m68k_store_struct_return): Add.
2965 (m68k_deprecated_extract_return_value): Add.
2966 (m68k_deprecated_extract_struct_value_address): Add.
2967 (m68k_store_return_value): Add.
2968 (m68k_frame_chain): Add.
2969 (m68k_frameless_function_invocation): Add.
2970 (m68k_frame_saved_pc): Add.
2971 (m68k_gdbarch_init): added set_gdbarch calls for new
2972 functions and deleted macros.
2973
03c30d4d
TT
29742002-06-23 Tom Tromey <[email protected]>
2975
2976 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2977 (ALLDEPFILES): Likewise.
2978 (udiheaders): Removed.
2979 (udip2soc.o): Likewise.
2980 (udi2go32.o): Likewise.
2981 (udr.o): Likewise.
2982 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2983
37e71372
AC
29842002-06-22 Andrew Cagney <[email protected]>
2985
06a6ac57
AC
2986 * infrun.c (_initialize_infrun): Delete unnecessary call to
2987 build_infrun.
2988
37e71372
AC
2989 * regcache.h: Update comments describing the regcache_cpy family
2990 of functions.
2991 (regcache_save, regcache_restore): Delete declaration.
2992 (regcache_save_no_passthrough): Delete declaration.
2993 (regcache_restore_no_passthrough): Delete declaration.
2994 * regcache.c (regcache_save): Delete function.
2995 (regcache_save_no_passthrough): Delete function.
2996 (regcache_restore): Delete function.
2997 (regcache_restore_no_passthrough): Delete function.
2998
78f6d055
AC
29992002-06-21 Andrew Cagney <[email protected]>
3000
3001 * config/m68k/tm-m68k.h: Fix typo.
3002 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3003 (m68k_frame_init_saved_regs): Declare.
3004
78b119cb
JB
30052002-06-21 Jim Blandy <[email protected]>
3006
3007 Remove some vestiges of Harris 88k support.
3008 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3009 register numbering quirk.
3010 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3011 odd symbols occurring in Harris 88k ELF targets.
3012
0fbb3da7
TT
30132002-06-21 Tom Tromey <[email protected]>
3014
3015 * gdb_locale.h: New file.
3016 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3017 (defs_h): Added gdb_locale.h.
3018 * configure, config.in: Rebuilt.
3019 * configure.in (PACKAGE): Define.
3020 * defs.h: Include gdb_locale.h.
3021 * main.c (captured_main): Call setlocale, bindtextdomain,
3022 textdomain.
3023
456f8b9d
DB
30242002-06-21 Dave Brolley <[email protected]>
3025
3026 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3027 * config/frv/frv.mt: New file.
3028 * config/frv/tm-frv.h: New file.
3029 * configure.tgt: Support frv-*-*.
3030 * Makefile.in (frv-tdep.o): New target.
3031 * frv-tdep.c: New file.
3032 * NEWS: Mention frv.
3033
cdd463f9
DB
30342002-06-21 Dave Brolley <[email protected]>
3035
3036 * MAINTAINERS: Add self to "Write After Approval" list.
3037
5d3ed2e3
GS
30382002-06-21 Grace Sainsbury <[email protected]>
3039
3040 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3041 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3042 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3043 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3044 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3045
3046 * m68k-tdep.c: Include arch-utils.h
3047 (m68k_register_raw_size): Add.
3048 (m68k_register_virtual_size): Add.
3049 (m68k_register_virtual_type): Add.
3050 (m68k_register_name): Add.
3051 (m68k_stack_align): Add.
3052 (m68k_register_byte): Add.
3053 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3054 tm-m68k.h.
3055
7f8e7424
GS
30562002-06-21 Grace Sainsbury <[email protected]>
3057
a2c6a6d5 3058 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3059 m68k_find_saved_regs.
3060 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3061 references to it with frame->saved_regs.
7f8e7424
GS
3062 (m68k_gdbarch_init): Added function calls to initialize the
3063 gdbarch structure.
a2c6a6d5
GS
3064 (m68k_fix_call_dummy): Add.
3065 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3066 (CALL_DUMMY): Remove.
3067 (CALL_DUMMY_LENGTH): Remove.
3068 (CALL_DUMMY_START_OFFSET): Remove.
3069 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3070 (FIX_CALL_DUMMY): Remove.
3071 (PUSH_DUMMY_FRAME): Remove.
3072 (POP_FRAME): Remove.
7f8e7424 3073
f461f5cf
PM
30742002-06-19 Pierre Muller <[email protected]>
3075
3076 * parse.c (parse_fprintf): New function used to avoid calls to
3077 fprintf in bison parser generated debug code.
3078 * parser-defs.h: Declaration of new parse_fprintf function.
3079 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3080 Set YYDEBUG to 1 by default.
3081 Set YYFPRINTF as parse_fprintf.
3082
7f0c12ed
ML
30832002-06-21 Michal Ludvig <[email protected]>
3084
3085 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3086 encoding anymore.
3087 (pointer_encoding, enum ptr_encoding): New.
3088 (execute_cfa_program): Take care about pointer encoding.
3089 (dwarf2_build_frame_info): Only call parse_frame_info for
3090 .debug_frame and .eh_frame.
3091 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3092 fixed augmentation handling, added relative addressing,
3093 ignore duplicate FDEs. Added comments.
19d833a2 3094 * dwarf2cfi.c: Reindented.
7f0c12ed 3095
87c4a039
EZ
30962002-06-20 Elena Zannoni <[email protected]>
3097
3098 * event-top.c (command_handler): Don't use space_at_cmd_start
3099 unless there is sbrk() on the host. Assign time and space data
3100 to union fields of the appropriate length.
3101
1cf877ad
ML
31022002-06-20 Michal Ludvig <[email protected]>
3103
3104 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3105 x86_64_register_name. Return type changed to 'const char *'.
3106 (x86_64_register_name2nr): Rename to x86_64_register_number.
3107 (x86_64_gdbarch_init): Update to reflect the change.
3108 * x86-64-tdep.h: Ditto.
3109 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3110 (supply_fpregset): Ditto.
3111
3fadccb3
AC
31122002-06-19 Andrew Cagney <[email protected]>
3113
3114 * regcache.h: Update copyright.
3115 (struct regcache, struct gdbarch): Add opaque declarations.
3116 (current_regcache): Declare global variable.
3117 (regcache_read, regcache_write): Add gdbarch parameter.
3118 (regcache_save, regcache_save_no_passthrough)
3119 (regcache_restore, regcache_restore_no_passthrough)
3120 (regcache_dup, regcache_dup_no_passthrough)
3121 (regcache_cpy, regcache_cpy_no_passthrough)
3122 (deprecated_grub_regcache_for_registers)
3123 (deprecated_grub_regcache_for_register_valid)
3124 (regcache_valid_p): Add function declarations.
3125
3126 * regcache.c: Update copyright.
3127 (regcache_descr_handle): New global variable.
3128 (struct regcache_descr): Define.
3129 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3130 (regcache_descr, xfree_regcache_descr): New functions.
3131 (struct regcache): Define.
3132 (regcache_xmalloc, regcache_xfree): New functions.
3133 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3134 (regcache_dup, regcache_dup_no_passthrough): New functions.
3135 (regcache_valid_p, regcache_read_as_address): New functions.
3136 (deprecated_grub_regcache_for_registers): New function.
3137 (deprecated_grub_regcache_for_register_valid): New function.
3138 (current_regcache): New global variable.
3139 (register_buffer): Add regcache parameter. Update calls.
3140 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3141 (read_register_gen, write_register_gen): Update register_buffer
3142 call. Test for legacy_p instead of gdbarch_register_read_p or
3143 gdbarch_register_write_p.
3144 (regcache_collect): Update register_buffer call.
3145 (build_regcache): Rewrite. Use deprecated grub functions.
3146 (regcache_save, regcache_save_no_passthrough): New functions.
3147 (regcache_restore, regcache_restore_no_passthrough): New
3148 functions.
3149 (_initialize_regcache): Create the regcache_data_handle. Swap
3150 current_regcache global variable.
3151
3152 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3153 parameter to regcache_read and regcache_write calls.
3154 (sh4_register_read): Ditto.
3155 (sh64_pseudo_register_read): Ditto.
3156 (sh64_register_read): Ditto.
3157 (sh_pseudo_register_write): Ditto.
3158 (sh4_register_write): Ditto.
3159 (sh64_pseudo_register_write): Ditto.
3160 (sh64_register_write): Ditto.
3161
3162 * defs.h (XCALLOC): Define.
3163
152d9db6
GS
31642002-06-19 Grace Sainsbury <[email protected]>
3165
3166 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3167 * m68k-tdep.c (m68k_gdbarch_init): Added.
3168 (m68k_dump_tdep): Added.
3169
170911c7
DJ
31702002-06-19 Daniel Jacobowitz <[email protected]>
3171
3172 * ada-lang.c (fill_in_ada_prototype): Update comment.
3173
2e4ebe70
DJ
31742002-06-19 Daniel Jacobowitz <[email protected]>
3175
3176 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3177 MIPS_ABI_LAST.
3178 (mips_abi_string, mips_abi_strings): New.
3179 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3180 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3181 tdep->mips_abi_string. Honor mips_abi_string. Default to
3182 O32 if no ABI is found.
3183 (mips_dump_tdep): Use mips_abi_strings.
3184 (mips_abi_update): New function.
3185 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3186 ``set mips abi'' and ``show mips abi''. Check the size of
3187 mips_abi_strings.
3188
16775908
AC
31892002-06-19 Andrew Cagney <[email protected]>
3190
3191 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3192 constant.
3193
5051bfa4 31942002-06-18 Joel Brobecker <[email protected]>
16775908 3195
5051bfa4
JB
3196 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3197 current frame using only the first stack size adjustment. All
3198 subsequent size adjustments are not considered to be part of
3199 the "static" part of the current frame.
3200 Compute the address of the saved registers relative to the
3201 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3202 in use in this frame.
3203
56468235
DH
32042002-06-18 Don Howard <[email protected]>
3205
3206 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3207 type int expressions. Thanks to Jim Blandy <[email protected]> for
3208 suggesting this solution.
3209
0b624158
AC
32102002-06-18 Andrew Cagney <[email protected]>
3211
3212 * config/romp/xm-rtbsd.h: Delete file.
3213 * config/romp/rtbsd.mh: Delete file.
3214
221ea385
KS
32152002-06-18 Keith Seitz <[email protected]>
3216
3217 * breakpoint.c (condition_command): Post breakpoint_modify
3218 when a condition is added to an existing breakpoint.
3219 (commands_command): Likewise for commands.
3220 (set_ignore_count): Likewise for ignore counts.
3221 If no tty, do not simply return, still need to send event
3222 notification.
3223 (ignore_command): Only print a newline if the command came
3224 from a tty.
3225 Don't call breakpoints_changed, since this is now properly
3226 handled by set_ignore_count.
3227
5402eed1
AC
32282002-06-18 Andrew Cagney <[email protected]>
3229
3230 * MAINTAINERS: Note that cris-elf target can be compiled with
3231 -Werror.
3232 * cris-tdep.c (cris_register_name): Make return type constant.
3233 (cris_breakpoint_from_pc): Ditto.
3234
cc22880b
ML
32352002-06-18 Michal Ludvig <[email protected]>
3236
3237 * frame.h (struct frame_info): Change type of context to
3238 'struct context'.
3239
fa88f677
AC
32402002-06-17 Andrew Cagney <[email protected]>
3241
3242 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3243 pointer.
3244 * gdbarch.h, gdbarch.c: Regenerate.
3245 * config/mips/tm-mips.h (mips_register_name): Update.
3246 * i386-tdep.h (i386_register_name): Update.
3247 * mips-tdep.c (mips_register_name): Update
3248 * alpha-tdep.c (alpha_register_name): Update.
3249 * arch-utils.c (legacy_register_name): Update.
3250 * arch-utils.h (legacy_register_name): Update.
3251 * avr-tdep.c (avr_register_name): Update.
3252 * ia64-tdep.c (ia64_register_name): Update.
3253 * i386-tdep.c (i386_register_name): Update.
3254 * sparc-tdep.c (sparc32_register_name): Update.
3255 (sparc64_register_name): Update.
3256 (sparclite_register_name): Update.
3257 (sparclet_register_name): Update.
3258 * sh-tdep.c (sh_generic_register_name): Update.
3259 (sh_sh_register_name): Update.
3260 (sh_sh3_register_name): Update.
3261 (sh_sh3e_register_name): Update.
3262 (sh_sh_dsp_register_name): Update.
3263 (sh_sh3_dsp_register_name): Update.
3264 (sh_sh4_register_name): Update.
3265 (sh_sh64_register_name): Update.
3266 * s390-tdep.c (s390_register_name): Update.
3267 * rs6000-tdep.c (rs6000_register_name): Update.
3268 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3269 (ns32k_register_name_32382): Update.
3270 * d10v-tdep.c (d10v_ts2_register_name): Update.
3271 (d10v_ts3_register_name): Update.
3272 * xstormy16-tdep.c (xstormy16_register_name): Update.
3273 * vax-tdep.c (vax_register_name): Update.
3274 * v850-tdep.c (v850_register_name): Update.
3275 * m68hc11-tdep.c (m68hc11_register_name): Update.
3276 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3277 (am33_register_name): Update.
3278
ea1e7ef6
GS
32792002-06-17 Grace Sainsbury <[email protected]>
3280
3281 * m68k-tdep.c: Reindented.
3282
9b02dd1b
AC
32832002-06-17 Andrew Cagney <[email protected]>
3284
3285 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3286 list of predefined types.
3287
8758dec1
MK
32882002-06-16 Mark Kettenis <[email protected]>
3289
b6197528
MK
3290 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3291 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3292 REGISTER_CONVERT_TO_RAW): Remove defines.
3293 (i386_register_virtual_type, i386_register_convertible,
3294 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3295 Remove prototypes.
3296 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3297 macros mentioned above.
3298
82b47e62
MK
3299 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3300 (i386lynx_saved_pc_after_call): Remove prototype.
3301 * i386ly-tdep.c: Include "i386-tdep.h".
3302 (i386lynx_saved_pc_after_call): Make static. Use
3303 read_memory_nobpt instead of read_memory. Use
3304 read_memory_unsigned_integer instead of read_memory_integer.
3305 (i386lynx_init_abi): New function.
3306 (i386lynx_coff_osabi_sniffer): New function.
3307 (_initialize_i386bsd_tdep): New function.
3308
8758dec1
MK
3309 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3310 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3311 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3312 (i386_fix_call_dummy): Remove prototype.
3313 * i386-tdep.c (i386_call_dummy_words): New variable.
3314 (i386_gdbarch_init): Adjust for removal of the
3315 macros mentioned above.
3316
e9e68a56
AC
33172002-06-15 Andrew Cagney <[email protected]>
3318
3319 * command.h (add_setshow_auto_boolean_cmd): Replace
3320 add_set_auto_boolean_cmd.
3321 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3322 add_set_auto_boolean_cmd.
3323 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3324 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3325 mask-address'' command.
3326 (show_mask_address): Add cmd parameter.
3327 * remote.c (add_packet_config_cmd): Update. Change type of
3328 set_func and show_func to cmd_sfunc_ftype.
3329 (_initialize_remote): Update `set remote Z-packet'
3330 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3331 (show_remote_protocol_e_packet_cmd): Ditto.
3332 (show_remote_protocol_E_packet_cmd): Ditto.
3333 (show_remote_protocol_P_packet_cmd): Ditto.
3334 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3335 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3336 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3337 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3338 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3339 (show_remote_protocol_Z_packet_cmd): Ditto.
3340 (show_remote_protocol_binary_download_cmd): Ditto.
3341 (show_remote_cmd): Pass NULL to all of above.
3342
fc08ec52
MK
33432002-06-15 Mark Kettenis <[email protected]>
3344
3345 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3346 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3347 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3348 POP_FRAME): Remove defines.
3349 (i386_push_arguments, i386_store_struct_return,
3350 i386_extract_return_value, i386_store_return_value,
3351 i386_extract_struct_value_address, i386_push_dummy_frame,
3352 i386_pop_frame): Renove prototypes.
3353 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3354 macros mentioned above.
3355
e707bbc2
AC
33562002-06-15 Andrew Cagney <[email protected]>
3357
3358 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3359 add_set_boolean_cmd.
3360 (add_setshow_cmd): New function.
3361 * command.h (add_setshow_boolean_cmd): Replace
3362 add_set_boolean_cmd.
3363 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3364 and ``set rdiromatzero''.
3365 * maint.c (_initialize_maint_cmds): Update commented out code.
3366 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3367 * target.c (initialize_targets): Update `set
3368 trust-readonly-sections'.
3369 * remote.c (_initialize_remote): Update `set remotebreak'.
3370
42fdc8df
MK
33712002-06-15 Mark Kettenis <[email protected]>
3372
93924b6b
MK
3373 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3374 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3375 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3376 fit into multi-arch framework.
3377 (i386_breakpoint_from_pc): New function.
3378 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3379 above.
3380
42fdc8df
MK
3381 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3382 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3383 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3384 (i386_frameless_function_invocation, i386_frame_num_args,
3385 i386_frame_init_saved_regs): Remove prototypes.
3386 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3387 macros mentioned above.
3388
9773a94b
AC
33892002-06-15 Andrew Cagney <[email protected]>
3390
3391 * cli/cli-decode.c (set_cmd_cfunc): Update.
3392 (set_cmd_sfunc): Update.
3393 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3394 (set_cmd_sfunc, set_cmd_cfunc): Update.
3395 * cli/cli-decode.h: Update.
3396
6e157172
MK
33972002-06-15 Mark Kettenis <[email protected]>
3398
3399 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3400 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3401
7f19b9a2
AC
34022002-06-15 Andrew Cagney <[email protected]>
3403
3404 * defs.h (auto_boolean): Declare enum.
3405 * command.h (cmd_auto_boolean): Delete enum.
3406 * mips-tdep.c (mask_address_var): Update.
3407 (mips_mask_address_p): Update.
3408 (show_mask_address): Update.
3409 * remote.c (struct packet_config): Update.
3410 (update_packet_config): Update.
3411 (show_packet_config_cmd): Update.
3412 (packet_ok): Update.
3413 (add_packet_config_cmd): Update.
3414 (_initialize_remote):
3415 * command.h: Update.
3416 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3417 (do_setshow_command): Update.
3418 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3419 * cli/cli-decode.h: Update.
3420
1cf88de5
MK
34212002-06-15 Mark Kettenis <[email protected]>
3422
22ba8cf2
MK
3423 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3424 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3425 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3426 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3427 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3428 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3429
762c5349
MK
3430 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3431 list of DJGPP COFF targets.
3432
091198bb
MK
3433 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3434 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3435 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3436 (FP0_REGNUM): Remove define.
3437 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3438 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3439 (i386_register_virtual_size): Remove protoype.
3440 * i386-tdep.c (i386_register_virtual_size): Removed.
3441 (i386_extract_return_value, i386_store_return_value): Use
3442 FP0_REGNUM instead of NUM_FREGS to determine whether the
3443 floating-point registers are available.
3444 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3445 Adjust for removal of macros mentioned above.
3446
34472002-06-15 Mark Kettenis <[email protected]>
3448
fcc9bf01
MK
3449 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3450 comments.
3451 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3452 Remove prototypes.
3453 (supply_gregset, fill_gregset): Remove use of register keyword and
3454 remove declaration for regmap. Use I386_NUM_GREGS instead of
3455 NUM_REGS and NUM_FREGS.
3456 (FPREGSET_FSAVE_OFFSET): Remove.
3457 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3458 NUM_FREGS to determine whether the floating-point registers are
3459 available.
3460
65e78234
MK
3461 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3462 gnu_store_registers): Replace usage of NUM_GREGS with
3463 I386_NUM_GREGS.
3464
98df6387
MK
3465 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3466 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3467 usage of NUM_GREGS with I386_NUM_GREGS.
3468
099a9414
MK
3469 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3470
57976e88
MK
3471 * i386bsd-nat.c: Include "i386-tdep.h".
3472 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3473 I386_NUM_GREGS.
3474
b335f4a6
MK
3475 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3476 and associated comment. They no longer make any sense, since we
3477 don't use this file anymore on Linux.
3478
1cf88de5
MK
3479 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3480 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3481 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3482 elements in these arrays.
3483 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3484 MAX_NUM_REGS.
3485
daa66587
MK
34862002-06-15 Mark Kettenis <[email protected]>
3487
3488 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3489 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3490
26e9b323
AC
34912002-06-14 Andrew Cagney <[email protected]>
3492
3493 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3494 EXTRACT_RETURN_VALUE.
3495 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3496 EXTRACT_STRUCT_VALUE_ADDRESS.
3497 * gdbarch.h, gdbarch.c: Regenerate.
3498
3499 * values.c (value_being_returned): Handle
3500 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3501 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3502
3503 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3504 * arm-tdep.c (arm_gdbarch_init): Update.
3505 * avr-tdep.c (avr_gdbarch_init): Update.
3506 * cris-tdep.c (cris_gdbarch_init): Update.
3507 * d10v-tdep.c (d10v_gdbarch_init): Update.
3508 * ia64-tdep.c (ia64_gdbarch_init): Update.
3509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3511 * s390-tdep.c (s390_gdbarch_init): Update.
3512 * sh-tdep.c (sh_gdbarch_init): Update.
3513 * s390-tdep.c (s390_gdbarch_init): Update.
3514 * sparc-tdep.c (sparc_gdbarch_init): Update.
3515 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3516 * v850-tdep.c (v850_gdbarch_init): Update.
3517 * vax-tdep.c (vax_gdbarch_init): Update.
3518 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3520
3521 * config/arc/tm-arc.h: Update.
3522 * config/d30v/tm-d30v.h: Update.
3523 * config/fr30/tm-fr30.h: Update.
3524 * config/h8300/tm-h8300.h: Update.
3525 * config/h8500/tm-h8500.h: Update.
3526 * config/i386/tm-i386.h: Update.
3527 * config/i386/tm-ptx.h: Update.
3528 * config/i386/tm-symmetry.h: Update.
3529 * config/i960/tm-i960.h: Update.
3530 * config/m32r/tm-m32r.h: Update.
3531 * config/m68k/tm-delta68.h: Update.
3532 * config/m68k/tm-linux.h: Update.
3533 * config/m68k/tm-m68k.h: Update.
3534 * config/m88k/tm-m88k.h: Update.
3535 * config/mcore/tm-mcore.h: Update.
3536 * config/mips/tm-mips.h: Update.
3537 * config/mn10200/tm-mn10200.h: Update.
3538 * config/pa/tm-hppa.h: Update.
3539 * config/pa/tm-hppa64.h: Update.
3540 * config/sparc/tm-sp64.h: Update.
3541 * config/sparc/tm-sparc.h: Update.
3542 * config/sparc/tm-sparclet.h: Update.
3543 * config/z8k/tm-z8k.h: Update.
3544
5179e78f
AC
35452002-06-14 Andrew Cagney <[email protected]>
3546
3547 * Makefile.in (i386_linux_tdep_h): Define.
3548 (i386_tdep_h, i387_tdep_h): Define.
3549 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3550 $(i386_tdep_h) and $(i387_tdep_h).
3551 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3552
8201327c
MK
35532002-06-14 Mark Kettenis <[email protected]>
3554
edf393ac
MK
3555 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3556 Already covered by the default.
3557
896fb97d
MK
3558 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3559 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3560 (i386_gdbarch_init): Initialize long_double_format and long_double
3561 bit.
3562
8201327c
MK
3563 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3564 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3565 Move these to ...
3566 * config/i386/i386sol2.mh: ... here.
3567 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3568 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3569 (SIGCONTEXT_PC_OFFSET): Remove define.
3570 (IN_SIGTRAMP): Remove define.
3571 * i386-sol2-tdep.c: New file.
3572
3573 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3574 * config/i386/tm-i386nw.h: Removed.
3575
3576 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3577 USE_STRUCT_CONVENTION): Remove defines.
3578 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3579 (get_longjmp_target): Remove prototype.
3580 (IN_SIGTRAMP): Remove define.
3581 (i386bsd_in_sigtramp): Remove prototype.
3582 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3583 function. Update comment accordingly
3584 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3585 (FRAME_SAVED_PC): Remove define.
3586 (i386bsd_frame_saved_pc): Remove prototype.
3587 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3588 GET_LONGJMP_TARGET): Remove defines.
3589 (get_longjmp_target): Remove prototype.
3590 (IN_SIGTRAMP): Remove define.
3591 (i386bsd_in_sigtramp): Remove prototype.
3592 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3593 function. Update comment accordingly
3594 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3595 (FRAME_SAVED_PC): Remove define.
3596 (i386bsd_frame_saved_pc): Remove prototype.
3597 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3598 Remove prototype.
3599 (USE_STRUCT_CONVENTION): Remove prototype.
3600 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3601 declaration.
3602 (_initialize_i386bsd_nat): Revise logic to determine some
3603 constants at compile time when compiling a native GDB. Warn if
3604 things don't match up with what we expect.
3605 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3606 Remove variables.
3607 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3608 to use date stored in `struct gdbarch_tdep'.
3609 (i386bsd_sigcontext_offset): Remove varaible.
3610 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3611 stored in `struct gdbarch_tdep'.
3612 (i386bsd_frame_saved_pc): Make static.
3613 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3614 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3615 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3616 i386fbsd4_sc_pc_offset): New variables.
3617 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3618 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3619 functions.
3620 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3621 functions.
3622 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3623 Modify the value of i386fbsd_sigtramp_start and
3624 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3625 i386fbsd_sigtramp_end.
3626 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3627 function.
3628
3629 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3630 define to i386-linux-tdep.h.
3631 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3632 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3633 defines.
3634 (i386_linux_register_name, i386_linux_register_byte,
3635 i386_linux_register_raw_size): Remove prototypes.
3636 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3637 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3638 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3639 TARGET_WRITE_PC): Remove defines.
3640 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3641 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3642 i386_linux_write_pc): Remove prototypes.
3643 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3644 (get_longjmp_target): Remove prototype.
3645 * i386-linux-tdep.h: New file.
3646 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3647 * i386-linux-tdep.c: Include "i386-tdep.h" and
3648 "i386-linux-tdep.h".
3649 (i386_linux_register_name, i386_linux_register_byte,
3650 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3651 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3652 Make static.
3653 (i386_linux_init_abi): New function.
3654 (_initialize_i386_linux_tdep): New function.
3655
3656 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3657 (i386_saved_pc_after_call): Remove prototype.
3658 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3659 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3660 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3661 (i386_register_name, i386_stab_reg_to_regnum,
3662 i386_dwarf_reg_to_regnum): Remove prototypes.
3663 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3664 SIZEOF_SSE_REGS): Remove defines.
3665 (REGISTER_BYTES): Remove define.
3666 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3667 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3668 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3669 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3670 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3671 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3672 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3673 (get_longjmp_target): Remove prototype.
3674 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3675 (sigtramp_saved_pc): Remove define.
3676 (i386v4_sigtramp_saved_pc): Remove prototype.
3677 * config/i386/tm-go32.h (FRAME_CHAIN,
3678 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3679 (i386go32_frame_saved_pc): Remove prototype.
3680 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3681 (get_longjmp_target): Remove prototype.
3682 * i386-tdep.h: Include "osabi.h".
3683 (enum i386_abi): Removed.
3684 (enum struct_return): New enum.
3685 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3686 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3687 sc_pc_offset members.
3688 (i386_gdbarch_register_os_abi): Remove prototype.
3689 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3690 I386_SSE_NUM_REGS): New defines.
3691 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3692 I386_SSE_SIZEOF_REGS): New defines.
3693 (i386_register_name, i386_register_byte, i386_register_raw_size):
3694 New prototypes.
3695 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3696 (i386bsd_sigtramp_saved_pc): New prototype.
3697 * i386-tdep.c: Don't include "elf-bfd.h".
3698 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3699 i386_frame_chain, i386_saved_pc_after_call): Make static.
3700 (i386_frame_saved_pc): Rewrite to call architecture dependent
3701 function to deal with signal handlers. Make static.
3702 (i386go32_frame_saved_pc): Removed.
3703 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3704 Removed.
3705 (i386_get_longjmp_target): New function.
3706 (default_struct_convention, pcc_struct_convention,
3707 reg_struct_convention, valid_conventions, struct_convention): New
3708 variables.
3709 (i386_use_struct_convention): New function.
3710 (i386v4_sigtramp_saved_pc): Renamed to
3711 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3712 (i386_pc_in_sigtramp): New function.
3713 (i386_abi_names): Removed.
3714 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3715 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3716 Removed.
3717 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3718 i386_gdbarch_register_os_abi): Removed.
3719 (struct i386_abi_handler): Removed.
3720 (i386_abi_handler_list): Removed.
3721 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3722 functions.
3723 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3724 i386_nw_init_abi): New functions.
3725 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3726 Use set_gdbarch_xxx() calls instead of relying on macros for a
3727 number of calls.
3728 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3729 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3730 Register the various architecture variants defined in this file.
3731
ad2f7632
DJ
37322002-06-14 Daniel Jacobowitz <[email protected]>
3733
3734 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3735 (struct main_type): Remove arg_types member. Update comments for
3736 struct field.
3737 (TYPE_ARG_TYPES): Remove.
3738 (TYPE_FN_FIELD_ARGS): Update.
3739 (smash_to_method_type): Update prototype.
3740
3741 * c-typeprint.c (cp_type_print_method_args): Take method type
3742 instead of argument list. Use new argument layout. Simplify.
3743 (c_type_print_args): Use new argument layout. Simplify.
3744 (c_type_print_base): Update call to cp_type_print_method_args.
3745 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3746 argument; use die->type instead. Update call to
3747 smash_to_method_type.
3748 (read_structure_scope): Update call to dwarf2_add_member_fn.
3749 * gdbtypes.c (allocate_stub_method): Update comment.
3750 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3751 Use new argument layout.
3752 (check_stub_method): Use new argument layout. Don't count
3753 void as an argument.
3754 (print_arg_types): Update comments. Use new argument layout.
3755 (recursive_dump_type): Don't print arg_types member.
3756 * hpread.c (hpread_read_struct_type): Use new argument layout.
3757 (fixup_class_method_type): Likewise.
3758 (hpread_type_lookup): Likewise.
3759 * stabsread.c (read_type): Update calls to read_args and
3760 smash_to_method_type.
3761 (read_args): Use new argument layout. Simplify.
3762 * valops.c (typecmp): Use new argument layout. Update parameters
3763 and comments. Simplify.
3764 (hand_function_call): Use new argument layout.
3765 (search_struct_method): Update call to typecmp.
3766 (find_overload_match): Use new argument layout.
3767
6da02953
DJ
37682002-06-13 Daniel Jacobowitz <[email protected]>
3769
3770 * NEWS: Mention multithreaded debug support for gdbserver.
3771
519b2366
DJ
37722002-06-13 Daniel Jacobowitz <[email protected]>
3773
3774 * MAINTAINERS: Mention NEWS.
3775
6c0d6680
DJ
37762002-06-13 Daniel Jacobowitz <[email protected]>
3777
3778 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3779 (struct mips_objfile_private, compare_pdr_entries): New.
3780 (non_heuristic_proc_desc): Read the ".pdr" section if it
3781 is present.
3782
6529d2dd
AC
37832002-06-12 Andrew Cagney <[email protected]>
3784
3785 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3786 (arm_debug): New static variable.
3787 (_initialize_arm_tdep): Add ``set debug arm'' command.
3788
26216b98
AC
37892002-06-12 Andrew Cagney <[email protected]>
3790
3791 * Makefile.in (sim_arm_h): Define.
3792 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3793 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3794 (arm_register_sim_regno): New function, map an internal REGNUM
3795 onto a simulator register number.
3796 (arm_gdbarch_init): Set register_sim_regno.
3797
814b3ba0
AH
37982002-06-09 Aldy Hernandez <[email protected]>
3799
3800 * MAINTAINERS: Add self.
3801
475b0867
JB
38022002-06-11 Jim Blandy <[email protected]>
3803
919d772c
JB
3804 * source.c (source_info): Mention whether the symtab has
3805 information about preprocessor macros.
3806
475b0867
JB
3807 Call the command `info macro', not `show macro'.
3808 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3809 Fix error message.
3810 (_initialize_macrocmd): Register `info_macro_command' in
3811 `infolist', not `showlist'.
3812
9e364162
DJ
38132002-06-11 Daniel Jacobowitz <[email protected]>
3814
3815 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3816 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3817 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3818 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3819 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3820 unconditionally.
3821 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3822 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3823 (_initialize_mips_tdep): Remove dead code.
3824 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3825 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3826 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3827 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3828 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3829 MIPS_LAST_FP_ARG_REGNUM): Remove.
3830
23aa4c72
ML
38312002-06-11 Michal Ludvig <[email protected]>
3832
3833 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3834 (unwind_tmp_obstack_free, parse_frame_info)
3835 (update_context, cfi_read_fp, cfi_write_fp)
3836 (cfi_frame_chain, cfi_init_extra_frame_info)
3837 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3838 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3839
70eb15a4
CV
38402002-06-11 Corinna Vinschen <[email protected]>
3841
3842 * v850-tdep.c (v850_type_is_scalar): New function.
3843 (v850_use_struct_convention): Match current gcc implementation
3844 as close as possible.
3845 (v850_push_arguments): Fix stack_offset handling. Don't write
3846 struct_addr into register. This is done by v850_store_struct_return.
3847 (v850_extract_return_value): Care for structs.
3848 (v850_store_return_value): Ditto.
3849 (v850_store_struct_return): Actually write address.
3850
482a4d06
ML
38512002-06-11 Michal Ludvig <[email protected]>
3852
3853 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3854 without debug information too.
3855
d855c300
AC
38562002-06-10 Andrew Cagney <[email protected]>
3857
3858 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3859 Make multi-arch pure.
3860 * gdbarch.h, gdbarch.c: Re-generate.
3861 * arm-tdep.c (arm_print_float_info): Update.
3862 * arch-utils.h (default_print_float_info): Update.
3863 * arch-utils.c (default_print_float_info): Update.
3864 * infcmd.c (float_info): Update call.
3865
dd12a101
AC
38662002-06-10 Andrew Cagney <[email protected]>
3867
3868 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3869 the front of the initialize list.
3870
101dcfbe
AC
38712002-06-10 Andrew Cagney <[email protected]>
3872
3873 * infrun.c (struct inferior_status): Replace fields
3874 selected_frame_address and selected_level with field
3875 selected_frame_id.
3876 (save_inferior_status): Update. Use get_frame_id.
3877 (struct restore_selected_frame_args): Delete.
3878 (restore_selected_frame): Update. Use frame_find_by_id.
3879 (restore_inferior_status): Update.
3880
3881 * breakpoint.h (struct breakpoint): Change type of
3882 watchpoint_frame to frame_id.
3883 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3884 call to get_current_frame.
3885 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3886 get_current_frame.
3887 (watchpoint_check): Use frame_find_by_id.
3888
3889 * frame.h (record_selected_frame): Delete declaration.
3890 * stack.c (record_selected_frame): Delete function.
3891
3892 * frame.h (struct frame_id): Define.
3893 (get_frame_id): Declare.
3894 (frame_find_by_id): Declare.
3895 * frame.c (frame_find_by_id): New function.
3896 (get_frame_id): New function.
3897
304270b6
AV
38982002-06-10 Andrey Volkov <[email protected]>
3899
3900 * ser-e7kpc.c: Fix duplicated define and call of
3901 _initialize_ser_e7000pc
3902
2f2cf184
DJ
39032002-06-09 Daniel Jacobowitz <[email protected]>
3904
3905 * signals/signals.c (target_signal_from_host): Fix #ifdef
3906 SIGRTMIN case.
3907 (do_target_signal_to_host): Likewise.
3908
caaa3122
DJ
39092002-06-09 Daniel Jacobowitz <[email protected]>
3910
3911 * mips-tdep.c (mips_find_abi_section): New function.
3912 (mips_gdbarch_init): Call it.
3913
6ac5df3a
MK
39142002-06-09 Mark Kettenis <[email protected]>
3915
3916 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3917 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3918 after Andrew's 2002-06-08 gdbarch change.
3919
82ea117a
MK
39202002-06-09 Mark Kettenis <[email protected]>
3921
3922 * i386-linux-nat.c (suppy_gregset): Don't supply
3923 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3924 register cache.
3925 (fill_gregset): Don't fetch it under the same circumstances.
3926
3c25f8c7
AC
39272002-06-09 Andrew Cagney <[email protected]>
3928
3929 * Makefile.in (callback_h): Define.
3930 (remote_sim_h): Update path to remote-sim.h.
3931 (remote-rdp.o): Add $(callback_h).
3932 (remote-sim.o): Use $(callback_h).
3933 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3934 * remote-rdp.c: Include "gdb/callback.h".
3935
1029b7fa
MK
39362002-06-09 Mark Kettenis <[email protected]>
3937
3938 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3939 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3940
616675d3
AC
39412002-06-08 Andrew Cagney <[email protected]>
3942
a3efda28
AC
3943 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3944 * rdi-share/serpardr.c: Ditto.
3945 * rdi-share/unixcomm.c: Ditto.
3946 * rdi-share/serdrv.c: Ditto.
3947 * rdi-share/hostchan.h: Ditto.
3948 * rdi-share/hostchan.c: Ditto.
3949 * rdi-share/host.h: Ditto.
3950 * rdi-share/devsw.c: Ditto.
3951
c5f10366
AC
3952 * objfiles.h: Change type of obj_private to void pointer.
3953 * pa64solib.c: Update copyright. Don't include "assert.h", use
3954 strcmp instead of STREQ, use LONGEST, do not use PTR
3955 * somsolib.c: Ditto.
3956
616675d3
AC
3957 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3958 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3959 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3960
e4b415d9
AC
39612002-06-08 Andrew Cagney <[email protected]>
3962
3963 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3964 (default_get_saved_register): Delete function.
3965 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3966 generic_unwind_get_saved_register.
3967 * gdbarch.h, gdbarch.c: Re-generate.
3968
ca0d0b52
AC
39692002-06-08 Andrew Cagney <[email protected]>
3970
3971 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3972 generic_func_frame_chain_valid.
3973 * gdbarch.h, gdbarch.c: Re-generate.
3974 * blockframe.c (generic_func_frame_chain_valid): Only check
3975 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3976 passing FP to PC_IN_CALL_DUMMY.
3977 Fix PR gdb/360.
3978
76860b5f
AC
39792002-06-08 Andrew Cagney <[email protected]>
3980
3981 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3982 (register_gdbarch_data): Initialize init_p.
3983 (gdbarch_data): Initialize data pointer using the init function.
3984 (init_gdbarch_data): Delete function.
3985 (gdbarch_update_p): Update.
3986 (initialize_non_multiarch): Update.
3987 (struct gdbarch): Add field initialized_p.
3988 * gdbarch.h, gdbarch.c: Re-generate.
3989
8dda9770
ML
39902002-06-07 Michal Ludvig <[email protected]>
3991
3992 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3993 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3994 better do the things actually here.
3995 * x86-64-tdep.c (x86_64_register_name2nr): New.
3996 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3997 (x86_64_gdbarch_init): Respect the above change.
3998 * x86-64-tdep.h (x86_64_register_name2nr)
3999 (x86_64_register_nr2name): Add prototypes.
4000 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4001
3d79a47c
MS
40022002-06-06 Michael Snyder <[email protected]>
4003
7bd91a28
MS
4004 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4005 Delete extra braces and re-indent.
4006 (d10v_store_return_value): Char return values
3d79a47c
MS
4007 must be shifted over by one byte in R0.
4008 (d10v_extract_return_value): Delete extra braces, re-indent.
4009
095a4c96
EZ
40102002-06-06 Elena Zannoni <[email protected]>
4011
4012 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4013 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4014 (d10v_integer_to_address): Rewrite.
4015 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4016 the d10v specific functions which take care of converting to the
4017 correct space.
4018
e8a77ca4
EZ
40192002-06-06 Elena Zannoni <[email protected]>
4020
4021 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4022 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4023
4f2e4a4f
AC
40242002-06-02 Andrew Cagney <[email protected]>
4025
4026 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4027 includes.
4028 * config/tm-linux.h: Ditto.
4029 * config/alpha/tm-alphalinux.h: Ditto.
4030 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4031 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4032 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4033 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4034 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4035 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4036 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4037 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4038 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4039 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4040 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4041 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4042 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4043 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4044 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4045 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4046 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4047 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4048 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4049 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4050 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4051 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4052 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4053 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4054 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4055 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4056 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4057 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4058 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4059 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4060 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4061 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4062 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4063 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4064 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4065 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4066 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4067
ae2ab2ce
AS
40682002-05-04 Aidan Skinner <[email protected]>
4069
4070 * ada-exp.tab.c: New file
4071 * ada-exp.y: New file
4072 * ada-lang.c: New file
4073 * ada-lang.h: New file
4074 * ada-lex.c: New file
4075 * ada-lex.l: New file
4076 * ada-tasks.c: New file
4077 * ada-typeprint.c: New file
4078 * ada-valprint.c: New file
4079
0ddd0135
JT
40802002-06-02 Jason Thorpe <[email protected]>
4081
4082 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4083 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4084
750fbacc
JT
40852002-06-02 Jason Thorpe <[email protected]>
4086
4087 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4088 insetead of ppc-linux-tdep.o.
4089 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4090 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4091
df94e18a
AC
40922002-06-02 Andrew Cagney <[email protected]>
4093
4094 2002-05-07 Christian Groessler <[email protected]>
4095 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4096 bit register contents for little endian hosts.
4097
1a38ab75
AC
40982002-06-01 Andrew Cagney <[email protected]>
4099
4100 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4101 any maintainer.
4102
8b1632ac
AC
41032002-06-01 Andrew Cagney <[email protected]>
4104
4105 * gdbarch.h: Regenerate.
4106
627054c8
AC
41072002-06-01 Andrew Cagney <[email protected]>
4108
4109 * MAINTAINERS: Add everyone to write-after-approval list.
4110
4f460812
AC
41112002-06-01 Andrew Cagney <[email protected]>
4112
4113 * stack.c (frame_info): Use frame_register_unwind instead of
4114 saved_regs. Mention when the SP is on the stack or in a register.
4115
4116 * frame.h (frame_register_unwind_ftype): Define. Document.
4117 (struct frame_info): Add field register_unwind and
4118 register_unwind_cache.
4119 (frame_register_unwind): Declare.
4120 (generic_unwind_get_saved_register): Declare.
4121
4122 * frame.c (frame_register_unwind): New function.
4123 (generic_unwind_get_saved_register): New function.
4124
4125 * blockframe.c (generic_call_dummy_register_unwind): New function.
4126 (frame_saved_regs_register_unwind): New function.
4127 (set_unwind_by_pc): New function.
4128 (create_new_frame): New function.
4129 (get_prev_frame): New function.
4130
de888f76
AC
41312002-05-30 Andrew Cagney <[email protected]>
4132
4133 * a29k-share/: Delete directory.
4134 * remote-vx29k.c: Delete file.
4135
2f2c3626
JT
41362002-05-30 Jason Thorpe <[email protected]>
4137
4138 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4139 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4140
9ce5c36a
JT
41412002-05-30 Jason Thorpe <[email protected]>
4142
4143 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4144 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4145 (sparc64nbsd-nat.o)
4146 (sparcnbsd-nat.o)
4147 (sparcnbsd-tdep.o): New dependency lists.
4148 * NEWS: Note new UltraSPARC NetBSD native configuration.
4149 * configure.host (sparc64-*-netbsd*): New host.
4150 * configure.tgt (sparc-*-netbsdelf*)
4151 (sparc-*-netbsd*): Set gdb_target to nbsd.
4152 (sparc64-*-netbsd*): New target.
4153 * sparc64nbsd-nat.c: New file.
4154 * sparcnbsd-nat.c: New file.
4155 * sparcnbsd-tdep.c: New file.
4156 * sparcnbsd-tdep.h: New file.
4157 * config/sparc/nbsd.mt: New file.
4158 * config/sparc/nbsd64.mh: New file.
4159 * config/sparc/nbsd64.mt: New file.
4160 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4161 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4162 (HOST_IPC): Remove.
4163 * config/sparc/nbsdaout.mt: Remove.
4164 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4165 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4166 (HOST_IPC): Remove.
4167 * config/sparc/nbsdelf.mt: Remove.
4168 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4169 sparc-nat.c compatiblity defines.
4170 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4171 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4172 * config/sparc/tm-nbsd64.h: New file.
4173 * config/sparc/tm-nbsdaout.h: Remove.
4174 * config/sparc/xm-nbsd.h: Remove.
4175
ef3cf062
JT
41762002-05-30 Jason Thorpe <[email protected]>
4177
4178 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4179 * sparc-tdep.c: Include osabi.h.
4180 (gdbarch_tdep): Add osabi member.
4181 (_initialize_sparc_tdep): Use gdbarch_register.
4182 (sparc_gdbarch_init): Use generic OS ABI framework.
4183 (sparc_dump_tdep): New function.
4184
ee8ff470
KB
41852002-05-30 Kevin Buettner <[email protected]>
4186
4187 * corefile.c (do_captured_read_memory_integer): Return non-zero
4188 result.
4189 (safe_read_memory_integer): Copy result of memory read when
4190 status is non-zero. Also, add comments.
4191
7b112f9c
JT
41922002-05-20 Jason Thorpe <[email protected]>
4193
4194 * Makefile.in (ppc_tdep_h): Define.
4195 (ppc-linux-nat.o)
4196 (ppc-linux-tdep.o)
4197 (rs6000-tdep.o): Use $(ppc_tdep_h).
4198 (ppc-sysv-tdep.o)
4199 (ppcnbsd-nat.o)
4200 (ppcnbsd-tdep.o): New dependency lists.
4201 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4202 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4203 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4204 (ppc_sysv_abi_broken_use_struct_convention)
4205 (ppc_sysv_abi_use_struct_convention)
4206 (ppc_sysv_abi_push_arguments): Move to...
4207 * ppc-sysv-tdep.c: ...here.
4208 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4209 * rs6000-tdep.c (process_note_abi_tag_sections)
4210 (get_elfosabi): Remove.
4211 (rs6000_gdbarch_init): Use generic OS ABI framework.
4212 (rs6000_dump_tdep): New function.
4213 (_initialize_rs6000_tdep): Use gdbarch_register.
4214 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4215 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4216 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4217 of ppc-linux-tdep.o.
4218 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4219 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4220 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4221 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4222 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4223 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4224
480dd42a
JB
42252002-05-29 Jim Blandy <[email protected]>
4226
4227 * macroscope.c (default_macro_scope): Put `void' in empty argument
4228 list.
4229
4182591f
AC
42302002-05-29 Andrew Cagney <[email protected]>
4231
4232 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4233 * arch-utils.c: Include "sim-regno.h".
4234 * gdbarch.sh: Don't include "sim-regno.h".
4235 * gdbarch.h, gdbarch.c: Regenerate.
4236 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4237 here.
4238 * arch-utils.h (legacy_register_sim_regno): To here.
4239 * remote-sim.c (legacy_register_sim_regno): Move function from
4240 here.
4241 * arch-utils.c (legacy_register_sim_regno): To here.
4242
8238d0bf
AC
42432002-05-28 Andrew Cagney <[email protected]>
4244
4245 * sim-regno.h: New file.
4246 * Makefile.in (sim_regno_h): Define.
4247 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4248 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4249 (legacy_register_sim_regno): New function.
4250 (one2one_register_sim_regno): New function.
4251 (gdbsim_fetch_register): Rewrite.
4252 (gdbsim_store_register): Only store a register when
4253 REGISTER_SIM_REGNO is valid.
4254 * d10v-tdep.c: Include "sim-regno.h".
4255 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4256 (d10v_ts3_register_sim_regno): Ditto.
4257 * gdbarch.sh: Include "sim-regno.h".
4258 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4259 * gdbarch.h, gdbarch.c: Regenerate.
4260 * arch-utils.h (default_register_sim_regno): Delete declaration.
4261 * arch-utils.c (default_register_sim_regno): Delete function.
4262
485721b1
JT
42632002-05-28 Jason Thorpe <[email protected]>
4264
4265 * ppcnbsd-nat.c: Rewrite.
4266 * ppcnbsd-tdep.c: New file.
4267 * ppcnbsd-tdep.h: New file.
4268 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4269 solib.o, and solib-svr4.o.
4270 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4271 nbsd-tdep.o, and corelow.o.
4272
697f244d
AC
42732002-05-28 Andrew Cagney <[email protected]>
4274
4275 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4276 `tr' and `sed'. Mention that `broken' targets are not expected to
4277 build.
4278
f08caad1 42792002-05-27 Michal Ludvig <[email protected]>
b1ab997b
ML
4280
4281 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4282 Let PC point right after the prologue before looking up symbols.
4283
3139facc
MH
42842002-05-27 Martin M. Hunt <[email protected]>
4285
4286 * i386-tdep.c (i386_register_virtual_type): Return
4287 builtin_type_vec128i for SSE registers.
4288
4289 * gdbtypes.h (builtin_type_vec128i): Declare.
4290
4291 * gdbtypes.c (build_builtin_type_vec128i): New function.
4292 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4293 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4294 (build_gdbtypes): Initialize new builtin vector types.
4295 (_initialize_gdbtypes): Register new vector types with gdbarch.
4296
6e3ba3b8
JT
42972002-05-26 Jason Thorpe <[email protected]>
4298
4299 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4300 since it has been multi-arch'd.
4301 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4302 Move Alpha and VAX multi-arch news entries to same section
4303 as other multi-arch news.
4304
93d5585d
JT
43052002-05-26 Jason Thorpe <[email protected]>
4306
4307 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4308 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4309 static. Rename some register numbers to put them in ns32k-tdep
4310 private namespace.
4311 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4312 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4313 functions.
4314 (_initialize_ns32k_tdep): Use gdbarch_register.
4315 * ns32k-tdep.h: New file.
4316 * ns32knbsd-tdep.c: New file.
4317 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4318 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4319 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4320 REGISTER_BYTES, REGISTER_BYTE): Remove.
4321 * config/ns32k/tm-ns32k.h: New file.
4322 * config/ns32k/tm-umax.h: Remove.
4323
efb2c70e
JT
43242002-05-26 Jason Thorpe <[email protected]>
4325
4326 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4327 ns32k_store_struct_return, ns32k_extract_return_value,
4328 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4329 functions.
4330 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4331 ns32k_saved_pc_after_call.
4332 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4333 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4334 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4335 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4336 ns32k_extract_struct_value_address.
4337
7bcc927b
JT
43382002-05-26 Jason Thorpe <[email protected]>
4339
4340 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4341 ns32k_fix_call_dummy): New.
4342 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4343 ns32k_call_dummy_words.
4344 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4345 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4346 CALL_DUMMY_NARGS): Remove.
4347 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4348
78f9d765
JT
43492002-05-26 Jason Thorpe <[email protected]>
4350
4351 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4352 ns32k_frame_saved_pc, ns32k_frame_args_address,
4353 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4354 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4355 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4356 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4357 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4358 (BREAKPOINT): Remove..
4359 (FRAME_CHAIN): Define as ns32k_frame_chain.
4360 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4361 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4362 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4363 (FRAME_FIND_SAVED_REGS): Remove.
4364 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4365 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4366 (POP_FRAME): Define as ns32k_pop_frame.
4367
f2c762e0
JT
43682002-05-26 Jason Thorpe <[email protected]>
4369
4370 * ns32k-tdep.c (ns32k_register_byte_32082,
4371 ns32k_register_byte_32382, ns32k_register_raw_size,
4372 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4373 functions.
4374 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4375 ns32k_register_byte_32382.
4376 * config/ns32k/tm-umax.h: Update copyright years.
4377 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4378 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4379 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4380 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4381 (ns32k_get_enter_addr): Fix prototype.
4382
af137673
JT
43832002-05-26 Jason Thorpe <[email protected]>
4384
4385 * ns32k-tdep.c: Update copyright years.
4386 (ns32k_register_name_32082): New function.
4387 (ns32k_register_name_32382): Ditto.
4388 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4389 (REGISTER_NAME): Define as ns32k_register_name_32382.
4390 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4391 (REGISTER_NAME): Define as ns32k_register_name_32082.
4392
a8bc7b56
JB
43932002-05-24 Jim Blandy <[email protected]>
4394
4395 * dwarf2read.c (free_line_header): Use xfree, not free.
4396
83a45910
JT
43972002-05-24 Jason Thorpe <[email protected]>
4398
4399 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4400 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4401
0db71247
AC
44022002-05-23 Andrew Cagney <[email protected]>
4403
4404 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4405
b9e5e4dd
AC
44062002-05-23 Andrew Cagney <[email protected]>
4407
4408 From Ross Alexander at NEC Europe:
4409 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4410
de530e84
MS
44112002-05-23 Michael Snyder <[email protected]>
4412
4413 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4414 for input, rather than parse_and_eval_address.
4415
b91b96f4
AC
44162002-05-23 Andrew Cagney <[email protected]>
4417
4418 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4419 * Makefile.in (sim_d10v_h): Update definition.
4420
8b279e7a
AC
44212002-05-24 Andrew Cagney <[email protected]>
4422
4423 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4424 change `2002-05-22 Michael Snyder' below.
4425 (d10v_push_arguments): Ditto.
4426 (d10v_extract_return_value): Ditto.
4427
0a3d0425
JB
44282002-05-23 Jim Blandy <[email protected]>
4429
4430 * macrotab.c (check_for_redefinition): Don't complain if the new
4431 definition is the same as the previous one. Take more arguments
4432 to allow the comparison.
4433 (macro_define_object, macro_define_function): Pass more arguments
4434 to check_for_redefinition.
4435
78eac43e
MS
44362002-05-22 Michael Snyder <[email protected]>
4437
4438 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4439 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4440 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4441 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4442 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4443 Add a temp variable to save a call (and a memory read).
4444 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4445 if possible (so that PC_IN_CALL_DUMMY will work).
4446
9bc1edb8
CV
44472002-05-22 Corinna Vinschen <[email protected]>
4448
4449 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4450
005ef3d2
ML
44512002-05-22 Michal Ludvig <[email protected]>
4452
4453 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4454 fde->cie_ptr.
4455 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4456 (dwarf2_build_frame_info): Add offset to fde->initial_location
4457 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4458 (execute_stack_op): Change type of 'result' from ULONGEST to
4459 CORE_ADDR.
005ef3d2 4460
fcf4f891
JT
44612002-05-22 Jason Thorpe <[email protected]>
4462
4463 * config/alpha/tm-nbsd.h: Include solib.h.
4464
cfef91e4
JT
44652002-05-22 Jason Thorpe <[email protected]>
4466
4467 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4468 assumptions about the host's byte order.
4469
9964235a
JT
44702002-05-22 Jason Thorpe <[email protected]>
4471
4472 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4473 to dependency list.
4474 * alphanbsd-tdep.c: Include solib-svr4.h.
4475 * shnbsd-tdep.c: Ditto.
4476
9eeef8ef
JT
44772002-05-22 Jason Thorpe <[email protected]>
4478
4479 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4480 nbsd-tdep.h to dependency list.
4481 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4482 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4483 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4484 nbsdaout.mh and nbsdelf.mh consistently.
4485 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4486 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4487 nbsdaout.mt and nbsdelf.mh consistently.
4488 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4489 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4490 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4491 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4492 a.out shared library stuff from here...
4493 * config/nm-nbsdaout.h: ...to here.
4494 * config/tm-nbsd.h: Remove.
4495 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4496 * config/arm/nbsd.mh: Remove.
4497 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4498 nbsd-tdep.o.
4499 * config/arm/nbsdaout.mh: New file.
4500 * config/arm/nbsdelf.mh: New file.
4501 * config/arm/nm-nbsdaout.h: New file.
4502 * config/i386/nbsd.mh: Remove.
4503 * config/i386/nbsd.mt: Remove.
4504 * config/i386/nbsdaout.mh: New file.
4505 * config/i386/nbsdaout.mt: New file.
4506 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4507 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4508 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4509 i386_register_u_addr): Remove.
4510 * config/i386/nm-nbsdaout.h: New file.
4511 * config/i386/nm-nbsdelf.h: Remove.
4512 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4513 (USE_STRUCT_CONVENTION): Remove.
4514 * config/i386/tm-nbsdaout.h: New file.
4515 * config/i386/tm-nbsdelf.h: Remove.
4516 * config/m68k/nbsd.mh: Remove.
4517 * config/m68k/nbsd.mt: Remove.
4518 * config/m68k/nbsdaout.mh: New file.
4519 * config/m68k/nbsdaout.mt: New file.
4520 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4521 * config/m68k/nm-nbsdaout.h: New file.
4522 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4523 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4524 * config/ns32k/nbsd.mh: Remove.
4525 * config/ns32k/nbsd.mt: Remove.
4526 * config/ns32k/nbsdaout.mh: New file.
4527 * config/ns32k/nbsdaout.mt: New file.
4528 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4529 * config/ns32k/nm-nbsdaout.h: New file.
4530 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4531 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4532 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4533 (SVR4_SHARED_LIBS): Remove.
4534 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4535 * config/sparc/nbsd.mh: Remove.
4536 * config/sparc/nbsd.mt: Remove.
4537 * config/sparc/nbsdaout.mh: New file.
4538 * config/sparc/nbsdaout.mt: New file.
4539 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4540 * config/sparc/nbsdelf.mt: New file.
4541 * config/sparc/nm-nbsdaout.h: New file.
4542 * config/sparc/nm-nbsdelf.h: Remove.
4543 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4544 * config/sparc/tm-nbsdaout.h: New file.
4545
257ce470
JT
45462002-05-21 Jason Thorpe <[email protected]>
4547
4548 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4549 mipsnbsd-tdep.c
4550 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4551
76a6d5fe
JT
45522002-05-21 Jason Thorpe <[email protected]>
4553
4554 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4555 shnbsd-nat.c.
4556 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4557
45888261
JT
45582002-05-21 Jason Thorpe <[email protected]>
4559
4560 * NEWS: Note new MIPS NetBSD native configuration.
4561 * configure.host (mips*-*-netbsd*): New host.
4562 * configure.tgt (mips*-*-netbsd*): New target.
4563 * mipsnbsd-nat.c: New file.
4564 * mipsnbsd-tdep.c: New file.
4565 * mipsnbsd-tdep.h: New file.
4566 * config/mips/nbsd.mh: New file.
4567 * config/mips/nbsd.mt: New file.
4568 * config/mips/nm-nbsd.h: New file.
4569 * config/mips/tm-nbsd.h: New file.
4570
70f80edf
JT
45712002-05-21 Jason Thorpe <[email protected]>
4572
4573 * Makefile.in (SFILES): Add osabi.c.
4574 (COMMON_OBS): Add osabi.o.
4575 (osabi.o): New dependency list.
4576 * osabi.c: New file.
4577 * osabi.h: New file.
4578 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4579
4580 * Makefile.in (alpha_tdep_h): Define and use instead of
4581 alpha-tdep.h.
4582 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4583 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4584 Remove.
4585 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4586 * alpha-tdep.h: Include osabi.h.
4587 (alpha_abi): Remove.
4588 (gdbarch_tdep): Use generic OS ABI framework.
4589 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4590 gdbarch_register_osabi.
4591 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4592 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4593 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4594
4595 * Makefile.in (sh_tdep_h): Add osabi.h.
4596 * sh-tdep.h (sh_osabi): Remove.
4597 (gdbarch_tdep): Use generic OS ABI framework.
4598 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4599 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4600 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4601 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4602
4603 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4604 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4605 gdbarch_register_osabi.
4606 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4607 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4608 (get_elfosabi): Rename to...
4609 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4610 ABI framework support routines.
4611 (arm_gdbarch_init): Use generic OS ABI framework.
4612 (arm_dump_tdep): Likewise.
4613 (_initialize_arm_tdep): Likewise.
4614 * arm-tdep.h: Include osabi.h.
4615 (arm_abi): Remove.
4616 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4617 osabi member.
4618 (arm_gdbarch_register_os_abi): Remove prototype.
4619 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4620 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4621
4622 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4623 * mips-tdep.c: Include osabi.h.
4624 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4625 OS ABI framework.
4626
d194345b
KH
46272002-05-20 Kazu Hirata <[email protected]>
4628
4629 * h8300-tdep.c: Fix formatting.
4630
70c6b0d1
EZ
46312002-05-20 Elena Zannoni <[email protected]>
4632
4633 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4634 printing vector registers.
4635
165b8e33
AC
46362002-05-19 Andrew Cagney <[email protected]>
4637
4638 From Fernando Nasser:
4639 * remote.c (remote_async_open_1): Re-throw the exception when the
4640 connection fails.
4641 (remote_cisco_open): Ditto.
4642 (remote_open_1): Ditto.
4643
36918e70
AC
46442002-05-19 Andrew Cagney <[email protected]>
4645
4646 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4647 (remote_start_remote): Add uiout parameter. Pass through to
4648 remote_start_remote_dummy.
4649 (remote_open_1): Use catch_exception instead of catch_errors.
4650 (remote_async_open_1): Ditto.
4651 (remote_cisco_open): Ditto.
4652
ae44c0c4
AC
46532002-05-19 Andrew Cagney <[email protected]>
4654
4655 * remote.c (remote_start_remote): Replace PTR with void pointer.
4656 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4657 static.
4658
8efe637d
AC
46592002-05-18 Andrew Cagney <[email protected]>
4660
4661 * gdb_indent.sh: Allow the script to be run in the sim directory.
4662
2f1b5984
MK
46632002-05-18 Mark Kettenis <[email protected]>
4664
f0f625e2
MK
4665 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4666 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4667
2f1b5984
MK
4668 * corelow.c (core_open): Only call set_gdbarch_from_file if
4669 exec_bfd is NULL.
4670
fc974602
AV
46712002-05-17 Andrey Volkov <[email protected]>
4672
4673 * h8300-tdep.c: Add support of EXR register
4674 * config/h8300/tm-h8300.h: Ditto.
4675
906709f4
AV
46762002-05-17 Andrey Volkov <[email protected]>
4677
4678 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4679
6e591d68
AV
46802002-05-17 Andrey Volkov <[email protected]>
4681
4682 * h8300-tdep.c: Change literal regnums to REGNO.
4683
84f0252a
JB
46842002-05-17 Jim Blandy <[email protected]>
4685
e0e9281e
JB
4686 * NEWS: Note addition of macro support.
4687
84f0252a
JB
4688 Expand preprocessor macros in C expressions.
4689 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4690 (scan_macro_expansion, scanning_macro_expansion,
4691 finished_macro_expansion): New function declarations.
4692 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4693 variable declarations.
4694 * parser-defs.h (expression_context_pc): New declaration.
4695 * parse.c (expression_context_pc): New variable.
4696 (parse_exp_1): Set expression_context_pc, as well as
4697 expression_context_block.
4698 * c-exp.y (yylex): If we're not already reading the result of a
4699 macro expansion, try to macro-expand the next token. When we're
4700 done scanning a macro expansion, switch back to the mainline text.
4701 Commas and `if's in a macro's expansion don't terminate the input.
4702 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4703 (macro_original_text, macro_expanded_text,
4704 expression_macro_lookup_func, expression_macro_lookup_baton): New
4705 variables.
4706 (scan_macro_expansion, scanning_macro_expansion,
4707 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4708 c_preprocess_and_parse): New functions.
4709 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4710 c_preprocess_and_parse, instead of c_parse.
4711 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4712 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4713
1c509ca8
JR
4714Fri May 17 14:26:19 2002 J"orn Rennecke <[email protected]>
4715
4716 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4717 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4718 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4719
2250ee0c
CV
47202002-05-17 Corinna Vinschen <[email protected]>
4721
4722 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4723
ab3b8126
JT
47242002-05-17 Jason Thorpe <[email protected]>
4725
4726 * Makefile.in (sh_tdep_h): Define and use.
4727 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4728 register enum): Move to...
4729 * * sh-tdep.h: ...here.
4730 * sh-tdep.c: Include sh-tdep.h.
4731 * sh3-rom.c: Likewise.
4732 * shnbsd-tdep.c: Likewise.
4733
ed9d4749
MS
47342002-05-16 Michael Snyder <[email protected]>
4735
4736 * arm-tdep.c: Spelling fix in comment.
4737
2e276125
JB
47382002-05-16 Jim Blandy <[email protected]>
4739
6821892e
JB
4740 Add commands for manually expanding macros and showing their
4741 definitions.
4742 * macrocmd.c, macroscope.c, macroscope.h: New files.
4743 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4744 (macroscope_h): New variable.
4745 (HFILES_NO_SRCDIR): Add macroscope.h.
4746 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4747 (macroscope.o, macrocmd.o): New rules.
4748
2e276125
JB
4749 Teach the Dwarf 2 reader to read macro information.
4750 * dwarf2read.c: #include "macrotab.h".
4751 (dwarf_macinfo_buffer): New variable.
4752 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4753 dwarf_macinfo_size.
4754 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4755 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4756 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4757 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4758 dwarf2_macro_spaces_in_definition): New complaints.
4759 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4760 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4761 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4762 the partial symbol table.
4763 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4764 from what's recorded in the partial symbol table.
4765 (read_file_scope): If the compilation unit has a
4766 `DW_AT_macro_info' attribute, read its macro information.
4767 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4768
2f53fe6c
DJ
47692002-05-16 Daniel Jacobowitz <[email protected]>
4770
4771 Fix PR gdb/546
4772 * ser-tcp.c: Don't include <netinet/udp.h>.
4773
2be99286
SC
47742002-05-16 Stephane Carrez <[email protected]>
4775
4776 * MAINTAINERS: Update my email address.
4777
c9af212b 47782002-05-16 Richard Earnshaw <[email protected]>
8501bbeb
RE
4779
4780 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4781 include file of the same name.
4782
bf5f1a52
CV
47832002-05-16 Corinna Vinschen <[email protected]>
4784
4785 * configure.tgt: Mark v850 as multi-arched.
4786 * config/v850/tm-v850.h: Remove file.
4787 * config/v850/v850.mt: Eliminate TM_FILE.
4788
435e042a
CV
47892002-05-16 Corinna Vinschen <[email protected]>
4790
4791 * v850-tdep.c: Full multi-arch.
4792 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4793 Define GDB_MULTI_ARCH to 2.
4794
9819c6c8
PM
47952002-05-16 Pierre Muller <[email protected]>
4796
4797 * p-exp.y (current_type): New static variable.
4798 Carries the type of the expression at the position that is parsed.
4799 (push_current_type, pop_current_type): Two new functions. Used
4800 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4801 (search_field): New static variable. Set to one after parsing a point
4802 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4803 (FIELDNAME): New token. After a point only a token belonging to
4804 current_type type definition is allowed.
4805 (all over token rules): reset and change current_type according
4806 to rules.
4807 (exp '[' rule): insert implicit array index field if
4808 exp is a pascal string type.
4809
3a06899a
CV
48102002-05-16 Corinna Vinschen <[email protected]>
4811
4812 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4813 frame info. Use frame_info's saved_regs instead of matching member
4814 in extra_frame_info throughout.
4815 (v850_frame_init_saved_regs): New function.
4816 (v850_init_extra_frame_info): Move most functionality into
4817 v850_frame_init_saved_regs().
4818 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4819 (v850_frame_find_saved_regs): Remove declaration.
4820 (FRAME_FIND_SAVED_REGS): Remove definition.
4821 (v850_frame_init_saved_regs): Add declaration.
4822 (FRAME_INIT_SAVED_REGS): Add definition.
4823
6ed14b0e
CV
48242002-05-16 Corinna Vinschen <[email protected]>
4825
4826 * v850-tdep.c: Begin multi-arch'ing v850.
4827 (v850_target_architecture_hook): Remove function.
4828 (v850_gdbarch_init): New function. Add code previously in
4829 v850_target_architecture_hook().
4830 (_initialize_v850_tdep): Don't set target_architecture_hook.
4831 Call register_gdbarch_init() instead.
4832
42725910
DJ
48332002-05-16 Daniel Jacobowitz <[email protected]>
4834
4835 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4836 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4837 (fixup_class_method_type): Likewise.
4838
99d9066e
JB
48392002-05-15 Jim Blandy <[email protected]>
4840
4841 Add macro structures to GDB's symbol tables. Nobody puts anything
4842 in them yet.
4843 * symtab.h (struct symtab): New member: `macro_table'.
4844 * buildsym.h (pending_macros): New global variable.
4845 * buildsym.c: #include "macrotab.h".
4846 (buildsym_init): Initialize `pending_macros'.
4847 (end_symtab): If we found macro information while reading a CU's
4848 debugging info, do build a symtab structure for it. Make the
4849 symtab point to the macro information, and clear the
4850 `pending_macros' pointer which held it while we were reading the
4851 debug info.
4852 (really_free_pendings): Free any pending macro table.
4853 * objfiles.h (struct objfile): New member: `macro_cache'.
4854 * objfiles.c (allocate_objfile): Set allocate and free functions
4855 for the macro cache's objstack.
4856 (free_objfile): Empty the macro cache's obstack.
4857 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4858 set new allocate and free functions for it.
4859 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4860 free functions for the macro cache's objstack. (Why is this
4861 function building its own objfile?)
4862 * symmisc.c (print_objfile_statistics): Print statistics on the
4863 macro bcache.
4864 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4865
c899585b
RE
48662002-05-15 Richard Earnshaw <[email protected]>
4867
4868 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4869 (REGISTER_U_ADDR): Delete definition.
4870 (arm_register_u_addr): Delete declaration.
4871
a6cdd8c5
RE
48722002-05-15 Richard Earnshaw <[email protected]>
4873
4874 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4875 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4876
c97dcfc7
AC
48772002-05-14 Andrew Cagney <[email protected]>
4878
4879 * regcache.c (register_valid): Revise comments refering to "Not
4880 available" and "unavailable".
4881 * frame.c (frame_register_read): Ditto.
4882 * findvar.c (value_of_register): Ditto.
4883
93021b7d
AC
48842002-05-15 Andrew Cagney <[email protected]>
4885
4886 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4887 (remote-sim.o): Update dependencies.
4888 (d10v-tdep.o): Specify dependencies.
4889 (sim_d10v_h): Define.
4890
a86bc61c
JB
48912002-05-14 Jim Blandy <[email protected]>
4892
4893 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4894 * macrotab.c (macro_lookup_inclusion, find_definition,
4895 new_macro_table): Same.
4896
4897 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4898 not `! strcmp ()'. This is a dubious improvement.
4899 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4900
4901 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4902 although it's not necessary, to avoid a warning.
4903
2fdde8f8
DJ
49042002-05-14 Daniel Jacobowitz <[email protected]>
4905
4906 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4907 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4908 TYPE_INSTANCE_FLAGS.
4909 (struct main_type): New.
4910 (struct type): Move most members to struct main_type. Change
4911 cv_type and as_type to new type_chain member. Add instance_flags.
4912 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4913 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4914 (finish_cv_type): Remove prototype.
4915 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4916 Set TYPE_CHAIN.
4917 (alloc_type_instance): New function.
4918 (smash_type): New function.
4919 (make_pointer_type, make_reference_type, make_function_type)
4920 (smash_to_member_type, smash_to_method_type): Call smash_type.
4921 (make_qualified_type): New function.
4922 (make_type_with_address_space): Call make_qualified_type.
4923 (make_cv_type): Likewise.
4924 (finish_cv_type): Remove unnecessary function.
4925 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4926 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4927 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4928 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4929 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4930 * hpread.c (hpread_read_struct_type): Likewise.
4931 * stabsread.c (read_struct_type): Likewise.
4932
843fedf4
EZ
49332002-05-14 Elena Zannoni <[email protected]>
4934
4935 * configure.tgt: Add a catch all sh* target, for cases like
4936 sh[2,3,4]-elf and sh-hms.
4937
05a6c72c
KS
49382002-05-14 Keith Seitz <[email protected]>
4939
4940 * event-loop.c (create_file_handler): Don't do anything but
4941 update data when we are given a fd which we are already
4942 monitoring.
4943
5d085aaf
ML
49442002-05-14 Michal Ludvig <[email protected]>
4945
4946 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4947 (update_context): Use __func__ in warnings.
4948
9db8d71f
DJ
49492002-05-14 Daniel Jacobowitz <[email protected]>
4950
4951 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4952 and tcp_close to net_open and net_close.
4953 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4954 using UDP if requested. Don't try to disable Nagle on UDP
4955 sockets.
4956 * remote.c (remote_serial_open): New function. Warn about UDP.
4957 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4958
5dbc6baa
EZ
49592002-05-13 Elena Zannoni <[email protected]>
4960
4961 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4962
cc3023f7
EZ
49632002-05-13 Elena Zannoni <[email protected]>
4964
4965 * configure.tgt: Remove sh-hms target.
4966 * MAINTAINERS: Don't list sh-hms as a separate target.
4967
ec2bcbe7
JB
49682002-05-13 Jim Blandy <[email protected]>
4969
4970 Add first preprocessor macro-expansion files.
4971 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4972 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4973 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4974 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4975 (COMMON_OBS): Add macrotab.o, macroexp.o.
4976 (macroexp.o, macrotab.o): New rules.
4977
6d531722
AC
49782002-05-13 Andrew Cagney <[email protected]>
4979
4980 * config/m88k/tm-m88k.h: Update copyright.
4981 (m88k_target_write_pc): Declare
4982 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4983 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4984 (SHIFT_INST_REGS): Update definition.
4985 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4986 using old definition of TARGET_WRITE_PC.
4987 * regcache.c (generic_target_write_pc): Delete code handling
4988 NNPC_REGNUM.
4989 * gdbarch.sh (NNPC_REGNUM): Delete.
4990 * gdbarch.h, gdbarch.c: Regenerate.
4991
3e3f2739
RE
49922002-05-13 Richard Earnshaw <[email protected]>
4993
4994 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4995 builtin reg number.
4996
0004e5a2
DJ
49972002-05-13 Daniel Jacobowitz <[email protected]>
4998
4999 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5000 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5001 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5002 access macros.
5003 * c-typeprint.c (cp_type_print_method_args): Likewise.
5004 (c_type_print_args): Likewise.
5005 * d10v-tdep.c (d10v_push_arguments): Likewise.
5006 (d10v_extract_return_value): Likewise.
5007 * expprint.c (print_subexp): Likewise.
5008 * gdbtypes.c (lookup_primitive_typename): Likewise.
5009 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5010 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5011 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5012 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5013 (TYPE_VECTOR): Likewise.
5014 * hpread.c (hpread_read_struct_type)
5015 (fix_static_member_physnames, fixup_class_method_type)
5016 (hpread_type_lookup): Likewise.
5017 * mdebugread.c (parse_symbol, parse_type): Likewise.
5018 * p-lang.c (is_pascal_string_type): Likewise.
5019 * valops.c (hand_function_call): Likewise.
5020 * x86-64-tdep.c (classify_argument): Likewise.
5021
5022 * hpread.c (hpread_read_function_type)
5023 (hpread_read_doc_function_type): Call replace_type.
5024 * dstread.c (create_new_type): Delete.
5025 (decode_dst_structure, process_dst_function): Call alloc_type.
5026 Use type access macros.
5027
dff95cc7
MK
50282002-05-12 Mark Kettenis <[email protected]>
5029
5030 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5031 the're not supported by the current architecture.
5032 (i387_fill_fxsave): Likewise.
5033
bbcd32ad
FF
50342002-05-12 Fred Fish <[email protected]>
5035
5036 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5037 sect_index_xxx members to index the first slot in section_offsets
5038 if all of the section_offsets are zero.
5039
89cf4787
MK
50402002-05-12 Mark Kettenis <[email protected]>
5041
5042 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5043 checked in with last change.
5044
1f77ffc5
MK
50452002-05-12 Mark Kettenis <[email protected]>
5046
5047 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5048 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5049 config.sub.
5050
89b8b4a9
DJ
50512002-05-12 Daniel Jacobowitz <[email protected]>
5052
5053 * Makefile.in: Update dependencies.
5054
14a5e767
AC
50552002-05-11 Andrew Cagney <[email protected]>
5056
5057 * language.c (local_hex_string_custom): Simplify. Do not depend
5058 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5059
5060 * memattr.c (mem_info_command): Replace calls to
5061 longest_local_hex_string and longest_local_hex_string_custom.
5062 * buildsym.c (make_blockvector): Ditto.
5063 * solib.c (info_sharedlibrary_command): Ditto.
5064 * tracepoint.c (tracepoints_info): Ditto.
5065 * symtab.c (print_msymbol_info): Ditto.
5066
5067 * language.c (local_hex_string): Delete.
5068 (local_hex_string_custom): Delete.
5069 (longest_local_hex_string): Rename to local_hex_string.
5070 (longest_local_hex_string_custom): Rename to
5071 local_hex_string_custom.
5072 * language.h (local_hex_string): Change parameter type to LONGEST.
5073 (local_hex_string_custom): Ditto.
5074 (longest_local_hex_string): Delete declaration.
5075 (longest_local_hex_string_custom): Ditto.
5076
5077 * solib.c: Update copyright.
5078 * memattr.c: Update copyright.
5079
13d01224
AC
50802002-05-11 Andrew Cagney <[email protected]>
5081
5082 * arch-utils.h (legacy_register_to_value): Declare.
5083 (legacy_value_to_register): Declare.
5084 (legacy_convert_register_p): Declare.
5085 * arch-utils.c (legacy_register_to_value): New function.
5086 (legacy_value_to_register): New function.
5087 (legacy_convert_register_p): New function.
5088
5089 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5090 (VALUE_TO_REGISTER): Define.
5091 (CONVERT_REGISTER_P): Define.
5092 * gdbarch.h, gdbarch.c: Regenerate.
5093
5094 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5095 VALUE_TO_REGISTER.
5096 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5097 CONVERT_REGISTER_P.
5098
4a1970e4
DJ
50992005-05-11 Daniel Jacobowitz <[email protected]>
5100 Peter Schauer <[email protected]>
5101
5102 * Makefile.in: Update dependencies for valops.c.
5103 * valops.c: Include "gdb_assert.h".
5104 (typecmp): Skip THIS parameter to methods.
5105 (find_method_list): Remove static_memfuncp argument,
5106 update callers. Check for stub methods.
5107 (find_value_oload_method_list): Don't set *static_memfuncp.
5108 (find_overload_match): Don't check for stub methods. Assert
5109 that methods are not stubbed. Handle static methods.
5110 (value_find_oload_method_list): Remove static_memfuncp argument.
5111 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5112 to the argument list for static stub methods.
5113 * value.h (value_find_oload_method_list): Update prototype.
5114
b2e75d78
AC
51152002-05-11 Andrew Cagney <[email protected]>
5116
5117 * arch-utils.h (generic_register_size): Declare.
5118 (generic_register_raw_size, generic_register_virtual_size): Delete
5119 declarations.
5120 * arch-utils.c (generic_register_raw_size): Delete.
5121 (generic_register_size): New function.
5122 (generic_register_virtual_size): Delete.
5123
5124 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5125 default generic_register_size.
5126 * gdbarch.h, gdbarch.c: Re-generate.
5127
5128 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5129 register_virtual_size.
5130 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5131 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5132
451fbdda
AC
51332002-05-11 Andrew Cagney <[email protected]>
5134
5135 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5136 * gdbarch.h, gdbarch.c: Regenerate.
5137 * gnu-v3-abi.c: Update copyright.
5138 (vtable_address_point_offset): Update.
5139 (gnuv3_rtti_type): Update.
5140 (gnuv3_baseclass_offset): Update.
5141 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5142 (init_fetch_link_map_offsets): Update.
5143 * remote.c (get_remote_state): Update.
5144
6d2f5cea
DJ
51452002-05-11 Daniel Jacobowitz <[email protected]>
5146
5147 * TODO: Remove value_headof/value_from_vtable_info comment.
5148 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5149 * values.c (value_headof, value_from_vtable_info): Delete.
5150 * value.h (value_from_vtable_info): Delete prototype.
5151
d2324da4
AC
51522002-05-11 Andrew Cagney <[email protected]>
5153
5154 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5155 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5156 $(gdb_regex_h).
5157 (gdb_assert_h): Define.
5158 (gdb_wait_h): Define.
5159 (gdb_regex_h): Define.
5160
5c717440
DJ
51612002-05-11 Daniel Jacobowitz <[email protected]>
5162
5163 From Peter Schauer <[email protected]>:
5164 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5165
6c7861b3
JT
51662002-05-11 Jason Thorpe <[email protected]>
5167
5168 * nbsd-tdep.c: Fix comment.
5169
ea5bc2a6
JT
51702002-05-11 Jason Thorpe <[email protected]>
5171
5172 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5173 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5174 (nbsd-tdep.o): New dependency list.
5175 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5176 nbsd-tdep.h.
5177 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5178 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5179 * nbsd-tdep.c: New file.
5180 * nbsd-tdep.h: New file.
5181 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5182 nbsd-tdep.h.
5183 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5184 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5185 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5186 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5187
b28da865
JT
51882002-05-11 Jason Thorpe <[email protected]>
5189
5190 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5191 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5192 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5193 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5194 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5195 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5196
4b8ff1fa
JT
51972002-05-11 Jason Thorpe <[email protected]>
5198
5199 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5200 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5201 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5202 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5203 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5204 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5205 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5206
dfe6eb1f
JT
52072002-05-11 Jason Thorpe <[email protected]>
5208
5209 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5210 fetch_elfcore_registers to...
5211 * i386nbsd-tdep.c: ...here.
5212 (i386nbsd_use_struct_convention): Rename to...
5213 (i386nbsd_aout_use_struct_convention): ...this.
5214 (i386nbsd_supply_reg): New function.
5215 (i386nbsd_fill_reg): New function.
5216 (fetch_core_registers): Use i386nbsd_supply_reg.
5217 (fetch_elfcore_registers): Likewise.
5218 (_initialize_i386nbsd_tdep): New function.
5219 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5220 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5221 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5222 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5223 (i386nbsd_aout_use_struct_convention): ...this.
5224
20cb8cda
JT
52252002-05-11 Jason Thorpe <[email protected]>
5226
5227 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5228 (store_inferior_registers): Use shnbsd_fill_reg.
5229 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5230 sh_nbsd_supply_register): Collapse into...
5231 (shnbsd_supply_reg): ...this.
5232 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5233 (shnbsd_fill_reg): ...this.
5234 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5235 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5236 (fetch_core_registers): Use shnbsd_supply_reg.
5237 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5238 (sh_nbsd_core_fns): Rename to...
5239 (shnbsd_core_fns): ...this.
5240 (sh_nbsd_elfcore_fns): Rename to...
5241 (shnbsd_elfcore_fns): ...this.
5242 (sh_nbsd_init_abi): Rename to...
5243 (shnbsd_init_abi): ...this.
5244 (_initialize_sh_nbsd_tdep): Rename to...
5245 (_initialize_shnbsd_tdep): ...this.
5246 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5247 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5248 sh_nbsd_fill_register): Remove prototypes.
5249 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5250
e750d25e
JT
52512002-05-11 Jason Thorpe <[email protected]>
5252
5253 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5254 (i387-nat.o): Delete dependency list.
5255 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5256 (x86-64-linux-nat.o): Likewise.
5257 * i387-nat.c: Delete file, moving contents to...
5258 * i387-tdep.c: ...here.
5259 * i387-nat.h: Rename...
5260 * i387-tdep.h: ...to this.
5261 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5262 * i386-linux-nat.c: Likewise.
5263 * i386bsd-nat.c: Likewise.
5264 * i386gnu-nat.c: Likewise.
5265 * i386nbsd-nat.c: Likewise.
5266 * i386v4-nat.c: Likewise.
5267 * x86-64-linux-nat.c: Likewise.
5268 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5269 * config/i386/go32.mh (NATDEPFILES): Likewise.
5270 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5271 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5272 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5273 * config/i386/linux.mh (NATDEPFILES): Likewise.
5274 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5275 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5276 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5277 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5278
1aee598a
JT
52792002-05-11 Jason Thorpe <[email protected]>
5280
5281 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5282 (alphanbsd-nat.o): Remove dependency list.
5283 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5284 * alphanbsd-nat.c: Delete. Contents moved to...
5285 * alphanbsd-tdep.c: ...here.
5286 (_initialize_alphanbsd_tdep): Register core functions.
5287 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5288
12bcb0fe
JT
52892002-05-11 Jason Thorpe <[email protected]>
5290
5291 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5292 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5293 (alphanbsd-nat.o): Likewise.
5294 (alphabsd-tdep.o): New dependency list.
5295 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5296 (fill_gregset): Use alphabsd_fill_reg.
5297 (supply_fpregset): Use alphabsd_supply_fpreg.
5298 (fill_fpregset): Use alphabsd_fill_fpreg.
5299 (fetch_inferior_registers): Use struct reg and struct fpreg
5300 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5301 and alphabsd_supply_fpreg.
5302 (store_inferior_registers): Use struct reg and struct fpreg
5303 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5304 and alphabsd_fill_fpreg.
5305 * alphabsd-tdep.c: New file.
5306 * alphabsd-tdep.h: New file.
5307 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5308 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5309 alphabsd_supply_fpreg.
5310 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5311 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5312
361d1df0
EC
53132002-05-11 Eric Christopher <[email protected]>
5314
5315 * mips-tdep.c (mips_double_register_type): Fix thinko.
5316 (mips_single_register_type): Ditto.
5317 * MAINTAINERS: Add self.
5318
92dd7cee
MK
53192002-05-11 Mark Kettenis <[email protected]>
5320
5321 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5322 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5323 right thing on architectures with different endianness and/or
5324 integer sizes.
5325
e27da16d
JT
53262002-05-10 Jason Thorpe <[email protected]>
5327
5328 From Christian Limpach <[email protected]>
5329 * configure.in: Change sed expression which comments out
5330 NATDEPFILES to also comment out continuation lines.
5331 * configure: Regenerate.
5332
ddde02bd
EZ
53332002-05-10 Elena Zannoni <[email protected]>
5334
5335 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5336 big patch.
5337
1c922164
EZ
53382002-05-10 Elena Zannoni <[email protected]>
5339
5340 * sh-tdep.c: Include correct file.
5341
283150cd
EZ
53422002-05-10 Elena Zannoni <[email protected]>
5343
5344 New support for sh64-elf (sh5) target.
5345
5346 * configure.tgt: For sh64-elf target, default to sh-elf.
5347
5348 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5349 (struct gdbarch_tdep): Add new fields for new registers and ABI
5350 info.
361d1df0 5351
283150cd
EZ
5352 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5353 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5354 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5355 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5356 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5357 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5358 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5359 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5360 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5361 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5362 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5363 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5364 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5365 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5366 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5367 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5368 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5369 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5370 sign_extend, sh64_nofp_frame_init_saved_regs,
5371 sh64_init_extra_frame_info, sh64_get_saved_register,
5372 sh64_extract_struct_value_address, sh64_pop_frame,
5373 sh64_push_arguments, sh64_extract_return_value,
5374 sh64_store_return_value, sh64_show_media_regs,
5375 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5376 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5377 sh_sh64_register_virtual_type,
5378 sh_sh64_register_convert_to_virtual,
5379 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5380 sh64_register_read, sh64_pseudo_register_write,
5381 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5382 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5383 sh64_do_pseudo_register, sh_compact_do_registers_info,
5384 sh64_do_registers_info, sh_gdbarch_init): New functions.
5385
3117ed25
EZ
53862002-05-10 Elena Zannoni <[email protected]>
5387
5388 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5389
2654e6d4
DJ
53902002-05-10 Daniel Jacobowitz <[email protected]>
5391
5392 * linespec.c (decode_line_1): Check for a double quote after
5393 a filename correctly.
5394
9ab3e532
JB
53952002-05-10 Jim Blandy <[email protected]>
5396
5397 Properly track the size of the current objfile's .debug_line section.
5398 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5399 (DWARF_LINE_SIZE): New macro.
5400 (dwarf2_build_psymtabs_hard): Record the line section's size in
5401 the partial symbol table.
5402 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5403 symbol table.
5404
126fa72d
PS
54052002-05-10 Petr Sorfa <[email protected]>
5406
5407 * ia64-tdep.c: Handle breakpoints on L instruction type
5408 in MLX instruction bundle by moving the breakpoint to
5409 the third slot (X instruction type) as L holds only data.
5410
1f077a3e
KB
54112002-05-10 Kevin Buettner <[email protected]>
5412
5413 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5414 (process_one_symbol): Complain about discarding local symbols
5415 due to a misplaced N_LBRAC entry.
5416
8120c9d5 54172002-05-09 Elena Zannoni <[email protected]>
361d1df0
EC
5418
5419 From Daniel Berlin <[email protected]>
8120c9d5
EZ
5420 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5421 decrease the depth we are at, in the case of templates.
361d1df0 5422
67b2c998
DJ
54232002-05-09 Daniel Jacobowitz <[email protected]>
5424
5425 * mips-tdep.c (mips_float_register_type): New function.
5426 (mips_double_register_type): New function.
5427 (mips_print_register): Use them.
5428 (do_fp_register_row): Likewise.
5429
fd326606
DJ
54302002-05-09 Daniel Jacobowitz <[email protected]>
5431
6609d9af 5432 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5433 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5434 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5435
bef35864
MS
54362002-05-09 Michael Snyder <[email protected]>
5437
5438 * remote-rdp.c (remote_rdp_can_run): Remove.
5439
c55a3f73
TT
54402002-05-09 Tom Tromey <[email protected]>
5441
5442 * jv-valprint.c (java_val_print): Handle `char' as a special case
5443 of TYPE_CODE_INT.
5444
b8d5e71d
MS
54452002-05-09 Michael Snyder <[email protected]>
5446
5447 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5448 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5449 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5450 str r(0123),[sp,#nn].
361d1df0 5451 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5452 order-independent by placing it in a loop.
5453
e2cd42dd
MS
54542002-05-06 Michael Snyder <[email protected]>
5455
5456 * stabsread.c (read_type): Add recognition for new attribute:
5457 "@V;" means that an array type is actually a vector.
5458 This is analogous to the vector flag that's been added to dwarf2.
5459
3ce1502b
MK
54602002-05-09 Mark Kettenis <[email protected]>
5461
5462 * i386-tdep.h (i386_abi): New enum.
5463 (struct gdbarch_tdep): Replace os_ident member with abi.
5464 (i386_gdbarch_register_os_abi): New prototype.
5465 * i386-tdep.c (i386_abi_names): New array.
5466 (process_note_abi_tag_sections): Removed.
5467 (process_note_sections): New function.
5468 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5469 (struct i386_abi_handler): New struct.
5470 (i386_abi_handler_list): New variable.
5471 (i386_gdbarch_register_os_abi): New function.
5472 (i386_gdbarch_init): Adapt for the changes given above.
5473
084c156a
DJ
54742002-05-08 Daniel Jacobowitz <[email protected]>
5475
5476 * gregset.h: Say "GNU/Linux".
5477
6599f021
EZ
54782002-05-08 Elena Zannoni <[email protected]>
5479
5480 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5481 (build_gdbtypes): Build builtin_type_v2_float.
5482 (_initialize_gdbtypes): Register new builtin type.
5483
40af4b0c
AC
54842002-05-08 Andrew Cagney <[email protected]>
5485
5486 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5487 (clear_gdbarch_swap): New function.
5488 (initialize_non_multiarch): Call.
5489 (gdbarch_update_p): Before calling init(), swap out and clear the
5490 existing architecture.
5491 * gdbarch.c: Regenerate.
5492
4fe84f46
JT
54932002-05-08 Jason Thorpe <[email protected]>
5494
5495 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5496 alphanbsd-tdep.c.
5497
4015edd1
JT
54982002-05-08 Jason Thorpe <[email protected]>
5499
5500 * sh-nbsd-nat.c: Rename to...
5501 * shnbsd-nat.c: ...this.
5502 * sh-nbsd-tdep.c: Rename to...
5503 * shnbsd-tdep.c: ...this.
5504 * sh-nbsd-tdep.h: Rename to...
5505 * shnbsd-tdep.h: ...this.
5506 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5507 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5508
0e2bd219
RE
55092002-05-08 Richard Earnshaw <[email protected]>
5510
5511 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5512 concatenation for command help messages.
5513
13a38d45
JT
55142002-05-08 Jason Thorpe <[email protected]>
5515
5516 * NEWS: Note new sh*-*-netbsdelf* configuration.
5517 * configure.host: Set gdb_host_cpu to sh for all sh*.
5518 (sh*-*-netbsdelf*): New host.
5519 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5520 (sh*-*-netbsdelf*): New target.
5521 * sh-nbsd-nat.c: New file.
5522 * sh-nbsd-tdep.c: New file.
5523 * sh-nbsd-tdep.h: New file.
5524 * config/sh/nbsd.mh: New file.
5525 * config/sh/nbsd.mt: New file.
5526 * config/sh/nm-nbsd.h: New file.
5527 * config/sh/tm-nbsd.h: New file.
5528
d658f924
JT
55292002-05-08 Jason Thorpe <[email protected]>
5530
5531 * sh-tdep.c (sh_osabi_names): Declare.
5532 (process_note_abi_tag_sections): New function.
5533 (get_elfosabi): Ditto.
5534 (sh_gdbarch_register_os_abi): Ditto.
5535 (sh_dump_tdep): Ditto.
5536 _initialize_sh_tdep): Use gdbarch_register to register
5537 sh_gdbarch_init and sh_dump_tdep.
5538 * config/sh/tm-sh.h (sh_osabi): Declare.
5539 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5540
848cfffb
AC
55412002-05-07 Andrew Cagney <[email protected]>
5542
5543 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5544 (thumb_scan_prologue): Ditto.
5545 (arm_find_callers_reg): Ditto.
5546 (arm_frame_chain): Ditto.
5547 (arm_init_extra_frame_info): Ditto.
5548 (arm_frame_saved_pc): Ditto.
5549 (arm_pop_frame): Ditto.
5550 (arm_push_return_address): New function.
5551 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5552 call_dummy_location, call_dummy_breakpoint_offset_p,
5553 call_dummy_breakpoint_offset, call_dummy_p,
5554 call_dummy_stack_adjust_p, call_dummy_words,
5555 sizeof_call_dummy_words, call_dummy_start_offset,
5556 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5557 call_dummy_address, push_return_address and push_dummy_frame for
5558 generic dummy frames.
5559
e7d717c0
JT
55602002-05-07 Jason Thorpe <[email protected]>
5561
5562 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5563 size computation for alloca.
5564 (sh_fp_frame_init_saved_regs): Likewise.
5565
7bbcf283
RE
55662002-05-07 Richard Earnshaw <[email protected]>
5567
5568 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5569 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5570 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5571 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5572 * remote-rdp.c (remote_rdp_fetch_register): Use
5573 ARM_MAX_REGISTER_RAW_SIZE.
5574 (remote_rdp_store_register): Likewise.
5575
4657573b
ML
55762002-05-07 Michal Ludvig <[email protected]>
5577
361d1df0 5578 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5579 added default labels to switch {} statements.
5580 * x86-64-tdep.c: Ditto.
5581 * x86-64-linux-nat.c: Ditto.
5582
010f3b2f
JT
55832002-05-07 Jason Thorpe <[email protected]>
5584
5585 * solib.h: Protect against multiple inclusion.
5586
debd256d
JB
55872002-05-06 Jim Blandy <[email protected]>
5588
9ab3e532
JB
5589 Add first preprocessor macro-expansion files.
5590 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5591 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5592 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5593 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5594 (COMMON_OBS): Add macrotab.o, macroexp.o.
5595 (macroexp.o, macrotab.o): New rules.
5596
debd256d
JB
5597 Separate the job of reading the line number info statement program
5598 header (...expialidocious) out into its own function.
5599 * dwarf2read.c (struct line_head, struct filenames, struct
5600 directories): Replace with...
5601 (struct line_header): New structure, containing the full
5602 contents of the statement program header, including the
5603 include directory and file name tables.
5604 (read_file_scope): If we have line number info, instead of just
5605 calling dwarf_decode_lines to do all the work, call
5606 dwarf_decode_line_header first to get a `struct line_header'
5607 containing the data in the statement program header, and then
5608 pass that to dwarf_decode_lines, which will pick up where that
5609 left off. Be sure to clean up the `struct line_header' object.
5610 (dwarf_decode_line_header, free_line_header, add_include_dir,
5611 add_file_name): New functions.
5612 (dwarf_decode_lines): Move all the code to read the statement
5613 program header into dwarf_decode_line_header. Take the line
5614 header it built as the first argument, instead of the offset to
5615 the compilation unit's line number info. Use the new `struct
5616 line_header' type instead of the old structures. No need to do
5617 cleanups here now, since we don't allocate anything.
5618 (dwarf2_statement_list_fits_in_line_number_section,
5619 dwarf2_line_header_too_long): New complaints.
5620
ac3aafc7
EZ
56212002-05-06 Elena Zannoni <[email protected]>
5622
5623 * gdbtypes.c (init_vector_type): New function.
5624 (build_builtin_type_vec128): Simplify the representation of SIMD
5625 registers.
5626 (build_gdbtypes): Initialize new builtin vector types.
5627 (_initialize_gdbtypes): Register new vector types with gdbarch.
5628 (builtin_type_v4_float, builtin_type_v4_int32,
5629 builtin_type_v8_int16, builtin_type_v16_int8,
5630 builtin_type_v2_int32, builtin_type_v4_int16,
5631 builtin_type_v8_int8): New (renamed) SIMD types.
5632
13e49980
MK
56332002-05-06 Mark Kettenis <[email protected]>
5634
5635 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5636 (i387_fill_fxsave): Likewise.
5637
997b20b8
AO
56382002-05-05 Alexandre Oliva <[email protected]>
5639
5640 * alpha-tdep.c (alpha_extract_return_value): Don't use
5641 non-constant array size in prototype.
5642
535c96ce
AC
56432002-05-04 Andrew Cagney <[email protected]>
5644
5645 From Brian Taylor <briant at model dot com>:
5646 * ui-out.c (ui_out_field_core_addr): Use the function
5647 longest_local_hex_string_custom'to format addresses > 32 bits
5648 wide.
5649
5650 * ui-out.c (ui_out_field_core_addr): Update comment.
5651
bedfa57b
AC
56522002-05-04 Andrew Cagney <[email protected]>
5653
5654 * stack.c (select_and_print_frame): Make static. Delete the
5655 parameter `level'.
5656 (func_command): Update call.
5657 (select_frame_command): Delete code computing the frame level.
5658 * frame.h (select_and_print_frame): Delete declaration.
5659
f621c63e
AC
56602002-05-04 Andrew Cagney <[email protected]>
5661
5662 * sparc-tdep.c (sparc_get_saved_register): Comment why
5663 get_prev_frame call is safe.
5664
0f7d239c
AC
56652002-05-04 Andrew Cagney <[email protected]>
5666
5667 * frame.h (select_frame): Delete level parameter.
5668 * stack.c (select_frame): Update. Use frame_relative_level to
5669 obtain the frame's level.
5670 (select_and_print_frame): Update call.
5671 (select_frame_command): Ditto.
5672 (up_silently_base): Ditto.
5673 (down_silently_base): Ditto.
5674 * ocd.c (ocd_start_remote): Ditto.
5675 * remote-rdp.c (remote_rdp_open): Ditto.
5676 * remote-mips.c (mips_initialize): Ditto.
5677 (common_open): Ditto.
5678 * remote-e7000.c (e7000_start_remote): Ditto.
5679 * m3-nat.c (select_thread): Ditto.
5680 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5681 (child_get_current_exception_event): Ditto.
5682 * varobj.c (varobj_create): Ditto.
5683 (varobj_update): Ditto.
5684 (c_value_of_root): Ditto.
5685 * tracepoint.c (finish_tfind_command): Ditto.
5686 * corelow.c (core_open): Ditto.
5687 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5688 * thread.c (info_threads_command): Ditto.
5689 (switch_to_thread): Ditto.
5690 * infrun.c (normal_stop): Ditto.
5691 (restore_selected_frame): Ditto.
5692 (restore_inferior_status): Ditto.
5693 * breakpoint.c (insert_breakpoints): Ditto.
5694 (watchpoint_check): Ditto.
5695 (bpstat_stop_status): Ditto.
5696 (do_enable_breakpoint): Ditto.
5697 * blockframe.c (flush_cached_frames): Ditto.
5698 (reinit_frame_cache): Ditto.
5699
71d6c7b1
AC
57002002-05-04 Andrew Cagney <[email protected]>
5701
5702 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5703 maintainer.
5704
cda6c68a
JB
57052002-05-04 Jim Blandy <[email protected]>
5706
5707 * gdbtypes.c (replace_type): Doc fix.
5708
5c1c87f0
AC
57092002-05-04 Andrew Cagney <[email protected]>
5710
5711 * valprint.c (strcat_longest): Delete commented out function.
5712 Update copyright.
5713
cd9bfe15
AC
57142002-05-04 Andrew Cagney <[email protected]>
5715
5716 * MAINTAINERS: Mark a29k as deleted.
5717 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5718 Move new configurations to the top.
5719 * configure.tgt: Remove a29k.
5720 * config/a29k/tm-vx29k.h: Delete.
5721 * config/a29k/vx29k.mt: Delete.
5722 * config/a29k/tm-a29k.h: Delete.
5723 * config/a29k/a29k-udi.mt: Delete.
5724 * config/a29k/a29k.mt: Delete.
5725 * a29k-tdep.c: Delete.
5726 * remote-udi.c: Delete.
5727 * remote-mm.c: Delete.
5728 * remote-eb.c: Delete.
5729 * remote-adapt.c: Delete.
5730 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
5731 * config/s390/s390x.mt: Ditto.
5732 * config/s390/s390.mt: Ditto.
5733 * config/sparc/sparclynx.mh: Ditto.
5734 * config/sparc/linux.mh: Ditto.
5735 * config/pa/hppaosf.mh: Ditto.
5736 * config/pa/hppabsd.mh: Ditto.
5737 * config/ns32k/nbsd.mt: Ditto.
5738 * config/mips/vr5000.mt: Ditto.
5739 * config/m68k/sun3os4.mh: Ditto.
5740 * config/m68k/nbsd.mt: Ditto.
5741 * config/m68k/m68klynx.mh: Ditto.
5742 * config/m32r/m32r.mt: Ditto.
5743 * config/i386/x86-64linux.mt: Ditto.
5744 * config/i386/nbsdelf.mt: Ditto.
5745 * config/i386/nbsd.mt: Ditto.
5746 * config/i386/i386lynx.mh: Ditto.
5747
bf0c5130
AC
57482002-05-04 Andrew Cagney <[email protected]>
5749
5750 * target.c (debug_print_register): New function. Handle oversize
5751 registers.
5752 (debug_to_fetch_registers): Call.
5753 (debug_to_store_registers): Call.
5754
2ae1c2d2
JB
57552002-05-03 Jim Blandy <[email protected]>
5756
13a393b0
JB
5757 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5758 (read_type): Doc fix.
5759 * gdbtypes.c (replace_type): Doc fix.
5760
2ae1c2d2
JB
5761 * stabsread.c (multiply_defined_struct): New complaint.
5762 (read_struct_type): If the type we were passed isn't empty, or
5763 incomplete, don't read the new struct type into it; complain,
5764 and return the original type unchanged. Take a new `type_code'
5765 argument, which is the type code for the new type.
5766 (read_type): Rather than storing the type's type code here, pass
5767 it as an argument to read_struct_type, and let that take care of
5768 storing it. That way, we don't overwrite the original type code,
5769 so read_struct_type can use it to decide whether we're overwriting
5770 something we shouldn't.
5771 (complain_about_struct_wipeout): New function.
5772
8de9bdc4
AC
57732002-05-03 Andrew Cagney <[email protected]>
5774
5775 * gdbarch.sh: Assert that gdbarch is non-NULL.
5776 * gdbarch.c: Regenerate.
5777
f773fdbb
JM
57782002-05-03 Jason Merrill <[email protected]>
5779
5780 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5781 and return NULL.
5782
0e04a514
ML
57832002-05-03 Michal Ludvig <[email protected]>
5784
5785 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5786 (x86_64_dwarf2gdb_regno_map_length),
5787 (x86_64_dwarf2_reg_to_regnum): Added.
5788 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5789 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5790 (_initialize_x86_64_tdep): Synced with the change above.
5791 (x86_64_skip_prologue): Reformulated message.
5792
065432a8
PM
57932002-05-03 Pierre Muller <[email protected]>
5794
5795 * f-exp.y: Also use new prev_lexptr variable
5796 to improve error reporting. Based on Michael Snyder
5797 2002-04-24 dated patch to c-exp.y.
5798 * jv-exp.y: Likewise.
5799 * m2-exp.y: Likewise.
5800
a3162708
EZ
58012002-05-02 Elena Zannoni <[email protected]>
5802
5803 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5804 we are dealing with vectors.
5805
03620c38
PM
58062002-05-02 Pierre Muller <[email protected]>
5807
5808 * config/m68k/tm-nbsd.h: Obvious fix,
5809 correct machine name.
5810
6604db2e
PM
58112002-05-02 Pierre Muller <[email protected]>
5812
5813 * p-typeprint.c (pascal_type_print_base): Add support
5814 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5815
0906b739
PM
58162002-05-02 Pierre Muller <[email protected]>
5817
5818 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5819 for fondamental pascal 'char' type.
5820
e2625b33
PM
58212002-05-02 Pierre Muller <[email protected]>
5822
5823 * p-lang.h (is_pascal_string_type): Declaration changed,
5824 new sixth argument of type char ** added.
361d1df0 5825 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5826 changed. Args length_pos, length_size, string_pos, char_size
5827 can now be NULL. New argument arrayname set to the field
5828 name of the char array. Return value set to char array
5829 field index plus one.
361d1df0 5830 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5831 is_pascal_string_type function.
5832
cf17c188
AC
58332002-05-02 Andrew Cagney <[email protected]>
5834
5835 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5836 <[email protected]> change.
5837 * gdbarch.c: Regenerate.
5838
52bca491
AC
58392002-05-02 Andrew Cagney <[email protected]>
5840
5841 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5842 before probing for a new one. Detect errorenous gdbarch_init
5843 functions.
5844 * gdbarch.c: Regenerate.
5845
d5e72505
AC
58462002-05-01 Andrew Cagney <[email protected]>
5847
5848 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5849 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5850 * config/v850/tm-v850.h: Ditto. Update copyright.
5851
af566d9f
AC
58522002-04-30 Andrew Cagney <[email protected]>
5853
5854 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5855 current_gdbarch.
5856
880d85fa
MS
58572002-04-30 Michael Snyder <[email protected]>
5858
94c30b78
MS
5859 * arm-tdep.c: Whitespace clean-ups.
5860 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5861 should have been removed as part of 4/24 change.
5862
6f5987a6
KB
58632002-04-30 Kevin Buettner <[email protected]>
5864
5865 * rs6000-tdep.c: Added comment describing how fpscr register
5866 numbers were chosen.
5867
1a113c93
MS
58682002-04-30 Michael Snyder <[email protected]>
5869
5870 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5871
9a6f53fe
EZ
58722002-04-29 Elena Zannoni <[email protected]>
5873
5874 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5875 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5876 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5877
11ed25ac
KB
58782002-04-29 Kevin Buettner <[email protected]>
5879
5880 From Louis Hamilton <[email protected]>:
5881 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5882 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5883 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5884 not bfd-private xcoff data, to determine wordsize.
5885 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5886
ae232405
AC
58872002-04-29 Andrew Cagney <[email protected]>
5888
5889 GDB 5.2 released from 5.2 branch.
5890
91fd20f7
ML
58912002-04-29 Michal Ludvig <[email protected]>
5892
5893 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5894 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5895 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5896
2dc5091b
EZ
58972002-04-29 Elena Zannoni <[email protected]>
5898
5899 * rs6000-tdep.c (rs6000_extract_return_value,
5900 rs6000_store_return_value): Handle returning vectors.
5901 (rs6000_gdbarch_init): Use
5902 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5903 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5904 New function.
5905 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5906 vectors.
5907 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5908 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5909
2b9848d8
PM
59102002-04-24 Pierre Muller <ics.u-strasbg.fr>
5911
5912 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5913 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5914 with fprintf_unfiltered (gdb_stderr,...).
5915
f8d17dc5
PM
59162002-04-24 Pierre Muller <ics.u-strasbg.fr>
5917
5918 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5919 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5920 Replace fprintf (stderr,...
5921 with fprintf_unfiltered (gdb_stderr,....
5922 * remote-es.c: Likewise.
5923 * remote-os9k.c: Likewise.
5924 * remote-st.c: Likewise.
5925
2f2f1ad1
AS
59262002-04-28 Andreas Schwab <[email protected]>
5927
5928 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5929 linux-proc.o and gcore.o.
5930
b6779aa2
AC
59312002-04-26 Michal Ludvig <[email protected]>
5932
5933 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5934 code without frame pointers.
5935
7e57f5f4
AC
59362002-04-26 Andrew Cagney <[email protected]>
5937
5938 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5939 ON_STACK is needed.
5940
2ceb85d0
BE
59412002-04-26 Ben Elliston <[email protected]>
5942
5943 * target.c (do_xfer_memory): Correct reference to the new option
5944 "trust-readonly-sections".
5945
f5f8a009
EZ
59462002-04-26 Elena Zannoni <[email protected]>
5947
5948 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5949 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5950 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5951 vectors.
5952 (read_array_type): Record the fact that this array type is really a
5953 vector (i.e. are passed in by value).
5954
5868c862
JT
59552002-04-26 Jason Thorpe <[email protected]>
5956
5957 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5958 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5959 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5960 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5961 * alpha-linux-tdep.c: Include frame.h.
5962 (alpha_linux_sigcontext_addr): New function.
5963 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5964 alpha_linux_sigcontext_addr.
5965 * alpha-osf1-tdep.c: Include gdbcore.h.
5966 (alpha_osf1_sigcontext_addr): New function.
5967 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5968 alpha_osf1_sigcontext_addr.
5969 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5970 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5971
bfb01f37
AC
59722002-04-26 Andrew Cagney <[email protected]>
5973
361d1df0 5974 * stack.c (selected_frame_level):
bfb01f37
AC
5975 (select_frame): Do not set selected_frame_level.
5976 * frame.h (selected_frame_level): Delete declaration.
5977
15813d3f
AC
59782002-04-26 Andrew Cagney <[email protected]>
5979
5980 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5981 convert_from_func_ptr-addr when AIX / PowerOpen.
5982
6096c27a
AC
59832002-04-25 Andrew Cagney <[email protected]>
5984
5985 * valops.c (hand_function_call): Call
5986 generic_save_call_dummy_addr.
5987 * frame.h (generic_save_call_dummy_addr): Declare.
5988 * blockframe.c (struct dummy_frame): Add fields call_lo and
5989 call_hi.
5990 (generic_find_dummy_frame): Check for PC in range call_lo to
5991 call_hi instead of entry_point_address.
5992 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5993 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5994 (generic_save_call_dummy_addr): New function.
5995
f510d44e
DM
59962002-04-24 David S. Miller <[email protected]>
5997
5998 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5999 sparc_skip_prologue.
6000 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6001 information to find prologue when possible.
6002 (sparc_prologue_frameless_p): Call examine_prologue directly.
6003 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6004 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6005 second argument.
6006 (SKIP_PROLOGUE): Likewise.
6007
15d72a92
JT
60082002-04-25 Jason Thorpe <[email protected]>
6009
6010 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6011 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6012 indicate that the condition it was testing is always true.
6013 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6014 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6015 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6016
accc6d1f
JT
60172002-04-25 Jason Thorpe <[email protected]>
6018
6019 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6020 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6021 tdep->jb_pc and tdep->jb_elt_size.
6022 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6023 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6024 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6025 * alpha-nat.c (get_longjmp_target): Remove.
6026 (JB_ELEMENT_SIZE): Ditto.
6027 (JB_PC): Ditto.
6028 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6029 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6030 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6031 to alpha_get_longjmp_target.
6032 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6033 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6034 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6035
1bfdc549
AC
60362002-04-25 Andrew Cagney <[email protected]>
6037
6038 * README: Update to GDB 5.2.
6039
1bd316f0
AC
60402002-04-25 Andrew Cagney <[email protected]>
6041
6042 * gdbarch.sh (LC_ALL): Set to `c'.
6043
2e5ff58c
TR
60442002-04-25 Theodore A. Roth <[email protected]>
6045
6046 * avr-tdep.c: Ran through gdb_indent.sh.
6047
e33ce519
TR
60482002-04-25 Theodore A. Roth <[email protected]>
6049
6050 * MAINTAINERS: Add myself as AVR maintainer.
6051 * NEWS: Note new target avr.
6052
8818c391
TR
60532002-04-25 Theodore A. Roth <[email protected]>
6054
6055 * Makefile.in: Add support for AVR target.
6056 * configure.tgt: Add support for AVR target.
6057 * avr-tdep.c: New file
6058 * config/avr/avr.mt: New file.
6059
79509c2d
TR
60602002-04-25 Theodore A. Roth <[email protected]>
6061
6062 * MAINTAINERS: Add myself to write-after-approval.
6063
dac8068e
PM
60642002-04-24 Pierre Muller <ics.u-strasbg.fr>
6065
6066 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6067 with fprintf_unfiltered (gdb_stderr,....
6068
25bf3106
PM
60692002-04-25 Pierre Muller <[email protected]>
6070
6071 Fix PR gdb/508.
6072 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6073
24467a86
PM
60742002-04-25 Pierre Muller <[email protected]>
6075
6076 * p-exp.y: Also use new prev_lexptr variable
6077 to improve error reporting. Based on Michael Snyder
6078 2002-04-24 dated patch to c-exp.y.
6079
95b80706
JT
60802002-04-25 Jason Thorpe <[email protected]>
6081
6082 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6083 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6084 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6085 to 0.
6086 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6087 and struct value.
6088 (FUNCTION_START_OFFSET): Remove.
6089 (BREAKPOINT): Ditto.
6090
e90cc612
JT
60912002-04-25 Jason Thorpe <[email protected]>
6092
6093 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6094 * NEWS: Ditto.
6095
6c72f9f9
JT
60962002-04-24 Jason Thorpe <[email protected]>
6097
6098 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6099 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6100 alpha_linux_pc_in_sigtramp.
6101 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6102 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6103 alpha_osf1_pc_in_sigtramp.
6104 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6105 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6106 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6107 alphafbsd_pc_in_sigtramp.
6108 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6109 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6110 alphanbsd_pc_in_sigtramp.
6111 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6112 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6113
5e4f3379
JT
61142002-04-24 Jason Thorpe <[email protected]>
6115
6116 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6117
da8ca43d
JT
61182002-04-24 Jason Thorpe <[email protected]>
6119
6120 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6121 alphanbsd-tdep.c.
6122 (alphanbsd-nat.o): New dependency list.
6123 (alphanbsd-tdep.o): Ditto.
6124 * NEWS: Note new native NetBSD/alpha configuration.
6125 * alphanbsd-nat.c: New file.
6126 * alphanbsd-tdep.c: Ditto.
6127 * configure.host (alpha*-*-netbsd*): New host.
6128 * configure.tgt (alpha*-*-netbsd*): New target.
6129 * config/alpha/nbsd.mh: New file.
6130 * config/alpha/nbsd.mt: Ditto.
6131 * config/alpha/nm-nbsd.h: Ditto.
6132 * config/alpha/tm-nbsd.h: Ditto.
6133
36a6271d
JT
61342002-04-24 Jason Thorpe <[email protected]>
6135
6136 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6137 (alpha-osf1-tdep.o): New dependency list.
6138 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6139 and skip_sigtramp_frame members.
6140 * alpha-linux-tdep.c: Include gdbcore.h.
6141 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6142 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6143 * alpha-osf1-tdep.c: New file.
6144 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6145 alpha-osf1-dep.c.
6146 (alpha_frame_past_sigtramp_frame): New function.
6147 (alpha_dynamic_sigtramp_offset): Ditto.
6148 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6149 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6150 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6151 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6152 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6153 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6154 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6155 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6156 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6157 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6158 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6159 to find_solib_trampoline_target.
6160 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6161 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6162 (SKIP_TRAMPOLINE_CODE): Remove.
6163 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6164 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6165 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6166 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6167 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6168 (PROC_SIGTRAMP_MAGIC): Ditto.
6169 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6170 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6171 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6172 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6173 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6174
2f4bc57b
JT
61752002-04-24 Jason Thorpe <[email protected]>
6176
6177 * NEWS: Note that Alpha targets are now multi-arch.
6178
665132f9
MS
61792002-04-24 Michael Snyder <[email protected]>
6180
6181 * parser-defs.h (prev_lexptr): New external variable.
6182 * parse.c (parse_exp_1): Set prev_lexptr to null before
6183 calling the language-specific parser.
6184 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6185 (yyerror): Use prev_lexptr in error reporting.
6186
32872fa7
DJ
61872002-04-24 Daniel Jacobowitz <[email protected]>
6188
6189 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6190 * gregset.h: If FILL_FPXREGSET is defined, provide
6191 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6192 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6193 is defined, call fill_fpxregset.
6194
57e76fac
MS
61952002-04-24 Roland McGrath <[email protected]>
6196
6197 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6198 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6199 (supply_gregset, supply_fpregset): New functions.
6200
6201 * gnu-nat.c (gnu_find_memory_regions): New function.
6202 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6203 (gnu_xfer_memory): Add a cast.
6204
f43845b3
MS
62052002-04-24 Michael Snyder <[email protected]>
6206
361d1df0 6207 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6208 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6209 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6210 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6211 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6212 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6213
a0abec03
AC
6214Wed Apr 24 14:22:21 2002 Andrew Cagney <[email protected]>
6215
6216 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6217 NUM_PSEUDO_REGS can be used.
6218
d7bd68ca
AC
62192002-04-24 Andrew Cagney <[email protected]>
6220
6221 * arch-utils.h: Update copyright.
6222
6223 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6224 * gdbarch.h, gdbarch.c: Re-generate.
6225
6226 * inferior.h (IN_SIGTRAMP): Delete definition.
6227 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6228 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6229
6230 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6231 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6232 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6233 (find_proc_framesize): Ditto.
6234 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6235 (alpha_init_extra_frame_info): Ditto.
6236 * infrun.c (handle_inferior_event): Ditto.
6237 (handle_inferior_event): Ditto.
6238 (check_sigtramp2): Ditto.
6239 * blockframe.c (create_new_frame): Ditto.
6240 (get_prev_frame): Ditto.
6241 * ppc-linux-tdep.c: Update comments.
6242 * i386-linux-tdep.c: Update comments.
6243 * breakpoint.c (bpstat_what): Update comment.
6244
4867e41e
DM
62452002-04-24 David S. Miller <[email protected]>
6246
21d83aa5
DM
6247 * i960-tdep.c (register_in_window_p): New function.
6248 (i960_find_saved_register): Use it instead of
6249 REGISTER_IN_WINDOW_P.
6250 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6251
4867e41e
DM
6252 * symtab.h (find_stab_function_addr): Kill extern.
6253 * minsyms.c (find_stab_function_addr): Remove from here...
6254 * dbxread.c: ... to here, and mark it static.
6255
69cdf6a2
DM
62562002-04-20 David S. Miller <[email protected]>
6257
6258 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6259 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6260
5a595886
DM
62612002-04-21 David S. Miller <[email protected]>
6262
6263 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6264 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6265 (vx_write_register): Likewise.
6266
1da1a192
JB
62672002-04-23 J. Brobecker <[email protected]>
6268
6269 * source.c (is_regular_file): New function.
6270 (openp): Check wether file to open is a regular file
6271 to avoid opening directories.
6272
baa6f10b
JT
62732002-04-22 Jason Thorpe <[email protected]>
6274
6275 * findvar.c (extract_signed_integer): Cast printf argument
6276 to suppress format warning.
6277 (extract_unsigned_integer): Likewise.
6278 * infcmd.c (registers_info): Likewise.
6279 * top.c (get_prompt_1): Likewise.
6280 * valops.c (value_assign): Likewise.
6281 * valprint.c (print_decimal): Likewise.
6282
b2c4da81
L
62832002-04-22 H.J. Lu ([email protected])
6284
6285 * c-exp.y (typebase): Support
361d1df0 6286
b2c4da81
L
6287 [long|long long|short] [signed|unsigned] [int|]
6288
6289 and
6290
6291 signed [long|long long|short] int
6292
f267bd6a
JT
62932002-04-22 Jason Thorpe <[email protected]>
6294
6295 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6296 and vax-tdep.h.
6297 * vax-tdep.h: New file.
6298 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6299 Make several routines static.
6300 (vax_get_saved_register): New function.
6301 (vax_gdbarch_init): New function.
6302 (_initialize_vax_tdep): Register vax_gdbarch_init.
6303 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6304 Remove macros now under the control of gdbarch.
6305
da3c6d4a
MS
63062002-04-22 Michael Snyder <[email protected]>
6307
11d3b27d
MS
6308 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6309 Some whitespace and coding standards tweaks.
da3c6d4a 6310
a33f7558
JT
63112002-04-22 Jason Thorpe <[email protected]>
6312
6313 * vax-tdep.c: Include regcache.h.
6314 (vax_call_dummy_words): New.
6315 (sizeof_vax_call_dummy_words): New.
6316 (vax_fix_call_dummy): New function.
6317 (vax_saved_pc_after_call): Ditto.
6318 * config/vax/tm-vax.h: Don't include regcache.h.
6319 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6320 (CALL_DUMMY): Remove.
6321 (CALL_DUMMY_WORDS): Define.
6322 (SIZEOF_CALL_DUMMY_WORDS): Define.
6323 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6324
47a73475
MS
63252002-04-18 Michael Snyder <[email protected]>
6326
6327 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6328
52efde73
JT
63292002-04-22 Jason Thorpe <[email protected]>
6330
6331 * vax-tdep.c (vax_frame_chain): New function.
6332 (vax_push_dummy_frame): Ditto.
6333 (vax_pop_frame): Ditto.
6334 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6335 (FRAMELESS_FUNCTION_INVOCATION): Use
6336 generic_frameless_function_invocation_not.
6337 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6338 (POP_FRAME): Use vax_pop_frame.
6339
ea74468c
JT
63402002-04-22 Jason Thorpe <[email protected]>
6341
6342 * vax-tdep.c (vax_store_struct_return): New function.
6343 (vax_extract_return_value): Ditto.
6344 (vax_store_return_value): Ditto.
6345 (vax_extract_struct_value_address): Ditto.
6346 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6347 vax_store_struct_return.
6348 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6349 (STORE_RETURN_VALUE): Use vax_store_return_value.
6350 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6351
5516aa92
JT
63522002-04-22 Jason Thorpe <[email protected]>
6353
6354 * vax-tdep.c (vax_frame_saved_pc): New function.
6355 (vax_frame_args_address_correct): Ditto.
6356 (vax_frame_args_address): Ditto.
6357 (vax_frame_locals_address): Ditto.
6358 (vax_frame_num_args): Move code to be in proximity to
6359 other frame-related functions.
6360 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6361 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6362 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6363 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6364 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6365
36af0b35
L
63662002-04-22 H.J. Lu ([email protected])
6367
6368 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6369 includedir.
6370
ab62c900
JT
63712002-04-22 Jason Thorpe <[email protected]>
6372
6373 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6374 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6375 (FRAME_INIT_SAVED_REGS): New macro.
6376
7232b100
JT
63772002-04-22 Jason Thorpe <[email protected]>
6378
6379 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6380
b70d2aee
JT
63812002-04-22 Jason Thorpe <[email protected]>
6382
6383 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6384 where needed.
6385 (fetch_osf_core_registers): Likewise.
6386 (supply_gregset): Likewise.
6387
a0e8a2d1 63882002-04-22 J. Brobecker <[email protected]>
361d1df0 6389
a0e8a2d1
JB
6390 * symfile.h (get_section_index): Define.
6391 * symfile.c (get_section_index): New function.
6392 * mdebugread.c (SC_IS_SBSS): New macro.
6393 (SC_IS_BSS): Return true for the scBss storage class only, as
6394 the scSBss storage class refers to the .sbss section.
6395 (parse_partial_symbols): Discard the symbols which associated
6396 section does not exist.
6397 Make sure to use the .sbss section index for symbols which
6398 storage class is scBss, rather than using the .bss section index.
6399
51eb8b08
JT
64002002-04-22 Jason Thorpe <[email protected]>
6401
6402 * vax-tdep.c: Update copyright years.
6403 (vax_register_name): New function.
6404 (vax_register_byte): Ditto.
6405 (vax_register_raw_size): Ditto.
6406 (vax_register_virtual_size): Ditto.
6407 (vax_register_virtual_type): Ditto.
6408 * config/vax/tm-vax.h: Update copyright years.
6409 (REGISTER_NAMES): Remove.
6410 (REGISTER_NAME): Define.
6411 (REGISTER_BYTE): Use vax_register_byte.
6412 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6413 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6414 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6415
6cc1c0a8
AC
64162002-04-21 Andrew Cagney <[email protected]>
6417
6418 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6419 declaration
6420 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6421
9319a2fe
DM
64222002-04-21 David S. Miller <[email protected]>
6423
6424 * arch-utils.c (generic_prologue_frameless_p): Kill
6425 SKIP_PROLOGUE_FRAMELESS_P code.
6426 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6427 references.
6428 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6429 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6430 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6431 references.
6432 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6433 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6434 (sparc_gdbarch_init): Pass it to
6435 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6436
e9ed6d01
JT
64372002-04-21 Jason Thorpe <[email protected]>
6438
6439 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6440 (alphabsd-nat.o): New dependency list.
6441
36012033
JT
64422002-04-21 Jason Thorpe <[email protected]>
6443
6444 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6445 alphafbsd-tdep.c.
6446 (alpha-linux-tdep.o): New dependency list.
6447 (alphafbsd-tdep.o): Likewise.
6448
3379287a
JT
64492002-04-21 Jason Thorpe <[email protected]>
6450
6451 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6452 to here...
6453 * alpha-tdep.c: ...from here.
6454 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6455
4bcbd6cb
JT
64562002-04-21 Jason Thorpe <[email protected]>
6457
6458 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6459 prototype from here...
6460 * alpha-tdep.h: ...to here.
6461
b31da25e
AC
64622002-04-21 Andrew Cagney <[email protected]>
6463
6464 * frame.h (selected_frame_level): Document as deprecated.
6465 (frame_relative_level): Declare.
6466 * stack.c (frame_relative_level): New function.
6467 (selected_frame_level): Document as deprecated.
6468 (select_frame): Do not set the selected_frame_level.
6469
6470 * stack.c (frame_info, record_selected_frame): Update.
6471 (frame_command, current_frame_command): Update.
6472 (up_silently_base, up_command, down_silently_base): Update.
6473 (down_command): Update.
6474 * inflow.c (kill_command): Update.
6475 * tracepoint.c (finish_tfind_command): Update.
6476 * corelow.c (core_open): Update.
6477 * thread.c (info_threads_command): Update.
6478 (do_captured_thread_select): Update.
6479 * infcmd.c (finish_command): Update.
6480 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6481
9c1d6fe5
JT
64822002-04-21 Jason Thorpe <[email protected]>
6483
6484 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6485
ab89facf
AC
64862002-04-21 Andrew Cagney <[email protected]>
6487
6488 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6489 type const.
6490
82a4efa1
JT
64912002-04-21 Jason Thorpe <[email protected]>
6492
6493 * alphafbsd-tdep.c: Update copyright years. Include
6494 alpha-tdep.h.
6495 (alphafbsd_use_struct_convention): Make static.
6496 (alphafbsd_init_abi): New function.
6497 (_initialize_alphafbsd_tdep): New function.
6498 * config/alpha/tm-fbsd.h: Update copyright years.
6499 (USE_STRUCT_CONVENTION): Remove.
6500
44dffaac
JT
65012002-04-21 Jason Thorpe <[email protected]>
6502
6503 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6504 an Alpha ABI variant.
6505 (alpha_abi_handler_list): Declare.
6506 (alpha_gdbarch_register_os_abi): New function.
6507 (alpha_gdbarch_init): Give registered ABI variant handlers a
6508 chance to tweak the gdbarch once we have set up defaults.
6509 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6510
65585be4
JT
65112002-04-21 Jason Thorpe <[email protected]>
6512
6513 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6514 to standard_coerce_float_to_double.
6515 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6516
d9b023cc
JT
65172002-04-21 Jason Thorpe <[email protected]>
6518
6519 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6520 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6521 from gdbarch_tdep rather than a constant.
6522 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6523 the default text address for all Alpha Unix ABIs.
6524 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6525 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6526
dc129d82
JT
65272002-04-21 Jason Thorpe <[email protected]>
6528
6529 * alpha-tdep.h: New file. Includes several Alpha target constants
6530 taken from...
6531 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6532 let gdbarch deal with.
6533 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6534 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6535 to dependency list.
6536 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6537 Alpha target register names.
6538 * alphabsd-nat.c: Likewise.
6539 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6540 Alpha target register names. Make serveral routines static.
6541 (alpha_get_saved_register): New function.
6542 (alpha_abi_names): New.
6543 (process_note_abi_tag_sections): New function.
6544 (get_elfosabi): New function.
6545 (alpha_gdbarch_init): New function.
6546 (alpha_dump_tdep): New function.
6547 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6548
d49d1e0a
AC
65492002-04-21 Andrew Cagney <[email protected]>
6550
6551 * frame.c (find_saved_register): Delete #ifdef
6552 HAVE_REGISTER_WINDOWS code.
6553 * config/sparc/tm-sparc.h: Update comments.
6554 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6555
92e8c9ed
AC
65562002-04-21 Andrew Cagney <[email protected]>
6557
6558 * i960-tdep.c (i960_find_saved_register): New function.
6559 (i960_get_saved_register): New function.
6560 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6561 (i960_get_saved_register): Declare.
6562 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6563
e1925118
DM
65642002-04-20 David S. Miller <[email protected]>
6565
6566 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6567
29673b29
AC
65682002-04-20 Andrew Cagney <[email protected]>
6569
6570 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6571 instead of NUM_PSEUDO_REGS.
6572
6c86dcd5
DM
65732002-04-20 David S. Miller <[email protected]>
6574
6575 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6576 GDB_MULTI_ARCH_PARTIAL
6577 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6578 define, let tm-sp64.h do it.
6579
aa40ec90
JT
65802002-04-20 Jason Thorpe <[email protected]>
6581
6582 * frame.c (find_saved_register): Avoid a NULL pointer
6583 dereference and actually walk the frame list.
6584
0f79675b
AC
65852002-04-20 Andrew Cagney <[email protected]>
6586
6587 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6588 sorted in most most-recent-used order. Document.
6589 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6590
f91305dd 65912002-04-19 Andrew Cagney <[email protected]>
bf75c8c1
AC
6592
6593 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6594 instead of ->prev.
6595 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6596 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6597 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6598 instead of ->prev.
6599
73d322b1
EZ
66002002-04-19 Elena Zannoni <[email protected]>
6601
6602 Fix PR gdb/471.
6603 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6604 (build_builtin_type_vec128): Ditto.
6605 (append_composite_type_field): Fix calculation of type length in
6606 union case.
6607
ccd9a834
EZ
66082002-04-19 Eli Zaretskii <[email protected]>
6609
6610 * config/djgpp/README: Update.
6611
6612 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6613 compiler warnings.
6614
a57f9e49
JT
66152002-04-19 Jason Thorpe <[email protected]>
6616
6617 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6618 (alpha_setup_arbitrary_frame): ...to this.
6619 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6620 for alpha_setup_arbitrary_frame.
6621
f4f9705a
AC
66222002-04-18 Andrew Cagney <[email protected]>
6623
6624 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6625 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6626
f4f9705a
AC
6627 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6628 * target.h (memory_breakpoint_from_pc): Update declaration.
6629 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6630
6631 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6632 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6633 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6634 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6635 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6636 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6637 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6638 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6639 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6640 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6641 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6642 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6643
6644 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6645 const pointer.
6646 * monitor.c (monitor_insert_breakpoint): Ditto.
6647 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6648
6649 * config/mcore/tm-mcore.h: Update copyright.
6650 * mem-break.c: Ditto.
6651 * xstormy16-tdep.c: Ditto.
6652
29f319b8
PM
66532002-04-18 Pierre Muller <[email protected]>
6654
6655 * p-exp.y: Add precedence rule for '^' token.
6656 This removes the shift/reduce conflicts.
6657 Remove the comment concerning these shift/reduce conflicts.
6658
ebeac11a
EZ
66592002-04-18 Elena Zannoni <[email protected]>
6660
6661 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6662 (registers_powerpc_nofp): New register set for processors
6663 without floating point unit.
6664
27c31547
DM
66652002-04-18 David S. Miller <[email protected]>
6666
6667 * MAINTAINERS: Add myself to write-after-approval.
6668
47a73475
MS
66692002-04-17 Michael Snyder <[email protected]>
6670
6671 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6672
953836b2
AC
66732002-04-17 Andrew Cagney <[email protected]>
6674
6675 * rs6000-tdep.c (frame_initial_stack_address): Use
6676 frame_register_read to read the alloca_reg.
6677
8b0d4340
AC
66782002-04-17 Andrew Cagney <[email protected]>
6679
6680 * frame.c (find_saved_register): Find saved registers in the next
6681 not prev frame.
6682 Fix PR gdb/365.
6683
d8864532
AC
66842002-04-17 Andrew Cagney <[email protected]>
6685
6686 * gdbarch.sh (LANG): Set to ``c''.
6687
36cc83a3 66882002-04-15 Andrew Cagney <[email protected]>
361d1df0 6689
36cc83a3 6690 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6691
2f4150cc 66922002-04-15 Andrew Cagney <[email protected]>
2c7ef074
AC
6693
6694 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6695 Update copyright.
6696
628703c6 6697 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6698 Also fix PR gdb/391.
361d1df0 6699
56157b4a
AC
67002002-04-14 Andrew Cagney <[email protected]>
6701
6702 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6703 * aclocal.m4, configure: Re-generate.
6704 Fix PR gdb/391.
361d1df0 6705
6d1e3329
EZ
67062002-04-14 Elena Zannoni <[email protected]>
6707
6708 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6709 instead of tm_print_insn.
6710
cb06fa07
EZ
67112002-04-14 Elena Zannoni <[email protected]>
6712
6713 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6714
f208ba17
AC
67152002-04-14 Andrew Cagney <[email protected]>
6716
6717 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6718 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6719 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6720
20f01a46
DH
67212002-04-12 Don Howard <[email protected]>
6722
6723 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6724 max_user_call_depth.
6725 (init_cmd_lists): Initialize the new value;
6726 * cli/cli-script.c (execute_user_command): Limit the call depth of
6727 user defined commands. This avoids a core-dump when user commands
6728 are infinitly recursive.
6729
a88376a3
KB
67302002-04-12 Kevin Buettner <[email protected]>
6731
6732 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6733 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6734 from tdep struct instead of DEFAULT_LR_SAVE.
6735 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6736 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6737 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6738
f2172603
MS
67392002-04-12 Michael Snyder <[email protected]>
6740
694f61fb 6741 * Remote.c: Spelling fix.
20fe79c8
MS
6742 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6743 If no symbol found for "sbrk", try "_sbrk".
6744 (make_output_phdrs): Use bfd_section_name.
6745 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6746 * eval.c: Indentation fix-ups.
169a7369
MS
6747 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6748 in case it gets applied to an address that is already
6749 in the instruction space.
de74f71f
MS
6750 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6751 * symfile.c: Fix indentation, long lines.
f2172603
MS
6752 * source.c: White space fix-up.
6753
cda5a58a
AC
67542002-04-12 Andrew Cagney <[email protected]>
6755
6756 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6757 * frame.c (frame_register_read): New function. Return non-zero on
6758 success.
6759 (read_relative_register_raw_bytes_for_frame): Delete.
6760 (read_relative_register_raw_bytes): Delete.
6761 * frame.h (frame_register_read): Declare.
6762 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6763 * sh-tdep.c: Ditto.
6764 * infcmd.c (do_registers_info): Ditto.
6765 * hppa-tdep.c: Ditto.
6766 * rs6000-tdep.c: Ditto.
6767 * h8500-tdep.c: Ditto.
6768 * mips-tdep.c: Ditto.
6769 * h8300-tdep.c: Ditto.
6770 * z8k-tdep.c: Ditto.
6771
2ea5f656
KB
67722002-04-12 Kevin Buettner <[email protected]>
6773
6774 From Jimi X <[email protected]>:
6775 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6776 64-bit SysV ABI.
6777
27b15785
KB
67782002-04-12 Kevin Buettner <[email protected]>
6779
6780 From Jimi X <[email protected]>:
6781 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6782 bfd info.
6783
5d57ee30
KB
67842002-04-12 Kevin Buettner <[email protected]>
6785
6786 From Jimi X <[email protected]>:
6787 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6788 register sets for these processor variants.
6789
bc1e36ca
DJ
67902002-04-11 Daniel Jacobowitz <[email protected]>
6791
bc1e36ca
DJ
6792 * regformats/reg-ppc.dat: Support FPSCR.
6793
e3f36dbd
KB
67942002-04-11 Kevin Buettner <[email protected]>
6795
6796 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6797 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6798 Add fpscr as an invalid/unfetchable register.
6799 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6800 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6801 (fill_fpregset): Add support for register fpscr.
6802 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6803 (fill_gregset): Account for the fact that register ``mq'' might
6804 not exist.
6805 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6806 (registers_power): Add fpscr to register set at slot 71.
6807 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6808 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6809
943c9c25
MS
68102002-04-11 Michael Snyder <[email protected]>
6811
6812 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6813 * configure: Regenerate.
6814 * config.in: Regenerate.
6815 * acconfig.h: Add define for _SYSCALL32.
6816 * core-sol2.c: Remove #define _SYSCALL32.
6817 * solib-legacy.c: Remove #define _SYSCALL32.
6818
d8c0a2e7
AC
68192002-04-10 Andrew Cagney <[email protected]>
6820
6821 * stack.c (select_frame): Cleanup internal error message, do not
6822 use %p.
6823
7cc19214
AC
68242002-04-10 Andrew Cagney <[email protected]>
6825
6826 * stack.c (select_frame): Check that selected_frame and the
6827 specified level are as expected.
6828 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6829 Update copyright.
6830 * frame.h (struct frame_info): Add field `level'. Update
6831 copyright.
6832 Work-in-progress PR gdb/464.
6833
67a2b77e
AC
68342002-04-10 Andrew Cagney <[email protected]>
6835
6836 * maint.c (maint_print_section_info): Rename print_section_info.
6837 (print_bfd_section_info, print_objfile_section_info): Update.
6838 * inferior.h (struct gdbarch): Add opaque declaration.
6839 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6840 * gdbarch.h: Regenerate.
6841
8cfda98c
ML
68422002-04-10 Michal Ludvig <[email protected]>
6843
6844 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6845 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6846 (kernel_u_size): Added.
6847 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6848 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6849
ca439ad2 68502002-04-04 Jim Ingham <[email protected]>
361d1df0 6851
ca439ad2
JI
6852 * valarith.c (find_size_for_pointer_math): New function, either returns
6853 the size for a pointer's target, returns 1 for void *, or errors for
6854 incomplete types.
6855 (value_add, value_sub): use find_size_for_pointer_math.
6856
2f2893d9
DJ
68572002-04-09 Daniel Jacobowitz <[email protected]>
6858
6859 * linux-low.c (linux_look_up_symbols): New hook.
6860 (linux_target_ops): Add linux_look_up_symbols.
6861 * remote-utils.c (decode_address): New function.
6862 (look_up_one_symbol): New function.
6863 * server.c (handle_query): Call target look_up_symbols hook.
6864 * server.h (look_up_one_symbol): Add prototype.
6865 * target.h (struct target_ops): Add look_up_symbols hook.
6866
96cb11df
AC
68672002-04-09 Andrew Cagney <[email protected]>
6868
6869 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6870 override FP_REGNUM with frame->fp. Update copyright.
6871 * parse.c (num_std_regs, std_regs): Delete.
6872 (target_map_name_to_register): Do not search std_regs. Update
6873 function description.
6874 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6875 declarations. Update copyright.
6876 Fix PR gdb/251.
361d1df0 6877
97658e92
DJ
68782002-04-09 Daniel Jacobowitz <[email protected]>
6879
6880 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6881 after the last symbol in a block.
6882
6044e3eb
PM
68832002-04-09 Pierre Muller <[email protected]>
6884
6885 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6886 is non zero as a found symbol.
6887
0406ec40
AC
68882002-04-08 Andrew Cagney <[email protected]>
6889
6890 * findvar.c: Include "builtin-regs.h".
6891 (value_of_register): Call value_of_builtin_reg when applicable.
6892 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6893 (target_map_name_to_register): Call
6894 builtin_reg_map_name_to_regnum.
6895 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6896 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6897 (builtin_regs_h): Define.
6898 (builtin-regs.o): New target.
6899 (findvar.o): Add $(builtin_regs_h).
6900 * builtin-regs.c, builtin-regs.h: New files.
6901 * std-regs.c: New file.
6902 Partial fix for PR gdb/251.
6903
56a6dfb9
KB
69042002-04-08 Kevin Buettner <[email protected]>
6905
6906 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6907 it's no longer required.
6908
3a808432
AC
69092002-04-08 Andrew Cagney <[email protected]>
6910
6911 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6912
7c40d541
KB
69132002-04-08 Kevin Buettner <[email protected]>
6914
6915 From Jimi X <[email protected]>:
6916 * rs6000-tdep.c (rs6000_software_single_step): Use
6917 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6918 and size. Use target_insert_breakpoint() and
6919 target_remove_breakpoint() to insert and remove breakpoints
6920 instead of explicit memory reads and writes.
6921
cc9836a8
KB
69222002-04-08 Kevin Buettner <[email protected]>
6923
6924 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6925 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6926 ELF_OBJECT_FORMAT ifdef.
6927
7495d1dc
KB
69282002-04-08 Kevin Buettner <[email protected]>
6929
6930 From Jimi X <[email protected]>:
6931 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6932
4288e836
KB
69332002-04-08 Kevin Buettner <[email protected]>
6934
6935 From Jimi X <[email protected]>:
6936 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6937 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6938
a4e4e501
MK
69392002-04-07 Mark Kettenis <[email protected]>
6940
6941 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6942 s/asprintf/xasprintf/.
6943 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6944
006defba
AC
69452002-04-07 Andrew Cagney <[email protected]>
6946
6947 I believe Jeff Law denies responsability for this one:
6948 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6949 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6950 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6951 Work-around for PR gdb/366.
6952
7aa83cac
EZ
69532002-04-07 Elena Zannoni <[email protected]>
6954
6955 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6956 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6957 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6958
cf1fcca1
EZ
69592002-04-07 Elena Zannoni <[email protected]>
6960
6961 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6962 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6963 information.
6964
3f289e6f
AC
69652002-04-07 Andrew Cagney <[email protected]>
6966
6967 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6968 maintainer.
6969
129188f6
AC
69702002-04-07 Andrew Cagney <[email protected]>
6971
6972 * README (Reporting Bugs in GDB): Document the bug web page as the
6973 prefered way of submitting bugs.
6974 Fix PR gdb/402.
6975
1200cd6e
AC
69762002-04-06 Andrew Cagney <[email protected]>
6977
6978 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6979 -1. Update comment.
6980 * gdbarch.h, gdbarch.c: Re-generate.
6981
2853c33c
AS
69822002-04-07 Andreas Schwab <[email protected]>
6983
6984 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6985 buffer to regcache_collect.
6986
c2169756
AC
69872002-04-06 Andrew Cagney <[email protected]>
6988
6989 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6990 * gdbarch.c, gdbarch.h: Re-generate.
6991
25f1b008
AC
69922002-04-06 Andrew Cagney <[email protected]>
6993
6994 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6995 declaration. Fix -Werror.
6996
59263426
DJ
69972002-04-05 Daniel Jacobowitz <[email protected]>
6998
6999 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7000 * gdbarch.c: Regenerate.
7001
f5db4da3
MS
70022002-04-05 Michael Snyder <[email protected]>
7003
80f8a6eb
MS
7004 * breakpoint.c (clear_command): Rewrite middle section to
7005 combine two loops with identical control conditions.
7006 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7007 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7008
ad3dcc5c
L
70092002-04-05 H.J. Lu ([email protected])
7010
7011 * solib-svr4.c (bkpt_names): Add "__start".
7012
f32e7a74
AC
70132002-04-04 Andrew Cagney <[email protected]>
7014
7015 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7016 as test for 64 bit target.
7017
8227c0ff
AC
70182002-04-05 Andrew Cagney <[email protected]>
7019
7020 * h8500-tdep.c (h8500_write_fp): Delete function.
7021 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7022 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7023 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7025 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7026 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7027 (s390_write_fp):
7028 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7029 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7030 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7031 (d10v_write_fp): Delete function.
7032 * inferior.h (write_fp, generic_target_write_fp): Delete
7033 declarations.
7034 * regcache.c (generic_target_write_fp): Delete function.
7035 (write_fp): Delete function.
7036 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7037 * gdbarch.h, gdbarch.c: Regenerate.
7038 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7039 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7040 (sparc64_write_fp): Delete declaration.
7041 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7042 (h8500_write_fp): Delete declaration.
7043
2757dd86
AC
70442002-04-04 Andrew Cagney <[email protected]>
7045
7046 * sparc-tdep.c (sparc64_write_fp): Delete.
7047 (sparc_push_dummy_frame): Replace write_fp call with code to store
7048 the FP directly.
7049 (sparc_gdbarch_init): Do not initialize write_fp.
7050
c69255e1
KB
70512002-04-05 Kevin Buettner <[email protected]>
7052
7053 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7054 clause.
7055
ae767bfb
JB
70562002-03-29 Jim Blandy <[email protected]>
7057
7058 * stack.c (get_selected_block): Add new argument `addr_in_block',
7059 used to return the exact code address we used to select the block,
7060 not just the block.
7061 * blockframe.c (get_frame_block, get_current_block): Same.
7062 * frame.h (get_frame_block, get_current_block,
7063 get_selected_block): Update declarations.
7064 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7065 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7066
84d2ac95
MS
70672002-04-05 Michael Snyder <[email protected]>
7068
7069 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7070 warning message.
7071
596aa3bf
JB
70722002-04-05 J. Brobecker <[email protected]>
7073
7074 * utils.c (xfullpath): New function.
7075 * defs.h (xfullpath): Add declaration.
7076 * source.c (openp): Use xfullpath in place of gdb_realpath to
7077 avoid resolving the basename part of filenames when the
7078 associated file is a symbolic link. This fixes a potential
7079 inconsistency between the filenames known to GDB and the
7080 filenames it prints in the annotations.
7081 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7082 to be able to match a filename with either the real filename, or
7083 the name of any symbolic link to this file.
7084 (lookup_partial_symtab): Ditto.
7085
c02f5703
MS
70862002-04-04 Michael Snyder <[email protected]>
7087
7088 * breakpoint.c: Add support for hardware breakpoints in overlays.
7089 (overlay_events_enabled): New state variable.
7090 (insert_breakpoints): Use overlay_events_enabled to decide
7091 whether to attempt to set a breakpoint at the overlay load addr.
7092 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7093 (remove_breakpoint): Use overlay_events_enabled to decide
7094 whether breakpoints need to be removed from overlay load addr.
7095 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7096 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7097 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7098 disable_overlay_breakpoints): Update overlay_events_enabled.
7099
5fb290d7
DJ
71002002-04-04 Daniel Jacobowitz <[email protected]>
7101
7102 * dwarf2read.c (struct function_range): New.
7103 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7104 (check_cu_functions): New.
7105 (read_file_scope): Initialize global function lists.
7106 Call dwarf_decode_line after processing children.
7107 (read_func_scope): Add to global function list.
7108 (dwarf_decode_lines): Call check_cu_functions everywhere
7109 record_line is called. Call record_line with a linenumber
7110 of 0 to mark sequence ends.
7111
7b3fabf0
ML
71122002-04-04 Michal Ludvig <[email protected]>
7113
361d1df0 7114 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7115 change sync with glibc.
7116
bce58c09
JB
71172002-04-03 Jim Blandy <[email protected]>
7118
7119 * configure.in: Call AC_C_INLINE.
7120 * configure: Regenerated.
361d1df0 7121
2fccf04a
DJ
71222002-04-01 Daniel Jacobowitz <[email protected]>
7123
7124 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7125 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7126
2d1bfe2e
MK
71272002-03-31 Mark Kettenis <[email protected]>
7128
a5941fbf
MK
7129 * NEWS: Mention gcore support on FreeBSD/i386.
7130
a90cd31d
MK
7131 * fbsd-proc.c: New file.
7132 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7133 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7134
2d1bfe2e
MK
7135 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7136 while statement.
7137
9eb6e5a1
JB
71382002-03-29 Jim Blandy <[email protected]>
7139
7140 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7141 unescaped newlines in string literals, but newer ones don't. So
7142 escape them.
7143
f02df580
MS
71442002-03-26 Michael Snyder <[email protected]>
7145 Andrew Cagney <[email protected]>
7146
361d1df0 7147 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7148 restore file to memory.
7149 * cli/cli-dump.h: New file.
7150 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7151 * NEWS: Mention new commands.
f02df580 7152
109f874e
MS
71532002-03-28 Michael Snyder <[email protected]>
7154
7155 * symfile.c (symbol_file_add): Move test for null symbols to later.
7156
520f6ade
AC
71572002-03-27 Andrew Cagney <[email protected]>
7158
7159 From veksler at il.ibm.com:
7160 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7161 the xstrduped original path.
7162 Fix PR gdb/417.
7163
d4654627
MS
71642002-03-27 Michael Snyder <[email protected]>
7165
7166 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7167 * infcmd.c (_initialize_infcmd): Ditto.
7168 * language.c (_initialize_language): Ditto.
7169 * symfile.c (_initialize_symfile): Ditto.
7170 * top.c (_init_main): Ditto.
7171 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7172
6be8bc0c
EZ
71732002-03-27 Elena Zannoni <[email protected]>
7174
7175 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7176 vector registers handling.
7177 (skip_prologue): Handle new AltiVec instructions. Fill in new
7178 fields of frame data.
7179 (frame_get_saved_regs): Fill in information for AltiVec registers.
7180
12af6855
JB
71812002-03-27 Jim Blandy <[email protected]>
7182
7183 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7184 a function; leave this macro here to invoke that function.
7185 (symbol_init_mangled_name): Declaration for that function.
7186 * symtab.c (symbol_init_mangled_name): New function.
7187
dc672865
AC
71882002-03-27 Andrew Cagney <[email protected]>
7189
7190 * valarith.c: Replace strerror with safe_strerror.
7191 * tracepoint.c: Ditto.
7192 * lin-lwp.c: Ditto.
7193 * go32-nat.c: Ditto.
7194 * inflow.c: Ditto.
7195 * gnu-nat.c: Ditto.
7196
d96429cd
AS
71972002-03-27 Andreas Schwab <[email protected]>
7198
7199 * event-top.c (command_line_handler): Remove useless if.
7200
7e336ba1
AJ
72012002-03-27 Andreas Jaeger <[email protected]>
7202
7203 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7204 comment.
7205
de220d0f
ML
72062002-03-27 Michal Ludvig <[email protected]>
7207
7208 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7209 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7210 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7211 (x86_64_linux_dr_get_status, supply_gregset),
7212 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7213 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7214 (x86_64_register_info_table): Add.
7215 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7216 (x86_64_register_raw_size, x86_64_register_virtual_type),
7217 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7218 general x86_64_register_info_table.
7219 (i386_gdbarch_init): gdbarch_register_bytes is now set
7220 dynamicaly during initialization.
7221 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7222 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7223
0e98d0a7
DJ
72242002-03-27 Daniel Jacobowitz <[email protected]>
7225
7226 * gdbserver/server.c (main): Call target_signal_to_host_p
7227 and target_signal_to_host on signals received from the remote.
7228 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7229 target_signal_from_host on signals sent to the remote.
7230 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7231 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7232
3130066b
DJ
72332002-03-27 Daniel Jacobowitz <[email protected]>
7234
7235 * signals/signals.c: Include "server.h" in gdbserver build.
7236 (target_signal_from_name): Don't use STREQ.
7237 (_initialize_signals): Likewise. Don't include function in
7238 gdbserver build.
7239
9aedf4f4
DJ
72402002-03-27 Daniel Jacobowitz <[email protected]>
7241
7242 * signals.c: Moved to...
7243 * signals/signals.c: Here.
7e336ba1 7244 * Makefile (signals.o): Update.
9aedf4f4 7245
3fa41cdb
JL
72462002-03-26 Jeff Law ([email protected])
7247
7248 * somread.c (som_symtab_read): Remove some commented out code and
7249 updated related comments. Do not set the minimal symbol table to
7250 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7251 in a dynamic executable.
7252 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7253 where we are unable to find the minimal symbol for the given
7254 PC value.
7255
ee677e8d
MS
72562002-03-25 Jeff Law ([email protected])
7257
7258 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7259
e76e1718
ML
72602002-03-25 Michal Ludvig <[email protected]>
7261
7262 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7263
18a642a1
AC
72642002-03-23 Andrew Cagney <[email protected]>
7265
7266 * command.h: Update copyright.
7267 (struct cmd_list_element): Replace definition with opaque
7268 declaration.
7269 (enum cmd_types): Document that it will eventually be moved to
7270 cli/cli-decode.h
7271 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7272 (MALLOCED_REPLACEMENT): Delete macro.
7273 * Makefile.in (cli_decode_h): Add $(command_h).
7274 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7275 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7276 * completer.c: Include "cli/cli-decode.h".
7277 * maint.c: Include "cli/cli-decode.h".
7278 * cli/cli-decode.h: Include "command.h".
7279 (enum command_class): Delete.
7280 (enum cmd_types): Comment out.
7281 (enum cmd_auto_boolean): Delete.
7282 (enum var_types): Delete.
7283
b2875cc0
AC
72842002-03-23 Andrew Cagney <[email protected]>
7285
7286 * cli/cli-decode.c: Include "gdb_assert.h".
7287 (add_set_or_show_cmd): New static function.
7288 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7289 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7290 all fields, such as func, from the set command.
7291
3b45974e
AC
72922002-03-23 Andrew Cagney <[email protected]>
7293
7294 * MAINTAINERS (sh-elf): Change warning flag to -w.
7295
823ca731
AC
72962002-03-23 Andrew Cagney <[email protected]>
7297
7298 * defs.h (error): Add printf format attribute.
7299 * thread-db.c (thread_from_lwp): Fix error format string.
7300 * stack.c (parse_frame_specification): Ditto.
7301 * cli/cli-decode.c (undef_cmd_error): Ditto.
7302 * scm-lang.c (scm_lookup_name): Ditto.
7303 * tracepoint.c (trace_error): Ditto.
7304 * remote-utils.c (usage): Ditto.
7305 * remote.c (compare_sections_command): Ditto.
7306 Fix PR gdb/328.
7307
0e101458
AC
73082002-03-22 Andrew Cagney <[email protected]>
7309
7310 * gdbtypes.c (append_composite_type_field): New function.
7311 (init_composite_type): New function.
7312 * gdbtypes.h (append_composite_type_field): Declare.
7313 (init_composite_type): Ditto.
7314
8e0662df
EZ
73152002-03-22 Elena Zannoni <[email protected]>
7316
7317 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7318 function.
8e0662df
EZ
7319 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7320 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7321 structure returning convention for SYSV ABI case, but not
7322 for GNU/Linux, FreeBSD, or NetBSD.
7323
3121eff0
DJ
73242002-03-22 Daniel Jacobowitz <[email protected]>
7325
7326 * symtab.h (lookup_block_symbol): Add mangled_name argument
7327 to prototype.
7328
7329 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7330 with new mangled_name argument.
7331 * linespec.c (decode_line_1): Likewise.
7332 * valops (value_of_this): Likewise.
7333 * symtab.c (lookup_transparent_type): Likewise.
7334 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7335 (lookup_symbol): If we are given a mangled name, pass it down
7336 to lookup_symbol_aux.
7337 (lookup_block_symbol): If we are given a mangled name to check
7338 against, only return symbols which match it.
7339
349b409f
CF
73402002-03-22 Christopher Faylor <[email protected]>
7341
7342 * win32-nat.c (child_create_inferior): Check for proper shell to use
7343 here, in case the user changes it on the fly.
7344 (_initialize_inftarg): Remove shell path considerations.
7345
2a873819
EZ
73462002-03-21 Elena Zannoni <[email protected]>
7347
7348 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7349 for gdbarch_max_register_raw_size and max_register_virtual_size.
7350 Adjust copyright year.
7351
a1b9830c
DJ
73522002-03-21 Daniel Jacobowitz <[email protected]>
7353
7354 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7355 in a function to cover the entire beginning of the function
7356 as well if it does not already.
7357
8b5790f2
TR
73582002-03-21 Tom Rix <[email protected]>
7359
7360 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7361 (rs6000_ptrace64): Renamed from ptrace64.
7362
bdbe5747
MH
73632002-03-20 Martin M. Hunt <[email protected]>
7364
7365 * gdbserver/remote-utils.c (remote_open): Don't call
7366 getprotobyname, we're all using TCP here so just use
7367 IPPROTO_TCP.
7e336ba1 7368 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7369
73702002-03-20 Martin M. Hunt <[email protected]>
7e336ba1 7371
bdbe5747
MH
7372 * regcache.c (_initialize_regcache): No need to call
7373 build_regcache() at this time; it gets called whenever
7374 the gdbarch changes.
7375
7781cd62
DB
73762002-03-20 David O'Brien <[email protected]>
7377
7378 * sparc-nat.c: Include sys/param.h where possible.
7379
f65ca430
DJ
73802002-03-20 Daniel Jacobowitz <[email protected]>
7381
7382 Fix PR gdb/422.
7383 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7384 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7385 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7386 complex types.
7387 * stabsread.c (rs6000_builtin_type): Likewise.
7388 (read_sun_floating_type): Likewise.
7389
0c867556
PS
73902002-03-19 Peter Schauer <[email protected]>
7391
7392 * stabsread.c (read_member_functions): Remove skip code for duplicate
7393 constructor/destructor methods. Use standard parsing for these
7394 methods and just do not chain them to the list of methods after
7395 parsing.
7396
12b9c64f
AO
73972002-03-19 Alexandre Oliva <[email protected]>
7398
7399 * coffread.c: Remove redundant static declarations. Replace
7400 occurrences of `PTR' with `void *'.
7401 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7402 * top.h (quit_cover): Likewise.
7403 * defs.h (catch_errors): Likewise.
7404
349c5d5f
AC
74052002-03-18 Andrew Cagney <[email protected]>
7406
7407 * defs.h (XMALLOC): Define.
7408 * gdb-events.sh (XMALLOC): Delete macro.
7409 * gdb-events.c, gdb-events.h: Regenerate.
7410 * gdbarch.sh (XMALLOC): Delete macro.
7411 * gdbarch.c: Regenerate.
7412 * serial.c (XMALLOC): Delete macro.
7413 * ui-file.c (XMALLOC): Ditto.
7414 * ser-unix.h (XMALLOC): Ditto.
7415 * sh-tdep.c (XMALLOC): Ditto.
7416 * ui-out.c (XMALLOC): Ditto.
7417 * utils.c (XMALLOC): Ditto.
7418 * i386-tdep.c (XMALLOC): Ditto.
7419 * gdb-events.c (XMALLOC): Ditto.
7420 * d10v-tdep.c (XMALLOC): Ditto.
7421 * cli-out.c (XMALLOC): Ditto.
7422
7423 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7424 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7425 * ui-file.c, ui-out.c: Ditto.
7426
7d0766f3
AC
74272002-03-18 Andrew Cagney <[email protected]>
7428
7429 * command.h (struct cmd_list_element): Add field context.
7430 (set_cmd_context, get_cmd_context): Declare.
7431 * cli/cli-decode.h: Ditto.
7432 * cli/cli-decode.c (get_cmd_context): New function.
7433 (set_cmd_context): New function.
7434 (add_cmd): Initialize context.
7435 Part of fixing PR gdb/145 and PR gdb/146.
7436
5913bcb0
AC
74372002-03-17 Andrew Cagney <[email protected]>
7438
1868c04e
AC
7439 * cli/cli-decode.c (cmd_type): New function.
7440 * command.h (cmd_type): Declare.
7441 * infrun.c (set_schedlock_func): Call function cmd_type.
7442 * kod.c (kod_set_os): Call cmd_type.
7443 * cris-tdep.c (cris_version_update): Use function cmd_type.
7444 (cris_mode_update, cris_abi_update): Ditto.
7445
5913bcb0
AC
7446 * command.h: (execute_cmd_post_hook): Declare.
7447 (execute_cmd_pre_hook): Declare.
7448 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7449 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7450 functions. Execute pre/post hook while ensuring that afterwords
7451 hook_in is cleared.
7452 * top.c (execute_command): Use execute_cmd_post_hook, and
7453 execute_cmd_pre_hook to execute pre/post commands.
7454 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7455 hook_stop_stub.
7456 (hook_stop_stub): Call execute_cmd_pre_hook.
7457
b51450c9
AC
74582002-03-17 Andrew Cagney <[email protected]>
7459
7460 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7461 set'' and this leads to a core dump. Move xstrdup of
7462 operating_system to after check that it is not NULL.
7463
f66c9f11
AC
74642002-03-17 Andrew Cagney <[email protected]>
7465
8e694ecf
AC
7466 * kod.c (kod_set_os): Remove unnecessary check that
7467 ``command->type'' is set_cmd.
7468
f66c9f11
AC
7469 * valprint.c (set_input_radix): Use input_radix.
7470 (set_output_radix): Use output_radix.
7471 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7472 isn't reverted.
7473
9d01611c
AC
74742002-03-16 Andrew Cagney <[email protected]>
7475
7476 * value.h (struct value): Delete field ``substring_addr''. Change
7477 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7478 force_core_addr_align and force_pointer_aligh.
7479
7480 * value.h (struct value): Fix typo in above change.
9d01611c 7481
4156bb53
PS
74822002-03-16 Peter Schauer <[email protected]>
7483
7484 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7485 to fix internal_error from ``maintenance print architecture''.
7486
0e5e3ea6
PS
74872002-03-16 Peter Schauer <[email protected]>
7488
7489 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7490 for gcc versions after gcc-2.8.1.
7491
9b013045
PS
74922002-03-16 Peter Schauer <[email protected]>
7493
7494 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7495 for method resolution. Restore adjustment of ``this'' pointer after
7496 calling value_struct_elt, which was accidentally removed during the
7497 HP merge.
7498
376c9600
AC
74992002-03-15 Andrew Cagney <[email protected]>
7500
7501 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7502 value_of_register.
7503 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7504 get_saved_register.
7505 * value.h (value_of_register): Update.
7506
a4db0f07
RH
75072002-03-14 Richard Henderson <[email protected]>
7508
7509 * configure.in: Detect declaration for canonicalize_file_name.
7510 * utils.c (canonicalize_file_name): Declare, if needed.
7511 (gdb_realpath): Prefer realpath if available and usable.
7512 * config.in, configure: Rebuild.
7513
96383835
RH
75142002-03-14 Richard Henderson <[email protected]>
7515
7516 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7517 a constant array bound.
7518
7519 * MAINTAINERS: Add myself to write-after-approval.
7520
75245b24
MS
75212002-03-14 Michael Snyder <[email protected]>
7522
7523 * symfile.c (syms_from_objfile): Return immediately if no syms.
7524 (symbol_file_add): Return immediately if no syms.
7525 (find_sym_fns): Return immediately if no syms.
7526
e641a1ca
ML
75272002-03-13 Michal Ludvig <[email protected]>
7528
7529 * gdbserver/remote-util.c (remote_open): Print remote-side's
7530 IP address when remote debugging over the network.
7e336ba1 7531
df08bfec
DB
75322002-03-12 David O'Brien <[email protected]>
7533
7534 * config/sparc/fbsd.mh: Fix copyright.
7535 * config/sparc/fbsd.mt: Likewise.
7536
9a57864f
RE
75372002-03-11 Richard Earnshaw <[email protected]>
7538
7539 * MAINTAINERS: Fix typo in name of gdb warnings option.
7540 (x86-64): Fix formating so that this can be parsed by awk.
7541
dd7bf85e
DJ
75422002-03-10 Daniel Jacobowitz <[email protected]>
7543
7544 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7545 * defs.h: Include "gdb/signals.h".
7546 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7547
33a0a2ac
ML
75482002-03-10 Michal Ludvig <[email protected]>
7549
7550 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7551 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7552 from x86-64-tdep.h
7553
dd824b04
DJ
75542002-03-10 Daniel Jacobowitz <[email protected]>
7555 Don Howard <[email protected]>
7556
7557 * mips-tdep.c (ST0_FR): Define.
7558 (mips2_fp_compat): New function, temporarily disabled.
7559 (mips_read_fp_register_single): New function.
7560 (mips_read_fp_register_double): New function.
7561 (mips_print_register): Use them.
7562 (do_fp_register_row): Likewise.
7563
6a41ff59
AC
75642002-03-09 Andrew Cagney <[email protected]>
7565
7566 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7567 approval''.
7568
4ea09c10
PS
75692002-03-08 Peter Schauer <[email protected]>
7570
7571 * stabsread.c (read_member_functions): Fix is_stub test for
7572 static member functions, improve comment.
7573
6ccc741d
RE
75742002-03-07 Richard Earnshaw <[email protected]>
7575
7576 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7577 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7578 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7579 commands that set boolean values.
7580 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7581 (arm_rdi_resume): Always initialize PC.
7582 (arm_rdi_open): Don't use rslt as a boolean.
7583 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7584 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7585 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7586 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7587
438013df
AO
75882002-03-06 Alexandre Oliva <[email protected]>
7589
7590 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7591 * configure: Rebuilt.
7592
70ed8774
SC
75932002-03-06 Stephane Carrez <[email protected]>
7594
7595 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7596 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7597
5ba2abeb
AC
75982002-03-06 Andrew Cagney <[email protected]>
7599
7600 * cli/cli-decode.c (set_cmd_completer): New function.
7601 * command.h (set_cmd_completer): Declare.
7602 * cli/cli-decode.h (set_cmd_completer): Ditto.
7603
7604 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7605 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7606 * win32-nat.c (_initialize_inftarg): Ditto.
7607 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7608 * proc-api.c (_initialize_proc_api): Ditto.
7609 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7610 * source.c (_initialize_source): Ditto.
7611 * exec.c (_initialize_exec): Ditto.
7612 * solib.c (_initialize_solib): Ditto.
7613 * top.c (init_main): Ditto.
7614 * tracepoint.c (_initialize_tracepoint): Ditto.
7615 * symfile.c (_initialize_symfile): Ditto.
7616 * printcmd.c (_initialize_printcmd): Ditto.
7617 * infcmd.c (_initialize_infcmd): Ditto.
7618 * corefile.c (_initialize_core): Ditto.
7619
f779ca99
AC
76202002-03-05 Andrew Cagney <[email protected]>
7621
7622 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7623
01a3934b
AC
76242002-03-05 Andrew Cagney <[email protected]>
7625
7626 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7627
37057839
AC
76282002-03-05 Andrew Cagney <[email protected]>
7629
7630 * NEWS: Update headings, 5.2 has branched.
7631
c6ecbae5
DJ
76322002-03-04 Daniel Jacobowitz <[email protected]>
7633
7634 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7635 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7636 (register_addr, REGISTER_RAW_SIZE): Likewise.
7637 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7638 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7639
e9f30c21
ML
76402002-03-03 Michal Ludvig <[email protected]>
7641
7642 * MAINTAINERS (x86-64): Add myself.
7643 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7644 changed value_ptr -> struct value *
7645
54394ac3
DB
76462002-03-01 David O'Brien <[email protected]>
7647
7648 * configure.host (sparc64-*-freebsd): Add.
7649 * configure.tgt: Likewise.
7650 * config/sparc/fbsd.mh: New file.
7651 * config/sparc/fbsd.mt: Likewise.
7652 * config/sparc/nm-fbsd.h: Likewise.
7653 * config/sparc/tm-fbsd.h: Likewise.
7654
bfe95955
DJ
76552002-03-01 Daniel Jacobowitz <[email protected]>
7656
7657 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7658 regformats/reg-s390x.dat.
7659
f33c6cbf
AC
76602002-03-01 Andrew Cagney <[email protected]>
7661
7662 * utils.c: Add FIXME explaining true/false problem.
7663
5ecaa7dd
AC
76642002-02-28 Andrew Cagney <[email protected]>
7665
7666 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7667
2a251cc2
MC
76682002-02-28 Michael Chastain <[email protected]>
7669
7670 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7671
6a8031a3 76722002-02-28 Daniel Jacobowitz <[email protected]>
265f716b
DJ
7673
7674 * gdbserver/linux-s390-low.c: New file.
7675 * regformats/reg-s390.dat: New file.
7676 * regformats/reg-s390x.dat: New file.
7677 * gdbserver/configure.srv: Add S/390.
7678 * gdbserver/Makefile.in: Add S/390.
7679 * configure.tgt: Enable gdbserver for S/390.
7680
ac469903
EZ
76812002-02-28 Eli Zaretskii <[email protected]>
7682
7683 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7684 first line of the doc string for "info dos", except at the end of
7685 the sentence, since the short help stops at the first period.
7686
985cb1a3
JM
76872002-02-28 Jason Merrill <[email protected]>
7688
7689 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7690
c570663e
FF
76912002-02-27 Fred Fish <[email protected]>
7692
7693 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7694 comment (dumy -> dummy).
7695
43630227
PS
76962002-02-27 Peter Schauer <[email protected]>
7697
7698 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7699
b84911e8
RB
77002002-02-27 Rodney Brown <[email protected]>
7701
7702 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7703
58caa3dc
DJ
77042002-02-27 Daniel Jacobowitz <[email protected]>
7705
7706 * gdbserver/acconfig.h: New file.
7707 * gdbserver/i387-fp.c: New file.
7708 * gdbserver/i387-fp.h: New file.
7709 * gdbserver/linux-x86-64.c: New file.
7710 * regformats/reg-x86-64.dat: New file.
7711 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7712 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7713 * gdbserver/configure.in: Add support for regsets.
7714 * gdbserver/config.in: Regenerate.
7715 * gdbserver/configure: Regenerate.
7716 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7717 * gdbserver/linux-low.h: New file.
7718 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7719 for regsets.
7720 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7721 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7722 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7723 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7724 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7725 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7726 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7727 "i387-fp.h". Add PTRACE_GETREGS and friends.
7728 * gdbserver/regcache.c (supply_register): New function.
7729 (supply_register_by_name): New function.
7730 (collect_register): New function.
7731 (collect_register_by_name): New function.
7732
93652174
DJ
77332002-02-27 Daniel Jacobowitz <[email protected]>
7734
7735 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7736 (config.status): Add configure.srv dependency.
7737 (server_h): Add config.h dependency.
7738
a02e4a61
DJ
77392002-02-27 Daniel Jacobowitz <[email protected]>
7740
7741 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7742 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7743 * gdbserver/configure.srv: Change i386-*-linux* to use
7744 reg-i386-linux.o.
7745
ce0eebec
AC
77462002-02-26 Andrew Cagney <[email protected]>
7747
7748 * x86-64-tdep.c: Re-indent. Update copyright date.
7749
82dbc5f7
AC
77502002-02-26 Andrew Cagney <[email protected]>
7751
7752 From Michal Ludvig <[email protected]>:
7753 * x86-64-tdep.c (value.h): Delete.
7754 (gdb_assert.h): Include.
7755 (x86_64_register_convert_to_virtual,
7756 x86_64_register_convert_to_raw ): Add check which lets only
7757 floating-point values to be converted.
7758 (value_push): Delete.
7759 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7760 (i386_gdbarch_init): Number of register_bytes fixed.
7761
e4621584
AC
77622002-02-26 Andrew Cagney <[email protected]>
7763
7764 * MAINTAINERS: Add x86-64 target.
7765
81a9a963
AC
77662002-02-26 Andrew Cagney <[email protected]>
7767
7768 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7769 * osfsolib.c (solib_map_sections): Ditto.
7770 * irix5-nat.c (solib_map_sections): Ditto.
7771 * corelow.c (gdb_check_format): Ditto.
7772 * symfile.c (symfile_bfd_open): Ditto.
7773 * solib.c (solib_map_sections): Ditto.
7774 Fix PR gdb/354.
7e336ba1 7775
0f017ab9
AC
77762002-02-26 Andrew Cagney <[email protected]>
7777
7778 * remote.c (_initialize_remote): By default, disable ``e'' and
7779 ``E'' step out-of-range packets.
7780
75738c29
AS
77812002-02-26 Andreas Schwab <[email protected]>
7782
7783 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7784 m68k_linux_frame_saved_pc.
7785 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7786 in_sigtramp.
7787 (SIGCONTEXT_PC_OFFSET): Remove.
7788 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7789 m68k_linux_sigtramp_saved_pc): New functions.
7790 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7791 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7792 (UCONTEXT_PC_OFFSET): Define.
7793 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7794 non-RT and RT signal trampolines.
7795
7e8ed687
RE
77962002-02-26 Richard Earnshaw <[email protected]>
7797
7798 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7799 (TARGET_NBPG, STACK_END_ADDR): Delete
7800 (VARIABLES_INSIDE_BLOCK): Delete.
7801
6972bc8b
AC
78022002-02-25 Andrew Cagney <[email protected]>
7803
7804 * utils.c (perror_with_name): Make string parameter constant.
7805 (print_sys_errmsg): Ditto.
7806 (query): Ditto.
7807 * defs.h (perror_with_name): Update.
7808 (print_sys_errmsg): Update.
7809 (query): Update.
7810
aa32f823
DJ
78112002-02-25 Daniel Jacobowitz <[email protected]>
7812
7813 From Eliot Dresselhaus <[email protected]>:
7814 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7815
19caaa45
PS
78162002-02-25 Peter Schauer <[email protected]>
7817
7818 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7819 if it already matches the current architecture from the exec file.
7820 Include arch-utils.h for gdbarch_info_init prototype.
7821 * Makefile.in (rs6000-nat.o): Update dependencies.
7822
d951901f
EZ
78232002-02-25 Eli Zaretskii <[email protected]>
7824
7825 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7826 list of exported variables.
7827
7ea81414
DJ
78282002-02-24 Daniel Jacobowitz <[email protected]>
7829
7830 * gdbserver/configure.srv: New file.
7831 * gdbserver/configure.in: Use configure.srv instead
7832 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7833 from it.
7834 * gdbserver/configure: Regenerated.
7835 * gdbserver/terminal.h: New file.
7836 * gdbserver/Makefile.in: Update for configure changes. Remove
7837 more unneeded include paths.
7838
080fe24b
AC
78392002-02-24 Andrew Cagney <[email protected]>
7840
7841 From wiz at danbala:
7842 * config/sparc/tm-sp64.h: Fix grammar and typos.
7843 Fix PR gdb/287.
7844
8605d56e
AC
78452002-02-24 Andrew Cagney <[email protected]>
7846
7847 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7848 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7849 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7850 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7851 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7852 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7853 * s390-tdep.c: Ditto.
92362027
AC
7854 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7855 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7856 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7857 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7858 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7859 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7860 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7861 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7862 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7863 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7864 Fix PR gdb/378.
7e336ba1 7865
8ed32cc0
AC
78662002-02-23 Andrew Cagney <[email protected]>
7867
a3007b6f
AC
7868 * lin-thread.c: Delete file.
7869 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7870 to gdb_proc_service.h.
7871 * configure: Re-generate.
7872
50a9e2f1
AC
7873 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7874 * serial.c (serial_open): Delete check for "ocd".
7875 Fix PR gdb/349.
7876
8b6e7932
AC
7877 * Makefile.in (linux-thread.o): Delete target.
7878 * linux-thread.c: Delete file.
7879
d155c46b
AC
7880 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7881 renamed SH files to be consistent.
7882
8ed32cc0
AC
7883 * symtab.c (sort_search_symbols): Use xfree.
7884
0e18d038
RE
78852002-02-23 Richard Earnshaw <[email protected]>
7886
7887 * arm-linux-tdep.c (arm_linux_init_abi): Register
7888 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7889 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7890 definition with undef, since we don't want the sysvr4 definition.
7891 (SKIP_TRAMPOLINE_CODE): Likewise.
7892
27aac7ff
AC
78932002-02-23 Andrew Cagney <[email protected]>
7894
7895 From 2002-02-22 Alfred M. Szmidt <[email protected]>:
7896
7897 * configure.in: (AC_CHECK_FUNCS) Added test for
7898 canonicalize_file_name Regenerated.
7899 * config.in, configure: Regenerated.
7900 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7901 defined use canonicalize_file_name.
7e336ba1 7902
65a6e0ee
MC
79032002-02-23 Michael Chastain <[email protected]>
7904
7905 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7906
47b95330
AC
79072002-02-23 Andrew Cagney <[email protected]>
7908
7909 * README: Remove references to cygnus.com.
7910 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7911 dot com'' form. Remove references to cygnus.com and sourceware.
7912
696f451b
AC
79132002-02-23 Andrew Cagney <[email protected]>
7914
7915 From 2002-02-19 Paul Eggert <[email protected]>:
7916 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7917 1003.1-2001 no longer allows "head -1".
7918 * gdb/Makefile.in (version.c): Likewise.
7919 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7920 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7921 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7922
bbaca940
AC
79232002-02-23 Andrew Cagney <[email protected]>
7924
7925 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7926 * command.h (cmd_cfunc_eq): Declare.
7927 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7928
7929 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7930 ``struct cmd_list_element *''.
7931 * cli/cli-cmds.c (is_complete_command): Update. Use
7932 cmd_cfunc_eq.
7933 * top.c (execute_command): Pass the command to
7934 is_complete_command.
7935 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7936
b8b8b047
AC
79372002-02-23 Andrew Cagney <[email protected]>
7938
7939 From 2002-02-20 Martin Schwidefsky <[email protected]>:
7940 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7941 architecture defines.
7942 * s390-tdep.c (s390_gdbarch_init): Likewise.
7943
19d3fc80
RE
79442002-02-23 Richard Earnshaw <[email protected]>
7945
7946 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7947 (arm_linux_push_arguments): Likewise.
7948 (arm_linux_init_abi): Register them. Also register linux-specific
7949 call_dummy_words.
7950 (find_minsym_and_objfile): Use strcmp, not STREQ.
7951 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7952 (arm_linux_call_dummy_words): Delete declaration.
7953 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7954 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7955 declarations.
7956 (LOWEST_PC): Delete.
7957
3ab13650
PS
79582002-02-23 Peter Schauer <[email protected]>
7959
7960 * maint.c (print_section_info): Do not prepend `0x' to filepos
7961 output, it will be handled by local_hex_string_custom.
7962
19d3fc80 79632002-02-23 Richard Earnshaw <[email protected]>
85ae890c
RE
7964
7965 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7966 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7967 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7968
d85a5daf
JB
79692002-02-22 Jim Blandy <[email protected]>
7970
7971 Indicate that the bcache functions don't change the strings
7972 they're passed.
7973 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7974 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7975
eeb25b8a
PM
79762002-02-22 Pierre Muller <[email protected]>
7977
7978 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7979
6badb179
CF
79802002-02-21 Christopher Faylor <[email protected]>
7981
7982 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7983 find the complete path to a loaded DLL.
7984
e8717518
FF
79852002-02-21 Fred Fish <[email protected]>
7986
7987 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7988 that marks the end of the range of a function, enter a line number
7989 entry that has a line number of zero and a PC offset that matches
7990 the end of the function. This starts a range of PC's for which no
7991 line number information is known.
7992 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7993 PC's for which no line number info is found (line number is zero)
7994 then we didn't find any valid line information.
7995 * symtab.h: Document use of zero line number entry.
7996
9abe5450
EZ
79972002-02-21 Elena Zannoni <[email protected]>
7998
7999 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8000 (have_ptrace_getvrregs): Define for run time checks.
8001 (gdb_vrregset_t): New type for Altivec register handling.
8002 (fetch_register, store_register): Fetch/store altivec register
8003 when needed.
8004 (fetch_altivec_register, store_altivec_register): New functions.
8005 (supply_vrregset, fill_vrregset): New functions.
8006 (fetch_altivec_registers, store_altivec_registers): New functions.
8007 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8008 registers as well.
8009
aaa38bb5
AJ
80102002-02-21 Jiri Smid <[email protected]>
8011
8012 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8013
b34db576
RE
80142002-02-21 Richard Earnshaw <[email protected]>
8015
8016 * Makefile.in (armnbsd-nat.o): Update dependencies.
8017 * armnbsd-nat.c (supply_gregset): New function. Common code to
8018 supply the integer register set.
8019 (supply_fparegset): New function. Similar for FPA registers.
8020 (fetch_regs, fetch_fp_regs): Use them.
8021 (fetch_core_registers): Likewise.
8022 (fetch_elfcore_registers): New function.
8023 (arm_netbsd_elfcore_fns): New core-file type specification.
8024 (_initialize_arm_netbsd_nat): Register it.
8025
3e56fc4b
RE
80262002-02-21 Richard Earnshaw <[email protected]>
8027
8028 * armnbsd-nat.c: Include gdbcore.h.
8029 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8030 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8031 'void' to declaration, to shut up ARI.
8032 (fetch_core_registers): Make static. Rewrite using supply_register.
8033 (arm_netbsd_core_fns): New core-file type specification.
8034 (_initialize_arm_netbsd_nat): New function.
8035
097f6b0b
CF
80362002-02-21 Christopher Faylor <[email protected]>
8037
8038 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8039 value.
8040
c914e0cc
CF
80412002-02-20 Christopher Faylor <[email protected]>
8042
8043 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8044 fails.
8045
385fa495
DJ
80462002-02-20 Daniel Jacobowitz <[email protected]>
8047
8048 * jv-exp.y (parse_number): Change type of implicit longs
8049 to builtin_type_uint64.
8050
e5f1222d
DJ
80512002-02-20 Daniel Jacobowitz <[email protected]>
8052
8053 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8054 to be an integer instead of a `union wait'.
8055
75c9abc6
DJ
80562002-02-20 Daniel Jacobowitz <[email protected]>
8057
8058 * mips-linux-nat.c: Call the operating system GNU/Linux.
8059 * mips-linux-tdep.c: Likewise.
8060 * mips-tdep.c: Likewise.
8061
551792a5
DJ
80622002-02-20 Daniel Jacobowitz <[email protected]>
8063
8064 Fix PR gdb/265.
8065 * jv-exp.y (parse_number): Handle 64-bit integers.
8066
ee6e2b82
DJ
80672002-02-20 Daniel Jacobowitz <[email protected]>
8068
8069 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8070 AC_STDC_HEADERS to AC_HEADER_STDC.
8071 * gdbserver/configure: Regenerated.
8072
a48442a0
RE
80732002-02-20 Richard Earnshaw <[email protected]>
8074
8075 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8076 is defined.
8077 * sparc-tdep.c (get_longjmp_target): Likewise.
8078
fe419ffc
RE
80792002-02-20 Richard Earnshaw <[email protected]>
8080
8081 * News: Add news about ARM and Multi-arch. Mention the new target
8082 arm*-*-netbsd*.
8083
5832ed7e
JB
80842002-02-19 Jim Blandy <[email protected]>
8085
8086 * stabsread.c (error_type_complaint): Improve error message.
8087
84563040
DJ
80882002-02-19 Daniel Jacobowitz <[email protected]>
8089
8090 * gdbserver/README: Update documentation.
8091 * gdbserver/configure.in: Update configury to match documentation.
8092 * gdbserver/Makefile.in: Likewise.
8093 * gdbserver/configure: Regenerated.
8094 * gdbserver/aclocal.m4: New file, generated by aclocal.
8095 * gdbserver/config.in: New file, generated by autoheader.
8096
375fd65b
RE
80972002-02-19 Richard Earnshaw <[email protected]>
8098
8099 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8100 armnbsd-nat.c.
8101
08216dd7
RE
81022002-02-19 Richard Earnshaw <[email protected]>
8103
8104 * arm-tdep.h (enum arm_float_model): New enum.
8105 (struct gdbarch_tdep): Add fp_model.
8106 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8107 up floating-point conversions until we know the floating-point model
8108 in use by the inferior. Don't complain about being unable to
8109 determine the ABI of the inferior when we don't have one.
8110 (arm_extract_return_value): Support different floating-point models.
8111 (arm_store_return_value): Likewise.
aaa38bb5 8112 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8113 ARM_FLOAT_SOFT.
8114 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8115
65d6d66a
PS
81162002-02-19 Peter Schauer <[email protected]>
8117
8118 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8119 of ``current_gdbarch''.
8120
47221191
RE
81212002-02-19 Richard Earnshaw <[email protected]>
8122
8123 * armnbsd-nat.c : ANSIfy all function declarations.
8124 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8125 (fetch_inferior_registers): Re-implement in terms of above.
8126 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8127 (store_inferior_registers): Re-implement in terms of above.
8128
fdf39c9a
RE
81292002-02-19 Richard Earnshaw <[email protected]>
8130
aaa38bb5 8131 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8132 kernel.
8133 * arm-linux-tdep.c: Likewise.
8134 * config/arm/tm-linux.h: Likewise.
8135
93247f88
RE
81362002-02-19 Richard Earnshaw <[email protected]>
8137
8138 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8139 * config/arm/nbsd.mt (TM_FILE): Delete.
8140 * config/arm/tm-nbsd.h: Delete.
8141
d7b486e7
RE
81422002-02-19 Richard Earnshaw <[email protected]>
8143
8144 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8145 Initialize CALL_DUMMY_LENGTH.
8146
41d39a95
RE
81472002-02-19 Richard Earnshaw <[email protected]>
8148
8149 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8150 function.
8151 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8152 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8153 defines one thing and that is incorrect for this port.
8154 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8155
e1195560
PM
81562002-02-18 Pierre Muller <[email protected]>
8157
8158 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8159
c1748f97
PM
81602002-02-18 Pierre Muller <[email protected]>
8161
8162 * win32-nat.c (display_selector): New function. Displays information
8163 about the information returned by GetThreadSelectorEntry API function.
8164 (display_selectors): New function. Displays the infomation of
8165 the selector given as argument, or of CS, DS ans FS selectors
8166 if no argument is given.
8167 ( _initialize_inftarg): Add "w32" as info prefix command.
8168 Add "info w32 selector" as command calling display_selectors.
8169
e41e6bbf
PM
81702002-02-19 Pierre Muller <[email protected]>
8171
8172 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8173 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8174 if not defined.
8175
0d3a9f48
RE
81762002-02-18 Richard Earnshaw <[email protected]>
8177
8178 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8179
3fb4b924
RE
81802002-02-18 Richard Earnshaw <[email protected]>
8181
8182 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8183 (arm_fix_call_dummy): Call it.
8184 (arm_call_dummy_breakpoint_offset): Delete.
8185 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8186 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8187
7f55af32
AC
81882002-02-18 Andrew Cagney <[email protected]>
8189
8190 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8191 Default to func_frame_chain_valid.
8192 * gdbarch.h, gdbarch.c: Re-generate.
8193 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8194
05f13b9c
EZ
81952002-02-18 Elena Zannoni <[email protected]>
8196
8197 * ppc-linux-nat.c: Update copyright.
8198 (fetch_register, store_register): Add tid parameter, don't compute
8199 tid here.
8200 (fetch_ppc_registers, store_ppc_registers): Add tid
8201 parameter. Pass it along to callees.
8202 (fetch_inferior_registers, store_inferior_registers): Compute tid
8203 here, and pass it to calleed functions.
8204 (fill_gregset, supply_fpregset): Clean up formatting.
8205
d7afb4c9
RE
82062002-02-18 Richard Earnshaw <[email protected]>
8207
8208 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8209 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8210
9df628e0
RE
82112002-02-18 Richard Earnshaw <[email protected]>
8212
8213 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8214 * gdbarch.c gdbarch.h: Regenerate.
8215 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8216 function.
8217 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8218 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8219 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8220
8221 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8222 * arm-tdep.c (arm_get_longjmp_target): New function.
8223 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8224 this to a positive value register arm_get_longjmp_target as the
8225 longjmp handler.
8226 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8227 (arm_linux_init_abi): Set up longjmp description in tdep.
8228 * armnbsd-nat.c (get_longjmp_target): Delete.
8229 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8230 description in tdep.
8231 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8232 (get_longjmp_target): Delete declaration.
8233 (GET_LONGJMP_TARGET): Delete.
8234 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8235 (GET_LONGJMP_TARGET): Delete.
8236
57bc8964
KB
82372002-02-17 Kevin Buettner <[email protected]>
8238
8239 From Peter Schauer <[email protected]>:
8240 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8241 of ``current_gdbarch''.
8242
83d31a92
TT
82432002-02-17 Tom Tromey <[email protected]>
8244
8245 * cli/cli-cmds.c (compare_strings): New function.
8246 (complete_command): Only print each unique item once.
8247 * completer.h (complete_line): Declare.
8248 * completer.c (complete_line): New function.
8249 (line_completion_function): Use it.
8250
17ef5d92
AC
82512002-02-16 Andrew Cagney <[email protected]>
8252
8253 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8254 * gdbarch.h, gdbarch.c: Re-generate.
8255
491b8946
DJ
82562002-02-16 Daniel Jacobowitz <[email protected]>
8257
8258 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8259
82602002-02-16 Daniel Jacobowitz <[email protected]>
8261
8262 From Peter Schauer <[email protected]>:
8263 * valops.c (value_arg_coerce): Don't take the address of a reference
8264 to convert an argument to a reference.
8265
dfe7f3ac
CF
82662002-02-15 Christopher Faylor <[email protected]>
8267
8268 * win32-nat.c (get_image_name): New function.
8269 (handle_load_dll): Use get_image_name function.
8270 (get_child_debug_event): Avoid registering debug events until possibly
8271 execed process is started.
8272 (child_create_inferior): Allow invocation via shell so that command
8273 line redirection, etc. works ok.
8274 (_initialize_inftarg): Add new command: "set shell" to control whether
8275 a shell is used to start a process.
8276
1d33e73a
DJ
82772002-02-15 Daniel Jacobowitz <[email protected]>
8278
8279 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8280 instead of find_register_by_number.
8281 (cannot_store_register): Likewise.
8282
48cd0caa
PM
82832002-02-14 Pierre Muller <[email protected]>
8284
aaa38bb5 8285 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8286 fprintf_unfiltered (gdb_stderr, ...).
8287
8656e7d8
DJ
82882002-02-15 Daniel Jacobowitz <[email protected]>
8289
8290 * gdbserver/gdbserver.1: Document --attach.
8291
66e810cd
RE
82922002-02-15 Richard Earnshaw <[email protected]>
8293
8294 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8295 descriptions.
8296 * arm-tdep.c (arm_default_arm_le_breakpoint)
8297 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8298 (arm_default_thumb_be_breakpoint): New. Initialize them from
8299 traditional breakpoint defines.
8300 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8301 (arm_gdbarch_init): Initialize new breakpoint variables.
8302 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8303 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8304 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8305 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8306 code out to ...
8307 (arm_netbsd_init_abi_common): ... here; new function.
8308 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8309 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8310 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8311 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8312
97e03143
RE
83132002-02-15 Richard Earnshaw <[email protected]>
8314
8315 * arm-tdep.h (enum arm_abi): New enum.
8316 (struct gdbarch_tdep): New structure.
8317 (LOWEST_PC): Provide a default.
8318 (arm_gdbarch_register_os_abi): Declare new function.
8319 * arm-tdep.c (arm_abi_names): New array.
8320 (process_note_abi_tag_sections): New function.
8321 (get_elfosabi): New function.
8322 (arm_gdbarch_register_os_abi): New function.
8323 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8324 support for that ABI has been built in, then call the appropriate
8325 configuration routine. Use gdbarch_num_regs() to get the number
8326 of registers.
8327 (arm_dump_tdep): New function.
8328 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8329 place-holder functions.
8330 (_initialize_arm_tdep): Register them.
8331 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8332
8333 * armnbsd-tdep.c: New file.
8334 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8335 * config/arm/nbsd.mt (TDEPFILES): Add it.
8336 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8337
8338 * armnbsd-nat.c: Include regcache.h.
8339 * Makefile.in (armnbsd-nat.o): Update dependency list.
8340
8341 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8342
ad68be46
DJ
83432002-02-14 Daniel Jacobowitz <[email protected]>
8344
8345 * gdbserver/Makefile.in: Fix typos in target rules.
8346
003d6d1d
DJ
83472002-02-14 Daniel Jacobowitz <[email protected]>
8348
aaa38bb5 8349 Fix part of PR gdb/267.
003d6d1d
DJ
8350 * linespec.c (find_methods): Handle constructors specially for now.
8351
6b230f1b
CV
83522002-02-14 Corinna Vinschen <[email protected]>
8353
8354 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8355 handling.
8356 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8357 standard_coerce_float_to_double().
8358
1ea98d12
CF
83592002-02-14 Christopher Faylor <[email protected]>
8360
8361 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8362 GDBINIT_FILENAME.
8363
dd47e6fd
EZ
83642002-02-14 Elena Zannoni <[email protected]>
8365
8366 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8367 find_variant_by_name, because it confuses the multiarch
8368 framework. Return NULL if there isn't an architecture with the
8369 user supplied name, instead of forcing a different one without
8370 recording the change with the multiarch machinery.
8371 (find_variant_by_name): Delete.
8372
d7e39b9e
PS
83732002-02-14 Peter Schauer <[email protected]>
8374
8375 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8376 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8377
76e42a4f
MH
83782002-02-13 Martin M. Hunt <[email protected]>
8379
aaa38bb5 8380 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8381 print_frame_info_listing_hook, set current_source_symtab.
8382
0a30fbc4
DJ
83832002-02-14 Daniel Jacobowitz <[email protected]>
8384
8385 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8386 and remove unused $(INCLUDE_DIR).
8387 Add regcache.c to OBS.
8388 Add generated register protocol files to clean target.
8389 Update dependencies for new objects, obsolete old target code.
8390
8391 * gdbserver/linux-low.c: Remove all platform-specific code to
8392 new files. Remove various dead code. Update to use regcache
8393 functionality.
8394 * gdbserver/remote-utils.c (fromhex): Add return statement
8395 to quiet warning.
8396 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8397 constant.
8398 (input_interrupt): Add integer parameter to match prototype
8399 of a signal handler.
8400 (outreg): Use register_data ().
8401 (prepare_resume_reply): Use gdbserver_expedite_regs.
8402 * gdbserver/server.c (main): Dynamically allocate own_buf because
8403 PBUFSIZ is no longer constant. Use registers_to_string () and
8404 registers_from_string ().
8405 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8406 for error (), fatal (), and warning (). Update definition of
8407 PBUFSIZ to use regcache functionality. Add include guard.
8408 * gdbserver/utils.c (fatal): Add missing ``const''.
8409 (warning): New function.
8410
8411 * regformats/regdat.sh: Include "regcache.h" in generated files.
8412 Provide init_registers () function.
8413 * regformats/regdef.h: Add prototype for set_register_cache ().
8414 Add include guard.
8415
8416 * gdbserver/linux-arm-low.c: New file.
8417 * gdbserver/linux-i386-low.c: New file.
8418 * gdbserver/linux-ia64-low.c: New file.
8419 * gdbserver/linux-m68k-low.c: New file.
8420 * gdbserver/linux-mips-low.c: New file.
8421 * gdbserver/linux-ppc-low.c: New file.
8422 * gdbserver/linux-sh-low.c: New file.
8423
8424 * gdbserver/regcache.c: New file.
8425 * gdbserver/regcache.h: New file.
8426
8427 * gdbserver/low-linux.c: Removed obsolete file.
8428
4cc841d0
DJ
84292002-02-14 Daniel Jacobowitz <[email protected]>
8430
8431 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8432 * config/i386/linux.mt: Likewise.
8433 * config/ia64/linux.mt: Likewise.
8434 * config/m68k/linux.mh: Likewise.
8435 * config/powerpc/linux.mh: Likewise.
8436 * config/mips/linux.mt: Likewise.
8437
8438 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8439
8440 * config/i386/i386lynx.mh: Mark gdbserver variables
8441 as (currently) obsolete for this target.
8442 * config/i386/nbsd.mt: Likewise.
8443 * config/i386/nbsdelf.mt: Likewise.
8444 * config/m32r/m32r.mt: Likewise.
8445 * config/m68k/m68klynx.mh: Likewise.
8446 * config/m68k/nbsd.mt: Likewise.
8447 * config/m68k/sun3os4.mh: Likewise.
8448 * config/mips/vr5000.mt: Likewise.
8449 * config/ns32k/nbsd.mt: Likewise.
8450 * config/pa/hppabsd.mh: Likewise.
8451 * config/pa/hppaosf.mh: Likewise.
8452 * config/powerpc/nbsd.mt: Likewise.
8453 * config/rs6000/rs6000lynx.mh: Likewise.
8454 * config/s390/s390.mt: Likewise.
8455 * config/s390/s390x.mt: Likewise.
8456 * config/sparc/sparclynx.mh: Likewise.
8457 * config/sparc/sun4os4.mh: Likewise.
8458 * config/i386/x86-64linux.mt: Likewise.
8459 * config/sparc/linux.mh: Likewise.
8460
a85f51e7
DJ
84612002-02-14 Daniel Jacobowitz <[email protected]>
8462
8463 * configure.tgt: Configure gdbserver only for known working
8464 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8465 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8466 SUBDIRS if it is configured. Update comment for ${nativefile}.
8467 * configure: Regenerated.
8468
65554fef
MS
84692002-02-13 Michael Snyder <[email protected]>
8470
670a52db
MS
8471 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8472
6dbdc4a3
MS
8473 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8474 (default_gcore_mach): Just return 0, work around a problem in bfd.
8475 (default_gcore_target): OK to return NULL if exec_bfd is null.
8476 (make_mem_sec): Use a cast, avoid a warning.
8477
8478 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8479 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8480 sizeof (host pointer) != sizeof (target pointer)).
8481 (procfs_make_note_section): Avoid overflow in psargs string.
8482
aaa38bb5 8483 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8484 implementation return an error.
8485
84862002-02-13 Rodney Brown <[email protected]>
8487
8488 * procfs.c (procfs_make_note_section): Provide a default definition
8489 (for alpha-dec-osf4.0f). Fix typos.
8490
1e4d76e7
EZ
84912002-02-13 Elena Zannoni <[email protected]>
8492
8493 * linux-proc.c: Add include of regcache.h.
8494 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8495
b6d1a1d5
AC
84962002-02-13 Andrew Cagney <[email protected]>
8497
8498 From 2002-01-18 Greg McGary <[email protected]>:
aaa38bb5
AJ
8499 * memattr.c (create_mem_region): Disallow useless empty region.
8500 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8501 non-overlapping.
b6d1a1d5 8502
6c6ea35e
MC
85032002-02-13 Michael Chastain <[email protected]>
8504
8505 * defs.h: Kill CONST_PTR.
8506 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8507 * c-lang.c (c_builtin_types): Likewise.
8508 * ch-lang.c (ch_builtin_types): Likewise.
8509 * f-lang.c (f_builtin_types): Likewise.
8510 * language.c (unknown_builtin_types): Likewise.
8511 * m2-lang.c (m2_builtin_types): Likewise.
8512 * p-lang.c (pascal_builtin_types): Likewise.
8513 * scm-lang.c (c_builtin_types): Likewise.
8514
3e0b0f48
KS
85152002-02-13 Keith Seitz <[email protected]>
8516
8517 * arm-tdep.h (arm_get_next_pc): Add declaration.
8518
67255d04
RE
85192002-02-13 Richard Earnshaw <[email protected]>
8520
8521 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8522 with other related struct-returning functions.
8523 (arm_extract_struct_value_address): New function.
8524 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8525 initialize float_format, double_format and long_double_format as
8526 appropriate to the endianness of the target.
8527 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8528 (arm_use_struct_convention): Delete declaration.
8529 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8530
079777f6
KS
85312002-02-13 Keith Seitz <[email protected]>
8532
8533 * defs.h (core_addr_to_string_nz): New function.
8534
34588f23
MK
85352002-02-13 Mark Kettenis <[email protected]>
8536
8537 Apply missing bits of 2002-01-15 patch.
8538 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8539 (fill_fpregset): Use i387_fill_fsave.
8540
49b563f9
KS
85412002-02-12 Keith Seitz <[email protected]>
8542
49b563f9
KS
8543 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8544 (core_addr_to_string_nz): New function.
8545
aeb98c60
RE
85462002-02-11 Richard Earnshaw <[email protected]>
8547
8548 * arm-linux-nat.c: Really include arm-tdep.h.
8549 * config/arm/tm-linux.h (struct type, struct value): Declare.
8550
65554fef
MS
85512002-02-11 Michael Snyder <[email protected]>
8552
8553 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8554 (gcore section): Ifdef for Solaris and Unixware only.
8555 (procfs_do_thread_registers): Unixware needs one lwpstatus
8556 per thread (not one prstatus or pstatus).
8557 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8558 not over all gdb threads. For unixware, call elfcore_write_pstatus
8559 once before iterating over threads.
8560
34e8f22d
RE
85612002-02-11 Richard Earnshaw <[email protected]>
8562
8563 * arm-tdep.h: New file.
8564 * arm-tdep.c: Include arm-tdep.h.
8565 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8566 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8567 (arm_print_float_info, arm_register_type, convert_to_extended)
8568 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8569 (arm_extract_return_value, arm_register_name): Make static.
8570 (arm_software_single_step): Similarly. Fix types in declaration.
8571 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8572 (arm_store_return_value, arm_store_struct_return): New functions.
8573 (arm_gdbarch_init): Register the above functions. Also register
8574 call_dummy_start_offset, sizeof_call_dummy_words,
8575 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8576 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8577 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8578 prologue_cache.saved_regs here, rather than ...
8579 (_initialize_arm_tdep): ... here.
8580 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8581 declarations.
8582 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8583 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8584 (arm_print_float_info, arm_register_type, convert_to_extended)
8585 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8586 (arm_extract_return_value, arm_register_name): Delete declarations.
8587 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8588 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8589 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8590 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8591 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8592 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8593 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8594 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8595 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8596 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8597 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8598 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8599 interface.
8600 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8601 * remote-rdi.c remote-rdp.c: Likewise.
8602 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8603 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8604 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8605 definition.
8606
8607 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8608 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8609 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8610 from non-ARM_ prefixed definitions.
8611 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8612 all uses of above.
8613 * remote-rdi.c remote-rdp.c: Likewise.
8614 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8615
148754e5
RE
86162002-02-11 Richard Earnshaw <[email protected]>
8617
8618 * arm-tdep.c (arm_frameless_function_invocation)
8619 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8620 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8621 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8622 (arm_pop_frame, arm_get_next_pc): Make static.
8623 (arm_gdbarch_init): Register above in gdbarch structure.
8624 (arm_read_fp): Renamed from arm_target_read_fp.
8625 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8626 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8627 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8628 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8629 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8630 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8631 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8632 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8633 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8634 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8635 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8636
434d2d4f
DJ
86372002-02-10 Daniel Jacobowitz <[email protected]>
8638
8639 * symtab.c (compare_search_syms): New function.
8640 (sort_search_symbols): New function.
8641 (search_symbols): Sort symbols after searching rather than
8642 before.
8643
55241689
AC
86442002-02-10 Andrew Cagney <[email protected]>
8645
8646 * NEWS: Linux -> GNU/Linux.
8647
028c194b
AC
86482002-02-10 Andrew Cagney <[email protected]>
8649
8650 * gdbarch.sh: For for level one methods, disallow a definition
8651 when partially multi-arched. Add comments explaining rationale.
8652 * gdbarch.h: Re-generate.
8653
6acf50cd
AC
86542002-02-10 Andrew Cagney <[email protected]>
8655
8656 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8657 multi-arch partial.
aaa38bb5 8658
50248794
AC
86592002-02-10 Andrew Cagney <[email protected]>
8660
8661 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8662 field. Use diff -u.
8663 * gdbarch.c: Re-generate.
8664
c30e0066
AC
86652002-02-10 Andrew Cagney <[email protected]>
8666
9b56c5f3 8667 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8668 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8669 partial.
8670
6e6d6484
AC
86712002-02-10 Andrew Cagney <[email protected]>
8672
8673 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8674 multi-arch partial.
8675 (PUSH_ARGUMENTS): Switch to using predefault.
8676 * gdbarch.c: Regenerate.
8677
c203844d
AC
86782002-02-10 Andrew Cagney <[email protected]>
8679
8680 * valops.c (PUSH_ARGUMENTS): Delete definition.
8681 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8682 partial. Default to default_push_arguments.
8683 * gdbarch.h, gdbarch.c: Regenerate.
8684
b5a2688f
AC
86852002-02-09 Andrew Cagney <[email protected]>
8686
8687 * defs.h (throw_exception): Rename return_to_top_level. Update
8688 comments.
8689 * utils.c (error_stream, internal_verror, quit): Ditto.
8690 * top.c (throw_exception, catcher): Ditto.
8691 * sparclet-rom.c (sparclet_load): Ditto.
8692 * remote.c (interrupt_query, minitelnet): Ditto.
8693 * remote-sds.c (interrupt_query): Ditto.
8694 * remote-mips.c (mips_error, mips_kill): Ditto.
8695 * ocd.c (interrupt_query): Ditto.
8696 * monitor.c (monitor_interrupt_query): Ditto.
8697 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8698 * target.h: Update comment.
aaa38bb5 8699
b5a2688f 8700 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8701
2fa5c1e0
AC
87022002-02-09 Andrew Cagney <[email protected]>
8703
8704 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8705 default_double_format.
8706 * gdbarch.h, gdbarch.c: Re-generate.
8707 * findvar.c (floatformat_unknown): Delete variable definition.
8708 * doublest.h (floatformat_unknown): Delete variable declaration.
8709
da966255
JB
87102002-02-09 Jim Blandy <[email protected]>
8711
8712 * stabsread.c (read_type): Add code to parse Sun's syntax for
8713 prototyped function types.
8714
123a4891
AC
87152002-02-09 Andrew Cagney <[email protected]>
8716
8717 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8718 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8719
fb39c8f3
PS
87202002-02-09 Peter Schauer <[email protected]>
8721
8722 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8723 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8724 now _initialize_xcoffsolib gets called again and overrides the
8725 commands from solib.c in a native configuration.
8726
0b87a11d
MK
87272002-02-09 Mark Kettenis <[email protected]>
8728
8729 * doublest.c (store_typed_floating): Don't try to return a value.
8730 Fixes PR gdb/290.
8731
bdc2fc72
JB
87322002-02-08 Jim Blandy <[email protected]>
8733
8734 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8735 is prototyped and has no arguments, print its argument list as
8736 `(void)'.
8737
da69bbcf
CD
87382002-02-08 Chris Demetriou <[email protected]>
8739
8740 * MAINTAINERS (write-after-approval): Add myself.
8741 (paper-trail): I've escaped!
aaa38bb5 8742
b69571f5
CF
87432002-02-08 Christopher Faylor <[email protected]>
8744
8745 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8746 changes.
8747 (_initialize_check_for_gdb_ini): Ditto.
8748
f6871398
MH
87492002-02-08 Martin M. Hunt <[email protected]>
8750
8751 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8752 xaprintf -> xasprintf.
8753
4e52d31c
PM
87542002-02-08 Pierre Muller <[email protected]>
8755
8756 * win32-nat.c: Remove use of printf and sprintf functions.
8757
39bbf761
RE
87582002-02-08 Richard Earnshaw <[email protected]>
8759
8760 * arm-tdep.c (arm_frame_chain_valid): Make static.
8761 (arm_push_arguments): Likewise.
8762 (arm_gdbarch_init): New function.
8763 (_initialize_arm_tdep): Call it.
8764 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8765 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8766 (FRAME_CHAIN_VALID): Delete.
8767 (arm_frame_chain_valid): Delete declaration.
8768 (PUSH_ARGUMENTS): Delete.
8769 (arm_push_arguments): Delete declaration.
8770 (CALL_DUMMY_P): Delete.
8771
9c9532c9
CV
87722002-02-08 Andrew Cagney <[email protected]>
8773 Corinna Vinschen <[email protected]>
8774
8775 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8776 on builtin float types.
8777
4e8f7a8b
DJ
87782002-02-08 Daniel Jacobowitz <[email protected]>
8779
8780 * utils.c: Include <curses.h> before "bfd.h".
8781 * tui/tui-hooks.c: Likewise.
8782 * tui/tui.c: Likewise.
8783 * tui/tuiCommand.c: Likewise.
8784 * tui/tuiData.c: Likewise.
8785 * tui/tuiDataWin.c: Likewise.
8786 * tui/tuiDisassem.c: Likewise.
8787 * tui/tuiGeneralWin.c: Likewise.
8788 * tui/tuiIO.c: Likewise.
8789 * tui/tuiLayout.c: Likewise.
8790 * tui/tuiRegs.c: Likewise.
8791 * tui/tuiSource.c: Likewise.
8792 * tui/tuiSourceWin.c: Likewise.
8793 * tui/tuiStack.c: Likewise.
8794 * tui/tuiWin.c: Likewise.
8795
cd4bffcf
EZ
87962002-02-07 Elena Zannoni <[email protected]>
8797
8798 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8799 to include space for pseudoregs as well. Update loops accordingly.
8800 (sh_fp_frame_init_saved_regs): Ditto.
8801 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8802
26806ce2
AC
88032002-02-07 Andrew Cagney <[email protected]>
8804
8805 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8806 Add Richard Earnshaw to Arm maintainers.
8807
97fdab62
AC
88082002-02-07 Andrew Cagney <[email protected]>
8809
a6b98203
AC
8810 * defs.h (warning_begin): Delete declaration.
8811
97fdab62
AC
8812 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8813 Delete macro.
8814
78b29b40
MS
88152002-02-07 Michael Snyder <[email protected]>
8816
aaa38bb5 8817 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8818 Logic bug, remove misplaced else.
8819
d8849953
KD
88202002-02-07 Klee Dienes <[email protected]>
8821
8822 * fork-inferior.c (fork_inferior): Add '!' to the list of
8823 characters that need to be quoted when building a string for the
8824 shell. Quote '!' specifically with a backslash, since CSH chokes
8825 when trying to evaluate "str!str".
aaa38bb5 8826
095778a0
NC
88272002-02-06 Nick Clifton <[email protected]>
8828
8829 * rdi-share/host.h: Only provide a typedef for bool if it is not
8830 defined.
8831
1900040c
MS
88322002-02-04 Michael Snyder <[email protected]>
8833
8834 * breakpoint.h (enum bptype): Add new overlay event bp type.
8835 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8836
1900040c
MS
8837 * breakpoint.c (create_internal_breakpoint): New function.
8838 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8839 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8840 (create_thread_event_breakpoint): Ditto.
8841 (create_solib_event_breakpoint): Ditto.
8842 (create_overlay_event_breakpoint): New function.
8843 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8844 (update_breakpoints_after_exec): Delete and re-initialize
8845 overlay event breakpoints after an exec. Add FIXME comment
8846 about longjmp breakpoint.
8847 (print_it_typical): Ignore overlay event breakpoints.
8848 (print_one_breakpoint): Ditto.
8849 (mention): Ditto.
8850 (bpstat_what): Do not stop for overlay event breakpoints.
8851 (delete_breakpoint): Don't delete overlay event breakpoints.
8852 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8853 (breakpoint_re_set): Re-create overlay event breakpoint.
8854
8855 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8856 (overlay_manual_command): Disable overlay breakpoints.
8857 (overlay_off_command): Disable overlay breakpoints.
8858
082fc60d
RE
88592002-02-06 Richard Earnshaw <[email protected]>
8860
8861 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8862 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8863 to here from config/tm-arm.h.
8864 (coff_sym_is_thumb): Make static.
8865 (arm_elf_make_msymbol_special): New function.
8866 (arm_coff_make_msymbol_special): New function.
8867 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8868 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8869 (coff_sym_is_thumb): Delete declaration.
8870 (arm_elf_make_msymbol_special): Declare.
8871 (arm_coff_make_msymbol_special): Declare.
8872 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8873 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8874
039c5766
RE
88752002-02-06 Richard Earnshaw <[email protected]>
8876
8877 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8878
88792002-02-06 Richard Earnshaw <[email protected]>
8880
8881 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8882 * gdbarch.c gdbarch.h: Regenerate.
8883 * arch-utils.c (default_print_float_info): New function.
8884 * arch-utils.h (default_print_float_info): Prototype it.
8885 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8886 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8887 (PRINT_FLOAT_INFO): Document it.
8888
8889 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8890 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8891 (PRINT_FLOAT_INFO): Define.
8892
58fa08f0
PM
88932002-02-06 Pierre Muller <[email protected]>
8894
aaa38bb5 8895 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8896 Add typecast to sprintf argument to suppress a warning.
8897
7393af7c
PM
88982002-02-05 Pierre Muller <[email protected]>
8899
58fa08f0 8900 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8901 to allow easier handling of pass state.
8902 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8903 that gives exception name and address.
8904 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8905 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8906 exceptions added.
aaa38bb5
AJ
8907 (child_continue): Correctly report continue_status.
8908 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8909 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8910 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8911 the exception should be passed to debuggee or not.
8912
6af4589c
MS
89132002-02-05 Michael Snyder <[email protected]>
8914
8915 * regcache.c (fetch_register): Call target_fetch_register
8916 only if we don't call FETCH_PSEUDO_REGISTER.
8917 (store_register): Call target_store_register only if we
8918 don't call STORE_PSEUDO_REGISTER.
8919
a2cf933a
EZ
89202002-02-05 Elena Zannoni <[email protected]>
8921
8922 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8923 ELF_MAKE_MSYMBOL_SPECIAL.
8924 * gdbarch.c, gdbarch.h: Regenerate.
8925 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8926 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8927 * elfread.c (elf_symtab_read): Compile use of
8928 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8929 multiarched.
8930 * coffread.c (coff_symtab_read): Ditto, for
8931 COFF_MAKE_MSYMBOL_SPECIAL.
8932
6bb7be43
JB
89332002-02-05 Jim Blandy <[email protected]>
8934
8935 * solib-svr4.c (svr4_truncate_ptr): New function.
8936 (svr4_relocate_section_addresses): Do the address arithmetic with
8937 the appropriate truncation for target addresses, even when
8938 CORE_ADDR is larger than a target address.
8939
e18651ec
DJ
89402002-02-05 Daniel Jacobowitz <[email protected]>
8941
8942 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8943 to (int *).
8944
6b2725be
DJ
89452002-02-05 Daniel Jacobowitz <[email protected]>
8946
8947 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8948 code.
8949
fca9e603
DJ
89502002-02-05 Daniel Jacobowitz <[email protected]>
8951
8952 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8953
6c537a52
DJ
89542002-02-05 Daniel Jacobowitz <[email protected]>
8955
8956 * gdbserver/linux-low.c: Remove unused include files.
8957
d844cde6
DJ
89582002-02-05 Daniel Jacobowitz <[email protected]>
8959
8960 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8961 (read_inferior_memory): Use it.
8962 (write_inferior_memory): Likewise.
8963
d07c63e7
DJ
89642002-02-05 Daniel Jacobowitz <[email protected]>
8965
8966 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8967 grubbing through sys_errlist.
8968
da6d8c04
DJ
89692002-02-05 Daniel Jacobowitz <[email protected]>
8970
8971 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8972
5b421780
PM
89732002-02-04 Pierre Muller <[email protected]>
8974 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8975
9f60d481
AC
89762002-02-04 Andrew Cagney <[email protected]>
8977
8978 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8979 (do_sfunc, set_cmd_sfunc): New functions.
8980
8981 * command.h (struct cmd_list_element): Add field func.
8982 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8983 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8984 * cli/cli-decode.h: Ditto.
8985
8986 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8987 (help_all, help_cmd_list): Ditto.
8988 (find_cmd, complete_on_cmdlist): Ditto.
8989 * top.c (execute_command): Ditto.
8990
8991 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8992 function.sfunc.
8993
8994 * infcmd.c (notice_args_read): Fix function signature.
8995
8996 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8997 * cli/cli-decode.c (add_set_cmd): Ditto.
8998 * utils.c (initialize_utils): Ditto.
8999 * maint.c (_initialize_maint_cmds): Ditto.
9000 * infrun.c (_initialize_infrun): Ditto.
9001 * demangle.c (_initialize_demangler): Ditto.
9002 * remote.c (add_packet_config_cmd): Ditto.
9003 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9004 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9005 * proc-api.c (_initialize_proc_api): Ditto.
9006 * kod.c (_initialize_kod): Ditto.
9007 * valprint.c (_initialize_valprint): Ditto.
9008 * top.c (init_main): Ditto.
9009 * infcmd.c (_initialize_infcmd): Ditto.
9010 * corefile.c (_initialize_core): Ditto.
9011 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9012 * arch-utils.c (initialize_current_architecture): Ditto.
9013 (_initialize_gdbarch_utils): Ditto.
9014 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9015
9016 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9017 * wince.c (_initialize_inftarg): Ditto.
9018 * symfile.c (_initialize_symfile): Ditto.
9019 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9020 * language.c (_initialize_language): Ditto.
9021 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9022
f9ba0717
MS
90232002-02-04 Michael Snyder <[email protected]>
9024
9025 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9026
0c74b2a7
DJ
90272002-02-04 Daniel Jacobowitz <[email protected]>
9028
9029 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9030 Add rules for building the register data files.
9031
c638789f
DJ
90322002-02-04 Daniel Jacobowitz <[email protected]>
9033
9034 * regformats/regdat.sh: Add braces to the definition of
9035 expedite_regs_${arch}.
9036
db253027
DJ
90372002-02-04 Daniel Jacobowitz <[email protected]>
9038
9039 * regformats/regdef.h (struct reg): Add comment describing the
9040 requirements for offset and size fields.
9041
206be19c
AS
90422002-02-04 Andreas Schwab <[email protected]>
9043
9044 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9045 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9046
181c1381
RE
90472002-02-04 Richard Earnshaw <[email protected]>
9048
9049 * gdbarch.sh (copyright): Update years in generated header.
9050 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9051 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9052 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9053 * dbxread.c: Likewise.
9054 * dwarfread.c: Likewise.
9055 * elfread.c: Likewise.
9056 * somread.c: Likewise.
9057
9058 * arm-tdep.c (arm_smash_text_address): New function.
9059 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9060
fa4ba8da
PM
90612002-02-04 Pierre Muller <[email protected]>
9062
9063 Add support for hardware watchpoints on win32 native.
aaa38bb5 9064 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9065 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9066 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9067 of debug registers.
9068 (debug_registers_changed): New variable. Reflects when debug registers
9069 are changed and need to be written to inferior.
aaa38bb5 9070 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9071 was set, used when new threads are created.
9072 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9073 i386-nat code.
9074 (thread_rec): Set dr array if id is the thread of current_event .
9075 (child_continue, child_resume): Change the debug registers for all
9076 threads if debug_registers_changed.
9077 (child_add_thread): Change the debug registers if debug_registers_used.
9078 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9079 Link nm.h to new nm-cygwin.h file.
9080 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9081 of hardware registers.
9082
a73c86fb
AC
90832002-02-03 Andrew Cagney <[email protected]>
9084
9085 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9086 Restore behavour broken by 2002-01-20 Andrew Cagney
9087 <[email protected]> IEEE_FLOAT removal.
9088
acf5ed49
DJ
90892002-02-03 Daniel Jacobowitz <[email protected]>
9090
9091 * c-valprint.c (c_val_print): Pass a proper valaddr to
9092 cp_print_class_method.
9093 * valops.c (search_struct_method): If there is only one method
9094 and args is NULL, return that method.
9095
493d28d5
DJ
90962002-02-03 Daniel Jacobowitz <[email protected]>
9097
9098 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9099 accessing tag_name directly.
9100
7495dfdb
DJ
91012002-02-03 Daniel Jacobowitz <[email protected]>
9102
9103 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9104 of accessing tag_name directly.
9105
dd6bda65
DJ
91062002-02-03 Daniel Jacobowitz <[email protected]>
9107
9108 PR gdb/280
9109 * gdbtypes.c (replace_type): New function.
9110 * gdbtypes.h (replace_type): Add prototype.
9111 * stabsread.c (read_type): Use replace_type.
9112
88fe217c
RE
91132002-02-03 Richard Earnshaw <[email protected]>
9114
9115 * Makefile.in (memattr.o): Add missing dependencies rule.
9116
e5d66720
PS
91172002-02-03 Peter Schauer <[email protected]>
9118
9119 * breakpoint.c (break_at_finish_command): Really export.
9120 (break_at_finish_at_depth_command): Ditto.
9121 (tbreak_at_finish_command): Ditto.
9122 * hppa-tdep.c: Include completer.h.
9123 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9124 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9125
fffee0be
AC
91262002-02-01 Andrew Cagney <[email protected]>
9127
9128 * utils.c (do_write): New function.
9129 (error_stream): Rewrite combining the code from error_begin and
9130 verror.
9131 (verror): Rewrite using error_stream.
9132 (error_begin): Delete function.
9133
255e7dbf
AC
91342002-02-01 Andrew Cagney <[email protected]>
9135
9136 * utils.c (error_begin): Make static.
9137 * defs.h (error_begin): Delete declaration.
9138
9139 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9140 (decode_line_1): Use cplusplus_error instead of error_begin,
9141 cplusplus_hint and return_to_top_level.
9142 * coffread.c (coff_symfile_read): Use error instead of error_begin
9143 and return_to_top_level.
9144 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9145
ddfe3c15
AC
91462002-02-01 Andrew Cagney <[email protected]>
9147
9148 * language.h (type_error, range_error): Make string parameter
9149 constant.
9150 * language.c (warning_pre_print): Delete extern declaration.
9151 * dwarfread.c (warning_pre_print): Ditto.
9152 * language.c (type_error, range_error): Rewrite to use verror and
9153 vwarning instead of warning_begin.
9154
03ac34d5
MS
91552002-02-01 Michael Snyder <[email protected]>
9156
261c4ca2
MS
9157 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9158 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9159
e00d1dc8
AC
91602002-02-01 Andrew Cagney <[email protected]>
9161
9162 * command.h (NO_FUNCTION): Delete macro.
9163 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9164 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9165 * tracepoint.c (_initialize_tracepoint): Ditto.
9166 * cli/cli-decode.c (add_set_cmd): Ditto.
9167 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9168
76b79d6e
DJ
91692002-02-01 Daniel Jacobowitz <[email protected]>
9170
9171 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9172 Update ``this'' pointer when calling virtual functions.
9173
799f9e91
MS
91742002-02-01 Michael Snyder <[email protected]>
9175
c7bd442c 9176 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9177 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9178
3cf384d4
DJ
91792002-02-01 Daniel Jacobowitz <[email protected]>
9180
9181 * regformats/reg-arm.dat: New file.
9182 * regformats/reg-i386.dat: New file.
9183 * regformats/reg-ia64.dat: New file.
9184 * regformats/reg-m68k.dat: New file.
9185 * regformats/reg-mips.dat: New file.
9186 * regformats/reg-ppc.dat: New file.
9187 * regformats/reg-sh.dat: New file.
9188 * regformats/regdef.h: New file.
9189 * regformats/regdat.sh: New file.
9190
0defa245
RE
91912002-02-01 Richard Earnshaw <[email protected]>
9192
9193 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9194 (arm_frame_args_address, arm_frame_locals_address): New functions.
9195 (arm_frame_num_args): New function.
9196 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9197 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9198 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9199
405f26e6
MS
92002002-01-31 Michael Snyder <[email protected]>
9201
502fd408
MS
9202 * breakpoint.c (break_at_finish_command): Export.
9203 (break_at_finish_at_depth_command): Export.
9204 (tbreak_at_finish_command): Export.
9205 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9206 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9207 "tbreak" commands, which are HPPA specific.
9208
7d35e135
MS
9209 * printcmd.c (disassemble_command): Remove an ancient
9210 artifact of an old merge.
9211
aaa38bb5 9212 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9213 Define enum constant values for overlay mode.
9214 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9215 (overlay_is_mapped, overlay_auto_command,
9216 overlay_manual_command): Ditto.
d874f1e2 9217
aaa38bb5
AJ
9218 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9219 breakpoint_here_p, breakpoint_inserted_here_p,
9220 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9221 describe_other_breakpoints, check_duplicates, clear_command):
9222 Coding standard fixes.
9223
8add0441 9224 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9225 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9226 code: check bfd SEC_READONLY flag for section.
9227
e351066e
AC
92282002-01-31 Andrew Cagney <[email protected]>
9229
7d35e135 9230 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9231
8a48e967
DJ
92322002-01-30 Daniel Jacobowitz <[email protected]>
9233
9234 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9235 data symbols, since we search based on textlow and texthigh.
9236 (find_pc_sect_symtab): Likewise.
9237
f5a96129
AC
92382002-01-30 Andrew Cagney <[email protected]>
9239
9240 * defs.h (vwarning): Declare.
f5a96129
AC
9241 * utils.c (vwarning): New function.
9242 (warning): Call vwarning.
9243 (warning_begin): Delete function.
9244
9245 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9246 the warning message.
9247 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9248 warning_begin.
9249
cefd4ef5
MS
92502002-01-30 Michael Snyder <[email protected]>
9251
1a703748
MS
9252 * NEWS: Mention "set trust-readonly-sections" command.
9253 Mention generate-core-file command.
cefd4ef5 9254
3a11626d
MS
92552002-01-15 Michael Snyder <[email protected]>
9256
9257 * target.c: New command, "set trust-readonly-sections on".
9258 (do_xfer_memory): Honor the suggestion to trust readonly sections
9259 by reading them from the object file instead of from the target.
9260 (initialize_targets): Register command "set trust-readonly-sections".
9261
d1c7e53b
AC
92622002-01-29 Andrew Cagney <[email protected]>
9263
9264 * parse.c (target_map_name_to_register): Simplify, search regs and
9265 pseudo-regs using a single loop.
9266
e2c9a72c
AC
92672002-01-30 Andrew Cagney <[email protected]>
9268
9269 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9270
69824b4e
MK
92712002-01-15 Rodney Brown <[email protected]>
9272
9273 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9274 * config/i386/i386v42mp.mh: Add i387-nat.o .
9275 * i386v4-nat.c: Include i387-nat.h.
9276 (supply_fpregset): Use i387_supply_fsave.
9277 (fill_fpregset): Use i387_fill_fsave.
9278
6eb69eab
RE
92792002-01-30 Richard Earnshaw <[email protected]>
9280
9281 * arm-tdep.c (arm_call_dummy_words): Define.
9282 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9283 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9284 (CALL_DUMMY_WORDS): Define.
9285 (arm_call_dummy_words): Declare.
9286 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9287 (arm_linux_call_dummy_words): Declare.
9288
9852326a
AS
92892002-01-30 Andreas Schwab <[email protected]>
9290
9291 * m68klinux-nat.c: Fix last change to use regcache_collect
9292 instead of referencing registers[] directly.
9293
977a3030
AC
92942002-01-29 Andrew Cagney <[email protected]>
9295
9296 * parse.c (target_map_name_to_register): Delete code wrapped in
9297 #ifdef REGISTER_NAME_ALIAS_HOOK.
9298
2076c72b
MS
92992002-01-28 Michael Snyder <[email protected]>
9300
9301 * regcache.c (legacy_read_register_gen): Need to be able to
9302 read pseudo-register as well as real register.
9303 (legacy_write_register_gen): Ditto.
9304
8fcc723b
AC
93052002-01-28 Andrew Cagney <[email protected]>
9306
9307 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9308 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9309 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9310 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9311 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9312 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9313 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9314 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9315 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9316 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9317 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9318 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9319 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9320 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9321 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9322 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9323 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9324 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9325 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9326 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9327
afe64c1a
AC
93282002-01-28 Andrew Cagney <[email protected]>
9329
9330 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9331 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9332 (initialize_current_architecture): Update target_byte_order using
9333 information from BFD.
aaa38bb5 9334 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9335 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9336
75bc7ddf
AC
93372002-01-28 Andrew Cagney <[email protected]>
9338
9339 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9340 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9341
9342 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9343 #ifdef INVALID_FLOAT.
9344 * infcmd.c (do_registers_info): Ditto.
9345 * values.c (unpack_double): Ditto. Add comment.
9346
9347 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9348 already commented out.
9349
0280a90a
AS
93502002-01-26 Andreas Schwab <[email protected]>
9351
9352 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9353 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9354 registers and add support for PTRACE_GETREGS.
9355
7072a954
AC
93562002-01-24 Andrew Cagney <[email protected]>
9357
9358 GDB 5.1.1 released from 5.1 branch.
9359 * NEWS: Add 5.1.1 news.
9360 * README: Sync with 5.1 branch.
9361
86f902e0
FF
93622002-01-23 Fred Fish <[email protected]>
9363
9364 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9365 stabstring on initial malloc. Reallocing will copy it for us,
9366 if necessary.
9367
8af51c36
EZ
93682002-01-23 Elena Zannoni <[email protected]>
9369
aaa38bb5 9370 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9371 (HFILES_NO_SRCDIR): Remove hpread.h.
9372 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9373 (hpread.o): Update dependencies.
9374 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9375
9376 * hp-psymtab-read.c: Remove file.
9377 * hp-symtab-read.c: Remove file.
9378 * hpread.h: Remove file.
9379
9380 * hpread.c: Merge all contents of hp-psymtab-read.c,
9381 hp-symtab-read.c and hpread.h into this file, as it was prior to
9382 January 1999.
9383
9384 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9385 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9386 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9387 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9388
dc5cfeb6
EZ
93892002-01-23 Elena Zannoni <[email protected]>
9390
9391 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9392 fill_gregset): Call gdbarch_tdep() just once, assign result to
9393 variable and use that, instead of calling the function several
9394 times.
9395
ea87b71b
AO
93962002-01-24 Alexandre Oliva <[email protected]>
9397
9398 * configure.host: Accept sparcv9 as alias for sparc64.
9399 * configure.tgt: Likewise.
9400
13fc0c2f
KB
94012002-01-22 Kevin Buettner <[email protected]>
9402
9403 * solib-aix5.c (build_so_list_from_mapfile)
9404 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9405 arguments is not reversed.
9406 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9407 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9408
7bd872fe
EZ
94092002-01-22 Elena Zannoni <[email protected]>
9410
9411 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9412 modified version of obsolete sh_fetch_pseudo_register.
9413 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9414 (sh4_register_read): New function.
9415 (sh_pseudo_register_write): New function. Renamed and modified
9416 version of obsolete sh_store_pseudo_register.
9417 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9418 (sh4_register_write): New function.
9419 (sh_gdbarch_init): Remove setting of gdbarch function
9420 fetch_pseudo_register and store_pseudo_register. Remove setting of
9421 register_convert_to_raw, register_convert_to_virtual,
9422 register_convertible.
9423 (sh_sh4_register_convertible): Delete. No longer needed. All is
9424 taken care by architecture specific functions
9425 register_read/register_write.
9426 (sh_sh4_register_convert_to_virtual): Make static.
9427 (sh_sh4_register_convert_to_raw): Ditto.
9428
069e84fd
AC
94292002-01-22 Andrew Cagney <[email protected]>
9430
9431 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9432 (floatformat_is_nan, floatformat_mantissa): Ditto.
9433
9434 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9435 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9436 builtin_type_ieee_double_little,
9437 builtin_type_ieee_double_littlebyte_bigword,
9438 builtin_type_m68881_ext, builtin_type_i960_ext,
9439 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9440 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9441 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9442 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9443
211a4f69
CV
94442002-01-22 Corinna Vinschen <[email protected]>
9445
9446 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9447 parameter. Set frameless flag if it exists and depended of
9448 whether the scanned function is frameless or not.
9449 (xstormy16_skip_prologue): If function is frameless, return
9450 result of xstormy16_scan_prologue().
9451 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9452 call.
9453
f81353e4
EZ
94542002-01-21 Elena Zannoni <[email protected]>
9455
9456 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9457 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9458 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9459 sh_sh4_register_byte, sh_sh4_register_raw_size,
9460 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9461 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9462 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9463 sh_store_pseudo_register, sh_do_pseudo_register): Call
9464 gdbarch_tdep() just once, assign result to variable and use that,
9465 instead of calling the function several times.
9466
63c73a17
MK
94672002-01-20 Mark Kettenis <[email protected]>
9468
9469 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9470 macros instead of LAST_FPU_CTRL_REGNUM.
9471 (store_register): Likewise.
9472
39ad761d
JB
94732002-01-21 Jim Blandy <[email protected]>
9474
9475 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9476 is up-to-date before running the program, not just when a program
9477 exits.
9478
3d74b771
FF
94792002-01-21 Fred Fish <[email protected]>
9480
9481 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9482 when we have found all instructions we are looking for.
9483
966fbf70
RE
94842002-01-21 Richard Earnshaw <[email protected]>
9485
9486 * arm-tdep.c (arm_register_name): New function.
9487 (arm_registers_names): Make static.
9488 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9489 (arm_register_name): Declare.
9490 (REGISTER_NAME): Use it.
9491
c3b4394c
RE
94922002-01-21 Richard Earnshaw <[email protected]>
9493 Kevin Buettner <[email protected]>
9494
9495 Convert arm targets to new FRAME interface.
9496 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9497 (arm_frame_find_save_regs): Delete.
9498 (arm_frame_init_saved_regs): New.
9499 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9500 Allocate extra_info as required. Convert all uses of fsr.regs
9501 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9502 to use extra_info.
9503 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9504 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9505 (check_prologue_cache, save_prologue_cache): Likewise.
9506 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9507 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9508 (FRAME_FIND_SAVED_REGS): Delete.
9509 (arm_frame_find_saved_regs): Delete prototype.
9510 (arm_frame_init_saved_regs): New prototype.
9511 (FRAME_INIT_SAVED_REGS): Define.
9512
61d99182
AC
95132002-01-20 Andrew Cagney <[email protected]>
9514
9515 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9516
6aaea291
AC
95172002-01-20 Andrew Cagney <[email protected]>
9518
9519 From Jeff Law <[email protected]>:
9520 * infttrace.c: Include <sys/pstat.h>.
9521 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9522 exec file if the ttrace equivalent fails.
9523
15f698d2
AC
95242002-01-20 Andrew Cagney <[email protected]>
9525
9526 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9527 (closeLogFile): Ditto.
9528
f86ddd7c
MC
95292002-01-20 Michael Chastain <[email protected]>
9530
9531 * top.c (print_gdb_version): Bump copyright year to 2002.
9532
904507ce
AC
95332002-01-20 Andrew Cagney <[email protected]>
9534
9535 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9536 Zannoni and Eli Zaretskii.
9537
d7f0b9ce
DJ
95382002-01-20 Daniel Jacobowitz <[email protected]>
9539
9540 * buildsym.c: Update copyright years.
9541 * c-typeprint.c: Likewise.
9542 * dwarf2read.c: Likewise.
9543 * f-typeprint.c: Likewise.
9544 * gdbtypes.c: Likewise.
9545 * gdbtypes.h: Likewise.
9546 * hp-symtab-read.c: Likewise.
9547 * hpread.c: Likewise.
9548 * mdebugread.c: Likewise.
9549 * p-typeprint.c: Likewise.
9550
3fd3d7d2
AC
95512002-01-20 Andrew Cagney <[email protected]>
9552
9553 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9554 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9555 byte-order selectable.
9556 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9557 * arch-utils.c: Ditto.
9558 (set_endian): Ditto.
9559 (set_endian_from_file): Ditto.
9560 * gdbserver/low-sim.c (create_inferior): Ditto.
9561 * gdbarch.sh: Ditto.
9562 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9563 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9564 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9565 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9566 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9567 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9568 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9569 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9570 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9571 macro definition.
9572 * config/mips/tm-wince.h: Remove #undef of macro
9573 TARGET_BYTE_ORDER_SELECTABLE.
9574 * config/sh/tm-wince.h: Ditto.
9575
b02dede2
DJ
95762002-01-20 Daniel Jacobowitz <[email protected]>
9577
9578 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9579 member function fields. Add accessor macro
9580 TYPE_FN_FIELD_ARTIFICIAL.
9581 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9582 * c-typeprint.c (c_type_print_base): Skip artificial member
9583 functions.
9584
c3643761
DJ
95852002-01-20 Daniel Jacobowitz <[email protected]>
9586
9587 * f-typeprint.c: Delete unused function f_type_print_args.
9588 * p-typeprint.c: Delete unused function pascal_type_print_args.
9589
8176bb6d
DJ
95902002-01-20 Daniel Jacobowitz <[email protected]>
9591
9592 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9593 comment. Add ``artificial'' to ``union field_location''.
9594
9595 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9596
9597 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9598 * mdebugread.c (parse_symbol): Likewise.
9599 * stabsread.c (define_symbol): Likewise.
9600 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9601 initializing TYPE_FIELD_BITPOS to n (obsolete).
9602 (hpread_doc_function_type): Likewise.
9603 * hpread.c (hpread_function_type): Likewise.
9604
7fd60527
AC
96052002-01-20 Andrew Cagney <[email protected]>
9606
9607 * configure.in (host_makefile_frag): Only require a host makefile
9608 fragment when a native build.
9609 * configure: Re-generate.
9610
c2f05ac9
AC
96112002-01-20 Andrew Cagney <[email protected]>
9612
9613 * doublest.h (floatformat_from_type): Declare.
9614 * doublest.c (floatformat_from_type): New function.
9615 (convert_typed_floating): Use.
9616
9617 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9618 call to function floatformat_from_type.
9619
9620 * gdbarch.sh (IEEE_FLOAT): Delete.
9621 * gdbarch.h, gdbarch.c: Re-generate.
9622 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9623 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9624 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9625 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9626 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9627 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9628 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9629 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9630 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9631 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9632 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9633 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9634
9635 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9636 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9637 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9638 * sh-tdep.c (sh_gdbarch_init): Ditto.
9639 * mips-tdep.c (mips_gdbarch_init): Ditto.
9640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9641 * cris-tdep.c (cris_gdbarch_init): Ditto.
9642
abf22e64
AJ
96432002-01-20 Jiri Smid <[email protected]>
9644
9645 * configure.host, configure.tgt: Support x86-64.
9646 * NEWS: Note new target x86-64.
9647
b7c4cbf8
AJ
9648 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9649 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9650 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9651 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9652 x86-64-linux-nat.o): Fix dependencies.
9653
82600034
AC
96542002-01-19 Andrew Cagney <[email protected]>
9655
9656 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9657 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9658 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9659 * config/sparc/xm-sun4os4.h: Delete file.
9660 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9661
bbe5c628
AC
96622002-01-19 Andrew Cagney <[email protected]>
9663
9664 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9665 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9666 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9667 * config/i386/i386lynx.mh (XM_FILE): Delete.
9668 * config/rs6000/xm-rs6000ly.h: Delete file.
9669 * config/sparc/xm-sparclynx.h: Delete file.
9670 * config/m68k/xm-m68klynx.h: Delete file.
9671 * config/i386/xm-i386lynx.h: Delete file.
9672 * config/xm-lynx.h: Delete file.
9673 * config/djgpp/fnchange.lst: Update.
9674
f8453e34
JT
96752002-01-19 Jason Thorpe <[email protected]>
9676
9677 * alpha-tdep.c (alpha_register_byte): New function.
9678 (alpha_register_raw_size): Ditto.
9679 (alpha_register_virtual_size): Ditto.
9680 (alpha_skip_prologue_internal): Renamed from
9681 alpha_skip_prologue.
9682 (alpha_skip_prologue): New version that calls
9683 alpha_skip_prologue_internal.
9684 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9685 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9686 second argument from alpha_skip_prologue.
9687 (REGISTER_BYTE): Use alpha_register_byte.
9688 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9689 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9690 (FRAMELESS_FUNCTION_INVOCATION): Use
9691 generic_frameless_function_invocation_not.
9692 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9693 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9694
52d9e613
AC
96952002-01-19 Andrew Cagney <[email protected]>
9696
9697 * config/mips/xm-news-mips.h: Delete file.
9698 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9699
9700 * config/m88k/xm-m88k.h: Delete file.
9701 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9702 * config/m88k/xm-delta88v4.h: Ditto.
9703 * config/m88k/xm-delta88.h: Ditto.
9704
9705 * config/alpha/xm-fbsd.h: Delete file.
9706 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9707
9708 * config/sparc/xm-sparc.h: Delete file.
9709 * Makefile.in (xm-sun4os4.h): Delete dependency.
9710 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9711 * config/sparc/xm-sun4os4.h: Ditto.
9712 * config/sparc/xm-linux.h: Ditto.
9713
9714 * config/i386/xm-windows.h: Delete file.
9715
2d1b2124
AC
97162002-01-19 Andrew Cagney <[email protected]>
9717
9718 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9719 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9720
ee1f65f0
JT
97212002-01-19 Jason Thorpe <[email protected]>
9722
9723 * alpha-tdep.c (alpha_call_dummy_words): New.
9724 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9725 (CALL_DUMMY_P): Define.
9726 (CALL_DUMMY_WORDS): Define.
9727 (SIZEOF_CALL_DUMMY_WORDS): Define.
9728
98081e55
PB
97292002-01-19 Per Bothner <[email protected]>
9730
9731 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9732 isn't NULL, which can happen with some gcj-3.x-produced code.
9733
0d056799
JT
97342002-01-19 Jason Thorpe <[email protected]>
9735
9736 * alpha-tdep.c (alpha_register_virtual_type): New function.
9737 (alpha_init_frame_pc_first): Ditto.
9738 (alpha_fix_call_dummy): Ditto.
9739 (alpha_store_struct_return): Ditto.
9740 (alpha_extract_struct_value_address): Ditto.
9741 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9742 alpha_register_virtual_type.
9743 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9744 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9745 alpha_extract_struct_value_address.
9746 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9747 (INIT_FRAME_PC): Use init_frame_pc_noop.
9748 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9749
4604bcad
MK
97502002-01-19 Mark Kettenis <[email protected]>
9751
9752 * i386gnu-nat.c: Include "i386-tdep.h".
9753 (fetch_fpregs): Simplify code dealing with uninitialized floating
9754 point states such that it doesn't require FP7_REGNUM.
9755
140f9984
JT
97562002-01-18 Jason Thorpe <[email protected]>
9757
abf22e64
AJ
9758 * alpha-tdep.c (frame_extra_info): New.
9759 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9760 frame->extra_info.
9761 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9762 (alpha_frame_saved_pc): Use frame->extra_info.
9763 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9764 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9765 (init_extra_frame_info): Rename to...
9766 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9767 (alpha_print_extra_frame_info): New function.
140f9984
JT
9768 (alpha_frame_locals_address): Ditto.
9769 (alpha_frame_args_address): Ditto.
abf22e64 9770 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9771 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9772 alpha_frame_args_address.
abf22e64 9773 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9774 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9775 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9776 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9777 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9778 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9779
d734c450
JT
97802002-01-18 Jason Thorpe <[email protected]>
9781
9782 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9783 (alpha_cannot_fetch_register): Ditto.
9784 (alpha_cannot_store_register): Ditto.
9785 (alpha_register_convertible): Ditto.
9786 (alpha_use_struct_convention): Ditto.
9787 * config/alpha/tm-alpha.h: Update copyright years.
9788 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9789 (INNER_THAN): Use core_addr_lessthan.
9790 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9791 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9792 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9793 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9794 (FRAME_CHAIN): Remove unnecessary cast.
9795
b4ceaee6
AC
97962002-01-18 Andrew Cagney <[email protected]>
9797
9798 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9799 obsolete.
9800
0a65a603
AC
98012002-01-18 Andrew Cagney <[email protected]>
9802
9803 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9804 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9805 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9806 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9807 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9808 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9809 * x86-64-linux-nat.c: Ditto.
9810
636a6dfc
JT
98112002-01-18 Jason Thorpe <[email protected]>
9812
abf22e64 9813 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9814 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9815 (REGISTER_NAME): Define.
9816
acceddb6
JT
98172002-01-18 Jason Thorpe <[email protected]>
9818
9819 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9820
ec32e4be
JT
98212002-01-18 Jason Thorpe <[email protected]>
9822
9823 * alpha-tdep.c: Update copyright years.
9824 (alpha_next_pc): New function.
9825 (alpha_software_single_step): Ditto.
9826 * config/alpha/tm-alpha.h: Add prototype for
9827 alpha_software_single_step.
9828
e771a871
JT
98292002-01-18 Jason Thorpe <[email protected]>
9830
9831 * alphabsd-nat.c: Update copyright years.
9832 (fill_gregset): Use regcache_collect.
9833 (fill_fpregset): Likewise.
9834 (fetch_inferior_registers): Only fetch integer registers
9835 if requested to do so.
9836 (store_inferior_registers): Only store integer registers
9837 if requested to do so.
9838
7708fa01
AC
98392002-01-17 Andrew Cagney <[email protected]>
9840
9841 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9842 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9843 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9844 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9845 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9846 * config/arm/linux.mh (XDEPFILES): Delete.
9847 * config/arm/nbsd.mh (XDEPFILES): Delete.
9848 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9849 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9850 * config/i386/i386m3.mh (XDEPFILES): Delete.
9851 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9852 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9853 * config/i386/fbsd.mh (XDEPFILES): Delete.
9854 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9855 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9856 * config/i386/i386v4.mh (XDEPFILES): Delete.
9857 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9858 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9859 * config/i386/i386aix.mh (XDEPFILES): Delete.
9860 * config/i386/go32.mh (XDEPFILES): Delete.
9861 * config/i386/cygwin.mh (XDEPFILES): Delete.
9862 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9863 * config/i386/i386mach.mh (XDEPFILES): Delete.
9864 * config/i386/i386v32.mh (XDEPFILES): Delete.
9865 * config/i386/linux.mh (XDEPFILES): Delete.
9866 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9867 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9868 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9869 * config/i386/i386sco.mh (XDEPFILES): Delete.
9870 * config/i386/i386v.mh (XDEPFILES): Delete.
9871 * config/i386/nbsd.mh (XDEPFILES): Delete.
9872 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9873 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9874 * config/i386/symmetry.mh (XDEPFILES): Delete.
9875 * config/i386/obsd.mh (XDEPFILES): Delete.
9876 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9877 * config/ia64/linux.mh (XDEPFILES): Delete.
9878 * config/ia64/aix.mh (XDEPFILES): Delete.
9879 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9880 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9881 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9882 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9883 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9884 * config/m68k/linux.mh (XDEPFILES): Delete.
9885 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9886 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9887 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9888 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9889 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9890 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9891 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9892 * config/m88k/delta88.mh (XDEPFILES): Delete.
9893 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9894 * config/m88k/m88k.mh (XDEPFILES): Delete.
9895 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9896 * config/mips/linux.mh (XDEPFILES): Delete.
9897 * config/mips/irix6.mh (XDEPFILES): Delete.
9898 * config/mips/irix5.mh (XDEPFILES): Delete.
9899 * config/mips/irix4.mh (XDEPFILES): Delete.
9900 * config/mips/irix3.mh (XDEPFILES): Delete.
9901 * config/mips/decstation.mh (XDEPFILES): Delete.
9902 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9903 (NATDEPFILES): Move core-aout.o to here.
9904 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9905 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9906 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9907 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9908 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9909 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9910 * config/pa/hpux11.mh (XDEPFILES): Delete.
9911 * config/powerpc/aix.mh (XDEPFILES): Delete.
9912 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9913 * config/powerpc/linux.mh (XDEPFILES): Delete.
9914 * config/romp/rtbsd.mh: Rename XDEPFILES.
9915 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9916 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9917 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9918 * config/s390/s390.mh (XDEPFILES): Delete.
9919 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9920 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9921 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9922 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9923 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9924 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9925 * config/sparc/linux.mh (XDEPFILES): Delete.
9926 * config/vax/vaxult.mh (XDEPFILES): Delete.
9927 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9928 * Makefile.in (DEPFILES): Remove XDEPFILES.
9929
375fc983
AC
99302002-01-17 Andrew Cagney <[email protected]>
9931
9932 * utils.c (internal_verror): Fix comments, default is yes not no.
9933 Update queries to match. Default to quit and dump core.
9934
8926118c
AC
99352002-01-17 Andrew Cagney <[email protected]>
9936
9937 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9938 copyright.
9939 * defs.h, event-top.c, gdbcmd.h: Ditto.
9940 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9941 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9942 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9943 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9944 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9945 * mi/mi-main.c:Ditto.
9946
9947 * stack.c, symfile.c: Update copyright.
9948
45b7b345
DJ
99492002-01-17 Daniel Jacobowitz <[email protected]>
9950
db728ff7
DJ
9951 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9952 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9953 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9954 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9955
db728ff7
DJ
99562002-01-17 Daniel Jacobowitz <[email protected]>
9957
9958 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9959 * gdbserver/low-lynx.c (myattach): Likewise.
9960 * gdbserver/low-nbsd.c (myattach): Likewise.
9961 * gdbserver/low-sim.c (myattach): Likewise.
9962 * gdbserver/low-sparc.c (myattach): Likewise.
9963 * gdbserver/low-sun3.c (myattach): Likewise.
9964
9965 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9966
db728ff7 9967 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9968 (main): Handle "--attach".
9969
8de3c354
AC
99702002-01-16 Andrew Cagney <[email protected]>
9971
9972 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9973 maintainer.
9974
b0129042
DJ
99752002-01-15 Daniel Jacobowitz <[email protected]>
9976
9977 * c-typeprint.c (is_type_conversion_operator): Add additional
9978 check for non-conversion operators.
9979
ba8679fb 99802002-01-15 Michael Snyder <[email protected]>
2bf543a6
MS
9981
9982 * linux-proc.c: Add "info proc" command, a la procfs.c.
9983 (read_mapping): New function, abstract and re-use code.
9984 (linux_find_memory_regions): Use new func read_mapping.
9985 (linux_info_proc_cmd): New function, implement "info proc".
9986 (_initialize_linux_proc): Add new command "info proc".
9987
e4f9b4d5
MS
99882002-01-15 Michael Snyder <[email protected]>
9989
9990 * symfile.c (generic_load): Use bfd_map_over_sections method
9991 instead of manipulating bfd structure members directly.
9992 (add_section_size_callback): New function, bfd sections callback
9993 used by generic_load.
9994 (load_sections_callback): New function, bfd sections callback
9995 used by generic_load.
9996
08cf96df
EZ
99972002-01-15 Elena Zannoni <[email protected]>
9998
abf22e64 9999 [Based on work by Jim Blandy]
08cf96df
EZ
10000 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10001 (builtin_type_vec128): Export.
10002 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10003 types.
10004 (builtin_type_vec128): New builtin type for 128 bit vector
10005 registers.
10006 (build_gdbtypes): Initialize builtin_type_v16qi and
10007 builtin_type_v8hi. Create the vec128 register builtin type
10008 structure.
10009 (build_builtin_type_vec128): New function.
abf22e64 10010 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10011 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10012 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10013 AltiVec register to new builtin type.
10014
d7242108
DJ
100152001-01-15 Daniel Jacobowitz <[email protected]>
10016
10017 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10018 to make_cv_type.
10019
4ee3352d
AC
100202002-01-14 Andrew Cagney <[email protected]>
10021
10022 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10023 CLEAN_UP_REGISTER_VALUE.
10024 * regcache.c (supply_register): Update only call.
10025
f015b2e7
AC
100262002-01-14 Andrew Cagney <[email protected]>
10027
10028 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10029 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10030 a29k-*-vxworks* targets as obsolete.
10031
356ae49d
MS
100322002-01-14 Michael Snyder <[email protected]>
10033
10034 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10035 until we can resolve portability issues.
10036 * gregset.h: Remove references to fpxregs.
10037 * gcore.c (gcore_command): Initialize note_sec to NULL.
10038
ade8f45e
AC
100392002-01-13 Andrew Cagney <[email protected]>
10040
10041 * signals.c (target_signal_to_name): Rewrite. Only use
10042 signals[].name when in bounds and non-NULL.
abf22e64 10043
89c49e7a
AC
100442002-01-13 Andrew Cagney <[email protected]>
10045
10046 From Petr Ledvina <[email protected]>:
10047 * signals.c (target_signal_to_name): Verify that SIG is within the
10048 bounds of the signals array.
10049
4daa9f9f
AC
100502002-01-13 Andrew Cagney <[email protected]>
10051
10052 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10053
ba4bbdcb
KS
100542002-01-13 Keith Seitz <[email protected]>
10055
10056 * stack.c (print_frame_info_base): Print the frame's pc
10057 only if when print_frame_info_listing_hook is not defined.
10058
575bbeb6
KS
100592002-01-13 Keith Seitz <[email protected]>
10060
10061 * varobj.c (varobj_set_value): Make sure that there were no
10062 errors evaluating the object before attempting to set its
10063 value.
10064 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10065 so this offset adjustment is no longer necessary.
10066 (create_child): Don't set the error flag if the child is
10067 a CPLUS_FAKE_CHILD.
10068 (value_of_child): If value_fetch_lazy fails, return NULL
10069 so that callers will be notified that an error occurred.
10070 (c_value_of_variable): Delay check of variable's validity
10071 until later. We actually want all structs and unions to have
10072 the value "{...}".
10073 Do not return "???" for variables which could not be evaluated.
10074 This error condition must be returned to the caller so that it
10075 can get the error condition from gdb.
10076 (cplus_name_of_child): Adjust index for vptr before figuring
10077 out the name of the child.
10078 (cplus_value_of_child): If a child's (real) parent is not valid,
10079 don't even bother trying to give a value for it. Just return
10080 an error. Change all instances in this function.
10081 (cplus_type_of_child): If our parent is one of the "fake"
10082 parents, we need to get at the type of the real parent, and
10083 derive the child's true type using this information.
10084
b76898ab
AC
100852002-01-13 Andrew Cagney <[email protected]>
10086
10087 From 2002-01-09 John Marshall <[email protected]>:
10088 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10089 sources.redhat.com, and tweak some related URLs which had
10090 suffered from linkrot.
10091
b6649e88
AC
100922002-01-13 Andrew Cagney <[email protected]>
10093
10094 From Jeff law:
10095 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10096 structures passed in registers.
10097
82cc5033
EZ
100982002-01-13 Eli Zaretskii <[email protected]>
10099
10100 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10101 white space which prevented compilation. Reported by DSK
10102 <[email protected]>.
10103
ba5f2f8a
MS
101042002-01-11 Michael Snyder <[email protected]>
10105
fbd35540
MS
10106 * symfile.c (build_section_addr_info_from_section_tab):
10107 Use bfd access method instead of manipulating bfd directly.
10108 (syms_from_objfile): Ditto.
10109 (simple_overlay_update_1): Ditto.
10110 (simple_overlay_update): Ditto.
10111 (generic_load): Ditto.
10112 (overlay_unmapped_address): FIXME comment, bfd access methods.
10113 (sections_overlap): FIXME comment, bfd access methods.
10114 (pc_in_mapped_range): FIXME comment, bfd access methods.
10115 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10116 (section_is_mapped): FIXME comment, bfd access methods.
10117 (section_is_overlay): FIXME comment, bfd access methods.
10118
ba5f2f8a
MS
10119 * symfile.c (generic_load): Whitespace and long line cleanups.
10120 Remove duplicate variable, change several local variables to
10121 more appropriate data types.
10122 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10123
17df2af6
AC
101242002-01-12 Andrew Cagney <[email protected]>
10125
10126 From Peter Schauer:
10127 * language.c (longest_local_hex_string_custom): Use phex_nz to
10128 convert NUM to a hex string.
10129
ec920329
EZ
101302002-01-12 Elena Zannoni <[email protected]>
10131
10132 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10133 the function.
538a76d6 10134 Update Copyright year.
ec920329 10135
3abd2e01
AC
101362002-01-12 Andrew Cagney <[email protected]>
10137
10138 * language.c (longest_raw_hex_string): Delete unused function.
10139
b21b22e0
PS
101402002-01-11 Petr Sorfa <[email protected]>
10141
10142 * MAINTAINERS (write-after-approval): Add myself.
10143 * dwarf2read.c (read_tag_string_type): Handling of
10144 DW_AT_byte_size.
10145 (read_tag_string_type): FORTRAN fix to prevent propagation of
10146 first string size.
10147 (set_cu_language): Handling of DW_LANG_Fortran95
10148
747fe712
RE
101492002-01-11 Richard Earnshaw <[email protected]>
10150
10151 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10152 GETPID(inferior_ptid).
10153 (store_inferior_registers): Likewise.
10154
f1bea926
JM
101552002-01-10 Jason Merrill <[email protected]>
10156
10157 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10158 Fix DW_OP_minus.
10159
ae940673
AC
101602002-01-10 Andrew Cagney <[email protected]>
10161
10162 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10163 and bfd/elf32-sh-nbsd.c.
10164
00546b04
MS
101652002-01-10 Michael Snyder <[email protected]>
10166
352ed7b4
MS
10167 * NEWS: Mention --pid and corefile/proc-id behavior change.
10168
c18be923
MS
10169 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10170 * gcore.c: Include cli/cli-decode.h instead of command.h.
10171
00546b04
MS
10172 * main.c (captured_main): Add new command line option "--pid".
10173 If the second command line argument (following the symbol-file)
10174 begins with a digit, try to attach to it before trying to open
10175 it as a corefile.
10176 (print_gdb_help): Document the "--pid" argument.
10177
db60ec62
EZ
101782002-01-10 Eli Zaretskii <[email protected]>
10179
10180 * completer.c (command_completer): New function.
10181
10182 * completer.h <command_completer>: Add prototype.
10183
10184 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10185 completer for the "help" command.
10186
39c22d1a
JM
101872002-01-09 Jason Merrill <[email protected]>
10188
10189 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10190
c564377f
MS
101912002-01-09 Michael Snyder <[email protected]>
10192
975aec09
MS
10193 * i386-linux-nat.c (fill_fpxregset): Make global.
10194 (store_fpxregset): Ditto.
10195
db4a10fa
MS
10196 * gregset.h (gdb_fpxregset_t): Define.
10197 (supply_fpxregset): Prototype.
10198 (fill_fpxregset): Prototype.
10199
c564377f
MS
10200 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10201
c3d45d70
RE
102022002-01-09 Richard Earnshaw <[email protected]>
10203
10204 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10205 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10206 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10207
fcc87af1
AC
102082002-01-09 Andrew Cagney <[email protected]>
10209
10210 * MAINTAINERS: Update target maintainer rules so that any
10211 Maintainer can approve a tested patch for a maintenance-only
10212 target.
10213
dd96c05b
RE
102142002-01-09 Richard Earnshaw <[email protected]>
10215
d4297db9 10216 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10217
d4297db9 10218 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10219 IN_SIGTRAMP.
10220
145fdc6e
MS
102212002-01-08 Michael Snyder <[email protected]>
10222
10223 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10224 real name of the executable, rather than the /proc name.
10225
be4d1333
MS
102262002-01-03 Michael Snyder <[email protected]>
10227
10228 Implement a "generate-core-file" command in gdb, save target state.
10229 * gcore.c: New file. Implement new command 'generate-core-file'.
10230 Save a corefile image of the current state of the inferior.
10231 * linux-proc.c: Add linux-specific code for saving corefiles.
10232 * target.h (struct target_ops): Add new target vectors for saving
10233 corefiles; to_find_memory_regions and to_make_corefile_notes.
10234 (target_find_memory_regions): New macro.
10235 (target_make_corefile_notes): New macro.
10236 * target.c (update_current_target): Inherit new target methods.
10237 (dummy_find_memory_regions): New place-holder method.
10238 (dummy_make_corefile_notes): New place-holder method.
10239 (init_dummy_target): Initialize new dummy target vectors.
10240 * exec.c (exec_set_find_memory_regions): New function.
10241 Allow the exec_ops vector for memory regions to be taken over.
10242 (exec_make_note_section): New function, target vector method.
10243 * defs.h (exec_set_find_memory_regions): Export prototype.
10244 * procfs.c (proc_find_memory_regions): New function, corefile method.
10245 (procfs_make_note_section): New function, corefile method.
10246 (init_procfs_ops): Set new target vector pointers.
10247 (find_memory_regions_callback): New function.
10248 (procfs_do_thread_registers): New function.
10249 (procfs_corefile_thread_callback): New function.
10250 * sol-thread.c (sol_find_memory_regions): New function.
10251 (sol_make_note_section): New function.
10252 (init_sol_thread_ops): Initialize new target vectors.
10253 * inftarg.c (inftarg_set_find_memory_regions): New function.
10254 Allow to_find_memory_regions vector to be taken over.
10255 (inftarg_set_make_corefile_notes): New function.
10256 Allow to_make_corefile_notes vector to be taken over.
10257 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10258 interface layer if not target_has_execution (may be a corefile).
10259 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10260 * config/sparc/sun4sol2.mh: Ditto.
10261 * config/alpha/alpha-linux.mh: Ditto.
10262 * config/arm/linux.mh: Ditto.
10263 * config/i386/x86-64linux.mh: Ditto.
10264 * config/ia64/linux.mh: Ditto.
10265 * config/m68k/linux.mh: Ditto.
10266 * config/mips/linux.mh: Ditto.
10267 * config/powerpc/linux.mh: Ditto.
10268 * config/sparc/linux.mh: Ditto.
10269
c6b92abd
MS
102702002-01-07 Michael Snyder <[email protected]>
10271
10272 * arm-linux-nat.c: Remove references to regcache.c internal data
10273 (registers[] and register_valid[]).
10274
4b09dc8c
MS
102752002-01-07 Michael Snyder <[email protected]>
10276
abf22e64
AJ
10277 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10278 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10279 symbol file and shlibs.
10280 * Makefile.in: Add rule for linux-proc.o.
10281 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10282 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10283 * config/arm/linux.mh: Ditto.
10284 * config/i386/linux.mh: Ditto.
10285 * config/i386/x86-64linux.mh: Ditto.
10286 * config/ia64/linux.mh: Ditto.
10287 * config/m68k/linux.mh: Ditto.
10288 * config/mips/linux.mh: Ditto.
10289 * config/powerpc/linux.mh: Ditto.
10290 * config/sparc/linux.mh: Ditto.
10291
c25b74ac
PM
102922002-01-06 Pierre Muller <[email protected]>
10293
10294 * win32-nat.c: Add i386-tdep.h dependency.
10295
94cd915f
MS
102962002-01-07 Michael Snyder <[email protected]>
10297
c7cccb76
MS
10298 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10299 instead of bfd_get_arch_size. Don't bail out just because
10300 there's no exec_bfd.
abf22e64 10301
34c0bd93
MS
10302 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10303 * p-valprint.c (pascal_object_print_value): Ditto.
10304 * somread.c (som_symtab_read): Ditto.
10305 * symfile.c (simple_free_overlay_region_table): Ditto.
10306 * valops.c (value_assign): Ditto.
10307
21c1c920
MS
10308 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10309 use tilde_expand and strerror for opening save-tracepoints file.
10310
5bbd998e
MS
10311 * thread-db.c (thread_db_new_objfile): Indendation fix.
10312
94cd915f
MS
10313 * infptrace.c (GDB_MAX_ALLOCA): New define.
10314 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10315 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10316 can be overridden with whatever value is appropriate to the host).
10317 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10318 alloca to allocate potentially large buffer.
10319 * rs6000-nat.c (child_xfer_memory): Ditto.
10320 * symm-nat.c (child_xfer_memory): Ditto.
10321 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10322
494e8a93
JSC
103232002-01-07 Jackie Smith Cashion <[email protected]>
10324
10325 From Nick Clifton <[email protected]>
10326 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10327
d0e1d48e
MS
103282002-01-07 Michael Snyder <[email protected]>
10329
abf22e64 10330 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10331 Don't use exec_bfd if it's NULL.
10332
290b2c7a
MK
103332002-01-06 Mark Kettenis <[email protected]>
10334
abf22e64 10335 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10336
aef21287
AC
103372002-01-06 Andrew Cagney <[email protected]>
10338
10339 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10340 * gnu-nat.c: Ditto.
10341
30efa627
AC
103422002-01-06 Andrew Cagney <[email protected]>
10343
10344 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10345 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10346 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10347 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10348 z8k-coff have not been multi-arched. Update z8k-coff build
10349 status.
10350
9b4ff276
AC
103512002-01-06 Andrew Cagney <[email protected]>
10352
10353 * MAINTAINERS: Mark a29k target as obsolete.
10354 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10355 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10356 comments.
10357 * NEWS: Note that a29k targets are obsolete.
10358 * a29k-tdep.c: Mark as obsolete.
10359 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10360 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10361 a29k-*-vxworks* targets as obsolete.
10362 * remote-adapt.c: Obsolete.
10363 * remote-eb.c: Obsolete.
10364 * remote-mm.c: Obsolete.
10365 * remote-udi.c: Obsolete.
10366 * config/a29k/a29k-udi.mt: Obsolete.
10367 * config/a29k/a29k.mt: Obsolete.
10368 * config/a29k/tm-a29k.h: Obsolete.
10369 * config/a29k/tm-vx29k.h: Obsolete.
10370 * config/a29k/vx29k.mt: Obsolete.
10371
a9011d31
AC
103722002-01-05 Andrew Cagney <[email protected]>
10373
10374 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10375 with BFD_ENDIAN_BIG.
10376
9299404e
AC
103772002-01-05 Andrew Cagney <[email protected]>
10378
10379 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10380 * configure, config.in: Re-generate.
10381 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10382 * defs.h: Do not include <endian.h>.
10383
7e89e357
JT
103842002-01-05 Jason Thorpe <[email protected]>
10385
10386 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10387 * config.in: Regenerate.
10388 * configure.in: Update copyright years.
10389 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10390 * configure: Regenerate.
10391 * i386bsd-nat.c: Update copyright years.
10392 (fill_gregset): Use regcache_collect.
10393 (fetch_inferior_registers): Only fetch integer registers
10394 if requested to do so. Add support for XMM registers
10395 using PT_GETXMMREGS.
10396 (store_inferior_registers): Only store integer registers
10397 if requested to do so. Add support for XMM registers
10398 using PT_SETXMMREGS.
10399 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10400 (store_inferior_registers): Remove.
10401 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10402 (fetch_elfcore_registers): New function.
10403 (i386nbsd_elfcore_fns): New.
10404 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10405 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10406 i386bsd-nat.o.
10407 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10408 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10409 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10410 * config/i386/tm-nbsd.h: Update copyright years.
10411 (HAVE_SSE_REGS): Define.
10412 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10413 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10414 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10415 (SIGCONTEXT_PC_OFFSET): Remove.
10416 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10417
a752853e
AC
104182002-01-05 Andrew Cagney <[email protected]>
10419
10420 * configure.tgt: Remove powerpc-*-macos* target.
10421 * config/m68k/xm-mpw.h: Delete file.
10422 * config/xm-mpw.h: Delete file.
10423 * ser-mac.c: Delete file.
10424 * mpw-make.sed: Delete file.
10425 * mpw-config.in: Delete file.
10426 * mac-xdep.c: Delete file.
10427 * mac-gdb.r: Delete file.
10428 * mac-defs.h: Delete file.
10429 * mac-nat.c: Delete file.
10430 * config/powerpc/macos.mh: Delete file.
10431 * config/powerpc/macos.mt: Delete file.
10432 * config/powerpc/nm-macos.h: Delete file.
10433 * config/powerpc/tm-macos.h: Delete file.
10434 * source.c (openp, open_source_file): Remove obsolete code.
10435 * top.c (gdb_readline): Ditto.
10436 * utils.c (query): Ditto.
10437 * event-top.c (display_gdb_prompt): Ditto.
10438 * Makefile.in (ser-mac.o): Delete obsolete target.
10439 * NEWS: Update.
10440
d7449b42
AC
104412002-01-04 Andrew Cagney <[email protected]>
10442
10443 * defs.h (BIG_ENDIAN): Delete macro definition.
10444 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10445 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10446 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10447 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10448 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10449 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10450 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10451 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10452 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10453 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10454 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10455 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10456 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10457 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10458 * gdbarch.c: Re-generate.
10459
356374e8
DJ
104602002-01-04 Daniel Jacobowitz <[email protected]>
10461
10462 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10463 for core files.
10464
a2b8f8f8
JT
104652002-01-04 Jason Thorpe <[email protected]>
10466
10467 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10468
12466af9
AC
104692002-01-04 Andrew Cagney <[email protected]>
10470
10471 * value.h (value_ptr): Delete typedef.
10472
3549ab40
JT
104732002-01-04 Jason Thorpe <[email protected]>
10474
10475 * i386nbsd-nat.c: Update copyright years.
10476 Include i386-tdep.h.
10477
fedbd091
EZ
104782002-01-04 Elena Zannoni <[email protected]>
10479
10480 * stabsread.c: Update copyright years.
10481
10482 From Debashis Mahata <[email protected]>:
10483 (read_struct_fields): Deal with Sun C compiler erroneous stab
10484 output for structs and unions.
fec8b34f 10485 Fix PR gdb/269.
fedbd091 10486
eb43544b
DJ
104872002-01-04 Daniel Jacobowitz <[email protected]>
10488
10489 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10490 prototype.
10491
1514d34e
DJ
104922002-01-04 Daniel Jacobowitz <[email protected]>
10493
10494 * cp-abi.c: Fix whitespace.
10495 (baseclass_offset): New wrapper function.
10496 * cp-abi.h (baseclass_offset): Add prototype.
10497 (struct cp_abi_ops): Add baseclass_offset pointer.
10498
10499 * valops.c (vb_match): Move to...
10500 * gnu-v2-abi.c (vb_match): here.
10501 * valops.c (baseclass_offset): Move to...
10502 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10503
10504 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10505
10506 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10507 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10508 * hpacc-abi.c (init_hpacc_ops): Likewise.
10509
7f8c9282
DJ
105102002-01-04 Daniel Jacobowitz <[email protected]>
10511
10512 * valops.c (find_overload_match): Accept obj as a
10513 reference parameter. Update it before returning.
10514 * value.h (find_overload_match): Update prototype.
10515 * eval.c (evaluate_subexp_standard): Pass object to
10516 find_overload_match by reference.
10517
f23631e4
AC
105182002-01-03 Andrew Cagney <[email protected]>
10519
10520 * valarith.c: Replace value_ptr with struct value pointer. Remove
10521 register attribute from value declarations.
10522 * valops.c: Ditto.
10523 * value.h: Ditto.
10524 * scm-lang.c (scm_lookup_name): Ditto.
10525
79e10fab 105262002-01-03 Michael Snyder <[email protected]>
abf22e64 10527
79e10fab
AC
10528 Abstract the functionality of iterating over mapped memory
10529 regions into a general purpose iterator function.
abf22e64 10530 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10531 iterator for memory sections.
10532 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10533 (solib_mappings_callback): New function, callback for above.
10534 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10535 (info_mappings_callback): New function, callback for above.
10536
10537 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10538
c5ad026a
MK
105392002-01-01 Mark Kettenis <[email protected]>
10540
d2a7c97a
MK
10541 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10542 * i386-tdep.c: Include "elf-bfd.h".
10543 (process_note_abi_tag_sections): New function.
10544 (i386_gdbarch_init): Add code to recognize various OS/ABI
10545 combinations.
10546
c5ad026a
MK
10547 * maint.c (_initialize_maint_cmds): Add missing \ in
10548 string-literal.
10549
a1a5b71e 10550For older changes see ChangeLog-2001
c906108c
SS
10551\f
10552Local Variables:
10553mode: change-log
10554left-margin: 8
10555fill-column: 74
10556version-control: never
10557End:
This page took 1.927698 seconds and 4 git commands to generate.