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