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