1 2001-12-09 Andrew Cagney <ac131313@redhat.com>
3 * arch-utils.c (generic_register_raw_size): New function.
4 * gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as
6 * gdbarch.c: Regenerate.
7 * arch-utils.h (generic_register_raw_size): Declare.
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.
13 2001-12-08 Fred Fish <fnf@redhat.com>
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.
19 2001-12-09 Fred Fish <fnf@redhat.com>
21 * mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
22 rather than setting it after the type is created.
24 2001-12-09 Elena Zannoni <ezannoni@redhat.com>
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
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,
45 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
48 2001-12-08 Fred Fish <fnf@redhat.com>
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
54 2001-12-08 Fred Fish <fnf@redhat.com>
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.
60 2001-12-08 Fred Fish <fnf@redhat.com>
62 * dwarf2read.c (read_base_type): Rename is_unsigned to type_flags.
63 For unsigned types set TYPE_FLAG_UNSIGNED and pass it to
66 2001-12-08 Daniel Jacobowitz <drow@mvista.com>
68 * Makefile.in (cp-valprint.o): Add dependency on $(cp_abi_h).
70 2001-12-08 Jim Blandy <jimb@redhat.com>
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.
75 2001-12-07 Andrew Cagney <ac131313@redhat.com>
78 * README: Move known problems to PROBLEMS file.
80 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
82 * stabsread.c (read_member_functions): Skip member functions which
83 are duplicates of the callable constructor/destructor.
85 2001-12-07 Jim Blandy <jimb@redhat.com>
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.
91 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
93 * valops.c (hand_function_call): Check for method arguments in
94 TYPE_ARG_TYPES(), not in TYPE_FIELD ().
96 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
98 * cp-valprint.c (cp_print_value): Preserve offset if
99 the virtual base is outside of this object.
101 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
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
107 * gdbtypes.h (finish_cv_type): Add prototype.
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.
114 2001-12-07 Jim Blandy <jimb@redhat.com>
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'.
120 2001-12-07 Martin M. Hunt <hunt@redhat.com>
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.
127 2001-12-07 Andrew Cagney <ac131313@redhat.com>
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
140 2001-12-06 Andrew Cagney <ac131313@redhat.com>
142 * regcache.c (XCALLOC): Delete macro that should not have been
145 2001-12-07 Jiri Smid <smid@suse.cz>
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
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.
164 2001-12-06 Andrew Cagney <ac131313@redhat.com>
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
173 2001-12-06 Andrew Cagney <ac131313@redhat.com>
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
182 (build_regcache): Make space for pseudo-registers when computing
183 sizeof_registers. Initialize register_offset.
185 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Change to a function with
187 (STORE_PSEUDO_REGISTER): Ditto.
188 * gdbarch.h, gdbarch.c: Re-generate.
190 2001-12-06 Jim Blandy <jimb@redhat.com>
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.
196 2001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
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.
202 2001-12-05 Andrew Cagney <cagney@redhat.com>
204 * target.c (cleanup_target): Do not initialize to_query to
207 2001-12-05 Jim Blandy <jimb@redhat.com>
209 * s390-tdep.c (s390_get_frame_info): Recognize argument register
210 spills that use the `stm' instruction.
211 (is_arg_reg): New function.
213 2001-12-03 Keith Walker <keith.walker@arm.com>
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.
221 2001-12-04 Corinna Vinschen <vinschen@redhat.com>
223 * arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning
224 the prologue if source is assembler.
226 2001-12-04 Jackie Smith Cashion <jsmith@redhat.com>
228 * MAINTAINERS (write-after-approval): Add self.
230 * d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.
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.
238 2001-12-04 Jim Blandy <jimb@redhat.com>
240 * s390-tdep.c (s390_get_frame_info): Recognize spills of reg
241 arguments into their stack slots.
243 * s390-tdep.c (s390_get_frame_info): More doc fixes.
245 * s390-tdep.c (s390_get_frame_info): Doc fixes.
247 2001-12-04 Orjan Friberg <orjanf@axis.com>
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.
255 2001-12-04 Orjan Friberg <orjanf@axis.com>
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.
261 2001-12-03 Martin M. Hunt <hunt@redhat.com>
263 * serial.h: Add a note to serial_open.
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
270 2001-12-03 Kevin Buettner <kevinb@redhat.com>
272 * config/powerpc/tm-macos.h (solib.h): Include.
273 * config/powerpc/tm-ppc-eabi.h (solib.h): Include.
275 2001-12-03 Michael Snyder <msnyder@redhat.com>
277 * symtab.c (search_symbols): Make sure alloca size is big enough.
279 2001-12-03 Andrew Cagney <ac131313@redhat.com>
281 * MAINTAINERS: Prune m68k targets down to just m68k-elf.
283 2001-12-03 Jim Blandy <jimb@redhat.com>
285 * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
286 orig_sp if it's not initialized.
288 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
290 * findvar.c (locate_var_value): Specify in which register a register
293 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
295 * win32-nat.c (mappings): Correct position of XMM registers,
296 based on FXSAVE instruction structure.
298 2001-12-02 Andrew Cagney <ac131313@redhat.com>
300 * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
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.
307 * jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
310 2001-12-02 Andrew Cagney <ac131313@redhat.com>
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.
316 2001-12-01 Andrew Cagney <ac131313@redhat.com>
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.
345 * config/a29k/tm-vx29k.h: Add #error as file depends on
347 * config/a29k/tm-a29k.h: Ditto.
348 * MAINTAINERS (a29k-amd-udi): Document as broken.
350 2001-12-01 Andrew Cagney <ac131313@redhat.com>
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-*
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.
375 * kdb-start.c: Delete file.
376 * stuff.c: Delete file.
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.
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.
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.
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.
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.
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.
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.
467 2001-11-30 Kevin Buettner <kevinb@redhat.com>
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.
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.
488 2001-11-30 Kevin Buettner <kevinb@redhat.com>
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.
496 2001-11-30 Daniel Jacobowitz <drow@mvista.com>
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
506 2001-11-29 Elena Zannoni <ezannoni@redhat.com>
508 * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.
510 * ppc-tdep.h (PPC_GPLAST_REGNUM): Define.
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.
520 2001-11-29 Jim Blandy <jimb@redhat.com>
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
530 * arch-utils.h: Add corresponding prototype.
532 * values.c (value_being_returned): Make error message a proper
535 2001-11-27 Keith Walker <keith.walker@arm.com>
537 * dwarf2read.c (read_attribute_value): New function to handle
539 (read_attribute): uses read_attribute_value
541 2001-11-29 Jim Blandy <jimb@redhat.com>
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
547 2001-11-27 Andrew Cagney <ac131313@redhat.com>
549 * MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
552 2001-11-25 Jim Blandy <jimb@redhat.com>
554 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
556 2001-11-27 Jim Blandy <jimb@redhat.com>
558 * s390-tdep.c: Get frame chains and saved pc values properly from
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
567 * s390-tdep.c (s390_frame_chain): Remember that the SP's element
568 of the frame's saved_regs array is special.
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.
574 2001-11-26 Pierre Muller <muller@ics.u-strasbg.fr>
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.
583 2001-11-26 Tom Tromey <tromey@redhat.com>
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.
597 2001-11-26 Tom Tromey <tromey@redhat.com>
599 * NEWS: Update for --args.
600 * infcmd.c (construct_inferior_arguments): Moved from ...
601 * fork-child.c: ... here.
603 2001-11-26 Jim Blandy <jimb@redhat.com>
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.
609 2001-11-26 Jakub Jelinek <jakub@redhat.com>
611 * sparc-nat.c (fetch_inferior_registers): Don't rely
612 on CORE_ADDR being 32-bit.
613 (store_inferior_registers): Likewise.
615 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
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.
620 * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
622 2001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
623 Christopher Faylor <cgf@redhat.com>
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.
631 2001-11-24 Christopher Faylor <cgf@redhat.com>
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.
637 2001-11-23 Mark Kettenis <kettenis@gnu.org>
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.
646 2001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
648 * GDB 5.1 was released.
650 2001-11-21 Tom Tromey <tromey@redhat.com>
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.
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.
675 2001-11-21 Kevin Buettner <kevinb@redhat.com>
677 * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
680 * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
682 2001-11-20 Jim Blandy <jimb@redhat.com>
684 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
685 default definition; this is never used.
687 2001-11-20 Keith Seitz <keiths@redhat.com>
689 * varobj.c (c_value_of_child): Release memory for "name" when
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.
696 2001-11-20 Keith Seitz <keiths@redhat.com>
698 * top.c (gdb_init): Call init_ui_hook before initializing
701 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
703 * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
706 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
708 * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
709 accessing registers[].
710 (fill_fpregset): Ditto.
712 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
714 * infptrace.c (fetch_register): Dynamically allocate buffer for
716 (store_register): Use regcache_collect, instead of accessing the
717 register buffer directly.
719 2001-11-19 Daniel Jacobowitz <drow@mvista.com>
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
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.
729 2001-11-19 Andrew Cagney <ac131313@redhat.com>
731 * defs.h (return_to_top_level): Comment.
733 Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
735 * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
736 concatenation for error parameter.
737 (remote_cisco_open): Ditto.
739 2001-11-19 Keith Seitz <keiths@redhat.com>
741 * varobj.c (c_value_of_child): Use the wrapper function,
742 gdb_value_struct_elt.
743 (cplus_value_of_child): Likewise.
745 2001-11-18 Andrew Cagney <ac131313@redhat.com>
747 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
748 * config/i386/tm-i386.h (NUM_REGS): Delete.
750 2001-11-18 Kevin Buettner <kevinb@redhat.com>
752 * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
753 conversion for I386_LINUX_ORIG_EAX_REGNUM.
755 2001-11-18 Andrew Cagney <ac131313@redhat.com>
757 * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
758 * config/i386/tm-embed.h: Delete.
760 2001-11-17 Andrew Cagney <ac131313@redhat.com>
762 * Makefile.in (distclean): Explicitly delete Makefile et.al. in
763 gdbserver sub directory.
765 2001-11-17 Andrew Cagney <ac131313@redhat.com>
767 * README: Mention need for alloca(). Mention problems with
768 alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
770 2001-11-17 Kevin Buettner <kevinb@redhat.com>
772 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
773 of accessing registers[] directly.
775 2001-11-17 Kevin Buettner <kevinb@redhat.com>
777 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
778 when fetching ORIG_EAX.
780 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
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.
788 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
790 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
791 with regcache_collect.
792 (fill_fpregset): Likewise.
794 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
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.
801 2001-11-16 Jakub Jelinek <jakub@redhat.com>
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
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
814 (read_indirect_string): New.
815 (dump_die): Handle DW_FORM_strp.
817 2001-11-16 Jim Blandy <jimb@redhat.com>
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
829 2001-11-16 Ben Harris <bjh21@netbsd.org>
831 * Makefile.in (os9kread.o): Replace $< with autoconf-approved
836 2001-11-16 Ben Harris <bjh21@netbsd.org>
838 * MAINTAINERS (write-after-approval): Add self.
840 2001-11-15 Jim Blandy <jimb@redhat.com>
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
846 2001-11-12 Andrew Cagney <ac131313@redhat.com>
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.
859 2001-11-15 Andrew Cagney <ac131313@redhat.com>
861 * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
864 2001-11-15 Andrew Cagney <ac131313@redhat.com>
866 * utils.c (phex_nz): For default case, set str to phex_nz return
870 2001-11-15 Andrew Cagney <ac131313@redhat.com>
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
879 (remote_store_registers): Ditto.
880 * go32-nat.c (store_register): Ditto.
882 2001-11-14 Andrew Cagney <ac131313@redhat.com>
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
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.
914 2001-11-14 Andrew Cagney <ac131313@redhat.com>
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
922 2001-11-14 Michael Snyder <msnyder@redhat.com>
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.
929 2001-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):
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.
953 2001-11-14 Jim Blandy <jimb@redhat.com>
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
960 * s390-tdep.c (s390_extract_return_value): Returned `float' values
961 can simply be copied bitwise from the registers into the value
964 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
965 the frame's saved_regs array correctly.
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.
972 2001-11-14 Michael Snyder <msnyder@redhat.com>
974 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
976 2001-11-10 Andrew Cagney <ac131313@redhat.com>
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.
988 2001-11-13 Elena Zannoni <ezannoni@redhat.com>
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
995 2001-11-13 Jim Blandy <jimb@redhat.com>
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.
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.
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.
1017 * valops.c (default_coerce_float_to_double,
1018 standard_coerce_float_to_double): Doc fixes.
1020 Patch from Peter Schauer:
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.
1026 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1028 * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
1029 (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
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.
1037 2001-11-10 Andrew Cagney <ac131313@redhat.com>
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.
1046 2001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
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.
1053 2001-11-12 Jim Blandy <jimb@redhat.com>
1055 Patch from Andreas Schwab <schwab@suse.de>:
1056 * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
1059 2001-11-12 Jim Blandy <jimb@redhat.com>
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.
1067 2001-11-11 Geoffrey Keating <geoffk@redhat.com>
1069 * dwarf2read.c (dwarf_decode_lines): Properly deal with
1070 unknown standard opcodes.
1072 2001-11-11 Andrew Cagney <ac131313@redhat.com>
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.
1078 2001-11-11 Andrew Cagney <ac131313@redhat.com>
1080 From Mark Kettenis <kettenis@gnu.org>:
1081 * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
1082 breakpoints when they fail.
1084 2001-11-10 Andrew Cagney <ac131313@redhat.com>
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.
1090 2001-11-10 Andrew Cagney <ac131313@redhat.com>
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.
1096 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1098 * eval.c: Replace most occurances of value_ptr with struct value.
1100 2001-11-09 Jim Blandy <jimb@redhat.com>
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
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.
1117 * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
1118 into the dummy frame, to help us get backtraces.
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
1125 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
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.
1133 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1135 * p-exp.y (yylex): Only change case of expression if symbol is found.
1136 Also check for GPC standard name form.
1138 2001-11-08 Andrew Cagney <ac131313@redhat.com>
1140 * gdb_indent.sh: New file.
1142 2001-11-08 Jim Blandy <jimb@redhat.com>
1144 * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
1145 got_load_len, to placate compiler.
1147 2001-11-08 Mark Kettenis <kettenis@gnu.org>
1149 * i386-tdep.c (i386_gdbarch_init): Fix typo.
1151 2001-11-08 Jim Blandy <jimb@redhat.com>
1153 * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
1154 file_frame_chain_valid.
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.
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.
1165 Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
1167 * i386-tdep.c: Include "i386-tdep.h".
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
1176 Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
1178 * i386-tdep.c (set_disassembly_flavor): Delete function.
1179 (set_disassembly_flavor_sfunc): Delete function.
1181 2001-11-07 Elena Zannoni <ezannoni@redhat.com>
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
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.
1191 * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
1192 (HFILES_NO_SRCDIR): Remove partial-stab.h.
1194 * partial-stab.h: Remove file.
1196 2001-11-07 Andrew Cagney <ac131313@redhat.com>
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.
1202 2001-11-08 Mark Kettenis <kettenis@gnu.org>
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.
1208 2001-11-07 Andrew Cagney <ac131313@redhat.com>
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
1216 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1218 * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
1219 * gdbarch.c: Regenerate.
1221 2001-11-06 Fred Fish <fnf@redhat.com>
1223 * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
1225 * dwarf2read.c: Ditto.
1226 * dwarfread.c: Ditto.
1230 * mdebugread.c: Ditto.
1231 * os9kread.c: Ditto.
1234 * tracepoint.c: Ditto.
1236 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1238 * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
1239 David Taylor and Nick Duffek in past maintainers.
1241 2001-11-06 Elena Zannoni <ezannoni@redhat.com>
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.
1250 * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
1252 2001-11-06 Jim Blandy <jimb@redhat.com>
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.)
1258 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
1259 (s390-tdep.o, s390-nat.o): New rules.
1261 * s390-nat.c (s390_register_u_addr): Pass proper arguments to
1264 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1266 * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
1267 * gdbarch.c: Regenerate.
1269 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1271 * blockframe.c (get_prev_frame): Replace #ifdef
1272 INIT_EXTRA_FRAME_INFO with run-time test.
1274 2001-11-05 Andrew Cagney <ac131313@redhat.com>
1276 * gdbarch.sh (push_return_address): Change to a function with
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.
1282 2001-11-06 Corinna Vinschen <vinschen@redhat.com>
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.
1290 * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
1292 2001-11-05 Jim Blandy <jimb@redhat.com>
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.
1299 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
1300 using `+=' as well as `='.
1301 * configure: Regenerated.
1303 2001-11-05 Andrew Cagney <ac131313@redhat.com>
1305 * gdbarch.sh (init_extra_frame_info): Change to a function with
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.
1312 2001-11-05 Andrew Cagney <ac131313@redhat.com>
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.
1318 2001-11-04 Mark Kettenis <kettenis@gnu.org>
1320 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
1321 fill_gregset): Add support for "orig_eax" register.
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
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.
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
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
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.
1356 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
1357 (i387-nat.o): Add dependencies.
1359 2001-11-02 Andrew Cagney <ac131313@redhat.com>
1361 * README: Mention problem with alpha-dec-osf5.1.
1363 2001-11-02 Andrew Cagney <ac131313@redhat.com>
1365 * utils.c (internal_verror): Restore calls to abort().
1368 2001-11-02 Michael Chastain <mec@shout.net>
1370 * MAINTAINERS: Update my entry.
1372 2001-11-01 Michael Snyder <msnyder@redhat.com>
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.
1378 2001-11-01 Fred Fish <fnf@redhat.com>
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.
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.
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.
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.
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.
1424 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
1426 * sol-thread.c (sol_thread_attach): Ditto.
1427 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
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.
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.
1439 * fork-child.c (clone_and_follow_inferior): Remove unused
1440 auto_solib_add decl.
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.
1447 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
1448 * sol-thread.c (symfile.h): Ditto.
1450 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1452 * s390-nat.c (s390_remove_watchpoint): Use xfree.
1453 (s390_insert_watchpoint): Use xmalloc.
1455 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1457 * varobj.c: Replace value_ptr with ``struct value *''.
1459 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1461 * varobj.c: Re-indent.
1463 2001-10-31 Andrew Cagney <ac131313@redhat.com>
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.
1469 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1471 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
1473 (struct frame_info, struct value): Add opaque declarations.
1475 2001-10-31 Corinna Vinschen <vinschen@redhat.com>
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.
1481 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
1482 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
1484 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1487 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
1488 find_solib_trampoline_target.
1490 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1492 * remote-vx.c (net_wait): Fix typo from PIDGET change.
1494 2001-10-31 Mark Kettenis <kettenis@gnu.org>
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
1505 2001-10-31 Christopher Faylor <cgf@redhat.com>
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.
1513 2001-10-31 Daniel Jacobowitz <drow@mvista.com>
1515 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
1517 2001-10-30 Keith Seitz <keiths@redhat.com>
1519 * wrapper.h (gdb_value_struct_elt): New function.
1520 * wrapper.c (gdb_value_struct_elt): Ditto.
1521 (do_captured_value_struct_elt): Ditto.
1523 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1525 * README, NEWS: Update for 5.1.
1527 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1529 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
1531 * configure: Re-generate.
1533 2001-10-30 Fred Fish <fnf@redhat.com>
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.
1540 2001-10-27 Fred Fish <fnf@redhat.com>
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.
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.
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.
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.
1566 * pa64solib.c (_initialize_pa64_solib): Add new set/show
1567 commands for auto-solib-limit variable.
1568 * somsolib.c (_initialize_som_solib): Ditto
1570 * pa64solib.c (add_to_solist): Check that auto_solib_add is
1571 set and use auto_solib_limit as the threshold size instead
1573 * somsolib.c (som_solib_add): Ditto, and also change warning
1574 text about size threshold exceeded.
1576 2001-10-21 Mark Kettenis <kettenis@gnu.org>
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).
1584 2001-10-30 Mark Kettenis <kettenis@gnu.org>
1586 * i386-tdep.c (i386_extract_return_value): Use
1587 convert_typed_floating to extract floating-point value from
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
1595 (i386_register_convert_to_raw): Likewise.
1597 2001-10-29 Mark Kettenis <kettenis@gnu.org>
1599 * doublest.h (convert_typed_floating): New prototype.
1600 * doublest.c (convert_typed_floating): New function.
1602 2001-10-28 Mark Kettenis <kettenis@gnu.org>
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.
1618 2001-10-28 Mark Kettenis <kettenis@gnu.org>
1620 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
1621 convert RAW to a DOUBLEST instead of extract_floating.
1623 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
1624 builtin_type_i387_ext to floatformat_i387_ext.
1626 2001-10-24 Daniel Jacobowitz <drow@mvista.com>
1628 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
1629 (fill_fpregset): Likewise.
1631 2001-10-26 Orjan Friberg <orjanf@axis.com>
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.
1637 2001-10-24 Corinna Vinschen <vinschen@redhat.com>
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.
1648 2001-10-23 Jim Blandy <jimb@redhat.com>
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
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
1670 * mdebugread.c (parse_lines, parse_partial_symbols,
1671 psymtab_to_symtab_1): Same.
1672 * partial-stab.h: Same.
1674 Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
1676 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
1679 Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
1681 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
1682 (som_solib_desire_dynamic_linker_symbols): Compare integers with
1684 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
1686 2001-10-21 Andrew Cagney <ac131313@redhat.com>
1688 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
1689 interface is always enabled.
1691 2001-10-21 Andrew Cagney <ac131313@redhat.com>
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
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.
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.
1713 2001-10-21 Andrew Cagney <ac131313@redhat.com>
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.
1725 2001-10-21 Mark Kettenis <kettenis@gnu.org>
1727 * infptrace.c (child_xfer_memory): Fix a few coding standards
1730 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1732 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
1734 2001-10-20 Andrew Cagney <ac131313@redhat.com>
1736 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
1737 (struct value): Add opaque declaration. Replace value_ptr with
1739 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
1742 * wrapper.h (struct value): Add opaque declaration. Replace
1743 value_ptr with ``struct value *''.
1744 * wrapper.c: Replace value_ptr with ``struct value *''.
1745 * breakpoint.h, breakpoint.c: Ditto.
1746 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
1748 2001-10-20 Andrew Cagney <ac131313@redhat.com>
1750 * alpha-nat.c: Include <alpha/coreregs.h> instead of
1752 (fetch_osf_core_registers): Define core_reg_mapping in a way that
1753 works on OSF5 as well as previous OSF versions.
1755 2001-10-20 Christopher Faylor <cgf@redhat.com>
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.
1760 2001-10-18 Andrew Cagney <ac131313@redhat.com>
1762 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
1763 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
1765 2001-10-18 Andrew Cagney <ac131313@redhat.com>
1767 * README: Mention problems with HP/UX.
1769 2001-10-16 Andrew Cagney <ac131313@redhat.com>
1771 Based on code by John Moore <jmore@redhat.com>:
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
1777 * defs.h: Added extern statements for the above.
1779 2001-10-17 Jason Molenda (jason-cl@molenda.com)
1781 * symtab.c (lookup_block_symbol): Break out of linear search
1782 if we're past the range of possible matches.
1784 2001-10-16 Christopher Faylor <cgf@redhat.com>
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.
1792 2001-10-15 Elena Zannoni <ezannoni@redhat.com>
1794 * symtab.c (lookup_block_symbol): Update comment.
1796 2001-10-15 Andrew Cagney <ac131313@redhat.com>
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,
1803 202001-10-15 Jim Ingham <jingham@inghji.apple.com>
1805 * valarith.c (value_sub): Don't pass a raw type to
1806 value_from_pointer, it has to go through check_typedef first.
1808 2001-10-15 Andrew Cagney <ac131313@redhat.com>
1810 * gdbarch.sh (fallbackdefault): Set to one when predefault is
1812 * gdbarch.h: Regenerate.
1814 2001-10-15 Andrew Cagney <ac131313@redhat.com>
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.
1820 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
1821 (ADDRESS_TO_POINTER): Delete.
1823 * d10v-tdep.c (d10v_integer_to_address): New function.
1824 (d10v_gdbarch_init): Initialize integer_to_address.
1826 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
1829 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
1830 * gdbarch.h, gdbarch.c: Regenerate.
1832 2001-10-14 Mark Kettenis <kettenis@gnu.org>
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.
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
1858 (LOADLIBES): New variable.
1860 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
1862 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
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
1883 (child_wait): Add prototype.
1884 (CHILD_WAIT): Define.
1886 2001-10-13 Andrew Cagney <ac131313@redhat.com>
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.
1896 * MAINTAINERS: Update.
1898 2001-10-13 Andrew Cagney <ac131313@redhat.com>
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.
1905 2001-10-13 Mark Kettenis <kettenis@gnu.org>
1907 * thread-db.c: Fix a few formatting mistakes.
1909 2001-10-12 Christopher Faylor <cgf@redhat.com>
1911 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
1912 list pointer to beginning rather than one beyond beginning.
1914 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1916 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
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.
1933 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1935 * minsyms.c (msymbol_hash): Use better hash function.
1936 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
1938 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
1941 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1943 * printcmd.c (print_frame_args): Move symbol iteration explicitly
1944 inside the func != NULL block.
1946 2001-10-12 Fernando Nasser <fnasser@redhat.com>
1948 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
1951 2001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1953 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
1954 This fixes errors in "long long" handling for 'finish' and 'return'
1957 2001-10-12 Christopher Faylor <cgf@redhat.com>
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
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.
1969 * win32-nat.c (handle_exception): Don't print "first chance"
1971 (get_child_debug_event): Continue from exceptions if !handle_exception.
1973 2001-10-11 Tom Tromey <tromey@redhat.com>
1975 * symtab.c (lookup_symtab): Removed.
1976 (lookup_symtab_1): Renamed to lookup_symtab.
1978 2001-10-10 Christopher Faylor <cgf@redhat.com>
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
1985 2001-10-10 Jim Blandy <jimb@redhat.com>
1987 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
1989 2001-10-10 Keith Seitz <keiths@redhat.com>
1991 * varobj.c (cplus_value_of_child): Deal with a failure
1992 to dereference a pointer object.
1994 2001-10-08 J. Brobecker <brobecker@gnat.com>
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.
2001 2001-10-08 Nicholas Duffek <nsd@redhat.com>
2003 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
2006 2001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
2008 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
2010 2001-10-04 Tom Tromey <tromey@redhat.com>
2012 * main.c (enable_external_editor): Don't declare.
2013 (captured_main): Don't set enable_external_editor.
2015 2001-10-02 Kevin Buettner <kevinb@redhat.com>
2017 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
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.
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.
2035 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
2037 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
2039 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
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.
2050 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2052 2001-10-01 Andrew Cagney <ac131313@redhat.com>
2054 * infcmd.c (do_registers_info): Delete code dumping large
2055 registers. Handled by val_print.
2057 2001-09-30 Andrew Cagney <ac131313@redhat.com>
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.
2064 2001-09-29 Andrew Cagney <ac131313@redhat.com>
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
2072 2001-09-29 Andrew Cagney <ac131313@redhat.com>
2074 * gdbarch.sh (gdbarch_dump): Sort output.
2075 * gdbarch.c: Regenerate.
2077 2001-09-29 Andrew Cagney <ac131313@redhat.com>
2079 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
2080 architecture to infer the wordsize. Previous architecture may not
2083 2001-09-27 J. Brobecker <brobecker@gnat.com>
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
2091 2001-09-26 Andrew Cagney <ac131313@redhat.com>
2093 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
2095 (serial_set_cmd, serial_show_cmd): New functions.
2096 (_initialize_serial): Add "set/show serial" command.
2098 2001-09-26 Andrew Cagney <ac131313@redhat.com>
2100 * CONTRIBUTE: Update.
2102 2001-09-26 Kevin Buettner <kevinb@redhat.com>
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.
2119 2001-09-25 Jiri Smid <smid@suse.cz>
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.
2125 2001-09-24 Andrew Cagney <ac131313@redhat.com>
2127 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
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.
2134 2001-09-24 Andrew Cagney <ac131313@redhat.com>
2136 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
2137 convert the pointer into a CORE_ADDRs.
2139 2001-09-24 Andrew Cagney <ac131313@redhat.com>
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.
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.
2152 2001-09-24 Orjan Friberg <orjanf@axis.com>
2154 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
2155 from correct register.
2157 2001-09-22 Mark Kettenis <kettenis@gnu.org>
2159 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
2161 2001-09-21 Jiri Smid <smid@suse.cz>
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.
2178 2001-09-21 Jiri Smid <smid@suse.cz>
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.
2187 2001-09-21 Michael Snyder <msnyder@redhat.com>
2189 * c-exp.y (typebase): Accept (signed long long) as a type expr.
2191 2001-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.
2202 2001-09-20 Kevin Buettner <kevinb@redhat.com>
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''.
2210 2001-09-20 Alan Modra <amodra@bigpond.net.au>
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.
2220 2001-09-19 Andrew Cagney <ac131313@redhat.com>
2222 * cris-tdep.c (cris_get_signed_offset): Change return type to an
2223 explicitly signed char.
2225 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
2226 function signature to match recent tracepoint.c:encode_actions
2228 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
2230 2001-09-18 Andrew Cagney <ac131313@redhat.com>
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.
2236 * breakpoint.c (gdb_breakpoint_query): Update. Use
2238 * thread.c (gdb_list_thread_ids): Ditto.
2239 (gdb_thread_select): Ditto.
2240 (thread_command): Pass uiout to gdb_thread_select.
2242 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
2243 (gdb_thread_select, gdb_list_thread_ids): Ditto.
2245 2001-09-13 Kevin Buettner <kevinb@redhat.com>
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.
2253 2001-09-13 Jim Blandy <jimb@redhat.com>
2255 * monitor.c (monitor_load): Don't delete symtab users, or reset
2258 * monitor.c (monitor_load): Fix indentation.
2260 2001-09-11 Jim Blandy <jimb@redhat.com>
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'.
2266 * printcmd.c (print_scalar_formatted): Fix indentation.
2268 2001-09-10 Jim Blandy <jimb@redhat.com>
2270 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
2271 programs running on the board can produce output.
2273 2001-09-10 Jason Molenda (jmolenda@apple.com)
2275 * NEWS: "ANS/ISO C" -> "ISO C".
2276 * MAINTAINERS (write-after-approval): Update my entry.
2278 2001-09-08 Mark Kettenis <kettenis@gnu.org>
2280 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
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>.
2287 * gdbtypes.h (struct block): Add forward declaration.
2289 2001-09-07 Andrew Cagney <ac131313@redhat.com>
2291 * defs.h (enum return_reason): Renumber so that all values are
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.
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.
2305 2001-09-07 Jim Blandy <jimb@redhat.com>
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
2314 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
2316 2001-09-07 Mark Kettenis <kettenis@gnu.org>
2318 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
2319 to using setpgid if available now.
2321 2001-09-06 Keith Seitz <keiths@redhat.com>
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
2327 * configure: Regenerated.
2329 2001-09-06 Kevin Buettner <kevinb@redhat.com>
2331 * dbxread.c (process_one_symbol): Don't use error result from
2332 find_stab_function_addr().
2333 * partial-stab.h (case 'F'): Likewise.
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.
2339 2001-09-05 Elena Zannoni <ezannoni@redhat.com>
2341 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
2343 (TARGET_PRINT_INSN): Multiarch.
2344 * gdbarch.h: Regenerate.
2345 * gdbarch.c: Regenerate.
2347 * arch-utils.c (legacy_print_insn): New function.
2348 * arch-utils.h (legacy_print_insn): Export.
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.
2359 2001-09-05 Jim Blandy <jimb@redhat.com>
2361 * gdbtypes.h (struct type): Doc fix.
2363 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
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.
2373 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
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.
2384 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
2386 From Daniel Jacobowitz <drow@mvista.com>
2387 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
2390 2001-09-01 Mark Kettenis <kettenis@gnu.org>
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).
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.
2408 2001-08-31 Jason Molenda (jmolenda@apple.com)
2410 * c-valprint.c (c_val_print): Second call to check_typedef ()
2411 is no longer necessary.
2413 2001-08-31 Kevin Buettner <kevinb@redhat.com>
2415 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
2416 terminate the prologue scan.
2418 2001-08-30 Jim Blandy <jimb@redhat.com>
2420 * symfile.c (sections_overlap): New function.
2421 (map_overlay_command): Call sections_overlap, instead of using
2422 incorrect logic to recognize overlapping sections.
2424 * symfile.c (load_command): Invalidate the overlay cache.
2426 2001-08-30 Mark Kettenis <kettenis@gnu.org>
2428 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
2430 2001-08-29 Kevin Buettner <kevinb@redhat.com>
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
2437 2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
2439 * frame.h (struct frame_info): Fix documentation on fields
2440 saved_regs, next and prev.
2442 2001-08-23 Mark Kettenis <kettenis@gnu.org>
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
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
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.
2460 * aclocal.m4, config.in, configure: Regenerated.
2462 2001-08-26 Andrew Cagney <ac131313@redhat.com>
2464 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
2465 * config/powerpc/nbsd.mh (XM_FILE): Delete.
2467 2001-08-21 Andrew Cagney <ac131313@redhat.com>
2469 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
2470 (HOST_DOUBLE_FORMAT): Delete macro.
2472 2001-08-24 Mark Kettenis <kettenis@gnu.org>
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>.
2478 2001-08-24 Andrew Cagney <ac131313@redhat.com>
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.
2484 2001-08-24 Andrew Cagney <ac131313@redhat.com>
2486 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
2487 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
2490 2001-08-21 Andrew Cagney <ac131313@redhat.com>
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.
2516 2001-08-23 Mark Kettenis <kettenis@gnu.org>
2518 * tracepoint.c (read_actions): Add FIXME for code depending on
2521 2001-08-23 Martin M. Hunt <hunt@redhat.com>
2523 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
2525 (mips_load_srec): Ditto.
2527 2001-08-22 Andrew Cagney <ac131313@redhat.com>
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
2536 2001-08-21 Keith Seitz <keiths@redhat.com>
2538 * printcmd.c (print_insn): Use the given stream for
2541 2001-07-24 Andrew Cagney <ac131313@redhat.com>
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
2555 2001-08-20 Andrew Cagney <ac131313@redhat.com>
2557 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
2559 2001-08-17 Keith Seitz <keiths@redhat.com>
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
2565 (value_of_root): Update "var", too, if "var_handle"
2567 * varobj.h (varobj_update): Likewise.
2569 2001-08-17 Keith Seitz <keiths@redhat.com>
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).
2575 2001-08-16 Keith Seitz <keiths@redhat.com>
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.
2585 2001-08-15 Keith Seitz <keiths@redhat.com>
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.
2597 2001-08-15 Ian Roxborough <irox@redhat.com>
2599 * Makefile.in: Changed all references to the install directory
2600 "gdbtcl" to read "insight1.0".
2602 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
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.
2608 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
2609 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
2611 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
2612 H.J. Lu (hjl@gnu.org)
2614 * partial-stab.h: valu should be a CORE_ADDR.
2616 2001-08-14 H.J. Lu (hjl@gnu.org)
2618 * dbxread.c (SWAP_SYMBOL): Removed.
2619 (INTERNALIZE_SYMBOL): Check sign extended vma.
2621 2001-08-13 Christopher Faylor <cgf@cygnus.com>
2623 * top.c (SIGSETJMP): Protect env argument with parentheses.
2624 (SIGLONGJMP): Protect env argument with parentheses.
2626 2001-08-11 Andrew Cagney <ac131313@redhat.com>
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.
2633 2001-08-11 Andrew Cagney <ac131313@redhat.com>
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.
2641 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2643 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
2644 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
2647 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2649 * doublest.c (convert_doublest_to_floatformat): Rename
2650 floatformat_from_doublest. Make static.
2651 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
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.
2661 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2663 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
2664 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
2666 2001-08-07 Andrew Cagney <ac131313@redhat.com>
2668 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
2669 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
2670 * gdbarch.h, gdbarch.c: Regenerate.
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.
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.
2687 2001-08-10 Keith Seitz <keiths@redhat.com>
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.
2696 2001-08-10 Michael Snyder <msnyder@redhat.com>
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
2703 2001-08-10 Keith Seitz <keiths@redhat.com>
2705 * gdb-events.sh: Deal with event notifications with no
2708 2001-08-10 Orjan Friberg <orjanf@axis.com>
2710 * remote.c (read_frame): Correct off-by-one error in condition.
2712 2001-08-08 Don Howard <dhoward@redhat.com>
2714 * stabsread.c (read_type): Add support for const and volatile
2717 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
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.
2722 2001-08-02 Keith Seitz <keiths@redhat.com>
2724 * defs.h (SLASH_STRING): If not defined, set
2725 to "/", regardless of _WIN32, __CYGWIN__, or
2728 2001-08-02 Mark Kettenis <kettenis@gnu.org>
2730 * cli/cli-decode.h: Include "gdb_regex.h" instead of
2735 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2737 * config/i386/xm-go32.h: Include xm-i386.h.
2738 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
2740 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
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
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.
2752 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
2754 (args_for_catchpoint_enable): Rename the `enable' member to
2755 `enable_p'. All users changed.
2757 * tracepoint.h (enum enable): Remove.
2758 (struct tracepoint): The member `enabled' is now `int enabled_p'.
2760 * tracepoint.c: All users of the `enabled' member changed.
2762 * printcmd.c (struct display): The `status' member is now an int.
2764 * memattr.h (struct mem_region): Rename the `status' member to
2766 (enum enable): Remove.
2768 * memattr.c: Change all users of the `status' member of struct
2769 mem_region to use `enabled_p' instead.
2771 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
2773 * go32-nat.c: Remove the kludgey work-around for conflicts between
2774 <dos.h> and "breakpoint.h".
2776 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
2778 * MAINTAINERS: Add myself to the write-after-approval list.
2779 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
2782 2001-08-01 Andrew Cagney <ac131313@redhat.com>
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
2788 * doublest.c (floatformat_to_doublest): Update.
2789 (floatformat_from_doublest): Update.
2790 (extract_floating): Update.
2792 2001-07-31 Andrew Cagney <ac131313@redhat.com>
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.
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.
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).
2832 2001-08-01 Andrew Cagney <ac131313@redhat.com>
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).
2841 2001-07-31 Mark Kettenis <kettenis@gnu.org>
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
2851 2001-07-30 Jim Blandy <jimb@redhat.com>
2853 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
2855 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
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.
2861 2001-07-30 Mark Kettenis <kettenis@gnu.org>
2863 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
2864 i386_dwarf_reg_to_regnum.
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.
2871 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
2873 * config/djgpp/djconfig.sh: Unset CDPATH.
2875 * go32-nat.c (get_cr3): Temporary disable support for page tables
2876 in UMBs, as it is incomplete.
2878 Support for stepping through longjmp in DJGPP programs:
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.
2884 2001-07-28 Andrew Cagney <ac131313@redhat.com>
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.
2891 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2893 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
2894 (cris): Set --enable-gdb-build-warnings flag to -w.
2896 2001-07-28 Andrew Cagney <ac131313@redhat.com>
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.
2909 2001-07-26 Andrew Cagney <ac131313@redhat.com>
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).
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.
2922 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2924 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
2925 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
2927 (tui-out.o): Define dependencies.
2928 (tui-hooks.o): Likewise.
2930 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2932 * MAINTAINERS: Update e-mail address of active @cygnus.com
2933 maintainers to @redhat.com.
2935 2001-07-28 Andrew Cagney <ac131313@redhat.com>
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.
2942 2001-07-28 Mark Kettenis <kettenis@gnu.org>
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
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):
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.
2961 2001-07-27 John R. Moore <jmoore@redhat.com>
2963 * configure.in: Added dependency of gdb on tcl/tk libraries.
2964 * Makefile.in: Likewise.
2965 * configure: Regenerated with the above using autoconf.
2967 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
2969 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
2971 (SH_DEFAULT_NUM_REGS): Define.
2973 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
2975 * go32-nat.c (read_memory_region): Make sure the segment limit was
2976 indeed set, to work around a Windows 2000 bug.
2978 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
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.
2996 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
2998 * README: Mention how to make gdb.pdf.
3002 2001-07-24 Stephen P. Smith <ischis2@home.com>
3004 * MAINTAINERS (Stephen P. Smith): Added to write after approval
3007 2001-07-23 Andrew Cagney <ac131313@redhat.com>
3009 * mips-tdep.c (mips_push_arguments): Add comment explaining
3010 problem with LE o32 GCC.
3012 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
3014 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
3015 doesn't understand them.
3017 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
3019 * memattr.c (mem_info_command): Reformat output to look more like
3020 'info break' output.
3021 (_initialize_mem): Improve help.
3023 2001-07-23 Mark Kettenis <kettenis@gnu.org>
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.
3040 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
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.
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.
3050 2001-07-22 Mark Kettenis <kettenis@gnu.org>
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
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.
3068 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3070 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
3071 (m68hc11-tdep.o): Define dependencies.
3073 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
3077 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
3083 2001-07-21 Mark Kettenis <kettenis@gnu.org>
3085 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
3086 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
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.
3094 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
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
3103 (initialize_targets): Move check of struct signals to...
3104 * signals.c (_initialize_signals): Here.
3106 2001-07-19 Andrew Cagney <ac131313@redhat.com>
3108 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
3110 2001-07-19 Andrew Cagney <ac131313@redhat.com>
3113 * configure.tgt (i*86-*-pe*): New target.
3115 2001-07-19 Andrew Cagney <ac131313@redhat.com>
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.
3122 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
3129 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
3131 * Makefile.in (tui-file.o): Update dependencies.
3133 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
3135 * top.c (catch_errors): Convert PTR to void * in parameters list.
3136 (quit_cover): Ditto.
3138 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
3147 2001-07-16 Nick Duffek <nsd@redhat.com>
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
3154 2001-07-16 Andrew Cagney <ac131313@redhat.com>
3156 * remote.c: Revert below. Included more than intended.
3158 2001-07-16 Nick Duffek <nsd@redhat.com>
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
3165 2001-07-16 Nick Duffek <nsd@redhat.com>
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.
3171 2001-07-16 Orjan Friberg <orjanf@axis.com>
3173 * NEWS: New target CRIS.
3175 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
3177 * top.c (show_commands): Remove extern decl of history_get, it's
3178 already in readline/history.h.
3180 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
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.
3193 * cli/cli-setshow.h: Add comment for do_setshow_command.
3195 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
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.
3203 2001-07-16 Orjan Friberg <orjanf@axis.com>
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.
3209 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
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
3216 2001-07-14 Andrew Cagney <ac131313@redhat.com>
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.
3245 * nindy-share/ttyflush.c: Update.
3246 * nindy-share/Onindy.c: Update.
3249 * remote-nindy.c: Update.
3251 * sparcl-tdep.c: Update.
3252 * sh3-rom.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.
3265 * nindy-share/nindy.c: Update.
3266 * monitor.c: Update.
3268 2001-07-14 Andrew Cagney <ac131313@redhat.com>
3270 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
3271 * mcore-tdep.c: Ditto.
3272 * sparc-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.
3291 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
3293 * top.c (readline_line_completion_function, noop_completer): Move
3295 * completer.c (readline_line_completion_function, noop_completer):
3297 * gdbcmd.h (readline_line_completion_function, noop_completer):
3298 Move declarations from here...
3299 * completer.h (readline_line_completion_function, noop_completer):
3301 * corefile.c: Include completer.h.
3304 * Makefile.in: Update dependencies.
3306 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
3308 * go32-nat.c (go32_create_inferior): Support command lines longer
3309 than 126 characters.
3311 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3313 * NEWS: New target 68HC11/68HC12.
3315 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
3343 2001-07-14 Mark Kettenis <kettenis@gnu.org>
3345 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
3346 * config/i386/nm-linux.h: ...to here. Change comments about user
3349 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
3351 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
3352 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
3354 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
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.
3367 2001-07-13 Mark Kettenis <kettenis@gnu.org>
3369 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
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.
3384 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3386 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
3389 2001-07-13 Mark Kettenis <kettenis@gnu.org>
3391 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
3392 are no registered LWPs yet.
3394 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3396 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
3398 (CANNOT_STORE_REGISTER): Likewise.
3400 2001-07-12 Keith Seitz <keiths@redhat.com>
3402 * remote-rdp.c: Include "serial.h"
3404 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3406 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
3407 in HAVE_TERMIO/HAVE_TERMIOS cases.
3409 2001-07-12 Mark Kettenis <kettenis@gnu.org>
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.
3417 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
3419 (i386_store_return_value): Improve comments about storing
3420 floating-point return values.
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.
3427 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
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.
3433 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3435 * config/djgpp/fnchange.lst: Add entries for
3436 mips-linux-nat.c and mips-linux-tdep.c.
3438 2001-07-12 Mark Kettenis <kettenis@gnu.org>
3440 * config/powerpc/xm-linux.h: Fix corrupted file.
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.
3447 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
3449 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
3450 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
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,
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.
3479 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
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
3485 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3487 * MAINTAINERS: List myself for MIPS/Linux
3490 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3492 * gdbserver/remote-utils.c (remote_open): Only
3493 check for F_SETOWN if we had F_SETFL and FASYNC.
3495 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3497 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
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.
3507 2001-07-11 Andrew Cagney <ac131313@redhat.com>
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.
3513 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3515 * serial.h (typedef serial_t): Delete. Replace all references to
3516 serial_t with `struct serial *'.
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.
3533 * mon960-rom.c: Update.
3536 * ser-e7kpc.c: Update.
3537 * sparclet-rom.c: Update.
3539 * ser-tcp.c: Update.
3540 * ser-go32.c: Update.
3541 * sparcl-tdep.c: Update.
3542 * w89k-rom.c: Update.
3544 * sh3-rom.c: Update.
3546 * ser-pipe.c: Update.
3547 * ser-unix.c: Update.
3548 * ser-unix.h: Update.
3552 2001-07-11 J.T. Conklin <jtc@redback.com>
3554 From Greg McGary <greg@mcgary.org>:
3555 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
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.
3565 2001-07-11 Keith Seitz <keiths@redhat.com>
3567 * infrun.c (print_stop_reason): Add missing uiout field
3568 "reason" for SIGNAL_RECEIVED case.
3570 2001-07-11 Mark Kettenis <kettenis@gnu.org>
3572 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
3573 Remove unused macro's.
3575 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
3578 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
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>.
3586 2001-07-11 Mark Kettenis <kettenis@gnu.org>
3588 * config/nm-linux.h: Fix comments.
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>.
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.
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
3601 * config/nm-linux.h: Include <signal.h>.
3602 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
3603 (__SIGRTMAX + 1) respectively.
3605 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3607 * mcore-rom.c: Include "serial.h".
3608 * Makefile.in (mcore-rom.o): Depends on "serial.h".
3610 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3612 * Makefile.in (remote-bug.o): Depends on serial.h.
3613 * remote-bug.c: Include "serial.h".
3614 * MAINTAINERS: Mark m88k target as buildable.
3617 2001-07-10 Jim Blandy <jimb@redhat.com>
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
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
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.
3675 * printcmd.c (print_scalar_formatted): If we are printing an
3676 address, remember that TARGET_ADDR_BIT is not always equal to
3679 * valops.c (value_cast): When casting a pointer to an integer,
3680 don't convert it to an address.
3682 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3684 * remote-utils.h (struct serial): Declare as opaque. Remove
3685 include of "serial.h".
3686 * Makefile.in (remote_utils_h): Update.
3688 * monitor.h (struct serial): Declare as opaque. Remove include of
3690 (struct monitor_ops): Replace serial_t with `struct serial *'.
3691 * monitor.c (monitor_desc): Ditto.
3693 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
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.
3706 2001-07-09 Andrew Cagney <ac131313@redhat.com>
3708 * serial.h (struct serial): Rename `struct _serial_t'.
3709 * serial.c (XMALLOC): Define.
3710 (serial_open): Update. Use XMALLOC.
3711 (serial_fdopen): Ditto.
3713 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3715 * gdbtypes.h (builtin_type_void_data_ptr): Rename
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.
3724 2001-07-08 Andrew Cagney <ac131313@redhat.com>
3726 * remote-udi.c (udi_wait): Make type, instead of name, of first
3729 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3731 * ser-mac.c: Make obsolete.
3732 * Makefile.in (ser-mac.o): Ditto.
3734 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
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
3745 2001-07-07 Kevin Buettner <kevinb@redhat.com>
3747 * procfs.c (create_procinfo): Allocate space for saved_entryset
3749 (destroy_one_procinfo): Free space allocated to saved_entryset
3752 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3754 * TODO (5.1): Update.
3756 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3758 * symtab.c (main_name): New function.
3759 (set_main_name): New function.
3760 * symtab.h: Declare.
3763 From 2000-03-05 Anthony Green <green@redhat.com>:
3764 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
3766 * blockframe.c (inside_main_func): Use main_name instead of
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.
3773 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3775 * TODO: Convert most items into PRs.
3777 2001-07-07 Mark Kettenis <kettenis@gnu.org>
3779 * lin-lwp.c (status_to_str): New function.
3780 (lin_lwp_wait): Use it to print debug messages where appropriate.
3782 2001-07-06 Michael Chastain <chastain@redhat.com>
3784 * i387-tdep.c (print_i387_value): Fix pointer glitch.
3786 2001-07-07 Mark Kettenis <kettenis@gnu.org>
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
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.
3801 2001-07-06 Michael Snyder <msnyder@redhat.com>
3803 * procfs.c (procfs_resume): Silence noisy warning.
3805 2001-06-12 Michael Snyder <msnyder@redhat.com>
3807 * lin-lwp.c: Prevent thread starvation by using a monte carlo
3808 method to choose which of several event threads to handle next.
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
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
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.
3826 2001-07-06 Jim Blandy <jimb@redhat.com>
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.
3833 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
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.
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.
3853 2001-07-04 Andrew Cagney <ac131313@redhat.com>
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.
3864 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
3866 * mips-tdep.c (mips_software_single_step): New function.
3867 * config/mips/tm-mips.h: Add prototype for
3868 mips_software_single_step.
3870 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
3872 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
3874 (fill_gregset): Likewise.
3876 2001-07-05 Andrew Cagney <ac131313@redhat.com>
3878 * objfiles.c (open_mapped_file): Use lbasename instead of
3881 2001-07-05 Jim Blandy <jimb@redhat.com>
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.
3892 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
3894 2001-07-05 Mark Kettenis <kettenis@gnu.org>
3896 * config/i386/xm-go32.h (HOST_I386): Removed.
3897 * config/i386/xm-linux.h (HOST_I386): Removed.
3899 2001-07-04 Mark Kettenis <kettenis@gnu.org>
3901 * i387-tdep.c (print_i387_value): Add extra space after final full
3904 2001-07-04 Andrew Cagney <ac131313@redhat.com>
3906 * TODO (5.1): Update. Doco changes committed.
3908 2001-06-29 Andrew Cagney <ac131313@redhat.com>
3910 * config/arm/tm-arm.h: Include "floatformat.h".
3912 2001-06-29 Andrew Cagney <ac131313@redhat.com>
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.
3918 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3920 * TODO: Delete all thread items. The thread code was overhauled.
3922 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
3924 * memattr.c (create_mem_region): Move n to next memory region,
3925 to avoid infinite loop.
3927 * memattr.h: Add copyright statement.
3930 2001-07-04 Jim Blandy <jimb@redhat.com>
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.
3939 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
3940 code in loop condition.
3942 2001-07-03 Michael Snyder <msnyder@redhat.com>
3944 * thread_db (find_new_threads_callback, thread_db_thread_alive,
3945 attach_thread): Update comments.
3947 2001-06-29 Ken Whaley <ken@believe.com>
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.
3954 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
3956 * MAINTAINERS: Add myself to the write-after-approval list.
3958 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
3960 * solib-svr4.c: Include "elf/mips.h".
3961 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
3963 2001-07-02 Jim Blandy <jimb@redhat.com>
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.
3969 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
3971 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
3973 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
3975 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
3977 2001-06-29 Andrew Cagney <ac131313@redhat.com>
3979 * config/djgpp/fnchange.lst: Sort.
3981 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3983 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
3984 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
3986 2001-06-29 Andreas Jaeger <aj@suse.de>
3988 * MAINTAINERS: Add myself to the write-after-approval list.
3990 2001-06-28 Andrew Cagney <ac131313@redhat.com>
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
3998 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4000 * MAINTAINERS: Add Per Bothner to Java maintainers.
4002 2001-06-28 Andrew Cagney <ac131313@redhat.com>
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__.
4008 * MAINTAINERS: Update. arm-elf builds.
4010 2001-06-28 Jim Blandy <jimb@redhat.com>
4012 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
4014 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
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.
4030 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4032 From Fernando Nasser:
4033 * infrun.c (handle_inferior_event): Handle "nexti" inside function
4036 2001-06-28 Michael Snyder <msnyder@redhat.com>
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.
4048 2001-06-28 Andrew Cagney <ac131313@redhat.com>
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.
4059 2001-06-28 Andrew Cagney <ac131313@redhat.com>
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.
4065 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4067 * configure.in (--enable-gdbmi): Enable by default.
4068 * configure: Regenerate.
4072 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
4074 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
4075 explaining the consequences of always returning zero. No code
4078 2001-06-28 Andrew Cagney <ac131313@redhat.com>
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.
4087 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4089 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
4090 from possibly unsigned char.
4092 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4094 * ser-ocd.c: Delete file.
4095 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
4096 (ser-ocd.o): Delete target.
4100 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4102 * MAINTAINERS (Write After Approval): Sort.
4103 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
4105 2001-06-26 Andrew Cagney <ac131313@redhat.com>
4107 * breakpoint.c (breakpoint_1): Always output the breakpoint
4108 headings. Leave it to ui-out to decide which
4110 2001-06-25 Andrew Cagney <ac131313@redhat.com>
4112 * stack.c (print_frame): For ui_out, output a list of arguments.
4114 2001-06-25 Kevin Buettner <kevinb@redhat.com>
4116 * MAINTAINERS (paper trail): Update.
4118 2001-06-25 Michael Snyder <msnyder@redhat.com>
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.
4129 2001-06-24 Fernando Nasser <fnasser@redhat.com>
4131 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
4132 * rdi-share/host.h: Add missing parenthesis in conditional.
4134 2001-06-22 J.T. Conklin <jtc@redback.com>
4136 * configure.in: include nlist.h when checking for member som_addr
4138 * configure: regenerate.
4140 2001-06-21 Keith Seitz <keiths@redhat.com>
4142 * cli-out.c (cli_out_new): Initialize new structure member
4145 2001-06-20 Andrew Cagney <ac131313@redhat.com>
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.
4159 2001-06-19 Andrew Cagney <ac131313@redhat.com>
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.
4173 2001-06-18 Andrew Cagney <ac131313@redhat.com>
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
4184 2001-06-16 Andrew Cagney <ac131313@redhat.com>
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.
4191 2001-06-18 Andrew Cagney <ac131313@redhat.com>
4193 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
4194 "mi", "mi0" and "mi1".
4196 2001-06-17 Andrew Cagney <ac131313@redhat.com>
4198 * gdbarch.sh: Generate an error when conflicting macro
4199 definitions. Generate an error when both pure multi-arch and
4201 * gdbarch.h, gdbarch.c: Regenerate.
4202 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
4204 2001-06-17 Andrew Cagney <ac131313@redhat.com>
4206 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
4207 GDB_MULTI_ARCH_PARTIAL from two.
4209 2001-06-17 Fernando Nasser <fnasser@redhat.com>
4211 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
4212 * cli/cli-script.c (free_command_lines): Reset list pointer.
4214 2001-06-16 Andrew Cagney <ac131313@redhat.com>
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
4225 2001-06-16 Andrew Cagney <ac131313@redhat.com>
4227 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
4229 2001-06-15 Andrew Cagney <ac131313@redhat.com>
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.
4240 2001-06-15 Andrew Cagney <ac131313@redhat.com>
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.
4254 2001-06-15 Michael Snyder <msnyder@redhat.com>
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.
4264 2001-06-15 Andrew Cagney <ac131313@redhat.com>
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.
4275 2001-06-15 Andrew Cagney <ac131313@redhat.com>
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.
4281 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4283 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
4284 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
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.
4290 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
4292 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
4293 Write After Approval list.
4295 2001-06-14 Michael Snyder <msnyder@redhat.com>
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.
4309 2001-06-14 Keith Seitz <keiths@redhat.com>
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.
4316 2001-06-13 Michael Snyder <msnyder@redhat.com>
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.
4328 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
4330 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
4333 2001-06-11 Andrew Cagney <ac131313@redhat.com>
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
4344 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
4346 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
4347 (SLASH_STRING): Remove unused definitions.
4348 * config/i386/xm-cygwin.h: Likewise.
4350 2001-06-12 Andrew Cagney <ac131313@redhat.com>
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.
4356 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
4358 * source.c (openp): Make parameters ``path'' and ``string''
4360 (openp): Use alloca to safely duplicate ``string''. Make local
4361 variables ``p'' and ``p1'' constant. Delete char* casts.
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.
4368 2001-06-11 Andrew Cagney <ac131313@redhat.com>
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.
4385 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
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.
4393 * completer.h: Add prototype for location_completer.
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
4407 * symtab.h (make_file_symbol_completion_list)
4408 (make_source_files_completion_list): Add prototypes.
4410 * breakpoint.c (_initialize_breakpoint): Make location_completer
4411 be the completion function for all commands which set breakpoints
4413 (top-level): #include "completer.h".
4415 * tracepoint.c (_initialize_tracepoint): Make location_completer
4416 be the completion function for the "trace" command.
4417 (top-level): #include "completer.h".
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".
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".
4428 2001-06-10 Christopher Faylor <cgf@redhat.com>
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.
4434 * m32r-rom.c: Ditto.
4436 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
4438 (get_ds_base): Remove _MSC_VER version of this function.
4439 * nindy-share/ttyflush.c: Ditto.
4440 * rdi-share/host.h: Ditto.
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.
4445 * main.c (captured_main): Eliminate special Cygwin checks.
4446 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
4448 2001-06-09 Andrew Cagney <ac131313@redhat.com>
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.
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.
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.
4480 2001-06-08 Michael Snyder <msnyder@redhat.com>
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.
4486 2001-06-08 Per Bothner <per@bothner.com>
4488 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
4490 2001-06-07 Keith Seitz <keiths@redhat.com>
4492 * tracepoint.c (tracepoint_opertation): Add ui event
4494 (trace_pass_command): Ditto.
4496 2001-06-07 Andrew Cagney <ac131313@redhat.com>
4498 * MAINTAINERS (Write After Approval): Note the entry criteria.
4499 (HP/PA): Jeff Law stepped down
4501 2001-06-07 Jim Blandy <jimb@redhat.com>
4503 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
4504 variable values as operators.
4506 2001-06-07 Keith Seitz <keiths@redhat.com>
4508 * gdb-events.sh: Fix quote escaping which was obsoleted
4511 2001-06-07 Keith Seitz <keiths@redhat.com>
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.
4521 2001-06-06 Mark Kettenis <kettenis@gnu.org>
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.
4540 2001-06-07 Keith Seitz <keiths@redhat.com>
4542 * MAINTAINTERS: Syd Polk is stepping down from
4543 maintaining libgui. I am replacing him.
4545 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
4547 * config/mips/tm-irix6.h: New file.
4549 * config/mips/irix6.mh: New file.
4551 * config/mips/irix6.mt: New file.
4553 * config/mips/xm-irix6.h: New file.
4555 * config/mips/nm-irix6.h: New file.
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
4562 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
4564 * configure.host (mips*-sgi-irix6*): Ditto.
4566 2001-06-07 Andrew Cagney <ac131313@redhat.com>
4568 * gnu-v3-abi.c: Include "gdb_assert.h".
4569 (build_gdb_vtable_type): Replace abort() with gdb_assert().
4571 2001-06-06 Jim Blandy <jimb@redhat.com>
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.
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.
4583 2001-06-06 Andrew Cagney <ac131313@redhat.com>
4585 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
4587 (compare_symbols): Ditto.
4589 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
4591 * arch-utils.c (generic_prepare_to_proceed): Allow for having
4592 stopped due to a Ctrl-C as well as breakpoints.
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.
4600 2001-06-06 Jim Blandy <jimb@redhat.com>
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
4607 2001-06-06 Keith Seitz <keiths@redhat.com>
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.
4614 2001-06-06 Keith Seitz <keiths@redhat.com>
4616 * gdb-events.sh: Update copyrights.
4617 Change free to xfree.
4618 * gdb-events.c: Regenerated.
4619 * gdb-events.h: Regenerated.
4621 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
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.
4628 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
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.
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
4639 (top-level): #include "filenames.h".
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".
4645 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
4646 (SLASH_STRING): Define only for _WIN32.
4648 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
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".
4656 * go32-nat.c (go32_wait): Change the return value to ptid_t.
4658 * config/djgpp/fnchange.lst: Add two new files in the
4659 gdb/testsuite/gdb.c++/ directory to the remapped names.
4661 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
4663 2001-06-01 Jim Blandy <jimb@redhat.com>
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.
4679 2001-06-01 Kevin Buettner <kevinb@redhat.com>
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
4688 2001-06-01 Michael Snyder <msnyder@redhat.com>
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.
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.
4706 2001-06-01 Jim Blandy <jimb@redhat.com>
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.
4711 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
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.
4718 2001-05-31 Kevin Buettner <kevinb@redhat.com>
4720 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
4721 match the location at which the kernel is placing the sigcontext
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
4731 2001-05-29 Christopher Faylor <cgf@redhat.com>
4733 * partial-stab.h: Revert previous patch.
4735 2001-05-29 Christopher Faylor <cgf@redhat.com>
4737 * partial-stab.h: Consistently guard against pst being NULL.
4739 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
4741 * symfile.c (compare_psymbols, compare_symbols): Declare using
4742 PTR, as in the definition.
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.
4749 2001-05-25 Nick Duffek <nsd@redhat.com>
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.
4756 2001-05-25 Nick Duffek <nsd@redhat.com>
4758 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
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
4767 2001-05-25 Michael Snyder <msnyder@redhat.com>
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.
4775 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
4776 * remote.c (remote_write_bytes): Update 'p' packet pointer.
4778 2001-05-25 Jim Blandy <jimb@redhat.com>
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.
4784 2001-05-24 Nick Duffek <nsd@redhat.com>
4786 * solist.h (struct so_list): Document the requirement that
4787 current_sos initialize some fields to 0.
4789 2001-05-24 Mark Kettenis <kettenis@gnu.org>
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
4795 (proc_string): Use MERGEPID to construct argument to
4798 2001-05-22 Kevin Buettner <kevinb@redhat.com>
4800 * breakpoint.c (breakpoint_address_is_meaningful): New function.
4801 (check_duplicates): Don't compare non-meaningful addresses.
4803 2001-05-22 Michael Snyder <msnyder@redhat.com>
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.
4810 2001-05-22 Jim Blandy <jimb@redhat.com>
4812 Add support for the GNU V3 C++ ABI.
4813 (Includes changes by Dan Berlin.)
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
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).
4825 2001-05-21 Jim Blandy <jimb@redhat.com>
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.
4831 * value.h (struct value): Doc fix, and rearrange members to place
4832 them near their explanations.
4834 2001-05-21 Michael Snyder <msnyder@redhat.com>
4836 * remote.c (remote_async_wait): Added new variable fieldsize.
4837 Add fieldsize (return value of hex2bin) to string pointer p.
4839 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
4846 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
4848 Changes by Jim Ingham:
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
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.
4860 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
4862 * values.c (value_static_field): Handle static fields that have a
4865 2001-05-17 Michael Snyder <msnyder@redhat.com>
4867 * blockframe.c (create_new_frame): Zero all the fields via memset,
4868 rather than zeroing them one by one.
4870 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4872 * top.c (user_args): Remove unused declaration.
4874 2001-05-16 Michael Snyder <msnyder@redhat.com>
4876 * infcmd.c (do_registers_info): Move alloca outside of loop.
4878 2001-05-15 John S Kallal <jskallal@home.com>
4880 * remote.c (remote_wait): Added new variable fieldsize.
4881 Add fieldsize (return value of hex2bin) to string pointer p.
4883 2001-05-15 Mark Kettenis <kettenis@gnu.org>
4885 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
4888 2001-05-14 Kevin Buettner <kevinb@redhat.com>
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
4895 2001-05-14 Kevin Buettner <kevinb@redhat.com>
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.
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.
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.
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):
4927 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
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.
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.
4962 2001-05-14 Michael Snyder <msnyder@redhat.com>
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.
4969 2001-05-13 Mark Kettenis <kettenis@gnu.org>
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
4975 (lookup_partial_symtab): Likewise.
4977 2001-05-14 Michael Snyder <msnyder@redhat.com>
4979 * solib.c, solib.h: Add comment for function no_shared_libraries.
4981 2001-05-14 Kevin Buettner <kevinb@redhat.com>
4983 * solib.h (no_shared_libraries): Make declaration match definition
4986 2001-05-14 Andrew Cagney <ac131313@redhat.com>
4988 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
4989 * solib.h (no_shared_libraries): Declare.
4991 2001-05-12 Andrew Cagney <ac131313@redhat.com>
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.
5000 2001-05-12 Fernando Nasser <fnasser@redhat.com>
5002 * remote-e7000.c (e7000_open): Check for bad baud rate.
5003 * remote-st.c (st2000_open): Ditto.
5005 2001-05-11 Jim Blandy <jimb@redhat.com>
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
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.
5015 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
5037 2001-05-11 Jim Blandy <jimb@redhat.com>
5039 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
5041 2001-05-11 Andrew Cagney <ac131313@redhat.com>
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
5048 (hpread_read_array_type): Provide return value.
5049 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
5051 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
5054 2001-05-11 Jim Blandy <jimb@redhat.com>
5056 * mips-tdep.c (mips_store_return_value,
5057 mips_extract_return_value): Pass arguments to
5058 return_value_location in the proper order.
5060 2001-05-11 Andrew Cagney <ac131313@redhat.com>
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.
5069 2001-05-11 Kevin Buettner <kevinb@redhat.com>
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().
5080 2001-05-11 Fernando Nasser <fnasser@redhat.com>
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.
5086 2001-05-10 Andrew Cagney <ac131313@redhat.com>
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.
5095 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
5097 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
5098 and make Kevin Buettner (kevinb@redhat.com) the reference person.
5100 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
5102 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
5104 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5106 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
5108 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
5110 * Makefile.in (mi-main.o): Compile with -Werror.
5112 2001-05-10 Michael Snyder <msnyder@redhat.com>
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.
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.
5125 2001-05-10 Andrew Cagney <ac131313@redhat.com>
5127 * arch-utils.c (initialize_current_architecture): Delete obsolete
5128 ``info architecture'' command.
5129 (info_architecture): Delete function.
5131 2001-05-10 Andrew Cagney <ac131313@redhat.com>
5133 * TODO (5.1, 5.2): Update.
5135 2001-05-09 Andrew Cagney <ac131313@redhat.com>
5137 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
5140 2001-05-10 Keith Seitz <keiths@cygnus.com>
5142 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.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.
5150 (gdbtk-hooks.o): Ditto.
5151 (gdbtk-varobj.o): Ditto.
5153 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5155 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
5156 variables, not just unregister them.
5158 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5160 * varobj.c (c_number_of_children): Check for target type of void*,
5161 not the target type name. Allow dereferencing char*.
5163 2001-05-10 Fernando Nasser <fnasser@redhat.com>
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
5170 (symbol_file_add_main): Ditto.
5172 2001-05-09 Kevin Buettner <kevinb@redhat.com>
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
5179 2001-05-09 Kevin Buettner <kevinb@redhat.com>
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
5186 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
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.
5193 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
5194 unmaintaned, and probably on its way to obsolescence.
5196 2001-05-09 Mark Kettenis <kettenis@gnu.org>
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.
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
5212 2001-05-08 Jim Blandy <jimb@redhat.com>
5214 * Makefile.in (mn10300-tdep.o): New rule.
5216 * Makefile.in (gdb_string_h): Define. Use it throughout.
5217 Some rules were already using this, even though it isn't defined.
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.
5223 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
5224 static. (This was accidentally omitted from the earlier patch.)
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.
5230 Correct and expand handling of `movm' instruction, and register
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.
5243 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
5244 dummy_breakpoint_offset; it's zero.
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.
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.
5268 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
5271 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
5272 in some rational order.
5274 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
5275 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
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
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.
5309 2001-05-08 Andrew Cagney <ac131313@redhat.com>
5311 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
5313 (cli_ui_out_impl): Update.
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
5321 (ui_out_list_begin, ui_out_list_end): New. Compatibility
5323 (struct ui_out_level): Add field type.
5324 (push_level, pop_level): Update. Add type parameter.
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
5330 (struct ui_out_impl): Update.
5332 2001-05-07 Andrew Cagney <ac131313@redhat.com>
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.
5352 2001-05-08 Michael Snyder <msnyder@redhat.com>
5354 * language.c (longest_local_hex_string_custom): Strlen test is
5355 inverted -- reverse the sense of the test.
5357 2001-05-08 Mark Kettenis <kettenis@gnu.org>
5359 * config/i386/tm-i386v.h (struct frame_info, struct
5360 frame_saved_regs): Remove declarations.
5361 (i386_frame_num_args): Remove prototype.
5363 2001-05-07 Andrew Cagney <ac131313@redhat.com>
5365 * MAINTAINERS: I'm no longer actively maintaining the mn10300
5368 2001-05-04 Andrew Cagney <ac131313@redhat.com>
5370 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
5373 2001-05-06 Kevin Buettner <kevinb@redhat.com>
5375 * inferior.h (save_inferior_ptid): Declare.
5376 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
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):
5384 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
5386 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5387 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5389 * somsolib.c (reset_inferior_ptid): Delete.
5390 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
5391 build the cleanup struct.
5393 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5394 a cleanup to save/restore inferior_ptid.
5396 2001-05-06 Mark Kettenis <kettenis@gnu.org>
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
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
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.
5433 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
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".
5440 2001-05-05 Jim Blandy <jimb@redhat.com>
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.
5448 * breakpoint.c (check_duplicates): Take a breakpoint object as an
5449 argument, rather than an address and section. All callers changed.
5451 2001-05-03 Kevin Buettner <kevinb@redhat.com>
5453 * defs.h (ptid_t): New typedef.
5454 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
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.
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):
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):
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.
5621 * gdbthread.h (thread_id_to_pid): Change return type which
5622 represents a combined process/thread id from ``int'' to
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):
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):
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.
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
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
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
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
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
5731 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
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.
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
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.
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.
5781 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
5783 * corelow.c (add_to_thread_list): Convert argument in add_thread()
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.
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.
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
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.
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
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.
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.
5826 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
5827 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
5829 * gdbarch.h, gdbarch.c: Regenerated.
5831 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
5833 * rdi-share/devsw.c: Include <time.h> for struct tm
5835 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5837 * config/djgpp/fnchange.lst: Add mappings for the new
5838 opcodes/openrisc-* files.
5840 2001-05-01 Michael Snyder <msnyder@redhat.com>
5842 * lin-lwp.c: Change printf to fprintf_unfiltered.
5843 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
5845 2001-05-01 Nicholas Duffek <nsd@redhat.com>
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
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
5859 2001-04-30 J.T. Conklin <jtc@redback.com>
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.
5865 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
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.
5872 2001-04-30 Michael Snyder <msnyder@redhat.com>
5874 * thread-db.c: Revert 2001-04-26 change for debugging output.
5876 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
5877 command to turn extra debugging output on / off.
5879 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
5881 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
5882 (top-level): #include filenames.h.
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.
5889 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5891 * gdbtypes.c (check_stub_method): Always initialize ``p''.
5893 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5895 * configure.host: Delete romp host.
5898 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5900 * TODO: Updates to 5.1. No more targets to obsolete.
5902 2001-04-27 Don Howard <dhoward@redhat.com>
5904 (Changes from Kevin Buettner, with minor update by Don Howard.)
5906 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
5907 typos in which hexadecimal constants were really intended to be
5909 (i387_tag): Swap logic regarding zero vs non-zero exponents.
5910 * MAINTAINERS (Misc): Added myself to the write-after-approval
5913 2001-04-26 Jim Blandy <jimb@redhat.com>
5915 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
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
5926 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
5927 Deleted. These services are now provided by functions declared in
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
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).
5949 2001-04-26 Michael Snyder <msnyder@redhat.com>
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.
5955 * lin-lwp.c: Minor cleanups in comments.
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.
5959 2001-04-24 Jim Blandy <jimb@redhat.com>
5961 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
5962 qualifier on C++ references; all references are innately const.
5964 2001-04-20 Mark Kettenis <kettenis@gnu.org>
5966 * event-top.h: Fix formatting.
5968 2001-04-17 Andrew Cagney <ac131313@redhat.com>
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.
5986 2001-04-19 Mark Kettenis <kettenis@gnu.org>
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.
5993 2001-04-18 Martin M. Hunt <hunt@redhat.com>
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.
5999 2001-04-18 Andrew Cagney <ac131313@redhat.com>
6001 * arch-utils.c: Include "regcache.h".
6003 2001-04-18 Mark Kettenis <kettenis@gnu.org>
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.
6010 2001-04-17 Michael Snyder <msnyder@redhat.com>
6012 * i386-nat.c: Fix typo in comment.
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.
6018 2001-04-16 Andrew Cagney <ac131313@redhat.com>
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.
6046 2001-04-17 Michael Snyder <msnyder@redhat.com>
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.
6053 2001-04-17 Michael Snyder <msnyder@redhat.com>
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.
6062 2001-04-17 Michael Snyder <msnyder@redhat.com>
6064 * thread-db.c (check_thread_signals): When looping over all
6065 signals, ignore signal zero.
6066 (disable_thread_signals): Ditto.
6068 2001-04-17 Eirik Fuller <eirik@netapp.com>
6070 * thread.c (do_captured_thread_select): Allow the argument to the
6071 thread command to be an expression rather than a literal integer.
6073 2001-04-17 Mark Kettenis <kettenis@gnu.org>
6075 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
6076 read_memory_unsigned_integer instead of read_memory_integer.
6078 2001-04-16 Kevin Buettner <kevinb@redhat.com>
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.
6085 2001-04-16 Kevin Buettner <kevinb@redhat.com>
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().
6091 2001-04-16 Kevin Buettner <kevinb@redhat.com>
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.
6097 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
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.
6103 2001-04-16 Mark Kettenis <kettenis@gnu.org>
6105 * i386-tdep.c (i386_frame_chain): New function.
6106 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
6108 (i386_frame_chain): New prototype.
6110 2001-04-14 J.T. Conklin <jtc@redback.com>
6112 * target.h (target_ops): Removed to_core_file_to_sym_file vector
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.
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.
6141 2001-04-13 Fernando Nasser <fnasser@redhat.com>
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.
6149 2001-04-12 Kevin Buettner <kevinb@redhat.com>
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''
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.
6163 2001-04-12 Nicholas Duffek <nsd@redhat.com>
6165 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
6168 2001-04-12 Kevin Buettner <kevinb@redhat.com>
6170 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
6172 2001-04-09 Andrew Cagney <ac131313@redhat.com>
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.
6188 2001-04-10 J.T. Conklin <jtc@redback.com>
6190 * maint.c: Fix typo in comment.
6192 2001-04-09 Keith Seitz <keiths@cygnus.com>
6194 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
6196 2001-04-08 Kevin Buettner <kevinb@redhat.com>
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.
6203 2001-04-08 Kevin Buettner <kevinb@redhat.com>
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.
6210 2001-04-06 J.T. Conklin <jtc@redback.com>
6212 * dcache.c (dcache_write_line): Fixed bugs where cache line was
6213 not written to target correctly.
6215 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
6217 * gdbserver/low-nbsd.c: Likewise.
6218 * gdbserver/low-sparc.c: Likewise.
6219 * gdbserver/low-sun3.c: Likewise.
6221 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
6223 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
6224 (PTRACE_DETACH): Don't define.
6226 2001-04-06 David Smith <dsmith@redhat.com>
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().
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.
6247 2001-04-05 Andrew Cagney <ac131313@redhat.com>
6249 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
6250 and powerpc-*-netware* target.
6251 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
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.
6268 2001-04-06 Fernando Nasser <fnasser@redhat.com>
6270 * buildsym.c (record_line): Turn off unused addr bits.
6272 2001-04-06 Fernando Nasser <fnasser@redhat.com>
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'.
6278 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
6280 * monitor.c (monitor_supply_register): Only report an error if we
6281 don't get a valid value.
6283 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
6285 * README: Don't mention gdba.el.
6287 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
6294 2001-04-04 Andrew Cagney <ac131313@redhat.com>
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
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.
6313 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
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.
6322 * symfile.c (symfile_bfd_open): Ditto.
6324 2001-04-04 Martin M. Hunt <hunt@redhat.com>
6326 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
6327 Handle all stream setup in gdbtk_init
6329 2001-04-04 Mark Kettenis <kettenis@gnu.org>
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.
6335 2001-04-03 Andrew Cagney <ac131313@redhat.com>
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.
6345 2001-04-03 Andrew Cagney <ac131313@redhat.com>
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.
6355 2001-04-02 J.T. Conklin <jtc@redback.com>
6357 * remote-mips.c (S_IROTH): Moved definition from here.
6358 * gdb_stat.h (S_IROTH): to here.
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
6367 (remote_resume, remote_async_resume): Support e/E command
6369 (show_remote_cmd): Show state of remote_protocol_e and
6371 (_initialize_remote): Add "set remote step-over-range-packet"
6372 and "set remote step-over-range-w-signal-packet" to CLI.
6374 2001-04-01 Andrew Cagney <ac131313@redhat.com>
6376 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
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-*):
6382 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
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.
6403 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
6405 * config/djgpp/fnchange.lst: Tweak due to
6406 expect/example/chesslib.c.
6408 2001-04-02 Kevin Buettner <kevinb@redhat.com>
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
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().
6425 2001-03-20 Daniel Berlin <dberlin@redhat.com>
6427 * symtab.c (completion_list_add_name): Remove duplicate string checks,
6428 readline already does this, and it's much faster at it, too.
6430 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
6432 * go32-nat.c: Minor tweaks, to pacify the ari script.
6434 2001-04-01 Mark Kettenis <kettenis@gnu.org>
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.
6441 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
6442 value to `unsigned long'. Change type of `value' to `unsigned
6444 (i386_linux_dr_set): Change type of second argument to `unsigned
6446 (i386_linux_dr_set_control): Change type of first argument to
6448 (i386_linux_dr_get_status): Change type of return value to
6450 * config/i386/nm-linux.h (i386_linux_dr_set_control,
6451 i386_linux_dr_get_status): Adjust prototypes accordingly.
6453 2001-03-31 Kevin Buettner <kevinb@redhat.com>
6455 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
6456 TRAP_HWBKPT constant to match that in the kernel headers for
6459 2001-03-31 Mark Kettenis <kettenis@gnu.org>
6461 * i386bsd-nat.c: Include "gdb_assert.h".
6462 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
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
6477 * config.in, configure: Regenerate.
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.
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.
6491 2001-03-30 Mark Kettenis <kettenis@gnu.org>
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.
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.
6501 2001-03-28 Andrew Cagney <ac131313@redhat.com>
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.
6507 2001-03-28 Andrew Cagney <ac131313@redhat.com>
6509 * configure.in (build_warnings): Add -Wuninitialized.
6510 * configure: Regenerate.
6512 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
6513 * sparc-tdep.c (sparc64_push_arguments): Add default case to
6515 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
6516 expression with if statement.
6517 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
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.
6526 2001-03-28 Andrew Cagney <ac131313@redhat.com>
6528 * MAINTAINERS: Change ns32k target to ,-Werror.
6530 * ns32k-tdep.c: Include "gdbcore.h"
6531 (flip_bytes): Change first argument to void*. Add forward
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.
6539 2001-03-28 Mark Kettenis <kettenis@gnu.org>
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.
6554 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
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.
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.
6568 2001-03-19 J.T. Conklin <jtc@redback.com>
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.
6619 * memattr.c (create_mem_region): Removed unused variable.
6620 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
6622 2001-03-27 Nick Clifton <nickc@redhat.com>
6624 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
6626 2001-03-27 Kevin Buettner <kevinb@redhat.com>
6628 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
6631 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
6633 * TODO (Cleanups): Remove the item about converting docs to GFDL.
6635 2001-03-26 Kevin Buettner <kevinb@redhat.com>
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
6642 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
6644 2001-03-26 Kevin Buettner <kevinb@redhat.com>
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
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
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.
6691 2001-03-26 Kevin Buettner <kevinb@redhat.com>
6693 * symtab.c (find_pc_sect_line): Revise method used for finding
6696 2001-03-26 Mark Kettenis <kettenis@gnu.org>
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.
6708 2001-03-26 Andrew Cagney <ac131313@redhat.com>
6710 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
6711 * TODO (GDB 5.1 - Cleanups): Update.
6713 2001-03-26 Andrew Cagney <ac131313@redhat.com>
6715 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
6718 2001-03-26 Mark Kettenis <kettenis@gnu.org>
6720 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
6722 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
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.
6732 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
6734 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
6735 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
6737 * config/djgpp/djconfig.sh: Add copyright notice.
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.
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.
6760 2001-03-25 Jim Blandy <jimb@redhat.com>
6762 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
6764 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6766 From Andrew Cagney <ac131313@redhat.com>
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.
6772 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6774 From Andrew Cagney <ac131313@redhat.com>
6776 * coffread.c (coff_symtab_read): Initialize
6777 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
6779 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
6781 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6783 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
6784 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
6787 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
6788 * gdbarch.h, gdbarch.c: Re-generate.
6790 * target.h (SOFTWARE_SINGLE_STEP_P)
6791 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
6793 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6795 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
6796 * gdbarch.h, gdbarch.c: Regenerate.
6798 * regcache.h (regcache_read, regcache_write): Declare.
6799 (registers, register_valid, register_buffer): Add note that these
6800 interfaces are deprecated.
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.
6814 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
6817 2001-03-23 Jim Blandy <jimb@redhat.com>
6819 Fix from Dan Berlin:
6821 * stabsread.c (read_cpp_abbrev): Properly construct the names of
6822 virtual function table pointer fields.
6824 2001-03-19 Andrew Cagney <ac131313@redhat.com>
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
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.
6843 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6845 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
6846 ``shell_file'' static locals.
6848 * jv-lang.c (java_link_class_type): Initialize ``field'' and
6851 * jv-valprint.c (java_value_print): Initialize ``next_element''.
6853 2001-03-23 Mark Kettenis <kettenis@gnu.org>
6855 * config/i386/nm-i386.h: Fix formatting and change reference to
6856 i386-tdep.c to i386-nat.c.
6858 2001-03-23 David Smith <dsmith@redhat.com>
6860 * configure.in: Corrected spelling errors.
6861 * configure: Regenerated.
6863 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6865 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
6867 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6869 * Makefile.in (NTSSTART): Delete.
6871 (kdb): Delete target.
6872 * kdb-start.c, stuff.c: Mark as obsolete.
6875 2001-03-22 Andrew Cagney <ac131313@redhat.com>
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
6883 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6885 * exec.c (xfer_memory): Always initialize section.
6886 * infrun.c (normal_stop): Always initialize source_flag.
6888 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6890 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
6891 non-use of a continue address and typical use of ``q'' packet.
6893 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
6895 Make DJGPP use the new unified support for hardware
6896 breakpoints and watchpoints on x86 targets:
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.
6911 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
6913 * go32-nat.c <top level>: Remove prototypes for watchpoint-
6914 related functions. Remove definitions of watchpoint-related
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.
6925 2001-03-21 Kevin Buettner <kevinb@redhat.com>
6927 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
6928 than two instead of generating an error.
6930 2001-03-21 Jim Blandy <jimb@redhat.com>
6932 * cp-valprint.c: Reformat to bring into line with GNU coding
6935 2001-03-21 Mark Kettenis <kettenis@gnu.org>
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
6965 2001-03-21 Jim Blandy <jimb@redhat.com>
6967 Fix from Dan Berlin:
6969 * linespec.c (find_methods): Whitespace differences aren't
6970 significant in *un*mangled method names. Use strcmp_iw to compare
6973 2001-03-21 Andrew Cagney <ac131313@redhat.com>
6975 * gdbarch.sh: Allow a non- multi-arch target to override a
6977 * gdbarch.h: Regenerate.
6979 2001-03-21 Andrew Cagney <ac131313@redhat.com>
6981 * gdbarch.sh: Avoid use of ``!''.
6983 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6985 * target.h (enum target_signal): Move definition from here.
6986 * defs.h (enum target_signal): To here.
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.
6994 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6996 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
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.
7008 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
7010 Unified support for hardware breakpoints and watchpoints on
7013 * config/i386/nm-i386.h: New file.
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.
7028 * i386-nat.c: New file.
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
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.
7048 * Makefile.in (i386-nat.o): New target.
7049 (ALLDEPFILES): Add i386-nat.o.
7051 2001-03-21 Mark Kettenis <kettenis@gnu.org>
7053 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
7054 appropriate comment.
7056 2001-03-20 Kevin Buettner <kevinb@redhat.com>
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.
7066 2001-03-20 Jim Blandy <jimb@redhat.com>
7068 Fix from Dan Berlin:
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.
7074 2001-03-20 Andrew Cagney <ac131313@redhat.com>
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.
7090 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7092 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
7093 with internal_error.
7095 2001-03-20 Jim Blandy <jimb@redhat.com>
7097 Fix from Dan Berlin:
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.
7103 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
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.
7109 2001-03-19 Kevin Buettner <kevinb@redhat.com>
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.
7116 2001-03-19 Kevin Buettner <kevinb@redhat.com>
7118 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
7119 same line to avoid problems with Unixware 7's make when building
7122 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7124 * defs.h (malloc): Move declaration from here.
7125 * utils.c (malloc): To here.
7126 * config/pa/xm-hppah.h (malloc): Delete declaration.
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
7138 * remote-rdp.c (rdp_set_command_line): Ditto.
7140 2001-03-19 Andrew Cagney <ac131313@redhat.com>
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.
7149 2001-03-19 Andrew Cagney <ac131313@redhat.com>
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.
7156 2001-03-19 Kevin Buettner <kevinb@redhat.com>
7158 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
7161 2001-03-19 Andrew Cagney <ac131313@redhat.com>
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__
7167 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7169 * TODO: List known problems with TUI.
7171 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7173 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
7176 2001-03-19 Andrew Cagney <ac131313@redhat.com>
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''.
7184 2001-03-19 Andrew Cagney <ac131313@redhat.com>
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.
7190 2001-03-17 Andrew Cagney <ac131313@redhat.com>
7192 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
7193 Code copied from c-exp.y.
7195 2001-03-18 Kevin Buettner <kevinb@redhat.com>
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.
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
7218 2001-03-18 Kevin Buettner <kevinb@redhat.com>
7220 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
7221 line to avoid build problem on NetBSD 1.4.
7223 2001-03-17 Michael Chastain <chastain@redhat.com>
7225 * win32-nat.c (child_attach): check args for NULL before passing
7226 to strtoul. This fixes PR gdb/43.
7228 2001-03-17 Mark Kettenis <kettenis@gnu.org>
7230 * i387-nat.h: Doc Fix.
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
7238 2001-03-17 Mark Kettenis <kettenis@gnu.org>
7240 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
7241 no longer used. Also remove associated FIXME.
7243 2001-03-16 Andrew Cagney <ac131313@redhat.com>
7245 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
7246 not generate macro wrappers for multi-arch functions or
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.
7252 2001-03-16 J.T. Conklin <jtc@redback.com>
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.
7272 2001-03-16 Kevin Buettner <kevinb@redhat.com>
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
7282 2001-03-15 Kevin Buettner <kevinb@redhat.com>
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().
7290 2001-03-15 Martin Hunt <hunt@redhat.com>
7292 * linespec.c (decode_line_1): Remove trailing quote
7293 when parsing double quotes.
7295 2001-03-15 Kevin Buettner <kevinb@redhat.com>
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.
7301 2001-03-15 Andrew Cagney <ac131313@redhat.com>
7303 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
7304 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
7306 2001-03-15 Andrew Cagney <ac131313@redhat.com>
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.
7316 2001-03-14 Andrew Cagney <ac131313@redhat.com>
7318 * NEWS: Mention that Harris/CXUX m88k is obsolete.
7320 2001-03-13 Andrew Cagney <ac131313@redhat.com>
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.
7368 2001-03-14 Andrew Cagney <ac131313@redhat.com>
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.
7376 2001-03-14 Keith Seitz <keiths@cygnus.com>
7378 * linespec.c (decode_line_1): Skip argptr over a leading
7379 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
7381 2001-03-14 Kevin Buettner <kevinb@redhat.com>
7383 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
7385 2001-03-13 Andrew Cagney <ac131313@redhat.com>
7387 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
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 *.
7401 2001-03-08 Andrew Cagney <ac131313@redhat.com>
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.
7419 2001-03-13 Fernando Nasser <fnasser@redhat.com>
7421 From Steven Johnson <sjohnson@neurizon.net>
7422 * cli/cli-script.c (define_command): Fix setting of post hooks.
7424 2001-03-13 Mark Kettenis <kettenis@gnu.org>
7426 * i386-linux-tdep.c: Fix formatting and clarify comments.
7427 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
7430 2001-03-12 Andrew Cagney <ac131313@redhat.com>
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.
7437 (S_exception_raise_request): Ditto.
7438 (gnu_terminal_init_inferior): Ditto.
7440 2001-03-09 Kevin Buettner <kevinb@redhat.com>
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
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
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.
7467 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
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.
7504 2001-03-09 Kevin Buettner <kevinb@redhat.com>
7506 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
7508 2001-03-09 Andrew Cagney <ac131313@redhat.com>
7510 * MAINTAINERS (Write After Approval): Update Philip Blundell.
7512 2001-03-09 Keith Seitz <keiths@cygnus.com>
7514 * MAINTAINERS: Add myself to write after approval list.
7516 2001-03-09 Mark Kettenis <kettenis@gnu.org>
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.
7521 2001-03-08 Andrew Cagney <ac131313@redhat.com>
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.
7531 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7533 * Makefile.in: Delete rules for obsolete files.
7535 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
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.
7542 2001-03-08 Andrew Cagney <ac131313@redhat.com>
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
7548 2001-03-07 Andrew Cagney <ac131313@redhat.com>
7550 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
7551 with SID on Solaris 8.
7553 2001-03-07 Mark Kettenis <kettenis@gnu.org>
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
7567 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
7569 * top.c (init_main): Make `set history file name' complete on file
7572 2001-03-06 J.T. Conklin <jtc@redback.com>
7574 * Makefile.in (LINTFLAGS): Update to contain all of the macros
7575 which define include paths used when compiling.
7577 * util.c (savestring, msavestring): Change type of length argument.
7578 * defs.h (savestring, msavestring): Update to match.
7580 * symtab.h (decode_line_1): Removed declaration.
7582 * symfile.c (#include <assert.h>): Removed.
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.
7591 * c-valprint.c (#include "demangle.h"): Removed.
7592 * ch-typeprint.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.
7602 * m2-typeprint.c (#include "gdb_string.h"): Removed.
7603 * nlmread.c: Likewise.
7605 * mdebugread.c (#include "gdb-stabs.h"): Removed.
7606 * minsyms.c: Likewise.
7607 * mipsread.c: Likewise.
7608 * nlmread.c: Likewise.
7610 * m2-typeprint.c (#include "obstack.h"): Removed.
7611 * m2-valprint.c: Likewise.
7613 * event-loop.c (#include <setjmp.h>): Removed.
7615 2001-03-06 Stan Shebs <shebs@apple.com>
7617 * MAINTAINERS: Remove self from specific maintenance domains
7618 (macos, gdbserver, documentation, testsuite).
7620 2001-03-06 Kevin Buettner <kevinb@redhat.com>
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
7829 2001-03-05 Kevin Buettner <kevinb@redhat.com>
7831 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
7832 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
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
7838 (ia64-*-aix*): Define NEW_PROC_API for this host.
7839 * configure: Regenerate.
7840 * config.in: Regenerate.
7842 * configure.host (ia64-*-aix*): New host.
7843 * configure.tgt (ia64-*-aix*): New target.
7845 2001-03-05 Andrew Cagney <ac131313@redhat.com>
7847 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
7849 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
7851 * wince.c: Change realloc to xrealloc throughout.
7852 (handle_load_dll): Use void * rather than PTR in argument.
7854 2001-03-04 Andrew Cagney <ac131313@redhat.com>
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.
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
7868 * dsrec.c (make_srec): Fix internal_error fmt arg.
7869 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
7871 2001-03-03 Kevin Buettner <kevinb@redhat.com>
7873 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
7876 2001-03-02 Andrew Cagney <ac131313@redhat.com>
7878 * MAINTAINERS (paper trail): Update.
7880 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
7882 2001-03-02 Andrew Cagney <ac131313@redhat.com>
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.
7888 * config/mn10200/tm-mn10200.h: Include "regcache.h".
7889 * MAINTAINERS: Document that mn10200-elf target is buildable.
7891 2001-03-02 Kevin Buettner <kevinb@redhat.com>
7893 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
7895 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
7896 (MONTEREY): Don't define.
7899 2001-03-02 Matt Hiller <hiller@redhat.com>
7901 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
7903 2001-03-02 Kevin Buettner <kevinb@redhat.com>
7905 * sparc-nat.c (sparc-nat.c): Don't include self.
7907 2001-03-01 J.T. Conklin <jtc@redback.com>
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.
7914 * i386-stub.c (handle_exception): Use 'T' response packet.
7916 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7918 * m32r-tdep.c: Fix cut and paste error in comment.
7920 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7922 * symtab.c (print_msymbol_info): Print addresses by portable method
7923 longest_local_hex_string_custom. Allow for 64-bit addresses.
7925 2001-03-01 J.T. Conklin <jtc@redback.com>
7927 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
7928 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
7929 (MIN_OF_TYPE): Likewise.
7931 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
7933 2001-03-01 Andrew Cagney <ac131313@redhat.com>
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)''.
7939 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7941 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
7943 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7945 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
7949 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7951 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
7954 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
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).
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.
7967 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
7969 * regcache.h (register_valid): Fix comment documenting valid
7972 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
7974 From Steven Johnson:
7975 * regcache.h: New file.
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.
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.
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.
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.
8018 * fr30-tdep.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.
8049 * irix4-nat.c: Ditto.
8050 * irix5-nat.c: Ditto.
8052 * lin-thread.c: Ditto.
8053 * lynx-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.
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.
8075 * ns32km3-nat.c: Ditto.
8076 * ns32knbsd-nat.c: Ditto.
8078 * pa64solib.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.
8112 * rom68k-rom.c: Ditto.
8113 * rs6000-nat.c: Ditto.
8114 * rs6000-tdep.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.
8128 * thread-db.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.
8138 * w65-tdep.c: Ditto.
8139 * w89k-rom.c: Ditto.
8140 * win32-nat.c: Ditto.
8142 * z8k-tdep.c: Ditto.
8144 2001-02-28 Matt Hiller <hiller@redhat.com>
8146 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
8148 2001-02-27 Matt Hiller <hiller@redhat.com>
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.
8154 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
8156 * symtab.c (search_symbols): Fix off by one error in test for
8159 2001-02-23 Andrew Cagney <ac131313@redhat.com>
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.
8165 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
8166 * config/sparc/tm-sp64linux.h: New file.
8168 2001-02-24 Kevin Buettner <kevinb@redhat.com>
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):
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):
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):
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):
8217 2001-02-23 Andrew Cagney <ac131313@redhat.com>
8219 * CONTRIBUTE: Document how to cite a problem report.
8220 * TODO: Note need to replace CONTRIBUTE with generated file.
8222 * CONTRIBUTE: Mention that patches do not need to include the
8223 generated files gdbarch.h and gdbarch.c.
8225 2001-02-21 Andrew Cagney <ac131313@redhat.com>
8227 * value.h (get_saved_register): Move from here.
8230 2001-02-21 Kevin Buettner <kevinb@redhat.com>
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
8250 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
8251 member in svr4_so_ops.
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.
8258 (ia64_gdbarch_init): Provide for initialization of
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
8264 2001-02-20 Kevin Buettner <kevinb@redhat.com>
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.
8274 2001-02-20 Andrew Cagney <ac131313@redhat.com>
8276 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
8279 2001-02-20 Kevin Buettner <kevinb@redhat.com>
8281 * solib-aix5.c (solib-svr4.h): Remove include.
8282 (solib_break_names): Delete names which aren't actually
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.
8291 2001-02-19 Andrew Cagney <ac131313@redhat.com>
8293 * Makefile.in (SFILES): Add frame.c .
8294 (COMMON_OBS): Add frame.o .
8295 (frame.o): New target.
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.
8304 2001-02-20 Kevin Buettner <kevinb@redhat.com>
8306 * solib-aix5.c: New file.
8308 2001-02-20 Martin M. Hunt <hunt@redhat.com>
8310 * solib.c (info_sharedlibrary_command): Don't assume pointers
8311 are the same size of long, call longest_local_hex_string_custom().
8313 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
8314 extract_signed_integer() should be called instead of
8317 2001-02-20 Martin M. Hunt <hunt@redhat.com>
8319 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
8321 2001-02-19 Andrew Cagney <ac131313@redhat.com>
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.
8327 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8329 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
8330 accomodate 64-bit addresses.
8332 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
8339 2001-02-18 Andrew Cagney <ac131313@redhat.com>
8341 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
8343 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
8345 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
8346 (save_prologue_cache): Ditto.
8348 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8350 From: innadadadavida@yahoo.com:
8351 * partial-stab.h (switch): Check that pst is not null
8352 before dereferencing it.
8354 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8356 From Andrew Cagney <cagney@b1.cygnus.com>:
8357 * symfile.c (add_symbol_file_command): Always initialize
8358 my_cleanup using a NULL cleanup.
8360 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
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.
8368 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
8369 file-name completion.
8371 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
8373 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
8374 `solib-absolute-prefix'.
8376 * tracepoint.c (_initialize_tracepoint): Ditto for
8379 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
8381 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
8382 file-name completion.
8384 * infcmd.c (_initialize_infcmd): Make the following commands use
8385 the file-name completer: `tty', `args', `path', `paths', and
8388 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
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.
8398 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
8400 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
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.
8409 2001-02-17 Mark Kettenis <kettenis@gnu.org>
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.
8419 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8421 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
8422 instead of TARGET_PTR_BIT (to support Harvard architectures).
8424 2001-02-16 Andrew Cagney <ac131313@redhat.com>
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.
8431 2001-02-12 Michael Chastain <chastain@redhat.com>
8433 * somsolib.c (som_solib_add_solib_objfile): Do not use
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.
8438 2001-02-16 Andrew Cagney <ac131313@redhat.com>
8440 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
8442 2001-02-16 Andrew Cagney <ac131313@redhat.com>
8444 * MAINTAINERS (paper trail): Update.
8446 2001-02-16 Mark Kettenis <kettenis@gnu.org>
8448 * target.h (target_fetch_registers): Fix comment.
8450 2001-02-15 Andrew Cagney <ac131313@redhat.com>
8452 * f-exp.y: Include <ctype.h>.
8453 (parse_number): Ensure that ``i'' is always initialized.
8455 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
8457 * MAINTAINERS: Add myself to paper trail section.
8459 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8461 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
8462 * configure, config.in: Regenerate.
8463 * corelow.c: Include <sys/file.h> if present.
8465 2001-02-14 Andrew Cagney <ac131313@redhat.com>
8467 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
8468 declare when have SIGTTOU.
8470 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
8472 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
8474 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
8476 * MAINTAINERS: Update my email address.
8478 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
8480 * NEWS: Document that "info symbol" works with COFF debug info and
8483 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
8484 symbols whose SYMBOL_BFD_SECTION is NULL.
8486 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
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
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
8500 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8502 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
8503 with xmalloc calls and cleanups.
8505 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8507 * rs6000-nat.c (child_xfer_memory): Add missing parameter
8508 'struct mem_attrib *' required by 2001-01-23 change.
8510 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
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
8516 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
8518 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
8520 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
8522 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
8524 From Dean Luick <luick@cray.com>:
8525 * defs.h (continuation): Remove unused global variable.
8527 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
8529 * configure.tgt: Remove references to convex, pyramid, altos and
8531 * configure.host: Ditto.
8532 * MAINTAINERS: Ditto.
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.
8565 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
8567 * defs.h (internal_error, internal_verror): Add __FILE__ and
8569 * utils.c (internal_error, internal_verror): Update.
8571 * v850-tdep.c: Update calls to internal_error.
8577 * symm-nat.c: Ditto.
8578 * sparc-tdep.c: Ditto.
8581 * rs6000-tdep.c: Ditto.
8582 * rs6000-nat.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.
8593 * m68k-tdep.c: Ditto.
8595 * language.c: Ditto.
8596 * infptrace.c: Ditto.
8597 * inferior.h: 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.
8607 * event-loop.c: Ditto.
8608 * dwarf2read.c: Ditto.
8610 * d30v-tdep.c: Ditto.
8611 * d10v-tdep.c: Ditto.
8612 * cli/cli-setshow.c: Ditto.
8613 * cli/cli-script.c: Ditto.
8615 * breakpoint.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.
8623 2001-02-07 Andrew Cagney <ac131313@redhat.com>
8625 From Mark Kettenis <kettenis@gnu.org>:
8626 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
8628 2001-02-07 Andrew Cagney <ac131313@redhat.com>
8630 * remote-sim.c (dump_mem): Cleanup printf format argument.
8631 * MAINTAINERS: Update, mn10300-elf now builds.
8633 2001-02-07 Mark Kettenis <kettenis@gnu.org>
8635 * event-top.c: Remove duplicate #include <signal.h>.
8637 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8639 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
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.
8645 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8647 * MAINTAINERS: Add ``The Obvious Fix Rule''.
8649 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8651 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
8653 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
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
8665 (init_gdbarch_data): Use set_gdbarch_data.
8666 (set_gdbarch_data): New function.
8668 * gdbarch.h, gdbarch.c: Re-generate.
8670 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8672 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
8673 fprintf_filtered with correct arguments.
8675 2001-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.
8681 * regcache.c: Ditto.
8683 * sol-thread.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.
8688 2001-02-04 Philip Blundell <philb@gnu.org>
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.
8699 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
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.
8710 2001-02-05 Christopher Faylor <cgf@cygnus.com>
8712 * win32-nat.c: Change PTR to void * throughout.
8714 2001-02-05 J.T. Conklin <jtc@redback.com>
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.
8724 * utils.c: Likewise.
8725 * Makefile.in: Removed signals.h from dependencies.
8727 2001-02-05 Christopher Faylor <cgf@cygnus.com>
8729 Change suggested by Dean Luick <luick@cray.com>
8730 * inferior.h (step_over_calls_kind): Remove trailing comma from
8732 (step_over_calls): Declare as extern rather than global.
8734 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
8742 2001-02-05 Michael Chastain <chastain@redhat.com>
8744 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
8745 to conform with interface change.
8747 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
8749 * config/djgpp/fnchange.lst: Tweak to make consistent with the
8752 * config/djgpp/djconfig.sh: Use explicit absolute file name when
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>
8759 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
8760 with target.h's `to_xfer_memory' member.
8762 2001-02-02 J.T. Conklin <jtc@redback.com>
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.
8778 2001-02-02 John Moore <jmoore@redhat.com>
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.
8787 2001-02-02 John Moore <jmoore@redhat.com>
8789 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
8790 xfree(). Also changed Copyright to include 2001.
8792 2001-02-02 J.T. Conklin <jtc@redback.com>
8794 * monitor.c (#include "gdb_wait.h"): Removed.
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.
8824 2001-01-31 David Smith <dsmith@redhat.com>
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.
8834 2001-01-31 David Smith <dsmith@redhat.com>
8836 * MAINTAINERS: Add David Smith to Write After Approval list.
8838 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
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.
8845 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
8847 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
8848 AC_FUNC_VFORK macro.
8849 * config.in, configure: Re-generate.
8851 * gdb_vfork.h: New file.
8852 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
8853 * fork-child.c (fork_inferior): Ditto.
8855 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
8857 * defs.h (strsave): Delete declaration.
8858 * utils.c (strsave): Delete definition.
8859 * TODO (strsave): Update
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.
8870 * sh3-rom.c (sh3_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.
8883 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
8885 * cli/cli-script.c (define_command): Check for a bad hook value in
8888 2001-01-30 J.T. Conklin <jtc@redback.com>
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.
8896 2001-01-29 Michael Chastain <chastain@redhat.com>
8898 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
8899 symbol comparisons in binary search.
8901 2001-01-27 Christopher Faylor <cgf@cygnus.com>
8903 * win32-nat.c (child_xfer_memory): Add missing argument required by
8906 2001-01-27 Mark Kettenis <kettenis@gnu.org>
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
8917 2001-01-26 Fernando Nasser <fnasser@redhat.com>
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
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
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
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.
8970 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
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.
8977 * gdb_string.h: Remove declaration of strdup. Update copyright
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.
8987 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
8989 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
8991 2001-01-25 J.T. Conklin <jtc@redback.com>
8993 * target.c (target_xfer_memory_partial): Return -1 on failure due
8994 to invalid access mode attribute.
8996 2001-01-25 Christopher Faylor <cgf@cygnus.com>
8998 * win32-nat.c (_initialize_core_win32): Prototype correctly.
9000 2001-01-25 Mark Kettenis <kettenis@gnu.org>
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.
9008 2001-01-24 Fernando Nasser <fnasser@redhat.com>
9010 * top.c (print_gdb_version): Update Copyright year.
9012 2001-01-24 J.T. Conklin <jtc@redback.com>
9014 * dcache.c (dcache_write_line): Fix typo.
9016 * memattr.c (delete_mem_region): Replace free() with xfree().
9017 (mem_number): Add explicit type.
9019 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
9020 (rw_common): Likewise.
9022 2001-01-24 Fernando Nasser <fnasser@redhat.com>
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.
9030 2001-01-23 Jim Blandy <jimb@redhat.com>
9032 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
9033 Implement these correctly, using make_cv_type.
9035 2001-01-23 J.T. Conklin <jtc@redback.com>
9037 * exec.c (xfer_memory): Add attrib argument.
9038 * infptrace.c (child_xfer_memory): Likewise.
9039 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
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.
9061 * thread-db.c (thread_db_xfer_memory): Likewise.
9063 * target.h (#include "memattr.h"): Added.
9064 (target_ops.to_xfer_memory): Add attrib argument.
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
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.
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
9091 (dcache_info): Always print cache info.
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
9097 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
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.
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.
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.
9119 * i386-stub.c: Re-indent.
9120 * m68k-stub.c: Re-indent.
9122 2001-01-22 Nicholas Duffek <nsd@redhat.com>
9124 * gdbarch.sh (PARM_BOUNDARY): Define.
9125 * gdbarch.c: Regenerate.
9126 * gdbarch.h: Regenerate.
9128 2001-01-22 J.T. Conklin <jtc@redback.com>
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.
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
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.
9154 2001-01-19 Jason Merrill <jason@redhat.com>
9156 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
9157 (process_one_symbol): Likewise.
9158 * dwarfread.c (handle_producer): Likewise.
9160 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
9162 * configure.in (build_warnings): Disable -Wuninitialized until GDB
9163 compiles with -Wuninitialized,-Werror.
9164 * configure: Regenerate.
9166 * MAINTAINERS: Add list of buildable targets.
9168 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
9170 * defs.h (STRCMP): Delete macro.
9172 * objfiles.c (objfile_relocate): Replace STRCMP with call to
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.
9180 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
9182 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
9184 * varobj.c (FREEIF): Delete macro.
9185 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
9188 2001-01-18 Nick Clifton <nickc@redhat.com>
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.
9194 2001-01-09 James Ingham <jingham@inghji.apple.com>
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.
9201 2001-01-18 Mark Kettenis <kettenis@gnu.org>
9203 * infcmd.c (print_return_value): Restore another space lost by
9204 switch to UIOUT. ``$NN='' should be ``$NN =''.
9206 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
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.
9212 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9214 From 2000-10-27 Mark Salter <msalter@redhat.com>:
9215 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
9217 (remote_insert_hw_breakpoint): Ditto.
9219 2001-01-17 J.T. Conklin <jtc@redback.com>
9221 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9222 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
9223 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
9224 * m68knbsd-tdep.c: New file.
9226 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
9228 * m68knbsd-nat.c: #include gdbcore.h.
9230 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
9232 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
9234 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
9236 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
9237 goes away -- just return false (ie. not stopped by watchpoint).
9238 * source.c (openp): Fix typo in comment.
9240 2001-01-12 Nicholas Duffek <nsd@redhat.com>
9242 * blockframe.c (generic_get_saved_register): Spelling fix.
9243 * frame.h (FRAME_FP): Spelling fix.
9245 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
9247 * infcmd.c (print_return_value): Restore space lost by switch to
9248 UIOUT. ``$NN='' should be ``$NN =''.
9250 2001-01-08 Nicholas Duffek <nsd@redhat.com>
9252 * regcache.c (set_register_cached, register_buffer,
9253 real_register, pseudo_register fetch_register, store_register):
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
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().
9276 2001-01-08 Nicholas Duffek <nsd@redhat.com>
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
9282 (supply_register): Spelling fix.
9283 * value.h: Change "regno" to "regnum".
9285 2001-01-08 Fernando Nasser <fnasser@redhat.com>
9287 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
9290 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
9292 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
9294 2001-01-04 Nicholas Duffek <nsd@redhat.com>
9296 * valops.c (VALUE_SUBSTRING_START): Delete.
9298 2001-01-04 Nicholas Duffek <nsd@redhat.com>
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.
9307 2001-01-04 Nicholas Duffek <nsd@redhat.com>
9309 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
9310 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
9312 2001-01-03 J.T. Conklin <jtc@redback.com>
9314 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
9317 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
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
9322 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
9323 Update copyright notice.
9325 For older changes see ChangeLog-2000
9331 version-control: never