1 2001-11-29 Jim Blandy <jimb@redhat.com>
3 * s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
4 save the return address register, assume that the return address
7 2001-11-27 Andrew Cagney <ac131313@redhat.com>
9 * MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
12 2001-11-25 Jim Blandy <jimb@redhat.com>
14 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
16 2001-11-27 Jim Blandy <jimb@redhat.com>
18 * s390-tdep.c: Get frame chains and saved pc values properly from
20 (s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
21 saved PC from the dummy frame's registers.
22 (s390_frame_chain): Same for the saved SP.
23 (s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
24 the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
27 * s390-tdep.c (s390_frame_chain): Remember that the SP's element
28 of the frame's saved_regs array is special.
30 * s390-tdep.c (register_names): Call the general-purpose registers
31 `r0' -- `r15', and the floating-point registers `f0' -- `f15', to
32 match the assembly language.
34 2001-11-26 Pierre Muller <muller@ics.u-strasbg.fr>
36 * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
37 HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
38 * win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include
39 extended registers if HAVE_SSE_REGS is defined.
40 (mappings array): Add offset of extended registers.
41 (thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
43 2001-11-26 Tom Tromey <tromey@redhat.com>
46 * event-loop.c (start_event_loop): Call
47 after_char_processing_hook.
48 * event-top.h (after_char_processing_hook): Declare.
49 * event-top.c (rl_callback_read_char_wrapper): Call
50 after_char_processing_hook.
51 (after_char_processing_hook): New global.
52 * top.c (operate_saved_history): New global.
53 (gdb_rl_operate_and_get_next): New function.
54 (init_main): Add the operate-and-get-next defun.
55 (gdb_rl_operate_and_get_next_completion): New function.
57 2001-11-26 Tom Tromey <tromey@redhat.com>
59 * NEWS: Update for --args.
60 * infcmd.c (construct_inferior_arguments): Moved from ...
61 * fork-child.c: ... here.
63 2001-11-26 Jim Blandy <jimb@redhat.com>
65 * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
66 comment explaining that hand-written assembly code can have line
67 number info but no debug info for an enclosing function.
69 2001-11-26 Jakub Jelinek <jakub@redhat.com>
71 * sparc-nat.c (fetch_inferior_registers): Don't rely
72 on CORE_ADDR being 32-bit.
73 (store_inferior_registers): Likewise.
75 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
77 * config/djgpp/config.sed: Fix an error in etc/ at "make install"
78 time on non-LFN systems where standards*.inf* expands to nothing.
80 * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
82 2001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
83 Christopher Faylor <cgf@redhat.com>
85 * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
86 be able to remove the DLL when unloaded. Remove unused last field.
87 (handle_unload_dll): New function to handle unloading of DLL.
88 (solib_symbols_add): Change return type to struct objfile *.
89 (get_child_debug_event): Call handle_unload_dll function.
91 2001-11-24 Christopher Faylor <cgf@redhat.com>
93 * win32-nat.c (_initialize_check_for_gdb_ini): New function.
94 * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
95 (GDBINIT_FILENAME): Remove.
97 2001-11-23 Mark Kettenis <kettenis@gnu.org>
99 Add x86 OpenBSD native configuration.
100 * config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
101 config/i386/nm-obsd.h: New files.
102 * configure.host (i[3456]86-*-openbsd*): New host.
103 * configure.tgt (i[3456]86-*-openbsd*): New target.
106 2001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
108 * GDB 5.1 was released.
110 2001-11-21 Tom Tromey <tromey@redhat.com>
112 Fix for PR gdb/209, PR gdb/156:
113 * gdbarch.c, gdbarch.h: Rebuilt.
114 * gdbarch.sh: Added `construct_inferior_arguments'.
115 * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
117 * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
118 * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
119 (inferior_argc, inferior_argv): New globals.
120 (notice_args_set): New function.
121 (set_inferior_args): Clear inferior_argc and inferior_argv.
122 (set_inferior_args_vector): New function.
123 (get_inferior_args): Handle inferior argument vector.
124 (run_command): Use get_inferior_args().
125 (notice_args_read): New function.
126 (_initialize_infcmd): Don't call set_inferior_args.
127 * command.h: Typo fix.
128 (cmd_list_element): Added pre_show_hook.
129 * main.c (captured_main): Added --args option.
130 (print_gdb_help): Document --args.
131 * inferior.h (construct_inferior_arguments): Declare.
132 (set_inferior_args_vector): Likewise.
133 * fork-child.c (construct_inferior_arguments): New function.
135 2001-11-21 Kevin Buettner <kevinb@redhat.com>
137 * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
140 * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
142 2001-11-20 Jim Blandy <jimb@redhat.com>
144 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
145 default definition; this is never used.
147 2001-11-20 Keith Seitz <keiths@redhat.com>
149 * varobj.c (c_value_of_child): Release memory for "name" when
151 (c_type_of_child): Likewise.
152 (cplus_value_of_child): Isolate the use of name_of_child to
153 one case that needs it.
154 Release memory for "name" when finished using it.
156 2001-11-20 Keith Seitz <keiths@redhat.com>
158 * top.c (gdb_init): Call init_ui_hook before initializing
161 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
163 * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
166 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
168 * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
169 accessing registers[].
170 (fill_fpregset): Ditto.
172 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
174 * infptrace.c (fetch_register): Dynamically allocate buffer for
176 (store_register): Use regcache_collect, instead of accessing the
177 register buffer directly.
179 2001-11-19 Daniel Jacobowitz <drow@mvista.com>
181 * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
182 cur_frame to heuristic_proc_desc.
183 (heuristic_proc_desc): Add cur_frame argument. Do not read SP
185 (after_prologue): Pass cur_frame == 0 to find_proc_desc.
186 (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
187 (mips_init_extra_frame_info): Likewise.
189 2001-11-19 Andrew Cagney <ac131313@redhat.com>
191 * defs.h (return_to_top_level): Comment.
193 Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
195 * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
196 concatenation for error parameter.
197 (remote_cisco_open): Ditto.
199 2001-11-19 Keith Seitz <keiths@redhat.com>
201 * varobj.c (c_value_of_child): Use the wrapper function,
202 gdb_value_struct_elt.
203 (cplus_value_of_child): Likewise.
205 2001-11-18 Andrew Cagney <ac131313@redhat.com>
207 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
208 * config/i386/tm-i386.h (NUM_REGS): Delete.
210 2001-11-18 Kevin Buettner <kevinb@redhat.com>
212 * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
213 conversion for I386_LINUX_ORIG_EAX_REGNUM.
215 2001-11-18 Andrew Cagney <ac131313@redhat.com>
217 * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
218 * config/i386/tm-embed.h: Delete.
220 2001-11-17 Andrew Cagney <ac131313@redhat.com>
222 * Makefile.in (distclean): Explicitly delete Makefile et.al. in
223 gdbserver sub directory.
225 2001-11-17 Andrew Cagney <ac131313@redhat.com>
227 * README: Mention need for alloca(). Mention problems with
228 alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
230 2001-11-17 Kevin Buettner <kevinb@redhat.com>
232 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
233 of accessing registers[] directly.
235 2001-11-17 Kevin Buettner <kevinb@redhat.com>
237 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
238 when fetching ORIG_EAX.
240 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
242 * arm-linux-nat.c: Don't include <asm/ptrace.h>.
243 (fetch_register): Use elf_gregset_t instead of struct pt_regs.
244 (fetch_regs): Likewise.
245 (store_register): Likewise.
246 (store_regs): Likewise.
248 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
250 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
251 with regcache_collect.
252 (fill_fpregset): Likewise.
254 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
256 * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
257 and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
258 * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
259 * sparc-linux-nat.c: New file, from Mark Kettenis.
261 2001-11-16 Jakub Jelinek <jakub@redhat.com>
263 * dwarf2read.c (dwarf_str_buffer): New.
264 (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
265 (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
266 (dwarf2_has_info): Clear dwarf_str_offset.
267 (dwarf2_build_psymtabs): Read .debug_str section if present.
268 (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
270 (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
271 (read_attribute): Handle DW_FORM_strp.
272 (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
274 (read_indirect_string): New.
275 (dump_die): Handle DW_FORM_strp.
277 2001-11-16 Jim Blandy <jimb@redhat.com>
279 * s390-tdep.c: Tweak argument-passing to match GCC bugs.
280 (is_float_singleton, is_struct_like, is_float_like): New
281 functions, that isolate the weirdness.
282 (is_double_or_float, is_simple_arg, pass_by_copy_ref,
283 is_double_arg): Use is_struct_like and is_float_like, rather than
284 testing the type codes ourselves.
285 (s390_push_arguments): When passing args on the stack, align each
286 on to a four-byte boundary, regardless of what the type itself
289 2001-11-16 Ben Harris <bjh21@netbsd.org>
291 * Makefile.in (os9kread.o): Replace $< with autoconf-approved
296 2001-11-16 Ben Harris <bjh21@netbsd.org>
298 * MAINTAINERS (write-after-approval): Add self.
300 2001-11-15 Jim Blandy <jimb@redhat.com>
302 * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
303 bytes long should be handled as DOUBLE_ARGs; don't recognize them
306 2001-11-12 Andrew Cagney <ac131313@redhat.com>
308 * remote.c (struct packet_reg): Declare.
309 (struct remote_state): Add fields sizeof_g_packet and g_packet.
310 (init_remote_state): Initialize sizeof_g_packet and g_packet.
311 (free_remote_state): Free g_packet.
312 (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
313 (remote_wait): Use above instead of gdbarch methods
314 REGISTER_RAW_SIZE and REGISTER_BYTES.
315 (remote_async_wait): Ditto.
316 (remote_fetch_registers, remote_store_registers): Ditto.
317 (store_register_using_P): Ditto.
319 2001-11-15 Andrew Cagney <ac131313@redhat.com>
321 * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
324 2001-11-15 Andrew Cagney <ac131313@redhat.com>
326 * utils.c (phex_nz): For default case, set str to phex_nz return
330 2001-11-15 Andrew Cagney <ac131313@redhat.com>
332 * TODO (register_buffer): Delete.
333 * regcache.c (register_buffer): Make static.
334 (regcache_collect): New function.
335 * regcache.h (register_buffer): Delete declaration.
336 (regcache_collect): Declare.
337 * remote.c (store_register_using_P): Rewrite using
339 (remote_store_registers): Ditto.
340 * go32-nat.c (store_register): Ditto.
342 2001-11-14 Andrew Cagney <ac131313@redhat.com>
344 * remote.c (struct remote_state): Declare.
345 (get_remote_state): New function.
346 (init_remote_state): New function.
347 (remote_gdbarch_data_handle): New global.
348 (build_remote_packet_sizes): Delete function, moved to
350 (register_remote_packet_sizes): Delete function.
351 (actual_register_packet_size, remote_packet_size): Moved to
352 ``struct remote_state''.
353 (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
354 (free_remote_state): New function.
355 (get_memory_packet_size, get_memory_read_packet_size)
356 (set_thread, remote_unpack_thread_info_response)
357 (remote_get_threadinfo, parse_threadlist_response)
358 (remote_get_threadlist, remote_current_thread)
359 (remote_threads_info, remote_threads_extra_info)
360 (extended_remote_restart, get_offsets)
361 (get_offsets, remote_check_symbols, remote_open_1)
362 (remote_async_open_1, remote_detach, remote_async_detach)
363 (remote_resume, remote_async_resume, remote_wait)
364 (remote_async_wait, remote_fetch_registers)
365 (store_register_using_P, remote_store_registers)
366 (check_binary_download, putpkt_binary)
367 (remote_insert_breakpoint, remote_remove_breakpoint)
368 (remote_insert_watchpoint, remote_remove_watchpoint)
369 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
370 (compare_sections_command, remote_query)
371 (remote_rcmd, remote_rcmd, packet_command)
372 (remote_info_process): Update.
374 2001-11-14 Andrew Cagney <ac131313@redhat.com>
376 * remote.c: Include "gdb_assert.h".
377 (tty_input): Wire buffer to 400 bytes.
378 (readsocket): Check tty_input doesn't overflow.
379 (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
382 2001-11-14 Michael Snyder <msnyder@redhat.com>
384 * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
385 TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
386 into the instruction address space.
387 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
389 2001-11-14 Michael Snyder <msnyder@redhat.com>
390 Add address space identifiers to expression language for types.
391 * c-exp.y (space_identifier, cv_with_space_id,
392 const_or_volatile_or_space_identifier_noopt,
393 const_or_volatile_or_space_identifier): New terminals.
394 (ptype): Accept const_or_volatile_or_space_identifier.
395 (typebase): Accept const_or_volatile_or_space_identifier.
396 * c-typeprint.c (c_type_print_cv_qualifier): Rename to
397 c_type_print_modifier. Handle address space modified types.
398 * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
400 (struct type): Add new field as_type for addr-space qualified types.
401 (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
402 identical to this one except for address-space qualification.
403 * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
404 (address_space_name_to_int): New function.
405 (address_space_int_to_name): New function.
406 (make_type_with_address_space): New function.
407 (make_cv_type): Handle as_type field of new struct type object.
408 * parse.c (check_type_stack_depth): New function.
409 (push_type_address_space): New function.
410 (follow_types): Handle types with address-space qualifier.
411 * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
413 2001-11-14 Jim Blandy <jimb@redhat.com>
415 * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
416 pointer and the SP are often the same, so we can't pop the frame
417 by setting the SP to the FP; we need to get the old SP from
420 * s390-tdep.c (s390_extract_return_value): Returned `float' values
421 can simply be copied bitwise from the registers into the value
424 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
425 the frame's saved_regs array correctly.
427 * symfile.c (simple_read_overlay_table): Make sure we can find
428 both `_novlys' and `_ovly_table' before we try anything else;
429 print a helpful error message.
430 (simple_overlay_update): No need to print error message here.
432 2001-11-14 Michael Snyder <msnyder@redhat.com>
434 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
436 2001-11-10 Andrew Cagney <ac131313@redhat.com>
438 * arm-tdep.c (arm_register_type): New function.
439 (arm_register_convertible): Delete.
440 (arm_register_convert_to_virtual): Delete.
441 (arm_register_convert_to_raw): Delete.
442 * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
443 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
444 (REGISTER_CONVERT_TO_RAW): Delete.
445 (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
446 (arm_register_type): Declare.
448 2001-11-13 Elena Zannoni <ezannoni@redhat.com>
450 From Andrew Cagney <cagney@redhat.com>:
451 * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
452 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
455 2001-11-13 Jim Blandy <jimb@redhat.com>
457 * s390-tdep.c: Rewrite inferior function call code. This may
458 break zSeries support; that should be fixed soon.
459 #include "gdb_assert.h".
460 (is_integer_like, is_pointer_like, is_simple_arg,
461 pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
462 round_down, alignment_of): New functions.
463 (s390_push_arguments): Rewritten to handle passing large arguments
464 by value, and to make more readable.
466 * s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
467 interact correctly with generic dummy frames.
468 (s390_pop_frame_regular): Move the guts of the frame-popping code
469 to here, to be called by generic_pop_current_frame. Use the
470 frame's saved_regs array; this works for `return' as well as
471 inferior function calls.
473 * s390-tdep.c (s390_gdbarch_init): Register the function
474 `standard_coerce_float_to_double', since GCC for the S/390 follows
475 the standard rules for passing floats.
477 * valops.c (default_coerce_float_to_double,
478 standard_coerce_float_to_double): Doc fixes.
480 Patch from Peter Schauer:
482 * symtab.c (find_pc_sect_line): If we can't find the function
483 containing PC, we certainly won't have line number information for
484 that location, so return zero immediately.
486 2001-11-10 Andrew Cagney <ac131313@redhat.com>
488 * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
489 (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
491 * i960-tdep.c (i960_register_type): New function.
492 * config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
493 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
494 (REGISTER_CONVERT_TO_RAW): Delete.
495 (REGISTER_VIRTUAL_TYPE): Update. Call i960_register_type.
497 2001-11-10 Andrew Cagney <ac131313@redhat.com>
499 * m88k-tdep.c (m88k_register_type): New function.
500 * config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
501 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
502 (REGISTER_CONVERT_TO_RAW): Delete.
503 (m88k_register_type): Declare.
504 (REGISTER_VIRTUAL_TYPE): Update. Call m88k_register_type.
506 2001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
508 * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
509 * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
510 * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
511 (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
513 2001-11-12 Jim Blandy <jimb@redhat.com>
515 Patch from Andreas Schwab <schwab@suse.de>:
516 * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
519 2001-11-12 Jim Blandy <jimb@redhat.com>
521 * corefile.c (write_memory_unsigned_integer,
522 write_memory_signed_integer): New functions.
523 (write_memory): Move to be with other write_memory_* functions.
524 * gdbcore.h (write_memory_unsigned_integer,
525 write_memory_signed_integer): New declarations.
527 2001-11-11 Geoffrey Keating <geoffk@redhat.com>
529 * dwarf2read.c (dwarf_decode_lines): Properly deal with
530 unknown standard opcodes.
532 2001-11-11 Andrew Cagney <ac131313@redhat.com>
534 * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
535 (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
536 (i586-sco-sysv5uw7.1.1): Mention problem with threads.
538 2001-11-11 Andrew Cagney <ac131313@redhat.com>
540 From Mark Kettenis <kettenis@gnu.org>:
541 * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
542 breakpoints when they fail.
544 2001-11-10 Andrew Cagney <ac131313@redhat.com>
546 * printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
547 gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
548 Replace value_ptr with struct value.
550 2001-11-10 Andrew Cagney <ac131313@redhat.com>
552 * c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
553 p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
554 value_ptr with struct value.
556 2001-11-10 Andrew Cagney <ac131313@redhat.com>
558 * eval.c: Replace most occurances of value_ptr with struct value.
560 2001-11-09 Jim Blandy <jimb@redhat.com>
562 * s390-tdep.c: Don't use a call dummy.
563 (s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
564 (s390_push_return_address): Put the address of the inferior call
567 - Provide trivial definition of s390_call_dummy_words; register it
568 with the gdbarch appropriately.
569 - Delete S390x_call_dummy_words.
570 - Gather inferior-call-related settings into a group.
571 - Use generic dummy frames.
572 - Put the inferior call breakpoint at the entry point.
573 - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
574 generic_push_dummy_frame, generic_fix_call_dummy.
575 - There is a call dummy breakpoint offset; it's zero.
577 * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
578 into the dummy frame, to help us get backtraces.
580 * values.c (value_as_address): If VAL is a function or method,
581 just return its address; don't let COERCE_ARRAY convert its
582 address to a pointer, and then have unpack_long convert it back to
585 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
587 * p-lang.c (is_pascal_string_type): New function to determine if a
588 type is a string type.
589 * p-lang.h: Add prototype for is_pascal_string_type.
590 * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
591 to display strings nicely.
593 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
595 * p-exp.y (yylex): Only change case of expression if symbol is found.
596 Also check for GPC standard name form.
598 2001-11-08 Andrew Cagney <ac131313@redhat.com>
600 * gdb_indent.sh: New file.
602 2001-11-08 Jim Blandy <jimb@redhat.com>
604 * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
605 got_load_len, to placate compiler.
607 2001-11-08 Mark Kettenis <kettenis@gnu.org>
609 * i386-tdep.c (i386_gdbarch_init): Fix typo.
611 2001-11-08 Jim Blandy <jimb@redhat.com>
613 * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
614 file_frame_chain_valid.
616 * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
617 from the constant pool, but doesn't add in the constant pool's
618 address to it, then this function probably isn't using r12 as a
619 GOT pointer, and that load probably wasn't part of the prologue.
621 * s390-tdep.c (s390_gdbarch_init): Use the default
622 prepare_to_proceed function established by config/nm-linux.h;
623 don't try to set it to linuxthreads_prepare_to_proceed.
625 Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
627 * i386-tdep.c: Include "i386-tdep.h".
629 (i386_gdbarch_init): New function.
630 (_initialize_i386_tdep): Register bfd_arch_i386.
631 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
632 GDB_MULTI_ARCH_PARTIAL.
633 * i386-tdep.h: When partially multi-arch, conditionally define
636 Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
638 * i386-tdep.c (set_disassembly_flavor): Delete function.
639 (set_disassembly_flavor_sfunc): Delete function.
641 2001-11-07 Elena Zannoni <ezannoni@redhat.com>
643 * dbxread.c (set_namestring): New function, replacing the
644 SET_NAMESTRING macro.
645 (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
646 CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
648 (read_dbx_symtab): Don't include partial-stab.h any more. Don't
649 reuse code in partial-stab.h, include the code directly, instead.
651 * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
652 (HFILES_NO_SRCDIR): Remove partial-stab.h.
654 * partial-stab.h: Remove file.
656 2001-11-07 Andrew Cagney <ac131313@redhat.com>
658 * gdbarch.sh: For multi-arch functions, check there is a
659 predefault and use it as the static default.
660 * gdbarch.c: Re-generate.
662 2001-11-08 Mark Kettenis <kettenis@gnu.org>
664 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
665 terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
666 hardcoding the register number.
668 2001-11-07 Andrew Cagney <ac131313@redhat.com>
670 * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
671 generic_use_struct_convention.
672 * gdbarch.h, gdbarch.c: Regenerate.
673 * values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
676 2001-11-06 Andrew Cagney <ac131313@redhat.com>
678 * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
679 * gdbarch.c: Regenerate.
681 2001-11-06 Fred Fish <fnf@redhat.com>
683 * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
685 * dwarf2read.c: Ditto.
686 * dwarfread.c: Ditto.
690 * mdebugread.c: Ditto.
694 * tracepoint.c: Ditto.
696 2001-11-06 Andrew Cagney <ac131313@redhat.com>
698 * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
699 David Taylor and Nick Duffek in past maintainers.
701 2001-11-06 Elena Zannoni <ezannoni@redhat.com>
703 * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
704 END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
705 (parse_partial_symbols): Don't include partial-stab.h any
706 more. Don't reuse code in partial-stab.h, include the code
707 directly, instead. Simplify code from partial-stab.h eliminating
708 ifdef DBXREAD_ONLY code.
710 * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
712 2001-11-06 Jim Blandy <jimb@redhat.com>
714 * s390-nat.c: #include "regcache.h", to get declaration for
715 `supply_register'. (The last change already added the dependency
716 of s390-nat.o on regcache.h. Oops.)
718 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
719 (s390-tdep.o, s390-nat.o): New rules.
721 * s390-nat.c (s390_register_u_addr): Pass proper arguments to
724 2001-11-06 Andrew Cagney <ac131313@redhat.com>
726 * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
727 * gdbarch.c: Regenerate.
729 2001-11-06 Andrew Cagney <ac131313@redhat.com>
731 * blockframe.c (get_prev_frame): Replace #ifdef
732 INIT_EXTRA_FRAME_INFO with run-time test.
734 2001-11-05 Andrew Cagney <ac131313@redhat.com>
736 * gdbarch.sh (push_return_address): Change to a function with
738 * gdbarch.h, gdbarch.c: Re-generate.
739 * valops.c (hand_function_call): Replace #ifdef
740 PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
742 2001-11-06 Corinna Vinschen <vinschen@redhat.com>
744 * arch-utils.c (generic_in_function_epilogue_p): New function.
745 * arch-utils.h (generic_in_function_epilogue_p): Declare extern.
746 * breakpoint.c (watchpoint_check): Add test whether the pc is
747 currently in the epilogue of a function.
748 * gdbarch.c: Autogenerated from gdbarch.sh.
750 * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
752 2001-11-05 Jim Blandy <jimb@redhat.com>
754 * config/s390/s390.mh (NATDEPFILES): Don't split this across
755 several lines with backslashes; the `sed' command in
756 configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
757 assignment doesn't handle lines extended with backslashes.
759 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
760 using `+=' as well as `='.
761 * configure: Regenerated.
763 2001-11-05 Andrew Cagney <ac131313@redhat.com>
765 * gdbarch.sh (init_extra_frame_info): Change to a function with
767 * gdbarch.h, gdbarch.c: Re-generate.
768 * blockframe.c (create_new_frame): Replace #ifdef
769 INIT_EXTRA_FRAME_INFO with run-time test of
770 INIT_EXTRA_FRAME_INFO_P.
772 2001-11-05 Andrew Cagney <ac131313@redhat.com>
774 * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
775 error messages. Print in a single batch.
776 * gdbarch.c: Re-generate.
778 2001-11-04 Mark Kettenis <kettenis@gnu.org>
780 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
781 fill_gregset): Add support for "orig_eax" register.
783 Add support for "orig_eax" pseudo register on Linux/x86.
784 * i386-linux-tdep.c: Include "inferior.h".
785 (i386_linux_register_name, i386_linux_register_byte,
786 i386_linux_register_raw_size): New functions.
787 (i386_linux_write_pc): New function.
788 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
789 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
790 REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
792 (i386_linux_register_name, i386_linux_register_byte,
793 i386_linux_register_raw_size): New prototypes.
794 (TARGET_WRITE_PC): New define.
795 (i386_linux_write_pc): New prototype.
797 * i386-tdep.c (i386_register_offset): Renamed from
798 i386_register_byte. Made static.
799 (i386_register_size): Renamed from i386_register_raw_size. Made
801 (i386_register_virtual_size): Removed.
802 (i386_register_byte, i386_register_raw_size,
803 i386_register_virtual_size): New functions.
804 (_initialize_i386_tdep): Initialize i386_register_offset instead
805 of i386_register_byte. Remove code to initialize
806 i386_register_virtual_size.
807 * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
808 i386_register_byte function.
809 (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
811 (REGISTER_VIRTUAL_SIZE): Redefine to use
812 i386_register_virtual_size function.
813 (i386_register_byte, i386_register_raw_size,
814 i386_register_virtual_size): New functions.
816 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
817 (i387-nat.o): Add dependencies.
819 2001-11-02 Andrew Cagney <ac131313@redhat.com>
821 * README: Mention problem with alpha-dec-osf5.1.
823 2001-11-02 Andrew Cagney <ac131313@redhat.com>
825 * utils.c (internal_verror): Restore calls to abort().
828 2001-11-02 Michael Chastain <mec@shout.net>
830 * MAINTAINERS: Update my entry.
832 2001-11-01 Michael Snyder <msnyder@redhat.com>
834 * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
835 operator names, to avoid regexp expansion.
836 (search_symbols): Alloca buffer is too small, may get clobbered.
838 2001-11-01 Fred Fish <fnf@redhat.com>
840 * coff-solib.c (coff_solib_add): Add new readsyms arg.
841 * irix5-nat.c (solib_add): Ditto.
842 * osfsolib.c (solib_add): Ditto.
843 * pa64solib.c (pa64_solib_add): Ditto.
844 * pa64solib.c (add_to_solist): Ditto.
845 * pa64solib.c (read_dld_descriptor): Ditto.
846 * solib.c (solib_add): Ditto.
847 * somsolib.c (som_solib_add): Ditto.
848 * win32-nat.c (child_solib_add): Ditto.
849 * xcoffsolib.c (solib_add): Ditto.
851 * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
852 * pa64solib.c (add_to_solist): Ditto.
853 * pa64solib.c (read_dld_descriptor): Ditto.
854 * pa64solib.h (pa64_solib_add): Ditto.
855 * solib.h (solib_add): Ditto.
856 * somsolib.h (som_solib_add): Ditto.
857 * config/i386/tm-cygwin.h (child_solib_add): Ditto.
859 * coff-solib.c (coff_solib_add): If readsyms is zero don't read
860 symbols but do any other needed work for shared libs.
861 * irix5-nat.c: Ditto.
862 * osfsolib.c (solib_add): Ditto.
863 * solib.c (solib_add): Ditto.
864 * win32-nat.c (child_solib_add): Ditto.
865 * xcoffsolib.c (solib_add): Ditto.
867 * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
868 solib_add to force reading of shared library symbols.
869 * osfsolib.c (sharedlibrary_command;): Ditto.
870 * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
871 * solib.c (sharedlibrary_command): Ditto.
872 * somsolib.c (som_solib_sharedlibrary_command): Ditto.
873 * xcoffsolib.c (sharedlibrary_command): Ditto.
875 * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
876 unconditionally with auto_solib_add.
877 * irix5-nat.c (solib_create_inferior_hook): Ditto.
878 * osfsolib.c (solib_create_inferior_hook): Ditto.
879 * solib.c (solib_create_inferior_hook): Ditto.
880 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
881 * solib-svr4.c (enable_break): Ditto.
882 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
884 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
886 * sol-thread.c (sol_thread_attach): Ditto.
887 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
889 * infcmd.c (attach_command): Remove auto_solib_add decl.
890 Call SOLIB_ADD directly with auto_solib_add.
891 * infrun.c (handle_inferior_event): Ditto.
893 * coff-solib.h (SOLIB_ADD): Add readsyms arg.
894 * pa64solib.h (SOLIB_ADD): Ditto.
895 * solib.h (SOLIB_ADD): Ditto.
896 * somsolib.h (SOLIB_ADD): Ditto.
897 * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
899 * fork-child.c (clone_and_follow_inferior): Remove unused
902 * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
903 (read_dld_descriptor): Ditto.
904 (pa64_solib_add): Call read_dld_descriptor with readsyms.
905 (pa64_solib_in_dynamic_linker): Ditto.
907 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
908 * sol-thread.c (symfile.h): Ditto.
910 2001-10-31 Andrew Cagney <ac131313@redhat.com>
912 * s390-nat.c (s390_remove_watchpoint): Use xfree.
913 (s390_insert_watchpoint): Use xmalloc.
915 2001-10-31 Andrew Cagney <ac131313@redhat.com>
917 * varobj.c: Replace value_ptr with ``struct value *''.
919 2001-10-31 Andrew Cagney <ac131313@redhat.com>
921 * varobj.c: Re-indent.
923 2001-10-31 Andrew Cagney <ac131313@redhat.com>
925 * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
926 ``value_ptr'' with ``struct value *''.
927 * s390-tdep.c (s390_push_arguments): Ditto.
929 2001-10-30 Andrew Cagney <ac131313@redhat.com>
931 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
933 (struct frame_info, struct value): Add opaque declarations.
935 2001-10-31 Corinna Vinschen <vinschen@redhat.com>
937 * arch-utils.c (generic_in_solib_call_trampoline): New function.
938 * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
939 * gdbarch.c: Regenerated from gdbarch.sh.
941 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
942 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
944 2001-10-31 Andrew Cagney <ac131313@redhat.com>
947 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
948 find_solib_trampoline_target.
950 2001-10-31 Andrew Cagney <ac131313@redhat.com>
952 * remote-vx.c (net_wait): Fix typo from PIDGET change.
954 2001-10-31 Mark Kettenis <kettenis@gnu.org>
956 * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
957 (REGISTER_NAME): New define.
958 (i386_register_name): New prototype.
959 * i386-tdep.c (i386_register_names): New variable.
960 (i386_register_name): New function.
961 * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
962 config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
965 2001-10-31 Christopher Faylor <cgf@redhat.com>
967 * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
968 the loaded DLL matches the on-disk case since the debugging API does
969 not seem to ensure this. Calculate max name length here.
970 (handle_load_dll): Move max name length calculation to
973 2001-10-31 Daniel Jacobowitz <drow@mvista.com>
975 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
977 2001-10-30 Keith Seitz <keiths@redhat.com>
979 * wrapper.h (gdb_value_struct_elt): New function.
980 * wrapper.c (gdb_value_struct_elt): Ditto.
981 (do_captured_value_struct_elt): Ditto.
983 2001-10-30 Andrew Cagney <ac131313@redhat.com>
985 * README, NEWS: Update for 5.1.
987 2001-10-30 Andrew Cagney <ac131313@redhat.com>
989 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
991 * configure: Re-generate.
993 2001-10-30 Fred Fish <fnf@redhat.com>
995 * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
996 * pa64solib.c (add_to_solist): Ditto.
997 * win32-nat.c (_initialize_inftarg): Remove unnecessary
998 initialization of auto_solib_add, it defaults to 1.
1000 2001-10-27 Fred Fish <fnf@redhat.com>
1002 * symfile.c (auto_solib_add): Update comment to note that
1003 this variable is now just used as a boolean to control shlib
1004 autoloading, and clarify when it is used.
1005 * symfile.h (auto_solib_add): Ditto.
1007 * symfile.c (auto_solib_limit): New variable that holds the
1008 autoloading threshold instead of overloading auto_solib_add.
1009 * symfile.h (auto_solib_limit): Ditto.
1011 * irix5-nat.c (_initialize_solib): Change auto-solib-add
1012 variable from var_zinteger to var_boolean and update help.
1013 * osfsolib.c (_initialize_solib): Ditto.
1014 * pa64solib.c (_initialize_pa64_solib): Ditto.
1015 * solib.c (_initialize_solib): Ditto.
1016 * somsolib.c (_initialize_som_solib): Ditto.
1017 * xcoffsolib.c (_initialize_solib): Ditto.
1019 * pa64solib.c (pa64_solib_total_st_size): Update comment to
1020 note that the new auto_solib_limit variable is used instead
1021 of overloading auto_solib_add variable.
1022 (_initialize_pa64_solib): Ditto.
1023 * somsolib.c (som_solib_total_st_size): Ditto.
1024 (_initialize_som_solib): Ditto.
1026 * pa64solib.c (_initialize_pa64_solib): Add new set/show
1027 commands for auto-solib-limit variable.
1028 * somsolib.c (_initialize_som_solib): Ditto
1030 * pa64solib.c (add_to_solist): Check that auto_solib_add is
1031 set and use auto_solib_limit as the threshold size instead
1033 * somsolib.c (som_solib_add): Ditto, and also change warning
1034 text about size threshold exceeded.
1036 2001-10-21 Mark Kettenis <kettenis@gnu.org>
1038 * config/i386/tm-i386v.h: Don't include "regcache.h".
1039 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
1040 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
1041 Remove macros. The versions from "tm-i386.h" should work fine
1042 (and in most cases even better).
1044 2001-10-30 Mark Kettenis <kettenis@gnu.org>
1046 * i386-tdep.c (i386_extract_return_value): Use
1047 convert_typed_floating to extract floating-point value from
1049 (i386_store_return_value): Use convert_typed_floating to store
1050 floating-point return balue in register buffer
1051 (i386_register_virtual_type): Change type of floating-point
1052 registers to builtin_type_i387_ext.
1053 (i386_register_convert_to_virtual): Use convert_typed_floating to
1055 (i386_register_convert_to_raw): Likewise.
1057 2001-10-29 Mark Kettenis <kettenis@gnu.org>
1059 * doublest.h (convert_typed_floating): New prototype.
1060 * doublest.c (convert_typed_floating): New function.
1062 2001-10-28 Mark Kettenis <kettenis@gnu.org>
1064 * doublest.c: Improve comments a bit.
1065 (floatformat_from_length): New function.
1066 (NAN): Define to 0.0 if not already defined.
1067 (extract_floating): Rewrite to use floatformat_from_length. Warn
1068 instead of error if LEN doesn't match a known floating-point type,
1069 and return NaN (or 0.0 if NaN isn't available) in that case.
1070 (store_floating): Likewise, but zero out the target byte-stream if
1071 LEN doesn't match a known floating-point type.
1072 (extract_typed_floating): Reformat a bit.
1073 (store_typed_floating): Reformat a bit. Add comment about zeroing
1074 out padding in the target buffer.
1075 * doublest.h (extract_floating, store_floating): Fix comment about
1076 deprecation of these functions. Add parameter names to prototypes.
1078 2001-10-28 Mark Kettenis <kettenis@gnu.org>
1080 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
1081 convert RAW to a DOUBLEST instead of extract_floating.
1083 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
1084 builtin_type_i387_ext to floatformat_i387_ext.
1086 2001-10-24 Daniel Jacobowitz <drow@mvista.com>
1088 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
1089 (fill_fpregset): Likewise.
1091 2001-10-26 Orjan Friberg <orjanf@axis.com>
1093 * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
1094 struct, not just the NUM_SPECREGS first entries.
1095 (bdap_prefix): Read PC before autoincrement.
1097 2001-10-24 Corinna Vinschen <vinschen@redhat.com>
1099 * win32-nat.c (DebugSetProcessKillOnExit): New static function
1100 pointer to Windows' DebugSetProcessKillOnExit() function.
1101 (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
1102 (has_detach_ability): New function.
1103 (child_attach): If system has detach ability, enable it.
1104 (child_detach): If system has detach ability, actually
1105 detach from process.
1106 Change tty output to Linux format.
1108 2001-10-23 Jim Blandy <jimb@redhat.com>
1110 Isolate STABS readers' use of the `textlow' and `texthigh' fields
1111 of `struct partial_symtab' to only a few locations. This change
1112 is not supposed to affect the way the values are computed, only
1115 * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
1116 to the reader-specific structure.
1117 * mdebugread.c (struct symloc): Same.
1118 * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
1119 * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
1120 * dbxread.c (dbx_symfile_read): After we've built all our partial
1121 symbol tables, set each partial symtab's `textlow' and `texthigh'
1122 fields from our reader-specific structure.
1123 * mdebugread.c (mdebug_build_psymtabs): Same.
1124 * dbxread.c (start_psymtab): Initialize the reader-specific
1125 structure's `textlow' and `texthigh' from the new psymtab's.
1126 * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
1127 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
1128 the reader-specific `textlow' and `texthigh', not the generic
1130 * mdebugread.c (parse_lines, parse_partial_symbols,
1131 psymtab_to_symtab_1): Same.
1132 * partial-stab.h: Same.
1134 Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
1136 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
1139 Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
1141 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
1142 (som_solib_desire_dynamic_linker_symbols): Compare integers with
1144 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
1146 2001-10-21 Andrew Cagney <ac131313@redhat.com>
1148 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
1149 interface is always enabled.
1151 2001-10-21 Andrew Cagney <ac131313@redhat.com>
1153 * Makefile.in: Replace top.h with $(top_h). Replace expression.h
1154 with $(expression_h). Replace command.h with $(command_h).
1155 (language_h): Define. Replace language.h with $(language_h).
1156 Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
1158 (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
1159 (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
1160 (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
1161 (bcache_h, gdb_events_h, monitor_h): Ditto.
1162 (ser_unix_h, source_h): Ditto.
1163 (varobj_h): Update list.
1165 * call-cmds.h: Add CALL_CMDS_H macro wrapper.
1166 * solist.h: Add SOLIST_H macro wrapper.
1167 * monitor.h: Add MONITOR_H macro wrapper.
1168 * typeprint.h: Add TYPEPRINT_H macro wrapper.
1169 * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
1170 * valprint.h: Add VALPRINT_H macro wrapper.
1171 * top.h: Add TOP_H macro wrapper.
1173 2001-10-21 Andrew Cagney <ac131313@redhat.com>
1175 * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
1176 * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
1177 * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
1178 * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
1179 * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
1180 (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
1181 (x86-64-tdep.o): Update dependencies.
1182 * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
1183 * gdbarch.h, gdbarch.c: Re-generate.
1185 2001-10-21 Mark Kettenis <kettenis@gnu.org>
1187 * infptrace.c (child_xfer_memory): Fix a few coding standards
1190 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1192 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
1194 2001-10-20 Andrew Cagney <ac131313@redhat.com>
1196 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
1197 (struct value): Add opaque declaration. Replace value_ptr with
1199 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
1202 * wrapper.h (struct value): Add opaque declaration. Replace
1203 value_ptr with ``struct value *''.
1204 * wrapper.c: Replace value_ptr with ``struct value *''.
1205 * breakpoint.h, breakpoint.c: Ditto.
1206 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
1208 2001-10-20 Andrew Cagney <ac131313@redhat.com>
1210 * alpha-nat.c: Include <alpha/coreregs.h> instead of
1212 (fetch_osf_core_registers): Define core_reg_mapping in a way that
1213 works on OSF5 as well as previous OSF versions.
1215 2001-10-20 Christopher Faylor <cgf@redhat.com>
1217 * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
1218 may not be able to read them in certain situations.
1220 2001-10-18 Andrew Cagney <ac131313@redhat.com>
1222 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
1223 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
1225 2001-10-18 Andrew Cagney <ac131313@redhat.com>
1227 * README: Mention problems with HP/UX.
1229 2001-10-16 Andrew Cagney <ac131313@redhat.com>
1231 Based on code by John Moore <jmore@redhat.com>:
1233 * utils.c (core_addr_to_string): New function for conversion of
1234 CORE_ADDR to string.
1235 (string_to_core_addr): New function to convert from string to
1237 * defs.h: Added extern statements for the above.
1239 2001-10-17 Jason Molenda (jason-cl@molenda.com)
1241 * symtab.c (lookup_block_symbol): Break out of linear search
1242 if we're past the range of possible matches.
1244 2001-10-16 Christopher Faylor <cgf@redhat.com>
1246 * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
1247 load of already loaded DLL.
1248 (register_loaded_dll): Convert loaded DLL name to "posix" format or it
1249 will confuse subsequent opening of the filename due to dos paths.
1250 (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
1252 2001-10-15 Elena Zannoni <ezannoni@redhat.com>
1254 * symtab.c (lookup_block_symbol): Update comment.
1256 2001-10-15 Andrew Cagney <ac131313@redhat.com>
1258 * value.h (value_as_address): Rename value_as_pointer.
1259 * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
1260 jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
1263 202001-10-15 Jim Ingham <jingham@inghji.apple.com>
1265 * valarith.c (value_sub): Don't pass a raw type to
1266 value_from_pointer, it has to go through check_typedef first.
1268 2001-10-15 Andrew Cagney <ac131313@redhat.com>
1270 * gdbarch.sh (fallbackdefault): Set to one when predefault is
1272 * gdbarch.h: Regenerate.
1274 2001-10-15 Andrew Cagney <ac131313@redhat.com>
1276 * mips-tdep.c (mips_integer_to_address): New function.
1277 (mips_gdbarch_init): Initialize pointer_to_address,
1278 address_to_pointer and integer_to_address.
1280 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
1281 (ADDRESS_TO_POINTER): Delete.
1283 * d10v-tdep.c (d10v_integer_to_address): New function.
1284 (d10v_gdbarch_init): Initialize integer_to_address.
1286 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
1289 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
1290 * gdbarch.h, gdbarch.c: Regenerate.
1292 2001-10-14 Mark Kettenis <kettenis@gnu.org>
1294 * config/s390/nm-linux.h: Don't include <signal.h>.
1295 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1296 GET_THREAD_SIGNAL): Remove.
1298 * config/nm-linux.h (struct objfile): Remove forward declaration.
1299 (linuxthreads_new_objfile): Remove prototype.
1300 (linuxthreads_pid_to_str): Remove prototype.
1301 (PREPARE_TO_PROCEED): Redefine in terms of
1302 lin_lwp_prepare_to_proceed.
1303 (struct target_waitstatus): Forward declaration.
1304 (child_wait): New prototype.
1305 (CHILD_WAIT): Define.
1306 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1307 GET_THREAD_SIGNAL): Moved here from arch-specific files.
1308 * config/alpha/nm-linux.h, config/arm/nm-linux.h,
1309 config/ia64/nm-linux.h, config/mips/nm-linux.h,
1310 config/powerpc/nm-linux.h: Don't include <signal.h>.
1311 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1312 GET_THREAD_SIGNAL): Remove.
1313 * config/i386/nm-linux.h: Likewise.
1314 (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
1315 * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
1316 Remove linux-thread.o. Add proc-service.o, thread-db.o and
1318 (LOADLIBES): New variable.
1320 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
1322 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
1324 Fix attaching to cloned processes. This fixes PR gdb/61.
1325 * lin-lwp.c (struct lwp_info): Add new member `cloned'.
1326 (is_cloned) Removed.
1327 (lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
1328 waitpid explicitly. Mark the LWP as cloned if waitpid fails and
1329 retry with __WCLONE flag.
1330 (lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
1331 (detach_callback): Replace use of is_cloned with explicit check on
1332 LWP id and process id.
1333 (stop_wait_callback): Replace use of is_cloned with check if LWP
1334 is marked as cloned.
1335 [CHILD_WAIT] (child_wait): New function.
1336 (lin_lwp_wait): Replace use of is_cloned with check if LWP is
1337 marked as cloned. Mark newly detected LWPs as cloned if detected
1338 by waitpid with __WCLONE flag.
1339 (kill_wait_callback): Replace use of is_cloned with check if LWP
1340 is marked as cloned.
1341 * config/i386/nm-linux.h (struct target_waitstatus): Add forward
1343 (child_wait): Add prototype.
1344 (CHILD_WAIT): Define.
1346 2001-10-13 Andrew Cagney <ac131313@redhat.com>
1348 S/390 31 & 64 bit target and GNU/Linux native support.
1349 Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
1350 * s390-nat.c, s390-tdep.c: New file.
1351 * config/s390/nm-linux.h, config/s390/s390.mh: New file.
1352 * config/s390/s390.mt, config/s390/s390x.mt: New file.
1353 * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
1354 * config/s390/xm-linux.h: New file.
1356 * MAINTAINERS: Update.
1358 2001-10-13 Andrew Cagney <ac131313@redhat.com>
1360 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
1361 * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
1362 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1363 * gdbarch.c: Regenerate.
1365 2001-10-13 Mark Kettenis <kettenis@gnu.org>
1367 * thread-db.c: Fix a few formatting mistakes.
1369 2001-10-12 Christopher Faylor <cgf@redhat.com>
1371 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
1372 list pointer to beginning rather than one beyond beginning.
1374 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1376 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
1378 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1379 (make_symbol_completion_list): Likewise.
1380 (make_symbol_overload_list): Likewise.
1381 * buildsym.c (finish_block): Likewise.
1382 * breakpoint.c (get_catch_sals): Likewise.
1383 * mdebugread.c (mylookup_symbol): Likewise.
1384 * objfiles.c (objfile_relocate): Likewise.
1385 * printcmd.c (print_frame_args): Likewise.
1386 * stack.c (print_block_frame_locals): Likewise.
1387 (print_block_frame_labels): Likewise.
1388 (print_frame_arg_vars): Likewise.
1389 * symmisc.c (dump_symtab): Likewise.
1390 * tracepoint.c (add_local_symbols): Likewise.
1391 (scope_info): Likewise.
1393 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1395 * minsyms.c (msymbol_hash): Use better hash function.
1396 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
1398 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
1401 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1403 * printcmd.c (print_frame_args): Move symbol iteration explicitly
1404 inside the func != NULL block.
1406 2001-10-12 Fernando Nasser <fnasser@redhat.com>
1408 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
1411 2001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1413 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
1414 This fixes errors in "long long" handling for 'finish' and 'return'
1417 2001-10-12 Christopher Faylor <cgf@redhat.com>
1419 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
1420 library if it has already been loaded.
1421 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
1423 (safe_symbol_file_add): Ditto.
1424 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
1425 it to safe_symbol_file_add.
1426 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
1427 (child_solib_add): Ditto.
1429 * win32-nat.c (handle_exception): Don't print "first chance"
1431 (get_child_debug_event): Continue from exceptions if !handle_exception.
1433 2001-10-11 Tom Tromey <tromey@redhat.com>
1435 * symtab.c (lookup_symtab): Removed.
1436 (lookup_symtab_1): Renamed to lookup_symtab.
1438 2001-10-10 Christopher Faylor <cgf@redhat.com>
1440 * win32-nat.c (get_child_debug_event): Close file handles created after
1441 process creation and DLL load.
1442 (child_create_inferior): Close unneeded process/thread handle after
1445 2001-10-10 Jim Blandy <jimb@redhat.com>
1447 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
1449 2001-10-10 Keith Seitz <keiths@redhat.com>
1451 * varobj.c (cplus_value_of_child): Deal with a failure
1452 to dereference a pointer object.
1454 2001-10-08 J. Brobecker <brobecker@gnat.com>
1456 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
1457 to use ptid_t, instead of overloading the thread and the pid
1458 into the same 32-bit value. Make associated necessary adaptations.
1459 Also remove unused variable cached_active_thread.
1461 2001-10-08 Nicholas Duffek <nsd@redhat.com>
1463 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
1466 2001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
1468 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
1470 2001-10-04 Tom Tromey <tromey@redhat.com>
1472 * main.c (enable_external_editor): Don't declare.
1473 (captured_main): Don't set enable_external_editor.
1475 2001-10-02 Kevin Buettner <kevinb@redhat.com>
1477 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
1479 (solib-sunos.o): Add dependencies.
1480 (solib-svr4.o): Revise dependencies.
1481 * solib-svr4.c: Remove SunOS shared library support.
1482 * solib-sunos.c: New file, created from solib-svr4.c, which still
1483 contains SunOS shared library support, but no SVR4 support.
1485 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
1486 solib-legacy.o from this list. Add solib-sunos.o.
1487 * config/i386/sun386.mt (TDEPFILES): Likewise.
1488 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1489 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
1490 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
1491 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1492 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1493 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
1495 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
1497 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
1499 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
1501 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
1502 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
1503 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
1504 SET_NAMESTRING): Delete definitions.
1505 Don't include language.h any more.
1506 Don't include partial-stab.h any more.
1507 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
1508 partial-stab.h, include the code directly, instead.
1510 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
1512 2001-10-01 Andrew Cagney <ac131313@redhat.com>
1514 * infcmd.c (do_registers_info): Delete code dumping large
1515 registers. Handled by val_print.
1517 2001-09-30 Andrew Cagney <ac131313@redhat.com>
1519 * gdbarch.sh (gdbarch_alloc): Name the new architecture
1520 ``current_gdbarch'' so that it, and not the identically named
1521 global is refered to by macros.
1522 * gdbarch.c: Regenerate.
1524 2001-09-29 Andrew Cagney <ac131313@redhat.com>
1526 * cli/cli-decode.c (add_set_boolean_cmd): Define.
1527 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
1528 * command.h (add_set_boolean_cmd): Ditto.
1529 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
1532 2001-09-29 Andrew Cagney <ac131313@redhat.com>
1534 * gdbarch.sh (gdbarch_dump): Sort output.
1535 * gdbarch.c: Regenerate.
1537 2001-09-29 Andrew Cagney <ac131313@redhat.com>
1539 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
1540 architecture to infer the wordsize. Previous architecture may not
1543 2001-09-27 J. Brobecker <brobecker@gnat.com>
1545 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
1546 than a TT_PROC_STOP request to kill the inferior and its child
1547 processes. Otherwise, the inferior is not killed on HPUX 11.0.
1548 Removed the code that detaches the child processes since we just
1551 2001-09-26 Andrew Cagney <ac131313@redhat.com>
1553 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
1555 (serial_set_cmd, serial_show_cmd): New functions.
1556 (_initialize_serial): Add "set/show serial" command.
1558 2001-09-26 Andrew Cagney <ac131313@redhat.com>
1560 * CONTRIBUTE: Update.
1562 2001-09-26 Kevin Buettner <kevinb@redhat.com>
1564 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
1565 argument ``gdbarch''.
1566 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
1567 (default_svr4_fetch_link_map_offsets): Rename to
1568 legacy_fetch_link_map_offsets().
1569 (svr4_fetch_link_map_offsets): New function.
1570 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
1571 (fetch_link_map_offsets_gdbarch_data): New static global.
1572 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
1573 Revise to invoke set_gdbarch_data().
1574 (init_fetch_link_map_offsets): Change return type and add an
1575 argument so that it may be used as a gdbarch_data initializer.
1576 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
1577 Use gdbarch data mechanism instead.
1579 2001-09-25 Jiri Smid <smid@suse.cz>
1581 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
1582 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
1583 by LINUX_SIGINFO_SIZE.
1585 2001-09-24 Andrew Cagney <ac131313@redhat.com>
1587 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1589 (maintenance_set_profile_cmd): New function.
1590 (maintenance_show_cmd, maintenance_set_cmd): New functions.
1591 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
1592 show" and, commented out, "maintenance set/show profile" commands.
1594 2001-09-24 Andrew Cagney <ac131313@redhat.com>
1596 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
1597 convert the pointer into a CORE_ADDRs.
1599 2001-09-24 Andrew Cagney <ac131313@redhat.com>
1601 * doublest.h (store_floating, extract_floating): Add comment
1602 indicating these functions are deprecated.
1603 (extract_typed_floating, store_typed_floating): Declare.
1604 * doublest.c: Include "gdbtypes.h".
1605 (extract_typed_floating, store_typed_floating): Define.
1607 * stabsread.c (define_symbol): Use store_typed_floating.
1608 * valarith.c (value_binop): Ditto.
1609 * values.c (unpack_long): Use extract_typed_floating.
1610 (unpack_double): Ditto.
1612 2001-09-24 Orjan Friberg <orjanf@axis.com>
1614 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
1615 from correct register.
1617 2001-09-22 Mark Kettenis <kettenis@gnu.org>
1619 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
1621 2001-09-21 Jiri Smid <smid@suse.cz>
1623 * config/i386/x86-64linux.mh: New file.
1624 * config/i386/x86-64linux.mt: New file.
1625 * config/i386/nm-x86_64.h: New file.
1626 * x86-64-linux-tdep.c: New file.
1627 * x86-64-linux-nat.c: New file.
1628 * x86-64-tdep.c: New file.
1629 * x86-64-tdep.h: New file.
1630 * i386-tdep.h: New file.
1631 * i387-nat.c: Include i386-tdep.h when multiarch.
1632 * i387-tdep.c: Ditto.
1633 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
1634 and x86_64-linux-nat.c
1635 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
1636 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
1638 2001-09-21 Jiri Smid <smid@suse.cz>
1640 * MAINTAINERS: Add myself to the write-after-approval list.
1641 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
1642 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
1643 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
1644 8-byte wide watchpoints.
1645 (i386_show_dr): Debug message format string change.
1647 2001-09-21 Michael Snyder <msnyder@redhat.com>
1649 * c-exp.y (typebase): Accept (signed long long) as a type expr.
1651 2001-09-20 Michael Snyder <msnyder@redhat.com>
1652 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
1653 better parsing of const and volatile type expressions.
1654 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
1655 const_or_volatile): New non-terminals.
1656 (ptype): Use new rule for const_or_volatile.
1657 (typebase): Use new rule for const_or_volatile_noopt.
1658 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
1659 * parse.c (follow_types): Handle tp_const and tp_volatile on the
1660 type stack: call make_cv_type to create new const/volatile type.
1662 2001-09-20 Kevin Buettner <kevinb@redhat.com>
1664 * solib-svr4.c (fetch_link_map_offsets): Add comment.
1665 (fetch_link_map_offsets_init): New static global.
1666 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
1667 Revise implementation to use ``fetch_link_map_offsets_init''
1668 instead of ``fetch_link_map_offsets''.
1670 2001-09-20 Alan Modra <amodra@bigpond.net.au>
1672 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
1673 * dbxread.c: Likewise.
1674 * dwarf2read.c: Likewise.
1675 * dwarfread.c: Likewise.
1676 * somread.c: Likewise.
1677 * ultra3-nat.c: Likewise.
1678 * xcoffread.c: Likewise.
1680 2001-09-19 Andrew Cagney <ac131313@redhat.com>
1682 * cris-tdep.c (cris_get_signed_offset): Change return type to an
1683 explicitly signed char.
1685 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
1686 function signature to match recent tracepoint.c:encode_actions
1688 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
1690 2001-09-18 Andrew Cagney <ac131313@redhat.com>
1692 * thread.c (do_captured_thread_select): Add uiout parameter.
1693 (do_captured_list_thread_ids): Ditto.
1694 * breakpoint.c (do_captured_breakpoint_query): Ditto.
1696 * breakpoint.c (gdb_breakpoint_query): Update. Use
1698 * thread.c (gdb_list_thread_ids): Ditto.
1699 (gdb_thread_select): Ditto.
1700 (thread_command): Pass uiout to gdb_thread_select.
1702 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
1703 (gdb_thread_select, gdb_list_thread_ids): Ditto.
1705 2001-09-13 Kevin Buettner <kevinb@redhat.com>
1707 From Ilya Golubev <gin@mo.msk.ru>:
1708 * solib.c (clear_solib): Call `remove_target_sections' to fix
1709 stale pointers in `struct target_ops'.
1710 * irix5-nat.c (clear_solib): Likewise.
1711 * osfsolib.c (clear_solib): Likewise.
1713 2001-09-13 Jim Blandy <jimb@redhat.com>
1715 * monitor.c (monitor_load): Don't delete symtab users, or reset
1718 * monitor.c (monitor_load): Fix indentation.
1720 2001-09-11 Jim Blandy <jimb@redhat.com>
1722 * printcmd.c (print_scalar_formatted): Compare the length of the
1723 value against the lengths of the target's floating-point types,
1724 not the host's. Add support for `long double'.
1726 * printcmd.c (print_scalar_formatted): Fix indentation.
1728 2001-09-10 Jim Blandy <jimb@redhat.com>
1730 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
1731 programs running on the board can produce output.
1733 2001-09-10 Jason Molenda (jmolenda@apple.com)
1735 * NEWS: "ANS/ISO C" -> "ISO C".
1736 * MAINTAINERS (write-after-approval): Update my entry.
1738 2001-09-08 Mark Kettenis <kettenis@gnu.org>
1740 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
1742 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
1743 config/m68k/xm-linux.h, config/mips/xm-linux.h,
1744 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
1745 redundant inclusion of <unistd.h>.
1747 * gdbtypes.h (struct block): Add forward declaration.
1749 2001-09-07 Andrew Cagney <ac131313@redhat.com>
1751 * defs.h (enum return_reason): Renumber so that all values are
1753 (RETURN_MASK): Negate reason.
1754 (catch_exception_ftype): Declare.
1755 (catch_exceptions): Declare.
1756 * top.c (catcher): New function, based on catch_errors. Add in
1757 parameter func_uiout and out parameters func_val, func_caught and
1758 func_cleanup. Change type of func to catch_exceptions_ftype.
1760 (struct catch_errors_args): Define.
1761 (do_catch_errors): New function.
1762 (catch_errors): Rewrite, use do_catch_errors and catcher.
1763 (catch_exceptions): New function, use catcher.
1765 2001-09-07 Jim Blandy <jimb@redhat.com>
1767 Correctly parse register values provided by the monitor.
1768 * rom68k-rom.c: #include "value.h".
1769 (is_hex_digit, hex_digit_value, is_whitespace,
1770 rom68k_supply_one_register): New static functions.
1771 (rom68k_supply_register): Call rom68k_supply_one_register, instead
1772 of monitor_supply_register; the latter was incorrectly parsing
1774 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
1776 2001-09-07 Mark Kettenis <kettenis@gnu.org>
1778 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
1779 to using setpgid if available now.
1781 2001-09-06 Keith Seitz <keiths@redhat.com>
1783 From Ian Roxborough <irox@redhat.com>
1784 * configure.in: Use ITCL_LIB_FULL_PATH and
1785 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
1787 * configure: Regenerated.
1789 2001-09-06 Kevin Buettner <kevinb@redhat.com>
1791 * dbxread.c (process_one_symbol): Don't use error result from
1792 find_stab_function_addr().
1793 * partial-stab.h (case 'F'): Likewise.
1795 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
1796 code match that used for case 'F'. This fixes the divergence
1797 that was introduced by my 1999-09-14 changes to partial-stab.h.
1799 2001-09-05 Elena Zannoni <ezannoni@redhat.com>
1801 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
1803 (TARGET_PRINT_INSN): Multiarch.
1804 * gdbarch.h: Regenerate.
1805 * gdbarch.c: Regenerate.
1807 * arch-utils.c (legacy_print_insn): New function.
1808 * arch-utils.h (legacy_print_insn): Export.
1810 * cris-tdep.c (cris_delayed_get_disassembler): Use
1811 TARGET_PRINT_INSN, instead of tm_print_insn.
1812 * d10v-tdep.c (print_insn): Ditto.
1813 * d30v-tdep.c (print_insn): Ditto.
1814 * m32r-tdep.c (dump_insn): Ditto.
1815 * v850-tdep.c (v850_scan_prologue): Ditto.
1816 * mcore-tdep.c (mcore_dump_insn): Ditto.
1817 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
1819 2001-09-05 Jim Blandy <jimb@redhat.com>
1821 * gdbtypes.h (struct type): Doc fix.
1823 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1825 From Daniel Jacobowitz <drow@mvista.com>
1826 * dbxread.c (free_header_files): Make global.
1827 (init_header_files): Likewise.
1828 * stabsread.h (free_header_files): Add prototype.
1829 (init_header_files): Likewise.
1830 * mdebugread.c (mdebug_build_psymtabs): Initialize
1831 properly before using the stabs debug reader.
1833 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1835 From Daniel Jacobowitz <drow@mvista.com>
1836 * dbxread.c (dbx_symfile_read): Only reinitialize
1837 the psymbol list if mainline or if both static
1838 and global lists are empty.
1839 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
1840 * dwarfread.c (dwarf_build_psymtabs): Likewise.
1841 * xcoffread.c (xcoff_initial_scan): Likewise.
1842 * os9kread.c (os9k_symfile_read): Likewise.
1844 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1846 From Daniel Jacobowitz <drow@mvista.com>
1847 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
1850 2001-09-01 Mark Kettenis <kettenis@gnu.org>
1852 Make GDB use libiberty regex implementation.
1853 * gdb_regex.h: Normalize protection against multiple inclusion.
1854 Include "xregex.h" instead of "gnu-regex.h".
1855 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
1856 * cli/cli-decode.c: Likewise.
1857 * Makefile.in (REGEX): Remove.
1858 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
1859 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
1861 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
1862 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
1863 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
1864 gdb_regex.h in list of dependencies.
1865 (gnu-regex.o): Remove rule.
1866 * gnu-regex.c, gnu-regex.h: Remove files.
1868 2001-08-31 Jason Molenda (jmolenda@apple.com)
1870 * c-valprint.c (c_val_print): Second call to check_typedef ()
1871 is no longer necessary.
1873 2001-08-31 Kevin Buettner <kevinb@redhat.com>
1875 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
1876 terminate the prologue scan.
1878 2001-08-30 Jim Blandy <jimb@redhat.com>
1880 * symfile.c (sections_overlap): New function.
1881 (map_overlay_command): Call sections_overlap, instead of using
1882 incorrect logic to recognize overlapping sections.
1884 * symfile.c (load_command): Invalidate the overlay cache.
1886 2001-08-30 Mark Kettenis <kettenis@gnu.org>
1888 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
1890 2001-08-29 Kevin Buettner <kevinb@redhat.com>
1892 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
1893 * solib-svr4.c (enable_break): Check the inferior link map
1894 before assuming the inferior PC is at the start of the dynamic
1897 2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
1899 * frame.h (struct frame_info): Fix documentation on fields
1900 saved_regs, next and prev.
1902 2001-08-23 Mark Kettenis <kettenis@gnu.org>
1904 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
1905 gratuitious whitespace changes.
1906 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
1907 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
1908 (sigsetmask) Don't define macro.
1909 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
1910 async_stop_sig from event-top.c.
1911 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
1913 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
1914 order. Add sigsetmask.
1915 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
1917 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
1918 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
1919 (HAVE_SIGSETMASK): Remove.
1920 * aclocal.m4, config.in, configure: Regenerated.
1922 2001-08-26 Andrew Cagney <ac131313@redhat.com>
1924 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
1925 * config/powerpc/nbsd.mh (XM_FILE): Delete.
1927 2001-08-21 Andrew Cagney <ac131313@redhat.com>
1929 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
1930 (HOST_DOUBLE_FORMAT): Delete macro.
1932 2001-08-24 Mark Kettenis <kettenis@gnu.org>
1934 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
1935 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
1936 inclusion of <limits.h>.
1938 2001-08-24 Andrew Cagney <ac131313@redhat.com>
1940 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
1941 that a register should be ignored, supply a value for the register
1942 from the raw registers[] buffer.
1944 2001-08-24 Andrew Cagney <ac131313@redhat.com>
1946 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
1947 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
1950 2001-08-21 Andrew Cagney <ac131313@redhat.com>
1952 * gdbtypes.h (builtin_type_ieee_single_big)
1953 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
1954 (builtin_type_ieee_double_little)
1955 (builtin_type_ieee_double_littlebyte_bigword)
1956 (builtin_type_i387_ext, builtin_type_m68881_ext)
1957 (builtin_type_i960_ext, builtin_type_m88110_ext)
1958 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
1959 (builtin_type_arm_ext_littlebyte_bigword)
1960 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1961 (builtin_type_ia64_quad_big)
1962 (builtin_type_ia64_quad_little): Declare.
1963 * gdbtypes.c (builtin_type_ieee_single_big)
1964 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
1965 (builtin_type_ieee_double_little)
1966 (builtin_type_ieee_double_littlebyte_bigword)
1967 (builtin_type_i387_ext, builtin_type_m68881_ext)
1968 (builtin_type_i960_ext, builtin_type_m88110_ext)
1969 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
1970 (builtin_type_arm_ext_littlebyte_bigword)
1971 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1972 (builtin_type_ia64_quad_big)
1973 (builtin_type_ia64_quad_little): Define.
1974 (_initialize_gdbtypes): Initialize builtin floatformat types.
1976 2001-08-23 Mark Kettenis <kettenis@gnu.org>
1978 * tracepoint.c (read_actions): Add FIXME for code depending on
1981 2001-08-23 Martin M. Hunt <hunt@redhat.com>
1983 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
1985 (mips_load_srec): Ditto.
1987 2001-08-22 Andrew Cagney <ac131313@redhat.com>
1989 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
1990 of builtin_type_float, builtin_type_double and
1991 builtin_type_long_double.
1992 (recursive_dump_type): Print the floatformat name.
1993 * gdbtypes.h (struct type): Add type_specific field floatformat.
1994 (TYPE_FLOATFORMAT): Define
1996 2001-08-21 Keith Seitz <keiths@redhat.com>
1998 * printcmd.c (print_insn): Use the given stream for
2001 2001-07-24 Andrew Cagney <ac131313@redhat.com>
2003 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
2004 assembler version of function.
2005 (convert_from_extended, convert_to_extended): Rewrite. Use
2006 floatformat_to_doublest, floatformat_from_doublest,
2007 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
2008 (arm_push_arguments): Use extract_floating and store_floating to
2009 perform floating point conversions.
2010 (SWAP_TARGET_AND_HOST): Delete macro.
2011 * arm-linux-tdep.c (arm_linux_push_arguments): Use
2012 extract_floating and store_floating to perform floating point
2015 2001-08-20 Andrew Cagney <ac131313@redhat.com>
2017 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
2019 2001-08-17 Keith Seitz <keiths@redhat.com>
2021 * varobj.c (varobj_update): Change first parameter to
2022 pointer to struct varobj*. This function can delete
2023 varobjs, so we need to give callers the new varobj
2025 (value_of_root): Update "var", too, if "var_handle"
2027 * varobj.h (varobj_update): Likewise.
2029 2001-08-17 Keith Seitz <keiths@redhat.com>
2031 * Makefile.in (varobj_h): Define.
2032 (mi-cmd-var.o): Depends on varobj_h.
2033 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
2035 2001-08-16 Keith Seitz <keiths@redhat.com>
2037 * configure.in (GDBTK_SRC_DIR): We must have autoconf
2038 give us the absolute path to the source directory.
2039 * configure: Regenerated.
2040 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
2041 autoconf can substitue it in for us.
2042 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
2043 really do need an absolute pathname.
2045 2001-08-15 Keith Seitz <keiths@redhat.com>
2047 * Makefile.in (GDBTK_VERSION): Set a version number.
2048 (GDBTK_LIBRARY): New variable to point to location where
2049 gdbtk will install its tcl library. Changed all refereneces
2050 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
2051 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
2052 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
2053 (all-gdbtk): Remove.
2054 (install-gdbtk): Remove.
2055 (gdbtk.o): Pass srcdir to file when compiling.
2057 2001-08-15 Ian Roxborough <irox@redhat.com>
2059 * Makefile.in: Changed all references to the install directory
2060 "gdbtcl" to read "insight1.0".
2062 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
2064 * arch-utils.c (generic_skip_trampoline_code): New function.
2065 * arch-utils.h (generic_skip_trampoline_code): Declare external.
2066 * gdbarch.c: Regeberated from gdbarch.sh.
2068 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
2069 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
2071 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
2072 H.J. Lu (hjl@gnu.org)
2074 * partial-stab.h: valu should be a CORE_ADDR.
2076 2001-08-14 H.J. Lu (hjl@gnu.org)
2078 * dbxread.c (SWAP_SYMBOL): Removed.
2079 (INTERNALIZE_SYMBOL): Check sign extended vma.
2081 2001-08-13 Christopher Faylor <cgf@cygnus.com>
2083 * top.c (SIGSETJMP): Protect env argument with parentheses.
2084 (SIGLONGJMP): Protect env argument with parentheses.
2086 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2088 * config/mn10300/mn10300.mt (TM_FILE): Delete.
2089 * configure.tgt: Add mn10300 to list of mulit-arch targets.
2090 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
2091 * mn10300-tdep.c: To here.
2093 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2095 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
2096 val a DOUBLEST. Use floatformat_to_doublest.
2097 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
2098 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
2099 (REGISTER_CONVERT_TO_RAW): Ditto.
2101 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2103 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
2104 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
2107 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2109 * doublest.c (convert_doublest_to_floatformat): Rename
2110 floatformat_from_doublest. Make static.
2111 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
2113 (floatformat_to_doublest): New function.
2114 (floatformat_from_doublest): New function.
2115 (host_float_format, host_double_format, host_long_double_format):
2116 New static variables.
2117 (store_floating, extract_floating): Always use
2118 floatformat_to_doublest and floatformat_from_doublest.
2119 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2121 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2123 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
2124 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
2126 2001-08-07 Andrew Cagney <ac131313@redhat.com>
2128 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
2129 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
2130 * gdbarch.h, gdbarch.c: Regenerate.
2132 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
2133 * arch-utils.c: Include "gdb_assert.h".
2134 (legacy_virtual_frame_pointer): Define.
2135 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
2137 * tracepoint.c (encode_actions): Make frame_reg an int. Make
2138 frame_offset a LONGEST.
2139 * ax-gdb.c (gen_frame_args_address): Ditto.
2140 (gen_frame_locals_address): Ditto.
2141 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
2142 virtual_frame_pointer.
2143 (mn10300_virtual_frame_pointer): Make static. Update parameter
2144 list to match function signature.
2145 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
2147 2001-08-10 Keith Seitz <keiths@redhat.com>
2149 * gdb-events.sh: Add architecture_changed event.
2150 * gdbarch.sh: Include gdb-event.h.
2151 (gdbarch_update_p): Notify UIs when architecture changes.
2152 * gdb-events.h: Regenerated.
2153 * gdb-events.c: Regenerated.
2154 * gdbarch.c: Regenerated.
2156 2001-08-10 Michael Snyder <msnyder@redhat.com>
2158 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
2159 a write_register to a pseudo-reg. Target_store_pseudo_register
2160 needs to get called, because these regs may be computed and may
2163 2001-08-10 Keith Seitz <keiths@redhat.com>
2165 * gdb-events.sh: Deal with event notifications with no
2168 2001-08-10 Orjan Friberg <orjanf@axis.com>
2170 * remote.c (read_frame): Correct off-by-one error in condition.
2172 2001-08-08 Don Howard <dhoward@redhat.com>
2174 * stabsread.c (read_type): Add support for const and volatile
2177 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
2179 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
2180 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
2182 2001-08-02 Keith Seitz <keiths@redhat.com>
2184 * defs.h (SLASH_STRING): If not defined, set
2185 to "/", regardless of _WIN32, __CYGWIN__, or
2188 2001-08-02 Mark Kettenis <kettenis@gnu.org>
2190 * cli/cli-decode.h: Include "gdb_regex.h" instead of
2195 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2197 * config/i386/xm-go32.h: Include xm-i386.h.
2198 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
2200 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2202 The following changes avoid polluting global namespace with the
2203 `enable' and `disable' identifiers, because some platforms define
2204 in their system headers symbols with global scope that go by those
2207 * breakpoint.h (enum enable_state): Rename from `enum enable'.
2208 Also rename all the enum members to have the "bp_" prefix.
2209 (struct breakpoint): Rename the `enable' member to `enable_state'.
2210 (enum bpdisp): Rename all members to have the "disp_" prefix.
2212 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
2214 (args_for_catchpoint_enable): Rename the `enable' member to
2215 `enable_p'. All users changed.
2217 * tracepoint.h (enum enable): Remove.
2218 (struct tracepoint): The member `enabled' is now `int enabled_p'.
2220 * tracepoint.c: All users of the `enabled' member changed.
2222 * printcmd.c (struct display): The `status' member is now an int.
2224 * memattr.h (struct mem_region): Rename the `status' member to
2226 (enum enable): Remove.
2228 * memattr.c: Change all users of the `status' member of struct
2229 mem_region to use `enabled_p' instead.
2231 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
2233 * go32-nat.c: Remove the kludgey work-around for conflicts between
2234 <dos.h> and "breakpoint.h".
2236 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
2238 * MAINTAINERS: Add myself to the write-after-approval list.
2239 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
2242 2001-08-01 Andrew Cagney <ac131313@redhat.com>
2244 * doublest.h (store_floating, floatformat_to_doublest): Make IN
2245 paramter a const void pointer.
2246 (floatformat_from_doublest): Make IN const, Make OUT a void
2248 * doublest.c (floatformat_to_doublest): Update.
2249 (floatformat_from_doublest): Update.
2250 (extract_floating): Update.
2252 2001-07-31 Andrew Cagney <ac131313@redhat.com>
2254 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2255 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2256 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
2257 (floatformat_to_doublest, floatformat_from_doublest)
2258 (floatformat_is_negative, floatformat_is_nan)
2259 (floatformat_mantissa, store_floating)
2260 (extract_floating): Move declaration from here.
2261 * doublest.h: To here. New file.
2262 * utils.c (get_field, floatformat_to_doublest, put_field)
2263 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
2264 (floatformat_is_nan, floatformat_mantissa)
2265 (FLOATFORMAT_CHAR_BIT): Move from here.
2266 * doublest.c: To here. New file.
2267 * findvar.c (store_floating, extract_floating): Move from here.
2268 * doublest.c: To here.
2269 * Makefile.in (SFILES): Add doublest.c.
2270 (COMMON_OBS): Add doublest.o.
2271 (doublest.o): Specify dependencies.
2272 (doublest_h): Define.
2274 * config/m88k/tm-m88k.h: Include "doublest.h".
2275 * config/i960/tm-i960.h: Ditto.
2276 * config/i386/tm-symmetry.h: Ditto.
2277 * rs6000-tdep.c, valarith.c: Ditto.
2278 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
2279 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
2280 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
2281 * alpha-tdep.c, ax.h, expression.h: Ditto.
2282 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
2284 * Makefile.in (arm-tdep.o): Add $(doublest_h).
2285 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
2286 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
2287 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
2288 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
2289 (parser_defs_h): Ditto.
2290 (expression_h): Add $(doublest_h) and $(symtab_h).
2292 2001-08-01 Andrew Cagney <ac131313@redhat.com>
2294 * Makefile.in: Sort header definitions.
2295 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
2296 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
2297 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
2298 $(annotate_h). Replace target.h with $(target_h). Replace
2299 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
2301 2001-07-31 Mark Kettenis <kettenis@gnu.org>
2303 * config/i386/xm-i386.h: New file.
2304 * config/i386/xm-fbsd.h: Removed.
2305 * config/i386/xm-linux.h: Removed.
2306 * config/i386/fbsd.mh: Reorganize a bit.
2307 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
2308 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
2311 2001-07-30 Jim Blandy <jimb@redhat.com>
2313 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
2315 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
2317 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
2318 Check for SETPGRP_VOID separately if cross-compiling and ISO C
2319 headers are available.
2321 2001-07-30 Mark Kettenis <kettenis@gnu.org>
2323 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
2324 i386_dwarf_reg_to_regnum.
2326 * i386-tdep.c (i386_register_convert_to_virtual): Replace
2327 assertion with a warning if we're asked to convert towards a
2328 non-floating-point type. Zero out the the buffer where the data
2329 is supposed to be stored in that case.
2331 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
2333 * config/djgpp/djconfig.sh: Unset CDPATH.
2335 * go32-nat.c (get_cr3): Temporary disable support for page tables
2336 in UMBs, as it is incomplete.
2338 Support for stepping through longjmp in DJGPP programs:
2340 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
2341 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
2342 (get_longjmp_target): Add prototype.
2344 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2346 Fix some PID/TPID fallout for HP/UX.
2347 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
2348 * infttrace.c (ptrace_wait): Match external declaration,
2349 and match target_post_wait declaration.
2351 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2353 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
2354 (cris): Set --enable-gdb-build-warnings flag to -w.
2356 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2358 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
2359 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
2360 (TARGET_LONG_DOUBLE_BIT): Define.
2361 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
2362 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
2363 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
2364 floating point registers.
2365 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
2366 (REGISTER_CONVERT_TO_RAW): Remove.
2367 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
2369 2001-07-26 Andrew Cagney <ac131313@redhat.com>
2371 * thread.c, breakpoint.c: Include "gdb.h".
2372 * Makefile.in (gdb_h): Define.
2373 (HFILES_NO_SRCDIR): Add gdb.h.
2374 (mi-cmd-break.o, mi-main.o, thread.o)
2375 (breakpoint.o): Add dependency on $(gdb_h).
2377 * defs.h (enum gdb_rc, gdb_breakpoint_query)
2378 (gdb_breakpoint, gdb_thread_select)
2379 (gdb_list_thread_ids): Move declaration from here ...
2380 * gdb.h: To here. New file.
2382 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2384 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
2385 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
2387 (tui-out.o): Define dependencies.
2388 (tui-hooks.o): Likewise.
2390 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2392 * MAINTAINERS: Update e-mail address of active @cygnus.com
2393 maintainers to @redhat.com.
2395 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2397 * README (Known bugs): Delete section.
2398 (Kernel debugging): Delete section.
2399 (Languages other than C): Delete section.
2400 (Host/target specific installation notes) New section.
2402 2001-07-28 Mark Kettenis <kettenis@gnu.org>
2404 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2405 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
2406 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
2408 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
2409 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
2410 i386_dwarf_reg_to_regnum.
2411 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
2414 * i386-tdep.c: Include "gdb_assert.h"
2415 (i386_register_convert_to_virtual): Fix such that it can handle
2416 conversion to any floating-point type. Assert that we are dealing
2417 with a floating-point first.
2418 (i386_register_convert_to_raw): Assert that TYPE is a
2419 floating-point type with length 12.
2421 2001-07-27 John R. Moore <jmoore@redhat.com>
2423 * configure.in: Added dependency of gdb on tcl/tk libraries.
2424 * Makefile.in: Likewise.
2425 * configure: Regenerated with the above using autoconf.
2427 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
2429 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
2431 (SH_DEFAULT_NUM_REGS): Define.
2433 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
2435 * go32-nat.c (read_memory_region): Make sure the segment limit was
2436 indeed set, to work around a Windows 2000 bug.
2438 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
2440 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
2441 * infttrace.c (child_xfer_memory): Likewise.
2442 * symm-nat.c (child_xfer_memory): Likewise.
2443 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
2444 (write_inferior_memory): Likewise.
2445 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
2446 (write_inferior_memory): Likewise.
2447 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
2448 (write_inferior_memory): Likewise.
2449 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
2450 (write_inferior_memory): Likewise.
2451 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
2452 (write_inferior_memory): Likewise.
2453 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
2454 (write_inferior_memory): Likewise.
2456 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
2458 * README: Mention how to make gdb.pdf.
2462 2001-07-24 Stephen P. Smith <ischis2@home.com>
2464 * MAINTAINERS (Stephen P. Smith): Added to write after approval
2467 2001-07-23 Andrew Cagney <ac131313@redhat.com>
2469 * mips-tdep.c (mips_push_arguments): Add comment explaining
2470 problem with LE o32 GCC.
2472 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
2474 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
2475 doesn't understand them.
2477 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
2479 * memattr.c (mem_info_command): Reformat output to look more like
2480 'info break' output.
2481 (_initialize_mem): Improve help.
2483 2001-07-23 Mark Kettenis <kettenis@gnu.org>
2485 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
2486 (AC_FUNC_SETPGRP): Add.
2487 * aclocal.m4, configure, config.in: Regenerated.
2488 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
2489 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
2490 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
2491 distinguish between the two setpgrp flavours.
2492 * config/xm-sysv4.h, config/arm/xm-linux.h,
2493 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
2494 config/i386/xm-linux.h, config/i386/xm-ptx.h,
2495 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
2496 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
2497 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
2498 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
2500 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
2502 * go32-nat.c (read_memory_region): Set the granularity bit of the
2503 allocated segment according to its size, and adjust the limit to
2504 be page-aligned if the segment is page-granular.
2506 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
2507 (display_page_table, go32_pte, go32_pte_for_address): New functions.
2508 (_initialize_go32_nat): Initialize and document them.
2510 2001-07-22 Mark Kettenis <kettenis@gnu.org>
2512 * i386gnu-nat.c: Include "i387-nat.h".
2513 (struct env387): Removed.
2514 (reg_offset): Fix comment.
2515 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
2516 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
2517 use i387_supply_fsave.
2518 (gnu_fetch_registers): Remove spurious whitespace.
2519 (convert_to_env387): Remove.
2520 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
2521 of convert_to_env387.
2522 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
2524 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
2525 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
2526 (NATDEPFILES): Add i387-nat.o.
2528 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2530 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
2531 (m68hc11-tdep.o): Define dependencies.
2533 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
2537 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2539 * utils.c (init_page_info): Use tui_get_command_dimension.
2540 * printcmd.c (disassemble_command): Simplify tui specific code,
2541 use tui_is_window_visible, tui_show_assembly.
2543 2001-07-21 Mark Kettenis <kettenis@gnu.org>
2545 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
2546 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
2548 * i386fbsd-nat.c: ... here. New file.
2549 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
2550 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
2551 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
2552 (i386fbsd-nat.o): Add dependencies.
2554 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
2556 * signals.c: New file.
2557 * Makefile.in: Add signals.o.
2558 * target.c (struct signals, target_signal_to_name)
2559 (target_signal_from_name, target_signal_from_host)
2560 (do_target_signal_to_host, target_signal_to_host_p)
2561 (target_signal_to_host, target_signal_from_command): Move to
2563 (initialize_targets): Move check of struct signals to...
2564 * signals.c (_initialize_signals): Here.
2566 2001-07-19 Andrew Cagney <ac131313@redhat.com>
2568 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
2570 2001-07-19 Andrew Cagney <ac131313@redhat.com>
2573 * configure.tgt (i*86-*-pe*): New target.
2575 2001-07-19 Andrew Cagney <ac131313@redhat.com>
2577 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
2578 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
2579 * somsolib.c (no_shared_libraries): Provide stub.
2580 * xcoffsolib.c (no_shared_libraries): Provide stub.
2582 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2584 * Makefile.in (COMMON_OBS): Remove tui-file.o.
2585 (SUBDIR_TUI_OBS): Add it here.
2586 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
2587 (main.o): Remove dependency with tui-file.h.
2589 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
2591 * Makefile.in (tui-file.o): Update dependencies.
2593 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
2595 * top.c (catch_errors): Convert PTR to void * in parameters list.
2596 (quit_cover): Ditto.
2598 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2600 * source.c (find_source_lines): Remove tui test, must be replaced
2601 by appropriate warning hook.
2602 (print_source_lines): Remove tui hacks, must be replaced by cli.
2603 (forward_search_command): Remove tui hacks, can be replaced by
2604 appropriate calls to identify_source_line when tui scrolls.
2605 (reverse_search_command): Likewise.
2607 2001-07-16 Nick Duffek <nsd@redhat.com>
2609 * remote.c (init_remote_ops, init_remote_cisco_ops,
2610 init_remote_async_ops): Set to_pid_to_str and
2611 to_extra_thread_info correctly and in the same order as declared
2614 2001-07-16 Andrew Cagney <ac131313@redhat.com>
2616 * remote.c: Revert below. Included more than intended.
2618 2001-07-16 Nick Duffek <nsd@redhat.com>
2620 * remote.c (init_remote_ops, init_remote_cisco_ops,
2621 init_remote_async_ops): Set to_pid_to_str and
2622 to_extra_thread_info correctly and in the same order as declared
2625 2001-07-16 Nick Duffek <nsd@redhat.com>
2627 * findvar.c (read_var_value): Apply value_as_pointer() to
2628 addresses retrieved from the target for LOC_BASEREG and
2629 LOC_BASEREG_ARG variables.
2631 2001-07-16 Orjan Friberg <orjanf@axis.com>
2633 * NEWS: New target CRIS.
2635 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
2637 * top.c (show_commands): Remove extern decl of history_get, it's
2638 already in readline/history.h.
2640 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
2642 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
2643 execute_user_command, do_setshow_command, get_prompt, init_proc,
2644 serial_log_command): Remove extern declarations. Include
2645 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
2646 * gdbcmd.h (execute_user_command): Remove declaration, it's already
2647 in cli/cli-script.h.
2648 * command.h (do_setshow_command): Remove declaration, it's already
2649 in cli/cli-setshow.h.
2650 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
2651 * Makefile.in (infrun.o): Update dependencies.
2653 * cli/cli-setshow.h: Add comment for do_setshow_command.
2655 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
2657 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
2658 call to chdir on this symbol rather than on __DJGPP__.
2659 (CANT_FORK) [__MSDOS__]: Move from here...
2660 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
2661 (GLOBAL_CURDIR) [__MSDOS__]: Define.
2663 2001-07-16 Orjan Friberg <orjanf@axis.com>
2665 * configure.tgt: Recognise the CRIS architecture.
2666 * config/cris/cris.mt: New file for CRIS target.
2667 * cris-tdep.c: New file for CRIS target.
2669 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
2671 * top.c (quit_cover, float_handler): Move definition up before use.
2672 (gdb_init): Move to end of file, to avoid calls to not yet defined
2676 2001-07-14 Andrew Cagney <ac131313@redhat.com>
2678 * serial.h (SERIAL_ASYNC): Delete.
2679 (DEPRECATED_SERIAL_FD): Delete.
2680 (SERIAL_DEBUG): Delete.
2681 (SERIAL_DEBUG_P): Delete.
2682 (SERIAL_DRAIN_OUTPUT): Delete.
2683 (SERIAL_FLUSH_OUTPUT): Delete.
2684 (SERIAL_FLUSH_INPUT): Delete.
2685 (SERIAL_SEND_BREAK): Delete.
2686 (SERIAL_RAW): Delete.
2687 (SERIAL_GET_TTY_STATE): Delete.
2688 (SERIAL_SET_TTY_STATE): Delete.
2689 (SERIAL_PRINT_TTY_STATE): Delete.
2690 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
2691 (SERIAL_SETBAUDRATE): Delete.
2692 (SERIAL_SETSTOPBITS): Delete.
2693 (SERIAL_CAN_ASYNC_P): Delete.
2694 (SERIAL_IS_ASYNC_P): Delete.
2695 (SERIAL_UN_FDOPEN): Delete.
2696 (SERIAL_READCHAR): Delete.
2697 (SERIAL_CLOSE): Delete.
2698 (SERIAL_FDOPEN): Delete.
2699 (SERIAL_OPEN): Delete.
2700 * ser-unix.c: Update.
2701 * sparclet-rom.c: Update.
2702 * remote-bug.c: Update.
2705 * nindy-share/ttyflush.c: Update.
2706 * nindy-share/Onindy.c: Update.
2709 * remote-nindy.c: Update.
2711 * sparcl-tdep.c: Update.
2712 * sh3-rom.c: Update.
2714 * remote-utils.c: Update.
2715 * remote-st.c: Update.
2716 * remote-sds.c: Update.
2717 * remote-rdp.c: Update.
2718 * remote-os9k.c: Update.
2719 * remote-nrom.c: Update.
2720 * remote-mips.c: Update.
2721 * remote-es.c: Update.
2722 * remote-e7000.c: Update.
2723 * remote-array.c: Update.
2725 * nindy-share/nindy.c: Update.
2726 * monitor.c: Update.
2728 2001-07-14 Andrew Cagney <ac131313@redhat.com>
2730 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
2731 * mcore-tdep.c: Ditto.
2732 * sparc-tdep.c: Ditto.
2734 * rs6000-tdep.c: Ditto.
2735 * ppc-linux-tdep.c: Ditto.
2736 * m68hc11-tdep.c: Ditto.
2737 * ia64-tdep.c: Ditto.
2738 * i386-tdep.c: Ditto.
2739 * arm-linux-tdep.c: Ditto.
2740 * hppa-tdep.c: Ditto.
2741 * h8500-tdep.c: Ditto.
2742 * fr30-tdep.c: Ditto.
2743 * arm-tdep.c: Ditto.
2744 * alpha-tdep.c: Ditto.
2745 * d30v-tdep.c: Ditto.
2746 * d10v-tdep.c: Ditto.
2747 * m32r-tdep.c: Ditto.
2748 * mips-tdep.c: Ditto.
2749 * v850-tdep.c: Ditto.
2751 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
2753 * top.c (readline_line_completion_function, noop_completer): Move
2755 * completer.c (readline_line_completion_function, noop_completer):
2757 * gdbcmd.h (readline_line_completion_function, noop_completer):
2758 Move declarations from here...
2759 * completer.h (readline_line_completion_function, noop_completer):
2761 * corefile.c: Include completer.h.
2764 * Makefile.in: Update dependencies.
2766 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
2768 * go32-nat.c (go32_create_inferior): Support command lines longer
2769 than 126 characters.
2771 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2773 * NEWS: New target 68HC11/68HC12.
2775 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2777 * utils.c (query): Remove tui hacks; tui must use the query_hook.
2778 * top.c (command_loop): Remove tui insert_mode hacks; don't call
2779 tuiCleanUp because this must be made with atexit by tui.
2780 * symfile.c (symbol_file_command): Remove call to TUIDO
2781 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
2782 not necessary when using the selected frame hooks.
2783 (print_stack_frame_stub): Likewise.
2784 (print_frame_info_base): Likewise.
2785 (print_frame_info): Likewise.
2786 (up_silently_command): Likewise.
2787 (down_silently_command): Likewise.
2788 (show_stack_frame): Likewise for TUIDO.
2789 (select_frame): Likewise.
2790 (select_and_print_frame): Likewise.
2791 (stack_publish_stopped_with_no_frame): Remove.
2792 (select_and_maybe_print_frame): Remove.
2793 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
2794 must use the initialize ui hook.
2795 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
2796 selected frame hooks.
2797 * event-top.c (command_handler): Remove tui insert_mode hack.
2798 * defs.h: Remove TUIDO; Only include tui.h.
2799 * breakpoint.c (mention): Remove calls to TUIDO.
2800 (delete_breakpoint): Remove tui hacks; tui must install
2801 the breakpoint hooks.
2803 2001-07-14 Mark Kettenis <kettenis@gnu.org>
2805 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
2806 * config/i386/nm-linux.h: ...to here. Change comments about user
2809 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
2811 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
2812 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
2814 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
2816 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
2817 generate an internal error.
2818 (e7000_fetch_registers): Initialize variable 'wanted'.
2819 (e7000_wait): Initialize variable 'wanted_nopc'.
2820 (e7000_store_register): Fix sprintf compiler warnings.
2821 (sub2_from_pc): Ditto.
2822 (e7000_open): Close the descriptor, not the name.
2823 (e7000_load): Fix compiler warnings.
2824 (sub2_from_pc): Ditto.
2825 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
2827 2001-07-13 Mark Kettenis <kettenis@gnu.org>
2829 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
2831 (store_inferior_registers): Wrap long line.
2832 (i386bsd_dr_get_status): Fix typo in comment.
2833 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
2834 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
2835 (i386bsd_in_sigtramp): New prototype.
2836 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
2837 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
2838 (external) variables.
2839 (SIGCONTEXT_PC_OFFSET): Removed.
2840 (FRAME_SAVED_PC): New define.
2841 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
2842 (TDEPFILES): Add i386bsd-tdep.o.
2844 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2846 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
2849 2001-07-13 Mark Kettenis <kettenis@gnu.org>
2851 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
2852 are no registered LWPs yet.
2854 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2856 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
2858 (CANNOT_STORE_REGISTER): Likewise.
2860 2001-07-12 Keith Seitz <keiths@redhat.com>
2862 * remote-rdp.c: Include "serial.h"
2864 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2866 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
2867 in HAVE_TERMIO/HAVE_TERMIOS cases.
2869 2001-07-12 Mark Kettenis <kettenis@gnu.org>
2871 * lin-lwp.c (stop_wait_callback): Add support for flushing
2872 signals. Use that in favour of the old code to get rid of
2873 superfluous SIGINTs.
2874 (lin_lwp_wait): Use the new support in stop_wait_callback to
2875 flush all but one SIGINT.
2877 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
2879 (i386_store_return_value): Improve comments about storing
2880 floating-point return values.
2882 * config/arm/xm-linux.h, config/i386/xm-linux.h,
2883 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
2884 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
2885 Removed. Taken care of by autoconf and terminal.h.
2887 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2889 * mips-tdep.c (mips_type_needs_double_align): New function.
2890 (mips_push_arguments): Align o32 structs to even argument
2891 registers if necessary.
2893 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2895 * config/djgpp/fnchange.lst: Add entries for
2896 mips-linux-nat.c and mips-linux-tdep.c.
2898 2001-07-12 Mark Kettenis <kettenis@gnu.org>
2900 * config/powerpc/xm-linux.h: Fix corrupted file.
2902 * configure.in: Add check for sigsetjmp.
2903 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
2904 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
2905 * configure, config.in: Regenerated.
2907 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
2909 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
2910 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
2913 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
2914 skip_prologue_hard_way().
2915 (skip_prologue_hard_way): Make it a function pointer.
2916 (sh_print_register): Use function pointer do_pseudo_register,
2917 instead of sh_do_pseudo_register.
2918 (sh_do_registers_info): Ditto.
2919 (sh_gdbarch_init): Initialize do_pseudo_register.
2920 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
2921 (skip_prologue_hard_way): Update.
2922 (sh_gdbarch_init): Move setting of frame_chain,
2923 get_saved_register, init_extra_frame_info, push_arguments,
2924 extract_return_value, pop_frame, store_struct_return,
2925 extract_struct_value_address, use_struct_convention,
2926 init_extra_frame_info to before target specific settings.
2927 (sh_gdbarch_init): Initialize new tdep fields
2928 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
2930 (sh_push_arguments): Use new gdbarch_tdep fields
2931 {ARG0,ARGLAST}_REGNUM.
2932 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
2933 sh_init_extra_frame_info, sh_push_return_address,
2934 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2935 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
2936 gdbarch_tdep->PR_REGNUM.
2937 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
2939 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2941 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
2942 from it. Move definitions of REALTIME_LO and REALTIME_HI above
2945 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2947 * MAINTAINERS: List myself for MIPS/Linux
2950 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2952 * gdbserver/remote-utils.c (remote_open): Only
2953 check for F_SETOWN if we had F_SETFL and FASYNC.
2955 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2957 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
2959 * config/m68k/linux.mh: Remove core-regset.o.
2960 * m68klinux-nat.c: Fix comment.
2961 (supply_gregset): Change argument to elf_gregset_t *.
2962 (supply_fpregset): Change argument to elf_fpregset_t *.
2963 (fetch_core_registers): New function.
2964 (linux_elf_core_fns): Define.
2965 (_initialize_m68k_linux_nat): New function.
2967 2001-07-11 Andrew Cagney <ac131313@redhat.com>
2969 * configure.tgt: Mark d10v as pure multi-arch.
2970 * config/d10v/tm-d10v.h: Delete file.
2971 * config/d10v/d10v.mt (TM_FILE): Delete.
2973 2001-07-10 Andrew Cagney <ac131313@redhat.com>
2975 * serial.h (typedef serial_t): Delete. Replace all references to
2976 serial_t with `struct serial *'.
2978 * nindy-share/ttyflush.c: Update.
2979 * nindy-share/ttyflush.c: Update.
2980 * nindy-share/Onindy.c: Update.
2981 * nindy-share/nindy.c: Update.
2982 * remote-rdp.c: Update.
2983 * remote-sds.c: Update.
2984 * remote-st.c: Update.
2985 * remote-nindy.c: Update.
2986 * remote-mips.c: Update.
2987 * remote-e7000.c: Update.
2988 * remote-os9k.c: Update.
2989 * remote-nrom.c: Update.
2990 * remote-es.c: Update.
2991 * remote-array.c: Update.
2993 * mon960-rom.c: Update.
2996 * ser-e7kpc.c: Update.
2997 * sparclet-rom.c: Update.
2999 * ser-tcp.c: Update.
3000 * ser-go32.c: Update.
3001 * sparcl-tdep.c: Update.
3002 * w89k-rom.c: Update.
3004 * sh3-rom.c: Update.
3006 * ser-pipe.c: Update.
3007 * ser-unix.c: Update.
3008 * ser-unix.h: Update.
3012 2001-07-11 J.T. Conklin <jtc@redback.com>
3014 From Greg McGary <greg@mcgary.org>:
3015 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
3017 (input_interrupt): Don't block on read, in case we got redundant
3018 SIGIO. Don't gripe about redundant SIGIO.
3019 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
3020 handler while waiting.
3021 * gdbserver/low-linux.c (mywait): Likewise.
3022 * gdbserver/low-nbsd.c (mywait): Likewise.
3023 * gdbserver/low-sparc.c (mywait): Likewise.
3025 2001-07-11 Keith Seitz <keiths@redhat.com>
3027 * infrun.c (print_stop_reason): Add missing uiout field
3028 "reason" for SIGNAL_RECEIVED case.
3030 2001-07-11 Mark Kettenis <kettenis@gnu.org>
3032 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
3033 Remove unused macro's.
3035 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
3038 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
3040 * go32-nat.c (info_dos_cmdlist): New variable.
3041 (go32_info_dos_command): New function.
3042 (_initialize_go32_nat): Convert all DOS-specific commands into
3043 subcommands of "info dos". Suggested by Andrew Cagney
3044 <ac131313@redhat.com>.
3046 2001-07-11 Mark Kettenis <kettenis@gnu.org>
3048 * config/nm-linux.h: Fix comments.
3050 * thread-db.c (enable_thread_event_reporting): Correct warning
3051 message about getting thread death breakpoint.
3052 Reported by John S Kallal <jskallal@home.com>.
3054 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
3055 (i386_store_return_value): Frob FPU status and tag word to make
3056 sure the return value is the only value on the FPU stack.
3058 * config/tm-linux.h: Do not include <signal.h>. Instead provide
3059 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
3061 * config/nm-linux.h: Include <signal.h>.
3062 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
3063 (__SIGRTMAX + 1) respectively.
3065 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3067 * mcore-rom.c: Include "serial.h".
3068 * Makefile.in (mcore-rom.o): Depends on "serial.h".
3070 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3072 * Makefile.in (remote-bug.o): Depends on serial.h.
3073 * remote-bug.c: Include "serial.h".
3074 * MAINTAINERS: Mark m88k target as buildable.
3077 2001-07-10 Jim Blandy <jimb@redhat.com>
3079 Clean up the D10V port so that GDB and the target program no
3080 longer disagree on how big pointers are.
3081 * findvar.c (value_from_register): Remove special case code for D10V.
3082 * printcmd.c (print_frame_args): Same.
3083 * valops.c (value_at, value_fetch_lazy): Same.
3084 * values.c (unpack_long): Same.
3085 * gdbarch.sh: Changes to effect the following:
3086 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
3087 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
3088 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
3089 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
3090 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
3091 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
3092 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
3093 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
3094 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
3095 gdbarch_d10v_convert_daddr_to_raw_ftype,
3096 gdbarch_d10v_convert_daddr_to_raw,
3097 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
3098 gdbarch_d10v_convert_iaddr_to_raw_ftype,
3099 gdbarch_d10v_convert_iaddr_to_raw,
3100 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
3101 * gdbarch.c: Delete the corresponding definitions.
3102 (struct gdbarch): Delete members d10v_make_daddr,
3103 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3104 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
3105 (startup_gdbarch): Remove initializers for the above.
3106 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
3108 * d10v-tdep.c (d10v_register_virtual_type): Rather that
3109 claiming the stack pointer and PC are 32 bits long (which they
3110 aren't), say that the stack pointer is an int16_t, and the
3111 program counter is a function pointer. This allows the rest
3112 of GDB to make the appropriate conversions between the code
3113 pointer format and real addresses.
3114 (d10v_register_convertible, d10v_register_convert_to_virtual,
3115 d10v_register_convert_to_raw): Delete function; no registers
3116 are convertible now, so we use
3117 generic_register_convertible_not instead.
3118 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
3120 (d10v_push_arguments, d10v_extract_return_value): Remove special
3121 cases for code and data pointers.
3122 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
3123 the target agree on how large pointers are. Say that addresses
3124 are 32 bits long. Register the address_to_pointer and
3125 pointer_to_address conversion functions. Since no registers are
3126 convertible now, register generic_register_convertible_not as the
3127 gdbarch_register_convertible method instead of
3128 d10v_register_convertible. Remove registrations for
3129 d10v_register_convert_to_virtual,
3130 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
3131 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
3132 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
3133 gdbarch_d10v_convert_iaddr_to_raw.
3135 * printcmd.c (print_scalar_formatted): If we are printing an
3136 address, remember that TARGET_ADDR_BIT is not always equal to
3139 * valops.c (value_cast): When casting a pointer to an integer,
3140 don't convert it to an address.
3142 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3144 * remote-utils.h (struct serial): Declare as opaque. Remove
3145 include of "serial.h".
3146 * Makefile.in (remote_utils_h): Update.
3148 * monitor.h (struct serial): Declare as opaque. Remove include of
3150 (struct monitor_ops): Replace serial_t with `struct serial *'.
3151 * monitor.c (monitor_desc): Ditto.
3153 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
3155 * mips-linux-tdep.c: New file.
3156 * mips-linux-nat.c: New file.
3157 * config/mips/linux.mh: New file.
3158 * config/mips/linux.mt: New file.
3159 * config/mips/xm-linux.h: New file.
3160 * config/mips/nm-linux.h: New file.
3161 * config/mips/tm-linux.h: New file.
3162 * configure.host: Recognize mips*-*-linux*.
3163 * configure.tgt: Likewise.
3164 * NEWS: Mention mips*-*-linux* port.
3166 2001-07-09 Andrew Cagney <ac131313@redhat.com>
3168 * serial.h (struct serial): Rename `struct _serial_t'.
3169 * serial.c (XMALLOC): Define.
3170 (serial_open): Update. Use XMALLOC.
3171 (serial_fdopen): Ditto.
3173 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3175 * gdbtypes.h (builtin_type_void_data_ptr): Rename
3177 * gdbtypes.c (builtin_type_void_data_ptr): Update.
3178 (build_gdbtypes): Update.
3179 (_initialize_gdbtypes): Update.
3180 * values.c (value_as_pointer): Update.
3181 * utils.c (host_pointer_to_address): Update.
3182 (address_to_host_pointer): Update.
3184 2001-07-08 Andrew Cagney <ac131313@redhat.com>
3186 * remote-udi.c (udi_wait): Make type, instead of name, of first
3189 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3191 * ser-mac.c: Make obsolete.
3192 * Makefile.in (ser-mac.o): Ditto.
3194 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
3196 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
3197 (read_memory_region, get_descriptor, display_descriptor)
3198 (go32_sldt, go32_sgdt, go32_sidt): New functions.
3199 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
3200 away `disable' from dos.h, since breakpoint.h defines an enum
3201 member of the same name, and GCC 2.7.2 barfs.
3202 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
3203 dos-gdt, and dos-idt, all of them in the "info" class
3205 2001-07-07 Kevin Buettner <kevinb@redhat.com>
3207 * procfs.c (create_procinfo): Allocate space for saved_entryset
3209 (destroy_one_procinfo): Free space allocated to saved_entryset
3212 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3214 * TODO (5.1): Update.
3216 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3218 * symtab.c (main_name): New function.
3219 (set_main_name): New function.
3220 * symtab.h: Declare.
3223 From 2000-03-05 Anthony Green <green@redhat.com>:
3224 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
3226 * blockframe.c (inside_main_func): Use main_name instead of
3228 * symtab.c (find_main_psymtab): Ditto.
3229 * source.c (select_source_symtab): Ditto.
3230 * nlmread.c (nlm_symfile_read): Ditto.
3231 * rs6000-tdep.c (skip_prologue): Ditto.
3233 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3235 * TODO: Convert most items into PRs.
3237 2001-07-07 Mark Kettenis <kettenis@gnu.org>
3239 * lin-lwp.c (status_to_str): New function.
3240 (lin_lwp_wait): Use it to print debug messages where appropriate.
3242 2001-07-06 Michael Chastain <chastain@redhat.com>
3244 * i387-tdep.c (print_i387_value): Fix pointer glitch.
3246 2001-07-07 Mark Kettenis <kettenis@gnu.org>
3248 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
3249 commented with "paranoia" into gdb_assert.
3250 (select_event_lwp_callback): Likewise.
3251 (cancel_breakpoints_callback): Bail out early if LP is the event
3252 LWP. Add comment about backup up breakpoints. Fix formatting and
3254 (select_event_lwp): Make solely repsonsible for switching event
3255 LWP. Fix formatting and remove bogus "ERROR" debug message.
3256 Don't backup breakpoints from here.
3257 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
3258 handle that. Only call select_event_lwp if we're not waiting for
3259 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
3261 2001-07-06 Michael Snyder <msnyder@redhat.com>
3263 * procfs.c (procfs_resume): Silence noisy warning.
3265 2001-06-12 Michael Snyder <msnyder@redhat.com>
3267 * lin-lwp.c: Prevent thread starvation by using a monte carlo
3268 method to choose which of several event threads to handle next.
3270 (stop_wait_callback): Defer pushback of breakpoint events until
3271 later; add SIGTRAP events to the queue of unhandled events.
3272 Keep calling waitpid until SIGSTOP retrieved. If more than one
3273 non-SIGSTOP event is retrieved, push them back onto the process
3275 (count_events_callback, select_singlestep_lwp_callback,
3276 select_event_lwp_callback, cancel_breakpoints_callback,
3277 select_event_lwp): New functions. Implement monte carlo method
3278 for selecting which of several SIGTRAP threads to handle next.
3279 Push back the breakpoint event for all threads other than the
3281 (lin_lwp_wait): Call select_event_lwp to decide which of several
3282 sigtrapped lwps to handle next.
3283 (resume_callback): Disable code that attempts to handle
3284 step_resume breakpoints. Let core gdb handle this.
3286 2001-07-06 Jim Blandy <jimb@redhat.com>
3288 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
3289 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
3290 (build_gdbtypes): Initialize it.
3291 (_initialize_gdbtypes): Swap it.
3293 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
3295 * mips-tdep.c (mips32_op): Correct offset.
3296 (itype_op): Likewise.
3297 (itype_rs): Fix formatting.
3298 (itype_immediate): Fix formatting.
3299 (jtype_op): Correct offset.
3300 (jtype_target): Fix formatting.
3301 (rtype_op): Correct offset.
3302 (rtype_rs): Fix formatting.
3303 (rtype_rt): Likewise.
3304 (rtype_rd): Likewise.
3305 (rtype_shamt): Likewise.
3306 (rtype_funct): Likewise.
3308 (mips32_next_pc): Fix formatting and comments. Recognize
3309 coprocessor 1 branches. Check the correct field for BLT family
3310 branches. Use itype_rt instead of itype_rs for the second register
3311 of a BNE or BNEL branch. Move (unreachable) default case.
3313 2001-07-04 Andrew Cagney <ac131313@redhat.com>
3315 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
3316 (ui_out_is_mi_like_p): Declare.
3317 * ui-out.c (ui_out_is_mi_like_p): Define.
3318 (default_ui_out_impl): Initialize is_mi_like_p to zero.
3319 * cli-out.c (cli_ui_out_impl): Ditto.
3320 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
3321 (watchpoint_check, print_one_breakpoint, mention): Ditto.
3322 * infrun.c (print_stop_reason, normal_stop): Ditto.
3324 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
3326 * mips-tdep.c (mips_software_single_step): New function.
3327 * config/mips/tm-mips.h: Add prototype for
3328 mips_software_single_step.
3330 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
3332 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
3334 (fill_gregset): Likewise.
3336 2001-07-05 Andrew Cagney <ac131313@redhat.com>
3338 * objfiles.c (open_mapped_file): Use lbasename instead of
3341 2001-07-05 Jim Blandy <jimb@redhat.com>
3343 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
3344 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
3345 d10v_write_sp, d10v_write_fp, d10v_read_fp,
3346 d10v_push_return_address): Call the functions d10v_make_daddr,
3347 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
3348 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
3349 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
3350 D10V_CONVERT_DADDR_TO_RAW.
3352 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
3354 2001-07-05 Mark Kettenis <kettenis@gnu.org>
3356 * config/i386/xm-go32.h (HOST_I386): Removed.
3357 * config/i386/xm-linux.h (HOST_I386): Removed.
3359 2001-07-04 Mark Kettenis <kettenis@gnu.org>
3361 * i387-tdep.c (print_i387_value): Add extra space after final full
3364 2001-07-04 Andrew Cagney <ac131313@redhat.com>
3366 * TODO (5.1): Update. Doco changes committed.
3368 2001-06-29 Andrew Cagney <ac131313@redhat.com>
3370 * config/arm/tm-arm.h: Include "floatformat.h".
3372 2001-06-29 Andrew Cagney <ac131313@redhat.com>
3374 * i387-tdep.c: Include "gdb_assert.h".
3375 (print_i387_value): Use extract_floating to extract the FP value
3376 from a zero padded local buffer.
3378 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3380 * TODO: Delete all thread items. The thread code was overhauled.
3382 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
3384 * memattr.c (create_mem_region): Move n to next memory region,
3385 to avoid infinite loop.
3387 * memattr.h: Add copyright statement.
3390 2001-07-04 Jim Blandy <jimb@redhat.com>
3392 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
3393 (read_partial_die): Delete fourth argument; we return this info in
3394 the struct partial_die_info object itself now.
3395 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
3396 has_pc_info field of the partial die struct, rather than passing a
3397 variable by reference to read_partial_die.
3399 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
3400 code in loop condition.
3402 2001-07-03 Michael Snyder <msnyder@redhat.com>
3404 * thread_db (find_new_threads_callback, thread_db_thread_alive,
3405 attach_thread): Update comments.
3407 2001-06-29 Ken Whaley <ken@believe.com>
3409 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
3410 to TD_THR_UNKNOWN when looking for defunct zombie threads.
3411 (thread_db_thread_alive): Ditto.
3412 (find_new_threads_callback): Ditto.
3414 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
3416 * MAINTAINERS: Add myself to the write-after-approval list.
3418 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
3420 * solib-svr4.c: Include "elf/mips.h".
3421 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
3423 2001-07-02 Jim Blandy <jimb@redhat.com>
3425 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
3426 dump_die_list, store_in_ref_table, follow_die_ref): Make these
3427 static; they're private functions.
3429 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
3431 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
3433 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
3435 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
3437 2001-06-29 Andrew Cagney <ac131313@redhat.com>
3439 * config/djgpp/fnchange.lst: Sort.
3441 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3443 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
3444 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
3446 2001-06-29 Andreas Jaeger <aj@suse.de>
3448 * MAINTAINERS: Add myself to the write-after-approval list.
3450 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3452 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
3453 (get_hex_word): Don't use HOST_BYTE_ORDER.
3454 (array_fetch_registers): Add variable ``reg''. Use
3455 store_unsigned_integer to byte-swap the register. Delete unused
3458 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3460 * MAINTAINERS: Add Per Bothner to Java maintainers.
3462 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3464 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
3465 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
3466 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
3468 * MAINTAINERS: Update. arm-elf builds.
3470 2001-06-28 Jim Blandy <jimb@redhat.com>
3472 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
3474 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
3475 d10v_breakpoint_from_pc, d10v_register_byte,
3476 d10v_register_raw_size, d10v_register_virtual_size,
3477 d10v_register_virtual_type, d10v_register_convertible,
3478 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
3479 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3480 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
3481 d10v_store_struct_return, d10v_store_return_value,
3482 d10v_extract_struct_value_address, d10v_frame_saved_pc,
3483 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
3484 d10v_frame_chain, d10v_frame_init_saved_regs,
3485 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
3486 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
3487 d10v_push_return_address, d10v_push_arguments,
3488 d10v_extract_return_value): Make these functions static.
3490 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3492 From Fernando Nasser:
3493 * infrun.c (handle_inferior_event): Handle "nexti" inside function
3496 2001-06-28 Michael Snyder <msnyder@redhat.com>
3498 * infrun.c (handle_inferior_event): Replace prev_pc test in all
3499 calls to bpstat_stop_status (removed in 1999-09-24). This test
3500 helps distinguish stepping over a breakpoint trap from stepping
3501 thru a jump to the instruction after a breakpoint trap.
3502 (handle_inferior_event): Don't bother writing the PC if
3503 DECR_PC_AFTER_BREAK is zero (optimization).
3504 * breakpoint.c (bpstat_stop_status): Add comment explaining the
3505 purpose and usage of the "not_a_breakpoint" argument in computing
3506 the breakpoint address.
3508 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3510 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3511 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
3512 (setreg_resp_delim_pattern): Likewise.
3513 (setmem_resp_delim_fastmap): New buffer.
3514 (setreg_resp_delim_fastmap): Likewise.
3515 (monitor_open): Initialize above regexp if they are defined.
3516 (monitor_write_memory): Use regexp to check the result of write.
3517 (monitor_store_register): Likewise to check result of register set.
3519 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3521 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
3522 * coff-solib.c: Include symfile.h and objfiles.h to make
3523 OBJF_SHARED visible.
3525 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3527 * configure.in (--enable-gdbmi): Enable by default.
3528 * configure: Regenerate.
3532 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
3534 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
3535 explaining the consequences of always returning zero. No code
3538 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3540 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
3541 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
3542 to TARGET_SIGNAL_REALTIME_127.
3543 * target.c (struct signals): Add SIG63 to SIG127.
3544 (target_signal_from_host): Handle up to 127 signals.
3545 (do_target_signal_to_host): Likewise.
3547 2001-06-27 Andrew Cagney <ac131313@redhat.com>
3549 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
3550 from possibly unsigned char.
3552 2001-06-27 Andrew Cagney <ac131313@redhat.com>
3554 * ser-ocd.c: Delete file.
3555 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
3556 (ser-ocd.o): Delete target.
3560 2001-06-27 Andrew Cagney <ac131313@redhat.com>
3562 * MAINTAINERS (Write After Approval): Sort.
3563 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
3565 2001-06-26 Andrew Cagney <ac131313@redhat.com>
3567 * breakpoint.c (breakpoint_1): Always output the breakpoint
3568 headings. Leave it to ui-out to decide which
3570 2001-06-25 Andrew Cagney <ac131313@redhat.com>
3572 * stack.c (print_frame): For ui_out, output a list of arguments.
3574 2001-06-25 Kevin Buettner <kevinb@redhat.com>
3576 * MAINTAINERS (paper trail): Update.
3578 2001-06-25 Michael Snyder <msnyder@redhat.com>
3580 * infrun.c: Eliminate the "thread_step_needed" state variable,
3581 and replace it with a relatively simple test in resume.
3582 (resume): Replace thread_step_needed logic with a test for
3583 stepping, breakpoint_here_p and breakpoints_inserted.
3584 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
3585 (proceed): Discard thread_step_needed logic.
3586 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
3587 Discard thread_step_needed logic.
3589 2001-06-24 Fernando Nasser <fnasser@redhat.com>
3591 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
3592 * rdi-share/host.h: Add missing parenthesis in conditional.
3594 2001-06-22 J.T. Conklin <jtc@redback.com>
3596 * configure.in: include nlist.h when checking for member som_addr
3598 * configure: regenerate.
3600 2001-06-21 Keith Seitz <keiths@redhat.com>
3602 * cli-out.c (cli_out_new): Initialize new structure member
3605 2001-06-20 Andrew Cagney <ac131313@redhat.com>
3607 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
3608 (table_header_ftype): Ditto.
3609 * cli-out.c (cli_table_header): Update.
3610 * ui-out.c (ui_out_table_header): Update.
3611 (uo_table_header): Update.
3612 (default_table_header): Update.
3613 (append_header_to_list): Update.
3614 (struct ui_out_header): Add field ``col_name''.
3615 (append_header_to_list): Use xstrdup. Initialize col_name.
3616 * breakpoint.c (breakpoint_1): Pass COL_NAME to
3617 ui_out_table_header.
3619 2001-06-19 Andrew Cagney <ac131313@redhat.com>
3621 * cli-out.c: Include "gdb_assert.h'.
3622 (struct ui_out_data): Add field ``suppress_output.
3623 (cli_table_begin): When NR_ROWS is zero, suppress_output.
3624 (cli_table_end): Clear suppress_output.
3625 (cli_table_body): Check suppress_output.
3626 (cli_table_header, cli_begin): Ditto.
3627 (cli_end, cli_field_int, cli_field_skip): Ditto.
3628 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
3629 (cli_text, cli_message, cli_wrap_hint): Ditto.
3630 * breakpoint.c (breakpoint_1): Close the ui_out table before
3631 printing the breakpoint not found message.
3633 2001-06-18 Andrew Cagney <ac131313@redhat.com>
3635 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
3636 (default_table_begin): Ditto.
3637 (uo_table_begin): Ditto.
3638 * cli-out.c (cli_table_begin): Ditto.
3639 * ui-out.h (ui_out_table_begin): Update
3640 (table_begin_ftype): Update.
3641 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
3644 2001-06-16 Andrew Cagney <ac131313@redhat.com>
3646 * breakpoint.c (breakpoint_1): Restructure. Compute the
3647 nr_printable_breakpoints. Move the header output to before the
3648 main print breakpoints loop.
3649 (user_settable_breakpoint): New function.
3651 2001-06-18 Andrew Cagney <ac131313@redhat.com>
3653 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
3654 "mi", "mi0" and "mi1".
3656 2001-06-17 Andrew Cagney <ac131313@redhat.com>
3658 * gdbarch.sh: Generate an error when conflicting macro
3659 definitions. Generate an error when both pure multi-arch and
3661 * gdbarch.h, gdbarch.c: Regenerate.
3662 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
3664 2001-06-17 Andrew Cagney <ac131313@redhat.com>
3666 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
3667 GDB_MULTI_ARCH_PARTIAL from two.
3669 2001-06-17 Fernando Nasser <fnasser@redhat.com>
3671 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
3672 * cli/cli-script.c (free_command_lines): Reset list pointer.
3674 2001-06-16 Andrew Cagney <ac131313@redhat.com>
3676 * arch-utils.c (init_frame_pc_default): New function
3677 * arch-utils.h (init_frame_pc_default): Declare.
3678 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
3679 not init_frame_pc_noop.
3680 * gdbarch.h, gdbarch.c: Re-generate.
3681 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
3682 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
3685 2001-06-16 Andrew Cagney <ac131313@redhat.com>
3687 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
3689 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3691 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
3692 (CANNOT_STORE_REGISTER): Ditto.
3693 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
3694 (CANNOT_STORE_REGISTER): Ditto.
3695 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
3696 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
3697 * arch-utils.h (cannot_register_not): Define.
3698 * arch-utils.c (cannot_register_not): Declare.
3700 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3702 * gdbarch.sh: Clarify pre/post default
3703 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
3704 * blockframe.c (get_prev_frame): Remove #ifdef from around
3705 INIT_FRAME_PC_FIRST call.
3706 * arch-utils.c (init_frame_pc_noop): Define.
3707 * arch-utils.h (init_frame_pc_noop): Declare.
3708 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
3709 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
3710 * mips-tdep.c (mips_init_frame_pc_first): Make static.
3711 (mips_gdbarch_init): Initialize init_frame_pc_first.
3712 (mips_dump_tdep): Update.
3714 2001-06-15 Michael Snyder <msnyder@redhat.com>
3716 * infrun.c (context_switch): New function. Abstract the operation
3717 of saving and restoring infrun's state when switching threads.
3718 (handle_inferior_event): Normalize the handling of the 'thread hop'
3719 event (when the wrong thread hits a thread-specific breakpoint,
3720 and we need to solo-step that thread past the breakpoint).
3721 Call keep_going, instead of target_resume. Handle the subsequent
3722 singlestep-trap as a normal event instead of just resuming.
3724 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3726 * arch-utils.c (core_addr_identity): New function. Rename
3727 default_convert_from_func_ptr_addr.
3728 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
3729 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
3730 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
3731 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
3732 * mips-tdep.c (mips_addr_bits_remove): Make static.
3733 (mips_gdbarch_init): Initialize addr_bits_remove.
3735 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3737 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
3738 * configure.tgt: Add S/390 31 & 64 bit target configuration.
3739 * configure.host: Ditto for host.
3741 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3743 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
3744 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
3746 * gdbarch.h, gdbarch.c: Regenerate.
3747 * values.c (value_being_returned): Change the reference to
3748 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
3750 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
3752 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
3753 Write After Approval list.
3755 2001-06-14 Michael Snyder <msnyder@redhat.com>
3757 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
3758 set_remote_protocol_qSymbol_packet_cmd): New functions.
3759 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
3760 (remote_check_symbols): New function. Implement qSymbol packet,
3761 allowing target to request symbol lookup service from gdb.
3762 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
3763 allowing symbol lookup from exec_bfd on connection to target.
3764 (remote_new_objfile): New function. Catch new objfile notifications
3765 from shared library module, and call remote_check_symbols.
3766 (_initialize_remote): Hook remote_new_objfile into the shared
3767 library notification chain. Add "set remote symbol-lookup" command.
3769 2001-06-14 Keith Seitz <keiths@redhat.com>
3771 * tracepoint.c (trace_command): We now have tracepoint
3772 events. Get rid of those ugly hooks.
3773 (tracepoint_operation): Likewise.
3774 (trace_pass_command): Likewise.
3776 2001-06-13 Michael Snyder <msnyder@redhat.com>
3778 * gdbthread.h (struct thread_info): Add new fields:
3779 current_line, current_symtab, step_sp, for saved infrun state.
3780 * thread.c (save_infrun_state, load_infrun_state): Save and
3781 restore current_line, current_symtab, and step_sp.
3782 (add_thread): Rather than adding assignments to initialize
3783 the new fields, just use memset (tp, 0, sizeof (*tp).
3784 This way future new fields will not be overlooked.
3785 * infrun.c (handle_inferior_event): Save and restore save_sp,
3786 current_line, and current_symtab when switching threads.
3788 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
3790 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
3793 2001-06-11 Andrew Cagney <ac131313@redhat.com>
3795 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
3796 (lookup_partial_symtab, file_matches): Ditto.
3797 (make_source_files_completion_list): Ditto.
3798 (make_file_symbol_completion_list): Ditto. Make local char*
3799 variable ``tail'' constant.
3800 (make_source_files_completion_list): Ditto with ``base_name''.
3801 * source.c (open_source_file): Use lbasename. Make ``p'' const
3804 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
3806 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
3807 (SLASH_STRING): Remove unused definitions.
3808 * config/i386/xm-cygwin.h: Likewise.
3810 2001-06-12 Andrew Cagney <ac131313@redhat.com>
3812 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
3813 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
3814 * ui-out.h: Update declarations.
3816 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
3818 * source.c (openp): Make parameters ``path'' and ``string''
3820 (openp): Use alloca to safely duplicate ``string''. Make local
3821 variables ``p'' and ``p1'' constant. Delete char* casts.
3824 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
3825 (lookup_symtab, lookup_partial_symtab): Ditto.
3826 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
3828 2001-06-11 Andrew Cagney <ac131313@redhat.com>
3830 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
3831 (ui_out_table_header, ui_out_field_int): Ditto.
3832 (ui_out_field_core_addr, ui_out_field_string): Ditto.
3833 (ui_out_field_stream, ui_out_field_fmt): Ditto.
3834 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
3835 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
3836 (ui_out_field_core_addr, ui_out_field_stream): Update.
3837 (ui_out_field_string, ui_out_field_fmt): Update.
3838 (ui_out_text, ui_out_message): Update.
3839 (append_header_to_list): Make char* parameters constant.
3840 (uo_table_header, uo_table_begin): Ditto.
3841 (uo_field_int, uo_field_skip): Ditto.
3842 (uo_field_string, uo_field_fmt): Ditto.
3843 (uo_text, uo_message): Ditto.
3845 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
3847 * completer.c (gdb_completer_loc_break_characters): New variable.
3848 (line_completion_function): If we are completing on locations,
3849 back up the start of word pointer past all characters which can
3850 appear in a location spec.
3851 (location_completer): New function.
3853 * completer.h: Add prototype for location_completer.
3855 * symtab.c (make_source_files_completion_list)
3856 (add_filename_to_list, not_interesting_fname): New functions.
3857 (filename_seen): New function, body extracted from
3858 output_source_filename.
3859 (output_source_filename): Call filename_seen to check if the file
3860 was already printed.
3861 (make_symbol_completion_list): If TEXT includes a
3862 double-quoted string, return an empty list, not NULL.
3863 (make_file_symbol_completion_list): New function, similar to
3864 make_symbol_completion_list but with an additional argument
3867 * symtab.h (make_file_symbol_completion_list)
3868 (make_source_files_completion_list): Add prototypes.
3870 * breakpoint.c (_initialize_breakpoint): Make location_completer
3871 be the completion function for all commands which set breakpoints
3873 (top-level): #include "completer.h".
3875 * tracepoint.c (_initialize_tracepoint): Make location_completer
3876 be the completion function for the "trace" command.
3877 (top-level): #include "completer.h".
3879 * printcmd.c (_initialize_printcmd): Make location_completer be
3880 the completion function for the "print", "inspect", "call", and
3881 "disassemble" commands.
3882 (top-level): #include "completer.h".
3884 * infcmd.c (_initialize_infcmd): Make location_completer be the
3885 completion function for the "go", "jump", and "until" commands.
3886 (top-level): #include "completer.h".
3888 2001-06-10 Christopher Faylor <cgf@redhat.com>
3890 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
3891 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
3892 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
3894 * m32r-rom.c: Ditto.
3896 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
3898 (get_ds_base): Remove _MSC_VER version of this function.
3899 * nindy-share/ttyflush.c: Ditto.
3900 * rdi-share/host.h: Ditto.
3901 * ser-go32.c (dos_readchar): Remove call to obsolete function.
3902 * remote-sim.c (gdb_os_poll_quit): Ditto.
3903 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
3905 * main.c (captured_main): Eliminate special Cygwin checks.
3906 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
3908 2001-06-09 Andrew Cagney <ac131313@redhat.com>
3910 * Makefile.in (gdbcmd_h): Add ui_out_h.
3911 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
3912 (thread.o, top.o): Ditto.
3914 * ui-out.h (table_begin_ftype): Make string parameters constant.
3915 (table_header_ftype): Ditto.
3916 (field_int_ftype): Ditto.
3917 (field_skip_ftype): Ditto.
3918 (field_string_ftype): Ditto.
3919 (field_fmt_ftype): Ditto.
3920 (text_ftype): Ditto.
3921 (message_ftype): Ditto.
3922 * cli-out.c (cli_table_begin): Ditto.
3923 (cli_table_header): Ditto.
3924 (cli_field_int): Ditto.
3925 (cli_field_skip): Ditto.
3926 (cli_field_string): Ditto.
3927 (cli_field_fmt): Ditto.
3929 (cli_message): Ditto.
3930 (out_field_fmt): Ditto.
3931 * ui-out.c (default_table_begin): Ditto.
3932 (default_table_header): Ditto.
3933 (default_field_int): Ditto.
3934 (default_field_skip): Ditto.
3935 (default_field_string): Ditto.
3936 (default_field_fmt): Ditto.
3937 (default_text): Ditto.
3938 (default_message): Ditto.
3940 2001-06-08 Michael Snyder <msnyder@redhat.com>
3942 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
3943 remove_breakpoint, so that the subsequent test for
3944 bpt->inserted will succeed, and duplicates will be fixed up.
3946 2001-06-08 Per Bothner <per@bothner.com>
3948 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
3950 2001-06-07 Keith Seitz <keiths@redhat.com>
3952 * tracepoint.c (tracepoint_opertation): Add ui event
3954 (trace_pass_command): Ditto.
3956 2001-06-07 Andrew Cagney <ac131313@redhat.com>
3958 * MAINTAINERS (Write After Approval): Note the entry criteria.
3959 (HP/PA): Jeff Law stepped down
3961 2001-06-07 Jim Blandy <jimb@redhat.com>
3963 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
3964 variable values as operators.
3966 2001-06-07 Keith Seitz <keiths@redhat.com>
3968 * gdb-events.sh: Fix quote escaping which was obsoleted
3971 2001-06-07 Keith Seitz <keiths@redhat.com>
3973 * gdb-events.sh: Make if statements and tests
3974 a little more portable.
3975 Don't use shell's echo command to put strings containing
3976 escaped characeters into a file -- different flavors of /bin/sh
3977 require differnt levels of escaping. Use cat <<EOF instead.
3978 Our internal field separator is a colon. Change all
3979 commands which assume it is a space.
3981 2001-06-06 Mark Kettenis <kettenis@gnu.org>
3983 * lin-lwp.c (struct lwp_info): Add member `resumed'.
3984 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
3985 LWP it's called for.
3986 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
3987 SIGSTOP is reported.
3988 (resume_clear_callback): New function.
3989 (resume_set_callback): New function.
3990 (lin_lwp_resume): Mark all LWP's that we're going to resume as
3991 resumed, and unmark all others.
3992 (status_callback): Only report a pending wait status if we pretend
3993 that LP has been resumed.
3994 (resumed_callback): New function.
3995 (lin_lwp_wait): Add assertions to check that LWP's are properly
3996 marked as resumed. Partially revert 2001-05-25 patch by Michael
3997 Snyder: do not resume all threads. Add comment explaining the
3998 problems associated with this bit of code.
4000 2001-06-07 Keith Seitz <keiths@redhat.com>
4002 * MAINTAINTERS: Syd Polk is stepping down from
4003 maintaining libgui. I am replacing him.
4005 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
4007 * config/mips/tm-irix6.h: New file.
4009 * config/mips/irix6.mh: New file.
4011 * config/mips/irix6.mt: New file.
4013 * config/mips/xm-irix6.h: New file.
4015 * config/mips/nm-irix6.h: New file.
4017 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
4018 disassembler info in tm_print_insn_info as appropriate for the N32
4019 ABI. Force N32 ABI to be the default if the CPU is R8000 or
4022 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
4024 * configure.host (mips*-sgi-irix6*): Ditto.
4026 2001-06-07 Andrew Cagney <ac131313@redhat.com>
4028 * gnu-v3-abi.c: Include "gdb_assert.h".
4029 (build_gdb_vtable_type): Replace abort() with gdb_assert().
4031 2001-06-06 Jim Blandy <jimb@redhat.com>
4033 * cp-abi.h: Rearrange code to put documentation comments above the
4034 functions we export. The actual function table itself simply
4035 refers to those functions. Minor doc fixes.
4037 * gdbarch.sh: Changes to effect the following:
4038 * gdbarch.c (initialize_non_multiarch): New function.
4039 * gdbarch.h (initialize_non_multiarch): New declaration.
4040 * arch-utils.c (initialize_current_architecture): For
4041 non-multiarch configurations, call initialize_non_multiarch.
4043 2001-06-06 Andrew Cagney <ac131313@redhat.com>
4045 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
4047 (compare_symbols): Ditto.
4049 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
4051 * arch-utils.c (generic_prepare_to_proceed): Allow for having
4052 stopped due to a Ctrl-C as well as breakpoints.
4054 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
4055 support thread switches after Ctrl-C.
4056 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
4057 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
4058 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
4060 2001-06-06 Jim Blandy <jimb@redhat.com>
4062 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
4063 per-architecture data should be registered at initialization time,
4064 before any gdbarch objects get used, so the generality is
4067 2001-06-06 Keith Seitz <keiths@redhat.com>
4069 * gdb-events.sh (function_list): Add tracepoint_create,
4070 tracepoint_delete, and tracepoint_modify events.
4071 * gdb-events.c: Regenerated.
4072 * gdb-events.h: Regenerated.
4074 2001-06-06 Keith Seitz <keiths@redhat.com>
4076 * gdb-events.sh: Update copyrights.
4077 Change free to xfree.
4078 * gdb-events.c: Regenerated.
4079 * gdb-events.h: Regenerated.
4081 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
4083 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
4084 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
4085 * completer.c: Ditto.
4086 * cli/cli-cmds.c (cd_command): Ditto.
4088 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
4090 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
4091 (mips_set_processor_type_command): Remove unused variable j.
4092 (mips_breakpoint_from_pc): Declare breakpoint instruction
4093 sequences as unsigned char, to avoid compiler warnings.
4095 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
4096 instead of system-specific define's like _WIN32 and __MSDOS__.
4097 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
4099 (top-level): #include "filenames.h".
4101 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
4102 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
4103 (top-level): #include "filenames.h".
4105 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
4106 (SLASH_STRING): Define only for _WIN32.
4108 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
4111 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
4112 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
4113 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
4114 (top-level): #include "filenames.h".
4116 * go32-nat.c (go32_wait): Change the return value to ptid_t.
4118 * config/djgpp/fnchange.lst: Add two new files in the
4119 gdb/testsuite/gdb.c++/ directory to the remapped names.
4121 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
4123 2001-06-01 Jim Blandy <jimb@redhat.com>
4125 Expand the gdbarch per-architecture data vector as needed, rather
4126 than requiring that all per-architecture data be registered before
4127 the first gdbarch object is allocated.
4128 * gdbarch.sh: Changes to effect the following:
4129 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
4130 declarations and definitions.
4131 (check_gdbarch_data): New function, and declaration.
4132 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
4133 zero is good enough.
4134 (free_gdbarch_data): Tolerate a null data pointer. Free only
4135 those data items gdbarch->data actually has allocated.
4136 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
4137 (gdbarch_update_p): No need to call init_gdbarch_data.
4139 2001-06-01 Kevin Buettner <kevinb@redhat.com>
4141 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
4142 on types that we wish to recurse on.
4143 (slot_alignment_is_next_even): New function.
4144 (ia64_push_arguments): Call slot_alignment_is_next_even() to
4145 examine the type in order to decide if it's necessary to skip
4148 2001-06-01 Michael Snyder <msnyder@redhat.com>
4150 * thread.c (delete_step_resume_breakpoint): New function.
4151 Maintain internal consistency of the thread list while deleting
4152 a step_resume_breakpoint.
4153 * gdbthread.h (delete_step_resume_breakpoint): Export.
4154 * breakpoint.c (bpstat_find_step_resume_breakpoint):
4155 Make thread-aware: don't return a step_resume_breakpoint
4156 for the wrong thread.
4157 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
4158 instead of delete_breakpoint_current_contents.
4159 (fetch_inferior_event): Ditto.
4160 (handle_inferior_event): Call delete_step_resume_breakpoint
4161 instead of delete_breakpoint.
4162 * infrun.c (handle_inferior_event): After singlestepping over a
4163 thread-specific breakpoint, use currently_stepping() to decide
4164 whether to step or continue.
4166 2001-06-01 Jim Blandy <jimb@redhat.com>
4168 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
4169 these static --- there's no reason other files should use these.
4171 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
4174 * partial-stab.h: New complaint: function_outside_compilation_unit.
4175 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
4176 complain, and don't try to set pst's start address.
4178 2001-05-31 Kevin Buettner <kevinb@redhat.com>
4180 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
4181 match the location at which the kernel is placing the sigcontext
4184 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
4185 (refine_prologue_limit): New function.
4186 (examine_prologue): Further limit number of instructions
4187 scanned by calling refine_prologue_limit(). Revise way in
4188 which the end of prologue address is computed for frameless
4191 2001-05-29 Christopher Faylor <cgf@redhat.com>
4193 * partial-stab.h: Revert previous patch.
4195 2001-05-29 Christopher Faylor <cgf@redhat.com>
4197 * partial-stab.h: Consistently guard against pst being NULL.
4199 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
4201 * symfile.c (compare_psymbols, compare_symbols): Declare using
4202 PTR, as in the definition.
4203 * minsyms.c (compare_minimal_symbols): Likewise.
4204 * coffread.c (find_targ_sec): Likewise.
4205 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
4206 * mipsread.c (alphacoff_locate_sections): Likewise.
4207 * mdebugread.c (compare_blocks): Likewise.
4209 2001-05-25 Nick Duffek <nsd@redhat.com>
4211 * solib.c (update_solib_list): Move target_resize_to_sections()
4212 into solib_map_sections() loop.
4213 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
4214 bfd_get_arch_size() fails.
4216 2001-05-25 Nick Duffek <nsd@redhat.com>
4218 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
4220 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
4221 with solib-osf.o and solib.o.
4222 * config/alpha/alpha-osf2.mh: Likewise.
4223 * config/alpha/alpha-osf3.mh: Likewise.
4224 * solib-osf.c: New file, renamed and largely rewritten from
4227 2001-05-25 Michael Snyder <msnyder@redhat.com>
4229 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
4230 to consume the SIGSTOP generated by PTRACE_ATTACH.
4231 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
4232 try again to get the SIGSTOP event.
4233 (lin_lwp_wait): Resume all threads when ignoring a signal.
4234 This will insure that newly attached threads get resumed.
4235 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
4236 * remote.c (remote_write_bytes): Update 'p' packet pointer.
4238 2001-05-25 Jim Blandy <jimb@redhat.com>
4240 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
4241 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
4242 useful value, then we should fix that instead.
4244 2001-05-24 Nick Duffek <nsd@redhat.com>
4246 * solist.h (struct so_list): Document the requirement that
4247 current_sos initialize some fields to 0.
4249 2001-05-24 Mark Kettenis <kettenis@gnu.org>
4251 * gnu-nat.c: Include <ctype.h>.
4252 (gnu_pid_to_exec_file): Add PID parameter.
4253 (set_sig_thread_cmd): Use PIDGET on return value from
4255 (proc_string): Use MERGEPID to construct argument to
4258 2001-05-22 Kevin Buettner <kevinb@redhat.com>
4260 * breakpoint.c (breakpoint_address_is_meaningful): New function.
4261 (check_duplicates): Don't compare non-meaningful addresses.
4263 2001-05-22 Michael Snyder <msnyder@redhat.com>
4265 * thread-db.c: Allow for defunct zombie threads.
4266 (attach_thread): Do not attempt to attach zombie thread.
4267 (thread_db_thread_alive): Return false for defunct zombie thread.
4268 (find_new_threads_callback): Don't add defunct zombie thread to list.
4270 2001-05-22 Jim Blandy <jimb@redhat.com>
4272 Add support for the GNU V3 C++ ABI.
4273 (Includes changes by Dan Berlin.)
4275 * gnu-v3-abi.c: New file.
4276 * minsyms.c: #include "value.h" and "cp-abi.h".
4277 (install_minimal_symbols): Check the minimal symbol table for
4278 symbols that look mangled in the V3 style, and select the V3 ABI
4280 * Makefile.in (SFILES): Add gnu-v3-abi.c.
4281 (COMMON_OBS): Add gnu-v3-abi.o.
4282 (gnu-v3-abi.o): Add new rule.
4283 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
4285 2001-05-21 Jim Blandy <jimb@redhat.com>
4287 * values.c (value_primitive_field): If we're extracting a base
4288 class, then the type of the result should be the base class being
4289 extracted, not the type of which it is a base class.
4291 * value.h (struct value): Doc fix, and rearrange members to place
4292 them near their explanations.
4294 2001-05-21 Michael Snyder <msnyder@redhat.com>
4296 * remote.c (remote_async_wait): Added new variable fieldsize.
4297 Add fieldsize (return value of hex2bin) to string pointer p.
4299 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4301 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
4302 (m68hc11_analyze_instruction): Update the pc correctly.
4303 (m68hc11_guess_from_prologue): Take into account the stack correction
4304 for the saving address.
4306 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
4308 Changes by Jim Ingham:
4310 * values.c (value_change_enclosing_type): New function. If the
4311 new enclosing type is larger than the old one, we need to allocate
4313 * value.h: Add value_change_enclosing_type prototype.
4314 * valops.c (value_cast): Use it.
4315 (value_assign): Use it.
4316 (value_addr): Use it.
4317 (value_ind): Use it.
4318 (value_full_object): Use it.
4320 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
4322 * values.c (value_static_field): Handle static fields that have a
4325 2001-05-17 Michael Snyder <msnyder@redhat.com>
4327 * blockframe.c (create_new_frame): Zero all the fields via memset,
4328 rather than zeroing them one by one.
4330 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4332 * top.c (user_args): Remove unused declaration.
4334 2001-05-16 Michael Snyder <msnyder@redhat.com>
4336 * infcmd.c (do_registers_info): Move alloca outside of loop.
4338 2001-05-15 John S Kallal <jskallal@home.com>
4340 * remote.c (remote_wait): Added new variable fieldsize.
4341 Add fieldsize (return value of hex2bin) to string pointer p.
4343 2001-05-15 Mark Kettenis <kettenis@gnu.org>
4345 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
4348 2001-05-14 Kevin Buettner <kevinb@redhat.com>
4350 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
4351 Adjust format strings for printing LWPs to account for the fact
4352 that the type returned by GET_LWP() is now a long instead of an
4355 2001-05-14 Kevin Buettner <kevinb@redhat.com>
4357 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
4358 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4359 (ptid_get_tid, ptid_equal): New function declarations.
4360 * infrun.c (null_ptid, minus_one_ptid): New variables.
4361 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4362 (ptid_get_tid, ptid_equal): New functions.
4363 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
4364 inferior_ptid, and target_last_wait_ptid.
4366 * defs.h (ptid_t): Redefine to be a struct rather than an int.
4367 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
4368 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
4369 new ptid accessors and constructor.
4371 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
4372 MKLID, MKTID, ISTID): Provide new definitions for these macros.
4373 The old macros are retained, but disabled via #if 0 in order
4374 to aid in future restructuring. See FIXME.
4376 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
4377 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
4378 * infptrace.c (PIDGET, TIDGET): Likewise.
4379 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4380 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4381 * proc-service.c (MERGEPID): Likewise.
4382 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
4383 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4384 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4385 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4387 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4390 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
4391 (GET_LWP): Redefine in terms of ptid_get_lwp().
4392 (GET_PID): Redefine in terms of ptid_get_pid().
4393 (is_lwp): Redefine without the need for THREAD_FLAG.
4394 (BUILD_LWP): Redefine in terms of ptid_build().
4395 * lin-thread.c (THREAD_FLAG): Delete macro definition.
4396 (GET_LWP): Redefine in terms of ptid_get_lwp().
4397 (GET_PID): Redefine in terms of ptid_get_pid().
4398 (GET_THREAD): Redefine in terms of ptid_get_tid().
4399 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4400 (is_lwp, is_thread): Redefine.
4401 (linux_child_wait, check_all_signal_numbers)
4402 (linuxthreads_discard_global_state, attach_thread): Declare these
4403 functions to squash warnings about missing declarations.
4404 * sol-thread.c (THREAD_FLAG): Delete macro definition.
4405 (GET_PID): Redefine in terms of ptid_get_pid().
4406 (GET_LWP): Redefine in terms of ptid_get_lwp().
4407 (GET_THREAD): Redefine in terms of ptid_get_tid().
4408 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4409 (is_lwp, is_thread): Redefine.
4410 * thread-db.c (THREAD_FLAG): Delete macro definition.
4411 (GET_PID): Redefine in terms of ptid_get_pid().
4412 (GET_LWP): Redefine in terms of ptid_get_lwp().
4413 (GET_THREAD): Redefine in terms of ptid_get_tid().
4414 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4415 (is_lwp, is_thread): Redefine.
4417 * corelow.c (add_to_thread_list, get_core_register_section):
4418 Eliminate hacks needed to prevent regressions when inferior_ptid
4419 wasn't wide enough to hold the core file thread id in the pid
4420 component of inferior_ptid.
4422 2001-05-14 Michael Snyder <msnyder@redhat.com>
4424 * remote.c (hex2bin): Make first argument const.
4425 Require explicit count, don't accept null-terminated str.
4426 (remote_resume, remote_async_resume): White space fix-up.
4427 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
4429 2001-05-13 Mark Kettenis <kettenis@gnu.org>
4431 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
4432 basename (NAME). The FreeBSD basename returns a pointer to a
4433 static buffer, even if it's simply returning a string identical to
4435 (lookup_partial_symtab): Likewise.
4437 2001-05-14 Michael Snyder <msnyder@redhat.com>
4439 * solib.c, solib.h: Add comment for function no_shared_libraries.
4441 2001-05-14 Kevin Buettner <kevinb@redhat.com>
4443 * solib.h (no_shared_libraries): Make declaration match definition
4446 2001-05-14 Andrew Cagney <ac131313@redhat.com>
4448 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
4449 * solib.h (no_shared_libraries): Declare.
4451 2001-05-12 Andrew Cagney <ac131313@redhat.com>
4453 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
4454 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
4455 user specified values when available.
4456 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
4457 architecture from info.bfd_arch_info.
4458 * gdbarch.c, gdbarch.h: Regenerate.
4460 2001-05-12 Fernando Nasser <fnasser@redhat.com>
4462 * remote-e7000.c (e7000_open): Check for bad baud rate.
4463 * remote-st.c (st2000_open): Ditto.
4465 2001-05-11 Jim Blandy <jimb@redhat.com>
4467 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
4468 and ui_out_tuple_end instead of ui_out_list_begin and
4471 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
4472 dependencies. Reorder dependencies to match #includes in file,
4473 for easier verification.
4475 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
4477 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
4478 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
4479 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
4480 * cli/cli-setshow.c: Ditto.
4481 * printcmd.c: Ditto.
4484 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
4485 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
4486 (ui_out_tuple_begin): New function.
4487 (ui_out_tuple_end): New function.
4488 (ui_out_tuple_begin_end): New function.
4489 (make_cleanup_ui_out_list_begin_end): Replace
4490 make_cleanup_ui_out_list_end function.
4491 * ui-out.h (ui_out_list_begin): Update declaration.
4492 (make_cleanup_ui_out_list_begin_end): Replace
4493 make_cleanup_ui_out_list_end declaration.
4494 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
4495 (ui_out_tuple_begin_end): Declare.
4497 2001-05-11 Jim Blandy <jimb@redhat.com>
4499 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
4501 2001-05-11 Andrew Cagney <ac131313@redhat.com>
4503 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
4504 * config/pa/tm-hppa.h: Remove trigraph.
4505 * hp-symtab-read.c (hpread_type_translate): Provide return value.
4506 (hpread_read_struct_type): Remove trigraph. Add parameter in
4508 (hpread_read_array_type): Provide return value.
4509 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
4511 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
4514 2001-05-11 Jim Blandy <jimb@redhat.com>
4516 * mips-tdep.c (mips_store_return_value,
4517 mips_extract_return_value): Pass arguments to
4518 return_value_location in the proper order.
4520 2001-05-11 Andrew Cagney <ac131313@redhat.com>
4522 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
4523 (version.c): Depends on file ``version.in''. Extract version
4524 number from ``version.in'' file.
4525 (clean mostlyclean): Update.
4526 * version.in: New file.
4529 2001-05-11 Kevin Buettner <kevinb@redhat.com>
4531 * breakpoint.c (set_raw_breakpoint): Add new parameter
4532 representing the breakpoint's type. Adjust all callers.
4533 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
4534 (create_thread_event_breakpoint): Don't test for zero return
4535 value from set_raw_breakpoint(). It can never be zero.
4536 (create_exception_catchpoint, watch_command_1): Move logic
4537 which calculates the breakpoint type prior to the call to
4538 set_raw_breakpoint().
4540 2001-05-11 Fernando Nasser <fnasser@redhat.com>
4542 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
4543 (hardwire_setbaudrate): Set errno to EINVAL and return with error
4544 if the conversion of the baud rate to code fails.
4546 2001-05-10 Andrew Cagney <ac131313@redhat.com>
4548 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
4549 * ui-out.c (struct ui_out_end_cleanup_data): Define.
4550 (do_cleanup_end): New function. Replace do_list_end.
4551 (make_cleanup_ui_out_end): New function.
4552 (make_cleanup_ui_out_begin_end): New function.
4553 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
4555 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
4557 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
4558 and make Kevin Buettner (kevinb@redhat.com) the reference person.
4560 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
4562 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
4564 2001-05-10 Fernando Nasser <fnasser@redhat.com>
4566 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
4568 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
4570 * Makefile.in (mi-main.o): Compile with -Werror.
4572 2001-05-10 Michael Snyder <msnyder@redhat.com>
4574 * remote.c (remote_open_1): Call no_shared_libraries, so that
4575 symbols for shared libraries can be reloaded per session.
4576 (remote_async_open_1): Ditto.
4577 * remote.c (bin2hex, hex2bin): New functions. Factor out these
4578 two conversions which are coded for repeatedly in this module.
4579 (remote_threads_extra_info, remote_wait, remote_async_wait,
4580 store_register_using_P, remote_store_registers, remote_write_bytes,
4581 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
4582 of coding the conversions inline.
4583 (fromhex): Not exported, change from extern to static.
4585 2001-05-10 Andrew Cagney <ac131313@redhat.com>
4587 * arch-utils.c (initialize_current_architecture): Delete obsolete
4588 ``info architecture'' command.
4589 (info_architecture): Delete function.
4591 2001-05-10 Andrew Cagney <ac131313@redhat.com>
4593 * TODO (5.1, 5.2): Update.
4595 2001-05-09 Andrew Cagney <ac131313@redhat.com>
4597 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
4600 2001-05-10 Keith Seitz <keiths@cygnus.com>
4602 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
4604 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
4605 (gdbtk-bp.o): New rule.
4606 (gdbtk-register.o): New rule.
4607 (gdbtk-stack.o): New rule.
4608 (gdbtk-cmds.o): Update dependencies.
4610 (gdbtk-hooks.o): Ditto.
4611 (gdbtk-varobj.o): Ditto.
4613 2001-05-10 Fernando Nasser <fnasser@redhat.com>
4615 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
4616 variables, not just unregister them.
4618 2001-05-10 Fernando Nasser <fnasser@redhat.com>
4620 * varobj.c (c_number_of_children): Check for target type of void*,
4621 not the target type name. Allow dereferencing char*.
4623 2001-05-10 Fernando Nasser <fnasser@redhat.com>
4625 * symfile.c (symbol_file_add_main_1): New static function.
4626 Passes the flags arguments to symbol_file_add() and takes care
4627 of any necessary reinitializations.
4628 (symbol_file_command): Call symbol_file_add_main_1() instead of
4630 (symbol_file_add_main): Ditto.
4632 2001-05-09 Kevin Buettner <kevinb@redhat.com>
4634 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
4635 string change in 2001-05-03 changes.
4636 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
4639 2001-05-09 Kevin Buettner <kevinb@redhat.com>
4641 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
4642 component from inferior_ptid.
4643 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
4646 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
4648 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
4649 conditional for help with connections through parallel ports,
4650 given that the actual code for downloading through a parallel port
4651 is not conditionalized.
4653 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
4654 unmaintaned, and probably on its way to obsolescence.
4656 2001-05-09 Mark Kettenis <kettenis@gnu.org>
4658 * i386-tdep.c (i386_frame_saved_pc): New function.
4659 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
4660 i386_frame_saved_pc.
4661 (i386_frame_saved_pc): New prototype.
4663 * i386-tdep.c (i386_register_virtual_type): New function.
4664 (i386_register_convertible): New function.
4665 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
4666 of i386_register_virtual_type.
4667 (REGISTER_CONVERTIBLE): Redefine in terms of
4668 i386_register_convertible.
4669 (i386_register_virtual_type, i386_register_convertible): New
4672 2001-05-08 Jim Blandy <jimb@redhat.com>
4674 * Makefile.in (mn10300-tdep.o): New rule.
4676 * Makefile.in (gdb_string_h): Define. Use it throughout.
4677 Some rules were already using this, even though it isn't defined.
4679 * Makefile.in (obstack_h, target_h): Define; these are already
4680 used elsewhere, but have been expanding to the empty string.
4681 (memattr_h): Define; needed by target_h.
4683 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
4684 static. (This was accidentally omitted from the earlier patch.)
4686 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
4687 (mn10300_gdbarch_init): Register it as the architecture's
4688 dwarf2_reg_to_regnum method.
4690 Correct and expand handling of `movm' instruction, and register
4692 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
4693 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
4694 (enum movm_register_bits): New enum.
4695 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
4696 bits, not hex literals. Handle the `other', `exreg0', and
4697 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
4698 r6, and r7, not r2, r3, r4, and r5.
4699 (saved_regs_size): New function.
4700 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
4701 of computing the same thing inline, incorrectly.
4703 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
4704 dummy_breakpoint_offset; it's zero.
4706 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
4707 stuff out into mn10300_pop_frame_regular, and use
4708 generic_pop_current_frame. This lets us share code, and also
4709 makes this function's prototype match that expected by gdbarch.
4710 Make this function static.
4711 (mn10300_pop_frame_regular): New function.
4712 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
4713 gdbarch's pop_frame method.
4714 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
4715 (mn10300_pop_frame): Delete declaration.
4717 * mn10300-tdep.c (mn10300_saved_pc_after_call,
4718 mn10300_extract_return_value,
4719 mn10300_extract_struct_value_address, mn10300_store_return_value,
4720 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
4721 mn10300_frame_chain, mn10300_skip_prologue,
4722 mn10300_push_arguments, mn10300_push_return_address,
4723 mn10300_store_struct_return, mn10300_frame_saved_pc,
4724 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
4725 Make these functions static; they should only be visible to the
4726 outside world as gdbarch methods.
4728 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
4731 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
4732 in some rational order.
4734 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
4735 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
4737 Use gdbarch for most target parameters for the MN10300, rather
4738 than the tm-*.h file.
4739 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
4740 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
4741 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
4742 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
4743 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
4744 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
4745 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
4746 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4747 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
4748 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4749 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
4750 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4751 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
4752 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
4753 Delete definitions. We register gdbarch methods for these now.
4754 (struct frame_info, struct type, struct value): Delete forward
4755 declarations of these types; they're no longer necessary, since we
4756 don't have function declarations here any more.
4757 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
4758 some default gdbarch methods.
4759 (mn10300_store_struct_return): Return void, as expected by
4761 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
4762 as expected by gdbarch.
4763 (mn10300_frame_init_saved_regs): Provide dummy definition for
4764 this, as required by gdbarch.
4765 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
4766 by gdbarch. Register gdbarch methods or values for all the stuff
4767 removed from tm-10300.h, listed above.
4769 2001-05-08 Andrew Cagney <ac131313@redhat.com>
4771 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
4773 (cli_ui_out_impl): Update.
4775 * ui-out.c (default_begin, default_end): Replace
4776 default_list_begin and default_list_end.
4777 (default_ui_out_impl): Update.
4778 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
4779 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
4781 (ui_out_list_begin, ui_out_list_end): New. Compatibility
4783 (struct ui_out_level): Add field type.
4784 (push_level, pop_level): Update. Add type parameter.
4786 * ui-out.h (enum ui_out_type): Declare.
4787 (ui_out_begin, ui_out_end): Declare.
4788 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
4790 (struct ui_out_impl): Update.
4792 2001-05-07 Andrew Cagney <ac131313@redhat.com>
4794 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
4795 ``list_flag'' to ``depth''.
4796 * ui-out.c (default_list_begin, default_list_end): Update.
4797 (uo_list_begin, uo_list_end): Update.
4798 (MAX_UI_OUT_LEVELS): Define.
4799 (struct ui_out_level): Define.
4800 (top-level): Include "gdb_assert.h".
4801 (struct ui_out): Add fields ``level'' and ``levels''. Delete
4802 fields ``list_flag'' and ``field_count''.
4803 (ui_out_new): Update.
4804 (verify_field_proper_position): Update.
4805 (current_level, push_level, pop_level): New functions.
4806 (ui_out_list_begin): Use push_level.
4807 (ui_out_list_end): Use pop_level.
4808 (ui_out_field_int): Use current_level.
4809 (ui_out_field_skip): Ditto.
4810 (ui_out_field_fmt): Ditto.
4812 2001-05-08 Michael Snyder <msnyder@redhat.com>
4814 * language.c (longest_local_hex_string_custom): Strlen test is
4815 inverted -- reverse the sense of the test.
4817 2001-05-08 Mark Kettenis <kettenis@gnu.org>
4819 * config/i386/tm-i386v.h (struct frame_info, struct
4820 frame_saved_regs): Remove declarations.
4821 (i386_frame_num_args): Remove prototype.
4823 2001-05-07 Andrew Cagney <ac131313@redhat.com>
4825 * MAINTAINERS: I'm no longer actively maintaining the mn10300
4828 2001-05-04 Andrew Cagney <ac131313@redhat.com>
4830 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
4833 2001-05-06 Kevin Buettner <kevinb@redhat.com>
4835 * inferior.h (save_inferior_ptid): Declare.
4836 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
4838 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
4839 Delete these functions.
4840 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4841 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4842 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
4844 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
4846 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4847 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4849 * somsolib.c (reset_inferior_ptid): Delete.
4850 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
4851 build the cleanup struct.
4853 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
4854 a cleanup to save/restore inferior_ptid.
4856 2001-05-06 Mark Kettenis <kettenis@gnu.org>
4858 Implement attach/detach for multi-threaded programs on Linux.
4859 * thread-db.c (keep_thread_db): Adjust comment.
4860 (deactivate_target): Removed.
4861 (thread_db_new_objfile): Don't call deactivate_target. Implement
4862 guts of deactivate_target inline instead.
4863 (attach_thread): Call ATTACH_LWP unconditionally if defined.
4864 (thread_db_attach): New function.
4865 (thread_db_detach): Don't call deactivate_target. Do necessary
4866 cleanup inline instead. Set inferior_ptid to LWP corresponding to
4867 the current user-level thread.
4868 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
4869 current user-level thread.
4870 (thread_db_create_inferior): Deactivate target vector if
4871 KEEP_THREAD_DB is zero.
4872 (thread_db_mourn_inferior): Don't call deactivate_target. Do
4873 necessary cleanup inline instead.
4874 (init_thread_db_ops): Initialize to_attach field to
4876 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
4877 (stop_wait_callback): Add prototype.
4878 (init_lwp_list): Add comment about when to re-initialize the LWP
4880 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
4881 Avoid adding publicates to the LWP list. Only mark an LWP as
4882 signalled if it doesn't correspond to a cloned process.
4883 (lin_lwp_attach): Add initial process to the LWP list. Make sure
4884 it's stopped and fake a SIGSTOP.
4885 (detach_callback): New function.
4886 (lin_lwp_detach): Implement.
4887 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
4888 Call child_ops.to_create_inferior directly instead of via
4889 target_beneath local.
4890 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
4891 directly instead of via target_beneath local.
4893 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
4895 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
4896 instead of non-portable search for `/'. Use FILENAME_CMP instead
4897 of STREQ, to account for case-insensitive filesystems.
4898 (top-level): #include "filenames.h".
4900 2001-05-05 Jim Blandy <jimb@redhat.com>
4902 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
4903 its address, to decide whether it's a watchpoint or not. Zero
4904 is a valid code address.
4905 (update_breakpoints_after_exec): Admonishing comments.
4906 * breakpoint.h (struct breakpoint): Doc fixes.
4908 * breakpoint.c (check_duplicates): Take a breakpoint object as an
4909 argument, rather than an address and section. All callers changed.
4911 2001-05-03 Kevin Buettner <kevinb@redhat.com>
4913 * defs.h (ptid_t): New typedef.
4914 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
4916 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
4917 blockframe.c, breakpoint.c, breakpoint.h,
4918 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
4919 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
4920 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
4921 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
4922 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
4923 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
4924 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
4925 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
4926 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
4927 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
4928 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
4929 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
4930 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
4931 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
4932 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
4933 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
4934 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
4935 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
4936 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4937 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
4938 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
4939 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
4940 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
4941 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
4942 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
4943 (inferior_pid): Rename to inferior_ptid everywhere - even in
4944 comments and obsolete ports. In cases where this variable
4945 really is supposed to be used as a process id, use PIDGET() to
4946 extract the process id component from inferior_ptid. The
4947 other cases, either involving other variables whose types had
4948 to be changed or functions whose signatures had to changed
4949 are listed separately below.
4951 * arm-linux-nat.c (get_thread_id): Change type of argument
4952 representing a combined process/thread id from ``int'' to
4953 ``ptid_t''. Also change parameter name to ptid.
4954 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
4955 * corelow.c (core_file_thread_alive): Likewise.
4956 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
4957 * defs.h (*target_wait_hook): Likewise.
4958 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
4959 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
4960 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
4961 (gnu_resume): Likewise.
4962 * go32-nat.c (go32_wait, go32_resume): Likewise.
4963 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
4964 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
4965 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
4966 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
4967 (child_thread_alive): Likewise.
4968 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
4969 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
4970 * i386-linux-nat.c (child_resume): Likewise.
4971 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
4972 (store_debug_register, fetch_debug_register_pair)
4973 (store_debug_register_pair, ia64_linux_insert_watchpoint)
4974 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
4976 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
4977 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
4978 (generic_target_write_pc, ptrace_wait, child_resume)
4979 (get_last_target_status): Likewise.
4980 * infptrace.c (ptrace_wait, child_resume): Likewise.
4981 * inftarg.c (child_wait, child_post_wait, child_thread_live)
4982 (child_pid_to_str): Likewise.
4983 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
4984 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
4985 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
4986 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
4987 (lin_lwp_pid_to_str): Likewise.
4988 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
4989 (thread_db_resume, thread_db_wait): Likewise.
4990 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
4991 (linuxthreads_resume, linuxthreads_wait): Likewise.
4992 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
4993 (child_pid_to_str): Likewise.
4994 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
4995 * mac-nat.c (child_wait, child_resume): Likewise.
4996 * mips-tdep.c (mips_read_pc): Likewise.
4997 * monitor.c (monitor_wait, monitor_resume): Likewise.
4998 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
4999 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5000 * procfs.c (do_attach, procfs_wait, procfs_resume)
5001 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
5002 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
5003 (procfs_find_LDT_entry): Likewise.
5004 * regcache.c (read_register_pid, read_signed_register_pid)
5005 (write_register_pid, generic_target_read_pc, read_pc_pid)
5006 (generic_target_write_pc, write_pc_pid): Likewise.
5007 * regcache.h (read_register_pid, read_signed_register_pid)
5008 (write_register_pid): Likewise.
5009 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
5010 * remote-array.c (array_wait, array_resume): Likewise.
5011 * remote-bug.c (bug_wait, bug_resume): Likewise.
5012 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
5013 * remote-eb.c (eb_wait, eb_resume): Likewise.
5014 * remote-es.c (es1800_wait, es1800_resume): Likewise.
5015 * remote-mips.c (mips_wait, mips_resume): Likewise.
5016 * remote-mm.c (mm_wait, mm_resume): Likewise.
5017 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
5018 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
5019 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
5020 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
5021 * remote-sds.c (sds_wait, sds_resume): Likewise.
5022 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
5023 * remote-st.c (st2000_wait, st2000_resume): Likewise.
5024 * remote-udi.c (udi_wait, udi_resume): Likewise.
5025 * remote-vx.c (vx_wait, vx_resume): Likewise.
5026 * remote.c (remote_current_thread, remote_resume, remote_wait)
5027 (remote_async_resume, remote_async_wait, remote_cisco_wait)
5028 (remote_thread_alive): Likewise.
5029 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
5030 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
5031 (solaris_pid_to_str): Likewise.
5032 * symm-nat.c (child_wait, child_resume): Likewise.
5033 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
5034 (debug_to_notice_signals, debug_to_thread_alive)
5035 (normal_target_post_startup_inferior, normal_pid_to_str)
5036 (debug_to_post_startup_inferior): Likewise.
5037 * target.h (to_resume, to_wait, to_post_wait)
5038 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
5039 (to_pid_to_str [all in struct target_ops]): Likewise.
5040 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
5041 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
5042 (attach_thread, detach_thread, thread_db_resume, check_event)
5043 (thread_db_post_startup_inferior, thread_db_thread_alive)
5044 (thread_db_pid_to_str): Likewise.
5045 * thread.c (add_thread, delete_thread, find_thread_pid)
5046 (pid_to_thread_id, in_thread_list, load_infrun_state)
5047 (save_infrun_state, switch_to_thread, restore_current_thread)
5048 (make_cleanup_restore_current_thread): Likewise.
5049 * top.c (target_wait_hook): Likewise.
5050 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
5051 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
5052 (uw_thread_pid_to_str): Likewise.
5053 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
5054 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
5055 (cywin_pid_to_str): Likewise.
5056 * wince.c (child_wait, child_resume, win32_child_thread_alive):
5058 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
5059 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
5060 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5061 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5062 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
5063 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
5064 (procfs_set_watchpoint): Likewise.
5065 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5066 * config/i386/nm-ptx4.h (child_wait): Likewise.
5067 * config/i386/nm-symmetry.h (child_wait): Likewise.
5068 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
5069 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
5070 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
5071 (lin_lwp_attach_lwp): Likewise.
5072 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
5073 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
5074 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
5075 (hppa_pid_or_tid_to_str): Likewise.
5076 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
5077 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5078 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
5079 (procfs_set_watchpoint): Likewise.
5081 * gdbthread.h (thread_id_to_pid): Change return type which
5082 represents a combined process/thread id from ``int'' to
5084 * gnu-nat.c (gnu_wait): Likewise.
5085 * go32-nat.c (go32_wait): Likewise.
5086 * hpux-thread.c (hpux_thread_wait): Likewise.
5087 * inferior.h (procfs_first_available): Likewise.
5088 * inftarg.c (child_wait): Likewise.
5089 * infttrace.c (ptrace_wait): Likewise.
5090 * lin-lwp.c (lin_lwp_wait): Likewise.
5091 * lin-thread.c (thread_db_wait): Likewise.
5092 * linux-thread.c (linuxthreads_wait): Likewise.
5093 * lynx-nat.c (child_wait): Likewise.
5094 * m3-nat.c (mach_really_wait): Likewise.
5095 * mac-nat.c (child_wait): Likewise.
5096 * monitor.c (monitor_wait): Likewise.
5097 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5098 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
5099 * remote-adapt.c (adapt_wait): Likewise.
5100 * remote-array.c (array_wait): Likewise.
5101 * remote-bug.c (bug_wait): Likewise.
5102 * remote-e7000.c (e7000_wait): Likewise.
5103 * remote-eb.c (eb_wait): Likewise.
5104 * remote-es.c (es1800_wait): Likewise.
5105 * remote-mips.c (mips_wait): Likewise.
5106 * remote-mm.c (mm_wait): Likewise.
5107 * remote-nindy.c (nindy_wait): Likewise.
5108 * remote-os9k (rombug_wait): Likewise.
5109 * remote-rdi.c (arm_rdi_wait): Likewise.
5110 * remote-rdp.c (remote_rdp_wait): Likewise.
5111 * remote-sds.c (sds_wait): Likewise.
5112 * remote-sim.c (gdbsim_wait): Likewise.
5113 * remote-st.c (st2000_wait): Likewise.
5114 * remote-udi.c (udi_wait): Likewise.
5115 * remote-vx.c (vx_wait): Likewise.
5116 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
5117 (remote_cisco_wait): Likewise.
5118 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
5120 * symm-nat.c (child_wait): Likewise.
5121 * target.c (debug_to_wait): Likewise.
5122 * target.h (to_wait [in struct target_ops]): Likewise.
5123 * thread.c (thread_id_to_pid): Likewise.
5124 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
5126 * top.c (*target_wait_hook): Likewise.
5127 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
5128 * v850ice.c (v850ice_wait): Likewise.
5129 * win32-nat.c (child_wait): Likewise.
5130 * wince.c (child_wait): Likewise.
5131 * config/nm-lynx.h (child_wait): Likewise.
5132 * config/i386/nm-ptx4.h (child_wait): Likewise.
5133 * config/i386/nm-symmetry.h (child_wait): Likewise.
5135 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
5136 to wait_ptid and change its type from ``int'' to ``ptid_t''.
5137 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
5138 but rename saved_inferior_pid to saved_inferior_ptid.
5139 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
5140 save_pid to save_ptid.
5141 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
5142 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
5143 saved_inferior_pid to saved_inferior_ptid.
5144 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
5145 * infrun.c (previous_inferior_pid [static global]): Likewise,
5146 but rename to previous_inferior_ptid.
5147 (resume): Likewise, but rename resume_pid to resume_ptid.
5148 (struct execution_control_state): Likewise, but rename
5149 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
5150 and waiton_pid to waiton_ptid.
5151 (target_last_wait_pid): Likewise, but rename to
5152 target_last_wait_ptid.
5153 * infttrace.c (saved_real_pid): Likewise, but rename to
5155 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
5156 to saved_inferior_ptid.
5157 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
5158 (trap_ptid): Likewise, but renamed from trap_pid.
5159 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
5161 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
5162 (thread_db_wait): Likewise, but rename ret_pid to retptid.
5163 * procfs.c (procfs_wait): Likewise, for retval whose name
5164 doesn't change. Also, ``temp'' becomes two separate variables,
5165 one named temp_tid (an int) and the other temp_ptid.
5166 (procfs_notice_thread): Likewise (type change) for gdb_threadid
5167 whose name does not change.
5168 * regcache.c (registers_ptid): Likewise, but renamed from
5170 (read_register_pid, read_signed_register_pid, write_register_pid):
5171 Likewise, but rename save_pid to save_ptid.
5172 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
5173 to saved_inferior_ptid.
5174 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
5175 * sol-thread.c (struct ps_prochandle): Likewise.
5176 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
5177 (sol_thread_wait): Likewise, for rtnval whose name does not
5178 change, and for save_pid which becomes save_ptid.
5179 (solaris_pid_to_str): Likewise for lwp whose name does not change.
5180 (sol_find_new_threads_callback): Likewise, for pid which becomes
5182 * target.h (target_resume, target_wait, target_post_wait)
5183 (target_post_startup_inferior, target_notice_signals)
5184 (target_thread_alive): Likewise.
5185 * thread.c (info_threads_command): Likewise, but rename
5186 current_pid to current_ptid.
5187 (struct current_thread_cleanup): Likewise, but rename field
5188 inferior_pid to inferior_ptid.
5189 * thread-db.c (find_new_threads_callback): Likewise, but rename
5191 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
5193 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
5194 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
5195 but rename pid to ptid.
5196 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
5197 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
5198 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
5199 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
5200 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
5201 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
5203 * arch-utils.c (generic_prepare_to_proceed): Test for the
5204 "zero" ptid by using ptid_equal() to test to see if variable
5205 in question is the same as null_ptid. This replaces a direct
5207 * cxux-nat.c (add_shared_symbol_files): Likewise.
5208 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
5209 * infcmd.c (run_command): Likewise.
5210 * inflow.c (kill_command): Likewise.
5211 * infttrace.c (call_ttrace): Likewise.
5212 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
5213 * lin-thread.c (thread_db_kill): Likewise.
5214 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
5215 * remote-es.c (es1800_kill): Likewise.
5216 * sol-thread.c (sol_thread_create_inferior): Likewise.
5217 * solib.c (locate_base): Likewise.
5218 * target.c (nosupport_runtime): Likewise.
5219 * thread-db.c (thread_db_wait): Likewise.
5220 * top.c (quit_confirm, quit_force): Likewise.
5221 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
5223 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
5224 Use ptid_equal to compare value of process/thread ids instead of
5225 ``=='' and ``!='' operators.
5226 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
5227 (stop_wait_callback, lin_lwp_wait): Likewise.
5228 * procfs.c (procfs_wait): Likewise.
5229 * regcache.c (read_register_bytes, read_register_gen)
5230 (write_register_gen, read_register, read_register_pid)
5231 (read_signed_register, read_signed_register_pid, write_register)
5232 (write_register_pid, supply_register): Likewise.
5233 * remote-vx.c (vx_resume): Likewise.
5234 * sol-thread.c (sol_thread_wait): Likewise.
5235 * symm-nat.c (kill_inferior): Likewise.
5236 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
5237 (in_thread_list, info_threads_command, switch_to_thread)
5238 (restore_current_thread): Likewise.
5239 * uw-thread (libtread_stub): Likewise.
5241 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
5243 * corelow.c (add_to_thread_list): Convert argument in add_thread()
5245 * gnu-nat.c (inf_validate_procs): Likewise.
5246 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
5247 * remote.c (record_currthread, remote_threads_info): Likewise.
5248 * win32-nat.c (child_add_thread): Likewise.
5250 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
5251 respectively, to save_inferior_ptid() and restore_inferior_ptid().
5252 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
5253 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
5254 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5255 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5256 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
5257 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5258 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
5260 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
5261 to be passed to target_resume() when all threads should resume.
5262 (resume): Set resume_ptid to RESUME_ALL rather than -1.
5263 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
5265 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
5266 a ptid_t in target_resume() call.
5267 * osfsolib.c (solib_create_inferior_hook): Likewise.
5268 * solib-svr4.c (solib_create_inferior_hook): Likewise.
5270 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
5271 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
5272 difference being that the 0xffff pattern will be interpreted
5274 * lin-thread.c (PIDGET, PIDGET0): Likewise.
5275 * thread-db.c (PIDGET, PIDGET0): Likewise.
5276 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
5277 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
5278 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
5279 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
5281 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
5282 mach_really_wait rather than mach_really__wait.
5283 * lin-thread.c (check_for_thread_event): Fix warning; make function
5284 actually return a value.
5286 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
5287 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
5289 * gdbarch.h, gdbarch.c: Regenerated.
5291 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
5293 * rdi-share/devsw.c: Include <time.h> for struct tm
5295 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5297 * config/djgpp/fnchange.lst: Add mappings for the new
5298 opcodes/openrisc-* files.
5300 2001-05-01 Michael Snyder <msnyder@redhat.com>
5302 * lin-lwp.c: Change printf to fprintf_unfiltered.
5303 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
5305 2001-05-01 Nicholas Duffek <nsd@redhat.com>
5307 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
5308 (rs6000_in_solib_return_trampoline): Declare.
5309 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
5311 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
5312 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
5313 check after the CSECT check rather than before it. Allocate
5314 separate symtabs for CSECTs whose names begin with '@'.
5315 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
5316 Activate the misc_func_recorded mechanism for whose names begin
5319 2001-04-30 J.T. Conklin <jtc@redback.com>
5321 * ppcnbsd-nat.c (fetch_inferior_registers)
5322 (store_inferior_registers, fetch_core_registers): Changed to use
5323 fpreg[] instead of r_regs[] to access floating point registers.
5325 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
5327 * sh-tdep.c: Get rid of the function prototypes.
5328 (sh_sh4_build_float_register_type): Move earlier in file.
5329 (fv_reg_base_num): Ditto.
5330 (dr_reg_base_num): Ditto.
5332 2001-04-30 Michael Snyder <msnyder@redhat.com>
5334 * thread-db.c: Revert 2001-04-26 change for debugging output.
5336 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
5337 command to turn extra debugging output on / off.
5339 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
5341 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
5342 (top-level): #include filenames.h.
5344 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
5345 FILENAME_CMP, to DTRT on non-Posix platforms.
5346 (top-level): #include filenames.h.
5349 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5351 * gdbtypes.c (check_stub_method): Always initialize ``p''.
5353 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5355 * configure.host: Delete romp host.
5358 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5360 * TODO: Updates to 5.1. No more targets to obsolete.
5362 2001-04-27 Don Howard <dhoward@redhat.com>
5364 (Changes from Kevin Buettner, with minor update by Don Howard.)
5366 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
5367 typos in which hexadecimal constants were really intended to be
5369 (i387_tag): Swap logic regarding zero vs non-zero exponents.
5370 * MAINTAINERS (Misc): Added myself to the write-after-approval
5373 2001-04-26 Jim Blandy <jimb@redhat.com>
5375 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
5377 Abstract out operations specific to particular C++ ABI's, and
5378 invoke them through a function table. This removes the C++ ABI
5379 dependencies scattered throughout the code, and allows us to
5380 cleanly add support for new C++ ABI's.
5381 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
5382 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
5383 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
5384 #include "cp-abi.h". These files all use functions now declared
5386 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
5387 Deleted. These services are now provided by functions declared in
5389 * value.h (value_rtti_type, value_virtual_fn_field): Same.
5390 * values.c (value_virtual_fn_field): Same, for this definition.
5391 * valops.c (value_rtti_type): Same.
5392 * c-typeprint.c (c_type_print_base): Use the functions from
5393 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
5395 * dbxread.c (record_minimal_symbol): Same.
5396 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
5397 virtual_base_index_skip_primaries): Same.
5398 * jv-typeprint.c (java_type_print_base): Same.
5399 * linespec.c (find_methods, decode_line_1): Same.
5400 * symtab.c (gdb_mangle_name): Same.
5401 * Makefile.in (SFILES): Add the new .c files mentioned above.
5402 (cp_abi_h): New variable.
5403 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
5404 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
5405 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
5406 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
5407 dependency on $(cp_abi_h).
5409 2001-04-26 Michael Snyder <msnyder@redhat.com>
5411 * thread-db.c (_initialize_thread_db): Add set/show command
5412 "debug-linux-threads" for debugging output.
5413 * lin-lwp.c (various): Use global "debug_linux_threads to
5414 turn on extra debugging output.
5415 * lin-lwp.c: Minor cleanups in comments.
5416 * target.c (normal_pid_to_str): Get rid of an ancient hack.
5417 * remote.c (remote_pid_to_str): New function for remote target.
5419 2001-04-24 Jim Blandy <jimb@redhat.com>
5421 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
5422 qualifier on C++ references; all references are innately const.
5424 2001-04-20 Mark Kettenis <kettenis@gnu.org>
5426 * event-top.h: Fix formatting.
5428 2001-04-17 Andrew Cagney <ac131313@redhat.com>
5430 * source.c (openp): Obsolete #ifdef MPW code.
5431 (open_source_file): Ditto.
5432 * event-top.c (display_gdb_prompt): Ditto.
5433 * utils.c (query): Ditto.
5434 (init_page_info): Ditto.
5435 (init_page_info): Delete #ifndef MPW.
5436 * top.c (gdb_readline): Ditto.
5437 * mac-xdep.c: Obsolete.
5438 * mac-gdb.r: Obsolete.
5439 * config/powerpc/xm-mpw.h: Obsolete.
5440 * config/xm-mpw.h: Obsolete.
5441 * mpw-make.sed: Obsolete.
5442 * mpw-config.in: Obsolete.
5446 2001-04-19 Mark Kettenis <kettenis@gnu.org>
5448 * i386-tdep.c (i386_frameless_function_invocation): New function.
5449 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
5450 in terms of i386_frameless_function_invocation. Adjust comment.
5451 (i386_frameless_function_invocation): New prototype.
5453 2001-04-18 Martin M. Hunt <hunt@redhat.com>
5455 * top.c (gdb_init): Don't call cli_out_new() to
5456 create global uiout if init_ui_hook is set. uiout will
5457 have to be initialized there.
5459 2001-04-18 Andrew Cagney <ac131313@redhat.com>
5461 * arch-utils.c: Include "regcache.h".
5463 2001-04-18 Mark Kettenis <kettenis@gnu.org>
5465 * i386-tdep.c (i386_saved_pc_after_call): New function.
5466 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
5467 of i386_saved_pc_after_call.
5468 (i386_saved_pc_after_call): New prototype.
5470 2001-04-17 Michael Snyder <msnyder@redhat.com>
5472 * i386-nat.c: Fix typo in comment.
5473 * solib.c (no_shared_libraries): New function. Discard all symbols
5474 from shared libraries.
5475 (_initialize_solib): Add command "nosharedlibrary" as complement
5476 to the command "sharedlibrary". Unloads symbols for all solibs.
5478 2001-04-16 Andrew Cagney <ac131313@redhat.com>
5480 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
5481 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
5482 (m68*-est-*, m68*-sony-*, m68*-isi-*):
5483 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
5484 * config/m68k/xm-news.h: Obsolete.
5485 * config/m68k/tm-news.h:
5486 * config/m68k/xm-news1000.h: Obsolete.
5487 * config/m68k/news.mh: Obsolete.
5488 * config/m68k/news.mt: Obsolete.
5489 * config/m68k/nm-news.h: Obsolete.
5490 * config/m68k/news1000.mh: Obsolete.
5491 * news-xdep.c: Obsolete.
5492 * Makefile.in (isi-xdep.o): Obsolete.
5493 (ALLDEPFILES): Delete isi-xdep.c.
5494 (tm-isi.h): Obsolete.
5495 * m68k-tdep.c (altos_skip_prologue): Update comments.
5496 (isi_skip_prologue): Obsolete.
5497 * isi-xdep.c: Obsolete.
5498 * config/m68k/xm-isi.h: Obsolete.
5499 * config/m68k/isi.mh: Obsolete.
5500 * config/m68k/tm-isi.h: Obsolete.
5501 * config/m68k/isi.mt: Obsolete.
5506 2001-04-17 Michael Snyder <msnyder@redhat.com>
5508 * remote.c (remote_open_1): On opening the remote target, activate
5509 the solib_create_inferior_hook, so that it can detect when the
5510 target loads shared libraries.
5511 (remote_async_open_1): Ditto.
5513 2001-04-17 Michael Snyder <msnyder@redhat.com>
5515 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
5516 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
5517 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
5518 * testsuite/gdb.trace/infotrace.exp: Ditto.
5519 * testsuite/gdb.trace/passcount.exp: Ditto.
5520 * testsuite/gdb.trace/while-stepping.exp: Ditto.
5522 2001-04-17 Michael Snyder <msnyder@redhat.com>
5524 * thread-db.c (check_thread_signals): When looping over all
5525 signals, ignore signal zero.
5526 (disable_thread_signals): Ditto.
5528 2001-04-17 Eirik Fuller <eirik@netapp.com>
5530 * thread.c (do_captured_thread_select): Allow the argument to the
5531 thread command to be an expression rather than a literal integer.
5533 2001-04-17 Mark Kettenis <kettenis@gnu.org>
5535 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
5536 read_memory_unsigned_integer instead of read_memory_integer.
5538 2001-04-16 Kevin Buettner <kevinb@redhat.com>
5540 * solib-aix5.c (map_index_vs_section_name_okay): New function.
5541 (aix5_relocate_main_executable): Don't use file offsets for
5542 determining corresponding sections and map file entries. Call
5543 map_index_vs_section_name_okay() to do this instead.
5545 2001-04-16 Kevin Buettner <kevinb@redhat.com>
5547 * procfs.c (open_with_retry): New function.
5548 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
5549 (proc_get_LDT_entry): Call open_with_retry() instead of open().
5551 2001-04-16 Kevin Buettner <kevinb@redhat.com>
5553 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
5554 comparison against TRAP_HWBKPT constant yet again to account
5555 for the various values used by different kernel versions.
5557 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
5559 * demangle.c (_initialize_demangler): Use xcalloc on the
5560 demangling_style_names, and make it a null terminated array of
5561 names, to avoid a crash.
5563 2001-04-16 Mark Kettenis <kettenis@gnu.org>
5565 * i386-tdep.c (i386_frame_chain): New function.
5566 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
5568 (i386_frame_chain): New prototype.
5570 2001-04-14 J.T. Conklin <jtc@redback.com>
5572 * target.h (target_ops): Removed to_core_file_to_sym_file vector
5574 * corelow.c (core_ops): Updated for above change.
5575 * gnu-nat.c (core_ops): Likewise.
5576 * inftarg.c (child_ops): Likewise.
5577 * monitor.c (monitor_ops): Likewise.
5578 * ppc-bdm.c (bdm_ppc_ops): Likewise.
5579 * remote-adapt.c (adapt_ops): Likewise.
5580 * remote-bug.c (bug_ops): Likewise.
5581 * remote-e7000.c (e7000_ops): Likewise.
5582 * remote-eb.c (eb_ops): Likewise.
5583 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
5584 * remote-mm.c (mm_ops): Likewise.
5585 * remote-nindy.c (nindy_ops): Likewise.
5586 * remote-nrom.c (nrom_ops): Likewise.
5587 * remote-os9k.c (rombug_ops): Likewise.
5588 * remote-rdp.c (remote_rdp_ops): Likewise.
5589 * remote-sim.c (gdbsim_ops): Likewise.
5590 * remote-st.c (st2000_ops): Likewise.
5591 * v850ice.c (v850ice_ops): Likewise.
5592 * target.c (cleanup_target): Likewise
5593 (update_current_target): Likewise.
5594 (setup_target_debug): Likewise
5595 (debug_to_core_file_to_sym_file): Removed.
5597 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
5598 sets symbol file from information obtained from the core file.
5599 * corelow.c (core_file_to_sym_file): Removed.
5601 2001-04-13 Fernando Nasser <fnasser@redhat.com>
5603 From Adam Mirowski <Adam.Mirowski@Sun.COM>
5604 Fixed Insight on Solaris. It was not possible to debug a process
5605 because of EINTR "errors".
5606 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
5607 with EINTR, retry the call.
5609 2001-04-12 Kevin Buettner <kevinb@redhat.com>
5611 * solib-aix5.c (enum maptype): Delete.
5612 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
5613 member a pointer instead of a statically sized array.
5614 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
5616 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
5617 aix5_find_global_pointer): Search for correct mapping to use
5618 based on file offset instead of knowledge of whether the section
5619 is read-only or read/write.
5620 (aix5_find_gate_addresses): Use the first mapping instead of
5621 the (now defunct) MT_READONLY mapping.
5623 2001-04-12 Nicholas Duffek <nsd@redhat.com>
5625 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
5628 2001-04-12 Kevin Buettner <kevinb@redhat.com>
5630 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
5632 2001-04-09 Andrew Cagney <ac131313@redhat.com>
5634 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
5635 * config/i386/sun386.mh: Obsolete.
5636 * config/i386/sun386.mt: Obsolete.
5637 * config/i386/xm-sun386.h: Obsolete.
5638 * config/i386/tm-sun386.h: Obsolete.
5639 * config/i386/nm-sun386.h: Obsolete.
5640 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
5641 (sun386-nat.o): Target is obsolete.
5642 * sun386-nat.c: Obsolete.
5643 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
5644 * configure.host (i[3456]86-*-sunos*): Obsolete.
5648 2001-04-10 J.T. Conklin <jtc@redback.com>
5650 * maint.c: Fix typo in comment.
5652 2001-04-09 Keith Seitz <keiths@cygnus.com>
5654 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
5656 2001-04-08 Kevin Buettner <kevinb@redhat.com>
5658 * fork-child.c (fork_inferior, clone_and_follow_inferior):
5659 Document fact that apparent call to vfork() might actually be
5660 a call to fork() instead.
5661 * ser-pipe.c (pipe_open): Likewise.
5663 2001-04-08 Kevin Buettner <kevinb@redhat.com>
5665 * printcmd.c (print_frame_args): Use a cleanup to invoke
5666 ui_out_list_end() so that the list count nesting flag will
5667 be decremented properly when an error occurs.
5668 * stack.c (print_frame): Likewise.
5670 2001-04-06 J.T. Conklin <jtc@redback.com>
5672 * dcache.c (dcache_write_line): Fixed bugs where cache line was
5673 not written to target correctly.
5675 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
5677 * gdbserver/low-nbsd.c: Likewise.
5678 * gdbserver/low-sparc.c: Likewise.
5679 * gdbserver/low-sun3.c: Likewise.
5681 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
5683 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
5684 (PTRACE_DETACH): Don't define.
5686 2001-04-06 David Smith <dsmith@redhat.com>
5688 * arch-utils.c (default_prepare_to_proceed)
5689 (generic_prepare_to_proceed): Added new functions.
5690 * arch-utils.h: New function declarations for
5691 default_prepare_to_proceed() and generic_prepare_to_proceed().
5692 * gdbarch.sh: Added PREPARE_TO_PROCEED.
5693 * gdbarch.c: Regenerated.
5694 * gdbarch.h: Regenerated.
5695 * inferior.h: Added get_last_target_status() declaration.
5696 * infrun.c (get_last_target_status): Added new function.
5697 (handle_inferior_event): Saves last pid and waitstatus, which will
5698 get returned by get_last_target_status().
5700 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
5701 prepare_to_proceed() is potentially redundant since
5702 default_prepare_to_proceed() has been added.
5703 * linux-thread.c (prepare_to_proceed): Ditto.
5704 * lin-lwp.c (prepare_to_proceed): Ditto.
5705 * m3-nat.c (prepare_to_proceed): Ditto.
5707 2001-04-05 Andrew Cagney <ac131313@redhat.com>
5709 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
5710 and powerpc-*-netware* target.
5711 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
5713 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
5714 (powerpcle-*-solaris*): Obsolete.
5715 * config/powerpc/tm-cygwin.h: Obsolete.
5716 * config/powerpc/cygwin.mt: Obsolete.
5717 * config/powerpc/xm-cygwin.h: Obsolete.
5718 * config/powerpc/cygwin.mh: Obsolete.
5719 * config/powerpc/nm-solaris.h: Obsolete.
5720 * config/powerpc/xm-solaris.h: Obsolete.
5721 * config/powerpc/tm-solaris.h: Obsolete.
5722 * config/powerpc/solaris.mt: Obsolete.
5723 * config/powerpc/tm-ppc-nw.h: Obsolete.
5724 * config/powerpc/ppc-nw.mt: Obsolete.
5728 2001-04-06 Fernando Nasser <fnasser@redhat.com>
5730 * buildsym.c (record_line): Turn off unused addr bits.
5732 2001-04-06 Fernando Nasser <fnasser@redhat.com>
5734 From David Deephanphongs <deephan@telocity.com>
5735 * inferior.h: Fix declarations of get_inferior_args and
5736 set_inferior_args, which were missing the trailing 's'.
5738 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
5740 * monitor.c (monitor_supply_register): Only report an error if we
5741 don't get a valid value.
5743 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
5745 * README: Don't mention gdba.el.
5747 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5749 From Jimmy Guo <guo@cup.hp.com>
5750 * top.c (init_main): set prompt if annotation_level>1,
5751 this is necessary when annotation_level is set to 2 via
5752 --annotate=2 command line option.
5754 2001-04-04 Andrew Cagney <ac131313@redhat.com>
5756 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
5757 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
5758 * configure.host (a29k-*-*): Obsolete.
5759 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
5761 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
5762 * config/a29k/tm-ultra3.h: Obsolete.
5763 * config/a29k/ultra3.mt: Obsolete.
5764 * config/a29k/ultra3.mh: Obsolete.
5765 * config/a29k/nm-ultra3.h: Obsolete.
5766 * config/a29k/xm-ultra3.h: Obsolete.
5767 * ultra3-xdep.c: Obsolete.
5768 * ultra3-nat.c: Obsolete.
5769 * config/a29k/a29k-kern.mt: Obsolete.
5773 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
5775 * main.c: Remove windows.h use.
5776 (gdbtk_test): Use PATH_MAX for home var calculation.
5777 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
5778 Win32 in colon test.
5779 * ser-tcp.c: Use modern __CYGWIN__ conditional.
5780 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
5782 * symfile.c (symfile_bfd_open): Ditto.
5784 2001-04-04 Martin M. Hunt <hunt@redhat.com>
5786 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
5787 Handle all stream setup in gdbtk_init
5789 2001-04-04 Mark Kettenis <kettenis@gnu.org>
5791 * i386-tdep.c (i386_extract_return_value): Don't return the return
5792 value of a void function.
5793 (i386_store_return_value): Likewise.
5795 2001-04-03 Andrew Cagney <ac131313@redhat.com>
5797 Obsolete w65-*-* target.
5798 * configure.tgt (w65-*-*): Obsolete.
5799 * config/w65/w65.mt: Obsolete.
5800 * config/w65/tm-w65.h: Obsolete.
5801 * w65-tdep.c: Obsolete.
5802 * NEWS: Update. Fix TiC80 description.
5805 2001-04-03 Andrew Cagney <ac131313@redhat.com>
5807 Obsolete tic80-*-* target.
5808 * configure.tgt (tic80-*-*): Obsolete.
5809 * config/tic80/tic80.mt: Obsolete.
5810 * config/tic80/tm-tic80.h: Obsolete.
5811 * tic80-tdep.c: Obsolete.
5815 2001-04-02 J.T. Conklin <jtc@redback.com>
5817 * remote-mips.c (S_IROTH): Moved definition from here.
5818 * gdb_stat.h (S_IROTH): to here.
5820 * remote.c (remote_protocol_e, remote_protocol_E): Define.
5821 (set_remote_protocol_e_packet_cmd)
5822 (set_remote_protocol_E_packet_cmd)
5823 (show_remote_protocol_e_packet_command)
5824 (show_remote_protocol_E_packet_command): New functions.
5825 (init_all_packet_configs): Initialize remote_protocol_e and
5827 (remote_resume, remote_async_resume): Support e/E command
5829 (show_remote_cmd): Show state of remote_protocol_e and
5831 (_initialize_remote): Add "set remote step-over-range-packet"
5832 and "set remote step-over-range-w-signal-packet" to CLI.
5834 2001-04-01 Andrew Cagney <ac131313@redhat.com>
5836 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
5838 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
5839 (umax-xdep.o, ns32km3-nat.o): Obsolete.
5840 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
5842 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
5844 * config/ns32k/merlin.mh: Obsolete.
5845 * config/ns32k/merlin.mt: Obsolete.
5846 * config/ns32k/xm-merlin.h: Obsolete.
5847 * config/ns32k/tm-merlin.h: Obsolete.
5848 * config/ns32k/nm-umax.h: Obsolete.
5849 * config/ns32k/umax.mh: Obsolete.
5850 * config/ns32k/umax.mt: Obsolete.
5851 * config/ns32k/xm-umax.h: Obsolete.
5852 * umax-xdep.c: Obsolete.
5853 * config/ns32k/ns32km3.mh: Obsolete.
5854 * config/ns32k/ns32km3.mt: Obsolete.
5855 * config/ns32k/tm-ns32km3.h: Obsolete.
5856 * config/ns32k/xm-ns32km3.h: Obsolete.
5857 * ns32km3-nat.c: Obsolete.
5858 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
5859 (merlin_frame_num_args): Ditto.
5863 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
5865 * config/djgpp/fnchange.lst: Tweak due to
5866 expect/example/chesslib.c.
5868 2001-04-02 Kevin Buettner <kevinb@redhat.com>
5870 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
5871 unsigned int to unsigned long. Also, fix format string.
5872 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
5873 use an undeclared variable. Also, delete declaration and
5874 initialization of ``fp'' because it is otherwise unused.
5875 * remote-bug.c (sleep): Delete declaration.
5876 (bug_store_register, bug_write_memory, bug_read_memory)
5877 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
5878 format statements and cast certain sprintf() arguments to
5880 (bug_load): Likewise for call to printf_filtered().
5881 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
5882 assignment to ``pc''. The necessary assignment is done in
5883 hand_function_call() after the invocation of FIX_CALL_DUMMY().
5885 2001-03-20 Daniel Berlin <dberlin@redhat.com>
5887 * symtab.c (completion_list_add_name): Remove duplicate string checks,
5888 readline already does this, and it's much faster at it, too.
5890 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
5892 * go32-nat.c: Minor tweaks, to pacify the ari script.
5894 2001-04-01 Mark Kettenis <kettenis@gnu.org>
5896 * i386-tdep.c (i386_extract_struct_value_address): New function.
5897 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
5898 in terms of i386_extract_struct_value_address.
5899 (i386_extract_struct_value_address): New prototype.
5901 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
5902 value to `unsigned long'. Change type of `value' to `unsigned
5904 (i386_linux_dr_set): Change type of second argument to `unsigned
5906 (i386_linux_dr_set_control): Change type of first argument to
5908 (i386_linux_dr_get_status): Change type of return value to
5910 * config/i386/nm-linux.h (i386_linux_dr_set_control,
5911 i386_linux_dr_get_status): Adjust prototypes accordingly.
5913 2001-03-31 Kevin Buettner <kevinb@redhat.com>
5915 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
5916 TRAP_HWBKPT constant to match that in the kernel headers for
5919 2001-03-31 Mark Kettenis <kettenis@gnu.org>
5921 * i386bsd-nat.c: Include "gdb_assert.h".
5922 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
5924 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
5925 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
5926 i386bsd_dr_get_status): New functions.
5927 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
5928 (I386_USE_GENERIC_WATCHPOINTS): Define.
5929 Include "i386/nm-i386.h".
5930 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
5931 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
5932 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
5933 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
5934 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
5935 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
5937 * config.in, configure: Regenerate.
5939 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
5940 register before enabling it by setting the control register.
5941 (i386_remove_aligned_watchpoint): Reset address register after
5942 disabling it by setting the control register.
5944 * i386-tdep.c (i386_extract_return_value): If the type of the
5945 return value is TYPE_STRUCT and the number of fields is one, call
5946 ourselves with TYPE set tp the type of the first field.
5947 (i386_store_return_value): Likewise.
5948 This fixes a problem with returning structs consisting of a single
5949 `float' or `double' on *BSD.
5951 2001-03-30 Mark Kettenis <kettenis@gnu.org>
5953 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
5954 we're absolutely sure we're going to resume it.
5956 * thread-db.c (check_event): Don't report an error if we encounter
5957 a thread creation event for a thread that's already in the thread
5958 list, since that may legitemately happen. Instead only call
5959 attach_thread if it's not already in the thread list.
5961 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5963 * config/pa/xm-hppah.h (malloc): Really delete declaration
5964 (MALLOC_INCOMPATIBLE): Really delete macro.
5965 * cli/cli-cmds.c (apropos_command): Use xcalloc.
5967 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5969 * configure.in (build_warnings): Add -Wuninitialized.
5970 * configure: Regenerate.
5972 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
5973 * sparc-tdep.c (sparc64_push_arguments): Add default case to
5975 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
5976 expression with if statement.
5977 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
5979 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
5980 (mips_dump_tdep): Fix setting of ef_mips_arch.
5981 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
5982 * dsrec.c (make_srec): Always initialize ``binbuf''.
5983 * monitor.c (monitor_read_memory_single): Do not pass an
5984 uninitialized buffer to monitor_error. Make ``i'' more local.
5986 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5988 * MAINTAINERS: Change ns32k target to ,-Werror.
5990 * ns32k-tdep.c: Include "gdbcore.h"
5991 (flip_bytes): Change first argument to void*. Add forward
5993 (sign_extend): Add declaration.
5994 (merlin_frame_num_args): Add final else clause to if-else chain.
5995 (umax_frame_num_args): Ditto.
5996 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
5997 (flip_bytes): Ditto.
5999 2001-03-28 Mark Kettenis <kettenis@gnu.org>
6001 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
6002 config/i386/nm-linux.h (including comment).
6003 (i386_linux_frame_chain): New function implementing guts of the
6004 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
6005 instead of read_memory_integer.
6006 (i386_linux_frame_saved_pc): Removed doc pointing to
6007 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
6008 now lives in this file.
6009 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
6010 i386-linux-tdep.c (including comment).
6011 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
6012 (i386_linux_frame_chain): New prototype.
6014 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
6016 (NUM_FREGS): Redefine to 0.
6017 (NUM_REGS): Redefine as NUM_GREGS.
6018 (i386_register_byte, i386_register_raw_size): Update from
6019 i386-tdep.c. Add comment about their origin.
6020 (regmap, register_u_addr): Take these from i386-linux-nat.c.
6021 (i386_register_u_addr): Removed.
6023 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
6024 fails instead of calling perror_with_name. This should fix
6025 debugging remote i386 targets with a native Linux/x86 GDB. Add
6026 FIXME for this hack.
6028 2001-03-19 J.T. Conklin <jtc@redback.com>
6030 * arch-utils.c (#include "gdbthread.h"): Removed.
6031 (#include "symfile.h"): Removed.
6032 (XMALLOC): Removed unused macro.
6033 * breakpoint.c (tbreak_command): Removed local declaration.
6034 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
6035 Remove duplicate declarations.
6036 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
6037 (remove_solib_event_breakpoints): Fix indentation botch.
6038 * c-typeprint.c (#include "command.h"): Removed.
6039 (#include "gdbcmd.h"): Removed.
6040 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
6041 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
6042 Removed duplicate declarations.
6043 * ch-typeprint.c (#include "command.h"): Removed.
6044 (#include "gdbcmd.h"): Removed.
6045 * corefile.c (#include "frame.h"): Removed
6046 (#include "symfile.h"): Removed.
6047 (#include "language.h"): Removed.
6048 * dbxread.c (#include "command.h"): Removed.
6049 * environ.c (#include "gdbcore.h"): Removed.
6050 * event-loop.c (#include "top.h"): Removed.
6051 * f-typeprint.c (#include "command.h"): Removed.
6052 (#include "gdbcmd.h"): Removed.
6053 (#include "language.h"): Removed.
6054 (#include "typeprint.h"): Removed.
6055 (#include "frame.h"): Removed.
6056 * gdbtypes.h (print_type_scalar): Removed declaration.
6057 * infcmd.c (#include "completer.h"): Removed.
6058 * language.c (#include "frame.h"): Removed.
6059 * m2-typeprint.c (#include "command.h"): Removed.
6060 (#include "gdbcmd.h"): Removed.
6061 (#include "language.h"): Removed.
6062 * m2-valprint.c (#include "valprint.h"): Removed.
6063 * p-typeprint.c (#include "command.h"): Removed.
6064 (#include "gdbcmd.h"): Removed.
6065 * p-valprint.c (#include "typeprint.h"): Removed.
6066 * parse.c (#include "linespec.h"): Removed.
6067 * regcache.c (#include "frame.h"): Removed.
6068 * remote.c (#include "frame.h"): Removed.
6069 (getpkt_sane): Make static.
6070 * source.c (#include "completer.h"): Removed.
6071 * stack.c (#include "symfile.h"): Removed.
6072 (#include "objfiles.h"): Removed.
6073 * symfile.c (#include "completer.h"): Removed.
6074 * tracepoint.c (#include "completer.h"): Removed.
6075 * values.c (#include "frame.h"): Removed.
6076 * varobj.c (#include "valprint.h"): Removed.
6077 * wrapper.c (#include "frame.h"): Removed.
6079 * memattr.c (create_mem_region): Removed unused variable.
6080 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
6082 2001-03-27 Nick Clifton <nickc@redhat.com>
6084 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
6086 2001-03-27 Kevin Buettner <kevinb@redhat.com>
6088 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
6091 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
6093 * TODO (Cleanups): Remove the item about converting docs to GFDL.
6095 2001-03-26 Kevin Buettner <kevinb@redhat.com>
6097 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
6098 type of ``bundle'' from unsigned char * to char *.
6099 (ia64_get_saved_register): Use alloca() to allocate register
6102 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
6104 2001-03-26 Kevin Buettner <kevinb@redhat.com>
6106 * proc-utils.h (procfs_ctl_t): New typedef.
6107 * proc-api.c (write_with_trace): Change type of ``opcode'' from
6108 long to procfs_ctl_t. Don't assume that the target has defined
6109 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
6110 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
6111 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
6112 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
6113 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
6114 Conditionally define as appropriate for AIX/non-AIX systems. Use
6115 these defines/typedefs as appropriate elsewhere in file.
6116 (struct procinfo): Change type of saved_sigset and saved_sighold
6117 from sigset_t to gdb_sigset_t. Make saved_exitset and
6118 saved_entryset pointer variables. Add two new fields, num_syscalls
6120 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
6121 (sysset_t_size, sysset_t_alloc): New functions.
6122 (load_syscalls, free_syscalls, find_syscall): New functions for
6123 platforms which define DYNAMIC_SYSCALLS.
6124 (create_procinfo): Call load_syscalls.
6125 (destroy_one_procinfo): Call free_syscalls.
6126 (GDBRESET): Don't define twice.
6127 (proc_modify_flag): Change type of operation code array `arg'
6128 from long to procfs_ctl_t.
6129 (proc_stop_process, proc_wait_for_stop, proc_run_process)
6130 (proc_set_traced_signals, proc_set_traced_faults)
6131 (proc_set_traced_sysentry, proc_set_traced_sysexit)
6132 (proc_set_held_signals, proc_clear_current_fault)
6133 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
6134 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
6135 (proc_set_traced_sysentry): Dynamically allocate variable sized
6136 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
6137 (proc_set_traced_sysexit): Dynamically allocate variable
6138 sized struct gdb_proc_ctl_pcsexit. Also, free it at
6140 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
6141 for reading the sysset_t struct on AIX5.
6142 (procfs_debug_inferior): Don't assume that SYS_exit will be
6143 defined. Add new code for finding certain syscalls on AIX5.
6144 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
6145 (syscall_is_lwp_create): New functions.
6146 (procfs_wait): Restructured code which checks for certain
6147 system calls to use the new syscall_is_... functions.
6148 (procfs_notice_signals): Account for the fact that saved_entryset
6149 and saved_exitset in struct procinfo are now pointers.
6151 2001-03-26 Kevin Buettner <kevinb@redhat.com>
6153 * symtab.c (find_pc_sect_line): Revise method used for finding
6156 2001-03-26 Mark Kettenis <kettenis@gnu.org>
6158 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
6159 i386_linux_sigtramp_saved_sp): Make static.
6160 (i386_linux_frame_saved_pc): New function based on the old
6161 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
6162 of read_memory_integer.
6163 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
6164 (i386_linux_sigtramp_saved_pc): Remove prototype.
6165 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
6166 (i386_linux_frame_saved_pc): New prototype.
6168 2001-03-26 Andrew Cagney <ac131313@redhat.com>
6170 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
6171 * TODO (GDB 5.1 - Cleanups): Update.
6173 2001-03-26 Andrew Cagney <ac131313@redhat.com>
6175 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
6178 2001-03-26 Mark Kettenis <kettenis@gnu.org>
6180 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
6182 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
6184 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
6185 (STORE_STRUCT_RETURN): Redefine in terms of
6186 i386_store_struct_return.
6187 (i386_push_arguments, i386_store_struct_return): New prototypes.
6188 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
6189 definition was identical to the definition in "i386/tm-i386.h" so
6190 the new definition should suffice too.
6192 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
6194 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
6195 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
6197 * config/djgpp/djconfig.sh: Add copyright notice.
6199 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
6200 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
6201 (top level) <string.h>: Include gdb_string.h instead.
6202 (dos_noop, dos_raw, dos_noflush_set_tty_state)
6203 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
6205 * go32-nat.c (go32_create_inferior): Move the declaration of
6206 `environ' to here from the top level.
6207 (top level) <_initialize_go32_nat>: Remove redundant prototype.
6208 <gdb_string.h>: Include it instead of string.h.
6209 (store_register): Call register_buffer instead of accessing
6210 registers[] directly.
6211 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
6212 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
6213 the function names at the start of the line.
6214 (go32_set_dr): Throw internal_error if the argument is not a valid
6215 debug register number.
6216 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
6217 (go32_wait, go32_xfer_memory, go32_files_info)
6218 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
6220 2001-03-25 Jim Blandy <jimb@redhat.com>
6222 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
6224 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6226 From Andrew Cagney <ac131313@redhat.com>
6228 * coffread.c: Include "gdb_assert.h".
6229 (coff_symtab_read): Cast the integer s_sclass to a long before
6230 casting it to a pointer.
6232 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6234 From Andrew Cagney <ac131313@redhat.com>
6236 * coffread.c (coff_symtab_read): Initialize
6237 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
6239 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
6241 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6243 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
6244 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
6247 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
6248 * gdbarch.h, gdbarch.c: Re-generate.
6250 * target.h (SOFTWARE_SINGLE_STEP_P)
6251 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
6253 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6255 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
6256 * gdbarch.h, gdbarch.c: Regenerate.
6258 * regcache.h (regcache_read, regcache_write): Declare.
6259 (registers, register_valid, register_buffer): Add note that these
6260 interfaces are deprecated.
6262 * regcache.c: Include "gdb_assert.h".
6263 (legacy_write_register_gen): Rename write_register_gen.
6264 (legacy_read_register_gen): Rename read_register_gen.
6265 (regcache_read, regcache_write): New function.
6266 (read_register_gen, write_register_gen): New function.
6267 (write_register): Simplify. Use write_register_gen.
6268 (read_register): Ditto using read_register_gen.
6269 (read_signed_register): Ditto.
6270 (read_register_bytes): Ditto!!!!
6271 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
6272 replaced by gdbarch_register_read.
6274 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
6277 2001-03-23 Jim Blandy <jimb@redhat.com>
6279 Fix from Dan Berlin:
6281 * stabsread.c (read_cpp_abbrev): Properly construct the names of
6282 virtual function table pointer fields.
6284 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6286 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
6287 xmrealloc): Move existing declarations to the one place and
6288 re-order to be consistent.
6289 (xmcalloc, xmfree): Declare.
6290 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
6293 * utils.c (size_t): Delete #ifdef defining size_t.
6294 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
6295 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
6296 corresponding malloc, realloc, calloc.
6297 (mfree): Call free directly.
6298 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
6299 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
6300 function bodies to here.
6301 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
6303 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6305 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
6306 ``shell_file'' static locals.
6308 * jv-lang.c (java_link_class_type): Initialize ``field'' and
6311 * jv-valprint.c (java_value_print): Initialize ``next_element''.
6313 2001-03-23 Mark Kettenis <kettenis@gnu.org>
6315 * config/i386/nm-i386.h: Fix formatting and change reference to
6316 i386-tdep.c to i386-nat.c.
6318 2001-03-23 David Smith <dsmith@redhat.com>
6320 * configure.in: Corrected spelling errors.
6321 * configure: Regenerated.
6323 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6325 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
6327 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6329 * Makefile.in (NTSSTART): Delete.
6331 (kdb): Delete target.
6332 * kdb-start.c, stuff.c: Mark as obsolete.
6335 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6337 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
6338 compiles using an ISO-C compiler.
6339 (MALLOC_INCOMPATIBLE): Ditto.
6340 * linespec.c (decode_line_1): Delete hack to work around
6343 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6345 * exec.c (xfer_memory): Always initialize section.
6346 * infrun.c (normal_stop): Always initialize source_flag.
6348 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6350 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
6351 non-use of a continue address and typical use of ``q'' packet.
6353 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
6355 Make DJGPP use the new unified support for hardware
6356 breakpoints and watchpoints on x86 targets:
6358 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
6359 include nm-i386.h instead.
6360 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
6361 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
6362 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
6363 (target_stopped_data_address, target_insert_watchpoint)
6364 (target_remove_watchpoint, target_insert_hw_breakpoint)
6365 (target_remove_hw_breakpoint): Don't define.
6366 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
6367 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
6368 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
6369 functions from go32-nat.c.
6371 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
6373 * go32-nat.c <top level>: Remove prototypes for watchpoint-
6374 related functions. Remove definitions of watchpoint-related
6376 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
6377 private cleanup_dregs function.
6378 (cleanup_dregs, go32_insert_watchpoint)
6379 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
6380 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
6381 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
6382 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
6383 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
6385 2001-03-21 Kevin Buettner <kevinb@redhat.com>
6387 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
6388 than two instead of generating an error.
6390 2001-03-21 Jim Blandy <jimb@redhat.com>
6392 * cp-valprint.c: Reformat to bring into line with GNU coding
6395 2001-03-21 Mark Kettenis <kettenis@gnu.org>
6397 Make Linux use the new unified support for hardware breakpoints
6398 and watchpoints on x86 targets.
6399 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
6400 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
6401 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
6402 appropriate value if not already defined.
6403 (register_u_addr): New function.
6404 (kernel_u_size): New function.
6405 (i386_linux_dr_get, i386_linux_dr_set): New functions.
6406 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6407 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
6408 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
6409 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
6410 (TARGET_HAS_HARDWARE_WATCHPOINTS,
6411 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
6412 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
6413 target_remove_watchpoint): Remove macros.
6414 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
6415 i386_remove_watchpoint): Remove prototypes.
6416 (register_u_addr): New prototype.
6417 (REGISTER_U_ADDR): Define in terms of register_u_addr.
6418 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6419 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
6420 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6421 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6422 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
6425 2001-03-21 Jim Blandy <jimb@redhat.com>
6427 Fix from Dan Berlin:
6429 * linespec.c (find_methods): Whitespace differences aren't
6430 significant in *un*mangled method names. Use strcmp_iw to compare
6433 2001-03-21 Andrew Cagney <ac131313@redhat.com>
6435 * gdbarch.sh: Allow a non- multi-arch target to override a
6437 * gdbarch.h: Regenerate.
6439 2001-03-21 Andrew Cagney <ac131313@redhat.com>
6441 * gdbarch.sh: Avoid use of ``!''.
6443 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6445 * target.h (enum target_signal): Move definition from here.
6446 * defs.h (enum target_signal): To here.
6448 * config/arc/tm-arc.h (arc_software_single_step): Change type of
6449 first parameter to enum target_signal.
6450 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
6451 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
6452 * rs6000-tdep.c (rs6000_software_single_step): Update.
6454 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6456 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
6459 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
6460 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
6461 or a reference ('a') can be in a pseudo register.
6462 * infcmd.c (do_registers_info): Must take into account the pseudo
6463 registers to print their value.
6464 (registers_info): Likewise.
6465 * stack.c (frame_info): Likewise.
6466 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
6468 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
6470 Unified support for hardware breakpoints and watchpoints on
6473 * config/i386/nm-i386.h: New file.
6475 * config/i386/nm-i386.h: (i386_cleanup_dregs)
6476 (i386_insert_watchpoint, i386_remove_watchpoint)
6477 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
6478 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6479 (i386_remove_hw_breakpoint): Declare prototypes.
6480 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6481 Define if not already defined.
6482 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
6483 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
6484 (target_insert_watchpoint, target_remove_watchpoint)
6485 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
6486 to call the appropriate i386_* functions.
6488 * i386-nat.c: New file.
6490 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
6491 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
6492 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
6493 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
6494 (maint_show_dr): New variables.
6495 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
6496 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
6497 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
6498 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6499 (i386_stopped_data_address, i386_stopped_by_hwbp)
6500 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
6502 (_initialize_i386_nat): New function.
6503 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
6504 `show-debug-regs', sets maint_show_dr to non-zero value and
6505 activates debugging print-outs in functions which insert, remove,
6506 and test watchpoints and hardware breakpoints.
6508 * Makefile.in (i386-nat.o): New target.
6509 (ALLDEPFILES): Add i386-nat.o.
6511 2001-03-21 Mark Kettenis <kettenis@gnu.org>
6513 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
6514 appropriate comment.
6516 2001-03-20 Kevin Buettner <kevinb@redhat.com>
6518 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
6519 thread-db.o, and lin-lwp.o for thread support instead of
6520 linux-thread.o and lin-thread.o.
6521 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
6522 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
6523 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
6524 (lin_lwp_attach_lwp): Declare.
6526 2001-03-20 Jim Blandy <jimb@redhat.com>
6528 Fix from Dan Berlin:
6530 * Makefile.in: Clean up dependencies on ../include/demangle.h.
6531 (demangle_h): New variable.
6532 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
6534 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6536 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
6537 * breakpoint.c (bpstat_stop_status): Update.
6538 * infrun.c (handle_inferior_event): Ditto.
6539 * mips-tdep.c (mips_dump_tdep): Ditto.
6540 * infrun.c (resume): Ditto.
6541 * infptrace.c (child_resume): Ditto.
6542 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6543 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6544 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6545 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6546 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6547 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6548 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6550 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6552 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
6553 with internal_error.
6555 2001-03-20 Jim Blandy <jimb@redhat.com>
6557 Fix from Dan Berlin:
6559 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
6560 than asking for sym_class's type; that's circuitous. Remove
6561 sym_class, since the last use of it is gone.
6563 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
6565 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
6566 Correct the order of calls to ui_out_field_string and
6567 ui_out_list_begin when bs->old_val is NULL.
6569 2001-03-19 Kevin Buettner <kevinb@redhat.com>
6571 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
6572 * configure: Regenerate.
6573 * config.in: Regenerate.
6574 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
6576 2001-03-19 Kevin Buettner <kevinb@redhat.com>
6578 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
6579 same line to avoid problems with Unixware 7's make when building
6582 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6584 * defs.h (malloc): Move declaration from here.
6585 * utils.c (malloc): To here.
6586 * config/pa/xm-hppah.h (malloc): Delete declaration.
6588 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
6589 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
6590 (hpread_quick_traverse): Ditto.
6591 * infttrace.c (create_thread_info): Ditto.
6592 (kill_inferior): Ditto.
6593 * gnu-nat.c (make_inf): Ditto, and don't check return value.
6594 * procfs.c (proc_update_threads): Ditto.
6595 * valprint.c (print_decimal_chars): Ditto.
6596 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
6598 * remote-rdp.c (rdp_set_command_line): Ditto.
6600 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6602 * defs.h (realloc): Move declaration from here.
6603 * utils.c (realloc): To here.
6604 * config/pa/xm-hppah.h (realloc): Delete declaration.
6605 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
6606 * symfile.c (add_filename_language): Ditto.
6607 * event-loop.c (create_file_handler): Ditto.
6609 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6611 * defs.h (free): Move declaration from here.
6612 * utils.c (free): To here.
6613 (xfree): Document as the only call to free().
6614 * config/pa/xm-hppah.h (free): Delete declaration.
6616 2001-03-19 Kevin Buettner <kevinb@redhat.com>
6618 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
6621 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6623 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
6624 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
6625 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
6627 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6629 * TODO: List known problems with TUI.
6631 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6633 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
6636 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6638 * remote.c (remote_cisco_section_offsets): Do not cast result from
6639 bfd_get_section_name.
6640 (compare_sections_command): Ditto.
6641 (remote_cisco_section_offsets): Make ``p'' a const pointer.
6642 (compare_sections_command): Ditto for ``sectname''.
6644 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6646 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
6647 * valops.c (hand_function_call): Simplify computation of the
6648 address of the pushed argument.
6650 2001-03-17 Andrew Cagney <ac131313@redhat.com>
6652 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
6653 Code copied from c-exp.y.
6655 2001-03-18 Kevin Buettner <kevinb@redhat.com>
6657 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
6658 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
6659 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
6660 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
6661 of the Solaris procfs testing section. Instead, group with...
6662 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
6663 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
6664 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
6665 * configure: Regenerate.
6666 * config.in: Regenerate.
6668 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
6669 new configure macros to choose which (if any) code to
6670 compile in. Added code to explicitly handle *BSD systems;
6671 these systems were previously handled only through macro
6672 redefinition. Also, due to the way the autoconf tests are set
6673 up, this function will no longer return a non-zero value when
6674 GDB is configured as a cross debugger. I.e, cross debuggers
6675 will no longer be able to "accidentally" get the host system's
6678 2001-03-18 Kevin Buettner <kevinb@redhat.com>
6680 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
6681 line to avoid build problem on NetBSD 1.4.
6683 2001-03-17 Michael Chastain <chastain@redhat.com>
6685 * win32-nat.c (child_attach): check args for NULL before passing
6686 to strtoul. This fixes PR gdb/43.
6688 2001-03-17 Mark Kettenis <kettenis@gnu.org>
6690 * i387-nat.h: Doc Fix.
6692 * i386-tdep.c: Fix formatting.
6693 (i386_get_frame_setup, i386_follow_jump, codestream_read,
6694 codestream_seek, codestream_fill, skip_trampoline_code,
6695 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
6698 2001-03-17 Mark Kettenis <kettenis@gnu.org>
6700 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
6701 no longer used. Also remove associated FIXME.
6703 2001-03-16 Andrew Cagney <ac131313@redhat.com>
6705 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
6706 not generate macro wrappers for multi-arch functions or
6708 (class_is_info_p, class_is_predicate_p): Update.
6709 (class_is_function_p, class_is_variable_p): Ditto.
6710 (class_is_multiarch_p): New class function.
6712 2001-03-16 J.T. Conklin <jtc@redback.com>
6714 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
6715 h8300_frame_args_address from frame_args_address.
6716 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
6717 from frame_locals_address.
6718 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
6719 from print_register_hook.
6720 (h8300_frame_args_address): Declare.
6721 (h8300_frame_find_saved_regs): Declare.
6722 (h8300_frame_locals_address): Declare.
6723 (h8300_frame_saved_pc): Declare.
6724 (h8300_pop_frame): Declare.
6725 (h8300_print_register_hook): Declare.
6726 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
6727 (h8300_frame_args_address): Renamed from frame_args_address.
6728 (h8300_frame_locals_address): Renamed from frame_locals_address.
6729 (h8300_pop_frame): Renamed from pop_frame.
6730 (h8300_print_register_hook): Renamed from print_register_hook.
6732 2001-03-16 Kevin Buettner <kevinb@redhat.com>
6734 * solib-svr4.c (bfd_lookup_symbol): Change type of
6735 ``storage_needed'' from unsigned int to long in order to
6736 match return type of bfd_get_symtab_upper_bound() and
6737 bfd_get_dynamic_symtab_upper_bound().
6738 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
6739 REASONABLE_LIMIT hack which had been added to work around this
6742 2001-03-15 Kevin Buettner <kevinb@redhat.com>
6744 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
6745 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
6746 to free() with calls to xfree().
6747 (bfd_lookup_symbol): Eliminate use of PTR.
6748 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
6750 2001-03-15 Martin Hunt <hunt@redhat.com>
6752 * linespec.c (decode_line_1): Remove trailing quote
6753 when parsing double quotes.
6755 2001-03-15 Kevin Buettner <kevinb@redhat.com>
6757 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
6758 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
6759 argument in the to_xfer_memory calls.
6761 2001-03-15 Andrew Cagney <ac131313@redhat.com>
6763 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
6764 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
6766 2001-03-15 Andrew Cagney <ac131313@redhat.com>
6768 * wince.c (child_xfer_memory): Add attrib parameter.
6769 * symm-nat.c (child_xfer_memory): Ditto.
6770 * mac-nat.c (child_xfer_memory): Ditto.
6771 * infttrace.c (child_xfer_memory): Ditto.
6772 * procfs.c (procfs_xfer_memory): Ditto.
6773 * lin-thread.c (thread_db_xfer_memory): Ditto.
6774 * gnu-nat.c (gnu_xfer_memory): Ditto.
6776 2001-03-14 Andrew Cagney <ac131313@redhat.com>
6778 * NEWS: Mention that Harris/CXUX m88k is obsolete.
6780 2001-03-13 Andrew Cagney <ac131313@redhat.com>
6782 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
6783 to regcache functions.
6784 * config/m68k/tm-m68k.h: Ditto.
6785 * config/i386/tm-i386v.h: Ditto.
6786 * config/mcore/tm-mcore.h: Ditto.
6787 * config/m88k/tm-m88k.h: Ditto.
6788 * config/m68k/tm-news.h: Ditto.
6789 * config/m68k/tm-linux.h: Ditto.
6790 * config/m68k/tm-delta68.h: Ditto.
6791 * config/m68k/nm-sun3.h: Ditto.
6792 * config/m32r/tm-m32r.h: Ditto.
6793 * config/i386/tm-symmetry.h: Ditto.
6794 * config/i386/tm-sun386.h: Ditto.
6795 * config/i386/tm-i386.h: Ditto.
6796 * config/i386/nm-symmetry.h: Ditto.
6797 * config/i386/nm-sun386.h: Ditto.
6798 * config/i386/nm-ptx4.h: Ditto.
6799 * config/i386/nm-i386mach.h: Ditto.
6800 * config/h8500/tm-h8500.h: Ditto.
6801 * config/h8300/tm-h8300.h: Ditto.
6802 * config/fr30/tm-fr30.h: Ditto.
6803 * config/d30v/tm-d30v.h: Ditto.
6804 * config/arm/tm-arm.h: Ditto.
6805 * config/arc/tm-arc.h: Ditto.
6806 * config/alpha/tm-alpha.h: Ditto.
6807 * config/a29k/tm-vx29k.h: Ditto.
6808 * config/a29k/tm-a29k.h: Ditto.
6809 * config/w65/tm-w65.h: Ditto.
6810 * config/vax/tm-vax.h: Ditto.
6811 * config/v850/tm-v850.h: Ditto.
6812 * config/tic80/tm-tic80.h: Ditto.
6813 * config/sparc/tm-sparclite.h: Ditto.
6814 * config/sparc/tm-sparclet.h: Ditto.
6815 * config/sparc/tm-sparc.h: Ditto.
6816 * config/sparc/nm-sun4sol2.h: Ditto.
6817 * config/sparc/nm-sun4os4.h: Ditto.
6818 * config/sparc/nm-nbsd.h: Ditto.
6819 * config/powerpc/nm-solaris.h: Ditto.
6820 * config/pa/tm-hppao.h: Ditto.
6821 * config/pa/tm-hppa.h: Ditto.
6822 * config/pa/nm-hppab.h: Ditto.
6823 * config/ns32k/tm-umax.h: Ditto.
6824 * config/ns32k/tm-merlin.h: Ditto.
6825 * config/nm-m3.h: Ditto.
6826 * config/nm-gnu.h: Ditto.
6828 2001-03-14 Andrew Cagney <ac131313@redhat.com>
6830 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
6831 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
6832 Specify an m88k target. Include sample GAWK script to generate
6833 target list. Delete non-existant romp target.
6834 * TODO (GDB 5.1 - Cleanups): Update.
6836 2001-03-14 Keith Seitz <keiths@cygnus.com>
6838 * linespec.c (decode_line_1): Skip argptr over a leading
6839 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
6841 2001-03-14 Kevin Buettner <kevinb@redhat.com>
6843 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
6845 2001-03-13 Andrew Cagney <ac131313@redhat.com>
6847 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
6850 * printcmd.c (printf_command): Ditto.
6851 * ch-exp.c (match_integer_literal): Ditto.
6852 * scm-tags.h: Ditto.
6853 * ser-go32.c: Ditto.
6854 * hppa-tdep.c (unwind_command): Ditto.
6855 * defs.h (volatile): Delete macro definition. Assume __STDC__.
6856 * remote-adapt.c (volatile): Ditto.
6857 * remote-eb.c (volatile): Ditto.
6858 * remote-mm.c (volatile): Ditto.
6859 * defs.h (alloca): Assume __STDC__, declare returning void *.
6861 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6863 * inferior.h (ARCH_NUM_REGS): Delete definition.
6864 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
6865 * regcache.c (registers_changed): Ditto.
6866 (registers_fetched): Ditto.
6867 * infptrace.c (fetch_inferior_registers): Ditto.
6868 (store_inferior_registers): Ditto.
6869 * infcmd.c (do_registers_info): Ditto.
6870 (registers_info): Ditto.
6871 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
6872 (old_store_inferior_registers): Ditto.
6873 * gdbserver/low-linux.c (register_addr): Ditto.
6874 * gdbserver/low-hppabsd.c (register_addr): Ditto.
6875 * core-aout.c: Don't include "inferior.h".
6876 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
6877 (register_addr): Ditto.
6879 2001-03-13 Fernando Nasser <fnasser@redhat.com>
6881 From Steven Johnson <sjohnson@neurizon.net>
6882 * cli/cli-script.c (define_command): Fix setting of post hooks.
6884 2001-03-13 Mark Kettenis <kettenis@gnu.org>
6886 * i386-linux-tdep.c: Fix formatting and clarify comments.
6887 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
6890 2001-03-12 Andrew Cagney <ac131313@redhat.com>
6892 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
6893 (proc_update_sc): Use gdb_assert instead of assert.
6894 (proc_abort): Ditto.
6895 (inf_set_step_thread): Ditto.
6897 (S_exception_raise_request): Ditto.
6898 (gnu_terminal_init_inferior): Ditto.
6900 2001-03-09 Kevin Buettner <kevinb@redhat.com>
6902 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
6903 (solib-legacy.o): New makefile target.
6904 * solib-legacy.c: New file.
6905 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6906 (default_svr4_fetch_link_map_offsets): Delete.
6907 (set_solib_svr4_fetch_link_map_offsets): Declare.
6908 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
6909 * solib-svr4.c (elf/common.h): Include.
6910 (link.h): Only include for SunOS shared library support.
6911 (_SYSCALL32): Don't define.
6912 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
6913 (default_svr4_fetch_link_map_offsets): Made static; added forward
6915 (fetch_link_map_offsets): New static global.
6916 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
6917 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
6918 of what used to be in this function now reside in
6919 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
6920 (open_symbol_file_object): Fix declaration in SunOS section
6922 (set_solib_svr4_fetch_link_map_offsets): New extern function.
6923 (init_fetch_link_map_offsets): New static function.
6924 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
6925 under multiarch control.
6927 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
6929 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
6930 * config/arm/linux.mt (TDEPFILES): Likewise.
6931 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6932 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
6933 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6934 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
6935 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
6936 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
6937 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6938 * config/i386/linux.mt (TDEPFILES): Likewise.
6939 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6940 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6941 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
6942 * config/i386/ptx4.mh (XDEPFILES): Likewise.
6943 * config/i386/sun386.mt (TDEPFILES): Likewise.
6944 * config/ia64/linux.mt (TDEPFILES): Likewise.
6945 * config/m68k/linux.mt (TDEPFILES): Likewise.
6946 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
6947 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6948 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
6949 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
6950 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
6951 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
6952 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6953 * config/powerpc/linux.mt (TDEPFILES): Likewise.
6954 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6955 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
6956 * config/sh/linux.mt (TDEPFILES): Likewise.
6957 * config/sparc/linux.mt (TDEPFILES): Likewise.
6958 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6959 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6960 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
6961 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
6962 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
6964 2001-03-09 Kevin Buettner <kevinb@redhat.com>
6966 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
6968 2001-03-09 Andrew Cagney <ac131313@redhat.com>
6970 * MAINTAINERS (Write After Approval): Update Philip Blundell.
6972 2001-03-09 Keith Seitz <keiths@cygnus.com>
6974 * MAINTAINERS: Add myself to write after approval list.
6976 2001-03-09 Mark Kettenis <kettenis@gnu.org>
6978 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
6979 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
6981 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6983 * configure.host (m88*-harris-cxux*): Mark as obsolete.
6984 * configure.tgt: Ditto.
6985 * config/m88k/xm-cxux.h: Ditto.
6986 * config/m88k/tm-cxux.h: Ditto.
6987 * config/m88k/nm-cxux.h: Ditto.
6988 * config/m88k/cxux.mt: Ditto.
6989 * config/m88k/cxux.mh: Ditto.
6991 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6993 * Makefile.in: Delete rules for obsolete files.
6995 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
6997 * stack.c (parse_frame_specification): For one argument case,
6998 handle the situation where the argument is an integer, not an
6999 address -- arguably the most common case. This matters on
7000 targets where pointers and addresses are different.
7002 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7004 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
7005 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
7008 2001-03-07 Andrew Cagney <ac131313@redhat.com>
7010 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
7011 with SID on Solaris 8.
7013 2001-03-07 Mark Kettenis <kettenis@gnu.org>
7015 * defs.h: Provide prototypes for floatformat_is_negative,
7016 floatformat_is_nan and floatformat_mantissa.
7017 * utils.c: Include "gdb_assert.h".
7018 (floatformat_is_negative): New function.
7019 (floatformat_is_nan): New function.
7020 (floatformat_mantissa): New function.
7021 * valprint.c: Include "floatformat.h".
7022 (print_floating): Get rid of the Linux-specific
7023 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
7024 help these new functions. Print NaN's in a format conforming to
7027 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
7029 * top.c (init_main): Make `set history file name' complete on file
7032 2001-03-06 J.T. Conklin <jtc@redback.com>
7034 * Makefile.in (LINTFLAGS): Update to contain all of the macros
7035 which define include paths used when compiling.
7037 * util.c (savestring, msavestring): Change type of length argument.
7038 * defs.h (savestring, msavestring): Update to match.
7040 * symtab.h (decode_line_1): Removed declaration.
7042 * symfile.c (#include <assert.h>): Removed.
7044 * arch-utils.c (#include <ctype.h>): Removed.
7045 * c-typeprint.c: Likewise.
7046 * dbxread.c: Likewise.
7047 * gdbtypes.c: Likewise.
7048 * target.c: Likewise.
7049 * os9kread.c: Likewise.
7051 * c-valprint.c (#include "demangle.h"): Removed.
7052 * ch-typeprint.c: Likewise.
7054 * f-typeprint.c: Likewise.
7055 * f-valprint.c: Likewise.
7056 * m2-typeprint.c: Likewise.
7057 * typeprint.c: Likewise.
7058 * p-typeprint.c: Likewise.
7059 * valarith.c: Likewise.
7060 * valprint.c: Likewise.
7062 * m2-typeprint.c (#include "gdb_string.h"): Removed.
7063 * nlmread.c: Likewise.
7065 * mdebugread.c (#include "gdb-stabs.h"): Removed.
7066 * minsyms.c: Likewise.
7067 * mipsread.c: Likewise.
7068 * nlmread.c: Likewise.
7070 * m2-typeprint.c (#include "obstack.h"): Removed.
7071 * m2-valprint.c: Likewise.
7073 * event-loop.c (#include <setjmp.h>): Removed.
7075 2001-03-06 Stan Shebs <shebs@apple.com>
7077 * MAINTAINERS: Remove self from specific maintenance domains
7078 (macos, gdbserver, documentation, testsuite).
7080 2001-03-06 Kevin Buettner <kevinb@redhat.com>
7082 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
7083 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
7084 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
7085 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
7086 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
7087 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
7088 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
7089 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
7090 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
7091 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
7092 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
7093 coff-solib.h, coffread.c, command.h, complaints.c,
7094 complaints.h, completer.c, completer.h,
7095 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
7096 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
7097 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
7098 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
7099 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
7100 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
7101 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
7102 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
7103 config/arm/nm-linux.h, config/arm/tm-arm.h,
7104 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
7105 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7106 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7107 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
7108 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
7109 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
7110 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
7111 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
7112 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
7113 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
7114 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
7115 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
7116 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
7117 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
7118 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
7119 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
7120 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
7121 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
7122 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
7123 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
7124 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
7125 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
7126 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
7127 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
7128 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
7129 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
7130 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
7131 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
7132 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
7133 config/i960/tm-i960.h, config/i960/tm-mon960.h,
7134 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
7135 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
7136 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
7137 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
7138 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
7139 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
7140 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
7141 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
7142 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
7143 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
7144 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
7145 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
7146 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
7147 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
7148 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
7149 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
7150 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
7151 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
7152 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
7153 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
7154 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
7155 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
7156 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
7157 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
7158 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
7159 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
7160 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
7161 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
7162 config/mips/nm-irix5.h, config/mips/nm-mips.h,
7163 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
7164 config/mips/tm-embed.h, config/mips/tm-embed64.h,
7165 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
7166 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
7167 config/mips/tm-mips.h, config/mips/tm-mips64.h,
7168 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
7169 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
7170 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
7171 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
7172 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
7173 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
7174 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
7175 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
7176 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
7177 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
7178 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
7179 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
7180 config/nm-sysv4.h, config/none/nm-none.h,
7181 config/none/tm-none.h, config/none/xm-none.h,
7182 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
7183 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
7184 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
7185 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
7186 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
7187 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
7188 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
7189 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
7190 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
7191 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
7192 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
7193 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
7194 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
7195 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
7196 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
7197 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
7198 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
7199 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
7200 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
7201 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
7202 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
7203 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
7204 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
7205 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
7206 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
7207 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7208 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7209 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
7210 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
7211 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
7212 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
7213 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
7214 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
7215 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
7216 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
7217 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
7218 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
7219 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
7220 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
7221 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
7222 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
7223 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
7224 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
7225 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
7226 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
7227 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
7228 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
7229 gdbserver/low-sim.c, gdbserver/low-sparc.c,
7230 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
7231 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
7232 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
7233 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
7234 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
7235 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
7236 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
7237 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
7238 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
7239 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
7240 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
7241 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
7242 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
7243 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
7244 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
7245 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
7246 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
7247 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
7248 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
7249 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
7250 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
7251 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
7252 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
7253 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
7254 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
7255 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
7256 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
7257 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
7258 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
7259 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
7260 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
7261 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
7262 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
7263 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
7264 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7265 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
7266 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
7267 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
7268 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
7269 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
7270 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
7271 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
7272 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
7273 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
7274 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
7275 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
7276 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
7277 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
7278 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
7279 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
7280 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
7281 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
7282 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
7283 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
7284 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
7285 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
7286 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
7289 2001-03-05 Kevin Buettner <kevinb@redhat.com>
7291 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
7292 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
7294 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
7295 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
7296 (sys/fault.h, sys/select.h): Test for presence of these
7298 (ia64-*-aix*): Define NEW_PROC_API for this host.
7299 * configure: Regenerate.
7300 * config.in: Regenerate.
7302 * configure.host (ia64-*-aix*): New host.
7303 * configure.tgt (ia64-*-aix*): New target.
7305 2001-03-05 Andrew Cagney <ac131313@redhat.com>
7307 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
7309 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
7311 * wince.c: Change realloc to xrealloc throughout.
7312 (handle_load_dll): Use void * rather than PTR in argument.
7314 2001-03-04 Andrew Cagney <ac131313@redhat.com>
7316 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
7317 * ocd.c (ocd_xfer_memory): Ditto.
7318 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
7319 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
7320 buildable with ,-Werror.
7322 * Makefile.in (symfile_h): Define.
7323 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
7324 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
7325 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
7328 * dsrec.c (make_srec): Fix internal_error fmt arg.
7329 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
7331 2001-03-03 Kevin Buettner <kevinb@redhat.com>
7333 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
7336 2001-03-02 Andrew Cagney <ac131313@redhat.com>
7338 * MAINTAINERS (paper trail): Update.
7340 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
7342 2001-03-02 Andrew Cagney <ac131313@redhat.com>
7344 From 2001-03-01 Tom Rix <trix@redhat.com>:
7345 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
7346 parameter to mn10200_analyze_prologue.
7348 * config/mn10200/tm-mn10200.h: Include "regcache.h".
7349 * MAINTAINERS: Document that mn10200-elf target is buildable.
7351 2001-03-02 Kevin Buettner <kevinb@redhat.com>
7353 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
7355 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
7356 (MONTEREY): Don't define.
7359 2001-03-02 Matt Hiller <hiller@redhat.com>
7361 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
7363 2001-03-02 Kevin Buettner <kevinb@redhat.com>
7365 * sparc-nat.c (sparc-nat.c): Don't include self.
7367 2001-03-01 J.T. Conklin <jtc@redback.com>
7369 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
7370 if __CYGWIN32__ is set from here.
7371 * config/i386/xm-cygwin.h: To here.
7372 * config/powerpc/xm-cygwin.h: To here.
7374 * i386-stub.c (handle_exception): Use 'T' response packet.
7376 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7378 * m32r-tdep.c: Fix cut and paste error in comment.
7380 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7382 * symtab.c (print_msymbol_info): Print addresses by portable method
7383 longest_local_hex_string_custom. Allow for 64-bit addresses.
7385 2001-03-01 J.T. Conklin <jtc@redback.com>
7387 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
7388 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
7389 (MIN_OF_TYPE): Likewise.
7391 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
7393 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7395 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
7396 * os9kread.c (os9k_process_one_symbol): Add assert to detect
7397 ``loses if sizeof (char *) > sizeof (int)''.
7399 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7401 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
7403 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7405 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
7409 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7411 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
7414 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7416 * printcmd.c (print_address_numeric): Update comments to refer
7417 to sizeof addr, not sizeof pointer.
7418 (x_command): Remove needless whitespace (shorten long line).
7420 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
7421 (read_memory_nobpt): Ditto.
7422 (ep_is_catchpoint): Ditto.
7423 (ep_is_shlib_catchpoint): Ditto.
7424 (ep_is_exception_catchpoint): Ditto.
7425 (describe_other_breakpoints): Ditto.
7427 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
7429 * regcache.h (register_valid): Fix comment documenting valid
7432 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
7434 From Steven Johnson:
7435 * regcache.h: New file.
7437 * value.h (read_register_bytes, read_register_gen)
7438 (write_register_gen, write_register_bytes)
7439 (read_register, read_register_pid)
7440 (read_signed_register, read_signed_register_pid)
7441 (write_register, write_register_pid)
7442 (register_cached, set_register_cached)
7443 (register_changed, register_buffer)
7444 (registers_changed, supply_register): Move declaration from here.
7445 * regcache.h: To here.
7446 * gdbcore.h (registers_fetched): Ditto.
7447 * inferior.h (registers, registers_valid): Ditto.
7449 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
7450 generic_target_write_pc, write_pc_pid, write_pc,
7451 generic_target_read_sp, read_sp, generic_target_write_sp,
7452 write_sp, generic_target_read_fp, read_fp,
7453 generic_target_write_fp, write_fp): Add note that these functions
7454 will be moved from this file.
7456 * a29k-tdep.c: Include "regcache.h".
7457 * a68v-nat.c: Ditto.
7458 * abug-rom.c: Ditto.
7459 * alpha-nat.c: Ditto.
7460 * alpha-tdep.c: Ditto.
7461 * alphabsd-nat.c: Ditto.
7462 * arc-tdep.c: Ditto.
7463 * arm-linux-nat.c: Ditto.
7464 * arm-linux-tdep.c: Ditto.
7465 * arm-tdep.c: Ditto.
7466 * blockframe.c: Ditto.
7467 * core-aout.c: Ditto.
7468 * core-sol2.c: Ditto.
7470 * cpu32bug-rom.c: Ditto.
7471 * cxux-nat.c: Ditto.
7472 * d10v-tdep.c: Ditto.
7473 * d30v-tdep.c: Ditto.
7474 * dbug-rom.c: Ditto.
7475 * dink32-rom.c: Ditto.
7476 * dve3900-rom.c: Ditto.
7478 * fr30-tdep.c: Ditto.
7480 * go32-nat.c: Ditto.
7481 * h8300-tdep.c: Ditto.
7482 * h8500-tdep.c: Ditto.
7483 * hp300ux-nat.c: Ditto.
7484 * hppa-tdep.c: Ditto.
7485 * hppab-nat.c: Ditto.
7486 * hppah-nat.c: Ditto.
7487 * hppam3-nat.c: Ditto.
7488 * hpux-thread.c: Ditto.
7489 * i386-linux-nat.c: Ditto.
7490 * i386-linux-tdep.c: Ditto.
7491 * i386-tdep.c: Ditto.
7492 * i386aix-nat.c: Ditto.
7493 * i386b-nat.c: Ditto.
7494 * i386bsd-nat.c: Ditto.
7495 * i386gnu-nat.c: Ditto.
7496 * i386ly-tdep.c: Ditto.
7497 * i386m3-nat.c: Ditto.
7498 * i386mach-nat.c: Ditto.
7499 * i386nbsd-nat.c: Ditto.
7500 * i386v4-nat.c: Ditto.
7501 * i387-nat.c: Ditto.
7502 * i387-tdep.c: Ditto.
7503 * i960-tdep.c: Ditto.
7504 * ia64-aix-nat.c: Ditto.
7505 * ia64-linux-nat.c: Ditto.
7506 * ia64-tdep.c: Ditto.
7507 * infptrace.c: Ditto.
7509 * irix4-nat.c: Ditto.
7510 * irix5-nat.c: Ditto.
7512 * lin-thread.c: Ditto.
7513 * lynx-nat.c: Ditto.
7515 * m32r-rom.c: Ditto.
7516 * m32r-tdep.c: Ditto.
7517 * m68hc11-tdep.c: Ditto.
7518 * m68k-tdep.c: Ditto.
7519 * m68klinux-nat.c: Ditto.
7520 * m68knbsd-nat.c: Ditto.
7521 * m68knbsd-tdep.c: Ditto.
7522 * m88k-nat.c: Ditto.
7523 * m88k-tdep.c: Ditto.
7525 * mcore-rom.c: Ditto.
7526 * mcore-tdep.c: Ditto.
7527 * mi/mi-main.c: Ditto.
7528 * mips-nat.c: Ditto.
7529 * mips-tdep.c: Ditto.
7530 * mipsm3-nat.c: Ditto.
7531 * mipsv4-nat.c: Ditto.
7532 * mn10200-tdep.c: Ditto.
7533 * mn10300-tdep.c: Ditto.
7535 * ns32km3-nat.c: Ditto.
7536 * ns32knbsd-nat.c: Ditto.
7538 * pa64solib.c: Ditto.
7540 * ppc-linux-nat.c: Ditto.
7541 * ppc-linux-tdep.c: Ditto.
7542 * ppcbug-rom.c: Ditto.
7543 * ppcnbsd-nat.c: Ditto.
7544 * ptx4-nat.c: Ditto.
7545 * regcache.c: Ditto.
7546 * remote-adapt.c: Ditto.
7547 * remote-array.c: Ditto.
7548 * remote-bug.c: Ditto.
7549 * remote-e7000.c: Ditto.
7550 * remote-eb.c: Ditto.
7551 * remote-es.c: Ditto.
7552 * remote-est.c: Ditto.
7553 * remote-hms.c: Ditto.
7554 * remote-mips.c: Ditto.
7555 * remote-mm.c: Ditto.
7556 * remote-nindy.c: Ditto.
7557 * remote-os9k.c: Ditto.
7558 * remote-rdi.c: Ditto.
7559 * remote-rdp.c: Ditto.
7560 * remote-sds.c: Ditto.
7561 * remote-sim.c: Ditto.
7562 * remote-st.c: Ditto.
7563 * remote-udi.c: Ditto.
7564 * remote-utils.c: Ditto.
7565 * remote-vx.c: Ditto.
7566 * remote-vx29k.c: Ditto.
7567 * remote-vx68.c: Ditto.
7568 * remote-vx960.c: Ditto.
7569 * remote-vxmips.c: Ditto.
7570 * remote-vxsparc.c: Ditto.
7572 * rom68k-rom.c: Ditto.
7573 * rs6000-nat.c: Ditto.
7574 * rs6000-tdep.c: Ditto.
7577 * sol-thread.c: Ditto.
7578 * solib-svr4.c: Ditto.
7579 * somsolib.c: Ditto.
7580 * sparc-nat.c: Ditto.
7581 * sparc-tdep.c: Ditto.
7582 * sparcl-tdep.c: Ditto.
7583 * sparclet-rom.c: Ditto.
7584 * sun3-nat.c: Ditto.
7585 * sun386-nat.c: Ditto.
7586 * symm-nat.c: Ditto.
7588 * thread-db.c: Ditto.
7590 * tic80-tdep.c: Ditto.
7591 * tracepoint.c: Ditto.
7592 * ultra3-nat.c: Ditto.
7593 * umax-xdep.c: Ditto.
7594 * uw-thread.c: Ditto.
7595 * v850-tdep.c: Ditto.
7598 * w65-tdep.c: Ditto.
7599 * w89k-rom.c: Ditto.
7600 * win32-nat.c: Ditto.
7602 * z8k-tdep.c: Ditto.
7604 2001-02-28 Matt Hiller <hiller@redhat.com>
7606 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
7608 2001-02-27 Matt Hiller <hiller@redhat.com>
7610 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
7611 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
7612 mn10300_stab_reg_to_regnum.
7614 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
7616 * symtab.c (search_symbols): Fix off by one error in test for
7619 2001-02-23 Andrew Cagney <ac131313@redhat.com>
7621 * config/sparc/sp64linux.mt: New file.
7622 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
7623 * configure.host: Recognize sparc64-*-linux* as a linux host.
7625 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
7626 * config/sparc/tm-sp64linux.h: New file.
7628 2001-02-24 Kevin Buettner <kevinb@redhat.com>
7630 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
7631 with call to internal_error().
7632 * dbxread.c (process_one_symbol): Likewise.
7633 * exec.c (build_section_table, xfer_memory): Likewise.
7634 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
7636 * hpread.c (hpread_type_translate, hpread_read_array_type)
7637 (hpread_type_lookup): Likewise.
7638 * i386-tdep.c (gdb_print_insn_i386): Likewise.
7639 * i960-tdep.c (mem): Likewise
7640 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
7641 * infptrace.c (child_resume): Likewise.
7642 * infttrace.c (_initialize_infttrace): Likewise.
7643 * language.c (binop_result_type, add_language): Likewise.
7644 * lynx-nat.c (store_inferior_registers): Likewise.
7645 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
7646 * mdebugread.c (parse_partial_symbols): Likewise.
7647 * monitor.c (monitor_printf_noecho, monitor_printf)
7648 (monitor_dump_regs): Likewise.
7649 * ocd.c (stu_put_packet): Likewise.
7650 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
7651 * remote-bug.c (bug_open): Likewise.
7652 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
7653 * remote-es.c (es1800_read_bytes): Likewise.
7654 * remote-mips.c (common_breakpoint): Likewise.
7655 * remote-rdp.c (send_rdp): Likewise.
7656 * remote-sds.c (putmessage): Likewise.
7657 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
7659 * sparcl-tdep.c (sparclite_download): Likewise.
7660 * symtab.c (lookup_partial_symbol): Likewise.
7661 * target.c (push_target, pop_target, initialize_targets): Likewise.
7662 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
7664 * valprint.c (print_decimal, print_longest, print_longest)
7665 (strcat_longest): Likewise.
7666 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
7667 * xmodem.c (xmodem_send_packet): Likewise.
7668 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
7669 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
7670 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
7671 (STORE_RETURN_VALUE): Likewise.
7672 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
7673 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
7674 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
7677 2001-02-23 Andrew Cagney <ac131313@redhat.com>
7679 * CONTRIBUTE: Document how to cite a problem report.
7680 * TODO: Note need to replace CONTRIBUTE with generated file.
7682 * CONTRIBUTE: Mention that patches do not need to include the
7683 generated files gdbarch.h and gdbarch.c.
7685 2001-02-21 Andrew Cagney <ac131313@redhat.com>
7687 * value.h (get_saved_register): Move from here.
7690 2001-02-21 Kevin Buettner <kevinb@redhat.com>
7692 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
7693 (in_solib_dynsym_resolve_code): Add declaration.
7694 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
7695 in_solib_dynsym_resolve_code() rather than
7696 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
7697 which caused this macro to only be defined when
7698 SVR4_SHARED_LIBS is defined.
7699 * solib.c (in_solib_dynsym_resolve_code): New function.
7700 * solist.h (struct target_so_ops): Add new member
7701 in_dynsym_resolve_code.
7702 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
7703 in_svr4_dynsym_resolve_code. Also, made static.
7704 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
7705 member in aix5_so_ops.
7706 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
7707 in_svr4_dynsym_resolve_code. Also, added second version
7708 of this function which will be used when SVR4_SHARED_LIBS
7710 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
7711 member in svr4_so_ops.
7713 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
7714 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
7715 config/ia64/xm-aix.h: New files.
7716 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
7717 (ia64_aix_sigcontext_register_address): New declaration.
7718 (ia64_gdbarch_init): Provide for initialization of
7719 sigcontext_register_address member of struct tdep when
7720 on target is detected to be running AIX.
7721 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
7724 2001-02-20 Kevin Buettner <kevinb@redhat.com>
7726 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
7727 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
7728 for thread support instead of linux-thread.o and lin-thread.o.
7729 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
7730 ATTACH_LWP): Define to use the following lin-lwp.c functions...
7731 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
7732 lin_lwp_attach_lwp): Declare.
7734 2001-02-20 Andrew Cagney <ac131313@redhat.com>
7736 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
7739 2001-02-20 Kevin Buettner <kevinb@redhat.com>
7741 * solib-aix5.c (solib-svr4.h): Remove include.
7742 (solib_break_names): Delete names which aren't actually
7744 (bkpt_names): Remove.
7745 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
7746 to STREQ() with equivalent calls to strcmp().
7747 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
7748 aix5_solib_create_inferior_hook): Revise comments.
7749 (enable_break): Remove old ``bkpt_names'' code.
7751 2001-02-19 Andrew Cagney <ac131313@redhat.com>
7753 * Makefile.in (SFILES): Add frame.c .
7754 (COMMON_OBS): Add frame.o .
7755 (frame.o): New target.
7757 * frame.c (find_saved_register):
7758 (default_get_saved_register):
7759 (get_saved_register):
7760 (read_relative_register_raw_bytes_for_frame):
7761 (read_relative_register_raw_bytes): Moved to here.
7762 * regcache.c: From here.
7764 2001-02-20 Kevin Buettner <kevinb@redhat.com>
7766 * solib-aix5.c: New file.
7768 2001-02-20 Martin M. Hunt <hunt@redhat.com>
7770 * solib.c (info_sharedlibrary_command): Don't assume pointers
7771 are the same size of long, call longest_local_hex_string_custom().
7773 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
7774 extract_signed_integer() should be called instead of
7777 2001-02-20 Martin M. Hunt <hunt@redhat.com>
7779 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
7781 2001-02-19 Andrew Cagney <ac131313@redhat.com>
7783 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
7784 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
7785 then floating point registers are 8 bytes.
7787 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7789 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
7790 accomodate 64-bit addresses.
7792 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7794 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
7795 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
7796 lookup_symbol, when trying to find a symbol with a mangled name,
7797 to avoid infinite recursion.
7799 2001-02-18 Andrew Cagney <ac131313@redhat.com>
7801 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
7803 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
7805 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
7806 (save_prologue_cache): Ditto.
7808 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7810 From: innadadadavida@yahoo.com:
7811 * partial-stab.h (switch): Check that pst is not null
7812 before dereferencing it.
7814 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7816 From Andrew Cagney <cagney@b1.cygnus.com>:
7817 * symfile.c (add_symbol_file_command): Always initialize
7818 my_cleanup using a NULL cleanup.
7820 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
7822 * demangle.c (demangling_style_names): New variable.
7823 (_initialize_demangler): Fill demangling_style_names with the
7824 names of known demangling styles from libiberty_demanglers[]. Use
7825 add_set_enum_cmd instead of add_set_cmd, to get completion on
7826 demangling style names.
7828 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
7829 file-name completion.
7831 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
7833 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
7834 `solib-absolute-prefix'.
7836 * tracepoint.c (_initialize_tracepoint): Ditto for
7839 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
7841 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
7842 file-name completion.
7844 * infcmd.c (_initialize_infcmd): Make the following commands use
7845 the file-name completer: `tty', `args', `path', `paths', and
7848 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
7850 * go32-nat.c: Include i387-nat.h.
7851 (fetch_register): New function, uses some of the guts of
7852 go32_fetch_registers and calls i387_supply_register.
7853 (go32_fetch_registers): Most of the code moved into
7854 fetch_register. Use i387_supply_fsave.
7855 (store_register): Use i387_fill_fsave instead of custom code.
7856 (go32_store_registers): Use i387_fill_fsave.
7858 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
7860 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
7862 * completer.c (gdb_completer_file_name_break_characters): Remove
7863 slash from file-name break characters.
7864 [__MSDOS__]: Special definition for DOS/Windows file names.
7865 (line_completion_function): When completing on file names, bump
7866 `p' to the first file-name constituent character of `word', before
7867 invoking the completer.
7869 2001-02-17 Mark Kettenis <kettenis@gnu.org>
7871 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
7872 consistently for parameter names. Fix comments accordingly.
7873 (i387_supply_register): New function.
7874 (i387_supply_fsave): Implement using i387_supply_register.
7875 * i387-nat.h: Use regnum instead of regno consistently for
7876 parameter names. Fix comments accordingly.
7877 (i387_supply_register): New prototype.
7879 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7881 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
7882 instead of TARGET_PTR_BIT (to support Harvard architectures).
7884 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7886 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
7887 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
7888 argument to parameter list and to call in order to conform to
7889 to_xfer_memory field of struct target_ops.
7891 2001-02-12 Michael Chastain <chastain@redhat.com>
7893 * somsolib.c (som_solib_add_solib_objfile): Do not use
7894 section relocation feature of syms_from_objfile. Do my own
7895 section relocation, offsetting each section of the som by
7896 either text_addr - text_link_addr or data_start.
7898 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7900 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
7902 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7904 * MAINTAINERS (paper trail): Update.
7906 2001-02-16 Mark Kettenis <kettenis@gnu.org>
7908 * target.h (target_fetch_registers): Fix comment.
7910 2001-02-15 Andrew Cagney <ac131313@redhat.com>
7912 * f-exp.y: Include <ctype.h>.
7913 (parse_number): Ensure that ``i'' is always initialized.
7915 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
7917 * MAINTAINERS: Add myself to paper trail section.
7919 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7921 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
7922 * configure, config.in: Regenerate.
7923 * corelow.c: Include <sys/file.h> if present.
7925 2001-02-14 Andrew Cagney <ac131313@redhat.com>
7927 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
7928 declare when have SIGTTOU.
7930 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
7932 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
7934 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
7936 * MAINTAINERS: Update my email address.
7938 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
7940 * NEWS: Document that "info symbol" works with COFF debug info and
7943 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
7944 symbols whose SYMBOL_BFD_SECTION is NULL.
7946 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7948 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
7949 * xcoffsolib.c (xcoff_solib_address): Renamed from
7950 pc_load_segment_name. Return NULL if address is not in a shared
7951 library. Cleanup shared library name construction, using xasprintf.
7952 Format shared library member names consistent with format in exec.c.
7953 (solib_info): Format shared library member names consistent with
7955 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
7956 using xcoff_solib_address for PC_SOLIB definition.
7957 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
7960 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7962 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
7963 with xmalloc calls and cleanups.
7965 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7967 * rs6000-nat.c (child_xfer_memory): Add missing parameter
7968 'struct mem_attrib *' required by 2001-01-23 change.
7970 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
7972 Updates to "make TAGS":
7973 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
7974 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
7976 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
7978 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
7980 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
7982 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
7984 From Dean Luick <luick@cray.com>:
7985 * defs.h (continuation): Remove unused global variable.
7987 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
7989 * configure.tgt: Remove references to convex, pyramid, altos and
7991 * configure.host: Ditto.
7992 * MAINTAINERS: Ditto.
7995 * tahoe-tdep.c: Delete obsolete file.
7996 * pyr-xdep.c: Ditto.
7997 * pyr-tdep.c: Ditto.
7998 * convex-tdep.c: Ditto.
7999 * convex-xdep.c: Ditto.
8000 * config/tahoe/xm-tahoe.h: Ditto.
8001 * config/tahoe/tm-tahoe.h: Ditto.
8002 * config/tahoe/tahoe.mt: Ditto.
8003 * config/tahoe/tahoe.mh: Ditto.
8004 * config/pyr/xm-pyr.h: Ditto.
8005 * config/pyr/tm-pyr.h: Ditto.
8006 * config/pyr/pyramid.mt: Ditto.
8007 * config/pyr/pyramid.mh: Ditto.
8008 * config/m68k/xm-altos.h: Ditto.
8009 * config/m68k/tm-altos.h: Ditto.
8010 * config/m68k/altos.mt: Ditto.
8011 * config/m68k/altos.mh: Ditto.
8012 * config/convex/xm-convex.h: Ditto.
8013 * config/convex/tm-convex.h: Ditto.
8014 * config/convex/convex.mt: Ditto.
8015 * config/convex/convex.mh: Ditto.
8016 * config/convex/Convex.notes: Ditto.
8017 * config/arm/xm-arm.h: Ditto.
8018 * config/arm/nm-arm.h: Ditto.
8019 * config/arm/arm.mt: Ditto.
8020 * config/arm/arm.mh: Ditto.
8021 * arm-convert.s: Ditto.
8022 * arm-xdep.c: Ditto.
8023 * altos-xdep.c: Ditto.
8025 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
8027 * defs.h (internal_error, internal_verror): Add __FILE__ and
8029 * utils.c (internal_error, internal_verror): Update.
8031 * v850-tdep.c: Update calls to internal_error.
8037 * symm-nat.c: Ditto.
8038 * sparc-tdep.c: Ditto.
8041 * rs6000-tdep.c: Ditto.
8042 * rs6000-nat.c: Ditto.
8044 * remote-vx.c: Ditto.
8045 * remote-sim.c: Ditto.
8046 * remote-mips.c: Ditto.
8047 * regcache.c: Ditto.
8048 * objfiles.h: Ditto.
8049 * objfiles.c: Ditto.
8050 * mn10300-tdep.c: Ditto.
8051 * mips-tdep.c: Ditto.
8053 * m68k-tdep.c: Ditto.
8055 * language.c: Ditto.
8056 * infptrace.c: Ditto.
8057 * inferior.h: Ditto.
8059 * ia64-tdep.c: Ditto.
8060 * i386-tdep.c: Ditto.
8061 * i386-linux-nat.c: Ditto.
8062 * hppah-nat.c: Ditto.
8063 * go32-nat.c: Ditto.
8067 * event-loop.c: Ditto.
8068 * dwarf2read.c: Ditto.
8070 * d30v-tdep.c: Ditto.
8071 * d10v-tdep.c: Ditto.
8072 * cli/cli-setshow.c: Ditto.
8073 * cli/cli-script.c: Ditto.
8075 * breakpoint.c: Ditto.
8077 * arch-utils.c: Ditto.
8078 * a29k-tdep.c: Ditto.
8079 * gdb_assert.h: Ditto.
8080 * gdbarch.sh: Ditto.
8081 * gdbarch.h, gdbarch.c: Re-generate.
8083 2001-02-07 Andrew Cagney <ac131313@redhat.com>
8085 From Mark Kettenis <kettenis@gnu.org>:
8086 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
8088 2001-02-07 Andrew Cagney <ac131313@redhat.com>
8090 * remote-sim.c (dump_mem): Cleanup printf format argument.
8091 * MAINTAINERS: Update, mn10300-elf now builds.
8093 2001-02-07 Mark Kettenis <kettenis@gnu.org>
8095 * event-top.c: Remove duplicate #include <signal.h>.
8097 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8099 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
8101 (save_inferior_pid): Restore the PID from that tempoary
8102 buffer. Delete the buffer.
8103 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
8105 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8107 * MAINTAINERS: Add ``The Obvious Fix Rule''.
8109 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8111 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
8113 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
8115 * gdbarch.sh: Include "gdb_assert.h".
8116 (struct gdbarch): Change ``nr_data'' to unsigned.
8117 (alloc_gdbarch_data, free_gdbarch_data): New functions.
8118 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
8119 architecture vector.
8120 (struct gdbarch_data, struct gdbarch_data_registration): Move init
8121 method to gdbarch_data. Add free method, make index unsigned.
8122 (struct gdbarch_data_registry): Make nr unsigned.
8123 (register_gdbarch_data): Add free parameter. Store in
8125 (init_gdbarch_data): Use set_gdbarch_data.
8126 (set_gdbarch_data): New function.
8128 * gdbarch.h, gdbarch.c: Re-generate.
8130 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8132 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
8133 fprintf_filtered with correct arguments.
8135 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
8136 Submitted by Paul Hilfinger (hilfingr@gnat.com)
8137 and Andrei Petrov (and@genesyslab.com).
8138 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
8139 must be allocated dynamically, since these are no longer constants.
8141 * regcache.c: Ditto.
8143 * sol-thread.c: Ditto.
8145 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
8146 work-around for a missing Sun header file in solaris for sparc64.
8148 2001-02-04 Philip Blundell <philb@gnu.org>
8150 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
8151 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
8152 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
8153 GET_THREAD_SIGNALS): Define.
8154 * arm-linux-nat.c (fill_gregset): Correct type of argument.
8155 (supply_gregset): Likewise.
8156 (fill_fpregset): Likewise.
8157 (supply_fpregset): Likewise.
8159 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
8161 * valops.c (value_cast): If casting a scalar to a pointer, do not
8162 issue a message about truncation unless it exceeds the length of
8163 an address, not the length of a pointer. This is because what the
8164 user gives us is an address, not a pointer, and we will ultimately
8165 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
8166 to a pointer. This allows things like "print *(int *)0x01000234"
8167 to work without generating a misleading message on a target having
8168 two byte pointers and four byte addresses.
8170 2001-02-05 Christopher Faylor <cgf@cygnus.com>
8172 * win32-nat.c: Change PTR to void * throughout.
8174 2001-02-05 J.T. Conklin <jtc@redback.com>
8176 * signals.h: Removed.
8177 * event-top.c (#include <signal.h>): Changed from signals.h.
8178 * inflow.c: Likewise.
8179 * mac-xdep.c: Likewise.
8180 * ser-pipe.c: Likewise.
8181 * ser-tcp.c: Likewise.
8182 * standalone.c: Likewise.
8184 * utils.c: Likewise.
8185 * Makefile.in: Removed signals.h from dependencies.
8187 2001-02-05 Christopher Faylor <cgf@cygnus.com>
8189 Change suggested by Dean Luick <luick@cray.com>
8190 * inferior.h (step_over_calls_kind): Remove trailing comma from
8192 (step_over_calls): Declare as extern rather than global.
8194 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8196 * sh-tdep.c: Update copyright.
8197 (sh_extract_return_value): Rewrite.
8198 (sh3e_sh4_extract_return_value): New function.
8199 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
8200 version of the function for sh3e and sh4 CPUs.
8202 2001-02-05 Michael Chastain <chastain@redhat.com>
8204 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
8205 to conform with interface change.
8207 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
8209 * config/djgpp/fnchange.lst: Tweak to make consistent with the
8212 * config/djgpp/djconfig.sh: Use explicit absolute file name when
8215 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
8216 UART_FIFO_WORKS is defined. Otherwise use outportb.
8217 From Francisco Pastor <fpastor.etra-id@etra.es>
8219 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
8220 with target.h's `to_xfer_memory' member.
8222 2001-02-02 J.T. Conklin <jtc@redback.com>
8224 * ppc-bdm.c (#include <signal.h>): Removed.
8225 * remote-array.c: Likewise.
8226 * remote-bug.c: Likewise.
8227 * remote-e7000.c: Likewise.
8228 * remote-mips.c: Likewise.
8229 * remote-os9k.c: Likewise.
8230 * remote-st.c: Likewise.
8231 * remote-udi.c: Likewise.
8232 * remote-vx29k.c: Likewise.
8233 * remote-vx68.c: Likewise.
8234 * remote-vx960.c: Likewise.
8235 * remote-vxmips.c: Likewise.
8236 * remote-vxsparc.c: Likewise.
8238 2001-02-02 John Moore <jmoore@redhat.com>
8240 * remote-utils.h (sr_set_device): Changed free() to xfree() where
8241 appropriate. Also changed Copyright to include 2001.
8242 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
8243 * value.h (value_free): Likewise.
8244 * gdbarch.sh (gdbarch_free): Likewise.
8245 * gdbarch.c, gdbarch.h: Regenerated.
8247 2001-02-02 John Moore <jmoore@redhat.com>
8249 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
8250 xfree(). Also changed Copyright to include 2001.
8252 2001-02-02 J.T. Conklin <jtc@redback.com>
8254 * monitor.c (#include "gdb_wait.h"): Removed.
8256 * ppc-bdm.c: Likewise.
8257 * remote-adapt.c: Likewise.
8258 * remote-array.c: Likewise.
8259 * remote-bug.c: Likewise.
8260 * remote-e7000.c: Likewise.
8261 * remote-eb.c: Likewise.
8262 * remote-es.c: Likewise.
8263 * remote-mips.c: Likewise.
8264 * remote-mm.c: Likewise.
8265 * remote-nindy.c: Likewise.
8266 * remote-os9k.c: Likewise.
8267 * remote-rdi.c: Likewise.
8268 * remote-rdp.c: Likewise.
8269 * remote-sds.c: Likewise.
8270 * remote-sim.c: Likewise.
8271 * remote-st.c: Likewise.
8272 * remote-udi.c: Likewise.
8273 * remote-vx.c: Likewise.
8274 * remote-vx29k.c: Likewise.
8275 * remote-vx68.c: Likewise.
8276 * remote-vx960.c: Likewise.
8277 * remote-vxmips.c: Likewise.
8278 * remote-vxsparc.c: Likewise.
8279 * remote.c: Likewise.
8280 * ser-pipe.c: Likewise.
8281 * ser-unix.c: Likewise.
8282 * Makefile.in: Updated dependencies.
8284 2001-01-31 David Smith <dsmith@redhat.com>
8286 * event-loop.c: Change inclusion of string.h to gdb_string.h and
8287 updated the copyright notice.
8288 * ser-pipe.c: Ditto.
8289 * mi/mi-cmds.c: Ditto.
8290 * mi/mi-console.c: Ditto.
8291 * mi/mi-getopt.c: Ditto.
8292 * mi/mi-parse.c: Ditto.
8294 2001-01-31 David Smith <dsmith@redhat.com>
8296 * MAINTAINERS: Add David Smith to Write After Approval list.
8298 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
8300 * cli/cli-utils.c (putchar_filtered): Move function from here.
8301 * utils.c (putchar_filtered): To here.
8302 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
8303 * defs.h (putchar_filtered): To here.
8305 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
8307 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
8308 AC_FUNC_VFORK macro.
8309 * config.in, configure: Re-generate.
8311 * gdb_vfork.h: New file.
8312 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
8313 * fork-child.c (fork_inferior): Ditto.
8315 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
8317 * defs.h (strsave): Delete declaration.
8318 * utils.c (strsave): Delete definition.
8319 * TODO (strsave): Update
8321 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
8322 * sparcl-tdep.c (sparclite_open): Ditto.
8323 * mips-tdep.c (mips_set_processor_type_command): Ditto.
8324 (_initialize_mips_tdep): Ditto.
8325 * solib.c (solib_open): Ditto.
8326 * symfile.c (add_filename_language): Ditto.
8327 (set_ext_lang_command): Ditto.
8328 * source.c (init_source_path): Ditto.
8330 * sh3-rom.c (sh3_open): Ditto.
8332 * serial.c (serial_open): Ditto.
8333 * remote-mips.c (common_open): Ditto.
8334 * monitor.c (monitor_open): Ditto.
8335 * m32r-rom.c (m32r_upload_command): Ditto.
8336 * infcmd.c (path_command): Ditto.
8337 * f-exp.y (parse_number): Ditto.
8338 * breakpoint.c (create_longjmp_breakpoint): Ditto.
8339 (create_thread_event_breakpoint): Ditto.
8340 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
8341 (_initialize_arc_tdep): Ditto.
8343 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
8345 * cli/cli-script.c (define_command): Check for a bad hook value in
8348 2001-01-30 J.T. Conklin <jtc@redback.com>
8350 * configure/sh/embed.mt: New file.
8351 * configure/sh/linux.mt: New file.
8352 * configure/sh/sh.mt: Removed.
8353 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
8356 2001-01-29 Michael Chastain <chastain@redhat.com>
8358 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
8359 symbol comparisons in binary search.
8361 2001-01-27 Christopher Faylor <cgf@cygnus.com>
8363 * win32-nat.c (child_xfer_memory): Add missing argument required by
8366 2001-01-27 Mark Kettenis <kettenis@gnu.org>
8368 * ui-out.c (do_list_end): New function.
8369 (make_cleanup_ui_out_list_end): New function.
8370 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
8371 * stack.c (print_frame) [UI_OUT]: Call
8372 make_cleanup_ui_out_list_end to make sure we mark the end of the
8373 list if we do a non-local exit. At the end of the function,
8374 instead of calling ui_out_list_end directly, let do_cleanups
8377 2001-01-26 Fernando Nasser <fnasser@redhat.com>
8379 Fix double parsing of filenames passed as command line arguments
8380 to GDB (causes weird handling of escape characters).
8381 Also, remove dependencies on the CLI from libgdb.
8382 * call-cmds.h: Remove declaration of exec_file_command().
8383 * gdbcore.h: Remove declaration of exec_file_command().
8384 Add declarations for exec_open() and exec_file_clear().
8385 * symfile.h: Add declarations for symbol_file_add_main() and
8386 symbol_file_clear().
8387 * exec.c (exec_open): New function. Implements to_open for exec
8389 (exec_file_clear): New function. Makes GDB forget about a previously
8390 specified executable file.
8391 (exec_file_attach): Move parsing of arguments from here ...
8392 (exec_file_command): ... to here.
8393 (init_exec_ops): Use exec_open(), not exec_file_command() to
8394 implement to_open for exec targets.
8395 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
8396 with default values. Used when the file name has already been parsed.
8397 (symbol_file_clear): New function. Makes GDB forget about previously
8399 (symbol_file_command): Call the above function instead of inline code.
8400 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
8402 (captured_main): Call exec_file_attach() and symbol_file_add_main()
8403 instead of exec_file_command() and symbol_file_command().
8404 (captured_main): Add comment.
8405 * corefile.c: Include "symfile.h".
8406 (core_file_command): Call symbol_file_add_main() instead of
8407 symbol_file_command().
8408 (reopen_exec_file): Call exec_open() instead of exec_file_command().
8409 * infcmd.c: Include "symfile.h".
8410 (attach_command): Call symbol_file_add_main() instead of
8411 symbol_file_command().
8412 * infrun.c: Remove comment about the inclusion of "symfile.h",
8413 not any longer appropriate.
8414 (follow_exec): Call symbol_file_add_main() instead of
8415 symbol_file_command().
8416 * remote-es.c: Include "symfile.h".
8417 (es1800_load): Call symbol_file_add_main() instead of
8418 symbol_file_command().
8419 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
8420 not any longer appropriate.
8421 (vx-wait): Call symbol_file_add_main() instead of
8422 symbol_file_command().
8423 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
8424 instead of symbol_file_command().
8425 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
8426 symbol_file_add_main() instead of exec_file_command() and
8427 symbol_file_command().
8428 * Makefile.in: Update dependencies.
8430 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
8432 * remote-udi.c (udi_open): Change strdup to xstrdup.
8433 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
8434 Update copyright message.
8435 * varobj.c (delete_variable_1): Likewise.
8437 * gdb_string.h: Remove declaration of strdup. Update copyright
8439 * config/xm-mpw.h: Likewise.
8440 * config/i386/xm-i386mach.h: Likewise.
8441 * config/m68k/xm-apollo68b.h: Likewise.
8442 * config/m68k/xm-hp300bsd.h: Likewise.
8443 * config/rs6000/xm-rs6000.h: Likewise.
8444 * config/vax/xm-vaxult.h: Remove declaration of strdup.
8445 * config/vax/xm-vaxult2.h: Likewise.
8447 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
8449 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
8451 2001-01-25 J.T. Conklin <jtc@redback.com>
8453 * target.c (target_xfer_memory_partial): Return -1 on failure due
8454 to invalid access mode attribute.
8456 2001-01-25 Christopher Faylor <cgf@cygnus.com>
8458 * win32-nat.c (_initialize_core_win32): Prototype correctly.
8460 2001-01-25 Mark Kettenis <kettenis@gnu.org>
8462 * config/alpha/tm-fbsd.h: Update copyright.
8463 (USE_STRUCT_CONVENTION): Define in terms of
8464 alphabsd_use_struct_convention.
8465 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
8466 * alphafbsd-tdep.c: New file.
8468 2001-01-24 Fernando Nasser <fnasser@redhat.com>
8470 * top.c (print_gdb_version): Update Copyright year.
8472 2001-01-24 J.T. Conklin <jtc@redback.com>
8474 * dcache.c (dcache_write_line): Fix typo.
8476 * memattr.c (delete_mem_region): Replace free() with xfree().
8477 (mem_number): Add explicit type.
8479 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
8480 (rw_common): Likewise.
8482 2001-01-24 Fernando Nasser <fnasser@redhat.com>
8484 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
8485 for the inferior program arguments.
8486 (run_command, run_no_args_command, init_infcmd)): Use accessor
8487 functions to set the inferior program arguments.
8488 * inferior.h: Add definitions to the accessor functions above.
8490 2001-01-23 Jim Blandy <jimb@redhat.com>
8492 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
8493 Implement these correctly, using make_cv_type.
8495 2001-01-23 J.T. Conklin <jtc@redback.com>
8497 * exec.c (xfer_memory): Add attrib argument.
8498 * infptrace.c (child_xfer_memory): Likewise.
8499 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
8500 * monitor.c (monitor_xfer_memory): Likewise.
8501 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
8502 * remote-array.c (array_xfer_memory): Likewise.
8503 * remote-bug.c (bug_xfer_memory): Likewise.
8504 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
8505 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
8506 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
8507 * remote-mips.c (mips_xfer_memory): Likewise.
8508 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
8509 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
8510 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
8511 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
8512 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
8513 * remote-sds.c (sds_xfer_memory): Likewise.
8514 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
8515 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
8516 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
8517 * remote-vx.c (vx_xfer_memory): Likewise.
8518 * remote.c (remote_xfer_memory): Likewise.
8519 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
8520 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
8521 * thread-db.c (thread_db_xfer_memory): Likewise.
8523 * target.h (#include "memattr.h"): Added.
8524 (target_ops.to_xfer_memory): Add attrib argument.
8526 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
8527 * dcache.h (set_dcache_state): Removed declaration.
8528 * dcache.c (set_dcache_state): Removed definition
8530 * dcache.c: Update module comment, as dcache is now enabled and
8531 disabled with memory region attributes instead of by the global
8532 variable "remotecache". Add comment describing the interaction
8533 between dcache and memory region attributes.
8534 (dcache_xfer_memory): Add comment describing benefits of moving
8535 cache writeback to a higher level.
8536 (dcache_struct): Removed cache_has_stuff field. This was used to
8537 record whether the cache had been accessed in order to invalidate
8538 it when it was disabled. However, this is not needed because the
8539 cache is write through and the code that enables, disables, and
8540 deletes memory regions invalidate the cache. Add comment which
8541 suggests that we could be more selective and only invalidate those
8542 cache lines containing data from those memory regions.
8543 (dcache_invalidate): Updated.
8544 (dcache_xfer_memory): Updated.
8546 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
8547 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
8548 perform a uncached transfer if dcache_enabled_p was clear. This
8549 function is now only called if caching is enabled for the memory
8551 (dcache_info): Always print cache info.
8553 * target.c (do_xfer_memory): Add attrib argument.
8554 (target_xfer_memory, target_xfer_memory_partial): Break transfer
8555 into chunks defined by memory regions, pass region attributes to
8557 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
8559 * Makefile.in (SFILES): Add memattr.c.
8560 (COMMON_OBS): Add memattr.o.
8561 (dcache.o): Add target.h to dependencies.
8562 * memattr.c: New file.
8563 * memattr.h: Likewise.
8565 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
8566 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
8567 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
8568 * gdbserver/low-sim.c (#include "defs.h"): Removed.
8569 (mygeneric_load): Rename from generic_load.
8571 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
8572 (#include "defs.h"): Removed.
8573 (inferior_pid, perror_with_name): Remove declarations.
8574 * gdbserver/low-linux.c: Likewise.
8575 * gdbserver/low-nbsd.c: Likewise.
8576 * gdbserver/low-sparc.c: Likewise.
8577 * gdbserver/low-sun3.c: Likewise.
8579 * i386-stub.c: Re-indent.
8580 * m68k-stub.c: Re-indent.
8582 2001-01-22 Nicholas Duffek <nsd@redhat.com>
8584 * gdbarch.sh (PARM_BOUNDARY): Define.
8585 * gdbarch.c: Regenerate.
8586 * gdbarch.h: Regenerate.
8588 2001-01-22 J.T. Conklin <jtc@redback.com>
8590 * ns32k-tdep.c: #include "frame.h"
8591 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
8592 appears to have been inadvertantly removed sometime in May 1999.
8594 * Revert 2000-11-09 changes where shared library objects were
8595 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
8596 we'd like to be able to debug dynamically linked executables,
8597 this makes it impossible to build a cross debugger on a many
8600 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
8601 * config/i386/nbsdelf.mt: Likewise.
8602 * config/m68k/nbsd.mt: Likewise.
8603 * config/ns32k/nbsd.mt: Likewise.
8604 * config/powerpc/nbsd.mt: Likewise.
8605 * config/sparc/nbsd.mt: Likewise.
8606 * config/sparc/nbsdelf.mt: Likewise.
8607 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
8608 * config/i386/nbsdelf.mh: Likewise.
8609 * config/m68k/nbsd.mh: Likewise.
8610 * config/ns32k/nbsd.mh: Likewise.
8611 * config/powerpc/nbsd.mh: Likewise.
8612 * config/sparc/nbsd.mh: Likewise.
8614 2001-01-19 Jason Merrill <jason@redhat.com>
8616 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
8617 (process_one_symbol): Likewise.
8618 * dwarfread.c (handle_producer): Likewise.
8620 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
8622 * configure.in (build_warnings): Disable -Wuninitialized until GDB
8623 compiles with -Wuninitialized,-Werror.
8624 * configure: Regenerate.
8626 * MAINTAINERS: Add list of buildable targets.
8628 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
8630 * defs.h (STRCMP): Delete macro.
8632 * objfiles.c (objfile_relocate): Replace STRCMP with call to
8634 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8635 * symfile.c (compare_symbols): Ditto.
8636 * standalone.c (open): Ditto.
8637 * remote-es.c (verify_break): Ditto.
8638 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
8640 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
8642 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
8644 * varobj.c (FREEIF): Delete macro.
8645 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
8648 2001-01-18 Nick Clifton <nickc@redhat.com>
8650 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
8651 (arc_print_insn): No bfd available, so pass NULL to
8652 arc_get_disassembler.
8654 2001-01-09 James Ingham <jingham@inghji.apple.com>
8656 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
8657 a mangled symbol rather than recursing into lookup_symbol, since
8658 this will just re-unmangle the name & call lookup_symbol_aux -
8659 leading to an infinite recursion.
8661 2001-01-18 Mark Kettenis <kettenis@gnu.org>
8663 * infcmd.c (print_return_value): Restore another space lost by
8664 switch to UIOUT. ``$NN='' should be ``$NN =''.
8666 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
8668 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
8669 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
8670 definition in parenthesis.
8672 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
8674 From 2000-10-27 Mark Salter <msalter@redhat.com>:
8675 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
8677 (remote_insert_hw_breakpoint): Ditto.
8679 2001-01-17 J.T. Conklin <jtc@redback.com>
8681 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
8682 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
8683 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
8684 * m68knbsd-tdep.c: New file.
8686 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
8688 * m68knbsd-nat.c: #include gdbcore.h.
8690 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
8692 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
8694 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
8696 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
8697 goes away -- just return false (ie. not stopped by watchpoint).
8698 * source.c (openp): Fix typo in comment.
8700 2001-01-12 Nicholas Duffek <nsd@redhat.com>
8702 * blockframe.c (generic_get_saved_register): Spelling fix.
8703 * frame.h (FRAME_FP): Spelling fix.
8705 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
8707 * infcmd.c (print_return_value): Restore space lost by switch to
8708 UIOUT. ``$NN='' should be ``$NN =''.
8710 2001-01-08 Nicholas Duffek <nsd@redhat.com>
8712 * regcache.c (set_register_cached, register_buffer,
8713 real_register, pseudo_register fetch_register, store_register):
8715 (register_changed, read_relative_register_raw_bytes_for_frame,
8716 registers_changed, registers_fetched, read_register_bytes,
8717 read_register_gen, write_register_gen, read_register,
8718 read_signed_register, write_register, supply_register): Replace
8719 register_valid[] with register_cached() and
8720 set_register_cached().
8721 (read_register_bytes, read_register_gen, write_register_gen,
8722 read_register, read_signed_register, write_register,
8723 supply_register): Replace registers[] with register_buffer().
8724 (read_register_bytes, read_register_gen, read_register,
8725 read_signed_register): Call fetch_register().
8726 (write_register_gen, write_register): Call real_register() and
8728 (write_register_bytes): Call store_register().
8729 * value.h (set_register_cached, register_buffer): Prototype.
8730 * remote.c (remote_fetch_registers): Allocate regs[] with a
8731 run-time size. Replace register_valid[] with
8732 set_register_cached().
8733 (store_register_using_P, remote_store_registers): Replace
8734 registers[] with register_buffer().
8736 2001-01-08 Nicholas Duffek <nsd@redhat.com>
8738 * regcache.c: Change "write-back" comment to "write-through".
8739 Change "regno" to "regnum".
8740 (read_register, read_signed_register): Remove "raw" from return
8742 (supply_register): Spelling fix.
8743 * value.h: Change "regno" to "regnum".
8745 2001-01-08 Fernando Nasser <fnasser@redhat.com>
8747 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
8750 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8752 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
8754 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8756 * valops.c (VALUE_SUBSTRING_START): Delete.
8758 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8760 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
8761 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
8762 (cli_utils_h): New variable.
8763 (cli/cli-utils.o): New rule.
8764 * cli/cli-utils.c: New file.
8765 * cli/cli-utils.h: New file.
8767 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8769 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
8770 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
8772 2001-01-03 J.T. Conklin <jtc@redback.com>
8774 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
8777 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
8779 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
8780 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
8782 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
8783 Update copyright notice.
8785 For older changes see ChangeLog-2000
8791 version-control: never