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