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