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