* arch-utils.c (generic_register_raw_size): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
46cd78fb
AC
12001-12-09 Andrew Cagney <ac131313@redhat.com>
2
3 * arch-utils.c (generic_register_raw_size): New function.
4 * gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as
5 the static default.
6 * gdbarch.c: Regenerate.
7 * arch-utils.h (generic_register_raw_size): Declare.
8
9 * config/mips/tm-mips.h (REGISTER_RAW_SIZE): Delete macro.
10 * mips-tdep.c (mips_register_raw_size): Make function static.
11 (mips_gdbarch_init): Initialize register_raw_size.
12
2f038fcb
FF
132001-12-08 Fred Fish <fnf@redhat.com>
14
15 * dwarf2read.c (read_typedef): Replace hand crafted type
16 initialization with a call to the init_type() function, which
17 is how the rest of gdb creates types.
18
0b3d7c6d
FF
192001-12-09 Fred Fish <fnf@redhat.com>
20
21 * mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
22 rather than setting it after the type is created.
23
2188cbdd
EZ
242001-12-09 Elena Zannoni <ezannoni@redhat.com>
25
26 * config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Remove
27 definition, it is now multiarched.
28 * ppc-tdep.h (struct gdbarch_tdep): Move from rs6000-tdep.c. Add
29 fields for special register numbers.
30 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize new tdep special
31 regnum fields.
32 (rs6000_saved_pc_after_call): Use gdbarch_tdep registers fields
33 instead of hardcoded macros.
34 (branch_dest, rs6000_pop_frame, rs6000_fix_call_dummy,
35 ppc_push_return_address, rs6000_frame_saved_pc,
36 frame_get_saved_regs, rs6000_frame_chain,
37 rs6000_store_return_value): Ditto.
38 (rs6000_stab_reg_to_regnum): New function.
39 * ppcnbsd-nat.c (fetch_inferior_registers,
40 store_inferior_registers, fetch_core_registers): Ditto.
41 * ppc-linux-tdep.c (ppc_linux_in_sigtramp,
42 ppc_linux_frame_init_saved_regs): Ditto.
43 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
44 fill_gregset): Ditto.
45 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
46 Ditto.
47
6edc140f
FF
482001-12-08 Fred Fish <fnf@redhat.com>
49
50 * c-lang.c (c_create_fundamental_type): For FT_CHAR, pass
51 TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
52 type is created.
53
878ac530
FF
542001-12-08 Fred Fish <fnf@redhat.com>
55
56 * dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
57 * gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to
58 not collide with other flag bits.
59
f5ef7c67
FF
602001-12-08 Fred Fish <fnf@redhat.com>
61
62 * dwarf2read.c (read_base_type): Rename is_unsigned to type_flags.
63 For unsigned types set TYPE_FLAG_UNSIGNED and pass it to
64 init_type().
65
1e8e5c2a
DJ
662001-12-08 Daniel Jacobowitz <drow@mvista.com>
67
68 * Makefile.in (cp-valprint.o): Add dependency on $(cp_abi_h).
69
fa4baff1
JB
702001-12-08 Jim Blandy <jimb@redhat.com>
71
72 * config/s390/s390.mh: Don't use the linux-thread.o module;
73 thread-db.o, lin-lwp.o, and proc-service.o should work just fine.
74
6b325864
AC
752001-12-07 Andrew Cagney <ac131313@redhat.com>
76
77 * PROBLEMS: New file.
78 * README: Move known problems to PROBLEMS file.
79
23abb74e
DJ
802001-12-07 Daniel Jacobowitz <drow@mvista.com>
81
82 * stabsread.c (read_member_functions): Skip member functions which
83 are duplicates of the callable constructor/destructor.
84
03a013f4
JB
852001-12-07 Jim Blandy <jimb@redhat.com>
86
87 * s390-tdep.c (s390_store_return_value): Don't convert float
88 values to double format when returning them; just return them in
89 the first half of the FP register, as the ABI specifies.
90
76b2e19d
DJ
912001-12-07 Daniel Jacobowitz <drow@mvista.com>
92
93 * valops.c (hand_function_call): Check for method arguments in
94 TYPE_ARG_TYPES(), not in TYPE_FIELD ().
95
b9d652ac
DJ
962001-12-07 Daniel Jacobowitz <drow@mvista.com>
97
98 * cp-valprint.c (cp_print_value): Preserve offset if
99 the virtual base is outside of this object.
100
a02fd225
DJ
1012001-12-07 Daniel Jacobowitz <drow@mvista.com>
102
103 * gdbtypes.c (finish_cv_type): New function.
104 (check_typedef): Remove ``register'' keyword from argument.
105 Preserve const and volatile attributes across filling in
106 opaque types.
107 * gdbtypes.h (finish_cv_type): Add prototype.
108
109 * hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type.
110 * stabsread.c (read_struct_type): Likewise.
111 * dwarf2read.c (read_structure_scope): Likewise. Remove redundant
112 assignment to die->type.
113
f4697836
JB
1142001-12-07 Jim Blandy <jimb@redhat.com>
115
116 * printcmd.c (print_scalar_formatted): Compare the length of the
117 value against the lengths of the target's floating-point types,
118 not the host's. Add support for `long double'.
119
0cf3e697
MH
1202001-12-07 Martin M. Hunt <hunt@redhat.com>
121
122 * configure.in: Check for sys/filio.h
123 * configure: Rebuild.
124 * config.in: Add HAVE_SYS_FILIO_H
125 * ser-tcp.c: Conditionally include sys/filio.h.
126
bafdd3b3
AC
1272001-12-07 Andrew Cagney <ac131313@redhat.com>
128
129 * ui-out.c (ui_out_table_begin): Initialize body_flag.
130 (struct ui_out_table): New structure. Move table fields to here.
131 Rename headercurr to headernext.
132 (struct ui_out): Remove table specific fields. Add field table.
133 (ui_out_table_begin, ui_out_table_body, ui_out_table_end): Update.
134 (ui_out_table_header, ui_out_begin): Update.
135 (verify_field_proper_position, verify_field_alignment): Update.
136 (ui_out_new, clear_header_list, append_header_to_list): Update.
137 (get_next_header): Rename get_curr_header. Update comments and
138 code.
139
1c8649cd
AC
1402001-12-06 Andrew Cagney <ac131313@redhat.com>
141
142 * regcache.c (XCALLOC): Delete macro that should not have been
143 added.
144
b6af0555
JS
1452001-12-07 Jiri Smid <smid@suse.cz>
146
147 * dwarf2cfi.c: New file.
148 * dwarf2cfi.h: New file.
149 * dwarf2read.c (dwarf_frame_offset, dwarf_frame_size): New variables.
150 (dwarf_eh_frame_offset, dwarf_eh_frame_size): New variables.
151 (dwarf2_read_section): Change to non static.
152 (dwarf2_locate_sections): Add .debug_frame and .eh_frame section
153 recognition.
154 (FRAME_SECTION, EH_FRAME_SECTION): New define.
155 * elfread.c (elf_symfile_read): Add call of frame informations build.
156 * frame.h (frame_info): Add pointer to unwind_context.
157 * symfile.h (dwarf2_build_frame_info): Add declaration.
158 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Add.
159 * gdbarch.h, gdbarch.c: Regenerate.
160 * Makefile.in: Add dwarf2cfi_h, dwarf2cfi.o
161 * x86-64-tdep.c (i386_gdbarch_init): Initialize target vector to
162 use debug frame info.
163
ed1801df
AC
1642001-12-06 Andrew Cagney <ac131313@redhat.com>
165
166 * defs.h: Do not include "mmalloc.h".
167 (mcalloc, mmalloc, mrealloc, mfree): Delete declaration.
168 * objfiles.c: Include "mmalloc.h".
169 * utils.c: Include "mmalloc.h".
170 (mmalloc, mfree, mrealloc, mmalloc): Make static, change PTR to
171 void pointer.
172
31e9866e
AC
1732001-12-06 Andrew Cagney <ac131313@redhat.com>
174
175 * regcache.c (store_register, fetch_register): Only use
176 fetch/store pseudo-register when function is present. Assume
177 target can handle all registers.
178 (registers_changed): Simplify invalidate loop.
179 (registers_fetched): Add comments.
180 (register_buffer): Add regnum range assertion. Remove code
181 handling -ve regnum.
182 (build_regcache): Make space for pseudo-registers when computing
183 sizeof_registers. Initialize register_offset.
184
185 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Change to a function with
186 predicate.
187 (STORE_PSEUDO_REGISTER): Ditto.
188 * gdbarch.h, gdbarch.c: Re-generate.
189
08ea3996
JB
1902001-12-06 Jim Blandy <jimb@redhat.com>
191
192 * config/s390/nm-linux.h: Watchpoints are either continuable or
193 steppable, not both. The S/390 has continuable watchpoints, so
194 delete the #definition of HAVE_STEPPABLE_WATCHPOINT.
195
284a190e
PM
1962001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
197
198 * go32-nat.c (go32_fetch_registers): Remove call to register_buffer
199 (which is now a static function in regcache.c)
200 and use regcache_collect instead.
201
09227b3e
AC
2022001-12-05 Andrew Cagney <cagney@redhat.com>
203
204 * target.c (cleanup_target): Do not initialize to_query to
205 return_zero.
206
12bffad7
JB
2072001-12-05 Jim Blandy <jimb@redhat.com>
208
209 * s390-tdep.c (s390_get_frame_info): Recognize argument register
210 spills that use the `stm' instruction.
211 (is_arg_reg): New function.
212
ae45a35b 2132001-12-03 Keith Walker <keith.walker@arm.com>
584e692d
AC
214
215 * gdbserver/low-linux.c (arm_register_u_addr): Added.
216 (initialize_arch): Added for ARM target.
217 * config/arm/nm-linux.h (U_REGS_OFFSET): Defined.
218 (REGISTER_U_ADDR): Defined.
219 * config/arm/tm-linux.h (ARM_GNULINUX_TARGET): Defined.
ae45a35b 220
50f6fb4b
CV
2212001-12-04 Corinna Vinschen <vinschen@redhat.com>
222
223 * arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning
224 the prologue if source is assembler.
225
02da6206
JSC
2262001-12-04 Jackie Smith Cashion <jsmith@redhat.com>
227
228 * MAINTAINERS (write-after-approval): Add self.
229
230 * d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.
231
232 From Andrew Cagney <cagney@redhat.com>:
233 * d10v-tdep.c (d10v_frame_chain_valid): Check if the caller's PC
234 is in the entry function.
235 (d10v_use_struct_convention): Store multi-field struct and union
236 return values on the stack.
237
6df29de2
JB
2382001-12-04 Jim Blandy <jimb@redhat.com>
239
7666f43c
JB
240 * s390-tdep.c (s390_get_frame_info): Recognize spills of reg
241 arguments into their stack slots.
242
7286245e
JB
243 * s390-tdep.c (s390_get_frame_info): More doc fixes.
244
6df29de2
JB
245 * s390-tdep.c (s390_get_frame_info): Doc fixes.
246
2a9ecef2
OF
2472001-12-04 Orjan Friberg <orjanf@axis.com>
248
249 * cris-tdep.c (cris_regnums): Add DCCR_REGNUM for completeness.
250 (cris_examine): Add comment about solib prologue parsing.
251 (bdap_prefix): Read offset with correct signedness and size.
252 (move_to_preg_op): Don't rely on register numbering for register size.
253 (none_reg_mode_move_from_preg_op): Ditto.
254
ba5f0d88
OF
2552001-12-04 Orjan Friberg <orjanf@axis.com>
256
257 * solib.c (solib_open): Make path relative if search for absolute path
258 failed. If search for relative path in solib_search_path failed, fall
259 back to search for basename only.
260
7c7a201a
MH
2612001-12-03 Martin M. Hunt <hunt@redhat.com>
262
263 * serial.h: Add a note to serial_open.
264
265 * ser-tcp.c (tcp_open): Rewrite to use a non-blocking connect.
266 Allow UI and CLI to abort connect. Instead of trying 15 times
267 with very long timeouts, just try one connect with a maximum timeout
268 of 15 seconds.
269
e01e171d
KB
2702001-12-03 Kevin Buettner <kevinb@redhat.com>
271
272 * config/powerpc/tm-macos.h (solib.h): Include.
273 * config/powerpc/tm-ppc-eabi.h (solib.h): Include.
274
045f55a6
MS
2752001-12-03 Michael Snyder <msnyder@redhat.com>
276
277 * symtab.c (search_symbols): Make sure alloca size is big enough.
278
fdce7414
AC
2792001-12-03 Andrew Cagney <ac131313@redhat.com>
280
281 * MAINTAINERS: Prune m68k targets down to just m68k-elf.
282
386e4208
JB
2832001-12-03 Jim Blandy <jimb@redhat.com>
284
285 * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
286 orig_sp if it's not initialized.
287
14e534aa
PM
2882001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
289
290 * findvar.c (locate_var_value): Specify in which register a register
291 variable is stored.
292
441532d7
PM
2932001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
294
295 * win32-nat.c (mappings): Correct position of XMM registers,
296 based on FXSAVE instruction structure.
297
4c178295
AC
2982001-12-02 Andrew Cagney <ac131313@redhat.com>
299
753edfef
AC
300 * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
301 mmalloc.
302
aac7f4ea
AC
303 * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c,
304 nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c,
305 symmisc.c, xcoffread.c: Use xmfree instead of mfree.
306
4c178295
AC
307 * jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
308 mrealloc.
309
22797942
AC
3102001-12-02 Andrew Cagney <ac131313@redhat.com>
311
312 * i386-tdep.c (i386go32_frame_saved_pc): New function.
313 * config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
314 (FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
315
2607059c
AC
3162001-12-01 Andrew Cagney <ac131313@redhat.com>
317
318 * defs.h: Update comment on HOST_BYTE_ORDER.
319 * config/xm-aix4.h: Delete definition of HOST_BYTE_ORDER.
320 * config/xm-nbsd.h, config/alpha/xm-alphalinux.h: Ditto.
321 * config/alpha/xm-alphaosf.h, config/alpha/xm-fbsd.h: Ditto.
322 * config/arm/xm-linux.h, config/i386/xm-cygwin.h: Ditto.
323 * config/i386/xm-i386bsd.h, config/i386/xm-i386gnu.h: Ditto.
324 * config/i386/xm-i386lynx.h, config/i386/xm-i386m3.h: Ditto.
325 * config/i386/xm-i386mach.h, config/i386/xm-i386v.h: Ditto.
326 * config/i386/xm-ptx.h, config/i386/xm-symmetry.h: Ditto.
327 * config/ia64/xm-aix.h, config/ia64/xm-linux.h: Ditto.
328 * config/m68k/xm-3b1.h, config/m68k/xm-apollo68b.h: Ditto.
329 * config/m68k/xm-apollo68v.h, config/m68k/xm-delta68.h: Ditto.
330 * config/m68k/xm-dpx2.h, config/m68k/xm-hp300bsd.h: Ditto.
331 * config/m68k/xm-hp300hpux.h, config/m68k/xm-m68k.h: Ditto.
332 * config/m68k/xm-m68klynx.h, config/m68k/xm-sun2.h: Ditto.
333 * config/m68k/xm-sun3.h, config/m88k/xm-dgux.h: Ditto.
334 * config/m88k/xm-m88k.h, config/mips/xm-irix3.h: Ditto.
335 * config/mips/xm-irix5.h, config/mips/xm-linux.h: Ditto.
336 * config/mips/xm-mips.h, config/mips/xm-mipsm3.h: Ditto.
337 * config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h: Ditto.
338 * config/mips/xm-riscos.h, config/pa/xm-hppab.h: Ditto.
339 * config/pa/xm-hppah.h, config/powerpc/xm-linux.h: Ditto.
340 * config/romp/xm-rtbsd.h, config/rs6000/xm-rs6000.h: Ditto.
341 * config/rs6000/xm-rs6000ly.h, config/s390/xm-linux.h: Ditto.
342 * config/sparc/xm-sparc.h, config/sparc/xm-sparclynx.h: Ditto.
343 * config/vax/xm-vax.h: Ditto.
344
345 * config/a29k/tm-vx29k.h: Add #error as file depends on
346 HOST_BYTE_ORDER.
347 * config/a29k/tm-a29k.h: Ditto.
348 * MAINTAINERS (a29k-amd-udi): Document as broken.
349
7bc65f05
AC
3502001-12-01 Andrew Cagney <ac131313@redhat.com>
351
3680c638
AC
352 * Makefile.in (tm-news.h, tm-isi.h, xm-news1000.h): Delete.
353 (ALLDEPFILES): Delete news-xdep.c.
354 (news-xdep.o): Delete.
355 (isi-xdep.o): Delete.
356 * configure.tgt: Delete m68*-isi-*, m68*-sony-*, m68*-rom68k-*,
357 m68*-*bug-*, m68*-monitor-* and m68*-est-* targets.
358 * configure.host: Delete m68030-sony-*, m68*-isi-* and m68*-sony-*
359 Hosts.
360 * m68k-tdep.c (isi_skip_prologue): Delete function.
361 * news-xdep.c: Delete file.
362 * isi-xdep.c: Delete file.
363 * config/m68k/isi.mh: Delete file.
364 * config/m68k/isi.mt: Delete file.
365 * config/m68k/news.mh: Delete file.
366 * config/m68k/news.mt: Delete file.
367 * config/m68k/news1000.mh: Delete file.
368 * config/m68k/nm-news.h: Delete file.
369 * config/m68k/tm-isi.h: Delete file.
370 * config/m68k/tm-news.h: Delete file.
371 * config/m68k/xm-isi.h: Delete file.
372 * config/m68k/xm-news.h: Delete file.
373 * config/m68k/xm-news1000.h: Delete file.
374
ccb25a8a
AC
375 * kdb-start.c: Delete file.
376 * stuff.c: Delete file.
377
9b567150
AC
378 * NEWS: Note that a29k-nyu-sym1 and a29k-*-kern* were deleted.
379 * configure.host: Delete a29k-*-* host.
380 * configure.tgt: Delete a29k-*-kern* and a29k-*-sym1* targets.
381 * config/a29k/a29k-kern.mt: Delete file.
382 * config/a29k/nm-ultra3.h: Delete file.
383 * config/a29k/tm-ultra3.h: Delete file.
384 * config/a29k/ultra3.mh: Delete file.
385 * config/a29k/ultra3.mt: Delete file.
386 * config/a29k/xm-ultra3.h: Delete file.
387
7e24f0b1
AC
388 * NEWS: Note that i[3456]86-*-sunos* was deleted.
389 * Makefile.in (sun386-nat.o): Delete.
390 * configure.tgt: Delete i[3456]86-*-sunos* target.
391 * configure.host: Delete i[3456]86-*-sunos* host.
392 * sun386-nat.c: Delete.file.
393 * config/i386/nm-sun386.h: Delete file.
394 * config/i386/sun386.mh: Delete file.
395 * config/i386/sun386.mt: Delete file.
396 * config/i386/tm-sun386.h: Delete file.
397 * config/i386/xm-sun386.h: Delete file.
398
1406caf7
AC
399 * NEWS: Note that ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*
400 and ns32k-utek-* were deleted.
401 * Makefile.in (ultra3-nat.o, ultra3-xdep.o): Delete.
402 (umax-xdep.o, ns32km3-nat.o): Delete.
403 * configure.tgt: Delete ns32k-*-mach3*, ns32k-utek-sysv* and
404 ns32k-utek-* targets.
405 * configure.host: Delete ns32k-*-mach3*, ns32k-umax-* and
406 ns32k-utek-sysv* hosts.
407 * ultra3-nat.c: Delete file.
408 * ultra3-xdep.c: Delete file.
409 * umax-xdep.o: Delete file.
410 * ns32km3-nat: Delete file.
411 * config/ns32k/merlin.mh: Delete file.
412 * config/ns32k/merlin.mt: Delete file.
413 * config/ns32k/nm-umax.h: Delete file.
414 * config/ns32k/ns32km3.mh: Delete file.
415 * config/ns32k/ns32km3.mt: Delete file.
416 * config/ns32k/tm-merlin.h: Delete file.
417 * config/ns32k/tm-ns32km3.h: Delete file.
418 * config/ns32k/umax.mh: Delete file.
419 * config/ns32k/umax.mt: Delete file.
420 * config/ns32k/xm-merlin.h: Delete file.
421 * config/ns32k/xm-ns32km3.h: Delete file.
422 * config/ns32k/xm-umax.h: Delete file.
423
5e734e1f
AC
424 * NEWS: Note that m88*-harris-cxux* was deleted.
425 * configure.host: Delete m88*-harris-cxux* host.
426 * configure.tgt: Delete m88*-harris-cxux* target.
427 * config/m88k/cxux.mh: Delete file.
428 * config/m88k/cxux.mt: Delete file.
429 * config/m88k/nm-cxux.h: Delete file.
430 * config/m88k/tm-cxux.h: Delete file.
431 * config/m88k/xm-cxux.h: Delete file.
432
7768dd6c
AC
433 * NEWS: Note that powerpc-*-netware*, powerpcle-*-cygwin* and
434 powerpcle-*-solaris* were deleted.
435 * configure.host: Delete powerpcle-*-cygwin* and
436 powerpcle-*-solaris* hosts.
437 * configure.tgt: Delete powerpc-*-netware*, powerpcle-*-cygwin*
438 and powerpcle-*-solaris* targets.
439 * config/powerpc/cygwin.mh: Delete file.
440 * config/powerpc/cygwin.mt: Delete file.
441 * config/powerpc/nm-solaris.h: Delete.file.
442 * config/powerpc/ppc-nw.mt: Delete file.
443 * config/powerpc/solaris.mh: Delete file.
444 * config/powerpc/solaris.mt: Delete file.
445 * config/powerpc/tm-cygwin.h: Delete file.
446 * config/powerpc/tm-ppc-nw.h: Delete file.
447 * config/powerpc/tm-solaris.h: Delete file.
448 * config/powerpc/xm-cygwin.h: Delete file.
449 * config/powerpc/xm-mpw.h: Delete file.
450 * config/powerpc/xm-solaris.h: Delete file.
451
7bc65f05
AC
452 * NEWS, MAINTAINERS: Note that w65-*-* was deleted.
453 * configure.tgt: Delete w65-*-*.
454 * Makefile.in (w65-tdep.o): Delete.
455 * config/w65/tm-w65.h: Delete file.
456 * config/w65/w65.mt: Delete file.
457 * w65-tdep.c: Delete file.
458
e2caac18
AC
459 * NEWS: Mention deleted tic80-*-*.
460 * configure.tgt: Delete tic80-*-*.
461 * Makefile.in (tic80-tdep.o): Delete.
462 * config/tic80/tic80.mt: Delete.
463 * config/tic80/tm-tic80.h: Delete.
464 * tic80-tdep.c: Delete.
465 * MAINTAINERS: Note that tic80 was deleted.
466
6ded7999
KB
4672001-11-30 Kevin Buettner <kevinb@redhat.com>
468
469 * ppc-linux-tdep.c (solib-svr4.h): Include.
470 (ppc_linux_svr4_fetch_link_map_offsets): New function.
471 * ppc-tdep.h (ppc_linux_svr4_fetch_link_map_offsets): Declare.
472 * rs6000-tdep.c (solib-svr4.h): Include.
473 (rs6000_gdbarch_init): Set up ppc_linux_svr4_fetch_link_map_offsets()
474 as the link map offsets fetcher.
475
476 * config/powerpc/aix.mt (TDEPFILES): Add solib-svr4.o.
477 * config/powerpc/macos.mt (TDEPFILES): Likewise.
478 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
479 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
480 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
481 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
482 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
483 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
484 * config/rs6000/aix4.mt (TDEPFILES): Likewise.
485 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
486 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
487
a42dd537
KB
4882001-11-30 Kevin Buettner <kevinb@redhat.com>
489
490 From Louis Hamilton <hamilton@redhat.com>:
491 * arm-tdep.c (solib-svr4.h): Include.
492 (arm_linux_svr4_fetch_link_map_offsets): New function.
493 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
494 (arm_linux_svr4_fetch_link_map_offsets): Declare.
495
21cfb3b6
DJ
4962001-11-30 Daniel Jacobowitz <drow@mvista.com>
497
498 * values.c (value_primitive_field): Add embedded_offset to the
499 address of structure members.
500 * gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
501 attempting to access vtable pointer. Set using_enc_p if we cast.
502 (gnuv3_virtual_fn_field): Call value_cast with structure rather than
503 structure pointer. Cast to base type before attempting to access
504 vtable pointer.
505
16333c4f
EZ
5062001-11-29 Elena Zannoni <ezannoni@redhat.com>
507
508 * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.
509
510 * ppc-tdep.h (PPC_GPLAST_REGNUM): Define.
511
512 * ppc-linux-nat.c: Include ppc-tdep.h.
513 (ppc_register_u_addr): Don't use the static array regmap[],
514 dynamically define the mapping instead.
515 (supply_gregset): Ditto.
516 (fill_gregset): Ditto.
517 (COPY_REG): Delete macro defintion.
518 (regmap): Delete array.
519
aead120c
JB
5202001-11-29 Jim Blandy <jimb@redhat.com>
521
c8f9d51c
JB
522 Tighten up GDB's support for returning structs by value.
523 * s390-tdep.c (s390_use_struct_convention): New function.
524 (s390_gdbarch_init): Register it as the S/390's
525 USE_STRUCT_CONVENTION method. Register
526 generic_cannot_extract_struct_value_address as our
527 EXTRACT_STRUCT_VALUE_ADDRESS method.
528 * arch-utils.c (generic_cannot_extract_struct_value_address): New
529 function.
530 * arch-utils.h: Add corresponding prototype.
531
aead120c
JB
532 * values.c (value_being_returned): Make error message a proper
533 sentence.
534
a8329558 5352001-11-27 Keith Walker <keith.walker@arm.com>
aead120c 536
a8329558
KW
537 * dwarf2read.c (read_attribute_value): New function to handle
538 DW_FORM_indirect
539 (read_attribute): uses read_attribute_value
540
d0ad30c9
JB
5412001-11-29 Jim Blandy <jimb@redhat.com>
542
543 * s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
544 save the return address register, assume that the return address
545 is still in there.
546
54c92070
AC
5472001-11-27 Andrew Cagney <ac131313@redhat.com>
548
549 * MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
550 Zaretskii).
551
62f81eda
JB
5522001-11-25 Jim Blandy <jimb@redhat.com>
553
554 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
555
4ed90530
JB
5562001-11-27 Jim Blandy <jimb@redhat.com>
557
5c3cf190
JB
558 * s390-tdep.c: Get frame chains and saved pc values properly from
559 dummy frames.
560 (s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
561 saved PC from the dummy frame's registers.
562 (s390_frame_chain): Same for the saved SP.
563 (s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
564 the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
565 set correctly.
566
31c4d430
JB
567 * s390-tdep.c (s390_frame_chain): Remember that the SP's element
568 of the frame's saved_regs array is special.
569
4ed90530
JB
570 * s390-tdep.c (register_names): Call the general-purpose registers
571 `r0' -- `r15', and the floating-point registers `f0' -- `f15', to
572 match the assembly language.
573
97da3b20
CF
5742001-11-26 Pierre Muller <muller@ics.u-strasbg.fr>
575
576 * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
577 HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
578 * win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include
579 extended registers if HAVE_SSE_REGS is defined.
580 (mappings array): Add offset of extended registers.
581 (thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
582
467d8519
TT
5832001-11-26 Tom Tromey <tromey@redhat.com>
584
585 * NEWS: Updated.
586 * event-loop.c (start_event_loop): Call
587 after_char_processing_hook.
588 * event-top.h (after_char_processing_hook): Declare.
589 * event-top.c (rl_callback_read_char_wrapper): Call
590 after_char_processing_hook.
591 (after_char_processing_hook): New global.
592 * top.c (operate_saved_history): New global.
593 (gdb_rl_operate_and_get_next): New function.
594 (init_main): Add the operate-and-get-next defun.
595 (gdb_rl_operate_and_get_next_completion): New function.
596
c2a727fa
TT
5972001-11-26 Tom Tromey <tromey@redhat.com>
598
599 * NEWS: Update for --args.
600 * infcmd.c (construct_inferior_arguments): Moved from ...
601 * fork-child.c: ... here.
602
b77b1eb7
JB
6032001-11-26 Jim Blandy <jimb@redhat.com>
604
605 * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
606 comment explaining that hand-written assembly code can have line
607 number info but no debug info for an enclosing function.
608
7d69eeec
JJ
6092001-11-26 Jakub Jelinek <jakub@redhat.com>
610
611 * sparc-nat.c (fetch_inferior_registers): Don't rely
612 on CORE_ADDR being 32-bit.
613 (store_inferior_registers): Likewise.
614
1f5dc670
EZ
6152001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
616
c64a2835
EZ
617 * config/djgpp/config.sed: Fix an error in etc/ at "make install"
618 time on non-LFN systems where standards*.inf* expands to nothing.
619
1f5dc670
EZ
620 * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
621
d3ff4a77
CF
6222001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
623 Christopher Faylor <cgf@redhat.com>
624
625 * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
626 be able to remove the DLL when unloaded. Remove unused last field.
627 (handle_unload_dll): New function to handle unloading of DLL.
628 (solib_symbols_add): Change return type to struct objfile *.
629 (get_child_debug_event): Call handle_unload_dll function.
630
2a3d5645
CF
6312001-11-24 Christopher Faylor <cgf@redhat.com>
632
633 * win32-nat.c (_initialize_check_for_gdb_ini): New function.
634 * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
635 (GDBINIT_FILENAME): Remove.
636
eb7cedd9
MK
6372001-11-23 Mark Kettenis <kettenis@gnu.org>
638
639 Add x86 OpenBSD native configuration.
640 * config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
641 config/i386/nm-obsd.h: New files.
642 * configure.host (i[3456]86-*-openbsd*): New host.
643 * configure.tgt (i[3456]86-*-openbsd*): New target.
644 * NEWS: Update.
645
172d914f
AC
6462001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
647
648 * GDB 5.1 was released.
649
552c04a7
TT
6502001-11-21 Tom Tromey <tromey@redhat.com>
651
652 Fix for PR gdb/209, PR gdb/156:
653 * gdbarch.c, gdbarch.h: Rebuilt.
654 * gdbarch.sh: Added `construct_inferior_arguments'.
655 * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
656 Typo fix.
657 * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
658 * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
659 (inferior_argc, inferior_argv): New globals.
660 (notice_args_set): New function.
661 (set_inferior_args): Clear inferior_argc and inferior_argv.
662 (set_inferior_args_vector): New function.
663 (get_inferior_args): Handle inferior argument vector.
664 (run_command): Use get_inferior_args().
665 (notice_args_read): New function.
666 (_initialize_infcmd): Don't call set_inferior_args.
667 * command.h: Typo fix.
668 (cmd_list_element): Added pre_show_hook.
669 * main.c (captured_main): Added --args option.
670 (print_gdb_help): Document --args.
671 * inferior.h (construct_inferior_arguments): Declare.
672 (set_inferior_args_vector): Likewise.
673 * fork-child.c (construct_inferior_arguments): New function.
674
da9c7185
KB
6752001-11-21 Kevin Buettner <kevinb@redhat.com>
676
677 * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
678 blocked signals.
679
680 * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
681
98eedd63
JB
6822001-11-20 Jim Blandy <jimb@redhat.com>
683
684 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
685 default definition; this is never used.
686
5bbc1a8e
KS
6872001-11-20 Keith Seitz <keiths@redhat.com>
688
689 * varobj.c (c_value_of_child): Release memory for "name" when
690 finshed using it.
691 (c_type_of_child): Likewise.
692 (cplus_value_of_child): Isolate the use of name_of_child to
693 one case that needs it.
694 Release memory for "name" when finished using it.
695
1ad24239
KS
6962001-11-20 Keith Seitz <keiths@redhat.com>
697
698 * top.c (gdb_init): Call init_ui_hook before initializing
699 the default UI.
700
4cb0dbef
EZ
7012001-11-19 Elena Zannoni <ezannoni@redhat.com>
702
703 * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
704 declaration.
705
f00d3753
EZ
7062001-11-19 Elena Zannoni <ezannoni@redhat.com>
707
708 * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
709 accessing registers[].
710 (fill_fpregset): Ditto.
711
8b6f1f3a
EZ
7122001-11-19 Elena Zannoni <ezannoni@redhat.com>
713
714 * infptrace.c (fetch_register): Dynamically allocate buffer for
715 register.
716 (store_register): Use regcache_collect, instead of accessing the
717 register buffer directly.
718
479412cd
DJ
7192001-11-19 Daniel Jacobowitz <drow@mvista.com>
720
721 * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
722 cur_frame to heuristic_proc_desc.
723 (heuristic_proc_desc): Add cur_frame argument. Do not read SP
724 if cur_frame == 0.
725 (after_prologue): Pass cur_frame == 0 to find_proc_desc.
726 (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
727 (mips_init_extra_frame_info): Likewise.
728
ab290c52
AC
7292001-11-19 Andrew Cagney <ac131313@redhat.com>
730
731 * defs.h (return_to_top_level): Comment.
732
22e04375
AC
733Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
734
735 * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
736 concatenation for error parameter.
737 (remote_cisco_open): Ditto.
738
30c6b1fb
KS
7392001-11-19 Keith Seitz <keiths@redhat.com>
740
741 * varobj.c (c_value_of_child): Use the wrapper function,
742 gdb_value_struct_elt.
743 (cplus_value_of_child): Likewise.
744
bd1ef5d2
AC
7452001-11-18 Andrew Cagney <ac131313@redhat.com>
746
747 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
748 * config/i386/tm-i386.h (NUM_REGS): Delete.
749
76fb44f4
KB
7502001-11-18 Kevin Buettner <kevinb@redhat.com>
751
752 * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
753 conversion for I386_LINUX_ORIG_EAX_REGNUM.
754
ed909a0d
AC
7552001-11-18 Andrew Cagney <ac131313@redhat.com>
756
757 * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
758 * config/i386/tm-embed.h: Delete.
759
4edb848c
AC
7602001-11-17 Andrew Cagney <ac131313@redhat.com>
761
762 * Makefile.in (distclean): Explicitly delete Makefile et.al. in
763 gdbserver sub directory.
764
f87ece4d
AC
7652001-11-17 Andrew Cagney <ac131313@redhat.com>
766
767 * README: Mention need for alloca(). Mention problems with
768 alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
769
8a406745
KB
7702001-11-17 Kevin Buettner <kevinb@redhat.com>
771
772 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
773 of accessing registers[] directly.
774
7dd945fa
KB
7752001-11-17 Kevin Buettner <kevinb@redhat.com>
776
777 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
778 when fetching ORIG_EAX.
779
c2152441
DJ
7802001-11-17 Daniel Jacobowitz <drow@mvista.com>
781
782 * arm-linux-nat.c: Don't include <asm/ptrace.h>.
783 (fetch_register): Use elf_gregset_t instead of struct pt_regs.
784 (fetch_regs): Likewise.
785 (store_register): Likewise.
786 (store_regs): Likewise.
787
b0677c2e
DJ
7882001-11-17 Daniel Jacobowitz <drow@mvista.com>
789
790 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
791 with regcache_collect.
792 (fill_fpregset): Likewise.
793
d2b57b94
DJ
7942001-11-17 Daniel Jacobowitz <drow@mvista.com>
795
796 * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
797 and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
798 * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
799 * sparc-linux-nat.c: New file, from Mark Kettenis.
800
4bdf3d34
JJ
8012001-11-16 Jakub Jelinek <jakub@redhat.com>
802
803 * dwarf2read.c (dwarf_str_buffer): New.
804 (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
805 (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
806 (dwarf2_has_info): Clear dwarf_str_offset.
807 (dwarf2_build_psymtabs): Read .debug_str section if present.
808 (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
809 DWARF_STR_SIZE.
810 (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
811 (read_attribute): Handle DW_FORM_strp.
812 (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
813 handling code.
814 (read_indirect_string): New.
815 (dump_die): Handle DW_FORM_strp.
816
20a940cc
JB
8172001-11-16 Jim Blandy <jimb@redhat.com>
818
819 * s390-tdep.c: Tweak argument-passing to match GCC bugs.
820 (is_float_singleton, is_struct_like, is_float_like): New
821 functions, that isolate the weirdness.
822 (is_double_or_float, is_simple_arg, pass_by_copy_ref,
823 is_double_arg): Use is_struct_like and is_float_like, rather than
824 testing the type codes ourselves.
825 (s390_push_arguments): When passing args on the stack, align each
826 on to a four-byte boundary, regardless of what the type itself
827 needs.
828
e5d63811
BH
8292001-11-16 Ben Harris <bjh21@netbsd.org>
830
831 * Makefile.in (os9kread.o): Replace $< with autoconf-approved
832 $(srcdir)/....
833 (procfs.o): Ditto.
834 (z8k-tdep.o): Ditto.
835
1005d5ef
BH
8362001-11-16 Ben Harris <bjh21@netbsd.org>
837
838 * MAINTAINERS (write-after-approval): Add self.
839
a1677dfb
JB
8402001-11-15 Jim Blandy <jimb@redhat.com>
841
842 * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
843 bytes long should be handled as DOUBLE_ARGs; don't recognize them
844 as SIMPLE_ARGs.
845
ad10f812
AC
8462001-11-12 Andrew Cagney <ac131313@redhat.com>
847
848 * remote.c (struct packet_reg): Declare.
849 (struct remote_state): Add fields sizeof_g_packet and g_packet.
850 (init_remote_state): Initialize sizeof_g_packet and g_packet.
851 (free_remote_state): Free g_packet.
852 (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
853 (remote_wait): Use above instead of gdbarch methods
854 REGISTER_RAW_SIZE and REGISTER_BYTES.
855 (remote_async_wait): Ditto.
856 (remote_fetch_registers, remote_store_registers): Ditto.
857 (store_register_using_P): Ditto.
858
9525aa90
AC
8592001-11-15 Andrew Cagney <ac131313@redhat.com>
860
861 * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
862 Second attempt.
863
faf833ca
AC
8642001-11-15 Andrew Cagney <ac131313@redhat.com>
865
866 * utils.c (phex_nz): For default case, set str to phex_nz return
867 value.
45a1e866 868 (phex): Ditto.
faf833ca 869
193cb69f
AC
8702001-11-15 Andrew Cagney <ac131313@redhat.com>
871
872 * TODO (register_buffer): Delete.
873 * regcache.c (register_buffer): Make static.
874 (regcache_collect): New function.
875 * regcache.h (register_buffer): Delete declaration.
876 (regcache_collect): Declare.
877 * remote.c (store_register_using_P): Rewrite using
878 regcache_collect.
879 (remote_store_registers): Ditto.
880 * go32-nat.c (store_register): Ditto.
881
d01949b6
AC
8822001-11-14 Andrew Cagney <ac131313@redhat.com>
883
884 * remote.c (struct remote_state): Declare.
885 (get_remote_state): New function.
886 (init_remote_state): New function.
887 (remote_gdbarch_data_handle): New global.
888 (build_remote_packet_sizes): Delete function, moved to
889 init_remote_state.
890 (register_remote_packet_sizes): Delete function.
891 (actual_register_packet_size, remote_packet_size): Moved to
892 ``struct remote_state''.
893 (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
894 (free_remote_state): New function.
895 (get_memory_packet_size, get_memory_read_packet_size)
896 (set_thread, remote_unpack_thread_info_response)
897 (remote_get_threadinfo, parse_threadlist_response)
898 (remote_get_threadlist, remote_current_thread)
899 (remote_threads_info, remote_threads_extra_info)
900 (extended_remote_restart, get_offsets)
901 (get_offsets, remote_check_symbols, remote_open_1)
902 (remote_async_open_1, remote_detach, remote_async_detach)
903 (remote_resume, remote_async_resume, remote_wait)
904 (remote_async_wait, remote_fetch_registers)
905 (store_register_using_P, remote_store_registers)
906 (check_binary_download, putpkt_binary)
907 (remote_insert_breakpoint, remote_remove_breakpoint)
908 (remote_insert_watchpoint, remote_remove_watchpoint)
909 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
910 (compare_sections_command, remote_query)
911 (remote_rcmd, remote_rcmd, packet_command)
912 (remote_info_process): Update.
913
1ff9c3d6
AC
9142001-11-14 Andrew Cagney <ac131313@redhat.com>
915
916 * remote.c: Include "gdb_assert.h".
917 (tty_input): Wire buffer to 400 bytes.
918 (readsocket): Check tty_input doesn't overflow.
919 (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
920 tty_input.
921
86884b37
MS
9222001-11-14 Michael Snyder <msnyder@redhat.com>
923
924 * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
925 TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
926 into the instruction address space.
927 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
928
47663de5
MS
9292001-11-14 Michael Snyder <msnyder@redhat.com>
930 Add address space identifiers to expression language for types.
931 * c-exp.y (space_identifier, cv_with_space_id,
932 const_or_volatile_or_space_identifier_noopt,
933 const_or_volatile_or_space_identifier): New terminals.
934 (ptype): Accept const_or_volatile_or_space_identifier.
935 (typebase): Accept const_or_volatile_or_space_identifier.
936 * c-typeprint.c (c_type_print_cv_qualifier): Rename to
937 c_type_print_modifier. Handle address space modified types.
938 * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
939 New type flags.
940 (struct type): Add new field as_type for addr-space qualified types.
941 (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
942 identical to this one except for address-space qualification.
943 * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
944 (address_space_name_to_int): New function.
945 (address_space_int_to_name): New function.
946 (make_type_with_address_space): New function.
947 (make_cv_type): Handle as_type field of new struct type object.
948 * parse.c (check_type_stack_depth): New function.
949 (push_type_address_space): New function.
950 (follow_types): Handle types with address-space qualifier.
951 * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
952
0d43edd1
JB
9532001-11-14 Jim Blandy <jimb@redhat.com>
954
9a1befc9
JB
955 * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
956 pointer and the SP are often the same, so we can't pop the frame
957 by setting the SP to the FP; we need to get the old SP from
958 saved_regs.
959
f2c6cfba
JB
960 * s390-tdep.c (s390_extract_return_value): Returned `float' values
961 can simply be copied bitwise from the registers into the value
962 object's buffer.
963
09025237
JB
964 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
965 the frame's saved_regs array correctly.
966
0d43edd1
JB
967 * symfile.c (simple_read_overlay_table): Make sure we can find
968 both `_novlys' and `_ovly_table' before we try anything else;
969 print a helpful error message.
970 (simple_overlay_update): No need to print error message here.
971
befc81ac
MS
9722001-11-14 Michael Snyder <msnyder@redhat.com>
973
974 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
975
032758dc
AC
9762001-11-10 Andrew Cagney <ac131313@redhat.com>
977
978 * arm-tdep.c (arm_register_type): New function.
979 (arm_register_convertible): Delete.
980 (arm_register_convert_to_virtual): Delete.
981 (arm_register_convert_to_raw): Delete.
982 * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
983 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
984 (REGISTER_CONVERT_TO_RAW): Delete.
985 (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
986 (arm_register_type): Declare.
987
8b982acf
EZ
9882001-11-13 Elena Zannoni <ezannoni@redhat.com>
989
990 From Andrew Cagney <cagney@redhat.com>:
991 * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
992 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
993 new builtin types.
994
648f4f79
JB
9952001-11-13 Jim Blandy <jimb@redhat.com>
996
78f8b424
JB
997 * s390-tdep.c: Rewrite inferior function call code. This may
998 break zSeries support; that should be fixed soon.
999 #include "gdb_assert.h".
1000 (is_integer_like, is_pointer_like, is_simple_arg,
1001 pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
1002 round_down, alignment_of): New functions.
1003 (s390_push_arguments): Rewritten to handle passing large arguments
1004 by value, and to make more readable.
1005
4c8287ac
JB
1006 * s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
1007 interact correctly with generic dummy frames.
1008 (s390_pop_frame_regular): Move the guts of the frame-popping code
1009 to here, to be called by generic_pop_current_frame. Use the
1010 frame's saved_regs array; this works for `return' as well as
1011 inferior function calls.
1012
0adb2aba
JB
1013 * s390-tdep.c (s390_gdbarch_init): Register the function
1014 `standard_coerce_float_to_double', since GCC for the S/390 follows
1015 the standard rules for passing floats.
1016
641225a4
JB
1017 * valops.c (default_coerce_float_to_double,
1018 standard_coerce_float_to_double): Doc fixes.
1019
648f4f79
JB
1020 Patch from Peter Schauer:
1021
1022 * symtab.c (find_pc_sect_line): If we can't find the function
1023 containing PC, we certainly won't have line number information for
1024 that location, so return zero immediately.
1025
0cb2e7c5
AC
10262001-11-10 Andrew Cagney <ac131313@redhat.com>
1027
1028 * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
1029 (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
1030 undef.
1031 * i960-tdep.c (i960_register_type): New function.
1032 * config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
1033 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1034 (REGISTER_CONVERT_TO_RAW): Delete.
1035 (REGISTER_VIRTUAL_TYPE): Update. Call i960_register_type.
1036
2c10d744
AC
10372001-11-10 Andrew Cagney <ac131313@redhat.com>
1038
1039 * m88k-tdep.c (m88k_register_type): New function.
1040 * config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
1041 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1042 (REGISTER_CONVERT_TO_RAW): Delete.
1043 (m88k_register_type): Declare.
1044 (REGISTER_VIRTUAL_TYPE): Update. Call m88k_register_type.
1045
226271d3
MK
10462001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
1047
1048 * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
1049 * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
1050 * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
1051 (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
1052
c2636352
JB
10532001-11-12 Jim Blandy <jimb@redhat.com>
1054
1055 Patch from Andreas Schwab <schwab@suse.de>:
1056 * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
1057 instead of xmalloc.
1058
c26e4683
JB
10592001-11-12 Jim Blandy <jimb@redhat.com>
1060
1061 * corefile.c (write_memory_unsigned_integer,
1062 write_memory_signed_integer): New functions.
1063 (write_memory): Move to be with other write_memory_* functions.
1064 * gdbcore.h (write_memory_unsigned_integer,
1065 write_memory_signed_integer): New declarations.
1066
9aa1fe7e
GK
10672001-11-11 Geoffrey Keating <geoffk@redhat.com>
1068
1069 * dwarf2read.c (dwarf_decode_lines): Properly deal with
1070 unknown standard opcodes.
1071
5b582da3
AC
10722001-11-11 Andrew Cagney <ac131313@redhat.com>
1073
1074 * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
1075 (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
1076 (i586-sco-sysv5uw7.1.1): Mention problem with threads.
1077
b18c45ed
AC
10782001-11-11 Andrew Cagney <ac131313@redhat.com>
1079
1080 From Mark Kettenis <kettenis@gnu.org>:
1081 * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
1082 breakpoints when they fail.
1083
3d6d86c6
AC
10842001-11-10 Andrew Cagney <ac131313@redhat.com>
1085
1086 * printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
1087 gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
1088 Replace value_ptr with struct value.
1089
6943961c
AC
10902001-11-10 Andrew Cagney <ac131313@redhat.com>
1091
1092 * c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
1093 p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
1094 value_ptr with struct value.
1095
61051030
AC
10962001-11-10 Andrew Cagney <ac131313@redhat.com>
1097
1098 * eval.c: Replace most occurances of value_ptr with struct value.
1099
f312f057
JB
11002001-11-09 Jim Blandy <jimb@redhat.com>
1101
d4d0c21e
JB
1102 * s390-tdep.c: Don't use a call dummy.
1103 (s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
1104 (s390_push_return_address): Put the address of the inferior call
1105 breakpoint in r14.
1106 (s390_gdbarch_init):
1107 - Provide trivial definition of s390_call_dummy_words; register it
1108 with the gdbarch appropriately.
1109 - Delete S390x_call_dummy_words.
1110 - Gather inferior-call-related settings into a group.
1111 - Use generic dummy frames.
1112 - Put the inferior call breakpoint at the entry point.
1113 - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
1114 generic_push_dummy_frame, generic_fix_call_dummy.
1115 - There is a call dummy breakpoint offset; it's zero.
1116
f7aaef7d 1117 * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
01c464e9
JB
1118 into the dummy frame, to help us get backtraces.
1119
f312f057
JB
1120 * values.c (value_as_address): If VAL is a function or method,
1121 just return its address; don't let COERCE_ARRAY convert its
1122 address to a pointer, and then have unpack_long convert it back to
1123 an address.
1124
5598ce11
PM
11252001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1126
1127 * p-lang.c (is_pascal_string_type): New function to determine if a
1128 type is a string type.
1129 * p-lang.h: Add prototype for is_pascal_string_type.
1130 * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
1131 to display strings nicely.
1132
94a716bf
PM
11332001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1134
1135 * p-exp.y (yylex): Only change case of expression if symbol is found.
1136 Also check for GPC standard name form.
1137
f6a9480e
AC
11382001-11-08 Andrew Cagney <ac131313@redhat.com>
1139
1140 * gdb_indent.sh: New file.
1141
64f9bb98
JB
11422001-11-08 Jim Blandy <jimb@redhat.com>
1143
1144 * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
1145 got_load_len, to placate compiler.
1146
cd3c07fc
MK
11472001-11-08 Mark Kettenis <kettenis@gnu.org>
1148
1149 * i386-tdep.c (i386_gdbarch_init): Fix typo.
1150
4c801202
JB
11512001-11-08 Jim Blandy <jimb@redhat.com>
1152
8001d1e4
JB
1153 * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
1154 file_frame_chain_valid.
1155
8ac0e65a
JB
1156 * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
1157 from the constant pool, but doesn't add in the constant pool's
1158 address to it, then this function probably isn't using r12 as a
1159 GOT pointer, and that load probably wasn't part of the prologue.
1160
4c801202
JB
1161 * s390-tdep.c (s390_gdbarch_init): Use the default
1162 prepare_to_proceed function established by config/nm-linux.h;
1163 don't try to set it to linuxthreads_prepare_to_proceed.
1164
a62cc96e
AC
1165Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
1166
1167 * i386-tdep.c: Include "i386-tdep.h".
1168 (XMALLOC): Define.
1169 (i386_gdbarch_init): New function.
1170 (_initialize_i386_tdep): Register bfd_arch_i386.
1171 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
1172 GDB_MULTI_ARCH_PARTIAL.
1173 * i386-tdep.h: When partially multi-arch, conditionally define
1174 all macros.
1175
8ea43c6d
AC
1176Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
1177
1178 * i386-tdep.c (set_disassembly_flavor): Delete function.
1179 (set_disassembly_flavor_sfunc): Delete function.
1180
6a34fd2f
EZ
11812001-11-07 Elena Zannoni <ezannoni@redhat.com>
1182
1183 * dbxread.c (set_namestring): New function, replacing the
1184 SET_NAMESTRING macro.
1185 (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
1186 CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
1187 definitions.
1188 (read_dbx_symtab): Don't include partial-stab.h any more. Don't
1189 reuse code in partial-stab.h, include the code directly, instead.
1190
1191 * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
1192 (HFILES_NO_SRCDIR): Remove partial-stab.h.
1193
1194 * partial-stab.h: Remove file.
1195
a72293e2
AC
11962001-11-07 Andrew Cagney <ac131313@redhat.com>
1197
1198 * gdbarch.sh: For multi-arch functions, check there is a
1199 predefault and use it as the static default.
1200 * gdbarch.c: Re-generate.
1201
8cf03c4c
MK
12022001-11-08 Mark Kettenis <kettenis@gnu.org>
1203
1204 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
1205 terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
1206 hardcoding the register number.
1207
56f12751
AC
12082001-11-07 Andrew Cagney <ac131313@redhat.com>
1209
1210 * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
1211 generic_use_struct_convention.
1212 * gdbarch.h, gdbarch.c: Regenerate.
1213 * values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
1214 gdbarch.h.
1215
a4a7d16f
AC
12162001-11-06 Andrew Cagney <ac131313@redhat.com>
1217
1218 * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
1219 * gdbarch.c: Regenerate.
1220
4dc13854
FF
12212001-11-06 Fred Fish <fnf@redhat.com>
1222
1223 * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
1224 * dbxread.c: Ditto
1225 * dwarf2read.c: Ditto.
1226 * dwarfread.c: Ditto.
1227 * exec.c: Ditto.
1228 * hpread.c: Ditto.
1229 * hpread.h: Ditto.
1230 * mdebugread.c: Ditto.
1231 * os9kread.c: Ditto.
1232 * stack.c: Ditto.
1233 * symfile.c: Ditto.
1234 * tracepoint.c: Ditto.
1235
7fe4d0d2
AC
12362001-11-06 Andrew Cagney <ac131313@redhat.com>
1237
1238 * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
1239 David Taylor and Nick Duffek in past maintainers.
1240
d3119d1e
EZ
12412001-11-06 Elena Zannoni <ezannoni@redhat.com>
1242
1243 * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
1244 END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
1245 (parse_partial_symbols): Don't include partial-stab.h any
1246 more. Don't reuse code in partial-stab.h, include the code
1247 directly, instead. Simplify code from partial-stab.h eliminating
1248 ifdef DBXREAD_ONLY code.
1249
1250 * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
1251
e2d46a8c
JB
12522001-11-06 Jim Blandy <jimb@redhat.com>
1253
3ecc0ae2
JB
1254 * s390-nat.c: #include "regcache.h", to get declaration for
1255 `supply_register'. (The last change already added the dependency
1256 of s390-nat.o on regcache.h. Oops.)
1257
e81b020b
JB
1258 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
1259 (s390-tdep.o, s390-nat.o): New rules.
1260
38937755 1261 * s390-nat.c (s390_register_u_addr): Pass proper arguments to
e2d46a8c
JB
1262 internal_error.
1263
a985cd41
AC
12642001-11-06 Andrew Cagney <ac131313@redhat.com>
1265
1266 * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
1267 * gdbarch.c: Regenerate.
1268
e6b47f07
AC
12692001-11-06 Andrew Cagney <ac131313@redhat.com>
1270
1271 * blockframe.c (get_prev_frame): Replace #ifdef
1272 INIT_EXTRA_FRAME_INFO with run-time test.
1273
69a0d5f4
AC
12742001-11-05 Andrew Cagney <ac131313@redhat.com>
1275
1276 * gdbarch.sh (push_return_address): Change to a function with
1277 predicate.
1278 * gdbarch.h, gdbarch.c: Re-generate.
1279 * valops.c (hand_function_call): Replace #ifdef
1280 PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
1281
c12260ac
CV
12822001-11-06 Corinna Vinschen <vinschen@redhat.com>
1283
1284 * arch-utils.c (generic_in_function_epilogue_p): New function.
1285 * arch-utils.h (generic_in_function_epilogue_p): Declare extern.
1286 * breakpoint.c (watchpoint_check): Add test whether the pc is
1287 currently in the epilogue of a function.
1288 * gdbarch.c: Autogenerated from gdbarch.sh.
1289 * gdbarch.h: Ditto.
1290 * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
1291
c4620205
JB
12922001-11-05 Jim Blandy <jimb@redhat.com>
1293
8114216b
JB
1294 * config/s390/s390.mh (NATDEPFILES): Don't split this across
1295 several lines with backslashes; the `sed' command in
1296 configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
1297 assignment doesn't handle lines extended with backslashes.
1298
c4620205
JB
1299 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
1300 using `+=' as well as `='.
1301 * configure: Regenerated.
1302
5fdff426
AC
13032001-11-05 Andrew Cagney <ac131313@redhat.com>
1304
1305 * gdbarch.sh (init_extra_frame_info): Change to a function with
69a0d5f4 1306 predicate.
5fdff426
AC
1307 * gdbarch.h, gdbarch.c: Re-generate.
1308 * blockframe.c (create_new_frame): Replace #ifdef
1309 INIT_EXTRA_FRAME_INFO with run-time test of
1310 INIT_EXTRA_FRAME_INFO_P.
1311
f16a1923
AC
13122001-11-05 Andrew Cagney <ac131313@redhat.com>
1313
1314 * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
1315 error messages. Print in a single batch.
1316 * gdbarch.c: Re-generate.
1317
0fc087fe
MK
13182001-11-04 Mark Kettenis <kettenis@gnu.org>
1319
3fb1c838
MK
1320 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
1321 fill_gregset): Add support for "orig_eax" register.
1322
6441c4a0
MK
1323 Add support for "orig_eax" pseudo register on Linux/x86.
1324 * i386-linux-tdep.c: Include "inferior.h".
1325 (i386_linux_register_name, i386_linux_register_byte,
1326 i386_linux_register_raw_size): New functions.
1327 (i386_linux_write_pc): New function.
1328 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
1329 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1330 REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
1331 register.
1332 (i386_linux_register_name, i386_linux_register_byte,
1333 i386_linux_register_raw_size): New prototypes.
1334 (TARGET_WRITE_PC): New define.
1335 (i386_linux_write_pc): New prototype.
1336
1a11ba71
MK
1337 * i386-tdep.c (i386_register_offset): Renamed from
1338 i386_register_byte. Made static.
1339 (i386_register_size): Renamed from i386_register_raw_size. Made
1340 static.
1341 (i386_register_virtual_size): Removed.
1342 (i386_register_byte, i386_register_raw_size,
1343 i386_register_virtual_size): New functions.
1344 (_initialize_i386_tdep): Initialize i386_register_offset instead
1345 of i386_register_byte. Remove code to initialize
1346 i386_register_virtual_size.
1347 * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
1348 i386_register_byte function.
1349 (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
1350 function.
1351 (REGISTER_VIRTUAL_SIZE): Redefine to use
1352 i386_register_virtual_size function.
1353 (i386_register_byte, i386_register_raw_size,
1354 i386_register_virtual_size): New functions.
1355
0fc087fe
MK
1356 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
1357 (i387-nat.o): Add dependencies.
1358
1396e6f1
AC
13592001-11-02 Andrew Cagney <ac131313@redhat.com>
1360
1361 * README: Mention problem with alpha-dec-osf5.1.
1362
5c7dd748
AC
13632001-11-02 Andrew Cagney <ac131313@redhat.com>
1364
1365 * utils.c (internal_verror): Restore calls to abort().
1366 Fix PR gdb/219.
1367
3559696c
MC
13682001-11-02 Michael Chastain <mec@shout.net>
1369
1370 * MAINTAINERS: Update my entry.
1371
53e8ad3d
MS
13722001-11-01 Michael Snyder <msnyder@redhat.com>
1373
1374 * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
1375 operator names, to avoid regexp expansion.
1376 (search_symbols): Alloca buffer is too small, may get clobbered.
1377
990f9fe3
FF
13782001-11-01 Fred Fish <fnf@redhat.com>
1379
1380 * coff-solib.c (coff_solib_add): Add new readsyms arg.
1381 * irix5-nat.c (solib_add): Ditto.
1382 * osfsolib.c (solib_add): Ditto.
1383 * pa64solib.c (pa64_solib_add): Ditto.
1384 * pa64solib.c (add_to_solist): Ditto.
1385 * pa64solib.c (read_dld_descriptor): Ditto.
1386 * solib.c (solib_add): Ditto.
1387 * somsolib.c (som_solib_add): Ditto.
1388 * win32-nat.c (child_solib_add): Ditto.
1389 * xcoffsolib.c (solib_add): Ditto.
1390
1391 * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
1392 * pa64solib.c (add_to_solist): Ditto.
1393 * pa64solib.c (read_dld_descriptor): Ditto.
1394 * pa64solib.h (pa64_solib_add): Ditto.
1395 * solib.h (solib_add): Ditto.
1396 * somsolib.h (som_solib_add): Ditto.
1397 * config/i386/tm-cygwin.h (child_solib_add): Ditto.
1398
1399 * coff-solib.c (coff_solib_add): If readsyms is zero don't read
1400 symbols but do any other needed work for shared libs.
1401 * irix5-nat.c: Ditto.
1402 * osfsolib.c (solib_add): Ditto.
1403 * solib.c (solib_add): Ditto.
1404 * win32-nat.c (child_solib_add): Ditto.
1405 * xcoffsolib.c (solib_add): Ditto.
1406
1407 * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
1408 solib_add to force reading of shared library symbols.
1409 * osfsolib.c (sharedlibrary_command;): Ditto.
1410 * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
1411 * solib.c (sharedlibrary_command): Ditto.
1412 * somsolib.c (som_solib_sharedlibrary_command): Ditto.
1413 * xcoffsolib.c (sharedlibrary_command): Ditto.
1414
1415 * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
1416 unconditionally with auto_solib_add.
1417 * irix5-nat.c (solib_create_inferior_hook): Ditto.
1418 * osfsolib.c (solib_create_inferior_hook): Ditto.
1419 * solib.c (solib_create_inferior_hook): Ditto.
1420 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1421 * solib-svr4.c (enable_break): Ditto.
1422 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1423
1424 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
1425 via SOLIB_ADD.
1426 * sol-thread.c (sol_thread_attach): Ditto.
1427 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
1428
1429 * infcmd.c (attach_command): Remove auto_solib_add decl.
1430 Call SOLIB_ADD directly with auto_solib_add.
1431 * infrun.c (handle_inferior_event): Ditto.
1432
1433 * coff-solib.h (SOLIB_ADD): Add readsyms arg.
1434 * pa64solib.h (SOLIB_ADD): Ditto.
1435 * solib.h (SOLIB_ADD): Ditto.
1436 * somsolib.h (SOLIB_ADD): Ditto.
1437 * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
1438
1439 * fork-child.c (clone_and_follow_inferior): Remove unused
1440 auto_solib_add decl.
1441
1442 * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
1443 (read_dld_descriptor): Ditto.
1444 (pa64_solib_add): Call read_dld_descriptor with readsyms.
1445 (pa64_solib_in_dynamic_linker): Ditto.
1446
1447 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
1448 * sol-thread.c (symfile.h): Ditto.
1449
1de2edba
AC
14502001-10-31 Andrew Cagney <ac131313@redhat.com>
1451
1452 * s390-nat.c (s390_remove_watchpoint): Use xfree.
1453 (s390_insert_watchpoint): Use xmalloc.
1454
30b28db1
AC
14552001-10-31 Andrew Cagney <ac131313@redhat.com>
1456
1457 * varobj.c: Replace value_ptr with ``struct value *''.
1458
72330bd6
AC
14592001-10-31 Andrew Cagney <ac131313@redhat.com>
1460
1461 * varobj.c: Re-indent.
1462
d45fc520
AC
14632001-10-31 Andrew Cagney <ac131313@redhat.com>
1464
1465 * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
1466 ``value_ptr'' with ``struct value *''.
1467 * s390-tdep.c (s390_push_arguments): Ditto.
1468
3a1c5313
AC
14692001-10-30 Andrew Cagney <ac131313@redhat.com>
1470
1471 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
1472 ``struct value *''.
1473 (struct frame_info, struct value): Add opaque declarations.
1474
68e9cc94
CV
14752001-10-31 Corinna Vinschen <vinschen@redhat.com>
1476
1477 * arch-utils.c (generic_in_solib_call_trampoline): New function.
1478 * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
1479 * gdbarch.c: Regenerated from gdbarch.sh.
1480 * gdbarch.h: Ditto.
1481 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
1482 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
1483
60e6cc42
AC
14842001-10-31 Andrew Cagney <ac131313@redhat.com>
1485
1486 From DJ Barrow.
1487 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
1488 find_solib_trampoline_target.
1489
61387159
AC
14902001-10-31 Andrew Cagney <ac131313@redhat.com>
1491
1492 * remote-vx.c (net_wait): Fix typo from PIDGET change.
1493
fc633446
MK
14942001-10-31 Mark Kettenis <kettenis@gnu.org>
1495
1496 * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
1497 (REGISTER_NAME): New define.
1498 (i386_register_name): New prototype.
1499 * i386-tdep.c (i386_register_names): New variable.
1500 (i386_register_name): New function.
1501 * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
1502 config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
1503 REGISTER_NAMES.
1504
3f8ad85b
CF
15052001-10-31 Christopher Faylor <cgf@redhat.com>
1506
1507 * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
1508 the loaded DLL matches the on-disk case since the debugging API does
1509 not seem to ensure this. Calculate max name length here.
1510 (handle_load_dll): Move max name length calculation to
1511 register_loaded_dll.
1512
433144fb
DJ
15132001-10-31 Daniel Jacobowitz <drow@mvista.com>
1514
1515 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
1516
ddc54292
KS
15172001-10-30 Keith Seitz <keiths@redhat.com>
1518
1519 * wrapper.h (gdb_value_struct_elt): New function.
1520 * wrapper.c (gdb_value_struct_elt): Ditto.
1521 (do_captured_value_struct_elt): Ditto.
1522
34f47bc4
AC
15232001-10-30 Andrew Cagney <ac131313@redhat.com>
1524
1525 * README, NEWS: Update for 5.1.
1526
4536bbc6
AC
15272001-10-30 Andrew Cagney <ac131313@redhat.com>
1528
1529 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
1530 -W... flags.
1531 * configure: Re-generate.
1532
c3c057c8
FF
15332001-10-30 Fred Fish <fnf@redhat.com>
1534
1535 * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
1536 * pa64solib.c (add_to_solist): Ditto.
1537 * win32-nat.c (_initialize_inftarg): Remove unnecessary
1538 initialization of auto_solib_add, it defaults to 1.
1539
b7209cb4
FF
15402001-10-27 Fred Fish <fnf@redhat.com>
1541
1542 * symfile.c (auto_solib_add): Update comment to note that
1543 this variable is now just used as a boolean to control shlib
1544 autoloading, and clarify when it is used.
1545 * symfile.h (auto_solib_add): Ditto.
1546
1547 * symfile.c (auto_solib_limit): New variable that holds the
1548 autoloading threshold instead of overloading auto_solib_add.
1549 * symfile.h (auto_solib_limit): Ditto.
1550
1551 * irix5-nat.c (_initialize_solib): Change auto-solib-add
1552 variable from var_zinteger to var_boolean and update help.
1553 * osfsolib.c (_initialize_solib): Ditto.
1554 * pa64solib.c (_initialize_pa64_solib): Ditto.
1555 * solib.c (_initialize_solib): Ditto.
1556 * somsolib.c (_initialize_som_solib): Ditto.
1557 * xcoffsolib.c (_initialize_solib): Ditto.
1558
1559 * pa64solib.c (pa64_solib_total_st_size): Update comment to
1560 note that the new auto_solib_limit variable is used instead
1561 of overloading auto_solib_add variable.
1562 (_initialize_pa64_solib): Ditto.
1563 * somsolib.c (som_solib_total_st_size): Ditto.
1564 (_initialize_som_solib): Ditto.
1565
1566 * pa64solib.c (_initialize_pa64_solib): Add new set/show
1567 commands for auto-solib-limit variable.
1568 * somsolib.c (_initialize_som_solib): Ditto
1569
1570 * pa64solib.c (add_to_solist): Check that auto_solib_add is
1571 set and use auto_solib_limit as the threshold size instead
1572 of auto_solib_add.
1573 * somsolib.c (som_solib_add): Ditto, and also change warning
1574 text about size threshold exceeded.
1575
dec66fe5
MK
15762001-10-21 Mark Kettenis <kettenis@gnu.org>
1577
1578 * config/i386/tm-i386v.h: Don't include "regcache.h".
1579 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
1580 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
1581 Remove macros. The versions from "tm-i386.h" should work fine
1582 (and in most cases even better).
1583
c6ba6f0d
MK
15842001-10-30 Mark Kettenis <kettenis@gnu.org>
1585
1586 * i386-tdep.c (i386_extract_return_value): Use
1587 convert_typed_floating to extract floating-point value from
1588 register buffer.
1589 (i386_store_return_value): Use convert_typed_floating to store
1590 floating-point return balue in register buffer
1591 (i386_register_virtual_type): Change type of floating-point
1592 registers to builtin_type_i387_ext.
1593 (i386_register_convert_to_virtual): Use convert_typed_floating to
1594 do the conversion.
1595 (i386_register_convert_to_raw): Likewise.
1596
43686d64
MK
15972001-10-29 Mark Kettenis <kettenis@gnu.org>
1598
1599 * doublest.h (convert_typed_floating): New prototype.
1600 * doublest.c (convert_typed_floating): New function.
1601
87ffba60
MK
16022001-10-28 Mark Kettenis <kettenis@gnu.org>
1603
1604 * doublest.c: Improve comments a bit.
1605 (floatformat_from_length): New function.
1606 (NAN): Define to 0.0 if not already defined.
1607 (extract_floating): Rewrite to use floatformat_from_length. Warn
1608 instead of error if LEN doesn't match a known floating-point type,
1609 and return NaN (or 0.0 if NaN isn't available) in that case.
1610 (store_floating): Likewise, but zero out the target byte-stream if
1611 LEN doesn't match a known floating-point type.
1612 (extract_typed_floating): Reformat a bit.
1613 (store_typed_floating): Reformat a bit. Add comment about zeroing
1614 out padding in the target buffer.
1615 * doublest.h (extract_floating, store_floating): Fix comment about
1616 deprecation of these functions. Add parameter names to prototypes.
1617
e371b258
MK
16182001-10-28 Mark Kettenis <kettenis@gnu.org>
1619
4583280c
MK
1620 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
1621 convert RAW to a DOUBLEST instead of extract_floating.
1622
e371b258
MK
1623 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
1624 builtin_type_i387_ext to floatformat_i387_ext.
1625
17fd1ad9
DJ
16262001-10-24 Daniel Jacobowitz <drow@mvista.com>
1627
1628 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
1629 (fill_fpregset): Likewise.
1630
fa4e4598
OF
16312001-10-26 Orjan Friberg <orjanf@axis.com>
1632
1633 * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
1634 struct, not just the NUM_SPECREGS first entries.
1635 (bdap_prefix): Read PC before autoincrement.
1636
02cc9f49
CV
16372001-10-24 Corinna Vinschen <vinschen@redhat.com>
1638
1639 * win32-nat.c (DebugSetProcessKillOnExit): New static function
1640 pointer to Windows' DebugSetProcessKillOnExit() function.
1641 (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
1642 (has_detach_ability): New function.
1643 (child_attach): If system has detach ability, enable it.
1644 (child_detach): If system has detach ability, actually
1645 detach from process.
1646 Change tty output to Linux format.
1647
3973eadd
JB
16482001-10-23 Jim Blandy <jimb@redhat.com>
1649
1650 Isolate STABS readers' use of the `textlow' and `texthigh' fields
1651 of `struct partial_symtab' to only a few locations. This change
1652 is not supposed to affect the way the values are computed, only
1653 where they live.
1654
1655 * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
1656 to the reader-specific structure.
1657 * mdebugread.c (struct symloc): Same.
1658 * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
1659 * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
1660 * dbxread.c (dbx_symfile_read): After we've built all our partial
1661 symbol tables, set each partial symtab's `textlow' and `texthigh'
1662 fields from our reader-specific structure.
1663 * mdebugread.c (mdebug_build_psymtabs): Same.
1664 * dbxread.c (start_psymtab): Initialize the reader-specific
1665 structure's `textlow' and `texthigh' from the new psymtab's.
1666 * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
1667 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
1668 the reader-specific `textlow' and `texthigh', not the generic
1669 psymtab fields.
1670 * mdebugread.c (parse_lines, parse_partial_symbols,
1671 psymtab_to_symtab_1): Same.
1672 * partial-stab.h: Same.
1673
ce414844
AC
1674Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
1675
1676 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
1677 problems.
1678
8f236061
AC
1679Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
1680
1681 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
1682 (som_solib_desire_dynamic_linker_symbols): Compare integers with
1683 zero not NULL.
1684 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
1685
d20bf2e8
AC
16862001-10-21 Andrew Cagney <ac131313@redhat.com>
1687
1688 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
1689 interface is always enabled.
1690
17732724
AC
16912001-10-21 Andrew Cagney <ac131313@redhat.com>
1692
1693 * Makefile.in: Replace top.h with $(top_h). Replace expression.h
1694 with $(expression_h). Replace command.h with $(command_h).
1695 (language_h): Define. Replace language.h with $(language_h).
1696 Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
1697 $(varobj_h).
1698 (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
1699 (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
1700 (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
1701 (bcache_h, gdb_events_h, monitor_h): Ditto.
1702 (ser_unix_h, source_h): Ditto.
1703 (varobj_h): Update list.
1704
1705 * call-cmds.h: Add CALL_CMDS_H macro wrapper.
1706 * solist.h: Add SOLIST_H macro wrapper.
1707 * monitor.h: Add MONITOR_H macro wrapper.
1708 * typeprint.h: Add TYPEPRINT_H macro wrapper.
1709 * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
1710 * valprint.h: Add VALPRINT_H macro wrapper.
1711 * top.h: Add TOP_H macro wrapper.
1712
fd0407d6
AC
17132001-10-21 Andrew Cagney <ac131313@redhat.com>
1714
1715 * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
1716 * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
1717 * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
1718 * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
1719 * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
1720 (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
1721 (x86-64-tdep.o): Update dependencies.
1722 * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
1723 * gdbarch.h, gdbarch.c: Re-generate.
1724
3c2fb7bd
MK
17252001-10-21 Mark Kettenis <kettenis@gnu.org>
1726
1727 * infptrace.c (child_xfer_memory): Fix a few coding standards
1728 violations.
1729
c4282e67
EZ
17302001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1731
1732 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
1733
c9847381
AC
17342001-10-20 Andrew Cagney <ac131313@redhat.com>
1735
75c9979e
AC
1736 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
1737 (struct value): Add opaque declaration. Replace value_ptr with
1738 ``struct value *''.
1739 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
1740 struct.
1741
c9847381
AC
1742 * wrapper.h (struct value): Add opaque declaration. Replace
1743 value_ptr with ``struct value *''.
1744 * wrapper.c: Replace value_ptr with ``struct value *''.
278cd55f 1745 * breakpoint.h, breakpoint.c: Ditto.
e933e538 1746 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
c9847381 1747
f1e3ec29
AC
17482001-10-20 Andrew Cagney <ac131313@redhat.com>
1749
1750 * alpha-nat.c: Include <alpha/coreregs.h> instead of
1751 <machine/reg.h>.
1752 (fetch_osf_core_registers): Define core_reg_mapping in a way that
1753 works on OSF5 as well as previous OSF versions.
1754
83413c55
CF
17552001-10-20 Christopher Faylor <cgf@redhat.com>
1756
1757 * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
1758 may not be able to read them in certain situations.
1759
457174f6
AC
17602001-10-18 Andrew Cagney <ac131313@redhat.com>
1761
1762 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
1763 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
1764
4bb5d567
AC
17652001-10-18 Andrew Cagney <ac131313@redhat.com>
1766
1767 * README: Mention problems with HP/UX.
1768
03dd37c3
AC
17692001-10-16 Andrew Cagney <ac131313@redhat.com>
1770
1771 Based on code by John Moore <jmore@redhat.com>:
1772
1773 * utils.c (core_addr_to_string): New function for conversion of
1774 CORE_ADDR to string.
1775 (string_to_core_addr): New function to convert from string to
1776 CORE_ADDR.
1777 * defs.h: Added extern statements for the above.
1778
1ba7c32c
JM
17792001-10-17 Jason Molenda (jason-cl@molenda.com)
1780
1781 * symtab.c (lookup_block_symbol): Break out of linear search
1782 if we're past the range of possible matches.
1783
7470a420
CF
17842001-10-16 Christopher Faylor <cgf@redhat.com>
1785
1786 * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
1787 load of already loaded DLL.
1788 (register_loaded_dll): Convert loaded DLL name to "posix" format or it
1789 will confuse subsequent opening of the filename due to dos paths.
1790 (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
1791
8cc1c882
EZ
17922001-10-15 Elena Zannoni <ezannoni@redhat.com>
1793
1794 * symtab.c (lookup_block_symbol): Update comment.
1795
1aa20aa8
AC
17962001-10-15 Andrew Cagney <ac131313@redhat.com>
1797
1798 * value.h (value_as_address): Rename value_as_pointer.
1799 * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
1800 jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
1801 values.c: Update.
1802
dbbd9c57
AC
1803202001-10-15 Jim Ingham <jingham@inghji.apple.com>
1804
1805 * valarith.c (value_sub): Don't pass a raw type to
1806 value_from_pointer, it has to go through check_typedef first.
1807
73d3c16e
AC
18082001-10-15 Andrew Cagney <ac131313@redhat.com>
1809
1810 * gdbarch.sh (fallbackdefault): Set to one when predefault is
1811 empty.
1812 * gdbarch.h: Regenerate.
1813
fc0c74b1
AC
18142001-10-15 Andrew Cagney <ac131313@redhat.com>
1815
1816 * mips-tdep.c (mips_integer_to_address): New function.
1817 (mips_gdbarch_init): Initialize pointer_to_address,
1818 address_to_pointer and integer_to_address.
1819
1820 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
1821 (ADDRESS_TO_POINTER): Delete.
1822
1823 * d10v-tdep.c (d10v_integer_to_address): New function.
1824 (d10v_gdbarch_init): Initialize integer_to_address.
1825
1826 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
1827 available.
1828
1829 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
1830 * gdbarch.h, gdbarch.c: Regenerate.
1831
cacab7c4
MK
18322001-10-14 Mark Kettenis <kettenis@gnu.org>
1833
39024782
MK
1834 * config/s390/nm-linux.h: Don't include <signal.h>.
1835 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1836 GET_THREAD_SIGNAL): Remove.
1837
dc17571d
MK
1838 * config/nm-linux.h (struct objfile): Remove forward declaration.
1839 (linuxthreads_new_objfile): Remove prototype.
1840 (linuxthreads_pid_to_str): Remove prototype.
1841 (PREPARE_TO_PROCEED): Redefine in terms of
1842 lin_lwp_prepare_to_proceed.
1843 (struct target_waitstatus): Forward declaration.
1844 (child_wait): New prototype.
1845 (CHILD_WAIT): Define.
1846 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1847 GET_THREAD_SIGNAL): Moved here from arch-specific files.
1848 * config/alpha/nm-linux.h, config/arm/nm-linux.h,
1849 config/ia64/nm-linux.h, config/mips/nm-linux.h,
1850 config/powerpc/nm-linux.h: Don't include <signal.h>.
1851 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1852 GET_THREAD_SIGNAL): Remove.
1853 * config/i386/nm-linux.h: Likewise.
1854 (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
1855 * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
1856 Remove linux-thread.o. Add proc-service.o, thread-db.o and
1857 lin-lwp.o.
1858 (LOADLIBES): New variable.
1859
8e4d17db
MK
1860 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
1861
c987d8c0
MK
1862 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
1863
cacab7c4
MK
1864 Fix attaching to cloned processes. This fixes PR gdb/61.
1865 * lin-lwp.c (struct lwp_info): Add new member `cloned'.
1866 (is_cloned) Removed.
1867 (lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
1868 waitpid explicitly. Mark the LWP as cloned if waitpid fails and
1869 retry with __WCLONE flag.
1870 (lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
1871 (detach_callback): Replace use of is_cloned with explicit check on
1872 LWP id and process id.
1873 (stop_wait_callback): Replace use of is_cloned with check if LWP
1874 is marked as cloned.
1875 [CHILD_WAIT] (child_wait): New function.
1876 (lin_lwp_wait): Replace use of is_cloned with check if LWP is
1877 marked as cloned. Mark newly detected LWPs as cloned if detected
1878 by waitpid with __WCLONE flag.
1879 (kill_wait_callback): Replace use of is_cloned with check if LWP
1880 is marked as cloned.
1881 * config/i386/nm-linux.h (struct target_waitstatus): Add forward
1882 declaration.
1883 (child_wait): Add prototype.
1884 (CHILD_WAIT): Define.
1885
5769d3cd
AC
18862001-10-13 Andrew Cagney <ac131313@redhat.com>
1887
1888 S/390 31 & 64 bit target and GNU/Linux native support.
1889 Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
1890 * s390-nat.c, s390-tdep.c: New file.
1891 * config/s390/nm-linux.h, config/s390/s390.mh: New file.
1892 * config/s390/s390.mt, config/s390/s390x.mt: New file.
1893 * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
1894 * config/s390/xm-linux.h: New file.
1895 * NEWS: Update.
1896 * MAINTAINERS: Update.
1897
83e6b173
AC
18982001-10-13 Andrew Cagney <ac131313@redhat.com>
1899
1900 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
1901 * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
1902 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1903 * gdbarch.c: Regenerate.
1904
21bf60fe
MK
19052001-10-13 Mark Kettenis <kettenis@gnu.org>
1906
1907 * thread-db.c: Fix a few formatting mistakes.
1908
fefd0a37
CF
19092001-10-12 Christopher Faylor <cgf@redhat.com>
1910
1911 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
1912 list pointer to beginning rather than one beyond beginning.
1913
e88c90f2
DJ
19142001-10-12 Daniel Jacobowitz <drow@mvista.com>
1915
1916 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
1917
1918 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1919 (make_symbol_completion_list): Likewise.
1920 (make_symbol_overload_list): Likewise.
1921 * buildsym.c (finish_block): Likewise.
1922 * breakpoint.c (get_catch_sals): Likewise.
1923 * mdebugread.c (mylookup_symbol): Likewise.
1924 * objfiles.c (objfile_relocate): Likewise.
1925 * printcmd.c (print_frame_args): Likewise.
1926 * stack.c (print_block_frame_locals): Likewise.
1927 (print_block_frame_labels): Likewise.
1928 (print_frame_arg_vars): Likewise.
1929 * symmisc.c (dump_symtab): Likewise.
1930 * tracepoint.c (add_local_symbols): Likewise.
1931 (scope_info): Likewise.
1932
375f3d86
DJ
19332001-10-12 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * minsyms.c (msymbol_hash): Use better hash function.
1936 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
1937
1938 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
1939 binaries.
1940
55159471
DJ
19412001-10-12 Daniel Jacobowitz <drow@mvista.com>
1942
1943 * printcmd.c (print_frame_args): Move symbol iteration explicitly
1944 inside the func != NULL block.
1945
30ef99d1
FN
19462001-10-12 Fernando Nasser <fnasser@redhat.com>
1947
1948 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
1949 maintainer.
1950
02e423b9
CF
19512001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1952
d60dc82a 1953 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
02e423b9
CF
1954 This fixes errors in "long long" handling for 'finish' and 'return'
1955 commands.
1956
19572001-10-12 Christopher Faylor <cgf@redhat.com>
1958
1959 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
1960 library if it has already been loaded.
1961 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
1962 any error messages.
1963 (safe_symbol_file_add): Ditto.
1964 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
1965 it to safe_symbol_file_add.
1966 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
1967 (child_solib_add): Ditto.
1968
1969 * win32-nat.c (handle_exception): Don't print "first chance"
1970 exceptions.
1971 (get_child_debug_event): Continue from exceptions if !handle_exception.
1972
1b15f1fa
TT
19732001-10-11 Tom Tromey <tromey@redhat.com>
1974
1975 * symtab.c (lookup_symtab): Removed.
1976 (lookup_symtab_1): Renamed to lookup_symtab.
1977
700b351b
CF
19782001-10-10 Christopher Faylor <cgf@redhat.com>
1979
1980 * win32-nat.c (get_child_debug_event): Close file handles created after
1981 process creation and DLL load.
1982 (child_create_inferior): Close unneeded process/thread handle after
1983 thread creation.
1984
4eab1e18
JB
19852001-10-10 Jim Blandy <jimb@redhat.com>
1986
1987 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
1988
4abb499e
KS
19892001-10-10 Keith Seitz <keiths@redhat.com>
1990
1991 * varobj.c (cplus_value_of_child): Deal with a failure
1992 to dereference a pointer object.
1993
8b2797db
JB
19942001-10-08 J. Brobecker <brobecker@gnat.com>
1995
1996 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
1997 to use ptid_t, instead of overloading the thread and the pid
1998 into the same 32-bit value. Make associated necessary adaptations.
1999 Also remove unused variable cached_active_thread.
2000
420effb8
ND
20012001-10-08 Nicholas Duffek <nsd@redhat.com>
2002
2003 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
2004 entries.
2005
3eb970a8
MK
20062001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
2007
2008 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
2009
78f49586
TT
20102001-10-04 Tom Tromey <tromey@redhat.com>
2011
2012 * main.c (enable_external_editor): Don't declare.
2013 (captured_main): Don't set enable_external_editor.
2014
ab31aa69
KB
20152001-10-02 Kevin Buettner <kevinb@redhat.com>
2016
2017 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
2018 to this list.
2019 (solib-sunos.o): Add dependencies.
2020 (solib-svr4.o): Revise dependencies.
2021 * solib-svr4.c: Remove SunOS shared library support.
2022 * solib-sunos.c: New file, created from solib-svr4.c, which still
2023 contains SunOS shared library support, but no SVR4 support.
2024
2025 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
2026 solib-legacy.o from this list. Add solib-sunos.o.
2027 * config/i386/sun386.mt (TDEPFILES): Likewise.
2028 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2029 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
2030 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
2031 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2032 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2033 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
2034
39ae698d
EZ
20352001-10-01 Elena Zannoni <ezannoni@redhat.com>
2036
2037 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
2038
d5d0a62f
EZ
20392001-10-01 Elena Zannoni <ezannoni@redhat.com>
2040
2041 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
2042 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
2043 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
2044 SET_NAMESTRING): Delete definitions.
2045 Don't include language.h any more.
2046 Don't include partial-stab.h any more.
2047 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
2048 partial-stab.h, include the code directly, instead.
2049
2050 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2051
447aa9a6
AC
20522001-10-01 Andrew Cagney <ac131313@redhat.com>
2053
2054 * infcmd.c (do_registers_info): Delete code dumping large
2055 registers. Handled by val_print.
2056
85de9627
AC
20572001-09-30 Andrew Cagney <ac131313@redhat.com>
2058
2059 * gdbarch.sh (gdbarch_alloc): Name the new architecture
2060 ``current_gdbarch'' so that it, and not the identically named
2061 global is refered to by macros.
2062 * gdbarch.c: Regenerate.
2063
f3796e26
AC
20642001-09-29 Andrew Cagney <ac131313@redhat.com>
2065
2066 * cli/cli-decode.c (add_set_boolean_cmd): Define.
2067 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
2068 * command.h (add_set_boolean_cmd): Ditto.
2069 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
2070 remotebreak"
2071
08e45a40
AC
20722001-09-29 Andrew Cagney <ac131313@redhat.com>
2073
2074 * gdbarch.sh (gdbarch_dump): Sort output.
2075 * gdbarch.c: Regenerate.
2076
e712c1cf
AC
20772001-09-29 Andrew Cagney <ac131313@redhat.com>
2078
2079 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
2080 architecture to infer the wordsize. Previous architecture may not
2081 be a PowerPC.
2082
d68f31a9
JB
20832001-09-27 J. Brobecker <brobecker@gnat.com>
2084
2085 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
2086 than a TT_PROC_STOP request to kill the inferior and its child
2087 processes. Otherwise, the inferior is not killed on HPUX 11.0.
2088 Removed the code that detaches the child processes since we just
2089 killed them.
2090
e3abfe1d
AC
20912001-09-26 Andrew Cagney <ac131313@redhat.com>
2092
2093 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
2094 variables.
2095 (serial_set_cmd, serial_show_cmd): New functions.
2096 (_initialize_serial): Add "set/show serial" command.
2097
ff1da24e
AC
20982001-09-26 Andrew Cagney <ac131313@redhat.com>
2099
2100 * CONTRIBUTE: Update.
2101
e5e2b9ff
KB
21022001-09-26 Kevin Buettner <kevinb@redhat.com>
2103
2104 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
2105 argument ``gdbarch''.
2106 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
2107 (default_svr4_fetch_link_map_offsets): Rename to
2108 legacy_fetch_link_map_offsets().
2109 (svr4_fetch_link_map_offsets): New function.
2110 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
2111 (fetch_link_map_offsets_gdbarch_data): New static global.
2112 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
2113 Revise to invoke set_gdbarch_data().
2114 (init_fetch_link_map_offsets): Change return type and add an
2115 argument so that it may be used as a gdbarch_data initializer.
2116 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
2117 Use gdbarch data mechanism instead.
2118
86ed34a9 21192001-09-25 Jiri Smid <smid@suse.cz>
c74ae012
JS
2120
2121 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
2122 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
2123 by LINUX_SIGINFO_SIZE.
2124
4f337972
AC
21252001-09-24 Andrew Cagney <ac131313@redhat.com>
2126
2127 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2128 variables.
2129 (maintenance_set_profile_cmd): New function.
2130 (maintenance_show_cmd, maintenance_set_cmd): New functions.
2131 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
2132 show" and, commented out, "maintenance set/show profile" commands.
2133
f76febae
AC
21342001-09-24 Andrew Cagney <ac131313@redhat.com>
2135
2136 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
2137 convert the pointer into a CORE_ADDRs.
2138
96d2f608
AC
21392001-09-24 Andrew Cagney <ac131313@redhat.com>
2140
2141 * doublest.h (store_floating, extract_floating): Add comment
2142 indicating these functions are deprecated.
2143 (extract_typed_floating, store_typed_floating): Declare.
2144 * doublest.c: Include "gdbtypes.h".
2145 (extract_typed_floating, store_typed_floating): Define.
2146
2147 * stabsread.c (define_symbol): Use store_typed_floating.
2148 * valarith.c (value_binop): Ditto.
2149 * values.c (unpack_long): Use extract_typed_floating.
2150 (unpack_double): Ditto.
2151
7ab98e9e
OF
21522001-09-24 Orjan Friberg <orjanf@axis.com>
2153
2154 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
2155 from correct register.
2156
1dbeeb7b
MK
21572001-09-22 Mark Kettenis <kettenis@gnu.org>
2158
2159 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
2160
c4d82c96
JS
21612001-09-21 Jiri Smid <smid@suse.cz>
2162
2163 * config/i386/x86-64linux.mh: New file.
2164 * config/i386/x86-64linux.mt: New file.
2165 * config/i386/nm-x86_64.h: New file.
2166 * x86-64-linux-tdep.c: New file.
2167 * x86-64-linux-nat.c: New file.
2168 * x86-64-tdep.c: New file.
2169 * x86-64-tdep.h: New file.
2170 * i386-tdep.h: New file.
2171 * i387-nat.c: Include i386-tdep.h when multiarch.
2172 * i387-tdep.c: Ditto.
2173 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
2174 and x86_64-linux-nat.c
2175 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
2176 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
2177
cab16195
JS
21782001-09-21 Jiri Smid <smid@suse.cz>
2179
2180 * MAINTAINERS: Add myself to the write-after-approval list.
2181 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
2182 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
2183 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
2184 8-byte wide watchpoints.
2185 (i386_show_dr): Debug message format string change.
2186
3e9986d2
MS
21872001-09-21 Michael Snyder <msnyder@redhat.com>
2188
2189 * c-exp.y (typebase): Accept (signed long long) as a type expr.
2190
56e2d25a
MS
21912001-09-20 Michael Snyder <msnyder@redhat.com>
2192 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
2193 better parsing of const and volatile type expressions.
2194 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
2195 const_or_volatile): New non-terminals.
2196 (ptype): Use new rule for const_or_volatile.
2197 (typebase): Use new rule for const_or_volatile_noopt.
2198 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
2199 * parse.c (follow_types): Handle tp_const and tp_volatile on the
2200 type stack: call make_cv_type to create new const/volatile type.
2201
1c4dcb57
KB
22022001-09-20 Kevin Buettner <kevinb@redhat.com>
2203
2204 * solib-svr4.c (fetch_link_map_offsets): Add comment.
2205 (fetch_link_map_offsets_init): New static global.
2206 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
2207 Revise implementation to use ``fetch_link_map_offsets_init''
2208 instead of ``fetch_link_map_offsets''.
2209
3a42e9d0
AM
22102001-09-20 Alan Modra <amodra@bigpond.net.au>
2211
2212 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
2213 * dbxread.c: Likewise.
2214 * dwarf2read.c: Likewise.
2215 * dwarfread.c: Likewise.
2216 * somread.c: Likewise.
2217 * ultra3-nat.c: Likewise.
2218 * xcoffread.c: Likewise.
2219
e0441cf0
AC
22202001-09-19 Andrew Cagney <ac131313@redhat.com>
2221
8535cb38
AC
2222 * cris-tdep.c (cris_get_signed_offset): Change return type to an
2223 explicitly signed char.
2224
e0441cf0
AC
2225 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
2226 function signature to match recent tracepoint.c:encode_actions
2227 changes.
2228 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
2229
2b65245e
AC
22302001-09-18 Andrew Cagney <ac131313@redhat.com>
2231
2232 * thread.c (do_captured_thread_select): Add uiout parameter.
2233 (do_captured_list_thread_ids): Ditto.
2234 * breakpoint.c (do_captured_breakpoint_query): Ditto.
2235
2236 * breakpoint.c (gdb_breakpoint_query): Update. Use
2237 catch_exceptions.
2238 * thread.c (gdb_list_thread_ids): Ditto.
2239 (gdb_thread_select): Ditto.
2240 (thread_command): Pass uiout to gdb_thread_select.
2241
2242 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
2243 (gdb_thread_select, gdb_list_thread_ids): Ditto.
2244
2069d78d
KB
22452001-09-13 Kevin Buettner <kevinb@redhat.com>
2246
2247 From Ilya Golubev <gin@mo.msk.ru>:
2248 * solib.c (clear_solib): Call `remove_target_sections' to fix
2249 stale pointers in `struct target_ops'.
2250 * irix5-nat.c (clear_solib): Likewise.
2251 * osfsolib.c (clear_solib): Likewise.
2252
348d75a5
JB
22532001-09-13 Jim Blandy <jimb@redhat.com>
2254
e8816aac
JB
2255 * monitor.c (monitor_load): Don't delete symtab users, or reset
2256 inferior_ptid.
2257
348d75a5
JB
2258 * monitor.c (monitor_load): Fix indentation.
2259
22602001-09-11 Jim Blandy <jimb@redhat.com>
2261
2262 * printcmd.c (print_scalar_formatted): Compare the length of the
2263 value against the lengths of the target's floating-point types,
2264 not the host's. Add support for `long double'.
2265
2266 * printcmd.c (print_scalar_formatted): Fix indentation.
2267
a5666cc9
JB
22682001-09-10 Jim Blandy <jimb@redhat.com>
2269
2270 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
2271 programs running on the board can produce output.
2272
6d6b80e5
JM
22732001-09-10 Jason Molenda (jmolenda@apple.com)
2274
2275 * NEWS: "ANS/ISO C" -> "ISO C".
2276 * MAINTAINERS (write-after-approval): Update my entry.
2277
7fc73f38
MK
22782001-09-08 Mark Kettenis <kettenis@gnu.org>
2279
df5fdb3d
MK
2280 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
2281
4ad318e6
MK
2282 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
2283 config/m68k/xm-linux.h, config/mips/xm-linux.h,
2284 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
2285 redundant inclusion of <unistd.h>.
2286
7fc73f38
MK
2287 * gdbtypes.h (struct block): Add forward declaration.
2288
f9c696d2
AC
22892001-09-07 Andrew Cagney <ac131313@redhat.com>
2290
2291 * defs.h (enum return_reason): Renumber so that all values are
2292 negative.
2293 (RETURN_MASK): Negate reason.
2294 (catch_exception_ftype): Declare.
2295 (catch_exceptions): Declare.
2296 * top.c (catcher): New function, based on catch_errors. Add in
2297 parameter func_uiout and out parameters func_val, func_caught and
2298 func_cleanup. Change type of func to catch_exceptions_ftype.
2299 Save/restore uiout.
2300 (struct catch_errors_args): Define.
2301 (do_catch_errors): New function.
2302 (catch_errors): Rewrite, use do_catch_errors and catcher.
2303 (catch_exceptions): New function, use catcher.
2304
a2e2dd80
JB
23052001-09-07 Jim Blandy <jimb@redhat.com>
2306
2307 Correctly parse register values provided by the monitor.
2308 * rom68k-rom.c: #include "value.h".
2309 (is_hex_digit, hex_digit_value, is_whitespace,
2310 rom68k_supply_one_register): New static functions.
2311 (rom68k_supply_register): Call rom68k_supply_one_register, instead
2312 of monitor_supply_register; the latter was incorrectly parsing
2313 the values.
2314 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
2315
93befcf3
MK
23162001-09-07 Mark Kettenis <kettenis@gnu.org>
2317
2318 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
2319 to using setpgid if available now.
2320
b381d62d
KS
23212001-09-06 Keith Seitz <keiths@redhat.com>
2322
2323 From Ian Roxborough <irox@redhat.com>
2324 * configure.in: Use ITCL_LIB_FULL_PATH and
2325 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
2326 for gdb.
2327 * configure: Regenerated.
2328
9a058a09
KB
23292001-09-06 Kevin Buettner <kevinb@redhat.com>
2330
2331 * dbxread.c (process_one_symbol): Don't use error result from
2332 find_stab_function_addr().
2333 * partial-stab.h (case 'F'): Likewise.
2334
2335 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
2336 code match that used for case 'F'. This fixes the divergence
2337 that was introduced by my 1999-09-14 changes to partial-stab.h.
2338
2bf0cb65
EZ
23392001-09-05 Elena Zannoni <ezannoni@redhat.com>
2340
2341 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
2342 in gdbarch.h.
2343 (TARGET_PRINT_INSN): Multiarch.
2344 * gdbarch.h: Regenerate.
2345 * gdbarch.c: Regenerate.
2346
2347 * arch-utils.c (legacy_print_insn): New function.
2348 * arch-utils.h (legacy_print_insn): Export.
2349
2350 * cris-tdep.c (cris_delayed_get_disassembler): Use
2351 TARGET_PRINT_INSN, instead of tm_print_insn.
2352 * d10v-tdep.c (print_insn): Ditto.
2353 * d30v-tdep.c (print_insn): Ditto.
2354 * m32r-tdep.c (dump_insn): Ditto.
2355 * v850-tdep.c (v850_scan_prologue): Ditto.
2356 * mcore-tdep.c (mcore_dump_insn): Ditto.
2357 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
2358
6369010f
JB
23592001-09-05 Jim Blandy <jimb@redhat.com>
2360
2361 * gdbtypes.h (struct type): Doc fix.
2362
d3d55eeb
EZ
23632001-09-04 Elena Zannoni <ezannoni@redhat.com>
2364
2365 From Daniel Jacobowitz <drow@mvista.com>
2366 * dbxread.c (free_header_files): Make global.
2367 (init_header_files): Likewise.
2368 * stabsread.h (free_header_files): Add prototype.
2369 (init_header_files): Likewise.
2370 * mdebugread.c (mdebug_build_psymtabs): Initialize
2371 properly before using the stabs debug reader.
2372
16db6055 23732001-09-04 Elena Zannoni <ezannoni@redhat.com>
ef96bde8
EZ
2374
2375 From Daniel Jacobowitz <drow@mvista.com>
2376 * dbxread.c (dbx_symfile_read): Only reinitialize
2377 the psymbol list if mainline or if both static
2378 and global lists are empty.
2379 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
2380 * dwarfread.c (dwarf_build_psymtabs): Likewise.
2381 * xcoffread.c (xcoff_initial_scan): Likewise.
2382 * os9kread.c (os9k_symfile_read): Likewise.
16db6055 2383
ef96bde8
EZ
23842001-09-04 Elena Zannoni <ezannoni@redhat.com>
2385
16db6055
EZ
2386 From Daniel Jacobowitz <drow@mvista.com>
2387 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
2388 a name specially.
2389
f77b92bf
MK
23902001-09-01 Mark Kettenis <kettenis@gnu.org>
2391
2392 Make GDB use libiberty regex implementation.
2393 * gdb_regex.h: Normalize protection against multiple inclusion.
2394 Include "xregex.h" instead of "gnu-regex.h".
2395 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
2396 * cli/cli-decode.c: Likewise.
2397 * Makefile.in (REGEX): Remove.
2398 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
2399 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
2400 (POSSLIBS): Remove.
2401 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
2402 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
2403 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
2404 gdb_regex.h in list of dependencies.
2405 (gnu-regex.o): Remove rule.
2406 * gnu-regex.c, gnu-regex.h: Remove files.
2407
a4f30b31
MS
24082001-08-31 Jason Molenda (jmolenda@apple.com)
2409
2410 * c-valprint.c (c_val_print): Second call to check_typedef ()
2411 is no longer necessary.
2412
902d7086
KB
24132001-08-31 Kevin Buettner <kevinb@redhat.com>
2414
2415 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
2416 terminate the prologue scan.
2417
2889e661
JB
24182001-08-30 Jim Blandy <jimb@redhat.com>
2419
9ec8e6a0
JB
2420 * symfile.c (sections_overlap): New function.
2421 (map_overlay_command): Call sections_overlap, instead of using
2422 incorrect logic to recognize overlapping sections.
2423
2889e661
JB
2424 * symfile.c (load_command): Invalidate the overlay cache.
2425
cd903d53
MK
24262001-08-30 Mark Kettenis <kettenis@gnu.org>
2427
2428 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
2429
8ad2fcde
KB
24302001-08-29 Kevin Buettner <kevinb@redhat.com>
2431
2432 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
2433 * solib-svr4.c (enable_break): Check the inferior link map
2434 before assuming the inferior PC is at the start of the dynamic
2435 loader.
2436
e8759349
AC
24372001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
2438
2439 * frame.h (struct frame_info): Fix documentation on fields
2440 saved_regs, next and prev.
2441
46711df8
MK
24422001-08-23 Mark Kettenis <kettenis@gnu.org>
2443
2444 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
2445 gratuitious whitespace changes.
2446 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
2447 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
2448 (sigsetmask) Don't define macro.
2449 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
2450 async_stop_sig from event-top.c.
2451 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
2452 defined.
2453 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
2454 order. Add sigsetmask.
2455 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
2456 alphabetical order.
2457 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
2458 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
2459 (HAVE_SIGSETMASK): Remove.
964840f7 2460 * aclocal.m4, config.in, configure: Regenerated.
46711df8 2461
526eeb95
AC
24622001-08-26 Andrew Cagney <ac131313@redhat.com>
2463
2464 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
2465 * config/powerpc/nbsd.mh (XM_FILE): Delete.
2466
c16ac28f
AC
24672001-08-21 Andrew Cagney <ac131313@redhat.com>
2468
2469 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
2470 (HOST_DOUBLE_FORMAT): Delete macro.
2471
ceacb162
MK
24722001-08-24 Mark Kettenis <kettenis@gnu.org>
2473
2474 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
2475 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
2476 inclusion of <limits.h>.
2477
275f450c
AC
24782001-08-24 Andrew Cagney <ac131313@redhat.com>
2479
2480 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
2481 that a register should be ignored, supply a value for the register
2482 from the raw registers[] buffer.
2483
12a498f3
AC
24842001-08-24 Andrew Cagney <ac131313@redhat.com>
2485
2486 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
2487 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
2488 i386bsd-nat.c.
2489
598f52df
AC
24902001-08-21 Andrew Cagney <ac131313@redhat.com>
2491
2492 * gdbtypes.h (builtin_type_ieee_single_big)
2493 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2494 (builtin_type_ieee_double_little)
2495 (builtin_type_ieee_double_littlebyte_bigword)
2496 (builtin_type_i387_ext, builtin_type_m68881_ext)
2497 (builtin_type_i960_ext, builtin_type_m88110_ext)
2498 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2499 (builtin_type_arm_ext_littlebyte_bigword)
2500 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2501 (builtin_type_ia64_quad_big)
2502 (builtin_type_ia64_quad_little): Declare.
2503 * gdbtypes.c (builtin_type_ieee_single_big)
2504 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2505 (builtin_type_ieee_double_little)
2506 (builtin_type_ieee_double_littlebyte_bigword)
2507 (builtin_type_i387_ext, builtin_type_m68881_ext)
2508 (builtin_type_i960_ext, builtin_type_m88110_ext)
2509 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2510 (builtin_type_arm_ext_littlebyte_bigword)
2511 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2512 (builtin_type_ia64_quad_big)
2513 (builtin_type_ia64_quad_little): Define.
2514 (_initialize_gdbtypes): Initialize builtin floatformat types.
2515
1a6fae3c
MK
25162001-08-23 Mark Kettenis <kettenis@gnu.org>
2517
2518 * tracepoint.c (read_actions): Add FIXME for code depending on
2519 STOP_SIGNAL.
2520
7829b833
MH
25212001-08-23 Martin M. Hunt <hunt@redhat.com>
2522
2523 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
2524 to download loop.
2525 (mips_load_srec): Ditto.
2526
701c159d
AC
25272001-08-22 Andrew Cagney <ac131313@redhat.com>
2528
2529 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
2530 of builtin_type_float, builtin_type_double and
2531 builtin_type_long_double.
2532 (recursive_dump_type): Print the floatformat name.
2533 * gdbtypes.h (struct type): Add type_specific field floatformat.
2534 (TYPE_FLOATFORMAT): Define
2535
99a6d8ba
KS
25362001-08-21 Keith Seitz <keiths@redhat.com>
2537
2538 * printcmd.c (print_insn): Use the given stream for
2539 output.
2540
a37b3cc0
AC
25412001-07-24 Andrew Cagney <ac131313@redhat.com>
2542
2543 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
2544 assembler version of function.
2545 (convert_from_extended, convert_to_extended): Rewrite. Use
2546 floatformat_to_doublest, floatformat_from_doublest,
2547 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
2548 (arm_push_arguments): Use extract_floating and store_floating to
2549 perform floating point conversions.
2550 (SWAP_TARGET_AND_HOST): Delete macro.
2551 * arm-linux-tdep.c (arm_linux_push_arguments): Use
2552 extract_floating and store_floating to perform floating point
2553 conversions.
2554
1c72f9b0
AC
25552001-08-20 Andrew Cagney <ac131313@redhat.com>
2556
2557 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
2558
705da579
KS
25592001-08-17 Keith Seitz <keiths@redhat.com>
2560
2561 * varobj.c (varobj_update): Change first parameter to
2562 pointer to struct varobj*. This function can delete
2563 varobjs, so we need to give callers the new varobj
2564 when this happens.
2565 (value_of_root): Update "var", too, if "var_handle"
2566 changes.
2567 * varobj.h (varobj_update): Likewise.
2568
2bf63d86
KS
25692001-08-17 Keith Seitz <keiths@redhat.com>
2570
2571 * Makefile.in (varobj_h): Define.
2572 (mi-cmd-var.o): Depends on varobj_h.
2573 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
2574
d1c3b63a
KS
25752001-08-16 Keith Seitz <keiths@redhat.com>
2576
2577 * configure.in (GDBTK_SRC_DIR): We must have autoconf
2578 give us the absolute path to the source directory.
2579 * configure: Regenerated.
2580 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
2581 autoconf can substitue it in for us.
2582 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
2583 really do need an absolute pathname.
2584
f0b743a9
KS
25852001-08-15 Keith Seitz <keiths@redhat.com>
2586
2587 * Makefile.in (GDBTK_VERSION): Set a version number.
2588 (GDBTK_LIBRARY): New variable to point to location where
2589 gdbtk will install its tcl library. Changed all refereneces
2590 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
2591 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
2592 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
2593 (all-gdbtk): Remove.
2594 (install-gdbtk): Remove.
2595 (gdbtk.o): Pass srcdir to file when compiling.
2596
25972001-08-15 Ian Roxborough <irox@redhat.com>
2598
2599 * Makefile.in: Changed all references to the install directory
2600 "gdbtcl" to read "insight1.0".
2601
bdcd319a
CV
26022001-08-15 Corinna Vinschen <vinschen@redhat.com>
2603
2604 * arch-utils.c (generic_skip_trampoline_code): New function.
2605 * arch-utils.h (generic_skip_trampoline_code): Declare external.
2606 * gdbarch.c: Regeberated from gdbarch.sh.
2607 * gdbarch.h: Ditto.
2608 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
2609 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
2610
40b3352b
L
26112001-08-14 Daniel Jacobowitz <drow@mvista.com>
2612 H.J. Lu (hjl@gnu.org)
2613
2614 * partial-stab.h: valu should be a CORE_ADDR.
2615
26162001-08-14 H.J. Lu (hjl@gnu.org)
2617
2618 * dbxread.c (SWAP_SYMBOL): Removed.
2619 (INTERNALIZE_SYMBOL): Check sign extended vma.
2620
ae9d9b96
CF
26212001-08-13 Christopher Faylor <cgf@cygnus.com>
2622
2623 * top.c (SIGSETJMP): Protect env argument with parentheses.
2624 (SIGLONGJMP): Protect env argument with parentheses.
2625
6ca173e3
AC
26262001-08-11 Andrew Cagney <ac131313@redhat.com>
2627
2628 * config/mn10300/mn10300.mt (TM_FILE): Delete.
2629 * configure.tgt: Add mn10300 to list of mulit-arch targets.
2630 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
2631 * mn10300-tdep.c: To here.
2632
5ea92dfe
AC
26332001-08-11 Andrew Cagney <ac131313@redhat.com>
2634
2635 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
2636 val a DOUBLEST. Use floatformat_to_doublest.
2637 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
2638 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
2639 (REGISTER_CONVERT_TO_RAW): Ditto.
2640
a15525c1
AC
26412001-08-11 Andrew Cagney <ac131313@redhat.com>
2642
2643 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
2644 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
2645 sp_regnum.
2646
c422e771
AC
26472001-08-11 Andrew Cagney <ac131313@redhat.com>
2648
2649 * doublest.c (convert_doublest_to_floatformat): Rename
2650 floatformat_from_doublest. Make static.
2651 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
2652 Make static.
2653 (floatformat_to_doublest): New function.
2654 (floatformat_from_doublest): New function.
2655 (host_float_format, host_double_format, host_long_double_format):
2656 New static variables.
2657 (store_floating, extract_floating): Always use
2658 floatformat_to_doublest and floatformat_from_doublest.
2659 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2660
f096a152
AC
26612001-08-11 Andrew Cagney <ac131313@redhat.com>
2662
2663 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
2664 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
2665
39d4ef09
AC
26662001-08-07 Andrew Cagney <ac131313@redhat.com>
2667
2668 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
2669 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
2670 * gdbarch.h, gdbarch.c: Regenerate.
2671
2672 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
2673 * arch-utils.c: Include "gdb_assert.h".
2674 (legacy_virtual_frame_pointer): Define.
2675 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
2676
2677 * tracepoint.c (encode_actions): Make frame_reg an int. Make
2678 frame_offset a LONGEST.
2679 * ax-gdb.c (gen_frame_args_address): Ditto.
2680 (gen_frame_locals_address): Ditto.
2681 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
2682 virtual_frame_pointer.
2683 (mn10300_virtual_frame_pointer): Make static. Update parameter
2684 list to match function signature.
2685 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
2686
67c2c32c
KS
26872001-08-10 Keith Seitz <keiths@redhat.com>
2688
2689 * gdb-events.sh: Add architecture_changed event.
2690 * gdbarch.sh: Include gdb-event.h.
2691 (gdbarch_update_p): Notify UIs when architecture changes.
2692 * gdb-events.h: Regenerated.
2693 * gdb-events.c: Regenerated.
2694 * gdbarch.c: Regenerated.
2695
1297a2f0
MS
26962001-08-10 Michael Snyder <msnyder@redhat.com>
2697
2698 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
2699 a write_register to a pseudo-reg. Target_store_pseudo_register
2700 needs to get called, because these regs may be computed and may
2701 have side-effects.
2702
fd969be2
KS
27032001-08-10 Keith Seitz <keiths@redhat.com>
2704
2705 * gdb-events.sh: Deal with event notifications with no
2706 arguments.
2707
fb6e5c55
OF
27082001-08-10 Orjan Friberg <orjanf@axis.com>
2709
2710 * remote.c (read_frame): Correct off-by-one error in condition.
2711
a1bab801
DH
27122001-08-08 Don Howard <dhoward@redhat.com>
2713
2714 * stabsread.c (read_type): Add support for const and volatile
2715 modifiers.
2716
455ecc72
DJ
27172001-08-02 Daniel Jacobowitz <drow@mvista.com>
2718
2719 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
2720 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
2721
a5cedf2f
KS
27222001-08-02 Keith Seitz <keiths@redhat.com>
2723
2724 * defs.h (SLASH_STRING): If not defined, set
2725 to "/", regardless of _WIN32, __CYGWIN__, or
2726 whatnot.
2727
d7275149
MK
27282001-08-02 Mark Kettenis <kettenis@gnu.org>
2729
cc6dd2c0
MK
2730 * cli/cli-decode.h: Include "gdb_regex.h" instead of
2731 "gnu-regex.h".
2732
d7275149
MK
2733 * NEWS: Update.
2734
40cd916f
EZ
27352001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2736
2737 * config/i386/xm-go32.h: Include xm-i386.h.
2738 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
2739
b5de0fa7
EZ
27402001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2741
2742 The following changes avoid polluting global namespace with the
2743 `enable' and `disable' identifiers, because some platforms define
2744 in their system headers symbols with global scope that go by those
2745 names.
2746
2747 * breakpoint.h (enum enable_state): Rename from `enum enable'.
2748 Also rename all the enum members to have the "bp_" prefix.
2749 (struct breakpoint): Rename the `enable' member to `enable_state'.
2750 (enum bpdisp): Rename all members to have the "disp_" prefix.
2751
2752 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
2753 changed.
2754 (args_for_catchpoint_enable): Rename the `enable' member to
2755 `enable_p'. All users changed.
2756
2757 * tracepoint.h (enum enable): Remove.
2758 (struct tracepoint): The member `enabled' is now `int enabled_p'.
2759
2760 * tracepoint.c: All users of the `enabled' member changed.
2761
2762 * printcmd.c (struct display): The `status' member is now an int.
2763
2764 * memattr.h (struct mem_region): Rename the `status' member to
2765 `enabled_p'.
2766 (enum enable): Remove.
2767
2768 * memattr.c: Change all users of the `status' member of struct
2769 mem_region to use `enabled_p' instead.
2770
2771 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
2772
2773 * go32-nat.c: Remove the kludgey work-around for conflicts between
2774 <dos.h> and "breakpoint.h".
2775
ad4571f3
CV
27762001-08-02 Corinna Vinschen <vinschen@redhat.com>
2777
2778 * MAINTAINERS: Add myself to the write-after-approval list.
2779 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
2780 hostname is given.
2781
64f6fcad
AC
27822001-08-01 Andrew Cagney <ac131313@redhat.com>
2783
2784 * doublest.h (store_floating, floatformat_to_doublest): Make IN
2785 paramter a const void pointer.
2786 (floatformat_from_doublest): Make IN const, Make OUT a void
2787 pointer.
2788 * doublest.c (floatformat_to_doublest): Update.
2789 (floatformat_from_doublest): Update.
2790 (extract_floating): Update.
2791
d16aafd8
AC
27922001-07-31 Andrew Cagney <ac131313@redhat.com>
2793
2794 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2795 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2796 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
2797 (floatformat_to_doublest, floatformat_from_doublest)
2798 (floatformat_is_negative, floatformat_is_nan)
2799 (floatformat_mantissa, store_floating)
2800 (extract_floating): Move declaration from here.
2801 * doublest.h: To here. New file.
2802 * utils.c (get_field, floatformat_to_doublest, put_field)
2803 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
2804 (floatformat_is_nan, floatformat_mantissa)
2805 (FLOATFORMAT_CHAR_BIT): Move from here.
2806 * doublest.c: To here. New file.
2807 * findvar.c (store_floating, extract_floating): Move from here.
2808 * doublest.c: To here.
2809 * Makefile.in (SFILES): Add doublest.c.
2810 (COMMON_OBS): Add doublest.o.
2811 (doublest.o): Specify dependencies.
2812 (doublest_h): Define.
2813
2814 * config/m88k/tm-m88k.h: Include "doublest.h".
2815 * config/i960/tm-i960.h: Ditto.
2816 * config/i386/tm-symmetry.h: Ditto.
2817 * rs6000-tdep.c, valarith.c: Ditto.
2818 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
2819 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
2820 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
2821 * alpha-tdep.c, ax.h, expression.h: Ditto.
2822 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
2823
2824 * Makefile.in (arm-tdep.o): Add $(doublest_h).
2825 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
2826 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
2827 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
2828 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
2829 (parser_defs_h): Ditto.
2830 (expression_h): Add $(doublest_h) and $(symtab_h).
2831
1b0cad1c
AC
28322001-08-01 Andrew Cagney <ac131313@redhat.com>
2833
2834 * Makefile.in: Sort header definitions.
2835 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
2836 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
2837 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
2838 $(annotate_h). Replace target.h with $(target_h). Replace
2839 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
2840
1ca66634
MK
28412001-07-31 Mark Kettenis <kettenis@gnu.org>
2842
2843 * config/i386/xm-i386.h: New file.
2844 * config/i386/xm-fbsd.h: Removed.
2845 * config/i386/xm-linux.h: Removed.
2846 * config/i386/fbsd.mh: Reorganize a bit.
2847 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
2848 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
2849 xm-linux.h.
2850
9e84cbde
JB
28512001-07-30 Jim Blandy <jimb@redhat.com>
2852
2853 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
2854
72473524
DJ
28552001-07-27 Daniel Jacobowitz <drow@mvista.com>
2856
2857 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
2858 Check for SETPGRP_VOID separately if cross-compiling and ISO C
2859 headers are available.
2860
8d7f6b4a
MK
28612001-07-30 Mark Kettenis <kettenis@gnu.org>
2862
4b418e06
MK
2863 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
2864 i386_dwarf_reg_to_regnum.
2865
8d7f6b4a
MK
2866 * i386-tdep.c (i386_register_convert_to_virtual): Replace
2867 assertion with a warning if we're asked to convert towards a
2868 non-floating-point type. Zero out the the buffer where the data
2869 is supposed to be stored in that case.
2870
6c56c069
EZ
28712001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
2872
f959bc41
EZ
2873 * config/djgpp/djconfig.sh: Unset CDPATH.
2874
a3b9cbb3
EZ
2875 * go32-nat.c (get_cr3): Temporary disable support for page tables
2876 in UMBs, as it is incomplete.
2877
6c56c069
EZ
2878 Support for stepping through longjmp in DJGPP programs:
2879
2880 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
2881 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
2882 (get_longjmp_target): Add prototype.
2883
de6ee558
AC
28842001-07-28 Andrew Cagney <ac131313@redhat.com>
2885
2886 Fix some PID/TPID fallout for HP/UX.
2887 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
2888 * infttrace.c (ptrace_wait): Match external declaration,
2889 and match target_post_wait declaration.
2890
93755ae6
AC
28912001-07-28 Andrew Cagney <ac131313@redhat.com>
2892
2893 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
158ff1e6 2894 (cris): Set --enable-gdb-build-warnings flag to -w.
93755ae6 2895
16f769f3
AC
28962001-07-28 Andrew Cagney <ac131313@redhat.com>
2897
2898 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
2899 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
2900 (TARGET_LONG_DOUBLE_BIT): Define.
2901 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
2902 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
2903 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
2904 floating point registers.
2905 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
2906 (REGISTER_CONVERT_TO_RAW): Remove.
2907 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
2908
5b7f31a4
AC
29092001-07-26 Andrew Cagney <ac131313@redhat.com>
2910
2911 * thread.c, breakpoint.c: Include "gdb.h".
2912 * Makefile.in (gdb_h): Define.
2913 (HFILES_NO_SRCDIR): Add gdb.h.
2914 (mi-cmd-break.o, mi-main.o, thread.o)
2915 (breakpoint.o): Add dependency on $(gdb_h).
2916
2917 * defs.h (enum gdb_rc, gdb_breakpoint_query)
2918 (gdb_breakpoint, gdb_thread_select)
2919 (gdb_list_thread_ids): Move declaration from here ...
2920 * gdb.h: To here. New file.
2921
8aaf581c
SC
29222001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2923
2924 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
2925 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
2926 (SFILES): Likewise.
2927 (tui-out.o): Define dependencies.
2928 (tui-hooks.o): Likewise.
2929
f9e2d830
AC
29302001-07-28 Andrew Cagney <ac131313@redhat.com>
2931
2932 * MAINTAINERS: Update e-mail address of active @cygnus.com
2933 maintainers to @redhat.com.
2934
de6ed73f
AC
29352001-07-28 Andrew Cagney <ac131313@redhat.com>
2936
2937 * README (Known bugs): Delete section.
2938 (Kernel debugging): Delete section.
2939 (Languages other than C): Delete section.
2940 (Host/target specific installation notes) New section.
2941
3d261580
MK
29422001-07-28 Mark Kettenis <kettenis@gnu.org>
2943
85540d8c
MK
2944 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2945 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
2946 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
2947 prototypes.
2948 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
2949 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
2950 i386_dwarf_reg_to_regnum.
2951 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
2952 New functions.
2953
3d261580
MK
2954 * i386-tdep.c: Include "gdb_assert.h"
2955 (i386_register_convert_to_virtual): Fix such that it can handle
2956 conversion to any floating-point type. Assert that we are dealing
2957 with a floating-point first.
2958 (i386_register_convert_to_raw): Assert that TYPE is a
2959 floating-point type with length 12.
2960
2db5ca22
JM
29612001-07-27 John R. Moore <jmoore@redhat.com>
2962
2963 * configure.in: Added dependency of gdb on tcl/tk libraries.
2964 * Makefile.in: Likewise.
2965 * configure: Regenerated with the above using autoconf.
2966
88e04cc1
EZ
29672001-07-26 Elena Zannoni <ezannoni@redhat.com>
2968
2969 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
2970 NUM_REGS.
2971 (SH_DEFAULT_NUM_REGS): Define.
2972
2033c18a
EZ
29732001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
2974
2975 * go32-nat.c (read_memory_region): Make sure the segment limit was
2976 indeed set, to work around a Windows 2000 bug.
2977
9f30d7f5
DJ
29782001-07-25 Daniel Jacobowitz <drow@mvista.com>
2979
2980 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
2981 * infttrace.c (child_xfer_memory): Likewise.
2982 * symm-nat.c (child_xfer_memory): Likewise.
2983 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
2984 (write_inferior_memory): Likewise.
2985 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
2986 (write_inferior_memory): Likewise.
2987 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
2988 (write_inferior_memory): Likewise.
2989 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
2990 (write_inferior_memory): Likewise.
2991 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
2992 (write_inferior_memory): Likewise.
2993 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
2994 (write_inferior_memory): Likewise.
2995
e23194cb
EZ
29962001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
2997
966beb0f
EZ
2998 * README: Mention how to make gdb.pdf.
2999
e23194cb
EZ
3000 * NEWS: Update.
3001
7c542009
SS
30022001-07-24 Stephen P. Smith <ischis2@home.com>
3003
a3f3e535
SS
3004 * MAINTAINERS (Stephen P. Smith): Added to write after approval
3005 list.
3006
675fb869
AC
30072001-07-23 Andrew Cagney <ac131313@redhat.com>
3008
3009 * mips-tdep.c (mips_push_arguments): Add comment explaining
3010 problem with LE o32 GCC.
3011
a7019e23
EZ
30122001-07-23 Elena Zannoni <ezannoni@redhat.com>
3013
3014 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
3015 doesn't understand them.
3016
ab35b611
EZ
30172001-07-23 Elena Zannoni <ezannoni@redhat.com>
3018
3019 * memattr.c (mem_info_command): Reformat output to look more like
3020 'info break' output.
3021 (_initialize_mem): Improve help.
3022
0200359f
MK
30232001-07-23 Mark Kettenis <kettenis@gnu.org>
3024
3025 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
3026 (AC_FUNC_SETPGRP): Add.
3027 * aclocal.m4, configure, config.in: Regenerated.
3028 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
3029 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
3030 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
3031 distinguish between the two setpgrp flavours.
3032 * config/xm-sysv4.h, config/arm/xm-linux.h,
3033 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
3034 config/i386/xm-linux.h, config/i386/xm-ptx.h,
3035 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3036 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
3037 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
3038 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
3039
9f20bf26
EZ
30402001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
3041
3042 * go32-nat.c (read_memory_region): Set the granularity bit of the
3043 allocated segment according to its size, and adjust the limit to
3044 be page-aligned if the segment is page-granular.
3045
3046 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
3047 (display_page_table, go32_pte, go32_pte_for_address): New functions.
3048 (_initialize_go32_nat): Initialize and document them.
3049
383d750b
MK
30502001-07-22 Mark Kettenis <kettenis@gnu.org>
3051
3052 * i386gnu-nat.c: Include "i387-nat.h".
3053 (struct env387): Removed.
3054 (reg_offset): Fix comment.
3055 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
3056 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
3057 use i387_supply_fsave.
3058 (gnu_fetch_registers): Remove spurious whitespace.
3059 (convert_to_env387): Remove.
3060 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
3061 of convert_to_env387.
3062 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
3063 store_fpregs.
3064 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
3065 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
3066 (NATDEPFILES): Add i387-nat.o.
3067
1a12f22f
SC
30682001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3069
3070 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
3071 (m68hc11-tdep.o): Define dependencies.
3072
7d32ba20
SC
30732001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3074
3075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
3076
5ecb1806
SC
30772001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3078
3079 * utils.c (init_page_info): Use tui_get_command_dimension.
3080 * printcmd.c (disassemble_command): Simplify tui specific code,
3081 use tui_is_window_visible, tui_show_assembly.
3082
25630444
MK
30832001-07-21 Mark Kettenis <kettenis@gnu.org>
3084
3085 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
3086 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
3087 code to ...
3088 * i386fbsd-nat.c: ... here. New file.
3089 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
3090 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
3091 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
3092 (i386fbsd-nat.o): Add dependencies.
3093
0150732f
DJ
30942001-07-19 Daniel Jacobowitz <drow@mvista.com>
3095
3096 * signals.c: New file.
3097 * Makefile.in: Add signals.o.
3098 * target.c (struct signals, target_signal_to_name)
3099 (target_signal_from_name, target_signal_from_host)
3100 (do_target_signal_to_host, target_signal_to_host_p)
3101 (target_signal_to_host, target_signal_from_command): Move to
3102 signals.c.
3103 (initialize_targets): Move check of struct signals to...
3104 * signals.c (_initialize_signals): Here.
3105
e36118e7
AC
31062001-07-19 Andrew Cagney <ac131313@redhat.com>
3107
3108 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
3109
b4fc7a30
AC
31102001-07-19 Andrew Cagney <ac131313@redhat.com>
3111
3112 From Stephen Smith:
3113 * configure.tgt (i*86-*-pe*): New target.
3114
4b048bc0
AC
31152001-07-19 Andrew Cagney <ac131313@redhat.com>
3116
3117 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
3118 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
3119 * somsolib.c (no_shared_libraries): Provide stub.
3120 * xcoffsolib.c (no_shared_libraries): Provide stub.
3121
227288a0
SC
31222001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3123
3124 * Makefile.in (COMMON_OBS): Remove tui-file.o.
3125 (SUBDIR_TUI_OBS): Add it here.
3126 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
3127 (main.o): Remove dependency with tui-file.h.
3128
f9eb4b01
EZ
31292001-07-17 Elena Zannoni <ezannoni@redhat.com>
3130
3131 * Makefile.in (tui-file.o): Update dependencies.
3132
d0c8cdfb
EZ
31332001-07-17 Elena Zannoni <ezannoni@redhat.com>
3134
3135 * top.c (catch_errors): Convert PTR to void * in parameters list.
3136 (quit_cover): Ditto.
3137
063190b6
SC
31382001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3139
3140 * source.c (find_source_lines): Remove tui test, must be replaced
3141 by appropriate warning hook.
3142 (print_source_lines): Remove tui hacks, must be replaced by cli.
3143 (forward_search_command): Remove tui hacks, can be replaced by
3144 appropriate calls to identify_source_line when tui scrolls.
3145 (reverse_search_command): Likewise.
3146
cf759d3b
ND
31472001-07-16 Nick Duffek <nsd@redhat.com>
3148
3149 * remote.c (init_remote_ops, init_remote_cisco_ops,
3150 init_remote_async_ops): Set to_pid_to_str and
3151 to_extra_thread_info correctly and in the same order as declared
3152 in target.h.
3153
0caabb7e
AC
31542001-07-16 Andrew Cagney <ac131313@redhat.com>
3155
3156 * remote.c: Revert below. Included more than intended.
3157
943b3971
ND
31582001-07-16 Nick Duffek <nsd@redhat.com>
3159
3160 * remote.c (init_remote_ops, init_remote_cisco_ops,
3161 init_remote_async_ops): Set to_pid_to_str and
3162 to_extra_thread_info correctly and in the same order as declared
3163 in target.h.
3164
9ed10b08
ND
31652001-07-16 Nick Duffek <nsd@redhat.com>
3166
3167 * findvar.c (read_var_value): Apply value_as_pointer() to
3168 addresses retrieved from the target for LOC_BASEREG and
3169 LOC_BASEREG_ARG variables.
3170
24be5c34
OF
31712001-07-16 Orjan Friberg <orjanf@axis.com>
3172
3173 * NEWS: New target CRIS.
3174
314b6fb7
EZ
31752001-07-16 Elena Zannoni <ezannoni@redhat.com>
3176
3177 * top.c (show_commands): Remove extern decl of history_get, it's
3178 already in readline/history.h.
3179
210661e7
EZ
31802001-07-16 Elena Zannoni <ezannoni@redhat.com>
3181
3182 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
3183 execute_user_command, do_setshow_command, get_prompt, init_proc,
3184 serial_log_command): Remove extern declarations. Include
3185 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
3186 * gdbcmd.h (execute_user_command): Remove declaration, it's already
3187 in cli/cli-script.h.
3188 * command.h (do_setshow_command): Remove declaration, it's already
3189 in cli/cli-setshow.h.
3190 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
3191 * Makefile.in (infrun.o): Update dependencies.
3192 (top.o): Ditto.
3193 * cli/cli-setshow.h: Add comment for do_setshow_command.
3194
2584159e
EZ
31952001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
3196
3197 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
3198 call to chdir on this symbol rather than on __DJGPP__.
3199 (CANT_FORK) [__MSDOS__]: Move from here...
3200 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
3201 (GLOBAL_CURDIR) [__MSDOS__]: Define.
3202
cf54db79
OF
32032001-07-16 Orjan Friberg <orjanf@axis.com>
3204
3205 * configure.tgt: Recognise the CRIS architecture.
3206 * config/cris/cris.mt: New file for CRIS target.
3207 * cris-tdep.c: New file for CRIS target.
3208
64cdedad
EZ
32092001-07-15 Elena Zannoni <ezannoni@redhat.com>
3210
3211 * top.c (quit_cover, float_handler): Move definition up before use.
3212 (gdb_init): Move to end of file, to avoid calls to not yet defined
3213 functions.
3214 Delete prototypes.
3215
2cd58942
AC
32162001-07-14 Andrew Cagney <ac131313@redhat.com>
3217
3218 * serial.h (SERIAL_ASYNC): Delete.
3219 (DEPRECATED_SERIAL_FD): Delete.
3220 (SERIAL_DEBUG): Delete.
3221 (SERIAL_DEBUG_P): Delete.
3222 (SERIAL_DRAIN_OUTPUT): Delete.
3223 (SERIAL_FLUSH_OUTPUT): Delete.
3224 (SERIAL_FLUSH_INPUT): Delete.
3225 (SERIAL_SEND_BREAK): Delete.
3226 (SERIAL_RAW): Delete.
3227 (SERIAL_GET_TTY_STATE): Delete.
3228 (SERIAL_SET_TTY_STATE): Delete.
3229 (SERIAL_PRINT_TTY_STATE): Delete.
3230 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
3231 (SERIAL_SETBAUDRATE): Delete.
3232 (SERIAL_SETSTOPBITS): Delete.
3233 (SERIAL_CAN_ASYNC_P): Delete.
3234 (SERIAL_IS_ASYNC_P): Delete.
3235 (SERIAL_UN_FDOPEN): Delete.
3236 (SERIAL_READCHAR): Delete.
3237 (SERIAL_CLOSE): Delete.
3238 (SERIAL_FDOPEN): Delete.
3239 (SERIAL_OPEN): Delete.
3240 * ser-unix.c: Update.
3241 * sparclet-rom.c: Update.
3242 * remote-bug.c: Update.
3243 * dsrec.c: Update.
3244 * xmodem.c: Update.
3245 * nindy-share/ttyflush.c: Update.
3246 * nindy-share/Onindy.c: Update.
3247 * utils.c: Update.
3248 * serial.c: Update.
3249 * remote-nindy.c: Update.
3250 * inflow.c: Update.
3251 * sparcl-tdep.c: Update.
3252 * sh3-rom.c: Update.
3253 * remote.c: Update.
3254 * remote-utils.c: Update.
3255 * remote-st.c: Update.
3256 * remote-sds.c: Update.
3257 * remote-rdp.c: Update.
3258 * remote-os9k.c: Update.
3259 * remote-nrom.c: Update.
3260 * remote-mips.c: Update.
3261 * remote-es.c: Update.
3262 * remote-e7000.c: Update.
3263 * remote-array.c: Update.
3264 * ocd.c: Update.
3265 * nindy-share/nindy.c: Update.
3266 * monitor.c: Update.
3267
ea7c478f
AC
32682001-07-14 Andrew Cagney <ac131313@redhat.com>
3269
3270 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
3271 * mcore-tdep.c: Ditto.
3272 * sparc-tdep.c: Ditto.
3273 * sh-tdep.c: Ditto.
3274 * rs6000-tdep.c: Ditto.
3275 * ppc-linux-tdep.c: Ditto.
3276 * m68hc11-tdep.c: Ditto.
3277 * ia64-tdep.c: Ditto.
3278 * i386-tdep.c: Ditto.
3279 * arm-linux-tdep.c: Ditto.
3280 * hppa-tdep.c: Ditto.
3281 * h8500-tdep.c: Ditto.
3282 * fr30-tdep.c: Ditto.
3283 * arm-tdep.c: Ditto.
3284 * alpha-tdep.c: Ditto.
3285 * d30v-tdep.c: Ditto.
3286 * d10v-tdep.c: Ditto.
3287 * m32r-tdep.c: Ditto.
3288 * mips-tdep.c: Ditto.
3289 * v850-tdep.c: Ditto.
3290
d75b5104
EZ
32912001-07-15 Elena Zannoni <ezannoni@redhat.com>
3292
3293 * top.c (readline_line_completion_function, noop_completer): Move
3294 from here...
3295 * completer.c (readline_line_completion_function, noop_completer):
3296 ...to here.
3297 * gdbcmd.h (readline_line_completion_function, noop_completer):
3298 Move declarations from here...
3299 * completer.h (readline_line_completion_function, noop_completer):
3300 ...to here.
3301 * corefile.c: Include completer.h.
3302 * source.c: Ditto.
3303 * symfile.c: Ditto.
3304 * Makefile.in: Update dependencies.
3305
150985e3
EZ
33062001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
3307
3308 * go32-nat.c (go32_create_inferior): Support command lines longer
3309 than 126 characters.
3310
def90278
SC
33112001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3312
3313 * NEWS: New target 68HC11/68HC12.
3314
37767e42
SC
33152001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3316
3317 * utils.c (query): Remove tui hacks; tui must use the query_hook.
3318 * top.c (command_loop): Remove tui insert_mode hacks; don't call
3319 tuiCleanUp because this must be made with atexit by tui.
3320 * symfile.c (symbol_file_command): Remove call to TUIDO
3321 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
3322 not necessary when using the selected frame hooks.
3323 (print_stack_frame_stub): Likewise.
3324 (print_frame_info_base): Likewise.
3325 (print_frame_info): Likewise.
3326 (up_silently_command): Likewise.
3327 (down_silently_command): Likewise.
3328 (show_stack_frame): Likewise for TUIDO.
3329 (select_frame): Likewise.
3330 (select_and_print_frame): Likewise.
3331 (stack_publish_stopped_with_no_frame): Remove.
3332 (select_and_maybe_print_frame): Remove.
3333 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
3334 must use the initialize ui hook.
3335 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
3336 selected frame hooks.
3337 * event-top.c (command_handler): Remove tui insert_mode hack.
3338 * defs.h: Remove TUIDO; Only include tui.h.
3339 * breakpoint.c (mention): Remove calls to TUIDO.
3340 (delete_breakpoint): Remove tui hacks; tui must install
3341 the breakpoint hooks.
3342
0123ceaf
MK
33432001-07-14 Mark Kettenis <kettenis@gnu.org>
3344
1fe7ac85
MK
3345 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
3346 * config/i386/nm-linux.h: ...to here. Change comments about user
3347 area/struct a bit.
3348
d0f3ce3c
MK
3349 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
3350
0123ceaf
MK
3351 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
3352 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
3353
4902674b
EZ
33542001-07-13 Elena Zannoni <ezannoni@redhat.com>
3355
3356 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
3357 generate an internal error.
3358 (e7000_fetch_registers): Initialize variable 'wanted'.
3359 (e7000_wait): Initialize variable 'wanted_nopc'.
3360 (e7000_store_register): Fix sprintf compiler warnings.
3361 (sub2_from_pc): Ditto.
3362 (e7000_open): Close the descriptor, not the name.
3363 (e7000_load): Fix compiler warnings.
3364 (sub2_from_pc): Ditto.
3365 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
3366
b7247919
MK
33672001-07-13 Mark Kettenis <kettenis@gnu.org>
3368
3369 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
3370 <sys/sysctl.h>.
3371 (store_inferior_registers): Wrap long line.
3372 (i386bsd_dr_get_status): Fix typo in comment.
3373 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
3374 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
3375 (i386bsd_in_sigtramp): New prototype.
3376 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
3377 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
3378 (external) variables.
3379 (SIGCONTEXT_PC_OFFSET): Removed.
3380 (FRAME_SAVED_PC): New define.
3381 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
3382 (TDEPFILES): Add i386bsd-tdep.o.
3383
d1bacddc
DJ
33842001-07-12 Daniel Jacobowitz <drow@mvista.com>
3385
3386 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
3387 definition.
3388
9a973a8f
MK
33892001-07-13 Mark Kettenis <kettenis@gnu.org>
3390
3391 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
3392 are no registered LWPs yet.
3393
6ef7fa21
DJ
33942001-07-12 Daniel Jacobowitz <drow@mvista.com>
3395
3396 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
3397 function.
3398 (CANNOT_STORE_REGISTER): Likewise.
3399
75e266ac
KS
34002001-07-12 Keith Seitz <keiths@redhat.com>
3401
3402 * remote-rdp.c: Include "serial.h"
3403
d0608e50
DJ
34042001-07-12 Daniel Jacobowitz <drow@mvista.com>
3405
3406 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
3407 in HAVE_TERMIO/HAVE_TERMIOS cases.
3408
1e4fac59
MK
34092001-07-12 Mark Kettenis <kettenis@gnu.org>
3410
de4ca854
MK
3411 * lin-lwp.c (stop_wait_callback): Add support for flushing
3412 signals. Use that in favour of the old code to get rid of
3413 superfluous SIGINTs.
3414 (lin_lwp_wait): Use the new support in stop_wait_callback to
3415 flush all but one SIGINT.
3416
635b0cc1
MK
3417 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
3418 to comment.
3419 (i386_store_return_value): Improve comments about storing
3420 floating-point return values.
3421
1e4fac59
MK
3422 * config/arm/xm-linux.h, config/i386/xm-linux.h,
3423 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3424 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
3425 Removed. Taken care of by autoconf and terminal.h.
3426
49e790b0
DJ
34272001-07-12 Daniel Jacobowitz <drow@mvista.com>
3428
3429 * mips-tdep.c (mips_type_needs_double_align): New function.
3430 (mips_push_arguments): Align o32 structs to even argument
3431 registers if necessary.
3432
e7df8212
DJ
34332001-07-11 Daniel Jacobowitz <drow@mvista.com>
3434
3435 * config/djgpp/fnchange.lst: Add entries for
3436 mips-linux-nat.c and mips-linux-tdep.c.
3437
2b2d558c
MK
34382001-07-12 Mark Kettenis <kettenis@gnu.org>
3439
9e158af1
MK
3440 * config/powerpc/xm-linux.h: Fix corrupted file.
3441
2b2d558c
MK
3442 * configure.in: Add check for sigsetjmp.
3443 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
3444 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
3445 * configure, config.in: Regenerated.
3446
3bbfbb92
EZ
34472001-07-11 Elena Zannoni <ezannoni@redhat.com>
3448
3449 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
3450 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3451 PR_REGNUM fields.
3452
3453 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
3454 skip_prologue_hard_way().
3455 (skip_prologue_hard_way): Make it a function pointer.
3456 (sh_print_register): Use function pointer do_pseudo_register,
3457 instead of sh_do_pseudo_register.
3458 (sh_do_registers_info): Ditto.
3459 (sh_gdbarch_init): Initialize do_pseudo_register.
3460 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
3461 (skip_prologue_hard_way): Update.
3462 (sh_gdbarch_init): Move setting of frame_chain,
3463 get_saved_register, init_extra_frame_info, push_arguments,
3464 extract_return_value, pop_frame, store_struct_return,
3465 extract_struct_value_address, use_struct_convention,
3466 init_extra_frame_info to before target specific settings.
3467 (sh_gdbarch_init): Initialize new tdep fields
3468 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3469 PR_REGNUM.
3470 (sh_push_arguments): Use new gdbarch_tdep fields
3471 {ARG0,ARGLAST}_REGNUM.
3472 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
3473 sh_init_extra_frame_info, sh_push_return_address,
3474 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3475 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
3476 gdbarch_tdep->PR_REGNUM.
3477 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
3478
e64c0717
DJ
34792001-07-11 Daniel Jacobowitz <drow@mvista.com>
3480
3481 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
3482 from it. Move definitions of REALTIME_LO and REALTIME_HI above
3483 include.
3484
6c8e04b5
DJ
34852001-07-11 Daniel Jacobowitz <drow@mvista.com>
3486
3487 * MAINTAINERS: List myself for MIPS/Linux
3488 port.
3489
94dfea5d
DJ
34902001-07-11 Daniel Jacobowitz <drow@mvista.com>
3491
3492 * gdbserver/remote-utils.c (remote_open): Only
3493 check for F_SETOWN if we had F_SETFL and FASYNC.
3494
f175af98
DJ
34952001-07-11 Daniel Jacobowitz <drow@mvista.com>
3496
3497 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
3498
3499 * config/m68k/linux.mh: Remove core-regset.o.
3500 * m68klinux-nat.c: Fix comment.
3501 (supply_gregset): Change argument to elf_gregset_t *.
3502 (supply_fpregset): Change argument to elf_fpregset_t *.
3503 (fetch_core_registers): New function.
3504 (linux_elf_core_fns): Define.
3505 (_initialize_m68k_linux_nat): New function.
3506
21624696
AC
35072001-07-11 Andrew Cagney <ac131313@redhat.com>
3508
3509 * configure.tgt: Mark d10v as pure multi-arch.
3510 * config/d10v/tm-d10v.h: Delete file.
3511 * config/d10v/d10v.mt (TM_FILE): Delete.
3512
819cc324
AC
35132001-07-10 Andrew Cagney <ac131313@redhat.com>
3514
3515 * serial.h (typedef serial_t): Delete. Replace all references to
3516 serial_t with `struct serial *'.
3517 * serial.c: Update.
3518 * nindy-share/ttyflush.c: Update.
3519 * nindy-share/ttyflush.c: Update.
3520 * nindy-share/Onindy.c: Update.
3521 * nindy-share/nindy.c: Update.
3522 * remote-rdp.c: Update.
3523 * remote-sds.c: Update.
3524 * remote-st.c: Update.
3525 * remote-nindy.c: Update.
3526 * remote-mips.c: Update.
3527 * remote-e7000.c: Update.
3528 * remote-os9k.c: Update.
3529 * remote-nrom.c: Update.
3530 * remote-es.c: Update.
3531 * remote-array.c: Update.
3532 * ocd.c: Update.
3533 * mon960-rom.c: Update.
3534 * dsrec.c: Update.
3535 * inflow.c: Update.
3536 * ser-e7kpc.c: Update.
3537 * sparclet-rom.c: Update.
3538 * srec.h: Update.
3539 * ser-tcp.c: Update.
3540 * ser-go32.c: Update.
3541 * sparcl-tdep.c: Update.
3542 * w89k-rom.c: Update.
3543 * utils.c: Update.
3544 * sh3-rom.c: Update.
3545 * remote.c: Update.
3546 * ser-pipe.c: Update.
3547 * ser-unix.c: Update.
3548 * ser-unix.h: Update.
3549 * xmodem.c: Update.
3550 * xmodem.h: Update.
3551
30120c46
AC
35522001-07-11 J.T. Conklin <jtc@redback.com>
3553
3554 From Greg McGary <greg@mcgary.org>:
cf30a8e1
C
3555 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
3556 of SIGIO.
3557 (input_interrupt): Don't block on read, in case we got redundant
3558 SIGIO. Don't gripe about redundant SIGIO.
3559 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
3560 handler while waiting.
3561 * gdbserver/low-linux.c (mywait): Likewise.
3562 * gdbserver/low-nbsd.c (mywait): Likewise.
3563 * gdbserver/low-sparc.c (mywait): Likewise.
3564
84c6c83c
KS
35652001-07-11 Keith Seitz <keiths@redhat.com>
3566
3567 * infrun.c (print_stop_reason): Add missing uiout field
3568 "reason" for SIGNAL_RECEIVED case.
3569
e6da861e
MK
35702001-07-11 Mark Kettenis <kettenis@gnu.org>
3571
82de0203
MK
3572 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
3573 Remove unused macro's.
3574
e6da861e
MK
3575 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
3576 used.
3577
d8c852a1
EZ
35782001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
3579
3580 * go32-nat.c (info_dos_cmdlist): New variable.
3581 (go32_info_dos_command): New function.
3582 (_initialize_go32_nat): Convert all DOS-specific commands into
3583 subcommands of "info dos". Suggested by Andrew Cagney
3584 <ac131313@redhat.com>.
3585
f8d13125
MK
35862001-07-11 Mark Kettenis <kettenis@gnu.org>
3587
11d18042
MK
3588 * config/nm-linux.h: Fix comments.
3589
936742ab
MK
3590 * thread-db.c (enable_thread_event_reporting): Correct warning
3591 message about getting thread death breakpoint.
3592 Reported by John S Kallal <jskallal@home.com>.
3593
ccb945b8
MK
3594 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
3595 (i386_store_return_value): Frob FPU status and tag word to make
3596 sure the return value is the only value on the FPU stack.
3597
f8d13125
MK
3598 * config/tm-linux.h: Do not include <signal.h>. Instead provide
3599 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
3600 already defined.
3601 * config/nm-linux.h: Include <signal.h>.
3602 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
3603 (__SIGRTMAX + 1) respectively.
3604
56ff796a
AC
36052001-07-10 Andrew Cagney <ac131313@redhat.com>
3606
3607 * mcore-rom.c: Include "serial.h".
3608 * Makefile.in (mcore-rom.o): Depends on "serial.h".
3609
899ff3a2
AC
36102001-07-10 Andrew Cagney <ac131313@redhat.com>
3611
3612 * Makefile.in (remote-bug.o): Depends on serial.h.
3613 * remote-bug.c: Include "serial.h".
3614 * MAINTAINERS: Mark m88k target as buildable.
3615 * TODO: Update.
3616
2bf1f4a1
JB
36172001-07-10 Jim Blandy <jimb@redhat.com>
3618
75af7f68
JB
3619 Clean up the D10V port so that GDB and the target program no
3620 longer disagree on how big pointers are.
3621 * findvar.c (value_from_register): Remove special case code for D10V.
3622 * printcmd.c (print_frame_args): Same.
3623 * valops.c (value_at, value_fetch_lazy): Same.
3624 * values.c (unpack_long): Same.
3625 * gdbarch.sh: Changes to effect the following:
3626 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
3627 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
3628 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
3629 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
3630 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
3631 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
3632 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
3633 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
3634 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
3635 gdbarch_d10v_convert_daddr_to_raw_ftype,
3636 gdbarch_d10v_convert_daddr_to_raw,
3637 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
3638 gdbarch_d10v_convert_iaddr_to_raw_ftype,
3639 gdbarch_d10v_convert_iaddr_to_raw,
3640 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
3641 * gdbarch.c: Delete the corresponding definitions.
3642 (struct gdbarch): Delete members d10v_make_daddr,
3643 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3644 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
3645 (startup_gdbarch): Remove initializers for the above.
3646 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
3647 more.
3648 * d10v-tdep.c (d10v_register_virtual_type): Rather that
3649 claiming the stack pointer and PC are 32 bits long (which they
3650 aren't), say that the stack pointer is an int16_t, and the
3651 program counter is a function pointer. This allows the rest
3652 of GDB to make the appropriate conversions between the code
3653 pointer format and real addresses.
3654 (d10v_register_convertible, d10v_register_convert_to_virtual,
3655 d10v_register_convert_to_raw): Delete function; no registers
3656 are convertible now, so we use
3657 generic_register_convertible_not instead.
3658 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
3659 methods.
3660 (d10v_push_arguments, d10v_extract_return_value): Remove special
3661 cases for code and data pointers.
3662 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
3663 the target agree on how large pointers are. Say that addresses
3664 are 32 bits long. Register the address_to_pointer and
3665 pointer_to_address conversion functions. Since no registers are
3666 convertible now, register generic_register_convertible_not as the
3667 gdbarch_register_convertible method instead of
3668 d10v_register_convertible. Remove registrations for
3669 d10v_register_convert_to_virtual,
3670 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
3671 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
3672 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
3673 gdbarch_d10v_convert_iaddr_to_raw.
3674
ef166cf4
JB
3675 * printcmd.c (print_scalar_formatted): If we are printing an
3676 address, remember that TARGET_ADDR_BIT is not always equal to
3677 TARGET_PTR_BIT.
3678
2bf1f4a1
JB
3679 * valops.c (value_cast): When casting a pointer to an integer,
3680 don't convert it to an address.
3681
ba3a8523
AC
36822001-07-10 Andrew Cagney <ac131313@redhat.com>
3683
3684 * remote-utils.h (struct serial): Declare as opaque. Remove
3685 include of "serial.h".
3686 * Makefile.in (remote_utils_h): Update.
3687
3688 * monitor.h (struct serial): Declare as opaque. Remove include of
3689 "serial.h".
3690 (struct monitor_ops): Replace serial_t with `struct serial *'.
3691 * monitor.c (monitor_desc): Ditto.
3692
2aa830e4
DJ
36932001-07-10 Daniel Jacobowitz <drow@mvista.com>
3694
3695 * mips-linux-tdep.c: New file.
3696 * mips-linux-nat.c: New file.
3697 * config/mips/linux.mh: New file.
3698 * config/mips/linux.mt: New file.
3699 * config/mips/xm-linux.h: New file.
3700 * config/mips/nm-linux.h: New file.
3701 * config/mips/tm-linux.h: New file.
3702 * configure.host: Recognize mips*-*-linux*.
3703 * configure.tgt: Likewise.
3704 * NEWS: Mention mips*-*-linux* port.
3705
65e2f740
AC
37062001-07-09 Andrew Cagney <ac131313@redhat.com>
3707
3708 * serial.h (struct serial): Rename `struct _serial_t'.
3709 * serial.c (XMALLOC): Define.
3710 (serial_open): Update. Use XMALLOC.
3711 (serial_fdopen): Ditto.
3712
090a2205
AC
37132001-07-07 Andrew Cagney <ac131313@redhat.com>
3714
3715 * gdbtypes.h (builtin_type_void_data_ptr): Rename
3716 builtin_type_ptr.
3717 * gdbtypes.c (builtin_type_void_data_ptr): Update.
3718 (build_gdbtypes): Update.
3719 (_initialize_gdbtypes): Update.
3720 * values.c (value_as_pointer): Update.
3721 * utils.c (host_pointer_to_address): Update.
3722 (address_to_host_pointer): Update.
3723
8059d5aa
AC
37242001-07-08 Andrew Cagney <ac131313@redhat.com>
3725
3726 * remote-udi.c (udi_wait): Make type, instead of name, of first
3727 parameter a ptid_t.
3728
cc61049c
AC
37292001-07-07 Andrew Cagney <ac131313@redhat.com>
3730
3731 * ser-mac.c: Make obsolete.
3732 * Makefile.in (ser-mac.o): Ditto.
3733
10ba702d
EZ
37342001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
3735
3736 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
3737 (read_memory_region, get_descriptor, display_descriptor)
3738 (go32_sldt, go32_sgdt, go32_sidt): New functions.
3739 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
3740 away `disable' from dos.h, since breakpoint.h defines an enum
3741 member of the same name, and GCC 2.7.2 barfs.
3742 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
3743 dos-gdt, and dos-idt, all of them in the "info" class
3744
44312dba
KB
37452001-07-07 Kevin Buettner <kevinb@redhat.com>
3746
3747 * procfs.c (create_procinfo): Allocate space for saved_entryset
3748 and saved_exitset.
3749 (destroy_one_procinfo): Free space allocated to saved_entryset
3750 and saved_exitset.
3751
5329c756
AC
37522001-07-07 Andrew Cagney <ac131313@redhat.com>
3753
3754 * TODO (5.1): Update.
3755
51cc5b07
AC
37562001-07-07 Andrew Cagney <ac131313@redhat.com>
3757
3758 * symtab.c (main_name): New function.
3759 (set_main_name): New function.
3760 * symtab.h: Declare.
3761 * TODO: Update
3762
3763 From 2000-03-05 Anthony Green <green@redhat.com>:
3764 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
3765 setting main_name.
3766 * blockframe.c (inside_main_func): Use main_name instead of
3767 "main".
3768 * symtab.c (find_main_psymtab): Ditto.
3769 * source.c (select_source_symtab): Ditto.
3770 * nlmread.c (nlm_symfile_read): Ditto.
3771 * rs6000-tdep.c (skip_prologue): Ditto.
3772
56ddd993
AC
37732001-07-07 Andrew Cagney <ac131313@redhat.com>
3774
3775 * TODO: Convert most items into PRs.
3776
58eeadba
MK
37772001-07-07 Mark Kettenis <kettenis@gnu.org>
3778
3779 * lin-lwp.c (status_to_str): New function.
3780 (lin_lwp_wait): Use it to print debug messages where appropriate.
3781
7f1659e6
MC
37822001-07-06 Michael Chastain <chastain@redhat.com>
3783
3784 * i387-tdep.c (print_i387_value): Fix pointer glitch.
3785
00d4fce6
MK
37862001-07-07 Mark Kettenis <kettenis@gnu.org>
3787
3788 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
3789 commented with "paranoia" into gdb_assert.
3790 (select_event_lwp_callback): Likewise.
3791 (cancel_breakpoints_callback): Bail out early if LP is the event
3792 LWP. Add comment about backup up breakpoints. Fix formatting and
3793 debug message.
3794 (select_event_lwp): Make solely repsonsible for switching event
3795 LWP. Fix formatting and remove bogus "ERROR" debug message.
3796 Don't backup breakpoints from here.
3797 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
3798 handle that. Only call select_event_lwp if we're not waiting for
3799 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
3800
7de45904
MS
38012001-07-06 Michael Snyder <msnyder@redhat.com>
3802
3803 * procfs.c (procfs_resume): Silence noisy warning.
3804
b1aeb4c5
MS
38052001-06-12 Michael Snyder <msnyder@redhat.com>
3806
3807 * lin-lwp.c: Prevent thread starvation by using a monte carlo
3808 method to choose which of several event threads to handle next.
3809
3810 (stop_wait_callback): Defer pushback of breakpoint events until
3811 later; add SIGTRAP events to the queue of unhandled events.
3812 Keep calling waitpid until SIGSTOP retrieved. If more than one
3813 non-SIGSTOP event is retrieved, push them back onto the process
3814 queue using kill.
3815 (count_events_callback, select_singlestep_lwp_callback,
3816 select_event_lwp_callback, cancel_breakpoints_callback,
3817 select_event_lwp): New functions. Implement monte carlo method
3818 for selecting which of several SIGTRAP threads to handle next.
3819 Push back the breakpoint event for all threads other than the
3820 selected one.
3821 (lin_lwp_wait): Call select_event_lwp to decide which of several
3822 sigtrapped lwps to handle next.
3823 (resume_callback): Disable code that attempts to handle
3824 step_resume breakpoints. Let core gdb handle this.
3825
ee3a7b7f
JB
38262001-07-06 Jim Blandy <jimb@redhat.com>
3827
3828 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
3829 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
3830 (build_gdbtypes): Initialize it.
3831 (_initialize_gdbtypes): Swap it.
3832
e135b889 38332001-07-04 Daniel Jacobowitz <drow@mvista.com>
ee3a7b7f 3834
e135b889
DJ
3835 * mips-tdep.c (mips32_op): Correct offset.
3836 (itype_op): Likewise.
3837 (itype_rs): Fix formatting.
3838 (itype_immediate): Fix formatting.
3839 (jtype_op): Correct offset.
3840 (jtype_target): Fix formatting.
3841 (rtype_op): Correct offset.
3842 (rtype_rs): Fix formatting.
3843 (rtype_rt): Likewise.
3844 (rtype_rd): Likewise.
3845 (rtype_shamt): Likewise.
3846 (rtype_funct): Likewise.
3847
3848 (mips32_next_pc): Fix formatting and comments. Recognize
3849 coprocessor 1 branches. Check the correct field for BLT family
3850 branches. Use itype_rt instead of itype_rs for the second register
3851 of a BNE or BNEL branch. Move (unreachable) default case.
3852
9dc5e2a9
AC
38532001-07-04 Andrew Cagney <ac131313@redhat.com>
3854
3855 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
3856 (ui_out_is_mi_like_p): Declare.
3857 * ui-out.c (ui_out_is_mi_like_p): Define.
3858 (default_ui_out_impl): Initialize is_mi_like_p to zero.
3859 * cli-out.c (cli_ui_out_impl): Ditto.
3860 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
3861 (watchpoint_check, print_one_breakpoint, mention): Ditto.
3862 * infrun.c (print_stop_reason, normal_stop): Ditto.
3863
9022177c
DJ
38642001-07-05 Daniel Jacobowitz <drow@mvista.com>
3865
3866 * mips-tdep.c (mips_software_single_step): New function.
3867 * config/mips/tm-mips.h: Add prototype for
3868 mips_software_single_step.
3869
2ac44c70
DJ
38702001-07-05 Daniel Jacobowitz <drow@mvista.com>
3871
3872 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
3873 of greg_t.
3874 (fill_gregset): Likewise.
3875
bdda63b0
AC
38762001-07-05 Andrew Cagney <ac131313@redhat.com>
3877
3878 * objfiles.c (open_mapped_file): Use lbasename instead of
3879 basename.
3880
af703f96
JB
38812001-07-05 Jim Blandy <jimb@redhat.com>
3882
7b570125
JB
3883 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
3884 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
3885 d10v_write_sp, d10v_write_fp, d10v_read_fp,
3886 d10v_push_return_address): Call the functions d10v_make_daddr,
3887 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
3888 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
3889 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
3890 D10V_CONVERT_DADDR_TO_RAW.
3891
af703f96
JB
3892 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
3893
e087d0d6
MK
38942001-07-05 Mark Kettenis <kettenis@gnu.org>
3895
3896 * config/i386/xm-go32.h (HOST_I386): Removed.
3897 * config/i386/xm-linux.h (HOST_I386): Removed.
3898
c96646d0
MK
38992001-07-04 Mark Kettenis <kettenis@gnu.org>
3900
3901 * i387-tdep.c (print_i387_value): Add extra space after final full
3902 stop in comment.
3903
af6c57ea
AC
39042001-07-04 Andrew Cagney <ac131313@redhat.com>
3905
3906 * TODO (5.1): Update. Doco changes committed.
3907
9da8e4f8
AC
39082001-06-29 Andrew Cagney <ac131313@redhat.com>
3909
3910 * config/arm/tm-arm.h: Include "floatformat.h".
3911
d0df8472
AC
39122001-06-29 Andrew Cagney <ac131313@redhat.com>
3913
3914 * i387-tdep.c: Include "gdb_assert.h".
3915 (print_i387_value): Use extract_floating to extract the FP value
3916 from a zero padded local buffer.
3917
291903b1
AC
39182001-06-28 Andrew Cagney <ac131313@redhat.com>
3919
3920 * TODO: Delete all thread items. The thread code was overhauled.
3921
80629b1b
EZ
39222001-07-04 Elena Zannoni <ezannoni@redhat.com>
3923
2ed3d0b5
EZ
3924 * memattr.c (create_mem_region): Move n to next memory region,
3925 to avoid infinite loop.
3926
80629b1b
EZ
3927 * memattr.h: Add copyright statement.
3928 * memattr.c: Ditto.
3929
2541c7cf
JB
39302001-07-04 Jim Blandy <jimb@redhat.com>
3931
0b010bcc
JB
3932 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
3933 (read_partial_die): Delete fourth argument; we return this info in
3934 the struct partial_die_info object itself now.
3935 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
3936 has_pc_info field of the partial die struct, rather than passing a
3937 variable by reference to read_partial_die.
3938
2541c7cf 3939 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
9faef8a7 3940 code in loop condition.
2541c7cf 3941
5d12882f
MS
39422001-07-03 Michael Snyder <msnyder@redhat.com>
3943
3944 * thread_db (find_new_threads_callback, thread_db_thread_alive,
3945 attach_thread): Update comments.
3946
00783ba9
MS
39472001-06-29 Ken Whaley <ken@believe.com>
3948
3949 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
3950 to TD_THR_UNKNOWN when looking for defunct zombie threads.
3951 (thread_db_thread_alive): Ditto.
3952 (find_new_threads_callback): Ditto.
3953
f7856c8f 39542001-07-02 Daniel Jacobowitz <drow@mvista.com>
2740bf6c
DJ
3955
3956 * MAINTAINERS: Add myself to the write-after-approval list.
3957
39582001-07-02 Daniel Jacobowitz <drow@mvista.com>
3959
f7856c8f
DJ
3960 * solib-svr4.c: Include "elf/mips.h".
3961 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
3962
f9aca02d
JB
39632001-07-02 Jim Blandy <jimb@redhat.com>
3964
3965 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
3966 dump_die_list, store_in_ref_table, follow_die_ref): Make these
3967 static; they're private functions.
3968
42a076f0
EZ
39692001-07-01 Mark Elbrecht <snowball@bigfoot.com>
3970
3971 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
3972
77467810
EZ
39732001-06-28 Elena Zannoni <ezannoni@redhat.com>
3974
3975 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
3976
85593179
AC
39772001-06-29 Andrew Cagney <ac131313@redhat.com>
3978
3979 * config/djgpp/fnchange.lst: Sort.
3980
cde2d0fb
AC
39812001-06-28 Andrew Cagney <ac131313@redhat.com>
3982
3983 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
3984 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
3985
37965979
AJ
39862001-06-29 Andreas Jaeger <aj@suse.de>
3987
3988 * MAINTAINERS: Add myself to the write-after-approval list.
3989
a1337894
AC
39902001-06-28 Andrew Cagney <ac131313@redhat.com>
3991
3992 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
3993 (get_hex_word): Don't use HOST_BYTE_ORDER.
3994 (array_fetch_registers): Add variable ``reg''. Use
3995 store_unsigned_integer to byte-swap the register. Delete unused
3996 local ``regs''.
3997
aa8aac68
AC
39982001-06-28 Andrew Cagney <ac131313@redhat.com>
3999
4000 * MAINTAINERS: Add Per Bothner to Java maintainers.
4001
a8016339
AC
40022001-06-28 Andrew Cagney <ac131313@redhat.com>
4003
4004 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
4005 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
4006 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
4007 * TODO: Update.
4008 * MAINTAINERS: Update. arm-elf builds.
4009
f5e1cf12
JB
40102001-06-28 Jim Blandy <jimb@redhat.com>
4011
bf93dfed
JB
4012 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
4013
4014 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
f5e1cf12
JB
4015 d10v_breakpoint_from_pc, d10v_register_byte,
4016 d10v_register_raw_size, d10v_register_virtual_size,
4017 d10v_register_virtual_type, d10v_register_convertible,
4018 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
4019 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4020 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
4021 d10v_store_struct_return, d10v_store_return_value,
4022 d10v_extract_struct_value_address, d10v_frame_saved_pc,
4023 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
4024 d10v_frame_chain, d10v_frame_init_saved_regs,
4025 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
4026 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
4027 d10v_push_return_address, d10v_push_arguments,
4028 d10v_extract_return_value): Make these functions static.
4029
100a02e1
AC
40302001-06-28 Andrew Cagney <ac131313@redhat.com>
4031
4032 From Fernando Nasser:
4033 * infrun.c (handle_inferior_event): Handle "nexti" inside function
4034 prologues.
4035
80b34fab
MS
40362001-06-28 Michael Snyder <msnyder@redhat.com>
4037
4038 * infrun.c (handle_inferior_event): Replace prev_pc test in all
4039 calls to bpstat_stop_status (removed in 1999-09-24). This test
4040 helps distinguish stepping over a breakpoint trap from stepping
4041 thru a jump to the instruction after a breakpoint trap.
4042 (handle_inferior_event): Don't bother writing the PC if
4043 DECR_PC_AFTER_BREAK is zero (optimization).
4044 * breakpoint.c (bpstat_stop_status): Add comment explaining the
4045 purpose and usage of the "not_a_breakpoint" argument in computing
4046 the breakpoint address.
4047
1456ad8e
AC
40482001-06-28 Andrew Cagney <ac131313@redhat.com>
4049
4050 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
4051 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
4052 (setreg_resp_delim_pattern): Likewise.
4053 (setmem_resp_delim_fastmap): New buffer.
4054 (setreg_resp_delim_fastmap): Likewise.
4055 (monitor_open): Initialize above regexp if they are defined.
4056 (monitor_write_memory): Use regexp to check the result of write.
4057 (monitor_store_register): Likewise to check result of register set.
4058
399371f6
AC
40592001-06-28 Andrew Cagney <ac131313@redhat.com>
4060
4061 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
4062 * coff-solib.c: Include symfile.h and objfiles.h to make
4063 OBJF_SHARED visible.
4064
b0e2e90a
AC
40652001-06-28 Andrew Cagney <ac131313@redhat.com>
4066
4067 * configure.in (--enable-gdbmi): Enable by default.
4068 * configure: Regenerate.
4069 * TODO: Update.
4070 * NEWS: Update
4071
ad98fdaf
JB
40722001-06-28 Joel Brobecker <brobecker@act-europe.fr>
4073
4074 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
4075 explaining the consequences of always returning zero. No code
4076 change.
4077
49dd83ba
AC
40782001-06-28 Andrew Cagney <ac131313@redhat.com>
4079
4080 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
4081 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
4082 to TARGET_SIGNAL_REALTIME_127.
4083 * target.c (struct signals): Add SIG63 to SIG127.
4084 (target_signal_from_host): Handle up to 127 signals.
4085 (do_target_signal_to_host): Likewise.
4086
29372230
AC
40872001-06-27 Andrew Cagney <ac131313@redhat.com>
4088
4089 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
4090 from possibly unsigned char.
4091
a196c81c
AC
40922001-06-27 Andrew Cagney <ac131313@redhat.com>
4093
4094 * ser-ocd.c: Delete file.
4095 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
4096 (ser-ocd.o): Delete target.
4097 * TODO: Update.
4098 * NEWS: Update.
4099
e7745bde
AC
41002001-06-27 Andrew Cagney <ac131313@redhat.com>
4101
4102 * MAINTAINERS (Write After Approval): Sort.
f4c100a7 4103 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
e7745bde 4104
d7faa9e7
AC
41052001-06-26 Andrew Cagney <ac131313@redhat.com>
4106
4107 * breakpoint.c (breakpoint_1): Always output the breakpoint
4108 headings. Leave it to ui-out to decide which
4109
68c81b54
AC
41102001-06-25 Andrew Cagney <ac131313@redhat.com>
4111
4112 * stack.c (print_frame): For ui_out, output a list of arguments.
4113
834091c8
KB
41142001-06-25 Kevin Buettner <kevinb@redhat.com>
4115
4116 * MAINTAINERS (paper trail): Update.
4117
ef5cf84e
MS
41182001-06-25 Michael Snyder <msnyder@redhat.com>
4119
4120 * infrun.c: Eliminate the "thread_step_needed" state variable,
4121 and replace it with a relatively simple test in resume.
4122 (resume): Replace thread_step_needed logic with a test for
4123 stepping, breakpoint_here_p and breakpoints_inserted.
4124 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
4125 (proceed): Discard thread_step_needed logic.
4126 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
4127 Discard thread_step_needed logic.
4128
cb90e81a
FN
41292001-06-24 Fernando Nasser <fnasser@redhat.com>
4130
4131 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
4132 * rdi-share/host.h: Add missing parenthesis in conditional.
4133
39812ceb
C
41342001-06-22 J.T. Conklin <jtc@redback.com>
4135
4136 * configure.in: include nlist.h when checking for member som_addr
4137 in struct so_map.
4138 * configure: regenerate.
4139
8d2139f3
KS
41402001-06-21 Keith Seitz <keiths@redhat.com>
4141
4142 * cli-out.c (cli_out_new): Initialize new structure member
4143 "suppress_output".
4144
b25959ec
AC
41452001-06-20 Andrew Cagney <ac131313@redhat.com>
4146
4147 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
4148 (table_header_ftype): Ditto.
4149 * cli-out.c (cli_table_header): Update.
4150 * ui-out.c (ui_out_table_header): Update.
4151 (uo_table_header): Update.
4152 (default_table_header): Update.
4153 (append_header_to_list): Update.
4154 (struct ui_out_header): Add field ``col_name''.
4155 (append_header_to_list): Use xstrdup. Initialize col_name.
4156 * breakpoint.c (breakpoint_1): Pass COL_NAME to
4157 ui_out_table_header.
4158
698384cd
AC
41592001-06-19 Andrew Cagney <ac131313@redhat.com>
4160
4161 * cli-out.c: Include "gdb_assert.h'.
4162 (struct ui_out_data): Add field ``suppress_output.
4163 (cli_table_begin): When NR_ROWS is zero, suppress_output.
4164 (cli_table_end): Clear suppress_output.
4165 (cli_table_body): Check suppress_output.
4166 (cli_table_header, cli_begin): Ditto.
4167 (cli_end, cli_field_int, cli_field_skip): Ditto.
4168 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
4169 (cli_text, cli_message, cli_wrap_hint): Ditto.
4170 * breakpoint.c (breakpoint_1): Close the ui_out table before
4171 printing the breakpoint not found message.
4172
d63f1d40
AC
41732001-06-18 Andrew Cagney <ac131313@redhat.com>
4174
4175 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
4176 (default_table_begin): Ditto.
4177 (uo_table_begin): Ditto.
4178 * cli-out.c (cli_table_begin): Ditto.
4179 * ui-out.h (ui_out_table_begin): Update
4180 (table_begin_ftype): Update.
4181 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
4182 ui_out_table_begin.
4183
7f3b0473
AC
41842001-06-16 Andrew Cagney <ac131313@redhat.com>
4185
4186 * breakpoint.c (breakpoint_1): Restructure. Compute the
4187 nr_printable_breakpoints. Move the header output to before the
4188 main print breakpoints loop.
4189 (user_settable_breakpoint): New function.
4190
b30bf9ee
AC
41912001-06-18 Andrew Cagney <ac131313@redhat.com>
4192
4193 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
4194 "mi", "mi0" and "mi1".
4195
83905903
AC
41962001-06-17 Andrew Cagney <ac131313@redhat.com>
4197
4198 * gdbarch.sh: Generate an error when conflicting macro
4199 definitions. Generate an error when both pure multi-arch and
4200 "tm.h".
4201 * gdbarch.h, gdbarch.c: Regenerate.
4202 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
4203
c2202abf
AC
42042001-06-17 Andrew Cagney <ac131313@redhat.com>
4205
4206 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
4207 GDB_MULTI_ARCH_PARTIAL from two.
4208
0d70f41b
FN
42092001-06-17 Fernando Nasser <fnasser@redhat.com>
4210
4211 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
4212 * cli/cli-script.c (free_command_lines): Reset list pointer.
4213
7824d2f2
AC
42142001-06-16 Andrew Cagney <ac131313@redhat.com>
4215
4216 * arch-utils.c (init_frame_pc_default): New function
4217 * arch-utils.h (init_frame_pc_default): Declare.
4218 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
4219 not init_frame_pc_noop.
4220 * gdbarch.h, gdbarch.c: Re-generate.
4221 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
4222 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
4223 init_frame_pc_noop.
4224
1622c8f7
AC
42252001-06-16 Andrew Cagney <ac131313@redhat.com>
4226
4227 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
4228
01fb7433
AC
42292001-06-15 Andrew Cagney <ac131313@redhat.com>
4230
4231 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
4232 (CANNOT_STORE_REGISTER): Ditto.
4233 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
4234 (CANNOT_STORE_REGISTER): Ditto.
4235 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
4236 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
4237 * arch-utils.h (cannot_register_not): Define.
4238 * arch-utils.c (cannot_register_not): Declare.
4239
10312cc4
AC
42402001-06-15 Andrew Cagney <ac131313@redhat.com>
4241
4242 * gdbarch.sh: Clarify pre/post default
4243 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
4244 * blockframe.c (get_prev_frame): Remove #ifdef from around
4245 INIT_FRAME_PC_FIRST call.
4246 * arch-utils.c (init_frame_pc_noop): Define.
4247 * arch-utils.h (init_frame_pc_noop): Declare.
4248 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
4249 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
4250 * mips-tdep.c (mips_init_frame_pc_first): Make static.
4251 (mips_gdbarch_init): Initialize init_frame_pc_first.
4252 (mips_dump_tdep): Update.
4253
dd80620e
MS
42542001-06-15 Michael Snyder <msnyder@redhat.com>
4255
4256 * infrun.c (context_switch): New function. Abstract the operation
4257 of saving and restoring infrun's state when switching threads.
4258 (handle_inferior_event): Normalize the handling of the 'thread hop'
4259 event (when the wrong thread hits a thread-specific breakpoint,
4260 and we need to solo-step that thread past the breakpoint).
4261 Call keep_going, instead of target_resume. Handle the subsequent
4262 singlestep-trap as a normal event instead of just resuming.
4263
875e1767
AC
42642001-06-15 Andrew Cagney <ac131313@redhat.com>
4265
4266 * arch-utils.c (core_addr_identity): New function. Rename
4267 default_convert_from_func_ptr_addr.
4268 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
4269 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
4270 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
4271 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
4272 * mips-tdep.c (mips_addr_bits_remove): Make static.
4273 (mips_gdbarch_init): Initialize addr_bits_remove.
4274
4009c677
AC
42752001-06-15 Andrew Cagney <ac131313@redhat.com>
4276
4277 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
4278 * configure.tgt: Add S/390 31 & 64 bit target configuration.
4279 * configure.host: Ditto for host.
4280
d6dd581e
AC
42812001-06-15 Andrew Cagney <ac131313@redhat.com>
4282
4283 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
4284 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
4285 predicate.
4286 * gdbarch.h, gdbarch.c: Regenerate.
4287 * values.c (value_being_returned): Change the reference to
4288 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
4289
09843d7f
JB
42902001-06-15 Joel Brobecker <brobecker@act-europe.fr>
4291
4292 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
4293 Write After Approval list.
4294
dc8acb97
MS
42952001-06-14 Michael Snyder <msnyder@redhat.com>
4296
4297 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
4298 set_remote_protocol_qSymbol_packet_cmd): New functions.
4299 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
4300 (remote_check_symbols): New function. Implement qSymbol packet,
4301 allowing target to request symbol lookup service from gdb.
4302 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
4303 allowing symbol lookup from exec_bfd on connection to target.
4304 (remote_new_objfile): New function. Catch new objfile notifications
4305 from shared library module, and call remote_check_symbols.
4306 (_initialize_remote): Hook remote_new_objfile into the shared
4307 library notification chain. Add "set remote symbol-lookup" command.
4308
578c1fe6
KS
43092001-06-14 Keith Seitz <keiths@redhat.com>
4310
4311 * tracepoint.c (trace_command): We now have tracepoint
4312 events. Get rid of those ugly hooks.
4313 (tracepoint_operation): Likewise.
4314 (trace_pass_command): Likewise.
4315
6c0d3f6a
MS
43162001-06-13 Michael Snyder <msnyder@redhat.com>
4317
4318 * gdbthread.h (struct thread_info): Add new fields:
4319 current_line, current_symtab, step_sp, for saved infrun state.
4320 * thread.c (save_infrun_state, load_infrun_state): Save and
4321 restore current_line, current_symtab, and step_sp.
4322 (add_thread): Rather than adding assignments to initialize
4323 the new fields, just use memset (tp, 0, sizeof (*tp).
4324 This way future new fields will not be overlooked.
4325 * infrun.c (handle_inferior_event): Save and restore save_sp,
4326 current_line, and current_symtab when switching threads.
4327
16075ace
EZ
43282001-06-13 Elena Zannoni <ezannoni@redhat.com>
4329
4330 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
4331 testsuite/gdb.mi.
4332
31889e00
AC
43332001-06-11 Andrew Cagney <ac131313@redhat.com>
4334
4335 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
4336 (lookup_partial_symtab, file_matches): Ditto.
4337 (make_source_files_completion_list): Ditto.
4338 (make_file_symbol_completion_list): Ditto. Make local char*
4339 variable ``tail'' constant.
4340 (make_source_files_completion_list): Ditto with ``base_name''.
4341 * source.c (open_source_file): Use lbasename. Make ``p'' const
4342 char *.
4343
4ac40b29
EZ
43442001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
4345
4346 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
bfefb583 4347 (SLASH_STRING): Remove unused definitions.
4ac40b29
EZ
4348 * config/i386/xm-cygwin.h: Likewise.
4349
6b28c186
AC
43502001-06-12 Andrew Cagney <ac131313@redhat.com>
4351
4352 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
4353 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
4354 * ui-out.h: Update declarations.
4355
1f8cc6db
AC
4356Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
4357
4358 * source.c (openp): Make parameters ``path'' and ``string''
4359 constant.
4360 (openp): Use alloca to safely duplicate ``string''. Make local
4361 variables ``p'' and ``p1'' constant. Delete char* casts.
4362 * defs.h: Update.
4363
4364 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
4365 (lookup_symtab, lookup_partial_symtab): Ditto.
4366 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
4367
88379baf
AC
43682001-06-11 Andrew Cagney <ac131313@redhat.com>
4369
4370 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
4371 (ui_out_table_header, ui_out_field_int): Ditto.
4372 (ui_out_field_core_addr, ui_out_field_string): Ditto.
4373 (ui_out_field_stream, ui_out_field_fmt): Ditto.
4374 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
4375 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
4376 (ui_out_field_core_addr, ui_out_field_stream): Update.
4377 (ui_out_field_string, ui_out_field_fmt): Update.
4378 (ui_out_text, ui_out_message): Update.
4379 (append_header_to_list): Make char* parameters constant.
4380 (uo_table_header, uo_table_begin): Ditto.
4381 (uo_field_int, uo_field_skip): Ditto.
4382 (uo_field_string, uo_field_fmt): Ditto.
4383 (uo_text, uo_message): Ditto.
4384
c94fdfd0
EZ
43852001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
4386
4387 * completer.c (gdb_completer_loc_break_characters): New variable.
4388 (line_completion_function): If we are completing on locations,
4389 back up the start of word pointer past all characters which can
4390 appear in a location spec.
4391 (location_completer): New function.
4392
4393 * completer.h: Add prototype for location_completer.
4394
4395 * symtab.c (make_source_files_completion_list)
4396 (add_filename_to_list, not_interesting_fname): New functions.
4397 (filename_seen): New function, body extracted from
4398 output_source_filename.
4399 (output_source_filename): Call filename_seen to check if the file
4400 was already printed.
4401 (make_symbol_completion_list): If TEXT includes a
4402 double-quoted string, return an empty list, not NULL.
4403 (make_file_symbol_completion_list): New function, similar to
4404 make_symbol_completion_list but with an additional argument
4405 SRCFILE.
4406
4407 * symtab.h (make_file_symbol_completion_list)
4408 (make_source_files_completion_list): Add prototypes.
4409
4410 * breakpoint.c (_initialize_breakpoint): Make location_completer
4411 be the completion function for all commands which set breakpoints
4412 and watchpoints.
4413 (top-level): #include "completer.h".
4414
4415 * tracepoint.c (_initialize_tracepoint): Make location_completer
4416 be the completion function for the "trace" command.
4417 (top-level): #include "completer.h".
4418
4419 * printcmd.c (_initialize_printcmd): Make location_completer be
4420 the completion function for the "print", "inspect", "call", and
4421 "disassemble" commands.
4422 (top-level): #include "completer.h".
4423
4424 * infcmd.c (_initialize_infcmd): Make location_completer be the
4425 completion function for the "go", "jump", and "until" commands.
4426 (top-level): #include "completer.h".
4427
0b6a968e
CF
44282001-06-10 Christopher Faylor <cgf@redhat.com>
4429
4430 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
4431 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
4432 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
4433 * defs.h: Ditto.
4434 * m32r-rom.c: Ditto.
4435 * p-exp.y: Ditto.
4436 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
4437 faster compilation.
4438 (get_ds_base): Remove _MSC_VER version of this function.
67bfdb89
CF
4439 * nindy-share/ttyflush.c: Ditto.
4440 * rdi-share/host.h: Ditto.
0b6a968e
CF
4441 * ser-go32.c (dos_readchar): Remove call to obsolete function.
4442 * remote-sim.c (gdb_os_poll_quit): Ditto.
4443 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
4444
4445 * main.c (captured_main): Eliminate special Cygwin checks.
4446 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
4447
e2e11a41
AC
44482001-06-09 Andrew Cagney <ac131313@redhat.com>
4449
bf5efbab
AC
4450 * Makefile.in (gdbcmd_h): Add ui_out_h.
4451 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
4452 (thread.o, top.o): Ditto.
4453
e2e11a41
AC
4454 * ui-out.h (table_begin_ftype): Make string parameters constant.
4455 (table_header_ftype): Ditto.
4456 (field_int_ftype): Ditto.
4457 (field_skip_ftype): Ditto.
4458 (field_string_ftype): Ditto.
4459 (field_fmt_ftype): Ditto.
4460 (text_ftype): Ditto.
4461 (message_ftype): Ditto.
4462 * cli-out.c (cli_table_begin): Ditto.
4463 (cli_table_header): Ditto.
4464 (cli_field_int): Ditto.
4465 (cli_field_skip): Ditto.
4466 (cli_field_string): Ditto.
4467 (cli_field_fmt): Ditto.
4468 (cli_text): Ditto.
4469 (cli_message): Ditto.
4470 (out_field_fmt): Ditto.
4471 * ui-out.c (default_table_begin): Ditto.
4472 (default_table_header): Ditto.
4473 (default_field_int): Ditto.
4474 (default_field_skip): Ditto.
4475 (default_field_string): Ditto.
4476 (default_field_fmt): Ditto.
4477 (default_text): Ditto.
4478 (default_message): Ditto.
4479
2e663524
MS
44802001-06-08 Michael Snyder <msnyder@redhat.com>
4481
4482 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
4483 remove_breakpoint, so that the subsequent test for
4484 bpt->inserted will succeed, and duplicates will be fixed up.
4485
bebd888e
PB
44862001-06-08 Per Bothner <per@bothner.com>
4487
4488 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
4489
8f45b7fe
KS
44902001-06-07 Keith Seitz <keiths@redhat.com>
4491
4492 * tracepoint.c (tracepoint_opertation): Add ui event
4493 notifications.
4494 (trace_pass_command): Ditto.
4495
b76a2a57
AC
44962001-06-07 Andrew Cagney <ac131313@redhat.com>
4497
4498 * MAINTAINERS (Write After Approval): Note the entry criteria.
a4f1e24f 4499 (HP/PA): Jeff Law stepped down
b76a2a57 4500
72e74a21
JB
45012001-06-07 Jim Blandy <jimb@redhat.com>
4502
4503 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
4504 variable values as operators.
4505
8c6ee715
KS
45062001-06-07 Keith Seitz <keiths@redhat.com>
4507
4508 * gdb-events.sh: Fix quote escaping which was obsoleted
4509 by last patch.
4510
9e791099
KS
45112001-06-07 Keith Seitz <keiths@redhat.com>
4512
4513 * gdb-events.sh: Make if statements and tests
4514 a little more portable.
4515 Don't use shell's echo command to put strings containing
4516 escaped characeters into a file -- different flavors of /bin/sh
4517 require differnt levels of escaping. Use cat <<EOF instead.
4518 Our internal field separator is a colon. Change all
4519 commands which assume it is a space.
4520
fce0e6e1
MK
45212001-06-06 Mark Kettenis <kettenis@gnu.org>
4522
4523 * lin-lwp.c (struct lwp_info): Add member `resumed'.
4524 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
4525 LWP it's called for.
4526 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
4527 SIGSTOP is reported.
4528 (resume_clear_callback): New function.
4529 (resume_set_callback): New function.
4530 (lin_lwp_resume): Mark all LWP's that we're going to resume as
4531 resumed, and unmark all others.
4532 (status_callback): Only report a pending wait status if we pretend
4533 that LP has been resumed.
4534 (resumed_callback): New function.
4535 (lin_lwp_wait): Add assertions to check that LWP's are properly
4536 marked as resumed. Partially revert 2001-05-25 patch by Michael
4537 Snyder: do not resume all threads. Add comment explaining the
4538 problems associated with this bit of code.
4539
54403c59
KS
45402001-06-07 Keith Seitz <keiths@redhat.com>
4541
4542 * MAINTAINTERS: Syd Polk is stepping down from
4543 maintaining libgui. I am replacing him.
4544
1d06468c
EZ
45452001-06-07 Eli Zaretskii <elis@is.elta.co.il>
4546
4547 * config/mips/tm-irix6.h: New file.
4548
4549 * config/mips/irix6.mh: New file.
4550
4551 * config/mips/irix6.mt: New file.
4552
4553 * config/mips/xm-irix6.h: New file.
4554
4555 * config/mips/nm-irix6.h: New file.
4556
4557 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
4558 disassembler info in tm_print_insn_info as appropriate for the N32
4559 ABI. Force N32 ABI to be the default if the CPU is R8000 or
4560 R10000.
4561
4562 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
4563
4564 * configure.host (mips*-sgi-irix6*): Ditto.
4565
3d499020
AC
45662001-06-07 Andrew Cagney <ac131313@redhat.com>
4567
4568 * gnu-v3-abi.c: Include "gdb_assert.h".
4569 (build_gdb_vtable_type): Replace abort() with gdb_assert().
4570
ceaa8edf
JB
45712001-06-06 Jim Blandy <jimb@redhat.com>
4572
c5f5341b
JB
4573 * cp-abi.h: Rearrange code to put documentation comments above the
4574 functions we export. The actual function table itself simply
4575 refers to those functions. Minor doc fixes.
4576
ceaa8edf
JB
4577 * gdbarch.sh: Changes to effect the following:
4578 * gdbarch.c (initialize_non_multiarch): New function.
4579 * gdbarch.h (initialize_non_multiarch): New declaration.
4580 * arch-utils.c (initialize_current_architecture): For
4581 non-multiarch configurations, call initialize_non_multiarch.
4582
0cd64fe2
AC
45832001-06-06 Andrew Cagney <ac131313@redhat.com>
4584
4585 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
4586 declaration.
4587 (compare_symbols): Ditto.
4588
8849f47d
JL
45892001-06-06 Jonathan Larmour <jlarmour@redhat.com>
4590
4591 * arch-utils.c (generic_prepare_to_proceed): Allow for having
4592 stopped due to a Ctrl-C as well as breakpoints.
4593
4594 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
4595 support thread switches after Ctrl-C.
4596 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
4597 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
4598 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
4599
b3cc3077
JB
46002001-06-06 Jim Blandy <jimb@redhat.com>
4601
4602 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
4603 per-architecture data should be registered at initialization time,
4604 before any gdbarch objects get used, so the generality is
4605 unnecessary.
4606
ba9fe036
KS
46072001-06-06 Keith Seitz <keiths@redhat.com>
4608
4609 * gdb-events.sh (function_list): Add tracepoint_create,
4610 tracepoint_delete, and tracepoint_modify events.
4611 * gdb-events.c: Regenerated.
4612 * gdb-events.h: Regenerated.
4613
e28f816a
KS
46142001-06-06 Keith Seitz <keiths@redhat.com>
4615
4616 * gdb-events.sh: Update copyrights.
4617 Change free to xfree.
4618 * gdb-events.c: Regenerated.
4619 * gdb-events.h: Regenerated.
4620
c3690141
EZ
46212001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
4622
4623 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
4624 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
4625 * completer.c: Ditto.
4626 * cli/cli-cmds.c (cd_command): Ditto.
4627
37ba1196
EZ
46282001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
4629
1012bd0e
EZ
4630 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
4631 (mips_set_processor_type_command): Remove unused variable j.
4632 (mips_breakpoint_from_pc): Declare breakpoint instruction
4633 sequences as unsigned char, to avoid compiler warnings.
4634
fe4e3eb8
EZ
4635 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
4636 instead of system-specific define's like _WIN32 and __MSDOS__.
4637 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
4638 ROOTED_P.
4639 (top-level): #include "filenames.h".
4640
4641 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
4642 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
4643 (top-level): #include "filenames.h".
4644
4645 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
4646 (SLASH_STRING): Define only for _WIN32.
4647
4648 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
4649 __MSDOS_.
4650
4651 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
4652 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
4653 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
4654 (top-level): #include "filenames.h".
4655
37ba1196
EZ
4656 * go32-nat.c (go32_wait): Change the return value to ptid_t.
4657
4658 * config/djgpp/fnchange.lst: Add two new files in the
4659 gdb/testsuite/gdb.c++/ directory to the remapped names.
4660
4661 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
4662
3c875b6f
JB
46632001-06-01 Jim Blandy <jimb@redhat.com>
4664
4665 Expand the gdbarch per-architecture data vector as needed, rather
4666 than requiring that all per-architecture data be registered before
4667 the first gdbarch object is allocated.
4668 * gdbarch.sh: Changes to effect the following:
4669 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
4670 declarations and definitions.
4671 (check_gdbarch_data): New function, and declaration.
4672 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
4673 zero is good enough.
4674 (free_gdbarch_data): Tolerate a null data pointer. Free only
4675 those data items gdbarch->data actually has allocated.
4676 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
4677 (gdbarch_update_p): No need to call init_gdbarch_data.
4678
98f96ba1
KB
46792001-06-01 Kevin Buettner <kevinb@redhat.com>
4680
4681 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
4682 on types that we wish to recurse on.
4683 (slot_alignment_is_next_even): New function.
4684 (ia64_push_arguments): Call slot_alignment_is_next_even() to
4685 examine the type in order to decide if it's necessary to skip
4686 an odd slot.
4687
c6ad9598
MS
46882001-06-01 Michael Snyder <msnyder@redhat.com>
4689
8601f500
MS
4690 * thread.c (delete_step_resume_breakpoint): New function.
4691 Maintain internal consistency of the thread list while deleting
4692 a step_resume_breakpoint.
4693 * gdbthread.h (delete_step_resume_breakpoint): Export.
4694 * breakpoint.c (bpstat_find_step_resume_breakpoint):
4695 Make thread-aware: don't return a step_resume_breakpoint
4696 for the wrong thread.
4697 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
4698 instead of delete_breakpoint_current_contents.
4699 (fetch_inferior_event): Ditto.
4700 (handle_inferior_event): Call delete_step_resume_breakpoint
4701 instead of delete_breakpoint.
c6ad9598
MS
4702 * infrun.c (handle_inferior_event): After singlestepping over a
4703 thread-specific breakpoint, use currently_stepping() to decide
4704 whether to step or continue.
4705
531017df
JB
47062001-06-01 Jim Blandy <jimb@redhat.com>
4707
b27b8843
JB
4708 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
4709 these static --- there's no reason other files should use these.
4710
d0bbfec7
JB
4711 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
4712 Fix memory leak.
4713
531017df
JB
4714 * partial-stab.h: New complaint: function_outside_compilation_unit.
4715 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
4716 complain, and don't try to set pst's start address.
4717
d469a809
KB
47182001-05-31 Kevin Buettner <kevinb@redhat.com>
4719
4720 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
4721 match the location at which the kernel is placing the sigcontext
4722 struct.
4723
58ab00f9
KB
4724 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
4725 (refine_prologue_limit): New function.
4726 (examine_prologue): Further limit number of instructions
4727 scanned by calling refine_prologue_limit(). Revise way in
4728 which the end of prologue address is computed for frameless
4729 functions.
4730
9fd7143a
CF
47312001-05-29 Christopher Faylor <cgf@redhat.com>
4732
4733 * partial-stab.h: Revert previous patch.
4734
34a7837a
CF
47352001-05-29 Christopher Faylor <cgf@redhat.com>
4736
4737 * partial-stab.h: Consistently guard against pst being NULL.
4738
ad53e288
AO
47392001-05-29 Alexandre Oliva <aoliva@redhat.com>
4740
4741 * symfile.c (compare_psymbols, compare_symbols): Declare using
4742 PTR, as in the definition.
09d011c5
AO
4743 * minsyms.c (compare_minimal_symbols): Likewise.
4744 * coffread.c (find_targ_sec): Likewise.
4745 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
4746 * mipsread.c (alphacoff_locate_sections): Likewise.
4747 * mdebugread.c (compare_blocks): Likewise.
ad53e288 4748
b41be06e
ND
47492001-05-25 Nick Duffek <nsd@redhat.com>
4750
4751 * solib.c (update_solib_list): Move target_resize_to_sections()
4752 into solib_map_sections() loop.
4753 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
4754 bfd_get_arch_size() fails.
4755
a1cd1908
ND
47562001-05-25 Nick Duffek <nsd@redhat.com>
4757
4758 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
4759 solib-osf.o.
4760 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
4761 with solib-osf.o and solib.o.
4762 * config/alpha/alpha-osf2.mh: Likewise.
4763 * config/alpha/alpha-osf3.mh: Likewise.
4764 * solib-osf.c: New file, renamed and largely rewritten from
4765 osfsolib.c.
4766
aa6c0017
MS
47672001-05-25 Michael Snyder <msnyder@redhat.com>
4768
c4365b19
MS
4769 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
4770 to consume the SIGSTOP generated by PTRACE_ATTACH.
4771 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
4772 try again to get the SIGSTOP event.
4773 (lin_lwp_wait): Resume all threads when ignoring a signal.
4774 This will insure that newly attached threads get resumed.
5f885618 4775 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
aa6c0017
MS
4776 * remote.c (remote_write_bytes): Update 'p' packet pointer.
4777
4b1fedf1
JB
47782001-05-25 Jim Blandy <jimb@redhat.com>
4779
4780 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
4781 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
4782 useful value, then we should fix that instead.
4783
fa3b51d2
ND
47842001-05-24 Nick Duffek <nsd@redhat.com>
4785
4786 * solist.h (struct so_list): Document the requirement that
4787 current_sos initialize some fields to 0.
4788
2747183e
MK
47892001-05-24 Mark Kettenis <kettenis@gnu.org>
4790
4791 * gnu-nat.c: Include <ctype.h>.
4792 (gnu_pid_to_exec_file): Add PID parameter.
4793 (set_sig_thread_cmd): Use PIDGET on return value from
4794 thread_id_to_pid.
4795 (proc_string): Use MERGEPID to construct argument to
4796 pid_to_thread_id.
4797
e4f237da
KB
47982001-05-22 Kevin Buettner <kevinb@redhat.com>
4799
4800 * breakpoint.c (breakpoint_address_is_meaningful): New function.
4801 (check_duplicates): Don't compare non-meaningful addresses.
4802
5fd913cc
MS
48032001-05-22 Michael Snyder <msnyder@redhat.com>
4804
4805 * thread-db.c: Allow for defunct zombie threads.
4806 (attach_thread): Do not attempt to attach zombie thread.
4807 (thread_db_thread_alive): Return false for defunct zombie thread.
4808 (find_new_threads_callback): Don't add defunct zombie thread to list.
4809
7ed49443
JB
48102001-05-22 Jim Blandy <jimb@redhat.com>
4811
4812 Add support for the GNU V3 C++ ABI.
4813 (Includes changes by Dan Berlin.)
4814
4815 * gnu-v3-abi.c: New file.
4816 * minsyms.c: #include "value.h" and "cp-abi.h".
4817 (install_minimal_symbols): Check the minimal symbol table for
4818 symbols that look mangled in the V3 style, and select the V3 ABI
4819 if we find any.
4820 * Makefile.in (SFILES): Add gnu-v3-abi.c.
4821 (COMMON_OBS): Add gnu-v3-abi.o.
4822 (gnu-v3-abi.o): Add new rule.
4823 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
4824
a44999d5
JB
48252001-05-21 Jim Blandy <jimb@redhat.com>
4826
8d65888a
JB
4827 * values.c (value_primitive_field): If we're extracting a base
4828 class, then the type of the result should be the base class being
4829 extracted, not the type of which it is a base class.
4830
a44999d5
JB
4831 * value.h (struct value): Doc fix, and rearrange members to place
4832 them near their explanations.
4833
6c3f2dbf
MS
48342001-05-21 Michael Snyder <msnyder@redhat.com>
4835
4836 * remote.c (remote_async_wait): Added new variable fieldsize.
4837 Add fieldsize (return value of hex2bin) to string pointer p.
4838
b4fa4770
SC
48392001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4840
4841 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
4842 (m68hc11_analyze_instruction): Update the pc correctly.
4843 (m68hc11_guess_from_prologue): Take into account the stack correction
4844 for the saving address.
4845
2b127877
DB
48462001-05-07 Daniel Berlin <dan@cgsoftware.com>
4847
4848 Changes by Jim Ingham:
4849
4850 * values.c (value_change_enclosing_type): New function. If the
4851 new enclosing type is larger than the old one, we need to allocate
4852 more space.
4853 * value.h: Add value_change_enclosing_type prototype.
4854 * valops.c (value_cast): Use it.
4855 (value_assign): Use it.
4856 (value_addr): Use it.
4857 (value_ind): Use it.
4858 (value_full_object): Use it.
4859
48602001-05-07 Daniel Berlin <dan@cgsoftware.com>
4861
984e377c
JB
4862 * values.c (value_static_field): Handle static fields that have a
4863 constant value.
2b127877 4864
736d0890
MS
48652001-05-17 Michael Snyder <msnyder@redhat.com>
4866
4867 * blockframe.c (create_new_frame): Zero all the fields via memset,
4868 rather than zeroing them one by one.
4869
a577b05c
EZ
48702001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4871
4872 * top.c (user_args): Remove unused declaration.
4873
b8adfa9f
MS
48742001-05-16 Michael Snyder <msnyder@redhat.com>
4875
4876 * infcmd.c (do_registers_info): Move alloca outside of loop.
4877
97345198
MS
48782001-05-15 John S Kallal <jskallal@home.com>
4879
4880 * remote.c (remote_wait): Added new variable fieldsize.
4881 Add fieldsize (return value of hex2bin) to string pointer p.
4882
aca21d9a
MK
48832001-05-15 Mark Kettenis <kettenis@gnu.org>
4884
4885 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
4886 info.bfd_arch_info.
4887
b08cfdb6
KB
48882001-05-14 Kevin Buettner <kevinb@redhat.com>
4889
4890 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
4891 Adjust format strings for printing LWPs to account for the fact
4892 that the type returned by GET_LWP() is now a long instead of an
4893 int.
4894
ca6724c1
KB
48952001-05-14 Kevin Buettner <kevinb@redhat.com>
4896
4897 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
4898 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4899 (ptid_get_tid, ptid_equal): New function declarations.
4900 * infrun.c (null_ptid, minus_one_ptid): New variables.
4901 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4902 (ptid_get_tid, ptid_equal): New functions.
4903 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
4904 inferior_ptid, and target_last_wait_ptid.
4905
4906 * defs.h (ptid_t): Redefine to be a struct rather than an int.
4907 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
4908 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
4909 new ptid accessors and constructor.
4910
4911 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
4912 MKLID, MKTID, ISTID): Provide new definitions for these macros.
4913 The old macros are retained, but disabled via #if 0 in order
4914 to aid in future restructuring. See FIXME.
4915
4916 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
4917 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
4918 * infptrace.c (PIDGET, TIDGET): Likewise.
4919 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4920 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4921 * proc-service.c (MERGEPID): Likewise.
4922 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
4923 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4924 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4925 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4926 Likewise.
4927 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4928 Likewise.
4929
4930 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
4931 (GET_LWP): Redefine in terms of ptid_get_lwp().
4932 (GET_PID): Redefine in terms of ptid_get_pid().
4933 (is_lwp): Redefine without the need for THREAD_FLAG.
4934 (BUILD_LWP): Redefine in terms of ptid_build().
4935 * lin-thread.c (THREAD_FLAG): Delete macro definition.
4936 (GET_LWP): Redefine in terms of ptid_get_lwp().
4937 (GET_PID): Redefine in terms of ptid_get_pid().
4938 (GET_THREAD): Redefine in terms of ptid_get_tid().
4939 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4940 (is_lwp, is_thread): Redefine.
4941 (linux_child_wait, check_all_signal_numbers)
4942 (linuxthreads_discard_global_state, attach_thread): Declare these
4943 functions to squash warnings about missing declarations.
4944 * sol-thread.c (THREAD_FLAG): Delete macro definition.
4945 (GET_PID): Redefine in terms of ptid_get_pid().
4946 (GET_LWP): Redefine in terms of ptid_get_lwp().
4947 (GET_THREAD): Redefine in terms of ptid_get_tid().
4948 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4949 (is_lwp, is_thread): Redefine.
4950 * thread-db.c (THREAD_FLAG): Delete macro definition.
4951 (GET_PID): Redefine in terms of ptid_get_pid().
4952 (GET_LWP): Redefine in terms of ptid_get_lwp().
4953 (GET_THREAD): Redefine in terms of ptid_get_tid().
4954 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4955 (is_lwp, is_thread): Redefine.
4956
4957 * corelow.c (add_to_thread_list, get_core_register_section):
4958 Eliminate hacks needed to prevent regressions when inferior_ptid
4959 wasn't wide enough to hold the core file thread id in the pid
4960 component of inferior_ptid.
4961
234fa6d1
MS
49622001-05-14 Michael Snyder <msnyder@redhat.com>
4963
4964 * remote.c (hex2bin): Make first argument const.
4965 Require explicit count, don't accept null-terminated str.
4966 (remote_resume, remote_async_resume): White space fix-up.
4967 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
4968
caadab2c
MK
49692001-05-13 Mark Kettenis <kettenis@gnu.org>
4970
4971 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
4972 basename (NAME). The FreeBSD basename returns a pointer to a
4973 static buffer, even if it's simply returning a string identical to
4974 its argument.
4975 (lookup_partial_symtab): Likewise.
4976
2644f393
MS
49772001-05-14 Michael Snyder <msnyder@redhat.com>
4978
cb0ba49e 4979 * solib.c, solib.h: Add comment for function no_shared_libraries.
2644f393 4980
183a2f1a
KB
49812001-05-14 Kevin Buettner <kevinb@redhat.com>
4982
4983 * solib.h (no_shared_libraries): Make declaration match definition
4984 in solib.c.
4985
1dd1751e
AC
49862001-05-14 Andrew Cagney <ac131313@redhat.com>
4987
4988 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
4989 * solib.h (no_shared_libraries): Declare.
4990
b732d07d
AC
49912001-05-12 Andrew Cagney <ac131313@redhat.com>
4992
4993 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
4994 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
4995 user specified values when available.
4996 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
4997 architecture from info.bfd_arch_info.
4998 * gdbarch.c, gdbarch.h: Regenerate.
4999
67dd5ca6
FN
50002001-05-12 Fernando Nasser <fnasser@redhat.com>
5001
5002 * remote-e7000.c (e7000_open): Check for bad baud rate.
5003 * remote-st.c (st2000_open): Ditto.
5004
529acb48
JB
50052001-05-11 Jim Blandy <jimb@redhat.com>
5006
f8e42d24
JB
5007 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
5008 and ui_out_tuple_end instead of ui_out_list_begin and
5009 ui_out_list_end.
5010
529acb48
JB
5011 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
5012 dependencies. Reorder dependencies to match #includes in file,
5013 for easier verification.
5014
666547aa
AC
5015Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
5016
5017 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
5018 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
5019 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
5020 * cli/cli-setshow.c: Ditto.
5021 * printcmd.c: Ditto.
5022 * stack.c: Ditto.
5023
5024 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
5025 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
5026 (ui_out_tuple_begin): New function.
5027 (ui_out_tuple_end): New function.
5028 (ui_out_tuple_begin_end): New function.
5029 (make_cleanup_ui_out_list_begin_end): Replace
5030 make_cleanup_ui_out_list_end function.
5031 * ui-out.h (ui_out_list_begin): Update declaration.
5032 (make_cleanup_ui_out_list_begin_end): Replace
5033 make_cleanup_ui_out_list_end declaration.
5034 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
5035 (ui_out_tuple_begin_end): Declare.
5036
30c98d84
JB
50372001-05-11 Jim Blandy <jimb@redhat.com>
5038
5039 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
5040
1faa59a8
AC
50412001-05-11 Andrew Cagney <ac131313@redhat.com>
5042
5043 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
5044 * config/pa/tm-hppa.h: Remove trigraph.
5045 * hp-symtab-read.c (hpread_type_translate): Provide return value.
5046 (hpread_read_struct_type): Remove trigraph. Add parameter in
5047 `warning'.
5048 (hpread_read_array_type): Provide return value.
5049 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
5050 value.
5051 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
5052 trigraph.
5053
99567b1b
JB
50542001-05-11 Jim Blandy <jimb@redhat.com>
5055
5056 * mips-tdep.c (mips_store_return_value,
5057 mips_extract_return_value): Pass arguments to
5058 return_value_location in the proper order.
5059
d3814881
AC
50602001-05-11 Andrew Cagney <ac131313@redhat.com>
5061
5062 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
5063 (version.c): Depends on file ``version.in''. Extract version
5064 number from ``version.in'' file.
5065 (clean mostlyclean): Update.
5066 * version.in: New file.
5d6640b1 5067 * NEWS: Update.
d3814881 5068
4d28f7a8
KB
50692001-05-11 Kevin Buettner <kevinb@redhat.com>
5070
5071 * breakpoint.c (set_raw_breakpoint): Add new parameter
5072 representing the breakpoint's type. Adjust all callers.
5073 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
5074 (create_thread_event_breakpoint): Don't test for zero return
5075 value from set_raw_breakpoint(). It can never be zero.
5076 (create_exception_catchpoint, watch_command_1): Move logic
5077 which calculates the breakpoint type prior to the call to
5078 set_raw_breakpoint().
5079
08b4f080
FN
50802001-05-11 Fernando Nasser <fnasser@redhat.com>
5081
5082 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
5083 (hardwire_setbaudrate): Set errno to EINVAL and return with error
5084 if the conversion of the baud rate to code fails.
5085
127431f9
AC
50862001-05-10 Andrew Cagney <ac131313@redhat.com>
5087
5088 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
5089 * ui-out.c (struct ui_out_end_cleanup_data): Define.
5090 (do_cleanup_end): New function. Replace do_list_end.
5091 (make_cleanup_ui_out_end): New function.
5092 (make_cleanup_ui_out_begin_end): New function.
5093 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
5094
5dbc5e5f
EZ
50952001-05-10 Elena Zannoni <ezannoni@redhat.com>
5096
5097 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
5098 and make Kevin Buettner (kevinb@redhat.com) the reference person.
5099
8e40d292
EZ
51002001-05-10 Elena Zannoni <ezannoni@redhat.com>
5101
5102 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
5103
5a703563
FN
51042001-05-10 Fernando Nasser <fnasser@redhat.com>
5105
5106 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
5107
6311b07d
AC
5108Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
5109
5110 * Makefile.in (mi-main.o): Compile with -Werror.
5111
30559e10
MS
51122001-05-10 Michael Snyder <msnyder@redhat.com>
5113
f78f6cf1
MS
5114 * remote.c (remote_open_1): Call no_shared_libraries, so that
5115 symbols for shared libraries can be reloaded per session.
5116 (remote_async_open_1): Ditto.
30559e10
MS
5117 * remote.c (bin2hex, hex2bin): New functions. Factor out these
5118 two conversions which are coded for repeatedly in this module.
5119 (remote_threads_extra_info, remote_wait, remote_async_wait,
5120 store_register_using_P, remote_store_registers, remote_write_bytes,
5121 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
5122 of coding the conversions inline.
5123 (fromhex): Not exported, change from extern to static.
5124
0a1d9791
AC
51252001-05-10 Andrew Cagney <ac131313@redhat.com>
5126
5127 * arch-utils.c (initialize_current_architecture): Delete obsolete
5128 ``info architecture'' command.
5129 (info_architecture): Delete function.
5130
ee055267
AC
51312001-05-10 Andrew Cagney <ac131313@redhat.com>
5132
5133 * TODO (5.1, 5.2): Update.
5134
85886af6
AC
51352001-05-09 Andrew Cagney <ac131313@redhat.com>
5136
5137 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
5138 stuff.
30559e10 5139
ecb9ce7e
KS
51402001-05-10 Keith Seitz <keiths@cygnus.com>
5141
5142 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
5143 and gdbtk-stack.o.
5144 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
5145 (gdbtk-bp.o): New rule.
5146 (gdbtk-register.o): New rule.
5147 (gdbtk-stack.o): New rule.
5148 (gdbtk-cmds.o): Update dependencies.
5149 (gdbtk.o): Ditto.
5150 (gdbtk-hooks.o): Ditto.
5151 (gdbtk-varobj.o): Ditto.
5152
f7635dd9
FN
51532001-05-10 Fernando Nasser <fnasser@redhat.com>
5154
5155 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
5156 variables, not just unregister them.
5157
0755e6c1
FN
51582001-05-10 Fernando Nasser <fnasser@redhat.com>
5159
5160 * varobj.c (c_number_of_children): Check for target type of void*,
5161 not the target type name. Allow dereferencing char*.
5162
d7db6da9
FN
51632001-05-10 Fernando Nasser <fnasser@redhat.com>
5164
5165 * symfile.c (symbol_file_add_main_1): New static function.
5166 Passes the flags arguments to symbol_file_add() and takes care
5167 of any necessary reinitializations.
5168 (symbol_file_command): Call symbol_file_add_main_1() instead of
5169 symbol_file_add().
5170 (symbol_file_add_main): Ditto.
5171
3d6e28e2
KB
51722001-05-09 Kevin Buettner <kevinb@redhat.com>
5173
5174 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
5175 string change in 2001-05-03 changes.
5176 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
5177 changes.
5178
01263b57
KB
51792001-05-09 Kevin Buettner <kevinb@redhat.com>
5180
5181 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
5182 component from inferior_ptid.
5183 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
5184 ptid.
5185
74a151fa
EZ
51862001-05-09 Elena Zannoni <ezannoni@redhat.com>
5187
5188 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
5189 conditional for help with connections through parallel ports,
5190 given that the actual code for downloading through a parallel port
5191 is not conditionalized.
5192
5193 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
5194 unmaintaned, and probably on its way to obsolescence.
5195
d7a0d72c
MK
51962001-05-09 Mark Kettenis <kettenis@gnu.org>
5197
0d17c81d
MK
5198 * i386-tdep.c (i386_frame_saved_pc): New function.
5199 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
5200 i386_frame_saved_pc.
5201 (i386_frame_saved_pc): New prototype.
5202
d7a0d72c
MK
5203 * i386-tdep.c (i386_register_virtual_type): New function.
5204 (i386_register_convertible): New function.
5205 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
5206 of i386_register_virtual_type.
5207 (REGISTER_CONVERTIBLE): Redefine in terms of
5208 i386_register_convertible.
5209 (i386_register_virtual_type, i386_register_convertible): New
5210 prototypes.
5211
ad8fe2ce
JB
52122001-05-08 Jim Blandy <jimb@redhat.com>
5213
33757489
JB
5214 * Makefile.in (mn10300-tdep.o): New rule.
5215
5216 * Makefile.in (gdb_string_h): Define. Use it throughout.
5217 Some rules were already using this, even though it isn't defined.
5218
c2c197ae
JB
5219 * Makefile.in (obstack_h, target_h): Define; these are already
5220 used elsewhere, but have been expanding to the empty string.
5221 (memattr_h): Define; needed by target_h.
5222
c064f384
JB
5223 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
5224 static. (This was accidentally omitted from the earlier patch.)
5225
23436510
JB
5226 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
5227 (mn10300_gdbarch_init): Register it as the architecture's
5228 dwarf2_reg_to_regnum method.
5229
ae83b20d
JB
5230 Correct and expand handling of `movm' instruction, and register
5231 saves in general.
5232 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
5233 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
5234 (enum movm_register_bits): New enum.
5235 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
5236 bits, not hex literals. Handle the `other', `exreg0', and
5237 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
5238 r6, and r7, not r2, r3, r4, and r5.
5239 (saved_regs_size): New function.
5240 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
5241 of computing the same thing inline, incorrectly.
5242
bf4b70a5
JB
5243 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
5244 dummy_breakpoint_offset; it's zero.
5245
ee9f9641
JB
5246 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
5247 stuff out into mn10300_pop_frame_regular, and use
5248 generic_pop_current_frame. This lets us share code, and also
5249 makes this function's prototype match that expected by gdbarch.
5250 Make this function static.
5251 (mn10300_pop_frame_regular): New function.
5252 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
5253 gdbarch's pop_frame method.
5254 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
5255 (mn10300_pop_frame): Delete declaration.
5256
2ac51b36
JB
5257 * mn10300-tdep.c (mn10300_saved_pc_after_call,
5258 mn10300_extract_return_value,
5259 mn10300_extract_struct_value_address, mn10300_store_return_value,
5260 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
5261 mn10300_frame_chain, mn10300_skip_prologue,
5262 mn10300_push_arguments, mn10300_push_return_address,
5263 mn10300_store_struct_return, mn10300_frame_saved_pc,
5264 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
5265 Make these functions static; they should only be visible to the
5266 outside world as gdbarch methods.
5267
af4e72e9
JB
5268 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
5269 unused declaration.
5270
584f96a8
JB
5271 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
5272 in some rational order.
5273
82d983b6
JB
5274 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
5275 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
5276
ad8fe2ce
JB
5277 Use gdbarch for most target parameters for the MN10300, rather
5278 than the tm-*.h file.
5279 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
5280 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
5281 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
5282 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
5283 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
5284 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
5285 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
5286 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5287 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
5288 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5289 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
5290 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5291 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
5292 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
5293 Delete definitions. We register gdbarch methods for these now.
5294 (struct frame_info, struct type, struct value): Delete forward
5295 declarations of these types; they're no longer necessary, since we
5296 don't have function declarations here any more.
5297 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
5298 some default gdbarch methods.
5299 (mn10300_store_struct_return): Return void, as expected by
5300 gdbarch.
5301 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
5302 as expected by gdbarch.
5303 (mn10300_frame_init_saved_regs): Provide dummy definition for
5304 this, as required by gdbarch.
5305 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
5306 by gdbarch. Register gdbarch methods or values for all the stuff
5307 removed from tm-10300.h, listed above.
5308
631ec795
AC
53092001-05-08 Andrew Cagney <ac131313@redhat.com>
5310
5311 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
5312 cli_list_end.
5313 (cli_ui_out_impl): Update.
5314
5315 * ui-out.c (default_begin, default_end): Replace
5316 default_list_begin and default_list_end.
5317 (default_ui_out_impl): Update.
5318 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
5319 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
5320 ui_out_list_end.
5321 (ui_out_list_begin, ui_out_list_end): New. Compatibility
5322 functions.
5323 (struct ui_out_level): Add field type.
5324 (push_level, pop_level): Update. Add type parameter.
5325
5326 * ui-out.h (enum ui_out_type): Declare.
5327 (ui_out_begin, ui_out_end): Declare.
5328 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
5329 and list_end_ftype.
5330 (struct ui_out_impl): Update.
5331
80f49b30
AC
53322001-05-07 Andrew Cagney <ac131313@redhat.com>
5333
5334 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
5335 ``list_flag'' to ``depth''.
5336 * ui-out.c (default_list_begin, default_list_end): Update.
5337 (uo_list_begin, uo_list_end): Update.
5338 (MAX_UI_OUT_LEVELS): Define.
5339 (struct ui_out_level): Define.
5340 (top-level): Include "gdb_assert.h".
5341 (struct ui_out): Add fields ``level'' and ``levels''. Delete
5342 fields ``list_flag'' and ``field_count''.
5343 (ui_out_new): Update.
5344 (verify_field_proper_position): Update.
5345 (current_level, push_level, pop_level): New functions.
5346 (ui_out_list_begin): Use push_level.
5347 (ui_out_list_end): Use pop_level.
5348 (ui_out_field_int): Use current_level.
5349 (ui_out_field_skip): Ditto.
5350 (ui_out_field_fmt): Ditto.
5351
7aedc9f8
MS
53522001-05-08 Michael Snyder <msnyder@redhat.com>
5353
5354 * language.c (longest_local_hex_string_custom): Strlen test is
5355 inverted -- reverse the sense of the test.
5356
c6ec85d6
MK
53572001-05-08 Mark Kettenis <kettenis@gnu.org>
5358
5359 * config/i386/tm-i386v.h (struct frame_info, struct
5360 frame_saved_regs): Remove declarations.
5361 (i386_frame_num_args): Remove prototype.
5362
f938fa6a
AC
53632001-05-07 Andrew Cagney <ac131313@redhat.com>
5364
5365 * MAINTAINERS: I'm no longer actively maintaining the mn10300
5366 target.
5367
fb106663
AC
53682001-05-04 Andrew Cagney <ac131313@redhat.com>
5369
5370 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
5371 WinGDB.
5372
ce696e05
KB
53732001-05-06 Kevin Buettner <kevinb@redhat.com>
5374
5375 * inferior.h (save_inferior_ptid): Declare.
5376 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
5377
5378 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5379 Delete these functions.
5380 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5381 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5382 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5383 Likewise.
5384 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
5385 Likewise.
5386 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5387 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5388
5389 * somsolib.c (reset_inferior_ptid): Delete.
5390 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
5391 build the cleanup struct.
5392
5393 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5394 a cleanup to save/restore inferior_ptid.
5395
c194fbe1
MK
53962001-05-06 Mark Kettenis <kettenis@gnu.org>
5397
5398 Implement attach/detach for multi-threaded programs on Linux.
5399 * thread-db.c (keep_thread_db): Adjust comment.
5400 (deactivate_target): Removed.
5401 (thread_db_new_objfile): Don't call deactivate_target. Implement
5402 guts of deactivate_target inline instead.
5403 (attach_thread): Call ATTACH_LWP unconditionally if defined.
5404 (thread_db_attach): New function.
5405 (thread_db_detach): Don't call deactivate_target. Do necessary
5406 cleanup inline instead. Set inferior_ptid to LWP corresponding to
5407 the current user-level thread.
5408 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
5409 current user-level thread.
5410 (thread_db_create_inferior): Deactivate target vector if
5411 KEEP_THREAD_DB is zero.
5412 (thread_db_mourn_inferior): Don't call deactivate_target. Do
5413 necessary cleanup inline instead.
5414 (init_thread_db_ops): Initialize to_attach field to
5415 thread_db_attach.
5416 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
5417 (stop_wait_callback): Add prototype.
5418 (init_lwp_list): Add comment about when to re-initialize the LWP
5419 list.
5420 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
5421 Avoid adding publicates to the LWP list. Only mark an LWP as
5422 signalled if it doesn't correspond to a cloned process.
5423 (lin_lwp_attach): Add initial process to the LWP list. Make sure
5424 it's stopped and fake a SIGSTOP.
5425 (detach_callback): New function.
5426 (lin_lwp_detach): Implement.
5427 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
5428 Call child_ops.to_create_inferior directly instead of via
5429 target_beneath local.
5430 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
5431 directly instead of via target_beneath local.
5432
a7fdf62f
EZ
54332001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
5434
5435 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
5436 instead of non-portable search for `/'. Use FILENAME_CMP instead
5437 of STREQ, to account for case-insensitive filesystems.
5438 (top-level): #include "filenames.h".
5439
9f60f21b
JB
54402001-05-05 Jim Blandy <jimb@redhat.com>
5441
644a1fe1
JB
5442 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
5443 its address, to decide whether it's a watchpoint or not. Zero
5444 is a valid code address.
5445 (update_breakpoints_after_exec): Admonishing comments.
5446 * breakpoint.h (struct breakpoint): Doc fixes.
5447
9f60f21b
JB
5448 * breakpoint.c (check_duplicates): Take a breakpoint object as an
5449 argument, rather than an address and section. All callers changed.
5450
39f77062
KB
54512001-05-03 Kevin Buettner <kevinb@redhat.com>
5452
5453 * defs.h (ptid_t): New typedef.
5454 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
5455
5456 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
5457 blockframe.c, breakpoint.c, breakpoint.h,
5458 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
5459 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
5460 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
5461 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
5462 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
5463 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
5464 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
5465 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
5466 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
5467 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
5468 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
5469 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
5470 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
5471 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
5472 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
5473 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
5474 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
5475 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
5476 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5477 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5478 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
5479 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
5480 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
5481 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
5482 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
5483 (inferior_pid): Rename to inferior_ptid everywhere - even in
5484 comments and obsolete ports. In cases where this variable
5485 really is supposed to be used as a process id, use PIDGET() to
5486 extract the process id component from inferior_ptid. The
5487 other cases, either involving other variables whose types had
5488 to be changed or functions whose signatures had to changed
5489 are listed separately below.
5490
5491 * arm-linux-nat.c (get_thread_id): Change type of argument
5492 representing a combined process/thread id from ``int'' to
5493 ``ptid_t''. Also change parameter name to ptid.
5494 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
5495 * corelow.c (core_file_thread_alive): Likewise.
5496 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
5497 * defs.h (*target_wait_hook): Likewise.
5498 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
5499 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
5500 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
5501 (gnu_resume): Likewise.
5502 * go32-nat.c (go32_wait, go32_resume): Likewise.
5503 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
5504 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
5505 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
5506 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
5507 (child_thread_alive): Likewise.
5508 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
5509 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
5510 * i386-linux-nat.c (child_resume): Likewise.
5511 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
5512 (store_debug_register, fetch_debug_register_pair)
5513 (store_debug_register_pair, ia64_linux_insert_watchpoint)
5514 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
5515 Likewise.
5516 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
5517 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
5518 (generic_target_write_pc, ptrace_wait, child_resume)
5519 (get_last_target_status): Likewise.
5520 * infptrace.c (ptrace_wait, child_resume): Likewise.
5521 * inftarg.c (child_wait, child_post_wait, child_thread_live)
5522 (child_pid_to_str): Likewise.
5523 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
5524 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
5525 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
5526 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
5527 (lin_lwp_pid_to_str): Likewise.
5528 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
5529 (thread_db_resume, thread_db_wait): Likewise.
5530 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
5531 (linuxthreads_resume, linuxthreads_wait): Likewise.
5532 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
5533 (child_pid_to_str): Likewise.
5534 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
5535 * mac-nat.c (child_wait, child_resume): Likewise.
5536 * mips-tdep.c (mips_read_pc): Likewise.
5537 * monitor.c (monitor_wait, monitor_resume): Likewise.
5538 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
5539 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5540 * procfs.c (do_attach, procfs_wait, procfs_resume)
5541 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
5542 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
5543 (procfs_find_LDT_entry): Likewise.
5544 * regcache.c (read_register_pid, read_signed_register_pid)
5545 (write_register_pid, generic_target_read_pc, read_pc_pid)
5546 (generic_target_write_pc, write_pc_pid): Likewise.
5547 * regcache.h (read_register_pid, read_signed_register_pid)
5548 (write_register_pid): Likewise.
5549 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
5550 * remote-array.c (array_wait, array_resume): Likewise.
5551 * remote-bug.c (bug_wait, bug_resume): Likewise.
5552 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
5553 * remote-eb.c (eb_wait, eb_resume): Likewise.
5554 * remote-es.c (es1800_wait, es1800_resume): Likewise.
5555 * remote-mips.c (mips_wait, mips_resume): Likewise.
5556 * remote-mm.c (mm_wait, mm_resume): Likewise.
5557 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
5558 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
5559 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
5560 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
5561 * remote-sds.c (sds_wait, sds_resume): Likewise.
5562 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
5563 * remote-st.c (st2000_wait, st2000_resume): Likewise.
5564 * remote-udi.c (udi_wait, udi_resume): Likewise.
5565 * remote-vx.c (vx_wait, vx_resume): Likewise.
5566 * remote.c (remote_current_thread, remote_resume, remote_wait)
5567 (remote_async_resume, remote_async_wait, remote_cisco_wait)
5568 (remote_thread_alive): Likewise.
5569 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
5570 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
5571 (solaris_pid_to_str): Likewise.
5572 * symm-nat.c (child_wait, child_resume): Likewise.
5573 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
5574 (debug_to_notice_signals, debug_to_thread_alive)
5575 (normal_target_post_startup_inferior, normal_pid_to_str)
5576 (debug_to_post_startup_inferior): Likewise.
5577 * target.h (to_resume, to_wait, to_post_wait)
5578 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
5579 (to_pid_to_str [all in struct target_ops]): Likewise.
5580 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
5581 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
5582 (attach_thread, detach_thread, thread_db_resume, check_event)
5583 (thread_db_post_startup_inferior, thread_db_thread_alive)
5584 (thread_db_pid_to_str): Likewise.
5585 * thread.c (add_thread, delete_thread, find_thread_pid)
5586 (pid_to_thread_id, in_thread_list, load_infrun_state)
5587 (save_infrun_state, switch_to_thread, restore_current_thread)
5588 (make_cleanup_restore_current_thread): Likewise.
5589 * top.c (target_wait_hook): Likewise.
5590 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
5591 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
5592 (uw_thread_pid_to_str): Likewise.
5593 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
5594 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
5595 (cywin_pid_to_str): Likewise.
5596 * wince.c (child_wait, child_resume, win32_child_thread_alive):
5597 Likewise.
5598 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
5599 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
5600 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5601 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5602 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
5603 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
5604 (procfs_set_watchpoint): Likewise.
5605 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5606 * config/i386/nm-ptx4.h (child_wait): Likewise.
5607 * config/i386/nm-symmetry.h (child_wait): Likewise.
5608 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
5609 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
5610 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
5611 (lin_lwp_attach_lwp): Likewise.
5612 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
5613 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
5614 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
5615 (hppa_pid_or_tid_to_str): Likewise.
5616 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
5617 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5618 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
5619 (procfs_set_watchpoint): Likewise.
5620
5621 * gdbthread.h (thread_id_to_pid): Change return type which
5622 represents a combined process/thread id from ``int'' to
5623 ``ptid_t''.
5624 * gnu-nat.c (gnu_wait): Likewise.
5625 * go32-nat.c (go32_wait): Likewise.
5626 * hpux-thread.c (hpux_thread_wait): Likewise.
5627 * inferior.h (procfs_first_available): Likewise.
5628 * inftarg.c (child_wait): Likewise.
5629 * infttrace.c (ptrace_wait): Likewise.
5630 * lin-lwp.c (lin_lwp_wait): Likewise.
5631 * lin-thread.c (thread_db_wait): Likewise.
5632 * linux-thread.c (linuxthreads_wait): Likewise.
5633 * lynx-nat.c (child_wait): Likewise.
5634 * m3-nat.c (mach_really_wait): Likewise.
5635 * mac-nat.c (child_wait): Likewise.
5636 * monitor.c (monitor_wait): Likewise.
5637 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5638 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
5639 * remote-adapt.c (adapt_wait): Likewise.
5640 * remote-array.c (array_wait): Likewise.
5641 * remote-bug.c (bug_wait): Likewise.
5642 * remote-e7000.c (e7000_wait): Likewise.
5643 * remote-eb.c (eb_wait): Likewise.
5644 * remote-es.c (es1800_wait): Likewise.
5645 * remote-mips.c (mips_wait): Likewise.
5646 * remote-mm.c (mm_wait): Likewise.
5647 * remote-nindy.c (nindy_wait): Likewise.
5648 * remote-os9k (rombug_wait): Likewise.
5649 * remote-rdi.c (arm_rdi_wait): Likewise.
5650 * remote-rdp.c (remote_rdp_wait): Likewise.
5651 * remote-sds.c (sds_wait): Likewise.
5652 * remote-sim.c (gdbsim_wait): Likewise.
5653 * remote-st.c (st2000_wait): Likewise.
5654 * remote-udi.c (udi_wait): Likewise.
5655 * remote-vx.c (vx_wait): Likewise.
5656 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
5657 (remote_cisco_wait): Likewise.
5658 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
5659 Likewise.
5660 * symm-nat.c (child_wait): Likewise.
5661 * target.c (debug_to_wait): Likewise.
5662 * target.h (to_wait [in struct target_ops]): Likewise.
5663 * thread.c (thread_id_to_pid): Likewise.
5664 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
5665 Likewise.
5666 * top.c (*target_wait_hook): Likewise.
5667 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
5668 * v850ice.c (v850ice_wait): Likewise.
5669 * win32-nat.c (child_wait): Likewise.
5670 * wince.c (child_wait): Likewise.
5671 * config/nm-lynx.h (child_wait): Likewise.
5672 * config/i386/nm-ptx4.h (child_wait): Likewise.
5673 * config/i386/nm-symmetry.h (child_wait): Likewise.
5674
5675 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
5676 to wait_ptid and change its type from ``int'' to ``ptid_t''.
5677 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
5678 but rename saved_inferior_pid to saved_inferior_ptid.
5679 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
5680 save_pid to save_ptid.
5681 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
5682 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
5683 saved_inferior_pid to saved_inferior_ptid.
5684 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
5685 * infrun.c (previous_inferior_pid [static global]): Likewise,
5686 but rename to previous_inferior_ptid.
5687 (resume): Likewise, but rename resume_pid to resume_ptid.
5688 (struct execution_control_state): Likewise, but rename
5689 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
5690 and waiton_pid to waiton_ptid.
5691 (target_last_wait_pid): Likewise, but rename to
5692 target_last_wait_ptid.
5693 * infttrace.c (saved_real_pid): Likewise, but rename to
5694 saved_real_ptid.
5695 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
5696 to saved_inferior_ptid.
5697 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
5698 (trap_ptid): Likewise, but renamed from trap_pid.
5699 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
5700 to gdb_ptid.
5701 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
5702 (thread_db_wait): Likewise, but rename ret_pid to retptid.
5703 * procfs.c (procfs_wait): Likewise, for retval whose name
5704 doesn't change. Also, ``temp'' becomes two separate variables,
5705 one named temp_tid (an int) and the other temp_ptid.
5706 (procfs_notice_thread): Likewise (type change) for gdb_threadid
5707 whose name does not change.
5708 * regcache.c (registers_ptid): Likewise, but renamed from
5709 registers_pid.
5710 (read_register_pid, read_signed_register_pid, write_register_pid):
5711 Likewise, but rename save_pid to save_ptid.
5712 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
5713 to saved_inferior_ptid.
5714 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
5715 * sol-thread.c (struct ps_prochandle): Likewise.
5716 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
5717 (sol_thread_wait): Likewise, for rtnval whose name does not
5718 change, and for save_pid which becomes save_ptid.
5719 (solaris_pid_to_str): Likewise for lwp whose name does not change.
5720 (sol_find_new_threads_callback): Likewise, for pid which becomes
5721 ptid.
5722 * target.h (target_resume, target_wait, target_post_wait)
5723 (target_post_startup_inferior, target_notice_signals)
5724 (target_thread_alive): Likewise.
5725 * thread.c (info_threads_command): Likewise, but rename
5726 current_pid to current_ptid.
5727 (struct current_thread_cleanup): Likewise, but rename field
5728 inferior_pid to inferior_ptid.
5729 * thread-db.c (find_new_threads_callback): Likewise, but rename
5730 pid to ptid.
5731 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
5732 change.
5733 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
5734 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
5735 but rename pid to ptid.
5736 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
5737 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
5738 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
5739 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
5740 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
5741 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
5742
5743 * arch-utils.c (generic_prepare_to_proceed): Test for the
5744 "zero" ptid by using ptid_equal() to test to see if variable
5745 in question is the same as null_ptid. This replaces a direct
5746 test against zero.
5747 * cxux-nat.c (add_shared_symbol_files): Likewise.
5748 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
5749 * infcmd.c (run_command): Likewise.
5750 * inflow.c (kill_command): Likewise.
5751 * infttrace.c (call_ttrace): Likewise.
5752 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
5753 * lin-thread.c (thread_db_kill): Likewise.
5754 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
5755 * remote-es.c (es1800_kill): Likewise.
5756 * sol-thread.c (sol_thread_create_inferior): Likewise.
5757 * solib.c (locate_base): Likewise.
5758 * target.c (nosupport_runtime): Likewise.
5759 * thread-db.c (thread_db_wait): Likewise.
5760 * top.c (quit_confirm, quit_force): Likewise.
5761 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
5762
5763 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
5764 Use ptid_equal to compare value of process/thread ids instead of
5765 ``=='' and ``!='' operators.
5766 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
5767 (stop_wait_callback, lin_lwp_wait): Likewise.
5768 * procfs.c (procfs_wait): Likewise.
5769 * regcache.c (read_register_bytes, read_register_gen)
5770 (write_register_gen, read_register, read_register_pid)
5771 (read_signed_register, read_signed_register_pid, write_register)
5772 (write_register_pid, supply_register): Likewise.
5773 * remote-vx.c (vx_resume): Likewise.
5774 * sol-thread.c (sol_thread_wait): Likewise.
5775 * symm-nat.c (kill_inferior): Likewise.
5776 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
5777 (in_thread_list, info_threads_command, switch_to_thread)
5778 (restore_current_thread): Likewise.
5779 * uw-thread (libtread_stub): Likewise.
5780
5781 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
5782
5783 * corelow.c (add_to_thread_list): Convert argument in add_thread()
5784 call to a ptid_t.
5785 * gnu-nat.c (inf_validate_procs): Likewise.
5786 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
5787 * remote.c (record_currthread, remote_threads_info): Likewise.
5788 * win32-nat.c (child_add_thread): Likewise.
5789
5790 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
5791 respectively, to save_inferior_ptid() and restore_inferior_ptid().
5792 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
5793 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
5794 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5795 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5796 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
5797 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5798 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
5799
5800 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
5801 to be passed to target_resume() when all threads should resume.
5802 (resume): Set resume_ptid to RESUME_ALL rather than -1.
5803 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
5804 instead of -1.
5805 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
5806 a ptid_t in target_resume() call.
5807 * osfsolib.c (solib_create_inferior_hook): Likewise.
5808 * solib-svr4.c (solib_create_inferior_hook): Likewise.
5809
5810 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
5811 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
5812 difference being that the 0xffff pattern will be interpreted
5813 as -1.
5814 * lin-thread.c (PIDGET, PIDGET0): Likewise.
5815 * thread-db.c (PIDGET, PIDGET0): Likewise.
5816 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
5817 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
5818 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
5819 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
5820
5821 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
5822 mach_really_wait rather than mach_really__wait.
5823 * lin-thread.c (check_for_thread_event): Fix warning; make function
5824 actually return a value.
5825
5826 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
5827 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
5828 pid to ptid.
5829 * gdbarch.h, gdbarch.c: Regenerated.
5830
31e28849
JL
58312001-05-03 Jonathan Larmour <jlarmour@redhat.com>
5832
5833 * rdi-share/devsw.c: Include <time.h> for struct tm
5834
8d341142
EZ
58352001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5836
5837 * config/djgpp/fnchange.lst: Add mappings for the new
5838 opcodes/openrisc-* files.
5839
9572d2b6
MS
58402001-05-01 Michael Snyder <msnyder@redhat.com>
5841
9085700c 5842 * lin-lwp.c: Change printf to fprintf_unfiltered.
9572d2b6
MS
5843 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
5844
977adac5
ND
58452001-05-01 Nicholas Duffek <nsd@redhat.com>
5846
5847 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
5848 (rs6000_in_solib_return_trampoline): Declare.
5849 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
5850 function.
5851 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
5852 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
5853 check after the CSECT check rather than before it. Allocate
5854 separate symtabs for CSECTs whose names begin with '@'.
5855 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
5856 Activate the misc_func_recorded mechanism for whose names begin
5857 with '@'.
5858
6d799331
C
58592001-04-30 J.T. Conklin <jtc@redback.com>
5860
5861 * ppcnbsd-nat.c (fetch_inferior_registers)
5862 (store_inferior_registers, fetch_core_registers): Changed to use
5863 fpreg[] instead of r_regs[] to access floating point registers.
5864
7f4dbe94
EZ
58652001-04-30 Elena Zannoni <ezannoni@redhat.com>
5866
5867 * sh-tdep.c: Get rid of the function prototypes.
5868 (sh_sh4_build_float_register_type): Move earlier in file.
5869 (fv_reg_base_num): Ditto.
5870 (dr_reg_base_num): Ditto.
5871
540af400
MS
58722001-04-30 Michael Snyder <msnyder@redhat.com>
5873
5874 * thread-db.c: Revert 2001-04-26 change for debugging output.
7ca673cd
MS
5875 * lin-lwp.c: Ditto.
5876 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
5877 command to turn extra debugging output on / off.
540af400 5878
f5a6fc05
EZ
58792001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
5880
5881 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
5882 (top-level): #include filenames.h.
5883
5884 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
5885 FILENAME_CMP, to DTRT on non-Posix platforms.
5886 (top-level): #include filenames.h.
5887
5888
502dcf4e
AC
58892001-04-27 Andrew Cagney <ac131313@redhat.com>
5890
5891 * gdbtypes.c (check_stub_method): Always initialize ``p''.
5892
cc3f9cbb
AC
58932001-04-27 Andrew Cagney <ac131313@redhat.com>
5894
5895 * configure.host: Delete romp host.
5896 * TODO: Update.
5897
ed9c5cf2
AC
58982001-04-27 Andrew Cagney <ac131313@redhat.com>
5899
5900 * TODO: Updates to 5.1. No more targets to obsolete.
5901
d1a310e7
DH
59022001-04-27 Don Howard <dhoward@redhat.com>
5903
128437e6
DH
5904 (Changes from Kevin Buettner, with minor update by Don Howard.)
5905
5906 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
5907 typos in which hexadecimal constants were really intended to be
5908 binary constants.
5909 (i387_tag): Swap logic regarding zero vs non-zero exponents.
d1a310e7
DH
5910 * MAINTAINERS (Misc): Added myself to the write-after-approval
5911 list.
5912
015a42b4
JB
59132001-04-26 Jim Blandy <jimb@redhat.com>
5914
5915 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
5916
5917 Abstract out operations specific to particular C++ ABI's, and
5918 invoke them through a function table. This removes the C++ ABI
5919 dependencies scattered throughout the code, and allows us to
5920 cleanly add support for new C++ ABI's.
5921 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
5922 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
5923 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
5924 #include "cp-abi.h". These files all use functions now declared
5925 there.
5926 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
5927 Deleted. These services are now provided by functions declared in
5928 cp-abi.h.
5929 * value.h (value_rtti_type, value_virtual_fn_field): Same.
5930 * values.c (value_virtual_fn_field): Same, for this definition.
5931 * valops.c (value_rtti_type): Same.
5932 * c-typeprint.c (c_type_print_base): Use the functions from
5933 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
5934 tests.
5935 * dbxread.c (record_minimal_symbol): Same.
5936 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
5937 virtual_base_index_skip_primaries): Same.
5938 * jv-typeprint.c (java_type_print_base): Same.
5939 * linespec.c (find_methods, decode_line_1): Same.
5940 * symtab.c (gdb_mangle_name): Same.
5941 * Makefile.in (SFILES): Add the new .c files mentioned above.
5942 (cp_abi_h): New variable.
5943 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
5944 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
5945 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
5946 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
5947 dependency on $(cp_abi_h).
5948
f3fb8c85
MS
59492001-04-26 Michael Snyder <msnyder@redhat.com>
5950
20b8570d
MS
5951 * thread-db.c (_initialize_thread_db): Add set/show command
5952 "debug-linux-threads" for debugging output.
5953 * lin-lwp.c (various): Use global "debug_linux_threads to
5954 turn on extra debugging output.
4c8de859 5955 * lin-lwp.c: Minor cleanups in comments.
f3fb8c85
MS
5956 * target.c (normal_pid_to_str): Get rid of an ancient hack.
5957 * remote.c (remote_pid_to_str): New function for remote target.
5958
7f0b5c30
JB
59592001-04-24 Jim Blandy <jimb@redhat.com>
5960
5961 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
5962 qualifier on C++ references; all references are innately const.
5963
0af5533d
MK
59642001-04-20 Mark Kettenis <kettenis@gnu.org>
5965
5966 * event-top.h: Fix formatting.
5967
d036b4d9
AC
59682001-04-17 Andrew Cagney <ac131313@redhat.com>
5969
5970 * source.c (openp): Obsolete #ifdef MPW code.
5971 (open_source_file): Ditto.
5972 * event-top.c (display_gdb_prompt): Ditto.
5973 * utils.c (query): Ditto.
5974 (init_page_info): Ditto.
5975 (init_page_info): Delete #ifndef MPW.
5976 * top.c (gdb_readline): Ditto.
5977 * mac-xdep.c: Obsolete.
5978 * mac-gdb.r: Obsolete.
5979 * config/powerpc/xm-mpw.h: Obsolete.
5980 * config/xm-mpw.h: Obsolete.
5981 * mpw-make.sed: Obsolete.
5982 * mpw-config.in: Obsolete.
5983 * TODO: Update
5984 * NEWS: Update
5985
539ffe0b
MK
59862001-04-19 Mark Kettenis <kettenis@gnu.org>
5987
5988 * i386-tdep.c (i386_frameless_function_invocation): New function.
5989 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
5990 in terms of i386_frameless_function_invocation. Adjust comment.
5991 (i386_frameless_function_invocation): New prototype.
5992
67e1e03a
MH
59932001-04-18 Martin M. Hunt <hunt@redhat.com>
5994
5995 * top.c (gdb_init): Don't call cli_out_new() to
5996 create global uiout if init_ui_hook is set. uiout will
5997 have to be initialized there.
5998
fbec36e2
AC
59992001-04-18 Andrew Cagney <ac131313@redhat.com>
6000
6001 * arch-utils.c: Include "regcache.h".
6002
ed84f6c1
MK
60032001-04-18 Mark Kettenis <kettenis@gnu.org>
6004
6005 * i386-tdep.c (i386_saved_pc_after_call): New function.
6006 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
6007 of i386_saved_pc_after_call.
6008 (i386_saved_pc_after_call): New prototype.
6009
c60a7562
MS
60102001-04-17 Michael Snyder <msnyder@redhat.com>
6011
c9e030cf 6012 * i386-nat.c: Fix typo in comment.
c60a7562
MS
6013 * solib.c (no_shared_libraries): New function. Discard all symbols
6014 from shared libraries.
6015 (_initialize_solib): Add command "nosharedlibrary" as complement
6016 to the command "sharedlibrary". Unloads symbols for all solibs.
6017
514e603d
AC
60182001-04-16 Andrew Cagney <ac131313@redhat.com>
6019
6020 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
6021 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
6022 (m68*-est-*, m68*-sony-*, m68*-isi-*):
6023 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
6024 * config/m68k/xm-news.h: Obsolete.
6025 * config/m68k/tm-news.h:
6026 * config/m68k/xm-news1000.h: Obsolete.
6027 * config/m68k/news.mh: Obsolete.
6028 * config/m68k/news.mt: Obsolete.
6029 * config/m68k/nm-news.h: Obsolete.
6030 * config/m68k/news1000.mh: Obsolete.
6031 * news-xdep.c: Obsolete.
6032 * Makefile.in (isi-xdep.o): Obsolete.
6033 (ALLDEPFILES): Delete isi-xdep.c.
6034 (tm-isi.h): Obsolete.
6035 * m68k-tdep.c (altos_skip_prologue): Update comments.
6036 (isi_skip_prologue): Obsolete.
6037 * isi-xdep.c: Obsolete.
6038 * config/m68k/xm-isi.h: Obsolete.
6039 * config/m68k/isi.mh: Obsolete.
6040 * config/m68k/tm-isi.h: Obsolete.
6041 * config/m68k/isi.mt: Obsolete.
6042
6043 * TODO: Update.
6044 * NEWS: Update.
6045
6240bebf
MS
60462001-04-17 Michael Snyder <msnyder@redhat.com>
6047
6048 * remote.c (remote_open_1): On opening the remote target, activate
6049 the solib_create_inferior_hook, so that it can detect when the
6050 target loads shared libraries.
6051 (remote_async_open_1): Ditto.
6052
75ac9d7b
MS
60532001-04-17 Michael Snyder <msnyder@redhat.com>
6054
6055 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
6056 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
6057 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
6058 * testsuite/gdb.trace/infotrace.exp: Ditto.
6059 * testsuite/gdb.trace/passcount.exp: Ditto.
6060 * testsuite/gdb.trace/while-stepping.exp: Ditto.
6061
b9569773
MS
60622001-04-17 Michael Snyder <msnyder@redhat.com>
6063
6064 * thread-db.c (check_thread_signals): When looping over all
6065 signals, ignore signal zero.
6066 (disable_thread_signals): Ditto.
6067
81490ea1
MS
60682001-04-17 Eirik Fuller <eirik@netapp.com>
6069
6070 * thread.c (do_captured_thread_select): Allow the argument to the
6071 thread command to be an expression rather than a literal integer.
6072
e5434c3d
MK
60732001-04-17 Mark Kettenis <kettenis@gnu.org>
6074
6075 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
6076 read_memory_unsigned_integer instead of read_memory_integer.
6077
00c7912d
KB
60782001-04-16 Kevin Buettner <kevinb@redhat.com>
6079
6080 * solib-aix5.c (map_index_vs_section_name_okay): New function.
6081 (aix5_relocate_main_executable): Don't use file offsets for
6082 determining corresponding sections and map file entries. Call
6083 map_index_vs_section_name_okay() to do this instead.
6084
4d1bcd09
KB
60852001-04-16 Kevin Buettner <kevinb@redhat.com>
6086
6087 * procfs.c (open_with_retry): New function.
6088 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
6089 (proc_get_LDT_entry): Call open_with_retry() instead of open().
6090
097e5c0b 60912001-04-16 Kevin Buettner <kevinb@redhat.com>
1186f287
KB
6092
6093 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
6094 comparison against TRAP_HWBKPT constant yet again to account
6095 for the various values used by different kernel versions.
6096
9e0c176c
DB
60972001-04-16 Daniel Berlin <dan@cgsoftware.com>
6098
6099 * demangle.c (_initialize_demangler): Use xcalloc on the
6100 demangling_style_names, and make it a null terminated array of
6101 names, to avoid a crash.
6102
c833a37e
MK
61032001-04-16 Mark Kettenis <kettenis@gnu.org>
6104
6105 * i386-tdep.c (i386_frame_chain): New function.
6106 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
6107 i386_frame_chain.
6108 (i386_frame_chain): New prototype.
6109
46c6cdcf
C
61102001-04-14 J.T. Conklin <jtc@redback.com>
6111
6112 * target.h (target_ops): Removed to_core_file_to_sym_file vector
6113 function.
6114 * corelow.c (core_ops): Updated for above change.
6115 * gnu-nat.c (core_ops): Likewise.
6116 * inftarg.c (child_ops): Likewise.
6117 * monitor.c (monitor_ops): Likewise.
6118 * ppc-bdm.c (bdm_ppc_ops): Likewise.
6119 * remote-adapt.c (adapt_ops): Likewise.
6120 * remote-bug.c (bug_ops): Likewise.
6121 * remote-e7000.c (e7000_ops): Likewise.
6122 * remote-eb.c (eb_ops): Likewise.
6123 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
6124 * remote-mm.c (mm_ops): Likewise.
6125 * remote-nindy.c (nindy_ops): Likewise.
6126 * remote-nrom.c (nrom_ops): Likewise.
6127 * remote-os9k.c (rombug_ops): Likewise.
6128 * remote-rdp.c (remote_rdp_ops): Likewise.
6129 * remote-sim.c (gdbsim_ops): Likewise.
6130 * remote-st.c (st2000_ops): Likewise.
6131 * v850ice.c (v850ice_ops): Likewise.
6132 * target.c (cleanup_target): Likewise
6133 (update_current_target): Likewise.
6134 (setup_target_debug): Likewise
6135 (debug_to_core_file_to_sym_file): Removed.
6136
6137 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
6138 sets symbol file from information obtained from the core file.
6139 * corelow.c (core_file_to_sym_file): Removed.
6140
d1566ff5
FN
61412001-04-13 Fernando Nasser <fnasser@redhat.com>
6142
6143 From Adam Mirowski <Adam.Mirowski@Sun.COM>
6144 Fixed Insight on Solaris. It was not possible to debug a process
6145 because of EINTR "errors".
6146 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
6147 with EINTR, retry the call.
6148
6c98e688
KB
61492001-04-12 Kevin Buettner <kevinb@redhat.com>
6150
6151 * solib-aix5.c (enum maptype): Delete.
6152 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
6153 member a pointer instead of a statically sized array.
6154 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
6155 array.
6156 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
6157 aix5_find_global_pointer): Search for correct mapping to use
6158 based on file offset instead of knowledge of whether the section
6159 is read-only or read/write.
6160 (aix5_find_gate_addresses): Use the first mapping instead of
6161 the (now defunct) MT_READONLY mapping.
6162
49282387
ND
61632001-04-12 Nicholas Duffek <nsd@redhat.com>
6164
6165 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
6166 "@".
6167
7f6b83a5
KB
61682001-04-12 Kevin Buettner <kevinb@redhat.com>
6169
6170 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
6171
24f89b68
AC
61722001-04-09 Andrew Cagney <ac131313@redhat.com>
6173
6174 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
6175 * config/i386/sun386.mh: Obsolete.
6176 * config/i386/sun386.mt: Obsolete.
6177 * config/i386/xm-sun386.h: Obsolete.
6178 * config/i386/tm-sun386.h: Obsolete.
6179 * config/i386/nm-sun386.h: Obsolete.
6180 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
6181 (sun386-nat.o): Target is obsolete.
6182 * sun386-nat.c: Obsolete.
6183 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
6184 * configure.host (i[3456]86-*-sunos*): Obsolete.
6185 * NEWS: Update.
6186 * TODO: Update.
6187
c114dcd5
C
61882001-04-10 J.T. Conklin <jtc@redback.com>
6189
6190 * maint.c: Fix typo in comment.
6191
6755f5ad
KS
61922001-04-09 Keith Seitz <keiths@cygnus.com>
6193
6194 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
6195
7700434b
KB
61962001-04-08 Kevin Buettner <kevinb@redhat.com>
6197
6198 * fork-child.c (fork_inferior, clone_and_follow_inferior):
6199 Document fact that apparent call to vfork() might actually be
6200 a call to fork() instead.
6201 * ser-pipe.c (pipe_open): Likewise.
6202
d493eb33
KB
62032001-04-08 Kevin Buettner <kevinb@redhat.com>
6204
6205 * printcmd.c (print_frame_args): Use a cleanup to invoke
6206 ui_out_list_end() so that the list count nesting flag will
6207 be decremented properly when an error occurs.
6208 * stack.c (print_frame): Likewise.
6209
af471f3c
C
62102001-04-06 J.T. Conklin <jtc@redback.com>
6211
c839c4db
C
6212 * dcache.c (dcache_write_line): Fixed bugs where cache line was
6213 not written to target correctly.
6214
af471f3c
C
6215 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
6216 void return value;
6217 * gdbserver/low-nbsd.c: Likewise.
6218 * gdbserver/low-sparc.c: Likewise.
6219 * gdbserver/low-sun3.c: Likewise.
6220
d8e275b4
GK
62212001-04-06 Geoffrey Keating <geoffk@redhat.com>
6222
6223 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
6224 (PTRACE_DETACH): Don't define.
6225
e02bc4cc
DS
62262001-04-06 David Smith <dsmith@redhat.com>
6227
6228 * arch-utils.c (default_prepare_to_proceed)
6229 (generic_prepare_to_proceed): Added new functions.
6230 * arch-utils.h: New function declarations for
6231 default_prepare_to_proceed() and generic_prepare_to_proceed().
6232 * gdbarch.sh: Added PREPARE_TO_PROCEED.
6233 * gdbarch.c: Regenerated.
6234 * gdbarch.h: Regenerated.
6235 * inferior.h: Added get_last_target_status() declaration.
6236 * infrun.c (get_last_target_status): Added new function.
6237 (handle_inferior_event): Saves last pid and waitstatus, which will
6238 get returned by get_last_target_status().
6239
6240 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
6241 prepare_to_proceed() is potentially redundant since
6242 default_prepare_to_proceed() has been added.
6243 * linux-thread.c (prepare_to_proceed): Ditto.
6244 * lin-lwp.c (prepare_to_proceed): Ditto.
6245 * m3-nat.c (prepare_to_proceed): Ditto.
6246
1b2b2c16
AC
62472001-04-05 Andrew Cagney <ac131313@redhat.com>
6248
6249 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
6250 and powerpc-*-netware* target.
6251 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
6252 Obsolete.
6253 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
6254 (powerpcle-*-solaris*): Obsolete.
6255 * config/powerpc/tm-cygwin.h: Obsolete.
6256 * config/powerpc/cygwin.mt: Obsolete.
6257 * config/powerpc/xm-cygwin.h: Obsolete.
6258 * config/powerpc/cygwin.mh: Obsolete.
6259 * config/powerpc/nm-solaris.h: Obsolete.
6260 * config/powerpc/xm-solaris.h: Obsolete.
6261 * config/powerpc/tm-solaris.h: Obsolete.
6262 * config/powerpc/solaris.mt: Obsolete.
6263 * config/powerpc/tm-ppc-nw.h: Obsolete.
6264 * config/powerpc/ppc-nw.mt: Obsolete.
6265 * TODO: Update.
6266 * NEWS: Update.
6267
063fd668
FN
62682001-04-06 Fernando Nasser <fnasser@redhat.com>
6269
6270 * buildsym.c (record_line): Turn off unused addr bits.
6271
a250df2e
FN
62722001-04-06 Fernando Nasser <fnasser@redhat.com>
6273
6274 From David Deephanphongs <deephan@telocity.com>
6275 * inferior.h: Fix declarations of get_inferior_args and
6276 set_inferior_args, which were missing the trailing 's'.
6277
1fcef334
JH
62782001-04-05 Jeff Holcomb <jeffh@redhat.com>
6279
6280 * monitor.c (monitor_supply_register): Only report an error if we
6281 don't get a valid value.
6282
f032fb6e
EZ
62832001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
6284
6285 * README: Don't mention gdba.el.
6286
0191bed7
EZ
62872001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6288
6289 From Jimmy Guo <guo@cup.hp.com>
6290 * top.c (init_main): set prompt if annotation_level>1,
6291 this is necessary when annotation_level is set to 2 via
6292 --annotate=2 command line option.
6293
4a1968f4
AC
62942001-04-04 Andrew Cagney <ac131313@redhat.com>
6295
6296 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
6297 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
6298 * configure.host (a29k-*-*): Obsolete.
6299 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
6300 ultra3-xdep.c.
6301 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
6302 * config/a29k/tm-ultra3.h: Obsolete.
6303 * config/a29k/ultra3.mt: Obsolete.
6304 * config/a29k/ultra3.mh: Obsolete.
6305 * config/a29k/nm-ultra3.h: Obsolete.
6306 * config/a29k/xm-ultra3.h: Obsolete.
6307 * ultra3-xdep.c: Obsolete.
6308 * ultra3-nat.c: Obsolete.
6309 * config/a29k/a29k-kern.mt: Obsolete.
6310 * NEWS: Update.
6311 * TODO: Update.
6312
608506ed
CF
6313Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
6314
6315 * main.c: Remove windows.h use.
6316 (gdbtk_test): Use PATH_MAX for home var calculation.
6317 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
6318 Win32 in colon test.
6319 * ser-tcp.c: Use modern __CYGWIN__ conditional.
6320 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
6321 (openp): Ditto.
6322 * symfile.c (symfile_bfd_open): Ditto.
608506ed 6323
6457bd47
MH
63242001-04-04 Martin M. Hunt <hunt@redhat.com>
6325
6326 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
6327 Handle all stream setup in gdbtk_init
6328
3df1b9b4
MK
63292001-04-04 Mark Kettenis <kettenis@gnu.org>
6330
6331 * i386-tdep.c (i386_extract_return_value): Don't return the return
6332 value of a void function.
6333 (i386_store_return_value): Likewise.
6334
76f4ea53
AC
63352001-04-03 Andrew Cagney <ac131313@redhat.com>
6336
6337 Obsolete w65-*-* target.
6338 * configure.tgt (w65-*-*): Obsolete.
6339 * config/w65/w65.mt: Obsolete.
6340 * config/w65/tm-w65.h: Obsolete.
6341 * w65-tdep.c: Obsolete.
6342 * NEWS: Update. Fix TiC80 description.
6343 * TODO: Update.
6344
52071915
AC
63452001-04-03 Andrew Cagney <ac131313@redhat.com>
6346
6347 Obsolete tic80-*-* target.
6348 * configure.tgt (tic80-*-*): Obsolete.
6349 * config/tic80/tic80.mt: Obsolete.
6350 * config/tic80/tm-tic80.h: Obsolete.
6351 * tic80-tdep.c: Obsolete.
6352 * TODO: Update
6353 * NEWS: Update.
6354
44eaed12
C
63552001-04-02 J.T. Conklin <jtc@redback.com>
6356
ba79cc81
C
6357 * remote-mips.c (S_IROTH): Moved definition from here.
6358 * gdb_stat.h (S_IROTH): to here.
6359
44eaed12
C
6360 * remote.c (remote_protocol_e, remote_protocol_E): Define.
6361 (set_remote_protocol_e_packet_cmd)
6362 (set_remote_protocol_E_packet_cmd)
6363 (show_remote_protocol_e_packet_command)
6364 (show_remote_protocol_E_packet_command): New functions.
6365 (init_all_packet_configs): Initialize remote_protocol_e and
6366 remote_protocol_E.
6367 (remote_resume, remote_async_resume): Support e/E command
6368 packets.
6369 (show_remote_cmd): Show state of remote_protocol_e and
6370 remote_protocol_E.
6371 (_initialize_remote): Add "set remote step-over-range-packet"
6372 and "set remote step-over-range-w-signal-packet" to CLI.
6373
bb19ff3b
AC
63742001-04-01 Andrew Cagney <ac131313@redhat.com>
6375
6376 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
6377 ns32k-utek-*.
6378 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
6379 (umax-xdep.o, ns32km3-nat.o): Obsolete.
6380 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
6381 Obsolete.
6382 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
6383 Obsolete.
6384 * config/ns32k/merlin.mh: Obsolete.
6385 * config/ns32k/merlin.mt: Obsolete.
6386 * config/ns32k/xm-merlin.h: Obsolete.
6387 * config/ns32k/tm-merlin.h: Obsolete.
6388 * config/ns32k/nm-umax.h: Obsolete.
6389 * config/ns32k/umax.mh: Obsolete.
6390 * config/ns32k/umax.mt: Obsolete.
6391 * config/ns32k/xm-umax.h: Obsolete.
6392 * umax-xdep.c: Obsolete.
6393 * config/ns32k/ns32km3.mh: Obsolete.
6394 * config/ns32k/ns32km3.mt: Obsolete.
6395 * config/ns32k/tm-ns32km3.h: Obsolete.
6396 * config/ns32k/xm-ns32km3.h: Obsolete.
6397 * ns32km3-nat.c: Obsolete.
6398 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
6399 (merlin_frame_num_args): Ditto.
6400 * NEWS: Update.
6401 * TODO: Update.
6402
d6259d75
EZ
64032001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
6404
6405 * config/djgpp/fnchange.lst: Tweak due to
6406 expect/example/chesslib.c.
6407
971ff545
KB
64082001-04-02 Kevin Buettner <kevinb@redhat.com>
6409
6410 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
6411 unsigned int to unsigned long. Also, fix format string.
6412 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
6413 use an undeclared variable. Also, delete declaration and
6414 initialization of ``fp'' because it is otherwise unused.
6415 * remote-bug.c (sleep): Delete declaration.
6416 (bug_store_register, bug_write_memory, bug_read_memory)
6417 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
6418 format statements and cast certain sprintf() arguments to
6419 eliminate warnings.
6420 (bug_load): Likewise for call to printf_filtered().
6421 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
6422 assignment to ``pc''. The necessary assignment is done in
6423 hand_function_call() after the invocation of FIX_CALL_DUMMY().
6424
4e4f46a1
DB
64252001-03-20 Daniel Berlin <dberlin@redhat.com>
6426
6427 * symtab.c (completion_list_add_name): Remove duplicate string checks,
6428 readline already does this, and it's much faster at it, too.
6429
ba8629a9
EZ
64302001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
6431
6432 * go32-nat.c: Minor tweaks, to pacify the ari script.
6433
7bf0983e
MK
64342001-04-01 Mark Kettenis <kettenis@gnu.org>
6435
f7af9647
MK
6436 * i386-tdep.c (i386_extract_struct_value_address): New function.
6437 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
6438 in terms of i386_extract_struct_value_address.
6439 (i386_extract_struct_value_address): New prototype.
6440
7bf0983e
MK
6441 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
6442 value to `unsigned long'. Change type of `value' to `unsigned
6443 long'.
6444 (i386_linux_dr_set): Change type of second argument to `unsigned
6445 long'.
6446 (i386_linux_dr_set_control): Change type of first argument to
6447 `unsigned long'.
6448 (i386_linux_dr_get_status): Change type of return value to
6449 unsigned long.
6450 * config/i386/nm-linux.h (i386_linux_dr_set_control,
6451 i386_linux_dr_get_status): Adjust prototypes accordingly.
6452
6e4862ff
KB
64532001-03-31 Kevin Buettner <kevinb@redhat.com>
6454
6455 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
6456 TRAP_HWBKPT constant to match that in the kernel headers for
6457 Linux/IA-64.
521f1f96 6458
1e8d0a7b
MK
64592001-03-31 Mark Kettenis <kettenis@gnu.org>
6460
0afdd437
MK
6461 * i386bsd-nat.c: Include "gdb_assert.h".
6462 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
6463 already defined.
6464 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
6465 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
6466 i386bsd_dr_get_status): New functions.
6467 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
6468 (I386_USE_GENERIC_WATCHPOINTS): Define.
6469 Include "i386/nm-i386.h".
6470 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6471 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6472 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
6473 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
6474 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
6475 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
6476 ptrace request.
6477 * config.in, configure: Regenerate.
6478
4bcc3944
MK
6479 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
6480 register before enabling it by setting the control register.
6481 (i386_remove_aligned_watchpoint): Reset address register after
6482 disabling it by setting the control register.
6483
1e8d0a7b
MK
6484 * i386-tdep.c (i386_extract_return_value): If the type of the
6485 return value is TYPE_STRUCT and the number of fields is one, call
6486 ourselves with TYPE set tp the type of the first field.
6487 (i386_store_return_value): Likewise.
6488 This fixes a problem with returning structs consisting of a single
6489 `float' or `double' on *BSD.
6490
95a85621
MK
64912001-03-30 Mark Kettenis <kettenis@gnu.org>
6492
40564aca
MK
6493 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
6494 we're absolutely sure we're going to resume it.
6495
95a85621
MK
6496 * thread-db.c (check_event): Don't report an error if we encounter
6497 a thread creation event for a thread that's already in the thread
6498 list, since that may legitemately happen. Instead only call
6499 attach_thread if it's not already in the thread list.
6500
2e94c453
AC
65012001-03-28 Andrew Cagney <ac131313@redhat.com>
6502
6503 * config/pa/xm-hppah.h (malloc): Really delete declaration
6504 (MALLOC_INCOMPATIBLE): Really delete macro.
6505 * cli/cli-cmds.c (apropos_command): Use xcalloc.
6506
93d56215
AC
65072001-03-28 Andrew Cagney <ac131313@redhat.com>
6508
6509 * configure.in (build_warnings): Add -Wuninitialized.
6510 * configure: Regenerate.
6511
6512 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
6513 * sparc-tdep.c (sparc64_push_arguments): Add default case to
6514 switch.
6515 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
6516 expression with if statement.
6517 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
6518 ``stack_size''.
6519 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
6520 (mips_dump_tdep): Fix setting of ef_mips_arch.
6521 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
6522 * dsrec.c (make_srec): Always initialize ``binbuf''.
6523 * monitor.c (monitor_read_memory_single): Do not pass an
6524 uninitialized buffer to monitor_error. Make ``i'' more local.
6525
381bab78
AC
65262001-03-28 Andrew Cagney <ac131313@redhat.com>
6527
6528 * MAINTAINERS: Change ns32k target to ,-Werror.
6529
6530 * ns32k-tdep.c: Include "gdbcore.h"
6531 (flip_bytes): Change first argument to void*. Add forward
6532 declaration.
6533 (sign_extend): Add declaration.
6534 (merlin_frame_num_args): Add final else clause to if-else chain.
6535 (umax_frame_num_args): Ditto.
6536 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
6537 (flip_bytes): Ditto.
6538
b9511b9a
MK
65392001-03-28 Mark Kettenis <kettenis@gnu.org>
6540
b05f2432
MK
6541 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
6542 config/i386/nm-linux.h (including comment).
6543 (i386_linux_frame_chain): New function implementing guts of the
6544 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
6545 instead of read_memory_integer.
6546 (i386_linux_frame_saved_pc): Removed doc pointing to
6547 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
6548 now lives in this file.
6549 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
6550 i386-linux-tdep.c (including comment).
6551 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
6552 (i386_linux_frame_chain): New prototype.
6553
0eebe06a
MK
6554 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
6555 make it work again.
6556 (NUM_FREGS): Redefine to 0.
6557 (NUM_REGS): Redefine as NUM_GREGS.
6558 (i386_register_byte, i386_register_raw_size): Update from
6559 i386-tdep.c. Add comment about their origin.
6560 (regmap, register_u_addr): Take these from i386-linux-nat.c.
6561 (i386_register_u_addr): Removed.
6562
b9511b9a
MK
6563 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
6564 fails instead of calling perror_with_name. This should fix
6565 debugging remote i386 targets with a native Linux/x86 GDB. Add
6566 FIXME for this hack.
6567
3172dc30
C
65682001-03-19 J.T. Conklin <jtc@redback.com>
6569
6570 * arch-utils.c (#include "gdbthread.h"): Removed.
6571 (#include "symfile.h"): Removed.
6572 (XMALLOC): Removed unused macro.
6573 * breakpoint.c (tbreak_command): Removed local declaration.
6574 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
6575 Remove duplicate declarations.
6576 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
6577 (remove_solib_event_breakpoints): Fix indentation botch.
6578 * c-typeprint.c (#include "command.h"): Removed.
6579 (#include "gdbcmd.h"): Removed.
6580 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
6581 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
6582 Removed duplicate declarations.
6583 * ch-typeprint.c (#include "command.h"): Removed.
6584 (#include "gdbcmd.h"): Removed.
6585 * corefile.c (#include "frame.h"): Removed
6586 (#include "symfile.h"): Removed.
6587 (#include "language.h"): Removed.
6588 * dbxread.c (#include "command.h"): Removed.
6589 * environ.c (#include "gdbcore.h"): Removed.
6590 * event-loop.c (#include "top.h"): Removed.
6591 * f-typeprint.c (#include "command.h"): Removed.
6592 (#include "gdbcmd.h"): Removed.
6593 (#include "language.h"): Removed.
6594 (#include "typeprint.h"): Removed.
6595 (#include "frame.h"): Removed.
6596 * gdbtypes.h (print_type_scalar): Removed declaration.
6597 * infcmd.c (#include "completer.h"): Removed.
6598 * language.c (#include "frame.h"): Removed.
6599 * m2-typeprint.c (#include "command.h"): Removed.
6600 (#include "gdbcmd.h"): Removed.
6601 (#include "language.h"): Removed.
6602 * m2-valprint.c (#include "valprint.h"): Removed.
6603 * p-typeprint.c (#include "command.h"): Removed.
6604 (#include "gdbcmd.h"): Removed.
6605 * p-valprint.c (#include "typeprint.h"): Removed.
6606 * parse.c (#include "linespec.h"): Removed.
6607 * regcache.c (#include "frame.h"): Removed.
6608 * remote.c (#include "frame.h"): Removed.
6609 (getpkt_sane): Make static.
6610 * source.c (#include "completer.h"): Removed.
6611 * stack.c (#include "symfile.h"): Removed.
6612 (#include "objfiles.h"): Removed.
6613 * symfile.c (#include "completer.h"): Removed.
6614 * tracepoint.c (#include "completer.h"): Removed.
6615 * values.c (#include "frame.h"): Removed.
6616 * varobj.c (#include "valprint.h"): Removed.
6617 * wrapper.c (#include "frame.h"): Removed.
6618
6619 * memattr.c (create_mem_region): Removed unused variable.
6620 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
6621
397b41ad
NC
66222001-03-27 Nick Clifton <nickc@redhat.com>
6623
6624 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
6625
ed817e68
KB
66262001-03-27 Kevin Buettner <kevinb@redhat.com>
6627
6628 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
6629 of free().
6630
b75e0a6b
EZ
66312001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
6632
6633 * TODO (Cleanups): Remove the item about converting docs to GFDL.
6634
2fc3ac7e
KB
66352001-03-26 Kevin Buettner <kevinb@redhat.com>
6636
6637 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
6638 type of ``bundle'' from unsigned char * to char *.
6639 (ia64_get_saved_register): Use alloca() to allocate register
6640 buffers.
6641
224d8953
KB
6642 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
6643
37de36c6
KB
66442001-03-26 Kevin Buettner <kevinb@redhat.com>
6645
6646 * proc-utils.h (procfs_ctl_t): New typedef.
6647 * proc-api.c (write_with_trace): Change type of ``opcode'' from
6648 long to procfs_ctl_t. Don't assume that the target has defined
6649 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
6650 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
6651 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
6652 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
6653 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
6654 Conditionally define as appropriate for AIX/non-AIX systems. Use
6655 these defines/typedefs as appropriate elsewhere in file.
6656 (struct procinfo): Change type of saved_sigset and saved_sighold
6657 from sigset_t to gdb_sigset_t. Make saved_exitset and
6658 saved_entryset pointer variables. Add two new fields, num_syscalls
6659 and syscall_names.
6660 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
6661 (sysset_t_size, sysset_t_alloc): New functions.
6662 (load_syscalls, free_syscalls, find_syscall): New functions for
6663 platforms which define DYNAMIC_SYSCALLS.
6664 (create_procinfo): Call load_syscalls.
6665 (destroy_one_procinfo): Call free_syscalls.
6666 (GDBRESET): Don't define twice.
6667 (proc_modify_flag): Change type of operation code array `arg'
6668 from long to procfs_ctl_t.
6669 (proc_stop_process, proc_wait_for_stop, proc_run_process)
6670 (proc_set_traced_signals, proc_set_traced_faults)
6671 (proc_set_traced_sysentry, proc_set_traced_sysexit)
6672 (proc_set_held_signals, proc_clear_current_fault)
6673 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
6674 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
6675 (proc_set_traced_sysentry): Dynamically allocate variable sized
6676 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
6677 (proc_set_traced_sysexit): Dynamically allocate variable
6678 sized struct gdb_proc_ctl_pcsexit. Also, free it at
6679 function exit.
6680 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
6681 for reading the sysset_t struct on AIX5.
6682 (procfs_debug_inferior): Don't assume that SYS_exit will be
6683 defined. Add new code for finding certain syscalls on AIX5.
6684 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
6685 (syscall_is_lwp_create): New functions.
6686 (procfs_wait): Restructured code which checks for certain
6687 system calls to use the new syscall_is_... functions.
6688 (procfs_notice_signals): Account for the fact that saved_entryset
6689 and saved_exitset in struct procinfo are now pointers.
6690
25d53da1
KB
66912001-03-26 Kevin Buettner <kevinb@redhat.com>
6692
6693 * symtab.c (find_pc_sect_line): Revise method used for finding
6694 the ending pc.
6695
50e27f84
MK
66962001-03-26 Mark Kettenis <kettenis@gnu.org>
6697
6698 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
6699 i386_linux_sigtramp_saved_sp): Make static.
6700 (i386_linux_frame_saved_pc): New function based on the old
6701 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
6702 of read_memory_integer.
6703 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
6704 (i386_linux_sigtramp_saved_pc): Remove prototype.
6705 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
6706 (i386_linux_frame_saved_pc): New prototype.
6707
1a5cef06
AC
67082001-03-26 Andrew Cagney <ac131313@redhat.com>
6709
6710 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
6711 * TODO (GDB 5.1 - Cleanups): Update.
6712
af802127
AC
67132001-03-26 Andrew Cagney <ac131313@redhat.com>
6714
6715 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
6716 HAVE_VFORK.
6717
22f8ba57
MK
67182001-03-26 Mark Kettenis <kettenis@gnu.org>
6719
5b31405b
MK
6720 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
6721
22f8ba57
MK
6722 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
6723 functions.
6724 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
6725 (STORE_STRUCT_RETURN): Redefine in terms of
6726 i386_store_struct_return.
6727 (i386_push_arguments, i386_store_struct_return): New prototypes.
6728 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
6729 definition was identical to the definition in "i386/tm-i386.h" so
6730 the new definition should suffice too.
6731
49baf819 67322001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4d277981 6733
b78a4f26
EZ
6734 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
6735 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
6736
4d277981
EZ
6737 * config/djgpp/djconfig.sh: Add copyright notice.
6738
6739 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
6740 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
6741 (top level) <string.h>: Include gdb_string.h instead.
6742 (dos_noop, dos_raw, dos_noflush_set_tty_state)
6743 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
6744
6745 * go32-nat.c (go32_create_inferior): Move the declaration of
6746 `environ' to here from the top level.
6747 (top level) <_initialize_go32_nat>: Remove redundant prototype.
6748 <gdb_string.h>: Include it instead of string.h.
6749 (store_register): Call register_buffer instead of accessing
6750 registers[] directly.
6751 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
6752 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
6753 the function names at the start of the line.
6754 (go32_set_dr): Throw internal_error if the argument is not a valid
6755 debug register number.
6756 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
6757 (go32_wait, go32_xfer_memory, go32_files_info)
6758 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
6759
8f3ee2ae
JB
67602001-03-25 Jim Blandy <jimb@redhat.com>
6761
6762 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
6763
6ec4c4bd
EZ
67642001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6765
6766 From Andrew Cagney <ac131313@redhat.com>
6767
6768 * coffread.c: Include "gdb_assert.h".
6769 (coff_symtab_read): Cast the integer s_sclass to a long before
6770 casting it to a pointer.
6771
b9179dbc
EZ
67722001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6773
6774 From Andrew Cagney <ac131313@redhat.com>
6775
6776 * coffread.c (coff_symtab_read): Initialize
6777 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
6778 the ``.ef'' info.
6779 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
6780
64c4637f
AC
67812001-03-23 Andrew Cagney <ac131313@redhat.com>
6782
6783 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
6784 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
6785 multi-arch.
6786
6787 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
6788 * gdbarch.h, gdbarch.c: Re-generate.
6789
6790 * target.h (SOFTWARE_SINGLE_STEP_P)
6791 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
6792
61a0eb5b
AC
67932001-03-23 Andrew Cagney <ac131313@redhat.com>
6794
6795 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
6796 * gdbarch.h, gdbarch.c: Regenerate.
6797
6798 * regcache.h (regcache_read, regcache_write): Declare.
6799 (registers, register_valid, register_buffer): Add note that these
6800 interfaces are deprecated.
6801
6802 * regcache.c: Include "gdb_assert.h".
6803 (legacy_write_register_gen): Rename write_register_gen.
6804 (legacy_read_register_gen): Rename read_register_gen.
6805 (regcache_read, regcache_write): New function.
6806 (read_register_gen, write_register_gen): New function.
6807 (write_register): Simplify. Use write_register_gen.
6808 (read_register): Ditto using read_register_gen.
6809 (read_signed_register): Ditto.
6810 (read_register_bytes): Ditto!!!!
6811 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
6812 replaced by gdbarch_register_read.
6813
6814 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
6815 deprecate.
6816
c2bd2ed9
JB
68172001-03-23 Jim Blandy <jimb@redhat.com>
6818
f34754ee
JB
6819 Fix from Dan Berlin:
6820
c2bd2ed9
JB
6821 * stabsread.c (read_cpp_abbrev): Properly construct the names of
6822 virtual function table pointer fields.
6823
c0e61796
AC
68242001-03-19 Andrew Cagney <ac131313@redhat.com>
6825
6826 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
6827 xmrealloc): Move existing declarations to the one place and
6828 re-order to be consistent.
6829 (xmcalloc, xmfree): Declare.
6830 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
6831 declaration.
6832
6833 * utils.c (size_t): Delete #ifdef defining size_t.
6834 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
6835 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
6836 corresponding malloc, realloc, calloc.
6837 (mfree): Call free directly.
6838 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
6839 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
6840 function bodies to here.
6841 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
6842
c65ecaf3
AC
68432001-03-23 Andrew Cagney <ac131313@redhat.com>
6844
6845 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
6846 ``shell_file'' static locals.
6847
6848 * jv-lang.c (java_link_class_type): Initialize ``field'' and
6849 ``method''.
6850
6851 * jv-valprint.c (java_value_print): Initialize ``next_element''.
6852
207e433e
MK
68532001-03-23 Mark Kettenis <kettenis@gnu.org>
6854
6855 * config/i386/nm-i386.h: Fix formatting and change reference to
6856 i386-tdep.c to i386-nat.c.
6857
6c5cfe5b
DS
68582001-03-23 David Smith <dsmith@redhat.com>
6859
6860 * configure.in: Corrected spelling errors.
6861 * configure: Regenerated.
6862
5300940c
AC
68632001-03-22 Andrew Cagney <ac131313@redhat.com>
6864
6865 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
6866
17e78a56
AC
68672001-03-22 Andrew Cagney <ac131313@redhat.com>
6868
6869 * Makefile.in (NTSSTART): Delete.
6870 (NTSOBS): Delete.
6871 (kdb): Delete target.
6872 * kdb-start.c, stuff.c: Mark as obsolete.
6873 * NEWS: Update.
6874
41899c04
AC
68752001-03-22 Andrew Cagney <ac131313@redhat.com>
6876
6877 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
6878 compiles using an ISO-C compiler.
6879 (MALLOC_INCOMPATIBLE): Ditto.
6880 * linespec.c (decode_line_1): Delete hack to work around
6881 HPPA_COMPILER_BUG.
6882
88665544
AC
68832001-03-22 Andrew Cagney <ac131313@redhat.com>
6884
6885 * exec.c (xfer_memory): Always initialize section.
6886 * infrun.c (normal_stop): Always initialize source_flag.
6887
a2061976
AC
68882001-03-22 Andrew Cagney <ac131313@redhat.com>
6889
6890 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
6891 non-use of a continue address and typical use of ``q'' packet.
6892
e24d4c64
EZ
68932001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
6894
6895 Make DJGPP use the new unified support for hardware
6896 breakpoints and watchpoints on x86 targets:
6897
6898 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
6899 include nm-i386.h instead.
6900 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
6901 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
6902 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
6903 (target_stopped_data_address, target_insert_watchpoint)
6904 (target_remove_watchpoint, target_insert_hw_breakpoint)
6905 (target_remove_hw_breakpoint): Don't define.
6906 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
6907 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
6908 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
6909 functions from go32-nat.c.
6910
6911 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
6912
6913 * go32-nat.c <top level>: Remove prototypes for watchpoint-
6914 related functions. Remove definitions of watchpoint-related
6915 macros.
6916 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
6917 private cleanup_dregs function.
6918 (cleanup_dregs, go32_insert_watchpoint)
6919 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
6920 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
6921 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
6922 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
6923 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
6924
c26e1c2b
KB
69252001-03-21 Kevin Buettner <kevinb@redhat.com>
6926
6927 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
6928 than two instead of generating an error.
6929
272ba48f
JB
69302001-03-21 Jim Blandy <jimb@redhat.com>
6931
6932 * cp-valprint.c: Reformat to bring into line with GNU coding
6933 standards.
6934
84346e11
MK
69352001-03-21 Mark Kettenis <kettenis@gnu.org>
6936
6937 Make Linux use the new unified support for hardware breakpoints
6938 and watchpoints on x86 targets.
6939 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
6940 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
6941 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
6942 appropriate value if not already defined.
6943 (register_u_addr): New function.
6944 (kernel_u_size): New function.
6945 (i386_linux_dr_get, i386_linux_dr_set): New functions.
6946 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6947 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
6948 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
6949 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
6950 (TARGET_HAS_HARDWARE_WATCHPOINTS,
6951 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
6952 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
6953 target_remove_watchpoint): Remove macros.
6954 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
6955 i386_remove_watchpoint): Remove prototypes.
6956 (register_u_addr): New prototype.
6957 (REGISTER_U_ADDR): Define in terms of register_u_addr.
6958 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6959 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
6960 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6961 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6962 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
6963 i386-nat.o.
6964
13b57657
JB
69652001-03-21 Jim Blandy <jimb@redhat.com>
6966
f34754ee
JB
6967 Fix from Dan Berlin:
6968
13b57657
JB
6969 * linespec.c (find_methods): Whitespace differences aren't
6970 significant in *un*mangled method names. Use strcmp_iw to compare
f34754ee 6971 them, not STREQ.
13b57657 6972
eee30e78
AC
69732001-03-21 Andrew Cagney <ac131313@redhat.com>
6974
6975 * gdbarch.sh: Allow a non- multi-arch target to override a
6976 predicate.
6977 * gdbarch.h: Regenerate.
6978
b77be6cf
AC
69792001-03-21 Andrew Cagney <ac131313@redhat.com>
6980
6981 * gdbarch.sh: Avoid use of ``!''.
6982
379d08a1
AC
69832001-03-20 Andrew Cagney <ac131313@redhat.com>
6984
6985 * target.h (enum target_signal): Move definition from here.
6986 * defs.h (enum target_signal): To here.
6987
6988 * config/arc/tm-arc.h (arc_software_single_step): Change type of
6989 first parameter to enum target_signal.
6990 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
6991 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
6992 * rs6000-tdep.c (rs6000_software_single_step): Update.
6993
64485362
AC
69942001-03-20 Andrew Cagney <ac131313@redhat.com>
6995
6996 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
6997 already defined.
6998
6999 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
7000 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
7001 or a reference ('a') can be in a pseudo register.
7002 * infcmd.c (do_registers_info): Must take into account the pseudo
7003 registers to print their value.
7004 (registers_info): Likewise.
7005 * stack.c (frame_info): Likewise.
7006 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
7007
52b98211
EZ
70082001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
7009
7010 Unified support for hardware breakpoints and watchpoints on
7011 x86 targets:
7012
7013 * config/i386/nm-i386.h: New file.
7014
7015 * config/i386/nm-i386.h: (i386_cleanup_dregs)
7016 (i386_insert_watchpoint, i386_remove_watchpoint)
7017 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
7018 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7019 (i386_remove_hw_breakpoint): Declare prototypes.
7020 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
7021 Define if not already defined.
7022 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
7023 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
7024 (target_insert_watchpoint, target_remove_watchpoint)
7025 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
7026 to call the appropriate i386_* functions.
7027
7028 * i386-nat.c: New file.
7029
7030 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
7031 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
7032 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
7033 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
7034 (maint_show_dr): New variables.
7035 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
7036 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
7037 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
7038 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7039 (i386_stopped_data_address, i386_stopped_by_hwbp)
7040 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
7041 functions.
7042 (_initialize_i386_nat): New function.
7043 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
7044 `show-debug-regs', sets maint_show_dr to non-zero value and
7045 activates debugging print-outs in functions which insert, remove,
7046 and test watchpoints and hardware breakpoints.
7047
7048 * Makefile.in (i386-nat.o): New target.
7049 (ALLDEPFILES): Add i386-nat.o.
7050
28e9e0f0
MK
70512001-03-21 Mark Kettenis <kettenis@gnu.org>
7052
7053 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
7054 appropriate comment.
7055
e40eccb4
KB
70562001-03-20 Kevin Buettner <kevinb@redhat.com>
7057
7058 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
7059 thread-db.o, and lin-lwp.o for thread support instead of
7060 linux-thread.o and lin-thread.o.
7061 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
7062 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
7063 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
7064 (lin_lwp_attach_lwp): Declare.
7065
bea7bb93
JB
70662001-03-20 Jim Blandy <jimb@redhat.com>
7067
f34754ee
JB
7068 Fix from Dan Berlin:
7069
bea7bb93
JB
7070 * Makefile.in: Clean up dependencies on ../include/demangle.h.
7071 (demangle_h): New variable.
7072 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
7073
b0ed3589
AC
70742001-03-20 Andrew Cagney <ac131313@redhat.com>
7075
7076 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
7077 * breakpoint.c (bpstat_stop_status): Update.
7078 * infrun.c (handle_inferior_event): Ditto.
7079 * mips-tdep.c (mips_dump_tdep): Ditto.
7080 * infrun.c (resume): Ditto.
7081 * infptrace.c (child_resume): Ditto.
7082 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7083 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7084 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7085 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7086 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7087 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7088 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7089
df087c62
AC
70902001-03-20 Andrew Cagney <ac131313@redhat.com>
7091
7092 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
7093 with internal_error.
7094
8bd1f2c6
JB
70952001-03-20 Jim Blandy <jimb@redhat.com>
7096
f34754ee
JB
7097 Fix from Dan Berlin:
7098
8bd1f2c6
JB
7099 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
7100 than asking for sym_class's type; that's circuitous. Remove
7101 sym_class, since the last use of it is gone.
7102
c97fe386
EZ
71032001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
7104
7105 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
7106 Correct the order of calls to ui_out_field_string and
7107 ui_out_list_begin when bs->old_val is NULL.
7108
486363b6
KB
71092001-03-19 Kevin Buettner <kevinb@redhat.com>
7110
7111 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
7112 * configure: Regenerate.
7113 * config.in: Regenerate.
7114 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
7115
087bb2e2
KB
71162001-03-19 Kevin Buettner <kevinb@redhat.com>
7117
7118 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
7119 same line to avoid problems with Unixware 7's make when building
7120 a cross debugger.
7121
3c37485b
AC
71222001-03-19 Andrew Cagney <ac131313@redhat.com>
7123
7124 * defs.h (malloc): Move declaration from here.
7125 * utils.c (malloc): To here.
7126 * config/pa/xm-hppah.h (malloc): Delete declaration.
7127
7128 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
7129 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
7130 (hpread_quick_traverse): Ditto.
7131 * infttrace.c (create_thread_info): Ditto.
7132 (kill_inferior): Ditto.
7133 * gnu-nat.c (make_inf): Ditto, and don't check return value.
7134 * procfs.c (proc_update_threads): Ditto.
7135 * valprint.c (print_decimal_chars): Ditto.
7136 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
7137 malloc and sprintf.
7138 * remote-rdp.c (rdp_set_command_line): Ditto.
7139
0e52036f
AC
71402001-03-19 Andrew Cagney <ac131313@redhat.com>
7141
7142 * defs.h (realloc): Move declaration from here.
7143 * utils.c (realloc): To here.
7144 * config/pa/xm-hppah.h (realloc): Delete declaration.
7145 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
7146 * symfile.c (add_filename_language): Ditto.
7147 * event-loop.c (create_file_handler): Ditto.
7148
81b8eb80
AC
71492001-03-19 Andrew Cagney <ac131313@redhat.com>
7150
7151 * defs.h (free): Move declaration from here.
7152 * utils.c (free): To here.
7153 (xfree): Document as the only call to free().
7154 * config/pa/xm-hppah.h (free): Delete declaration.
7155
8cca004a
KB
71562001-03-19 Kevin Buettner <kevinb@redhat.com>
7157
7158 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
7159 this list.
7160
cf4eee44
AC
71612001-03-19 Andrew Cagney <ac131313@redhat.com>
7162
7163 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
7164 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
7165 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
7166
1c5b31ef
AC
71672001-03-19 Andrew Cagney <ac131313@redhat.com>
7168
7169 * TODO: List known problems with TUI.
7170
3a0c66d4
AC
71712001-03-19 Andrew Cagney <ac131313@redhat.com>
7172
7173 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
7174 gdb.hp).
7175
ce359b09
AC
71762001-03-19 Andrew Cagney <ac131313@redhat.com>
7177
7178 * remote.c (remote_cisco_section_offsets): Do not cast result from
7179 bfd_get_section_name.
7180 (compare_sections_command): Ditto.
7181 (remote_cisco_section_offsets): Make ``p'' a const pointer.
7182 (compare_sections_command): Ditto for ``sectname''.
7183
0b3f98d3
AC
71842001-03-19 Andrew Cagney <ac131313@redhat.com>
7185
7186 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
7187 * valops.c (hand_function_call): Simplify computation of the
7188 address of the pushed argument.
7189
7451d027
AC
71902001-03-17 Andrew Cagney <ac131313@redhat.com>
7191
7192 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
7193 Code copied from c-exp.y.
7194
fb70ab0c
KB
71952001-03-18 Kevin Buettner <kevinb@redhat.com>
7196
7197 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7198 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7199 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
7200 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
7201 of the Solaris procfs testing section. Instead, group with...
7202 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7203 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7204 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
7205 * configure: Regenerate.
7206 * config.in: Regenerate.
7207
7208 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
7209 new configure macros to choose which (if any) code to
7210 compile in. Added code to explicitly handle *BSD systems;
7211 these systems were previously handled only through macro
7212 redefinition. Also, due to the way the autoconf tests are set
7213 up, this function will no longer return a non-zero value when
7214 GDB is configured as a cross debugger. I.e, cross debuggers
7215 will no longer be able to "accidentally" get the host system's
7216 link map offsets.
7217
8aa16b78
KB
72182001-03-18 Kevin Buettner <kevinb@redhat.com>
7219
7220 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
7221 line to avoid build problem on NetBSD 1.4.
7222
559e75c0
MC
72232001-03-17 Michael Chastain <chastain@redhat.com>
7224
7225 * win32-nat.c (child_attach): check args for NULL before passing
7226 to strtoul. This fixes PR gdb/43.
7227
fc338970
MK
72282001-03-17 Mark Kettenis <kettenis@gnu.org>
7229
7daede3b
MK
7230 * i387-nat.h: Doc Fix.
7231
fc338970
MK
7232 * i386-tdep.c: Fix formatting.
7233 (i386_get_frame_setup, i386_follow_jump, codestream_read,
7234 codestream_seek, codestream_fill, skip_trampoline_code,
7235 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
7236 prototypoes.
7237
e3c6d36d
MK
72382001-03-17 Mark Kettenis <kettenis@gnu.org>
7239
7240 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
7241 no longer used. Also remove associated FIXME.
7242
4a5c6a1d
AC
72432001-03-16 Andrew Cagney <ac131313@redhat.com>
7244
7245 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
7246 not generate macro wrappers for multi-arch functions or
7247 predicates.
7248 (class_is_info_p, class_is_predicate_p): Update.
7249 (class_is_function_p, class_is_variable_p): Ditto.
7250 (class_is_multiarch_p): New class function.
7251
7256e1a5
C
72522001-03-16 J.T. Conklin <jtc@redback.com>
7253
7254 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
7255 h8300_frame_args_address from frame_args_address.
7256 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
7257 from frame_locals_address.
7258 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
7259 from print_register_hook.
7260 (h8300_frame_args_address): Declare.
7261 (h8300_frame_find_saved_regs): Declare.
7262 (h8300_frame_locals_address): Declare.
7263 (h8300_frame_saved_pc): Declare.
7264 (h8300_pop_frame): Declare.
7265 (h8300_print_register_hook): Declare.
7266 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
7267 (h8300_frame_args_address): Renamed from frame_args_address.
7268 (h8300_frame_locals_address): Renamed from frame_locals_address.
7269 (h8300_pop_frame): Renamed from pop_frame.
7270 (h8300_print_register_hook): Renamed from print_register_hook.
7271
435b259c
KB
72722001-03-16 Kevin Buettner <kevinb@redhat.com>
7273
7274 * solib-svr4.c (bfd_lookup_symbol): Change type of
7275 ``storage_needed'' from unsigned int to long in order to
7276 match return type of bfd_get_symtab_upper_bound() and
7277 bfd_get_dynamic_symtab_upper_bound().
7278 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
7279 REASONABLE_LIMIT hack which had been added to work around this
7280 problem.
7281
80117be2
KB
72822001-03-15 Kevin Buettner <kevinb@redhat.com>
7283
7284 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
7285 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
7286 to free() with calls to xfree().
7287 (bfd_lookup_symbol): Eliminate use of PTR.
7288 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
7289
77cd5909
MH
72902001-03-15 Martin Hunt <hunt@redhat.com>
7291
7292 * linespec.c (decode_line_1): Remove trailing quote
7293 when parsing double quotes.
7294
f7f5a202
KB
72952001-03-15 Kevin Buettner <kevinb@redhat.com>
7296
7297 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
7298 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
7299 argument in the to_xfer_memory calls.
7300
0d35ddba
AC
73012001-03-15 Andrew Cagney <ac131313@redhat.com>
7302
7303 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
7304 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
7305
043780a1
AC
73062001-03-15 Andrew Cagney <ac131313@redhat.com>
7307
7308 * wince.c (child_xfer_memory): Add attrib parameter.
7309 * symm-nat.c (child_xfer_memory): Ditto.
7310 * mac-nat.c (child_xfer_memory): Ditto.
7311 * infttrace.c (child_xfer_memory): Ditto.
7312 * procfs.c (procfs_xfer_memory): Ditto.
7313 * lin-thread.c (thread_db_xfer_memory): Ditto.
7314 * gnu-nat.c (gnu_xfer_memory): Ditto.
7315
9b9c068d
AC
73162001-03-14 Andrew Cagney <ac131313@redhat.com>
7317
7318 * NEWS: Mention that Harris/CXUX m88k is obsolete.
7319
f88e2c52
AC
73202001-03-13 Andrew Cagney <ac131313@redhat.com>
7321
7322 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
7323 to regcache functions.
7324 * config/m68k/tm-m68k.h: Ditto.
7325 * config/i386/tm-i386v.h: Ditto.
7326 * config/mcore/tm-mcore.h: Ditto.
7327 * config/m88k/tm-m88k.h: Ditto.
7328 * config/m68k/tm-news.h: Ditto.
7329 * config/m68k/tm-linux.h: Ditto.
7330 * config/m68k/tm-delta68.h: Ditto.
7331 * config/m68k/nm-sun3.h: Ditto.
7332 * config/m32r/tm-m32r.h: Ditto.
7333 * config/i386/tm-symmetry.h: Ditto.
7334 * config/i386/tm-sun386.h: Ditto.
7335 * config/i386/tm-i386.h: Ditto.
7336 * config/i386/nm-symmetry.h: Ditto.
7337 * config/i386/nm-sun386.h: Ditto.
7338 * config/i386/nm-ptx4.h: Ditto.
7339 * config/i386/nm-i386mach.h: Ditto.
7340 * config/h8500/tm-h8500.h: Ditto.
7341 * config/h8300/tm-h8300.h: Ditto.
7342 * config/fr30/tm-fr30.h: Ditto.
7343 * config/d30v/tm-d30v.h: Ditto.
7344 * config/arm/tm-arm.h: Ditto.
7345 * config/arc/tm-arc.h: Ditto.
7346 * config/alpha/tm-alpha.h: Ditto.
7347 * config/a29k/tm-vx29k.h: Ditto.
7348 * config/a29k/tm-a29k.h: Ditto.
7349 * config/w65/tm-w65.h: Ditto.
7350 * config/vax/tm-vax.h: Ditto.
7351 * config/v850/tm-v850.h: Ditto.
7352 * config/tic80/tm-tic80.h: Ditto.
7353 * config/sparc/tm-sparclite.h: Ditto.
7354 * config/sparc/tm-sparclet.h: Ditto.
7355 * config/sparc/tm-sparc.h: Ditto.
7356 * config/sparc/nm-sun4sol2.h: Ditto.
7357 * config/sparc/nm-sun4os4.h: Ditto.
7358 * config/sparc/nm-nbsd.h: Ditto.
7359 * config/powerpc/nm-solaris.h: Ditto.
7360 * config/pa/tm-hppao.h: Ditto.
7361 * config/pa/tm-hppa.h: Ditto.
7362 * config/pa/nm-hppab.h: Ditto.
7363 * config/ns32k/tm-umax.h: Ditto.
7364 * config/ns32k/tm-merlin.h: Ditto.
7365 * config/nm-m3.h: Ditto.
7366 * config/nm-gnu.h: Ditto.
7367
0981ead9
AC
73682001-03-14 Andrew Cagney <ac131313@redhat.com>
7369
7370 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
7371 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
7372 Specify an m88k target. Include sample GAWK script to generate
7373 target list. Delete non-existant romp target.
7374 * TODO (GDB 5.1 - Cleanups): Update.
7375
91c1720e
KS
73762001-03-14 Keith Seitz <keiths@cygnus.com>
7377
7378 * linespec.c (decode_line_1): Skip argptr over a leading
7379 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
7380
3cc122b3
KB
73812001-03-14 Kevin Buettner <kevinb@redhat.com>
7382
7383 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
7384
5bb367b1
AC
73852001-03-13 Andrew Cagney <ac131313@redhat.com>
7386
7387 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
7388 * m3-nat.c: Ditto.
7389 * p-lang.h: Ditto.
7390 * printcmd.c (printf_command): Ditto.
7391 * ch-exp.c (match_integer_literal): Ditto.
7392 * scm-tags.h: Ditto.
7393 * ser-go32.c: Ditto.
7394 * hppa-tdep.c (unwind_command): Ditto.
7395 * defs.h (volatile): Delete macro definition. Assume __STDC__.
7396 * remote-adapt.c (volatile): Ditto.
7397 * remote-eb.c (volatile): Ditto.
7398 * remote-mm.c (volatile): Ditto.
7399 * defs.h (alloca): Assume __STDC__, declare returning void *.
7400
a728f042
AC
74012001-03-08 Andrew Cagney <ac131313@redhat.com>
7402
7403 * inferior.h (ARCH_NUM_REGS): Delete definition.
7404 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
7405 * regcache.c (registers_changed): Ditto.
7406 (registers_fetched): Ditto.
7407 * infptrace.c (fetch_inferior_registers): Ditto.
7408 (store_inferior_registers): Ditto.
7409 * infcmd.c (do_registers_info): Ditto.
7410 (registers_info): Ditto.
7411 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
7412 (old_store_inferior_registers): Ditto.
7413 * gdbserver/low-linux.c (register_addr): Ditto.
7414 * gdbserver/low-hppabsd.c (register_addr): Ditto.
7415 * core-aout.c: Don't include "inferior.h".
7416 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
7417 (register_addr): Ditto.
7418
f48ff60a
FN
74192001-03-13 Fernando Nasser <fnasser@redhat.com>
7420
7421 From Steven Johnson <sjohnson@neurizon.net>
7422 * cli/cli-script.c (define_command): Fix setting of post hooks.
7423
305d65ca
MK
74242001-03-13 Mark Kettenis <kettenis@gnu.org>
7425
7426 * i386-linux-tdep.c: Fix formatting and clarify comments.
7427 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
7428 where appropriate.
7429
bf62e5b4
AC
74302001-03-12 Andrew Cagney <ac131313@redhat.com>
7431
7432 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
7433 (proc_update_sc): Use gdb_assert instead of assert.
7434 (proc_abort): Ditto.
7435 (inf_set_step_thread): Ditto.
7436 (gnu_wait): Ditto.
7437 (S_exception_raise_request): Ditto.
7438 (gnu_terminal_init_inferior): Ditto.
7439
21479ded
KB
74402001-03-09 Kevin Buettner <kevinb@redhat.com>
7441
7442 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
7443 (solib-legacy.o): New makefile target.
7444 * solib-legacy.c: New file.
7445 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7446 (default_svr4_fetch_link_map_offsets): Delete.
7447 (set_solib_svr4_fetch_link_map_offsets): Declare.
7448 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
7449 * solib-svr4.c (elf/common.h): Include.
7450 (link.h): Only include for SunOS shared library support.
7451 (_SYSCALL32): Don't define.
7452 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
7453 (default_svr4_fetch_link_map_offsets): Made static; added forward
7454 declaration.
7455 (fetch_link_map_offsets): New static global.
7456 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
7457 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
7458 of what used to be in this function now reside in
7459 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
7460 (open_symbol_file_object): Fix declaration in SunOS section
7461 of the code.
7462 (set_solib_svr4_fetch_link_map_offsets): New extern function.
7463 (init_fetch_link_map_offsets): New static function.
7464 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
7465 under multiarch control.
7466
7467 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
7468 list.
7469 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
7470 * config/arm/linux.mt (TDEPFILES): Likewise.
7471 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7472 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
7473 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7474 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
7475 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
7476 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
7477 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7478 * config/i386/linux.mt (TDEPFILES): Likewise.
7479 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7480 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7481 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
7482 * config/i386/ptx4.mh (XDEPFILES): Likewise.
7483 * config/i386/sun386.mt (TDEPFILES): Likewise.
7484 * config/ia64/linux.mt (TDEPFILES): Likewise.
7485 * config/m68k/linux.mt (TDEPFILES): Likewise.
7486 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
7487 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7488 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
7489 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
7490 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
7491 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
7492 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7493 * config/powerpc/linux.mt (TDEPFILES): Likewise.
7494 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7495 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
7496 * config/sh/linux.mt (TDEPFILES): Likewise.
7497 * config/sparc/linux.mt (TDEPFILES): Likewise.
7498 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7499 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7500 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
7501 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
7502 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
7503
d7fa9de0
KB
75042001-03-09 Kevin Buettner <kevinb@redhat.com>
7505
7506 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
7507
f8241bd1
AC
75082001-03-09 Andrew Cagney <ac131313@redhat.com>
7509
7510 * MAINTAINERS (Write After Approval): Update Philip Blundell.
7511
e6b4b0c2
KS
75122001-03-09 Keith Seitz <keiths@cygnus.com>
7513
7514 * MAINTAINERS: Add myself to write after approval list.
7515
96836138
MK
75162001-03-09 Mark Kettenis <kettenis@gnu.org>
7517
7518 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
7519 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
7520
1b594327
AC
75212001-03-08 Andrew Cagney <ac131313@redhat.com>
7522
7523 * configure.host (m88*-harris-cxux*): Mark as obsolete.
7524 * configure.tgt: Ditto.
7525 * config/m88k/xm-cxux.h: Ditto.
7526 * config/m88k/tm-cxux.h: Ditto.
7527 * config/m88k/nm-cxux.h: Ditto.
7528 * config/m88k/cxux.mt: Ditto.
7529 * config/m88k/cxux.mh: Ditto.
7530
4a32a1e4
AC
75312001-03-08 Andrew Cagney <ac131313@redhat.com>
7532
7533 * Makefile.in: Delete rules for obsolete files.
7534
ec9a3449
DT
7535Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
7536
7537 * stack.c (parse_frame_specification): For one argument case,
7538 handle the situation where the argument is an integer, not an
7539 address -- arguably the most common case. This matters on
7540 targets where pointers and addresses are different.
7541
a50c34dc
AC
75422001-03-08 Andrew Cagney <ac131313@redhat.com>
7543
7544 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
7545 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
7546 general.
7547
cfc046cf
AC
75482001-03-07 Andrew Cagney <ac131313@redhat.com>
7549
7550 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
7551 with SID on Solaris 8.
7552
39424bef
MK
75532001-03-07 Mark Kettenis <kettenis@gnu.org>
7554
7555 * defs.h: Provide prototypes for floatformat_is_negative,
7556 floatformat_is_nan and floatformat_mantissa.
7557 * utils.c: Include "gdb_assert.h".
7558 (floatformat_is_negative): New function.
7559 (floatformat_is_nan): New function.
7560 (floatformat_mantissa): New function.
7561 * valprint.c: Include "floatformat.h".
7562 (print_floating): Get rid of the Linux-specific
7563 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
7564 help these new functions. Print NaN's in a format conforming to
7565 ISO C99.
7566
7a1bd56a
EZ
75672001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
7568
7569 * top.c (init_main): Make `set history file name' complete on file
7570 names.
7571
5565b556
C
75722001-03-06 J.T. Conklin <jtc@redback.com>
7573
21a12a30
C
7574 * Makefile.in (LINTFLAGS): Update to contain all of the macros
7575 which define include paths used when compiling.
7576
7577 * util.c (savestring, msavestring): Change type of length argument.
7578 * defs.h (savestring, msavestring): Update to match.
7579
5565b556
C
7580 * symtab.h (decode_line_1): Removed declaration.
7581
7582 * symfile.c (#include <assert.h>): Removed.
7583
7584 * arch-utils.c (#include <ctype.h>): Removed.
7585 * c-typeprint.c: Likewise.
7586 * dbxread.c: Likewise.
7587 * gdbtypes.c: Likewise.
7588 * target.c: Likewise.
7589 * os9kread.c: Likewise.
7590
7591 * c-valprint.c (#include "demangle.h"): Removed.
7592 * ch-typeprint.c: Likewise.
7593 * eval.c: Likewise.
7594 * f-typeprint.c: Likewise.
7595 * f-valprint.c: Likewise.
7596 * m2-typeprint.c: Likewise.
7597 * typeprint.c: Likewise.
7598 * p-typeprint.c: Likewise.
7599 * valarith.c: Likewise.
7600 * valprint.c: Likewise.
7601
7602 * m2-typeprint.c (#include "gdb_string.h"): Removed.
7603 * nlmread.c: Likewise.
7604
7605 * mdebugread.c (#include "gdb-stabs.h"): Removed.
7606 * minsyms.c: Likewise.
7607 * mipsread.c: Likewise.
7608 * nlmread.c: Likewise.
7609
7610 * m2-typeprint.c (#include "obstack.h"): Removed.
7611 * m2-valprint.c: Likewise.
7612
7613 * event-loop.c (#include <setjmp.h>): Removed.
7614
e8be95ae
SS
76152001-03-06 Stan Shebs <shebs@apple.com>
7616
7617 * MAINTAINERS: Remove self from specific maintenance domains
7618 (macos, gdbserver, documentation, testsuite).
7619
b6ba6518
KB
76202001-03-06 Kevin Buettner <kevinb@redhat.com>
7621
7622 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
7623 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
7624 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
7625 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
7626 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
7627 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
7628 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
7629 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
7630 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
7631 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
7632 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
7633 coff-solib.h, coffread.c, command.h, complaints.c,
7634 complaints.h, completer.c, completer.h,
7635 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
7636 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
7637 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
7638 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
7639 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
7640 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
7641 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
7642 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
7643 config/arm/nm-linux.h, config/arm/tm-arm.h,
7644 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
7645 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7646 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7647 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
7648 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
7649 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
7650 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
7651 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
7652 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
7653 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
7654 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
7655 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
7656 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
7657 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
7658 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
7659 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
7660 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
7661 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
7662 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
7663 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
7664 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
7665 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
7666 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
7667 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
7668 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
7669 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
7670 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
7671 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
7672 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
7673 config/i960/tm-i960.h, config/i960/tm-mon960.h,
7674 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
7675 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
7676 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
7677 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
7678 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
7679 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
7680 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
7681 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
7682 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
7683 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
7684 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
7685 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
7686 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
7687 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
7688 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
7689 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
7690 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
7691 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
7692 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
7693 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
7694 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
7695 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
7696 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
7697 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
7698 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
7699 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
7700 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
7701 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
7702 config/mips/nm-irix5.h, config/mips/nm-mips.h,
7703 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
7704 config/mips/tm-embed.h, config/mips/tm-embed64.h,
7705 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
7706 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
7707 config/mips/tm-mips.h, config/mips/tm-mips64.h,
7708 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
7709 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
7710 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
7711 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
7712 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
7713 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
7714 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
7715 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
7716 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
7717 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
7718 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
7719 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
7720 config/nm-sysv4.h, config/none/nm-none.h,
7721 config/none/tm-none.h, config/none/xm-none.h,
7722 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
7723 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
7724 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
7725 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
7726 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
7727 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
7728 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
7729 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
7730 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
7731 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
7732 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
7733 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
7734 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
7735 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
7736 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
7737 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
7738 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
7739 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
7740 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
7741 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
7742 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
7743 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
7744 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
7745 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
7746 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
7747 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7748 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7749 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
7750 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
7751 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
7752 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
7753 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
7754 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
7755 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
7756 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
7757 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
7758 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
7759 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
7760 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
7761 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
7762 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
7763 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
7764 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
7765 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
7766 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
7767 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
7768 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
7769 gdbserver/low-sim.c, gdbserver/low-sparc.c,
7770 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
7771 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
7772 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
7773 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
7774 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
7775 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
7776 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
7777 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
7778 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
7779 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
7780 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
7781 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
7782 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
7783 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
7784 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
7785 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
7786 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
7787 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
7788 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
7789 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
7790 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
7791 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
7792 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
7793 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
7794 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
7795 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
7796 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
7797 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
7798 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
7799 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
7800 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
7801 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
7802 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
7803 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
7804 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7805 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
7806 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
7807 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
7808 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
7809 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
7810 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
7811 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
7812 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
7813 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
7814 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
7815 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
7816 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
7817 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
7818 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
7819 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
7820 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
7821 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
7822 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
7823 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
7824 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
7825 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
7826 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
7827 notices.
7828
596c9d4b
KB
78292001-03-05 Kevin Buettner <kevinb@redhat.com>
7830
7831 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
7832 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
7833 macros.
7834 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
7835 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
7836 (sys/fault.h, sys/select.h): Test for presence of these
7837 header files.
7838 (ia64-*-aix*): Define NEW_PROC_API for this host.
7839 * configure: Regenerate.
7840 * config.in: Regenerate.
7841
7842 * configure.host (ia64-*-aix*): New host.
7843 * configure.tgt (ia64-*-aix*): New target.
8a5c92d3 7844
eccbb20d
AC
78452001-03-05 Andrew Cagney <ac131313@redhat.com>
7846
7847 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
7848
9ff2efe5
CF
7849Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
7850
7851 * wince.c: Change realloc to xrealloc throughout.
61e2d1f3 7852 (handle_load_dll): Use void * rather than PTR in argument.
9ff2efe5 7853
58841d58
AC
78542001-03-04 Andrew Cagney <ac131313@redhat.com>
7855
7856 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
7857 * ocd.c (ocd_xfer_memory): Ditto.
7858 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
7859 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
7860 buildable with ,-Werror.
7861
7862 * Makefile.in (symfile_h): Define.
7863 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
7864 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
7865 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
7866 ,-Werror.
7867
7868 * dsrec.c (make_srec): Fix internal_error fmt arg.
7869 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
7870
3cad1ac9
KB
78712001-03-03 Kevin Buettner <kevinb@redhat.com>
7872
7873 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
7874 as an lvalue.
7875
b9fa2e73
AC
78762001-03-02 Andrew Cagney <ac131313@redhat.com>
7877
130c39e6
AC
7878 * MAINTAINERS (paper trail): Update.
7879
b9fa2e73
AC
7880 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
7881
c53efe6e
AC
78822001-03-02 Andrew Cagney <ac131313@redhat.com>
7883
7884 From 2001-03-01 Tom Rix <trix@redhat.com>:
7885 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
7886 parameter to mn10200_analyze_prologue.
7887
7888 * config/mn10200/tm-mn10200.h: Include "regcache.h".
7889 * MAINTAINERS: Document that mn10200-elf target is buildable.
7890
52b5c2eb
KB
78912001-03-02 Kevin Buettner <kevinb@redhat.com>
7892
7893 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
7894 from here...
7895 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
7896 (MONTEREY): Don't define.
7897 (AIX5): Define.
7898
2edb46b1
MH
78992001-03-02 Matt Hiller <hiller@redhat.com>
7900
7901 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
7902
92c71a3e
KB
79032001-03-02 Kevin Buettner <kevinb@redhat.com>
7904
82a2886f 7905 * sparc-nat.c (sparc-nat.c): Don't include self.
92c71a3e 7906
e2a4c6c1
C
79072001-03-01 J.T. Conklin <jtc@redback.com>
7908
3a644c8d
C
7909 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
7910 if __CYGWIN32__ is set from here.
7911 * config/i386/xm-cygwin.h: To here.
7912 * config/powerpc/xm-cygwin.h: To here.
7913
e2a4c6c1
C
7914 * i386-stub.c (handle_exception): Use 'T' response packet.
7915
4b33390a
MS
79162001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7917
7918 * m32r-tdep.c: Fix cut and paste error in comment.
7919
79202001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7921
7922 * symtab.c (print_msymbol_info): Print addresses by portable method
7923 longest_local_hex_string_custom. Allow for 64-bit addresses.
7924
ba41d549
C
79252001-03-01 J.T. Conklin <jtc@redback.com>
7926
7927 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
7928 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
7929 (MIN_OF_TYPE): Likewise.
7930
7931 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
7932
088d891f
AC
79332001-03-01 Andrew Cagney <ac131313@redhat.com>
7934
7935 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
7936 * os9kread.c (os9k_process_one_symbol): Add assert to detect
7937 ``loses if sizeof (char *) > sizeof (int)''.
7938
38266776
AC
79392001-03-01 Andrew Cagney <ac131313@redhat.com>
7940
7941 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
7942
2ad43c4f
AC
79432001-03-01 Andrew Cagney <ac131313@redhat.com>
7944
7945 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
7946 lists.
7947 (mi-main.o): Ditto.
7948
367e21d8
AC
79492001-03-01 Andrew Cagney <ac131313@redhat.com>
7950
7951 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
7952 dependency lists.
7953
d85310f7
MS
79542001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7955
c0d8fd9a
MS
7956 * printcmd.c (print_address_numeric): Update comments to refer
7957 to sizeof addr, not sizeof pointer.
7958 (x_command): Remove needless whitespace (shorten long line).
7959
d85310f7
MS
7960 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
7961 (read_memory_nobpt): Ditto.
7962 (ep_is_catchpoint): Ditto.
7963 (ep_is_shlib_catchpoint): Ditto.
7964 (ep_is_exception_catchpoint): Ditto.
7965 (describe_other_breakpoints): Ditto.
7966
97900206
AC
7967Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
7968
7969 * regcache.h (register_valid): Fix comment documenting valid
7970 states.
7971
4e052eda
AC
7972Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
7973
7974 From Steven Johnson:
7975 * regcache.h: New file.
7976
7977 * value.h (read_register_bytes, read_register_gen)
7978 (write_register_gen, write_register_bytes)
7979 (read_register, read_register_pid)
7980 (read_signed_register, read_signed_register_pid)
7981 (write_register, write_register_pid)
7982 (register_cached, set_register_cached)
7983 (register_changed, register_buffer)
7984 (registers_changed, supply_register): Move declaration from here.
7985 * regcache.h: To here.
7986 * gdbcore.h (registers_fetched): Ditto.
7987 * inferior.h (registers, registers_valid): Ditto.
7988
7989 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
7990 generic_target_write_pc, write_pc_pid, write_pc,
7991 generic_target_read_sp, read_sp, generic_target_write_sp,
7992 write_sp, generic_target_read_fp, read_fp,
7993 generic_target_write_fp, write_fp): Add note that these functions
7994 will be moved from this file.
7995
7996 * a29k-tdep.c: Include "regcache.h".
7997 * a68v-nat.c: Ditto.
7998 * abug-rom.c: Ditto.
7999 * alpha-nat.c: Ditto.
8000 * alpha-tdep.c: Ditto.
8001 * alphabsd-nat.c: Ditto.
8002 * arc-tdep.c: Ditto.
8003 * arm-linux-nat.c: Ditto.
8004 * arm-linux-tdep.c: Ditto.
8005 * arm-tdep.c: Ditto.
8006 * blockframe.c: Ditto.
8007 * core-aout.c: Ditto.
8008 * core-sol2.c: Ditto.
8009 * corelow.c: Ditto.
8010 * cpu32bug-rom.c: Ditto.
8011 * cxux-nat.c: Ditto.
8012 * d10v-tdep.c: Ditto.
8013 * d30v-tdep.c: Ditto.
8014 * dbug-rom.c: Ditto.
8015 * dink32-rom.c: Ditto.
8016 * dve3900-rom.c: Ditto.
8017 * findvar.c: Ditto.
8018 * fr30-tdep.c: Ditto.
8019 * frame.c: Ditto.
8020 * go32-nat.c: Ditto.
8021 * h8300-tdep.c: Ditto.
8022 * h8500-tdep.c: Ditto.
8023 * hp300ux-nat.c: Ditto.
8024 * hppa-tdep.c: Ditto.
8025 * hppab-nat.c: Ditto.
8026 * hppah-nat.c: Ditto.
8027 * hppam3-nat.c: Ditto.
8028 * hpux-thread.c: Ditto.
8029 * i386-linux-nat.c: Ditto.
8030 * i386-linux-tdep.c: Ditto.
8031 * i386-tdep.c: Ditto.
8032 * i386aix-nat.c: Ditto.
8033 * i386b-nat.c: Ditto.
8034 * i386bsd-nat.c: Ditto.
8035 * i386gnu-nat.c: Ditto.
8036 * i386ly-tdep.c: Ditto.
8037 * i386m3-nat.c: Ditto.
8038 * i386mach-nat.c: Ditto.
8039 * i386nbsd-nat.c: Ditto.
8040 * i386v4-nat.c: Ditto.
8041 * i387-nat.c: Ditto.
8042 * i387-tdep.c: Ditto.
8043 * i960-tdep.c: Ditto.
8044 * ia64-aix-nat.c: Ditto.
8045 * ia64-linux-nat.c: Ditto.
8046 * ia64-tdep.c: Ditto.
8047 * infptrace.c: Ditto.
8048 * infrun.c: Ditto.
8049 * irix4-nat.c: Ditto.
8050 * irix5-nat.c: Ditto.
8051 * lin-lwp.c: Ditto.
8052 * lin-thread.c: Ditto.
8053 * lynx-nat.c: Ditto.
8054 * m3-nat.c: Ditto.
8055 * m32r-rom.c: Ditto.
8056 * m32r-tdep.c: Ditto.
8057 * m68hc11-tdep.c: Ditto.
8058 * m68k-tdep.c: Ditto.
8059 * m68klinux-nat.c: Ditto.
8060 * m68knbsd-nat.c: Ditto.
8061 * m68knbsd-tdep.c: Ditto.
8062 * m88k-nat.c: Ditto.
8063 * m88k-tdep.c: Ditto.
8064 * mac-nat.c: Ditto.
8065 * mcore-rom.c: Ditto.
8066 * mcore-tdep.c: Ditto.
8067 * mi/mi-main.c: Ditto.
8068 * mips-nat.c: Ditto.
8069 * mips-tdep.c: Ditto.
8070 * mipsm3-nat.c: Ditto.
8071 * mipsv4-nat.c: Ditto.
8072 * mn10200-tdep.c: Ditto.
8073 * mn10300-tdep.c: Ditto.
8074 * monitor.c: Ditto.
8075 * ns32km3-nat.c: Ditto.
8076 * ns32knbsd-nat.c: Ditto.
8077 * ocd.c: Ditto.
8078 * pa64solib.c: Ditto.
8079 * ppc-bdm.c: Ditto.
8080 * ppc-linux-nat.c: Ditto.
8081 * ppc-linux-tdep.c: Ditto.
8082 * ppcbug-rom.c: Ditto.
8083 * ppcnbsd-nat.c: Ditto.
8084 * ptx4-nat.c: Ditto.
8085 * regcache.c: Ditto.
8086 * remote-adapt.c: Ditto.
8087 * remote-array.c: Ditto.
8088 * remote-bug.c: Ditto.
8089 * remote-e7000.c: Ditto.
8090 * remote-eb.c: Ditto.
8091 * remote-es.c: Ditto.
8092 * remote-est.c: Ditto.
8093 * remote-hms.c: Ditto.
8094 * remote-mips.c: Ditto.
8095 * remote-mm.c: Ditto.
8096 * remote-nindy.c: Ditto.
8097 * remote-os9k.c: Ditto.
8098 * remote-rdi.c: Ditto.
8099 * remote-rdp.c: Ditto.
8100 * remote-sds.c: Ditto.
8101 * remote-sim.c: Ditto.
8102 * remote-st.c: Ditto.
8103 * remote-udi.c: Ditto.
8104 * remote-utils.c: Ditto.
8105 * remote-vx.c: Ditto.
8106 * remote-vx29k.c: Ditto.
8107 * remote-vx68.c: Ditto.
8108 * remote-vx960.c: Ditto.
8109 * remote-vxmips.c: Ditto.
8110 * remote-vxsparc.c: Ditto.
8111 * remote.c: Ditto.
8112 * rom68k-rom.c: Ditto.
8113 * rs6000-nat.c: Ditto.
8114 * rs6000-tdep.c: Ditto.
8115 * sh-tdep.c: Ditto.
8116 * sh3-rom.c: Ditto.
8117 * sol-thread.c: Ditto.
8118 * solib-svr4.c: Ditto.
8119 * somsolib.c: Ditto.
8120 * sparc-nat.c: Ditto.
8121 * sparc-tdep.c: Ditto.
8122 * sparcl-tdep.c: Ditto.
8123 * sparclet-rom.c: Ditto.
8124 * sun3-nat.c: Ditto.
8125 * sun386-nat.c: Ditto.
8126 * symm-nat.c: Ditto.
8127 * target.c: Ditto.
8128 * thread-db.c: Ditto.
8129 * thread.c: Ditto.
8130 * tic80-tdep.c: Ditto.
8131 * tracepoint.c: Ditto.
8132 * ultra3-nat.c: Ditto.
8133 * umax-xdep.c: Ditto.
8134 * uw-thread.c: Ditto.
8135 * v850-tdep.c: Ditto.
8136 * v850ice.c: Ditto.
8137 * valops.c: Ditto.
8138 * w65-tdep.c: Ditto.
8139 * w89k-rom.c: Ditto.
8140 * win32-nat.c: Ditto.
8141 * wince.c: Ditto.
8142 * z8k-tdep.c: Ditto.
8143
07d48ebc
MH
81442001-02-28 Matt Hiller <hiller@redhat.com>
8145
8146 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
8147
2edb46b1
MH
81482001-02-27 Matt Hiller <hiller@redhat.com>
8149
8150 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
8151 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
8152 mn10300_stab_reg_to_regnum.
8153
993f3aa5
DT
8154Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
8155
8156 * symtab.c (search_symbols): Fix off by one error in test for
8157 error.
8158
86168def
AC
81592001-02-23 Andrew Cagney <ac131313@redhat.com>
8160
8161 * config/sparc/sp64linux.mt: New file.
8162 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
8163 * configure.host: Recognize sparc64-*-linux* as a linux host.
8164
8165 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
8166 * config/sparc/tm-sp64linux.h: New file.
8167
e1e9e218
KB
81682001-02-24 Kevin Buettner <kevinb@redhat.com>
8169
8170 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
8171 with call to internal_error().
8172 * dbxread.c (process_one_symbol): Likewise.
8173 * exec.c (build_section_table, xfer_memory): Likewise.
8174 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
8175 Likewise.
8176 * hpread.c (hpread_type_translate, hpread_read_array_type)
8177 (hpread_type_lookup): Likewise.
8178 * i386-tdep.c (gdb_print_insn_i386): Likewise.
8179 * i960-tdep.c (mem): Likewise
8180 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
8181 * infptrace.c (child_resume): Likewise.
8182 * infttrace.c (_initialize_infttrace): Likewise.
8183 * language.c (binop_result_type, add_language): Likewise.
8184 * lynx-nat.c (store_inferior_registers): Likewise.
8185 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
8186 * mdebugread.c (parse_partial_symbols): Likewise.
8187 * monitor.c (monitor_printf_noecho, monitor_printf)
8188 (monitor_dump_regs): Likewise.
8189 * ocd.c (stu_put_packet): Likewise.
8190 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
8191 * remote-bug.c (bug_open): Likewise.
8192 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
8193 * remote-es.c (es1800_read_bytes): Likewise.
8194 * remote-mips.c (common_breakpoint): Likewise.
8195 * remote-rdp.c (send_rdp): Likewise.
8196 * remote-sds.c (putmessage): Likewise.
8197 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
8198 Likewise.
8199 * sparcl-tdep.c (sparclite_download): Likewise.
8200 * symtab.c (lookup_partial_symbol): Likewise.
8201 * target.c (push_target, pop_target, initialize_targets): Likewise.
8202 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
8203 Likewise.
8204 * valprint.c (print_decimal, print_longest, print_longest)
8205 (strcat_longest): Likewise.
8206 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
8207 * xmodem.c (xmodem_send_packet): Likewise.
8208 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
8209 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
8210 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
8211 (STORE_RETURN_VALUE): Likewise.
8212 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
8213 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
8214 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
8215 Likewise.
8216
17fceda3
AC
82172001-02-23 Andrew Cagney <ac131313@redhat.com>
8218
2126d5fb
AC
8219 * CONTRIBUTE: Document how to cite a problem report.
8220 * TODO: Note need to replace CONTRIBUTE with generated file.
8221
17fceda3
AC
8222 * CONTRIBUTE: Mention that patches do not need to include the
8223 generated files gdbarch.h and gdbarch.c.
8224
60edd51d
AC
82252001-02-21 Andrew Cagney <ac131313@redhat.com>
8226
8227 * value.h (get_saved_register): Move from here.
8228 * frame.h: To here.
8229
d7fa2ae2
KB
82302001-02-21 Kevin Buettner <kevinb@redhat.com>
8231
8232 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
8233 (in_solib_dynsym_resolve_code): Add declaration.
8234 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
8235 in_solib_dynsym_resolve_code() rather than
8236 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
8237 which caused this macro to only be defined when
8238 SVR4_SHARED_LIBS is defined.
8239 * solib.c (in_solib_dynsym_resolve_code): New function.
8240 * solist.h (struct target_so_ops): Add new member
8241 in_dynsym_resolve_code.
8242 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
8243 in_svr4_dynsym_resolve_code. Also, made static.
8244 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
8245 member in aix5_so_ops.
8246 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
8247 in_svr4_dynsym_resolve_code. Also, added second version
8248 of this function which will be used when SVR4_SHARED_LIBS
8249 is not defined.
8250 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
8251 member in svr4_so_ops.
8252
8253 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
8254 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
8255 config/ia64/xm-aix.h: New files.
8256 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
8257 (ia64_aix_sigcontext_register_address): New declaration.
aacc1edd 8258 (ia64_gdbarch_init): Provide for initialization of
d7fa2ae2
KB
8259 sigcontext_register_address member of struct tdep when
8260 on target is detected to be running AIX.
8261 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
8262 this list.
8263
fbad0893
KB
82642001-02-20 Kevin Buettner <kevinb@redhat.com>
8265
8266 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
8267 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
8268 for thread support instead of linux-thread.o and lin-thread.o.
8269 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
8270 ATTACH_LWP): Define to use the following lin-lwp.c functions...
8271 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
8272 lin_lwp_attach_lwp): Declare.
8273
1adad886
AC
82742001-02-20 Andrew Cagney <ac131313@redhat.com>
8275
8276 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
8277 formatting.
8278
0579d647
KB
82792001-02-20 Kevin Buettner <kevinb@redhat.com>
8280
8281 * solib-aix5.c (solib-svr4.h): Remove include.
8282 (solib_break_names): Delete names which aren't actually
8283 used by AIX5.
8284 (bkpt_names): Remove.
8285 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
8286 to STREQ() with equivalent calls to strcmp().
8287 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
8288 aix5_solib_create_inferior_hook): Revise comments.
8289 (enable_break): Remove old ``bkpt_names'' code.
8290
d65fe839
AC
82912001-02-19 Andrew Cagney <ac131313@redhat.com>
8292
8293 * Makefile.in (SFILES): Add frame.c .
8294 (COMMON_OBS): Add frame.o .
8295 (frame.o): New target.
8296
8297 * frame.c (find_saved_register):
8298 (default_get_saved_register):
8299 (get_saved_register):
8300 (read_relative_register_raw_bytes_for_frame):
8301 (read_relative_register_raw_bytes): Moved to here.
8302 * regcache.c: From here.
8303
60cf7a85
KB
83042001-02-20 Kevin Buettner <kevinb@redhat.com>
8305
8306 * solib-aix5.c: New file.
8307
291b7e04
MH
83082001-02-20 Martin M. Hunt <hunt@redhat.com>
8309
a43ad351
MH
8310 * solib.c (info_sharedlibrary_command): Don't assume pointers
8311 are the same size of long, call longest_local_hex_string_custom().
8312
58bc91c9
MH
8313 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
8314 extract_signed_integer() should be called instead of
8315 extract_address().
8316
83172001-02-20 Martin M. Hunt <hunt@redhat.com>
8318
291b7e04
MH
8319 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
8320
d02ee681
AC
83212001-02-19 Andrew Cagney <ac131313@redhat.com>
8322
8323 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
8324 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
8325 then floating point registers are 8 bytes.
8326
a858089e
MS
83272001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8328
8329 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
8330 accomodate 64-bit addresses.
8331
23cc649f
EZ
83322001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8333
8334 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
8335 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
8336 lookup_symbol, when trying to find a symbol with a mangled name,
8337 to avoid infinite recursion.
8338
0db23c95
AC
83392001-02-18 Andrew Cagney <ac131313@redhat.com>
8340
8341 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
8342
911413e6
JL
83432001-02-19 Jonathan Larmour <jlarmour@redhat.com>
8344
8345 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
8346 (save_prologue_cache): Ditto.
8347
8d1de4b7
EZ
83482001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8349
8350 From: innadadadavida@yahoo.com:
8351 * partial-stab.h (switch): Check that pst is not null
8352 before dereferencing it.
8353
3017564a
EZ
83542001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8355
8356 From Andrew Cagney <cagney@b1.cygnus.com>:
8357 * symfile.c (add_symbol_file_command): Always initialize
8358 my_cleanup using a NULL cleanup.
8359
fa58ee11
EZ
83602001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
8361
8362 * demangle.c (demangling_style_names): New variable.
8363 (_initialize_demangler): Fill demangling_style_names with the
8364 names of known demangling styles from libiberty_demanglers[]. Use
8365 add_set_enum_cmd instead of add_set_cmd, to get completion on
8366 demangling style names.
8367
8368 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
8369 file-name completion.
8370
8371 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
8372
8373 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
8374 `solib-absolute-prefix'.
8375
8376 * tracepoint.c (_initialize_tracepoint): Ditto for
8377 `save-tracepoints'.
8378
8379 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
8380
8381 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
8382 file-name completion.
8383
8384 * infcmd.c (_initialize_infcmd): Make the following commands use
8385 the file-name completer: `tty', `args', `path', `paths', and
8386 `run'.
8387
7830cf6f
EZ
83882001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
8389
89dea5aa
EZ
8390 * go32-nat.c: Include i387-nat.h.
8391 (fetch_register): New function, uses some of the guts of
8392 go32_fetch_registers and calls i387_supply_register.
8393 (go32_fetch_registers): Most of the code moved into
8394 fetch_register. Use i387_supply_fsave.
8395 (store_register): Use i387_fill_fsave instead of custom code.
8396 (go32_store_registers): Use i387_fill_fsave.
8397
8398 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
8399
8400 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
8401
7830cf6f
EZ
8402 * completer.c (gdb_completer_file_name_break_characters): Remove
8403 slash from file-name break characters.
8404 [__MSDOS__]: Special definition for DOS/Windows file names.
8405 (line_completion_function): When completing on file names, bump
8406 `p' to the first file-name constituent character of `word', before
8407 invoking the completer.
8408
f31e928c
MK
84092001-02-17 Mark Kettenis <kettenis@gnu.org>
8410
8411 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
8412 consistently for parameter names. Fix comments accordingly.
8413 (i387_supply_register): New function.
8414 (i387_supply_fsave): Implement using i387_supply_register.
8415 * i387-nat.h: Use regnum instead of regno consistently for
8416 parameter names. Fix comments accordingly.
8417 (i387_supply_register): New prototype.
8418
d696208f
MS
84192001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8420
8421 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
8422 instead of TARGET_PTR_BIT (to support Harvard architectures).
8423
971429b4
AC
84242001-02-16 Andrew Cagney <ac131313@redhat.com>
8425
8426 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
8427 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
8428 argument to parameter list and to call in order to conform to
8429 to_xfer_memory field of struct target_ops.
8430
9ca0e47c
MC
84312001-02-12 Michael Chastain <chastain@redhat.com>
8432
da7dd56f 8433 * somsolib.c (som_solib_add_solib_objfile): Do not use
9ca0e47c
MC
8434 section relocation feature of syms_from_objfile. Do my own
8435 section relocation, offsetting each section of the som by
8436 either text_addr - text_link_addr or data_start.
8437
7d65bd2d
AC
84382001-02-16 Andrew Cagney <ac131313@redhat.com>
8439
8440 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
8441
e33e9692
AC
84422001-02-16 Andrew Cagney <ac131313@redhat.com>
8443
8444 * MAINTAINERS (paper trail): Update.
8445
17dee195
MK
84462001-02-16 Mark Kettenis <kettenis@gnu.org>
8447
8448 * target.h (target_fetch_registers): Fix comment.
8449
0f6e1ba6
AC
84502001-02-15 Andrew Cagney <ac131313@redhat.com>
8451
8452 * f-exp.y: Include <ctype.h>.
8453 (parse_number): Ensure that ``i'' is always initialized.
8454
9a069618
JK
84552001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
8456
8457 * MAINTAINERS: Add myself to paper trail section.
8458
fc24370e
MS
84592001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8460
8461 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
8462 * configure, config.in: Regenerate.
8463 * corelow.c: Include <sys/file.h> if present.
8464
4b69c284
AC
84652001-02-14 Andrew Cagney <ac131313@redhat.com>
8466
8467 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
8468 declare when have SIGTTOU.
8469
7904f322
EZ
84702001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
8471
8472 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
8473
9e798668
JK
84742001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
8475
8476 * MAINTAINERS: Update my email address.
8477
65d5a54a
EZ
84782001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
8479
8480 * NEWS: Document that "info symbol" works with COFF debug info and
8481 its variants.
8482
8483 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
8484 symbols whose SYMBOL_BFD_SECTION is NULL.
8485
0cff82d9 84862001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
a8079a9b
PS
8487
8488 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
8489 * xcoffsolib.c (xcoff_solib_address): Renamed from
8490 pc_load_segment_name. Return NULL if address is not in a shared
8491 library. Cleanup shared library name construction, using xasprintf.
8492 Format shared library member names consistent with format in exec.c.
8493 (solib_info): Format shared library member names consistent with
8494 format in exec.c.
8495 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
8496 using xcoff_solib_address for PC_SOLIB definition.
8497 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
8498 needed.
8499
0cff82d9 85002001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4b2e4867
PS
8501
8502 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
8503 with xmalloc calls and cleanups.
8504
0cff82d9 85052001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
d737ece6
PS
8506
8507 * rs6000-nat.c (child_xfer_memory): Add missing parameter
8508 'struct mem_attrib *' required by 2001-01-23 change.
8509
c5bb1243
JK
85102001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
8511
8512 Updates to "make TAGS":
8513 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
8514 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
8515 tahoe-tdep.c.
8516 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
8517
c799ae7b
EZ
85182001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
8519
8520 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
8521
12685e01
AC
8522Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
8523
8524 From Dean Luick <luick@cray.com>:
8525 * defs.h (continuation): Remove unused global variable.
8526
7fcca85b
AC
8527Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
8528
8529 * configure.tgt: Remove references to convex, pyramid, altos and
8530 tahoe.
8531 * configure.host: Ditto.
8532 * MAINTAINERS: Ditto.
8533 * NEWS: Update.
8534
8535 * tahoe-tdep.c: Delete obsolete file.
8536 * pyr-xdep.c: Ditto.
8537 * pyr-tdep.c: Ditto.
8538 * convex-tdep.c: Ditto.
8539 * convex-xdep.c: Ditto.
8540 * config/tahoe/xm-tahoe.h: Ditto.
8541 * config/tahoe/tm-tahoe.h: Ditto.
8542 * config/tahoe/tahoe.mt: Ditto.
8543 * config/tahoe/tahoe.mh: Ditto.
8544 * config/pyr/xm-pyr.h: Ditto.
8545 * config/pyr/tm-pyr.h: Ditto.
8546 * config/pyr/pyramid.mt: Ditto.
8547 * config/pyr/pyramid.mh: Ditto.
8548 * config/m68k/xm-altos.h: Ditto.
8549 * config/m68k/tm-altos.h: Ditto.
8550 * config/m68k/altos.mt: Ditto.
8551 * config/m68k/altos.mh: Ditto.
8552 * config/convex/xm-convex.h: Ditto.
8553 * config/convex/tm-convex.h: Ditto.
8554 * config/convex/convex.mt: Ditto.
8555 * config/convex/convex.mh: Ditto.
8556 * config/convex/Convex.notes: Ditto.
8557 * config/arm/xm-arm.h: Ditto.
8558 * config/arm/nm-arm.h: Ditto.
8559 * config/arm/arm.mt: Ditto.
8560 * config/arm/arm.mh: Ditto.
8561 * arm-convert.s: Ditto.
8562 * arm-xdep.c: Ditto.
8563 * altos-xdep.c: Ditto.
8564
8e65ff28
AC
8565Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
8566
8567 * defs.h (internal_error, internal_verror): Add __FILE__ and
8568 __LINE__ parameter.
8569 * utils.c (internal_error, internal_verror): Update.
8570
8571 * v850-tdep.c: Update calls to internal_error.
8572 * utils.c: Ditto.
8573 * ui-out.c: Ditto.
8574 * ui-file.c: Ditto.
8575 * target.h: Ditto.
8576 * symtab.h: Ditto.
8577 * symm-nat.c: Ditto.
8578 * sparc-tdep.c: Ditto.
8579 * source.c: Ditto.
8580 * serial.c: Ditto.
8581 * rs6000-tdep.c: Ditto.
8582 * rs6000-nat.c: Ditto.
8583 * remote.c: Ditto.
8584 * remote-vx.c: Ditto.
8585 * remote-sim.c: Ditto.
8586 * remote-mips.c: Ditto.
8587 * regcache.c: Ditto.
8588 * objfiles.h: Ditto.
8589 * objfiles.c: Ditto.
8590 * mn10300-tdep.c: Ditto.
8591 * mips-tdep.c: Ditto.
8592 * maint.c: Ditto.
8593 * m68k-tdep.c: Ditto.
8594 * m3-nat.c: Ditto.
8595 * language.c: Ditto.
8596 * infptrace.c: Ditto.
8597 * inferior.h: Ditto.
8598 * infcmd.c: Ditto.
8599 * ia64-tdep.c: Ditto.
8600 * i386-tdep.c: Ditto.
8601 * i386-linux-nat.c: Ditto.
8602 * hppah-nat.c: Ditto.
8603 * go32-nat.c: Ditto.
8604 * findvar.c: Ditto.
8605 * f-lang.c: Ditto.
8606 * elfread.c: Ditto.
8607 * event-loop.c: Ditto.
8608 * dwarf2read.c: Ditto.
8609 * dsrec.c: Ditto.
8610 * d30v-tdep.c: Ditto.
8611 * d10v-tdep.c: Ditto.
8612 * cli/cli-setshow.c: Ditto.
8613 * cli/cli-script.c: Ditto.
8614 * ch-exp.c: Ditto.
8615 * breakpoint.c: Ditto.
8616 * ax-gdb.c: Ditto.
8617 * arch-utils.c: Ditto.
8618 * a29k-tdep.c: Ditto.
8619 * gdb_assert.h: Ditto.
8620 * gdbarch.sh: Ditto.
8621 * gdbarch.h, gdbarch.c: Re-generate.
8622
72290732
AC
86232001-02-07 Andrew Cagney <ac131313@redhat.com>
8624
8625 From Mark Kettenis <kettenis@gnu.org>:
8626 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
8627
a6da1910
AC
86282001-02-07 Andrew Cagney <ac131313@redhat.com>
8629
8630 * remote-sim.c (dump_mem): Cleanup printf format argument.
8631 * MAINTAINERS: Update, mn10300-elf now builds.
8632
153f9905
MK
86332001-02-07 Mark Kettenis <kettenis@gnu.org>
8634
8635 * event-top.c: Remove duplicate #include <signal.h>.
8636
f042532c
AC
86372001-02-06 Andrew Cagney <ac131313@redhat.com>
8638
8639 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
8640 allocated buffer.
8641 (save_inferior_pid): Restore the PID from that tempoary
8642 buffer. Delete the buffer.
8643 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
8644
58cfabe6
AC
86452001-02-06 Andrew Cagney <ac131313@redhat.com>
8646
8647 * MAINTAINERS: Add ``The Obvious Fix Rule''.
8648
ea8a41b8
AC
86492001-02-06 Andrew Cagney <ac131313@redhat.com>
8650
8651 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
8652
95160752
AC
86532001-02-06 Andrew Cagney <ac131313@cygnus.com>
8654
8655 * gdbarch.sh: Include "gdb_assert.h".
8656 (struct gdbarch): Change ``nr_data'' to unsigned.
8657 (alloc_gdbarch_data, free_gdbarch_data): New functions.
8658 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
8659 architecture vector.
8660 (struct gdbarch_data, struct gdbarch_data_registration): Move init
8661 method to gdbarch_data. Add free method, make index unsigned.
8662 (struct gdbarch_data_registry): Make nr unsigned.
8663 (register_gdbarch_data): Add free parameter. Store in
8664 gdbarch_data.
8665 (init_gdbarch_data): Use set_gdbarch_data.
8666 (set_gdbarch_data): New function.
8667
8668 * gdbarch.h, gdbarch.c: Re-generate.
8669
64122a8b
MS
86702001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8671
8672 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
8673 fprintf_filtered with correct arguments.
8674
e6cbd02a
MS
86752001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
8676 Submitted by Paul Hilfinger (hilfingr@gnat.com)
8677 and Andrei Petrov (and@genesyslab.com).
8678 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
8679 must be allocated dynamically, since these are no longer constants.
8680 * infcmd.c: Ditto.
8681 * regcache.c: Ditto.
8682 * remote.c: Ditto.
8683 * sol-thread.c: Ditto.
8684 * valops.c: Ditto.
8685 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
8686 work-around for a missing Sun header file in solaris for sparc64.
8687
713f0374
PB
86882001-02-04 Philip Blundell <philb@gnu.org>
8689
8690 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
8691 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
8692 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
8693 GET_THREAD_SIGNALS): Define.
8694 * arm-linux-nat.c (fill_gregset): Correct type of argument.
8695 (supply_gregset): Likewise.
8696 (fill_fpregset): Likewise.
8697 (supply_fpregset): Likewise.
8698
4603e466
DT
8699Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
8700
8701 * valops.c (value_cast): If casting a scalar to a pointer, do not
8702 issue a message about truncation unless it exceeds the length of
8703 an address, not the length of a pointer. This is because what the
8704 user gives us is an address, not a pointer, and we will ultimately
8705 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
8706 to a pointer. This allows things like "print *(int *)0x01000234"
8707 to work without generating a misleading message on a target having
8708 two byte pointers and four byte addresses.
8709
554cb486
CF
87102001-02-05 Christopher Faylor <cgf@cygnus.com>
8711
8712 * win32-nat.c: Change PTR to void * throughout.
8713
042be3a9
C
87142001-02-05 J.T. Conklin <jtc@redback.com>
8715
8716 * signals.h: Removed.
8717 * event-top.c (#include <signal.h>): Changed from signals.h.
8718 * inflow.c: Likewise.
8719 * mac-xdep.c: Likewise.
8720 * ser-pipe.c: Likewise.
8721 * ser-tcp.c: Likewise.
8722 * standalone.c: Likewise.
8723 * top.c: Likewise.
8724 * utils.c: Likewise.
8725 * Makefile.in: Removed signals.h from dependencies.
8726
a4acd088
CF
87272001-02-05 Christopher Faylor <cgf@cygnus.com>
8728
8729 Change suggested by Dean Luick <luick@cray.com>
8730 * inferior.h (step_over_calls_kind): Remove trailing comma from
8731 last enum element.
8732 (step_over_calls): Declare as extern rather than global.
8733
3116c80a
EZ
87342001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8735
8736 * sh-tdep.c: Update copyright.
8737 (sh_extract_return_value): Rewrite.
8738 (sh3e_sh4_extract_return_value): New function.
8739 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
8740 version of the function for sh3e and sh4 CPUs.
8741
240be855
MC
87422001-02-05 Michael Chastain <chastain@redhat.com>
8743
8744 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
8745 to conform with interface change.
8746
a17b5c4e
EZ
87472001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
8748
32fe0950
EZ
8749 * config/djgpp/fnchange.lst: Tweak to make consistent with the
8750 new files.
8751
619cbaf7
EZ
8752 * config/djgpp/djconfig.sh: Use explicit absolute file name when
8753 invoking `find'.
8754
cd42d3a8
EZ
8755 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
8756 UART_FIFO_WORKS is defined. Otherwise use outportb.
8757 From Francisco Pastor <fpastor.etra-id@etra.es>
8758
a17b5c4e
EZ
8759 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
8760 with target.h's `to_xfer_memory' member.
8761
86ddecc5
C
87622001-02-02 J.T. Conklin <jtc@redback.com>
8763
8764 * ppc-bdm.c (#include <signal.h>): Removed.
8765 * remote-array.c: Likewise.
8766 * remote-bug.c: Likewise.
8767 * remote-e7000.c: Likewise.
8768 * remote-mips.c: Likewise.
8769 * remote-os9k.c: Likewise.
8770 * remote-st.c: Likewise.
8771 * remote-udi.c: Likewise.
8772 * remote-vx29k.c: Likewise.
8773 * remote-vx68.c: Likewise.
8774 * remote-vx960.c: Likewise.
8775 * remote-vxmips.c: Likewise.
8776 * remote-vxsparc.c: Likewise.
8777
338d7c5c
JM
87782001-02-02 John Moore <jmoore@redhat.com>
8779
8780 * remote-utils.h (sr_set_device): Changed free() to xfree() where
8781 appropriate. Also changed Copyright to include 2001.
8782 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
8783 * value.h (value_free): Likewise.
8784 * gdbarch.sh (gdbarch_free): Likewise.
8785 * gdbarch.c, gdbarch.h: Regenerated.
8786
2b5436af
JM
87872001-02-02 John Moore <jmoore@redhat.com>
8788
8789 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
338d7c5c 8790 xfree(). Also changed Copyright to include 2001.
2b5436af 8791
82467003
C
87922001-02-02 J.T. Conklin <jtc@redback.com>
8793
8794 * monitor.c (#include "gdb_wait.h"): Removed.
8795 * ocd.c: Likewise.
8796 * ppc-bdm.c: Likewise.
8797 * remote-adapt.c: Likewise.
8798 * remote-array.c: Likewise.
8799 * remote-bug.c: Likewise.
8800 * remote-e7000.c: Likewise.
8801 * remote-eb.c: Likewise.
8802 * remote-es.c: Likewise.
8803 * remote-mips.c: Likewise.
8804 * remote-mm.c: Likewise.
8805 * remote-nindy.c: Likewise.
8806 * remote-os9k.c: Likewise.
8807 * remote-rdi.c: Likewise.
8808 * remote-rdp.c: Likewise.
8809 * remote-sds.c: Likewise.
8810 * remote-sim.c: Likewise.
8811 * remote-st.c: Likewise.
8812 * remote-udi.c: Likewise.
8813 * remote-vx.c: Likewise.
8814 * remote-vx29k.c: Likewise.
8815 * remote-vx68.c: Likewise.
8816 * remote-vx960.c: Likewise.
8817 * remote-vxmips.c: Likewise.
8818 * remote-vxsparc.c: Likewise.
8819 * remote.c: Likewise.
8820 * ser-pipe.c: Likewise.
8821 * ser-unix.c: Likewise.
8822 * Makefile.in: Updated dependencies.
8823
27b82ed2
DS
88242001-01-31 David Smith <dsmith@redhat.com>
8825
8826 * event-loop.c: Change inclusion of string.h to gdb_string.h and
8827 updated the copyright notice.
8828 * ser-pipe.c: Ditto.
8829 * mi/mi-cmds.c: Ditto.
8830 * mi/mi-console.c: Ditto.
8831 * mi/mi-getopt.c: Ditto.
8832 * mi/mi-parse.c: Ditto.
8833
ab9cc815
DS
88342001-01-31 David Smith <dsmith@redhat.com>
8835
8836 * MAINTAINERS: Add David Smith to Write After Approval list.
8837
d1f4cff8
AC
8838Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
8839
8840 * cli/cli-utils.c (putchar_filtered): Move function from here.
8841 * utils.c (putchar_filtered): To here.
8842 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
8843 * defs.h (putchar_filtered): To here.
8844
74c1b268
AC
8845Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
8846
8847 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
8848 AC_FUNC_VFORK macro.
8849 * config.in, configure: Re-generate.
8850
8851 * gdb_vfork.h: New file.
8852 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
8853 * fork-child.c (fork_inferior): Ditto.
8854
4fcf66da
AC
8855Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
8856
8857 * defs.h (strsave): Delete declaration.
8858 * utils.c (strsave): Delete definition.
8859 * TODO (strsave): Update
8860
8861 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
8862 * sparcl-tdep.c (sparclite_open): Ditto.
8863 * mips-tdep.c (mips_set_processor_type_command): Ditto.
8864 (_initialize_mips_tdep): Ditto.
8865 * solib.c (solib_open): Ditto.
8866 * symfile.c (add_filename_language): Ditto.
8867 (set_ext_lang_command): Ditto.
8868 * source.c (init_source_path): Ditto.
8869 (mod_path): Ditto.
8870 * sh3-rom.c (sh3_open): Ditto.
8871 (sh3e_open): Ditto.
8872 * serial.c (serial_open): Ditto.
8873 * remote-mips.c (common_open): Ditto.
8874 * monitor.c (monitor_open): Ditto.
8875 * m32r-rom.c (m32r_upload_command): Ditto.
8876 * infcmd.c (path_command): Ditto.
8877 * f-exp.y (parse_number): Ditto.
8878 * breakpoint.c (create_longjmp_breakpoint): Ditto.
8879 (create_thread_event_breakpoint): Ditto.
8880 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
8881 (_initialize_arc_tdep): Ditto.
8882
e191e0ab
AC
8883Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
8884
8885 * cli/cli-script.c (define_command): Check for a bad hook value in
8886 switch statement.
8887
10214f55
C
88882001-01-30 J.T. Conklin <jtc@redback.com>
8889
8890 * configure/sh/embed.mt: New file.
8891 * configure/sh/linux.mt: New file.
8892 * configure/sh/sh.mt: Removed.
8893 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
8894 (sh-*-*): Removed.
8895
c9049fc9
MC
88962001-01-29 Michael Chastain <chastain@redhat.com>
8897
a4f30b31 8898 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
c9049fc9
MC
8899 symbol comparisons in binary search.
8900
0cff82d9 89012001-01-27 Christopher Faylor <cgf@cygnus.com>
aea02b6b
CF
8902
8903 * win32-nat.c (child_xfer_memory): Add missing argument required by
8904 2001-01-23 change.
8905
e6e0bfab
MK
89062001-01-27 Mark Kettenis <kettenis@gnu.org>
8907
8908 * ui-out.c (do_list_end): New function.
8909 (make_cleanup_ui_out_list_end): New function.
8910 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
8911 * stack.c (print_frame) [UI_OUT]: Call
8912 make_cleanup_ui_out_list_end to make sure we mark the end of the
8913 list if we do a non-local exit. At the end of the function,
8914 instead of calling ui_out_list_end directly, let do_cleanups
8915 handle it.
8916
1adeb98a
FN
89172001-01-26 Fernando Nasser <fnasser@redhat.com>
8918
8919 Fix double parsing of filenames passed as command line arguments
8920 to GDB (causes weird handling of escape characters).
8921 Also, remove dependencies on the CLI from libgdb.
8922 * call-cmds.h: Remove declaration of exec_file_command().
8923 * gdbcore.h: Remove declaration of exec_file_command().
8924 Add declarations for exec_open() and exec_file_clear().
8925 * symfile.h: Add declarations for symbol_file_add_main() and
8926 symbol_file_clear().
8927 * exec.c (exec_open): New function. Implements to_open for exec
8928 targets.
8929 (exec_file_clear): New function. Makes GDB forget about a previously
8930 specified executable file.
8931 (exec_file_attach): Move parsing of arguments from here ...
8932 (exec_file_command): ... to here.
8933 (init_exec_ops): Use exec_open(), not exec_file_command() to
8934 implement to_open for exec targets.
8935 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
8936 with default values. Used when the file name has already been parsed.
8937 (symbol_file_clear): New function. Makes GDB forget about previously
8938 read symbols.
8939 (symbol_file_command): Call the above function instead of inline code.
8940 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
8941 "call-cmds.h".
8942 (captured_main): Call exec_file_attach() and symbol_file_add_main()
8943 instead of exec_file_command() and symbol_file_command().
8944 (captured_main): Add comment.
8945 * corefile.c: Include "symfile.h".
8946 (core_file_command): Call symbol_file_add_main() instead of
8947 symbol_file_command().
8948 (reopen_exec_file): Call exec_open() instead of exec_file_command().
8949 * infcmd.c: Include "symfile.h".
8950 (attach_command): Call symbol_file_add_main() instead of
8951 symbol_file_command().
8952 * infrun.c: Remove comment about the inclusion of "symfile.h",
8953 not any longer appropriate.
8954 (follow_exec): Call symbol_file_add_main() instead of
8955 symbol_file_command().
8956 * remote-es.c: Include "symfile.h".
8957 (es1800_load): Call symbol_file_add_main() instead of
8958 symbol_file_command().
8959 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
8960 not any longer appropriate.
8961 (vx-wait): Call symbol_file_add_main() instead of
8962 symbol_file_command().
8963 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
8964 instead of symbol_file_command().
8965 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
8966 symbol_file_add_main() instead of exec_file_command() and
8967 symbol_file_command().
8968 * Makefile.in: Update dependencies.
8969
5b616ba1
JH
89702001-01-26 Jeff Holcomb <jeffh@redhat.com>
8971
8972 * remote-udi.c (udi_open): Change strdup to xstrdup.
8973 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
8974 Update copyright message.
8975 * varobj.c (delete_variable_1): Likewise.
8976
8977 * gdb_string.h: Remove declaration of strdup. Update copyright
8978 message.
8979 * config/xm-mpw.h: Likewise.
8980 * config/i386/xm-i386mach.h: Likewise.
8981 * config/m68k/xm-apollo68b.h: Likewise.
8982 * config/m68k/xm-hp300bsd.h: Likewise.
8983 * config/rs6000/xm-rs6000.h: Likewise.
8984 * config/vax/xm-vaxult.h: Remove declaration of strdup.
8985 * config/vax/xm-vaxult2.h: Likewise.
8986
b91d87cf
JH
89872001-01-26 Jeff Holcomb <jeffh@redhat.com>
8988
8989 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
8990
873406a6
C
89912001-01-25 J.T. Conklin <jtc@redback.com>
8992
8993 * target.c (target_xfer_memory_partial): Return -1 on failure due
8994 to invalid access mode attribute.
8995
0613c401
CF
89962001-01-25 Christopher Faylor <cgf@cygnus.com>
8997
8998 * win32-nat.c (_initialize_core_win32): Prototype correctly.
8999
efd59e3f
MK
90002001-01-25 Mark Kettenis <kettenis@gnu.org>
9001
9002 * config/alpha/tm-fbsd.h: Update copyright.
9003 (USE_STRUCT_CONVENTION): Define in terms of
9004 alphabsd_use_struct_convention.
9005 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
9006 * alphafbsd-tdep.c: New file.
9007
388e1ff2
FN
90082001-01-24 Fernando Nasser <fnasser@redhat.com>
9009
9010 * top.c (print_gdb_version): Update Copyright year.
9011
f4d650ec
C
90122001-01-24 J.T. Conklin <jtc@redback.com>
9013
9014 * dcache.c (dcache_write_line): Fix typo.
9015
9016 * memattr.c (delete_mem_region): Replace free() with xfree().
9017 (mem_number): Add explicit type.
9018
9019 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
9020 (rw_common): Likewise.
9021
07091751
FN
90222001-01-24 Fernando Nasser <fnasser@redhat.com>
9023
9024 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
9025 for the inferior program arguments.
9026 (run_command, run_no_args_command, init_infcmd)): Use accessor
9027 functions to set the inferior program arguments.
9028 * inferior.h: Add definitions to the accessor functions above.
9029
090c42a4
JB
90302001-01-23 Jim Blandy <jimb@redhat.com>
9031
9032 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
9033 Implement these correctly, using make_cv_type.
9034
f29d9b6d 90352001-01-23 J.T. Conklin <jtc@redback.com>
29e57380
C
9036
9037 * exec.c (xfer_memory): Add attrib argument.
9038 * infptrace.c (child_xfer_memory): Likewise.
e5da8f38 9039 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
29e57380
C
9040 * monitor.c (monitor_xfer_memory): Likewise.
9041 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
9042 * remote-array.c (array_xfer_memory): Likewise.
9043 * remote-bug.c (bug_xfer_memory): Likewise.
9044 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
9045 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
9046 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
9047 * remote-mips.c (mips_xfer_memory): Likewise.
9048 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
9049 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
9050 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
9051 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
9052 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
9053 * remote-sds.c (sds_xfer_memory): Likewise.
9054 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
9055 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
9056 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
9057 * remote-vx.c (vx_xfer_memory): Likewise.
9058 * remote.c (remote_xfer_memory): Likewise.
9059 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
9060 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
e5da8f38 9061 * thread-db.c (thread_db_xfer_memory): Likewise.
29e57380
C
9062
9063 * target.h (#include "memattr.h"): Added.
9064 (target_ops.to_xfer_memory): Add attrib argument.
9065
9066 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
9067 * dcache.h (set_dcache_state): Removed declaration.
9068 * dcache.c (set_dcache_state): Removed definition
9069
9070 * dcache.c: Update module comment, as dcache is now enabled and
9071 disabled with memory region attributes instead of by the global
9072 variable "remotecache". Add comment describing the interaction
9073 between dcache and memory region attributes.
9074 (dcache_xfer_memory): Add comment describing benefits of moving
9075 cache writeback to a higher level.
9076 (dcache_struct): Removed cache_has_stuff field. This was used to
9077 record whether the cache had been accessed in order to invalidate
9078 it when it was disabled. However, this is not needed because the
9079 cache is write through and the code that enables, disables, and
9080 deletes memory regions invalidate the cache. Add comment which
9081 suggests that we could be more selective and only invalidate those
9082 cache lines containing data from those memory regions.
9083 (dcache_invalidate): Updated.
9084 (dcache_xfer_memory): Updated.
f29d9b6d 9085
29e57380
C
9086 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
9087 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
9088 perform a uncached transfer if dcache_enabled_p was clear. This
9089 function is now only called if caching is enabled for the memory
9090 region.
9091 (dcache_info): Always print cache info.
9092
9093 * target.c (do_xfer_memory): Add attrib argument.
9094 (target_xfer_memory, target_xfer_memory_partial): Break transfer
9095 into chunks defined by memory regions, pass region attributes to
9096 do_xfer_memory().
9097 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
9098
9099 * Makefile.in (SFILES): Add memattr.c.
9100 (COMMON_OBS): Add memattr.o.
9101 (dcache.o): Add target.h to dependencies.
9102 * memattr.c: New file.
9103 * memattr.h: Likewise.
9104
f29d9b6d
C
9105 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
9106 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
9107 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
9108 * gdbserver/low-sim.c (#include "defs.h"): Removed.
9109 (mygeneric_load): Rename from generic_load.
9110
9111 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
9112 (#include "defs.h"): Removed.
9113 (inferior_pid, perror_with_name): Remove declarations.
9114 * gdbserver/low-linux.c: Likewise.
9115 * gdbserver/low-nbsd.c: Likewise.
9116 * gdbserver/low-sparc.c: Likewise.
9117 * gdbserver/low-sun3.c: Likewise.
9118
9119 * i386-stub.c: Re-indent.
9120 * m68k-stub.c: Re-indent.
9121
58d5518e
ND
91222001-01-22 Nicholas Duffek <nsd@redhat.com>
9123
9124 * gdbarch.sh (PARM_BOUNDARY): Define.
9125 * gdbarch.c: Regenerate.
9126 * gdbarch.h: Regenerate.
9127
f6427ade
C
91282001-01-22 J.T. Conklin <jtc@redback.com>
9129
9130 * ns32k-tdep.c: #include "frame.h"
9131 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
9132 appears to have been inadvertantly removed sometime in May 1999.
9133
9134 * Revert 2000-11-09 changes where shared library objects were
9135 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
9136 we'd like to be able to debug dynamically linked executables,
9137 this makes it impossible to build a cross debugger on a many
9138 hosts.
9139
9140 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
9141 * config/i386/nbsdelf.mt: Likewise.
9142 * config/m68k/nbsd.mt: Likewise.
9143 * config/ns32k/nbsd.mt: Likewise.
9144 * config/powerpc/nbsd.mt: Likewise.
9145 * config/sparc/nbsd.mt: Likewise.
9146 * config/sparc/nbsdelf.mt: Likewise.
9147 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
9148 * config/i386/nbsdelf.mh: Likewise.
9149 * config/m68k/nbsd.mh: Likewise.
9150 * config/ns32k/nbsd.mh: Likewise.
9151 * config/powerpc/nbsd.mh: Likewise.
9152 * config/sparc/nbsd.mh: Likewise.
9153
8052a17a
JM
91542001-01-19 Jason Merrill <jason@redhat.com>
9155
9156 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
9157 (process_one_symbol): Likewise.
9158 * dwarfread.c (handle_producer): Likewise.
9159
21a6f6bb
AC
9160Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
9161
9162 * configure.in (build_warnings): Disable -Wuninitialized until GDB
9163 compiles with -Wuninitialized,-Werror.
9164 * configure: Regenerate.
9165
9166 * MAINTAINERS: Add list of buildable targets.
9167
494b7ec9
AC
9168Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
9169
9170 * defs.h (STRCMP): Delete macro.
9171
9172 * objfiles.c (objfile_relocate): Replace STRCMP with call to
9173 strcmp.
9174 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9175 * symfile.c (compare_symbols): Ditto.
9176 * standalone.c (open): Ditto.
9177 * remote-es.c (verify_break): Ditto.
9178 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
9179
9180 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
9181
8038e1e2
AC
9182Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
9183
9184 * varobj.c (FREEIF): Delete macro.
9185 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
9186 call.
9187
ea8d0b28
NC
91882001-01-18 Nick Clifton <nickc@redhat.com>
9189
9190 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
9191 (arc_print_insn): No bfd available, so pass NULL to
9192 arc_get_disassembler.
9193
5dbd9048
JB
91942001-01-09 James Ingham <jingham@inghji.apple.com>
9195
9196 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
9197 a mangled symbol rather than recursing into lookup_symbol, since
9198 this will just re-unmangle the name & call lookup_symbol_aux -
9199 leading to an infinite recursion.
9200
28ae27b1
MK
92012001-01-18 Mark Kettenis <kettenis@gnu.org>
9202
9203 * infcmd.c (print_return_value): Restore another space lost by
9204 switch to UIOUT. ``$NN='' should be ``$NN =''.
9205
6ab3a9c9
AC
9206Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9207
9208 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
9209 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
9210 definition in parenthesis.
9211
ad6525fc
AC
9212Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9213
9214 From 2000-10-27 Mark Salter <msalter@redhat.com>:
9215 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
9216 packet.
9217 (remote_insert_hw_breakpoint): Ditto.
9218
6259c7e2
C
92192001-01-17 J.T. Conklin <jtc@redback.com>
9220
9221 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9c95b27f 9222 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
6259c7e2
C
9223 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
9224 * m68knbsd-tdep.c: New file.
9225
9226 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
9227
9228 * m68knbsd-nat.c: #include gdbcore.h.
9229
abdcb2a5
AC
9230Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
9231
9232 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
9233
e7a8479f
MS
92342001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
9235
aaeb7efa
MS
9236 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
9237 goes away -- just return false (ie. not stopped by watchpoint).
e7a8479f
MS
9238 * source.c (openp): Fix typo in comment.
9239
7036d6ce
ND
92402001-01-12 Nicholas Duffek <nsd@redhat.com>
9241
9242 * blockframe.c (generic_get_saved_register): Spelling fix.
9243 * frame.h (FRAME_FP): Spelling fix.
9244
9549d9c1
AC
9245Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
9246
9247 * infcmd.c (print_return_value): Restore space lost by switch to
9248 UIOUT. ``$NN='' should be ``$NN =''.
9249
7302a204
ND
92502001-01-08 Nicholas Duffek <nsd@redhat.com>
9251
9252 * regcache.c (set_register_cached, register_buffer,
9253 real_register, pseudo_register fetch_register, store_register):
9254 New functions.
9255 (register_changed, read_relative_register_raw_bytes_for_frame,
9256 registers_changed, registers_fetched, read_register_bytes,
9257 read_register_gen, write_register_gen, read_register,
9258 read_signed_register, write_register, supply_register): Replace
9259 register_valid[] with register_cached() and
9260 set_register_cached().
9261 (read_register_bytes, read_register_gen, write_register_gen,
9262 read_register, read_signed_register, write_register,
9263 supply_register): Replace registers[] with register_buffer().
9264 (read_register_bytes, read_register_gen, read_register,
9265 read_signed_register): Call fetch_register().
9266 (write_register_gen, write_register): Call real_register() and
9267 store_register().
9268 (write_register_bytes): Call store_register().
9269 * value.h (set_register_cached, register_buffer): Prototype.
9270 * remote.c (remote_fetch_registers): Allocate regs[] with a
9271 run-time size. Replace register_valid[] with
9272 set_register_cached().
9273 (store_register_using_P, remote_store_registers): Replace
9274 registers[] with register_buffer().
9275
5ebd2499
ND
92762001-01-08 Nicholas Duffek <nsd@redhat.com>
9277
9278 * regcache.c: Change "write-back" comment to "write-through".
9279 Change "regno" to "regnum".
9280 (read_register, read_signed_register): Remove "raw" from return
9281 value description.
9282 (supply_register): Spelling fix.
9283 * value.h: Change "regno" to "regnum".
9284
1302fd5e
FN
92852001-01-08 Fernando Nasser <fnasser@redhat.com>
9286
9287 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
9288 to be installed.
9289
9dcb560c
MS
92902001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
9291
9292 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
9293
0e2fb98e
ND
92942001-01-04 Nicholas Duffek <nsd@redhat.com>
9295
9296 * valops.c (VALUE_SUBSTRING_START): Delete.
9297
12cf3f1b
ND
92982001-01-04 Nicholas Duffek <nsd@redhat.com>
9299
9300 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
9301 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
9302 (cli_utils_h): New variable.
9303 (cli/cli-utils.o): New rule.
9304 * cli/cli-utils.c: New file.
9305 * cli/cli-utils.h: New file.
9306
cc533b9d
ND
93072001-01-04 Nicholas Duffek <nsd@redhat.com>
9308
9309 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
9310 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
9311
ad2a4d09
C
93122001-01-03 J.T. Conklin <jtc@redback.com>
9313
9314 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
9315 comment.
9316
8140e7ac
MS
93172001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
9318
3116c80a
EZ
9319 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
9320 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
d19b71be 9321 non-float types.
779e876b 9322 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
72e22353
MS
9323 Update copyright notice.
9324
15f33b66 9325For older changes see ChangeLog-2000
c906108c
SS
9326\f
9327Local Variables:
9328mode: change-log
9329left-margin: 8
9330fill-column: 74
9331version-control: never
9332End:
This page took 0.738737 seconds and 4 git commands to generate.