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