1 2001-11-05 Jim Blandy <jimb@redhat.com>
3 * config/s390/s390.mh (NATDEPFILES): Don't split this across
4 several lines with backslashes; the `sed' command in
5 configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
6 assignment doesn't handle lines extended with backslashes.
8 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
9 using `+=' as well as `='.
10 * configure: Regenerated.
12 2001-11-05 Andrew Cagney <ac131313@redhat.com>
14 * gdbarch.sh (init_extra_frame_info): Change to a function with
16 * gdbarch.h, gdbarch.c: Re-generate.
17 * blockframe.c (create_new_frame): Replace #ifdef
18 INIT_EXTRA_FRAME_INFO with run-time test of
19 INIT_EXTRA_FRAME_INFO_P.
21 2001-11-05 Andrew Cagney <ac131313@redhat.com>
23 * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
24 error messages. Print in a single batch.
25 * gdbarch.c: Re-generate.
27 2001-11-04 Mark Kettenis <kettenis@gnu.org>
29 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
30 fill_gregset): Add support for "orig_eax" register.
32 Add support for "orig_eax" pseudo register on Linux/x86.
33 * i386-linux-tdep.c: Include "inferior.h".
34 (i386_linux_register_name, i386_linux_register_byte,
35 i386_linux_register_raw_size): New functions.
36 (i386_linux_write_pc): New function.
37 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
38 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
39 REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
41 (i386_linux_register_name, i386_linux_register_byte,
42 i386_linux_register_raw_size): New prototypes.
43 (TARGET_WRITE_PC): New define.
44 (i386_linux_write_pc): New prototype.
46 * i386-tdep.c (i386_register_offset): Renamed from
47 i386_register_byte. Made static.
48 (i386_register_size): Renamed from i386_register_raw_size. Made
50 (i386_register_virtual_size): Removed.
51 (i386_register_byte, i386_register_raw_size,
52 i386_register_virtual_size): New functions.
53 (_initialize_i386_tdep): Initialize i386_register_offset instead
54 of i386_register_byte. Remove code to initialize
55 i386_register_virtual_size.
56 * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
57 i386_register_byte function.
58 (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
60 (REGISTER_VIRTUAL_SIZE): Redefine to use
61 i386_register_virtual_size function.
62 (i386_register_byte, i386_register_raw_size,
63 i386_register_virtual_size): New functions.
65 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
66 (i387-nat.o): Add dependencies.
68 2001-11-02 Andrew Cagney <ac131313@redhat.com>
70 * README: Mention problem with alpha-dec-osf5.1.
72 2001-11-02 Andrew Cagney <ac131313@redhat.com>
74 * utils.c (internal_verror): Restore calls to abort().
77 2001-11-02 Michael Chastain <mec@shout.net>
79 * MAINTAINERS: Update my entry.
81 2001-11-01 Michael Snyder <msnyder@redhat.com>
83 * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
84 operator names, to avoid regexp expansion.
85 (search_symbols): Alloca buffer is too small, may get clobbered.
87 2001-11-01 Fred Fish <fnf@redhat.com>
89 * coff-solib.c (coff_solib_add): Add new readsyms arg.
90 * irix5-nat.c (solib_add): Ditto.
91 * osfsolib.c (solib_add): Ditto.
92 * pa64solib.c (pa64_solib_add): Ditto.
93 * pa64solib.c (add_to_solist): Ditto.
94 * pa64solib.c (read_dld_descriptor): Ditto.
95 * solib.c (solib_add): Ditto.
96 * somsolib.c (som_solib_add): Ditto.
97 * win32-nat.c (child_solib_add): Ditto.
98 * xcoffsolib.c (solib_add): Ditto.
100 * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
101 * pa64solib.c (add_to_solist): Ditto.
102 * pa64solib.c (read_dld_descriptor): Ditto.
103 * pa64solib.h (pa64_solib_add): Ditto.
104 * solib.h (solib_add): Ditto.
105 * somsolib.h (som_solib_add): Ditto.
106 * config/i386/tm-cygwin.h (child_solib_add): Ditto.
108 * coff-solib.c (coff_solib_add): If readsyms is zero don't read
109 symbols but do any other needed work for shared libs.
110 * irix5-nat.c: Ditto.
111 * osfsolib.c (solib_add): Ditto.
112 * solib.c (solib_add): Ditto.
113 * win32-nat.c (child_solib_add): Ditto.
114 * xcoffsolib.c (solib_add): Ditto.
116 * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
117 solib_add to force reading of shared library symbols.
118 * osfsolib.c (sharedlibrary_command;): Ditto.
119 * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
120 * solib.c (sharedlibrary_command): Ditto.
121 * somsolib.c (som_solib_sharedlibrary_command): Ditto.
122 * xcoffsolib.c (sharedlibrary_command): Ditto.
124 * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
125 unconditionally with auto_solib_add.
126 * irix5-nat.c (solib_create_inferior_hook): Ditto.
127 * osfsolib.c (solib_create_inferior_hook): Ditto.
128 * solib.c (solib_create_inferior_hook): Ditto.
129 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
130 * solib-svr4.c (enable_break): Ditto.
131 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
133 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
135 * sol-thread.c (sol_thread_attach): Ditto.
136 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
138 * infcmd.c (attach_command): Remove auto_solib_add decl.
139 Call SOLIB_ADD directly with auto_solib_add.
140 * infrun.c (handle_inferior_event): Ditto.
142 * coff-solib.h (SOLIB_ADD): Add readsyms arg.
143 * pa64solib.h (SOLIB_ADD): Ditto.
144 * solib.h (SOLIB_ADD): Ditto.
145 * somsolib.h (SOLIB_ADD): Ditto.
146 * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
148 * fork-child.c (clone_and_follow_inferior): Remove unused
151 * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
152 (read_dld_descriptor): Ditto.
153 (pa64_solib_add): Call read_dld_descriptor with readsyms.
154 (pa64_solib_in_dynamic_linker): Ditto.
156 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
157 * sol-thread.c (symfile.h): Ditto.
159 2001-10-31 Andrew Cagney <ac131313@redhat.com>
161 * s390-nat.c (s390_remove_watchpoint): Use xfree.
162 (s390_insert_watchpoint): Use xmalloc.
164 2001-10-31 Andrew Cagney <ac131313@redhat.com>
166 * varobj.c: Replace value_ptr with ``struct value *''.
168 2001-10-31 Andrew Cagney <ac131313@redhat.com>
170 * varobj.c: Re-indent.
172 2001-10-31 Andrew Cagney <ac131313@redhat.com>
174 * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
175 ``value_ptr'' with ``struct value *''.
176 * s390-tdep.c (s390_push_arguments): Ditto.
178 2001-10-30 Andrew Cagney <ac131313@redhat.com>
180 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
182 (struct frame_info, struct value): Add opaque declarations.
184 2001-10-31 Corinna Vinschen <vinschen@redhat.com>
186 * arch-utils.c (generic_in_solib_call_trampoline): New function.
187 * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
188 * gdbarch.c: Regenerated from gdbarch.sh.
190 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
191 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
193 2001-10-31 Andrew Cagney <ac131313@redhat.com>
196 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
197 find_solib_trampoline_target.
199 2001-10-31 Andrew Cagney <ac131313@redhat.com>
201 * remote-vx.c (net_wait): Fix typo from PIDGET change.
203 2001-10-31 Mark Kettenis <kettenis@gnu.org>
205 * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
206 (REGISTER_NAME): New define.
207 (i386_register_name): New prototype.
208 * i386-tdep.c (i386_register_names): New variable.
209 (i386_register_name): New function.
210 * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
211 config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
214 2001-10-31 Christopher Faylor <cgf@redhat.com>
216 * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
217 the loaded DLL matches the on-disk case since the debugging API does
218 not seem to ensure this. Calculate max name length here.
219 (handle_load_dll): Move max name length calculation to
222 2001-10-31 Daniel Jacobowitz <drow@mvista.com>
224 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
226 2001-10-30 Keith Seitz <keiths@redhat.com>
228 * wrapper.h (gdb_value_struct_elt): New function.
229 * wrapper.c (gdb_value_struct_elt): Ditto.
230 (do_captured_value_struct_elt): Ditto.
232 2001-10-30 Andrew Cagney <ac131313@redhat.com>
234 * README, NEWS: Update for 5.1.
236 2001-10-30 Andrew Cagney <ac131313@redhat.com>
238 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
240 * configure: Re-generate.
242 2001-10-30 Fred Fish <fnf@redhat.com>
244 * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
245 * pa64solib.c (add_to_solist): Ditto.
246 * win32-nat.c (_initialize_inftarg): Remove unnecessary
247 initialization of auto_solib_add, it defaults to 1.
249 2001-10-27 Fred Fish <fnf@redhat.com>
251 * symfile.c (auto_solib_add): Update comment to note that
252 this variable is now just used as a boolean to control shlib
253 autoloading, and clarify when it is used.
254 * symfile.h (auto_solib_add): Ditto.
256 * symfile.c (auto_solib_limit): New variable that holds the
257 autoloading threshold instead of overloading auto_solib_add.
258 * symfile.h (auto_solib_limit): Ditto.
260 * irix5-nat.c (_initialize_solib): Change auto-solib-add
261 variable from var_zinteger to var_boolean and update help.
262 * osfsolib.c (_initialize_solib): Ditto.
263 * pa64solib.c (_initialize_pa64_solib): Ditto.
264 * solib.c (_initialize_solib): Ditto.
265 * somsolib.c (_initialize_som_solib): Ditto.
266 * xcoffsolib.c (_initialize_solib): Ditto.
268 * pa64solib.c (pa64_solib_total_st_size): Update comment to
269 note that the new auto_solib_limit variable is used instead
270 of overloading auto_solib_add variable.
271 (_initialize_pa64_solib): Ditto.
272 * somsolib.c (som_solib_total_st_size): Ditto.
273 (_initialize_som_solib): Ditto.
275 * pa64solib.c (_initialize_pa64_solib): Add new set/show
276 commands for auto-solib-limit variable.
277 * somsolib.c (_initialize_som_solib): Ditto
279 * pa64solib.c (add_to_solist): Check that auto_solib_add is
280 set and use auto_solib_limit as the threshold size instead
282 * somsolib.c (som_solib_add): Ditto, and also change warning
283 text about size threshold exceeded.
285 2001-10-21 Mark Kettenis <kettenis@gnu.org>
287 * config/i386/tm-i386v.h: Don't include "regcache.h".
288 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
289 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
290 Remove macros. The versions from "tm-i386.h" should work fine
291 (and in most cases even better).
293 2001-10-30 Mark Kettenis <kettenis@gnu.org>
295 * i386-tdep.c (i386_extract_return_value): Use
296 convert_typed_floating to extract floating-point value from
298 (i386_store_return_value): Use convert_typed_floating to store
299 floating-point return balue in register buffer
300 (i386_register_virtual_type): Change type of floating-point
301 registers to builtin_type_i387_ext.
302 (i386_register_convert_to_virtual): Use convert_typed_floating to
304 (i386_register_convert_to_raw): Likewise.
306 2001-10-29 Mark Kettenis <kettenis@gnu.org>
308 * doublest.h (convert_typed_floating): New prototype.
309 * doublest.c (convert_typed_floating): New function.
311 2001-10-28 Mark Kettenis <kettenis@gnu.org>
313 * doublest.c: Improve comments a bit.
314 (floatformat_from_length): New function.
315 (NAN): Define to 0.0 if not already defined.
316 (extract_floating): Rewrite to use floatformat_from_length. Warn
317 instead of error if LEN doesn't match a known floating-point type,
318 and return NaN (or 0.0 if NaN isn't available) in that case.
319 (store_floating): Likewise, but zero out the target byte-stream if
320 LEN doesn't match a known floating-point type.
321 (extract_typed_floating): Reformat a bit.
322 (store_typed_floating): Reformat a bit. Add comment about zeroing
323 out padding in the target buffer.
324 * doublest.h (extract_floating, store_floating): Fix comment about
325 deprecation of these functions. Add parameter names to prototypes.
327 2001-10-28 Mark Kettenis <kettenis@gnu.org>
329 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
330 convert RAW to a DOUBLEST instead of extract_floating.
332 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
333 builtin_type_i387_ext to floatformat_i387_ext.
335 2001-10-24 Daniel Jacobowitz <drow@mvista.com>
337 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
338 (fill_fpregset): Likewise.
340 2001-10-26 Orjan Friberg <orjanf@axis.com>
342 * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
343 struct, not just the NUM_SPECREGS first entries.
344 (bdap_prefix): Read PC before autoincrement.
346 2001-10-24 Corinna Vinschen <vinschen@redhat.com>
348 * win32-nat.c (DebugSetProcessKillOnExit): New static function
349 pointer to Windows' DebugSetProcessKillOnExit() function.
350 (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
351 (has_detach_ability): New function.
352 (child_attach): If system has detach ability, enable it.
353 (child_detach): If system has detach ability, actually
355 Change tty output to Linux format.
357 2001-10-23 Jim Blandy <jimb@redhat.com>
359 Isolate STABS readers' use of the `textlow' and `texthigh' fields
360 of `struct partial_symtab' to only a few locations. This change
361 is not supposed to affect the way the values are computed, only
364 * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
365 to the reader-specific structure.
366 * mdebugread.c (struct symloc): Same.
367 * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
368 * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
369 * dbxread.c (dbx_symfile_read): After we've built all our partial
370 symbol tables, set each partial symtab's `textlow' and `texthigh'
371 fields from our reader-specific structure.
372 * mdebugread.c (mdebug_build_psymtabs): Same.
373 * dbxread.c (start_psymtab): Initialize the reader-specific
374 structure's `textlow' and `texthigh' from the new psymtab's.
375 * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
376 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
377 the reader-specific `textlow' and `texthigh', not the generic
379 * mdebugread.c (parse_lines, parse_partial_symbols,
380 psymtab_to_symtab_1): Same.
381 * partial-stab.h: Same.
383 Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
385 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
388 Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
390 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
391 (som_solib_desire_dynamic_linker_symbols): Compare integers with
393 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
395 2001-10-21 Andrew Cagney <ac131313@redhat.com>
397 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
398 interface is always enabled.
400 2001-10-21 Andrew Cagney <ac131313@redhat.com>
402 * Makefile.in: Replace top.h with $(top_h). Replace expression.h
403 with $(expression_h). Replace command.h with $(command_h).
404 (language_h): Define. Replace language.h with $(language_h).
405 Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
407 (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
408 (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
409 (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
410 (bcache_h, gdb_events_h, monitor_h): Ditto.
411 (ser_unix_h, source_h): Ditto.
412 (varobj_h): Update list.
414 * call-cmds.h: Add CALL_CMDS_H macro wrapper.
415 * solist.h: Add SOLIST_H macro wrapper.
416 * monitor.h: Add MONITOR_H macro wrapper.
417 * typeprint.h: Add TYPEPRINT_H macro wrapper.
418 * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
419 * valprint.h: Add VALPRINT_H macro wrapper.
420 * top.h: Add TOP_H macro wrapper.
422 2001-10-21 Andrew Cagney <ac131313@redhat.com>
424 * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
425 * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
426 * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
427 * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
428 * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
429 (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
430 (x86-64-tdep.o): Update dependencies.
431 * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
432 * gdbarch.h, gdbarch.c: Re-generate.
434 2001-10-21 Mark Kettenis <kettenis@gnu.org>
436 * infptrace.c (child_xfer_memory): Fix a few coding standards
439 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
441 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
443 2001-10-20 Andrew Cagney <ac131313@redhat.com>
445 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
446 (struct value): Add opaque declaration. Replace value_ptr with
448 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
451 * wrapper.h (struct value): Add opaque declaration. Replace
452 value_ptr with ``struct value *''.
453 * wrapper.c: Replace value_ptr with ``struct value *''.
454 * breakpoint.h, breakpoint.c: Ditto.
455 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
457 2001-10-20 Andrew Cagney <ac131313@redhat.com>
459 * alpha-nat.c: Include <alpha/coreregs.h> instead of
461 (fetch_osf_core_registers): Define core_reg_mapping in a way that
462 works on OSF5 as well as previous OSF versions.
464 2001-10-20 Christopher Faylor <cgf@redhat.com>
466 * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
467 may not be able to read them in certain situations.
469 2001-10-18 Andrew Cagney <ac131313@redhat.com>
471 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
472 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
474 2001-10-18 Andrew Cagney <ac131313@redhat.com>
476 * README: Mention problems with HP/UX.
478 2001-10-16 Andrew Cagney <ac131313@redhat.com>
480 Based on code by John Moore <jmore@redhat.com>:
482 * utils.c (core_addr_to_string): New function for conversion of
484 (string_to_core_addr): New function to convert from string to
486 * defs.h: Added extern statements for the above.
488 2001-10-17 Jason Molenda (jason-cl@molenda.com)
490 * symtab.c (lookup_block_symbol): Break out of linear search
491 if we're past the range of possible matches.
493 2001-10-16 Christopher Faylor <cgf@redhat.com>
495 * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
496 load of already loaded DLL.
497 (register_loaded_dll): Convert loaded DLL name to "posix" format or it
498 will confuse subsequent opening of the filename due to dos paths.
499 (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
501 2001-10-15 Elena Zannoni <ezannoni@redhat.com>
503 * symtab.c (lookup_block_symbol): Update comment.
505 2001-10-15 Andrew Cagney <ac131313@redhat.com>
507 * value.h (value_as_address): Rename value_as_pointer.
508 * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
509 jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
512 202001-10-15 Jim Ingham <jingham@inghji.apple.com>
514 * valarith.c (value_sub): Don't pass a raw type to
515 value_from_pointer, it has to go through check_typedef first.
517 2001-10-15 Andrew Cagney <ac131313@redhat.com>
519 * gdbarch.sh (fallbackdefault): Set to one when predefault is
521 * gdbarch.h: Regenerate.
523 2001-10-15 Andrew Cagney <ac131313@redhat.com>
525 * mips-tdep.c (mips_integer_to_address): New function.
526 (mips_gdbarch_init): Initialize pointer_to_address,
527 address_to_pointer and integer_to_address.
529 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
530 (ADDRESS_TO_POINTER): Delete.
532 * d10v-tdep.c (d10v_integer_to_address): New function.
533 (d10v_gdbarch_init): Initialize integer_to_address.
535 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
538 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
539 * gdbarch.h, gdbarch.c: Regenerate.
541 2001-10-14 Mark Kettenis <kettenis@gnu.org>
543 * config/s390/nm-linux.h: Don't include <signal.h>.
544 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
545 GET_THREAD_SIGNAL): Remove.
547 * config/nm-linux.h (struct objfile): Remove forward declaration.
548 (linuxthreads_new_objfile): Remove prototype.
549 (linuxthreads_pid_to_str): Remove prototype.
550 (PREPARE_TO_PROCEED): Redefine in terms of
551 lin_lwp_prepare_to_proceed.
552 (struct target_waitstatus): Forward declaration.
553 (child_wait): New prototype.
554 (CHILD_WAIT): Define.
555 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
556 GET_THREAD_SIGNAL): Moved here from arch-specific files.
557 * config/alpha/nm-linux.h, config/arm/nm-linux.h,
558 config/ia64/nm-linux.h, config/mips/nm-linux.h,
559 config/powerpc/nm-linux.h: Don't include <signal.h>.
560 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
561 GET_THREAD_SIGNAL): Remove.
562 * config/i386/nm-linux.h: Likewise.
563 (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
564 * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
565 Remove linux-thread.o. Add proc-service.o, thread-db.o and
567 (LOADLIBES): New variable.
569 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
571 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
573 Fix attaching to cloned processes. This fixes PR gdb/61.
574 * lin-lwp.c (struct lwp_info): Add new member `cloned'.
576 (lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
577 waitpid explicitly. Mark the LWP as cloned if waitpid fails and
578 retry with __WCLONE flag.
579 (lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
580 (detach_callback): Replace use of is_cloned with explicit check on
581 LWP id and process id.
582 (stop_wait_callback): Replace use of is_cloned with check if LWP
584 [CHILD_WAIT] (child_wait): New function.
585 (lin_lwp_wait): Replace use of is_cloned with check if LWP is
586 marked as cloned. Mark newly detected LWPs as cloned if detected
587 by waitpid with __WCLONE flag.
588 (kill_wait_callback): Replace use of is_cloned with check if LWP
590 * config/i386/nm-linux.h (struct target_waitstatus): Add forward
592 (child_wait): Add prototype.
593 (CHILD_WAIT): Define.
595 2001-10-13 Andrew Cagney <ac131313@redhat.com>
597 S/390 31 & 64 bit target and GNU/Linux native support.
598 Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
599 * s390-nat.c, s390-tdep.c: New file.
600 * config/s390/nm-linux.h, config/s390/s390.mh: New file.
601 * config/s390/s390.mt, config/s390/s390x.mt: New file.
602 * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
603 * config/s390/xm-linux.h: New file.
605 * MAINTAINERS: Update.
607 2001-10-13 Andrew Cagney <ac131313@redhat.com>
609 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
610 * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
611 CALL_DUMMY_BREAKPOINT_OFFSET_P.
612 * gdbarch.c: Regenerate.
614 2001-10-13 Mark Kettenis <kettenis@gnu.org>
616 * thread-db.c: Fix a few formatting mistakes.
618 2001-10-12 Christopher Faylor <cgf@redhat.com>
620 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
621 list pointer to beginning rather than one beyond beginning.
623 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
625 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
627 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
628 (make_symbol_completion_list): Likewise.
629 (make_symbol_overload_list): Likewise.
630 * buildsym.c (finish_block): Likewise.
631 * breakpoint.c (get_catch_sals): Likewise.
632 * mdebugread.c (mylookup_symbol): Likewise.
633 * objfiles.c (objfile_relocate): Likewise.
634 * printcmd.c (print_frame_args): Likewise.
635 * stack.c (print_block_frame_locals): Likewise.
636 (print_block_frame_labels): Likewise.
637 (print_frame_arg_vars): Likewise.
638 * symmisc.c (dump_symtab): Likewise.
639 * tracepoint.c (add_local_symbols): Likewise.
640 (scope_info): Likewise.
642 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
644 * minsyms.c (msymbol_hash): Use better hash function.
645 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
647 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
650 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
652 * printcmd.c (print_frame_args): Move symbol iteration explicitly
653 inside the func != NULL block.
655 2001-10-12 Fernando Nasser <fnasser@redhat.com>
657 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
660 2001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
662 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
663 This fixes errors in "long long" handling for 'finish' and 'return'
666 2001-10-12 Christopher Faylor <cgf@redhat.com>
668 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
669 library if it has already been loaded.
670 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
672 (safe_symbol_file_add): Ditto.
673 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
674 it to safe_symbol_file_add.
675 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
676 (child_solib_add): Ditto.
678 * win32-nat.c (handle_exception): Don't print "first chance"
680 (get_child_debug_event): Continue from exceptions if !handle_exception.
682 2001-10-11 Tom Tromey <tromey@redhat.com>
684 * symtab.c (lookup_symtab): Removed.
685 (lookup_symtab_1): Renamed to lookup_symtab.
687 2001-10-10 Christopher Faylor <cgf@redhat.com>
689 * win32-nat.c (get_child_debug_event): Close file handles created after
690 process creation and DLL load.
691 (child_create_inferior): Close unneeded process/thread handle after
694 2001-10-10 Jim Blandy <jimb@redhat.com>
696 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
698 2001-10-10 Keith Seitz <keiths@redhat.com>
700 * varobj.c (cplus_value_of_child): Deal with a failure
701 to dereference a pointer object.
703 2001-10-08 J. Brobecker <brobecker@gnat.com>
705 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
706 to use ptid_t, instead of overloading the thread and the pid
707 into the same 32-bit value. Make associated necessary adaptations.
708 Also remove unused variable cached_active_thread.
710 2001-10-08 Nicholas Duffek <nsd@redhat.com>
712 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
715 2001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
717 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
719 2001-10-04 Tom Tromey <tromey@redhat.com>
721 * main.c (enable_external_editor): Don't declare.
722 (captured_main): Don't set enable_external_editor.
724 2001-10-02 Kevin Buettner <kevinb@redhat.com>
726 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
728 (solib-sunos.o): Add dependencies.
729 (solib-svr4.o): Revise dependencies.
730 * solib-svr4.c: Remove SunOS shared library support.
731 * solib-sunos.c: New file, created from solib-svr4.c, which still
732 contains SunOS shared library support, but no SVR4 support.
734 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
735 solib-legacy.o from this list. Add solib-sunos.o.
736 * config/i386/sun386.mt (TDEPFILES): Likewise.
737 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
738 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
739 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
740 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
741 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
742 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
744 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
746 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
748 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
750 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
751 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
752 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
753 SET_NAMESTRING): Delete definitions.
754 Don't include language.h any more.
755 Don't include partial-stab.h any more.
756 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
757 partial-stab.h, include the code directly, instead.
759 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
761 2001-10-01 Andrew Cagney <ac131313@redhat.com>
763 * infcmd.c (do_registers_info): Delete code dumping large
764 registers. Handled by val_print.
766 2001-09-30 Andrew Cagney <ac131313@redhat.com>
768 * gdbarch.sh (gdbarch_alloc): Name the new architecture
769 ``current_gdbarch'' so that it, and not the identically named
770 global is refered to by macros.
771 * gdbarch.c: Regenerate.
773 2001-09-29 Andrew Cagney <ac131313@redhat.com>
775 * cli/cli-decode.c (add_set_boolean_cmd): Define.
776 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
777 * command.h (add_set_boolean_cmd): Ditto.
778 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
781 2001-09-29 Andrew Cagney <ac131313@redhat.com>
783 * gdbarch.sh (gdbarch_dump): Sort output.
784 * gdbarch.c: Regenerate.
786 2001-09-29 Andrew Cagney <ac131313@redhat.com>
788 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
789 architecture to infer the wordsize. Previous architecture may not
792 2001-09-27 J. Brobecker <brobecker@gnat.com>
794 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
795 than a TT_PROC_STOP request to kill the inferior and its child
796 processes. Otherwise, the inferior is not killed on HPUX 11.0.
797 Removed the code that detaches the child processes since we just
800 2001-09-26 Andrew Cagney <ac131313@redhat.com>
802 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
804 (serial_set_cmd, serial_show_cmd): New functions.
805 (_initialize_serial): Add "set/show serial" command.
807 2001-09-26 Andrew Cagney <ac131313@redhat.com>
809 * CONTRIBUTE: Update.
811 2001-09-26 Kevin Buettner <kevinb@redhat.com>
813 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
814 argument ``gdbarch''.
815 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
816 (default_svr4_fetch_link_map_offsets): Rename to
817 legacy_fetch_link_map_offsets().
818 (svr4_fetch_link_map_offsets): New function.
819 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
820 (fetch_link_map_offsets_gdbarch_data): New static global.
821 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
822 Revise to invoke set_gdbarch_data().
823 (init_fetch_link_map_offsets): Change return type and add an
824 argument so that it may be used as a gdbarch_data initializer.
825 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
826 Use gdbarch data mechanism instead.
828 2001-09-25 Jiri Smid <smid@suse.cz>
830 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
831 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
832 by LINUX_SIGINFO_SIZE.
834 2001-09-24 Andrew Cagney <ac131313@redhat.com>
836 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
838 (maintenance_set_profile_cmd): New function.
839 (maintenance_show_cmd, maintenance_set_cmd): New functions.
840 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
841 show" and, commented out, "maintenance set/show profile" commands.
843 2001-09-24 Andrew Cagney <ac131313@redhat.com>
845 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
846 convert the pointer into a CORE_ADDRs.
848 2001-09-24 Andrew Cagney <ac131313@redhat.com>
850 * doublest.h (store_floating, extract_floating): Add comment
851 indicating these functions are deprecated.
852 (extract_typed_floating, store_typed_floating): Declare.
853 * doublest.c: Include "gdbtypes.h".
854 (extract_typed_floating, store_typed_floating): Define.
856 * stabsread.c (define_symbol): Use store_typed_floating.
857 * valarith.c (value_binop): Ditto.
858 * values.c (unpack_long): Use extract_typed_floating.
859 (unpack_double): Ditto.
861 2001-09-24 Orjan Friberg <orjanf@axis.com>
863 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
864 from correct register.
866 2001-09-22 Mark Kettenis <kettenis@gnu.org>
868 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
870 2001-09-21 Jiri Smid <smid@suse.cz>
872 * config/i386/x86-64linux.mh: New file.
873 * config/i386/x86-64linux.mt: New file.
874 * config/i386/nm-x86_64.h: New file.
875 * x86-64-linux-tdep.c: New file.
876 * x86-64-linux-nat.c: New file.
877 * x86-64-tdep.c: New file.
878 * x86-64-tdep.h: New file.
879 * i386-tdep.h: New file.
880 * i387-nat.c: Include i386-tdep.h when multiarch.
881 * i387-tdep.c: Ditto.
882 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
883 and x86_64-linux-nat.c
884 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
885 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
887 2001-09-21 Jiri Smid <smid@suse.cz>
889 * MAINTAINERS: Add myself to the write-after-approval list.
890 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
891 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
892 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
893 8-byte wide watchpoints.
894 (i386_show_dr): Debug message format string change.
896 2001-09-21 Michael Snyder <msnyder@redhat.com>
898 * c-exp.y (typebase): Accept (signed long long) as a type expr.
900 2001-09-20 Michael Snyder <msnyder@redhat.com>
901 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
902 better parsing of const and volatile type expressions.
903 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
904 const_or_volatile): New non-terminals.
905 (ptype): Use new rule for const_or_volatile.
906 (typebase): Use new rule for const_or_volatile_noopt.
907 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
908 * parse.c (follow_types): Handle tp_const and tp_volatile on the
909 type stack: call make_cv_type to create new const/volatile type.
911 2001-09-20 Kevin Buettner <kevinb@redhat.com>
913 * solib-svr4.c (fetch_link_map_offsets): Add comment.
914 (fetch_link_map_offsets_init): New static global.
915 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
916 Revise implementation to use ``fetch_link_map_offsets_init''
917 instead of ``fetch_link_map_offsets''.
919 2001-09-20 Alan Modra <amodra@bigpond.net.au>
921 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
922 * dbxread.c: Likewise.
923 * dwarf2read.c: Likewise.
924 * dwarfread.c: Likewise.
925 * somread.c: Likewise.
926 * ultra3-nat.c: Likewise.
927 * xcoffread.c: Likewise.
929 2001-09-19 Andrew Cagney <ac131313@redhat.com>
931 * cris-tdep.c (cris_get_signed_offset): Change return type to an
932 explicitly signed char.
934 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
935 function signature to match recent tracepoint.c:encode_actions
937 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
939 2001-09-18 Andrew Cagney <ac131313@redhat.com>
941 * thread.c (do_captured_thread_select): Add uiout parameter.
942 (do_captured_list_thread_ids): Ditto.
943 * breakpoint.c (do_captured_breakpoint_query): Ditto.
945 * breakpoint.c (gdb_breakpoint_query): Update. Use
947 * thread.c (gdb_list_thread_ids): Ditto.
948 (gdb_thread_select): Ditto.
949 (thread_command): Pass uiout to gdb_thread_select.
951 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
952 (gdb_thread_select, gdb_list_thread_ids): Ditto.
954 2001-09-13 Kevin Buettner <kevinb@redhat.com>
956 From Ilya Golubev <gin@mo.msk.ru>:
957 * solib.c (clear_solib): Call `remove_target_sections' to fix
958 stale pointers in `struct target_ops'.
959 * irix5-nat.c (clear_solib): Likewise.
960 * osfsolib.c (clear_solib): Likewise.
962 2001-09-13 Jim Blandy <jimb@redhat.com>
964 * monitor.c (monitor_load): Don't delete symtab users, or reset
967 * monitor.c (monitor_load): Fix indentation.
969 2001-09-11 Jim Blandy <jimb@redhat.com>
971 * printcmd.c (print_scalar_formatted): Compare the length of the
972 value against the lengths of the target's floating-point types,
973 not the host's. Add support for `long double'.
975 * printcmd.c (print_scalar_formatted): Fix indentation.
977 2001-09-10 Jim Blandy <jimb@redhat.com>
979 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
980 programs running on the board can produce output.
982 2001-09-10 Jason Molenda (jmolenda@apple.com)
984 * NEWS: "ANS/ISO C" -> "ISO C".
985 * MAINTAINERS (write-after-approval): Update my entry.
987 2001-09-08 Mark Kettenis <kettenis@gnu.org>
989 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
991 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
992 config/m68k/xm-linux.h, config/mips/xm-linux.h,
993 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
994 redundant inclusion of <unistd.h>.
996 * gdbtypes.h (struct block): Add forward declaration.
998 2001-09-07 Andrew Cagney <ac131313@redhat.com>
1000 * defs.h (enum return_reason): Renumber so that all values are
1002 (RETURN_MASK): Negate reason.
1003 (catch_exception_ftype): Declare.
1004 (catch_exceptions): Declare.
1005 * top.c (catcher): New function, based on catch_errors. Add in
1006 parameter func_uiout and out parameters func_val, func_caught and
1007 func_cleanup. Change type of func to catch_exceptions_ftype.
1009 (struct catch_errors_args): Define.
1010 (do_catch_errors): New function.
1011 (catch_errors): Rewrite, use do_catch_errors and catcher.
1012 (catch_exceptions): New function, use catcher.
1014 2001-09-07 Jim Blandy <jimb@redhat.com>
1016 Correctly parse register values provided by the monitor.
1017 * rom68k-rom.c: #include "value.h".
1018 (is_hex_digit, hex_digit_value, is_whitespace,
1019 rom68k_supply_one_register): New static functions.
1020 (rom68k_supply_register): Call rom68k_supply_one_register, instead
1021 of monitor_supply_register; the latter was incorrectly parsing
1023 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
1025 2001-09-07 Mark Kettenis <kettenis@gnu.org>
1027 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
1028 to using setpgid if available now.
1030 2001-09-06 Keith Seitz <keiths@redhat.com>
1032 From Ian Roxborough <irox@redhat.com>
1033 * configure.in: Use ITCL_LIB_FULL_PATH and
1034 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
1036 * configure: Regenerated.
1038 2001-09-06 Kevin Buettner <kevinb@redhat.com>
1040 * dbxread.c (process_one_symbol): Don't use error result from
1041 find_stab_function_addr().
1042 * partial-stab.h (case 'F'): Likewise.
1044 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
1045 code match that used for case 'F'. This fixes the divergence
1046 that was introduced by my 1999-09-14 changes to partial-stab.h.
1048 2001-09-05 Elena Zannoni <ezannoni@redhat.com>
1050 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
1052 (TARGET_PRINT_INSN): Multiarch.
1053 * gdbarch.h: Regenerate.
1054 * gdbarch.c: Regenerate.
1056 * arch-utils.c (legacy_print_insn): New function.
1057 * arch-utils.h (legacy_print_insn): Export.
1059 * cris-tdep.c (cris_delayed_get_disassembler): Use
1060 TARGET_PRINT_INSN, instead of tm_print_insn.
1061 * d10v-tdep.c (print_insn): Ditto.
1062 * d30v-tdep.c (print_insn): Ditto.
1063 * m32r-tdep.c (dump_insn): Ditto.
1064 * v850-tdep.c (v850_scan_prologue): Ditto.
1065 * mcore-tdep.c (mcore_dump_insn): Ditto.
1066 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
1068 2001-09-05 Jim Blandy <jimb@redhat.com>
1070 * gdbtypes.h (struct type): Doc fix.
1072 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1074 From Daniel Jacobowitz <drow@mvista.com>
1075 * dbxread.c (free_header_files): Make global.
1076 (init_header_files): Likewise.
1077 * stabsread.h (free_header_files): Add prototype.
1078 (init_header_files): Likewise.
1079 * mdebugread.c (mdebug_build_psymtabs): Initialize
1080 properly before using the stabs debug reader.
1082 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1084 From Daniel Jacobowitz <drow@mvista.com>
1085 * dbxread.c (dbx_symfile_read): Only reinitialize
1086 the psymbol list if mainline or if both static
1087 and global lists are empty.
1088 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
1089 * dwarfread.c (dwarf_build_psymtabs): Likewise.
1090 * xcoffread.c (xcoff_initial_scan): Likewise.
1091 * os9kread.c (os9k_symfile_read): Likewise.
1093 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1095 From Daniel Jacobowitz <drow@mvista.com>
1096 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
1099 2001-09-01 Mark Kettenis <kettenis@gnu.org>
1101 Make GDB use libiberty regex implementation.
1102 * gdb_regex.h: Normalize protection against multiple inclusion.
1103 Include "xregex.h" instead of "gnu-regex.h".
1104 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
1105 * cli/cli-decode.c: Likewise.
1106 * Makefile.in (REGEX): Remove.
1107 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
1108 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
1110 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
1111 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
1112 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
1113 gdb_regex.h in list of dependencies.
1114 (gnu-regex.o): Remove rule.
1115 * gnu-regex.c, gnu-regex.h: Remove files.
1117 2001-08-31 Jason Molenda (jmolenda@apple.com)
1119 * c-valprint.c (c_val_print): Second call to check_typedef ()
1120 is no longer necessary.
1122 2001-08-31 Kevin Buettner <kevinb@redhat.com>
1124 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
1125 terminate the prologue scan.
1127 2001-08-30 Jim Blandy <jimb@redhat.com>
1129 * symfile.c (sections_overlap): New function.
1130 (map_overlay_command): Call sections_overlap, instead of using
1131 incorrect logic to recognize overlapping sections.
1133 * symfile.c (load_command): Invalidate the overlay cache.
1135 2001-08-30 Mark Kettenis <kettenis@gnu.org>
1137 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
1139 2001-08-29 Kevin Buettner <kevinb@redhat.com>
1141 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
1142 * solib-svr4.c (enable_break): Check the inferior link map
1143 before assuming the inferior PC is at the start of the dynamic
1146 2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
1148 * frame.h (struct frame_info): Fix documentation on fields
1149 saved_regs, next and prev.
1151 2001-08-23 Mark Kettenis <kettenis@gnu.org>
1153 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
1154 gratuitious whitespace changes.
1155 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
1156 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
1157 (sigsetmask) Don't define macro.
1158 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
1159 async_stop_sig from event-top.c.
1160 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
1162 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
1163 order. Add sigsetmask.
1164 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
1166 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
1167 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
1168 (HAVE_SIGSETMASK): Remove.
1169 * aclocal.m4, config.in, configure: Regenerated.
1171 2001-08-26 Andrew Cagney <ac131313@redhat.com>
1173 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
1174 * config/powerpc/nbsd.mh (XM_FILE): Delete.
1176 2001-08-21 Andrew Cagney <ac131313@redhat.com>
1178 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
1179 (HOST_DOUBLE_FORMAT): Delete macro.
1181 2001-08-24 Mark Kettenis <kettenis@gnu.org>
1183 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
1184 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
1185 inclusion of <limits.h>.
1187 2001-08-24 Andrew Cagney <ac131313@redhat.com>
1189 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
1190 that a register should be ignored, supply a value for the register
1191 from the raw registers[] buffer.
1193 2001-08-24 Andrew Cagney <ac131313@redhat.com>
1195 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
1196 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
1199 2001-08-21 Andrew Cagney <ac131313@redhat.com>
1201 * gdbtypes.h (builtin_type_ieee_single_big)
1202 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
1203 (builtin_type_ieee_double_little)
1204 (builtin_type_ieee_double_littlebyte_bigword)
1205 (builtin_type_i387_ext, builtin_type_m68881_ext)
1206 (builtin_type_i960_ext, builtin_type_m88110_ext)
1207 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
1208 (builtin_type_arm_ext_littlebyte_bigword)
1209 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1210 (builtin_type_ia64_quad_big)
1211 (builtin_type_ia64_quad_little): Declare.
1212 * gdbtypes.c (builtin_type_ieee_single_big)
1213 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
1214 (builtin_type_ieee_double_little)
1215 (builtin_type_ieee_double_littlebyte_bigword)
1216 (builtin_type_i387_ext, builtin_type_m68881_ext)
1217 (builtin_type_i960_ext, builtin_type_m88110_ext)
1218 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
1219 (builtin_type_arm_ext_littlebyte_bigword)
1220 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1221 (builtin_type_ia64_quad_big)
1222 (builtin_type_ia64_quad_little): Define.
1223 (_initialize_gdbtypes): Initialize builtin floatformat types.
1225 2001-08-23 Mark Kettenis <kettenis@gnu.org>
1227 * tracepoint.c (read_actions): Add FIXME for code depending on
1230 2001-08-23 Martin M. Hunt <hunt@redhat.com>
1232 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
1234 (mips_load_srec): Ditto.
1236 2001-08-22 Andrew Cagney <ac131313@redhat.com>
1238 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
1239 of builtin_type_float, builtin_type_double and
1240 builtin_type_long_double.
1241 (recursive_dump_type): Print the floatformat name.
1242 * gdbtypes.h (struct type): Add type_specific field floatformat.
1243 (TYPE_FLOATFORMAT): Define
1245 2001-08-21 Keith Seitz <keiths@redhat.com>
1247 * printcmd.c (print_insn): Use the given stream for
1250 2001-07-24 Andrew Cagney <ac131313@redhat.com>
1252 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
1253 assembler version of function.
1254 (convert_from_extended, convert_to_extended): Rewrite. Use
1255 floatformat_to_doublest, floatformat_from_doublest,
1256 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
1257 (arm_push_arguments): Use extract_floating and store_floating to
1258 perform floating point conversions.
1259 (SWAP_TARGET_AND_HOST): Delete macro.
1260 * arm-linux-tdep.c (arm_linux_push_arguments): Use
1261 extract_floating and store_floating to perform floating point
1264 2001-08-20 Andrew Cagney <ac131313@redhat.com>
1266 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
1268 2001-08-17 Keith Seitz <keiths@redhat.com>
1270 * varobj.c (varobj_update): Change first parameter to
1271 pointer to struct varobj*. This function can delete
1272 varobjs, so we need to give callers the new varobj
1274 (value_of_root): Update "var", too, if "var_handle"
1276 * varobj.h (varobj_update): Likewise.
1278 2001-08-17 Keith Seitz <keiths@redhat.com>
1280 * Makefile.in (varobj_h): Define.
1281 (mi-cmd-var.o): Depends on varobj_h.
1282 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
1284 2001-08-16 Keith Seitz <keiths@redhat.com>
1286 * configure.in (GDBTK_SRC_DIR): We must have autoconf
1287 give us the absolute path to the source directory.
1288 * configure: Regenerated.
1289 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
1290 autoconf can substitue it in for us.
1291 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
1292 really do need an absolute pathname.
1294 2001-08-15 Keith Seitz <keiths@redhat.com>
1296 * Makefile.in (GDBTK_VERSION): Set a version number.
1297 (GDBTK_LIBRARY): New variable to point to location where
1298 gdbtk will install its tcl library. Changed all refereneces
1299 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
1300 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
1301 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
1302 (all-gdbtk): Remove.
1303 (install-gdbtk): Remove.
1304 (gdbtk.o): Pass srcdir to file when compiling.
1306 2001-08-15 Ian Roxborough <irox@redhat.com>
1308 * Makefile.in: Changed all references to the install directory
1309 "gdbtcl" to read "insight1.0".
1311 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
1313 * arch-utils.c (generic_skip_trampoline_code): New function.
1314 * arch-utils.h (generic_skip_trampoline_code): Declare external.
1315 * gdbarch.c: Regeberated from gdbarch.sh.
1317 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
1318 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
1320 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
1321 H.J. Lu (hjl@gnu.org)
1323 * partial-stab.h: valu should be a CORE_ADDR.
1325 2001-08-14 H.J. Lu (hjl@gnu.org)
1327 * dbxread.c (SWAP_SYMBOL): Removed.
1328 (INTERNALIZE_SYMBOL): Check sign extended vma.
1330 2001-08-13 Christopher Faylor <cgf@cygnus.com>
1332 * top.c (SIGSETJMP): Protect env argument with parentheses.
1333 (SIGLONGJMP): Protect env argument with parentheses.
1335 2001-08-11 Andrew Cagney <ac131313@redhat.com>
1337 * config/mn10300/mn10300.mt (TM_FILE): Delete.
1338 * configure.tgt: Add mn10300 to list of mulit-arch targets.
1339 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
1340 * mn10300-tdep.c: To here.
1342 2001-08-11 Andrew Cagney <ac131313@redhat.com>
1344 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
1345 val a DOUBLEST. Use floatformat_to_doublest.
1346 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
1347 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
1348 (REGISTER_CONVERT_TO_RAW): Ditto.
1350 2001-08-11 Andrew Cagney <ac131313@redhat.com>
1352 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
1353 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
1356 2001-08-11 Andrew Cagney <ac131313@redhat.com>
1358 * doublest.c (convert_doublest_to_floatformat): Rename
1359 floatformat_from_doublest. Make static.
1360 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
1362 (floatformat_to_doublest): New function.
1363 (floatformat_from_doublest): New function.
1364 (host_float_format, host_double_format, host_long_double_format):
1365 New static variables.
1366 (store_floating, extract_floating): Always use
1367 floatformat_to_doublest and floatformat_from_doublest.
1368 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1370 2001-08-11 Andrew Cagney <ac131313@redhat.com>
1372 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
1373 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
1375 2001-08-07 Andrew Cagney <ac131313@redhat.com>
1377 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
1378 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
1379 * gdbarch.h, gdbarch.c: Regenerate.
1381 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
1382 * arch-utils.c: Include "gdb_assert.h".
1383 (legacy_virtual_frame_pointer): Define.
1384 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
1386 * tracepoint.c (encode_actions): Make frame_reg an int. Make
1387 frame_offset a LONGEST.
1388 * ax-gdb.c (gen_frame_args_address): Ditto.
1389 (gen_frame_locals_address): Ditto.
1390 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
1391 virtual_frame_pointer.
1392 (mn10300_virtual_frame_pointer): Make static. Update parameter
1393 list to match function signature.
1394 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
1396 2001-08-10 Keith Seitz <keiths@redhat.com>
1398 * gdb-events.sh: Add architecture_changed event.
1399 * gdbarch.sh: Include gdb-event.h.
1400 (gdbarch_update_p): Notify UIs when architecture changes.
1401 * gdb-events.h: Regenerated.
1402 * gdb-events.c: Regenerated.
1403 * gdbarch.c: Regenerated.
1405 2001-08-10 Michael Snyder <msnyder@redhat.com>
1407 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
1408 a write_register to a pseudo-reg. Target_store_pseudo_register
1409 needs to get called, because these regs may be computed and may
1412 2001-08-10 Keith Seitz <keiths@redhat.com>
1414 * gdb-events.sh: Deal with event notifications with no
1417 2001-08-10 Orjan Friberg <orjanf@axis.com>
1419 * remote.c (read_frame): Correct off-by-one error in condition.
1421 2001-08-08 Don Howard <dhoward@redhat.com>
1423 * stabsread.c (read_type): Add support for const and volatile
1426 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
1428 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
1429 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
1431 2001-08-02 Keith Seitz <keiths@redhat.com>
1433 * defs.h (SLASH_STRING): If not defined, set
1434 to "/", regardless of _WIN32, __CYGWIN__, or
1437 2001-08-02 Mark Kettenis <kettenis@gnu.org>
1439 * cli/cli-decode.h: Include "gdb_regex.h" instead of
1444 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
1446 * config/i386/xm-go32.h: Include xm-i386.h.
1447 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
1449 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
1451 The following changes avoid polluting global namespace with the
1452 `enable' and `disable' identifiers, because some platforms define
1453 in their system headers symbols with global scope that go by those
1456 * breakpoint.h (enum enable_state): Rename from `enum enable'.
1457 Also rename all the enum members to have the "bp_" prefix.
1458 (struct breakpoint): Rename the `enable' member to `enable_state'.
1459 (enum bpdisp): Rename all members to have the "disp_" prefix.
1461 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
1463 (args_for_catchpoint_enable): Rename the `enable' member to
1464 `enable_p'. All users changed.
1466 * tracepoint.h (enum enable): Remove.
1467 (struct tracepoint): The member `enabled' is now `int enabled_p'.
1469 * tracepoint.c: All users of the `enabled' member changed.
1471 * printcmd.c (struct display): The `status' member is now an int.
1473 * memattr.h (struct mem_region): Rename the `status' member to
1475 (enum enable): Remove.
1477 * memattr.c: Change all users of the `status' member of struct
1478 mem_region to use `enabled_p' instead.
1480 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
1482 * go32-nat.c: Remove the kludgey work-around for conflicts between
1483 <dos.h> and "breakpoint.h".
1485 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
1487 * MAINTAINERS: Add myself to the write-after-approval list.
1488 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
1491 2001-08-01 Andrew Cagney <ac131313@redhat.com>
1493 * doublest.h (store_floating, floatformat_to_doublest): Make IN
1494 paramter a const void pointer.
1495 (floatformat_from_doublest): Make IN const, Make OUT a void
1497 * doublest.c (floatformat_to_doublest): Update.
1498 (floatformat_from_doublest): Update.
1499 (extract_floating): Update.
1501 2001-07-31 Andrew Cagney <ac131313@redhat.com>
1503 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1504 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1505 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
1506 (floatformat_to_doublest, floatformat_from_doublest)
1507 (floatformat_is_negative, floatformat_is_nan)
1508 (floatformat_mantissa, store_floating)
1509 (extract_floating): Move declaration from here.
1510 * doublest.h: To here. New file.
1511 * utils.c (get_field, floatformat_to_doublest, put_field)
1512 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
1513 (floatformat_is_nan, floatformat_mantissa)
1514 (FLOATFORMAT_CHAR_BIT): Move from here.
1515 * doublest.c: To here. New file.
1516 * findvar.c (store_floating, extract_floating): Move from here.
1517 * doublest.c: To here.
1518 * Makefile.in (SFILES): Add doublest.c.
1519 (COMMON_OBS): Add doublest.o.
1520 (doublest.o): Specify dependencies.
1521 (doublest_h): Define.
1523 * config/m88k/tm-m88k.h: Include "doublest.h".
1524 * config/i960/tm-i960.h: Ditto.
1525 * config/i386/tm-symmetry.h: Ditto.
1526 * rs6000-tdep.c, valarith.c: Ditto.
1527 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
1528 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
1529 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
1530 * alpha-tdep.c, ax.h, expression.h: Ditto.
1531 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
1533 * Makefile.in (arm-tdep.o): Add $(doublest_h).
1534 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
1535 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
1536 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
1537 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
1538 (parser_defs_h): Ditto.
1539 (expression_h): Add $(doublest_h) and $(symtab_h).
1541 2001-08-01 Andrew Cagney <ac131313@redhat.com>
1543 * Makefile.in: Sort header definitions.
1544 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
1545 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
1546 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
1547 $(annotate_h). Replace target.h with $(target_h). Replace
1548 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
1550 2001-07-31 Mark Kettenis <kettenis@gnu.org>
1552 * config/i386/xm-i386.h: New file.
1553 * config/i386/xm-fbsd.h: Removed.
1554 * config/i386/xm-linux.h: Removed.
1555 * config/i386/fbsd.mh: Reorganize a bit.
1556 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
1557 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
1560 2001-07-30 Jim Blandy <jimb@redhat.com>
1562 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
1564 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
1566 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
1567 Check for SETPGRP_VOID separately if cross-compiling and ISO C
1568 headers are available.
1570 2001-07-30 Mark Kettenis <kettenis@gnu.org>
1572 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
1573 i386_dwarf_reg_to_regnum.
1575 * i386-tdep.c (i386_register_convert_to_virtual): Replace
1576 assertion with a warning if we're asked to convert towards a
1577 non-floating-point type. Zero out the the buffer where the data
1578 is supposed to be stored in that case.
1580 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
1582 * config/djgpp/djconfig.sh: Unset CDPATH.
1584 * go32-nat.c (get_cr3): Temporary disable support for page tables
1585 in UMBs, as it is incomplete.
1587 Support for stepping through longjmp in DJGPP programs:
1589 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
1590 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
1591 (get_longjmp_target): Add prototype.
1593 2001-07-28 Andrew Cagney <ac131313@redhat.com>
1595 Fix some PID/TPID fallout for HP/UX.
1596 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
1597 * infttrace.c (ptrace_wait): Match external declaration,
1598 and match target_post_wait declaration.
1600 2001-07-28 Andrew Cagney <ac131313@redhat.com>
1602 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
1603 (cris): Set --enable-gdb-build-warnings flag to -w.
1605 2001-07-28 Andrew Cagney <ac131313@redhat.com>
1607 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
1608 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
1609 (TARGET_LONG_DOUBLE_BIT): Define.
1610 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
1611 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
1612 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
1613 floating point registers.
1614 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
1615 (REGISTER_CONVERT_TO_RAW): Remove.
1616 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
1618 2001-07-26 Andrew Cagney <ac131313@redhat.com>
1620 * thread.c, breakpoint.c: Include "gdb.h".
1621 * Makefile.in (gdb_h): Define.
1622 (HFILES_NO_SRCDIR): Add gdb.h.
1623 (mi-cmd-break.o, mi-main.o, thread.o)
1624 (breakpoint.o): Add dependency on $(gdb_h).
1626 * defs.h (enum gdb_rc, gdb_breakpoint_query)
1627 (gdb_breakpoint, gdb_thread_select)
1628 (gdb_list_thread_ids): Move declaration from here ...
1629 * gdb.h: To here. New file.
1631 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1633 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
1634 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
1636 (tui-out.o): Define dependencies.
1637 (tui-hooks.o): Likewise.
1639 2001-07-28 Andrew Cagney <ac131313@redhat.com>
1641 * MAINTAINERS: Update e-mail address of active @cygnus.com
1642 maintainers to @redhat.com.
1644 2001-07-28 Andrew Cagney <ac131313@redhat.com>
1646 * README (Known bugs): Delete section.
1647 (Kernel debugging): Delete section.
1648 (Languages other than C): Delete section.
1649 (Host/target specific installation notes) New section.
1651 2001-07-28 Mark Kettenis <kettenis@gnu.org>
1653 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1654 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
1655 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
1657 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
1658 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
1659 i386_dwarf_reg_to_regnum.
1660 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
1663 * i386-tdep.c: Include "gdb_assert.h"
1664 (i386_register_convert_to_virtual): Fix such that it can handle
1665 conversion to any floating-point type. Assert that we are dealing
1666 with a floating-point first.
1667 (i386_register_convert_to_raw): Assert that TYPE is a
1668 floating-point type with length 12.
1670 2001-07-27 John R. Moore <jmoore@redhat.com>
1672 * configure.in: Added dependency of gdb on tcl/tk libraries.
1673 * Makefile.in: Likewise.
1674 * configure: Regenerated with the above using autoconf.
1676 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
1678 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
1680 (SH_DEFAULT_NUM_REGS): Define.
1682 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
1684 * go32-nat.c (read_memory_region): Make sure the segment limit was
1685 indeed set, to work around a Windows 2000 bug.
1687 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
1689 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
1690 * infttrace.c (child_xfer_memory): Likewise.
1691 * symm-nat.c (child_xfer_memory): Likewise.
1692 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
1693 (write_inferior_memory): Likewise.
1694 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
1695 (write_inferior_memory): Likewise.
1696 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
1697 (write_inferior_memory): Likewise.
1698 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
1699 (write_inferior_memory): Likewise.
1700 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
1701 (write_inferior_memory): Likewise.
1702 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
1703 (write_inferior_memory): Likewise.
1705 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1707 * README: Mention how to make gdb.pdf.
1711 2001-07-24 Stephen P. Smith <ischis2@home.com>
1713 * MAINTAINERS (Stephen P. Smith): Added to write after approval
1716 2001-07-23 Andrew Cagney <ac131313@redhat.com>
1718 * mips-tdep.c (mips_push_arguments): Add comment explaining
1719 problem with LE o32 GCC.
1721 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
1723 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
1724 doesn't understand them.
1726 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
1728 * memattr.c (mem_info_command): Reformat output to look more like
1729 'info break' output.
1730 (_initialize_mem): Improve help.
1732 2001-07-23 Mark Kettenis <kettenis@gnu.org>
1734 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
1735 (AC_FUNC_SETPGRP): Add.
1736 * aclocal.m4, configure, config.in: Regenerated.
1737 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
1738 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
1739 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
1740 distinguish between the two setpgrp flavours.
1741 * config/xm-sysv4.h, config/arm/xm-linux.h,
1742 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
1743 config/i386/xm-linux.h, config/i386/xm-ptx.h,
1744 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
1745 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
1746 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
1747 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
1749 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
1751 * go32-nat.c (read_memory_region): Set the granularity bit of the
1752 allocated segment according to its size, and adjust the limit to
1753 be page-aligned if the segment is page-granular.
1755 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
1756 (display_page_table, go32_pte, go32_pte_for_address): New functions.
1757 (_initialize_go32_nat): Initialize and document them.
1759 2001-07-22 Mark Kettenis <kettenis@gnu.org>
1761 * i386gnu-nat.c: Include "i387-nat.h".
1762 (struct env387): Removed.
1763 (reg_offset): Fix comment.
1764 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
1765 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
1766 use i387_supply_fsave.
1767 (gnu_fetch_registers): Remove spurious whitespace.
1768 (convert_to_env387): Remove.
1769 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
1770 of convert_to_env387.
1771 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
1773 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
1774 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
1775 (NATDEPFILES): Add i387-nat.o.
1777 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1779 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
1780 (m68hc11-tdep.o): Define dependencies.
1782 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
1786 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1788 * utils.c (init_page_info): Use tui_get_command_dimension.
1789 * printcmd.c (disassemble_command): Simplify tui specific code,
1790 use tui_is_window_visible, tui_show_assembly.
1792 2001-07-21 Mark Kettenis <kettenis@gnu.org>
1794 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
1795 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
1797 * i386fbsd-nat.c: ... here. New file.
1798 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
1799 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
1800 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
1801 (i386fbsd-nat.o): Add dependencies.
1803 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
1805 * signals.c: New file.
1806 * Makefile.in: Add signals.o.
1807 * target.c (struct signals, target_signal_to_name)
1808 (target_signal_from_name, target_signal_from_host)
1809 (do_target_signal_to_host, target_signal_to_host_p)
1810 (target_signal_to_host, target_signal_from_command): Move to
1812 (initialize_targets): Move check of struct signals to...
1813 * signals.c (_initialize_signals): Here.
1815 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1817 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
1819 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1822 * configure.tgt (i*86-*-pe*): New target.
1824 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1826 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
1827 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
1828 * somsolib.c (no_shared_libraries): Provide stub.
1829 * xcoffsolib.c (no_shared_libraries): Provide stub.
1831 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1833 * Makefile.in (COMMON_OBS): Remove tui-file.o.
1834 (SUBDIR_TUI_OBS): Add it here.
1835 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
1836 (main.o): Remove dependency with tui-file.h.
1838 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
1840 * Makefile.in (tui-file.o): Update dependencies.
1842 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
1844 * top.c (catch_errors): Convert PTR to void * in parameters list.
1845 (quit_cover): Ditto.
1847 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1849 * source.c (find_source_lines): Remove tui test, must be replaced
1850 by appropriate warning hook.
1851 (print_source_lines): Remove tui hacks, must be replaced by cli.
1852 (forward_search_command): Remove tui hacks, can be replaced by
1853 appropriate calls to identify_source_line when tui scrolls.
1854 (reverse_search_command): Likewise.
1856 2001-07-16 Nick Duffek <nsd@redhat.com>
1858 * remote.c (init_remote_ops, init_remote_cisco_ops,
1859 init_remote_async_ops): Set to_pid_to_str and
1860 to_extra_thread_info correctly and in the same order as declared
1863 2001-07-16 Andrew Cagney <ac131313@redhat.com>
1865 * remote.c: Revert below. Included more than intended.
1867 2001-07-16 Nick Duffek <nsd@redhat.com>
1869 * remote.c (init_remote_ops, init_remote_cisco_ops,
1870 init_remote_async_ops): Set to_pid_to_str and
1871 to_extra_thread_info correctly and in the same order as declared
1874 2001-07-16 Nick Duffek <nsd@redhat.com>
1876 * findvar.c (read_var_value): Apply value_as_pointer() to
1877 addresses retrieved from the target for LOC_BASEREG and
1878 LOC_BASEREG_ARG variables.
1880 2001-07-16 Orjan Friberg <orjanf@axis.com>
1882 * NEWS: New target CRIS.
1884 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
1886 * top.c (show_commands): Remove extern decl of history_get, it's
1887 already in readline/history.h.
1889 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
1891 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
1892 execute_user_command, do_setshow_command, get_prompt, init_proc,
1893 serial_log_command): Remove extern declarations. Include
1894 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
1895 * gdbcmd.h (execute_user_command): Remove declaration, it's already
1896 in cli/cli-script.h.
1897 * command.h (do_setshow_command): Remove declaration, it's already
1898 in cli/cli-setshow.h.
1899 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
1900 * Makefile.in (infrun.o): Update dependencies.
1902 * cli/cli-setshow.h: Add comment for do_setshow_command.
1904 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
1906 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
1907 call to chdir on this symbol rather than on __DJGPP__.
1908 (CANT_FORK) [__MSDOS__]: Move from here...
1909 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
1910 (GLOBAL_CURDIR) [__MSDOS__]: Define.
1912 2001-07-16 Orjan Friberg <orjanf@axis.com>
1914 * configure.tgt: Recognise the CRIS architecture.
1915 * config/cris/cris.mt: New file for CRIS target.
1916 * cris-tdep.c: New file for CRIS target.
1918 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
1920 * top.c (quit_cover, float_handler): Move definition up before use.
1921 (gdb_init): Move to end of file, to avoid calls to not yet defined
1925 2001-07-14 Andrew Cagney <ac131313@redhat.com>
1927 * serial.h (SERIAL_ASYNC): Delete.
1928 (DEPRECATED_SERIAL_FD): Delete.
1929 (SERIAL_DEBUG): Delete.
1930 (SERIAL_DEBUG_P): Delete.
1931 (SERIAL_DRAIN_OUTPUT): Delete.
1932 (SERIAL_FLUSH_OUTPUT): Delete.
1933 (SERIAL_FLUSH_INPUT): Delete.
1934 (SERIAL_SEND_BREAK): Delete.
1935 (SERIAL_RAW): Delete.
1936 (SERIAL_GET_TTY_STATE): Delete.
1937 (SERIAL_SET_TTY_STATE): Delete.
1938 (SERIAL_PRINT_TTY_STATE): Delete.
1939 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
1940 (SERIAL_SETBAUDRATE): Delete.
1941 (SERIAL_SETSTOPBITS): Delete.
1942 (SERIAL_CAN_ASYNC_P): Delete.
1943 (SERIAL_IS_ASYNC_P): Delete.
1944 (SERIAL_UN_FDOPEN): Delete.
1945 (SERIAL_READCHAR): Delete.
1946 (SERIAL_CLOSE): Delete.
1947 (SERIAL_FDOPEN): Delete.
1948 (SERIAL_OPEN): Delete.
1949 * ser-unix.c: Update.
1950 * sparclet-rom.c: Update.
1951 * remote-bug.c: Update.
1954 * nindy-share/ttyflush.c: Update.
1955 * nindy-share/Onindy.c: Update.
1958 * remote-nindy.c: Update.
1960 * sparcl-tdep.c: Update.
1961 * sh3-rom.c: Update.
1963 * remote-utils.c: Update.
1964 * remote-st.c: Update.
1965 * remote-sds.c: Update.
1966 * remote-rdp.c: Update.
1967 * remote-os9k.c: Update.
1968 * remote-nrom.c: Update.
1969 * remote-mips.c: Update.
1970 * remote-es.c: Update.
1971 * remote-e7000.c: Update.
1972 * remote-array.c: Update.
1974 * nindy-share/nindy.c: Update.
1975 * monitor.c: Update.
1977 2001-07-14 Andrew Cagney <ac131313@redhat.com>
1979 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
1980 * mcore-tdep.c: Ditto.
1981 * sparc-tdep.c: Ditto.
1983 * rs6000-tdep.c: Ditto.
1984 * ppc-linux-tdep.c: Ditto.
1985 * m68hc11-tdep.c: Ditto.
1986 * ia64-tdep.c: Ditto.
1987 * i386-tdep.c: Ditto.
1988 * arm-linux-tdep.c: Ditto.
1989 * hppa-tdep.c: Ditto.
1990 * h8500-tdep.c: Ditto.
1991 * fr30-tdep.c: Ditto.
1992 * arm-tdep.c: Ditto.
1993 * alpha-tdep.c: Ditto.
1994 * d30v-tdep.c: Ditto.
1995 * d10v-tdep.c: Ditto.
1996 * m32r-tdep.c: Ditto.
1997 * mips-tdep.c: Ditto.
1998 * v850-tdep.c: Ditto.
2000 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
2002 * top.c (readline_line_completion_function, noop_completer): Move
2004 * completer.c (readline_line_completion_function, noop_completer):
2006 * gdbcmd.h (readline_line_completion_function, noop_completer):
2007 Move declarations from here...
2008 * completer.h (readline_line_completion_function, noop_completer):
2010 * corefile.c: Include completer.h.
2013 * Makefile.in: Update dependencies.
2015 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
2017 * go32-nat.c (go32_create_inferior): Support command lines longer
2018 than 126 characters.
2020 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2022 * NEWS: New target 68HC11/68HC12.
2024 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2026 * utils.c (query): Remove tui hacks; tui must use the query_hook.
2027 * top.c (command_loop): Remove tui insert_mode hacks; don't call
2028 tuiCleanUp because this must be made with atexit by tui.
2029 * symfile.c (symbol_file_command): Remove call to TUIDO
2030 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
2031 not necessary when using the selected frame hooks.
2032 (print_stack_frame_stub): Likewise.
2033 (print_frame_info_base): Likewise.
2034 (print_frame_info): Likewise.
2035 (up_silently_command): Likewise.
2036 (down_silently_command): Likewise.
2037 (show_stack_frame): Likewise for TUIDO.
2038 (select_frame): Likewise.
2039 (select_and_print_frame): Likewise.
2040 (stack_publish_stopped_with_no_frame): Remove.
2041 (select_and_maybe_print_frame): Remove.
2042 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
2043 must use the initialize ui hook.
2044 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
2045 selected frame hooks.
2046 * event-top.c (command_handler): Remove tui insert_mode hack.
2047 * defs.h: Remove TUIDO; Only include tui.h.
2048 * breakpoint.c (mention): Remove calls to TUIDO.
2049 (delete_breakpoint): Remove tui hacks; tui must install
2050 the breakpoint hooks.
2052 2001-07-14 Mark Kettenis <kettenis@gnu.org>
2054 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
2055 * config/i386/nm-linux.h: ...to here. Change comments about user
2058 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
2060 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
2061 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
2063 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
2065 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
2066 generate an internal error.
2067 (e7000_fetch_registers): Initialize variable 'wanted'.
2068 (e7000_wait): Initialize variable 'wanted_nopc'.
2069 (e7000_store_register): Fix sprintf compiler warnings.
2070 (sub2_from_pc): Ditto.
2071 (e7000_open): Close the descriptor, not the name.
2072 (e7000_load): Fix compiler warnings.
2073 (sub2_from_pc): Ditto.
2074 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
2076 2001-07-13 Mark Kettenis <kettenis@gnu.org>
2078 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
2080 (store_inferior_registers): Wrap long line.
2081 (i386bsd_dr_get_status): Fix typo in comment.
2082 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
2083 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
2084 (i386bsd_in_sigtramp): New prototype.
2085 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
2086 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
2087 (external) variables.
2088 (SIGCONTEXT_PC_OFFSET): Removed.
2089 (FRAME_SAVED_PC): New define.
2090 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
2091 (TDEPFILES): Add i386bsd-tdep.o.
2093 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2095 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
2098 2001-07-13 Mark Kettenis <kettenis@gnu.org>
2100 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
2101 are no registered LWPs yet.
2103 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2105 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
2107 (CANNOT_STORE_REGISTER): Likewise.
2109 2001-07-12 Keith Seitz <keiths@redhat.com>
2111 * remote-rdp.c: Include "serial.h"
2113 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2115 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
2116 in HAVE_TERMIO/HAVE_TERMIOS cases.
2118 2001-07-12 Mark Kettenis <kettenis@gnu.org>
2120 * lin-lwp.c (stop_wait_callback): Add support for flushing
2121 signals. Use that in favour of the old code to get rid of
2122 superfluous SIGINTs.
2123 (lin_lwp_wait): Use the new support in stop_wait_callback to
2124 flush all but one SIGINT.
2126 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
2128 (i386_store_return_value): Improve comments about storing
2129 floating-point return values.
2131 * config/arm/xm-linux.h, config/i386/xm-linux.h,
2132 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
2133 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
2134 Removed. Taken care of by autoconf and terminal.h.
2136 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2138 * mips-tdep.c (mips_type_needs_double_align): New function.
2139 (mips_push_arguments): Align o32 structs to even argument
2140 registers if necessary.
2142 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2144 * config/djgpp/fnchange.lst: Add entries for
2145 mips-linux-nat.c and mips-linux-tdep.c.
2147 2001-07-12 Mark Kettenis <kettenis@gnu.org>
2149 * config/powerpc/xm-linux.h: Fix corrupted file.
2151 * configure.in: Add check for sigsetjmp.
2152 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
2153 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
2154 * configure, config.in: Regenerated.
2156 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
2158 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
2159 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
2162 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
2163 skip_prologue_hard_way().
2164 (skip_prologue_hard_way): Make it a function pointer.
2165 (sh_print_register): Use function pointer do_pseudo_register,
2166 instead of sh_do_pseudo_register.
2167 (sh_do_registers_info): Ditto.
2168 (sh_gdbarch_init): Initialize do_pseudo_register.
2169 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
2170 (skip_prologue_hard_way): Update.
2171 (sh_gdbarch_init): Move setting of frame_chain,
2172 get_saved_register, init_extra_frame_info, push_arguments,
2173 extract_return_value, pop_frame, store_struct_return,
2174 extract_struct_value_address, use_struct_convention,
2175 init_extra_frame_info to before target specific settings.
2176 (sh_gdbarch_init): Initialize new tdep fields
2177 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
2179 (sh_push_arguments): Use new gdbarch_tdep fields
2180 {ARG0,ARGLAST}_REGNUM.
2181 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
2182 sh_init_extra_frame_info, sh_push_return_address,
2183 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2184 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
2185 gdbarch_tdep->PR_REGNUM.
2186 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
2188 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2190 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
2191 from it. Move definitions of REALTIME_LO and REALTIME_HI above
2194 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2196 * MAINTAINERS: List myself for MIPS/Linux
2199 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2201 * gdbserver/remote-utils.c (remote_open): Only
2202 check for F_SETOWN if we had F_SETFL and FASYNC.
2204 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2206 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
2208 * config/m68k/linux.mh: Remove core-regset.o.
2209 * m68klinux-nat.c: Fix comment.
2210 (supply_gregset): Change argument to elf_gregset_t *.
2211 (supply_fpregset): Change argument to elf_fpregset_t *.
2212 (fetch_core_registers): New function.
2213 (linux_elf_core_fns): Define.
2214 (_initialize_m68k_linux_nat): New function.
2216 2001-07-11 Andrew Cagney <ac131313@redhat.com>
2218 * configure.tgt: Mark d10v as pure multi-arch.
2219 * config/d10v/tm-d10v.h: Delete file.
2220 * config/d10v/d10v.mt (TM_FILE): Delete.
2222 2001-07-10 Andrew Cagney <ac131313@redhat.com>
2224 * serial.h (typedef serial_t): Delete. Replace all references to
2225 serial_t with `struct serial *'.
2227 * nindy-share/ttyflush.c: Update.
2228 * nindy-share/ttyflush.c: Update.
2229 * nindy-share/Onindy.c: Update.
2230 * nindy-share/nindy.c: Update.
2231 * remote-rdp.c: Update.
2232 * remote-sds.c: Update.
2233 * remote-st.c: Update.
2234 * remote-nindy.c: Update.
2235 * remote-mips.c: Update.
2236 * remote-e7000.c: Update.
2237 * remote-os9k.c: Update.
2238 * remote-nrom.c: Update.
2239 * remote-es.c: Update.
2240 * remote-array.c: Update.
2242 * mon960-rom.c: Update.
2245 * ser-e7kpc.c: Update.
2246 * sparclet-rom.c: Update.
2248 * ser-tcp.c: Update.
2249 * ser-go32.c: Update.
2250 * sparcl-tdep.c: Update.
2251 * w89k-rom.c: Update.
2253 * sh3-rom.c: Update.
2255 * ser-pipe.c: Update.
2256 * ser-unix.c: Update.
2257 * ser-unix.h: Update.
2261 2001-07-11 J.T. Conklin <jtc@redback.com>
2263 From Greg McGary <greg@mcgary.org>:
2264 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
2266 (input_interrupt): Don't block on read, in case we got redundant
2267 SIGIO. Don't gripe about redundant SIGIO.
2268 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
2269 handler while waiting.
2270 * gdbserver/low-linux.c (mywait): Likewise.
2271 * gdbserver/low-nbsd.c (mywait): Likewise.
2272 * gdbserver/low-sparc.c (mywait): Likewise.
2274 2001-07-11 Keith Seitz <keiths@redhat.com>
2276 * infrun.c (print_stop_reason): Add missing uiout field
2277 "reason" for SIGNAL_RECEIVED case.
2279 2001-07-11 Mark Kettenis <kettenis@gnu.org>
2281 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
2282 Remove unused macro's.
2284 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
2287 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
2289 * go32-nat.c (info_dos_cmdlist): New variable.
2290 (go32_info_dos_command): New function.
2291 (_initialize_go32_nat): Convert all DOS-specific commands into
2292 subcommands of "info dos". Suggested by Andrew Cagney
2293 <ac131313@redhat.com>.
2295 2001-07-11 Mark Kettenis <kettenis@gnu.org>
2297 * config/nm-linux.h: Fix comments.
2299 * thread-db.c (enable_thread_event_reporting): Correct warning
2300 message about getting thread death breakpoint.
2301 Reported by John S Kallal <jskallal@home.com>.
2303 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
2304 (i386_store_return_value): Frob FPU status and tag word to make
2305 sure the return value is the only value on the FPU stack.
2307 * config/tm-linux.h: Do not include <signal.h>. Instead provide
2308 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
2310 * config/nm-linux.h: Include <signal.h>.
2311 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
2312 (__SIGRTMAX + 1) respectively.
2314 2001-07-10 Andrew Cagney <ac131313@redhat.com>
2316 * mcore-rom.c: Include "serial.h".
2317 * Makefile.in (mcore-rom.o): Depends on "serial.h".
2319 2001-07-10 Andrew Cagney <ac131313@redhat.com>
2321 * Makefile.in (remote-bug.o): Depends on serial.h.
2322 * remote-bug.c: Include "serial.h".
2323 * MAINTAINERS: Mark m88k target as buildable.
2326 2001-07-10 Jim Blandy <jimb@redhat.com>
2328 Clean up the D10V port so that GDB and the target program no
2329 longer disagree on how big pointers are.
2330 * findvar.c (value_from_register): Remove special case code for D10V.
2331 * printcmd.c (print_frame_args): Same.
2332 * valops.c (value_at, value_fetch_lazy): Same.
2333 * values.c (unpack_long): Same.
2334 * gdbarch.sh: Changes to effect the following:
2335 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
2336 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
2337 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
2338 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
2339 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
2340 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
2341 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
2342 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
2343 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
2344 gdbarch_d10v_convert_daddr_to_raw_ftype,
2345 gdbarch_d10v_convert_daddr_to_raw,
2346 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
2347 gdbarch_d10v_convert_iaddr_to_raw_ftype,
2348 gdbarch_d10v_convert_iaddr_to_raw,
2349 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
2350 * gdbarch.c: Delete the corresponding definitions.
2351 (struct gdbarch): Delete members d10v_make_daddr,
2352 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
2353 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
2354 (startup_gdbarch): Remove initializers for the above.
2355 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
2357 * d10v-tdep.c (d10v_register_virtual_type): Rather that
2358 claiming the stack pointer and PC are 32 bits long (which they
2359 aren't), say that the stack pointer is an int16_t, and the
2360 program counter is a function pointer. This allows the rest
2361 of GDB to make the appropriate conversions between the code
2362 pointer format and real addresses.
2363 (d10v_register_convertible, d10v_register_convert_to_virtual,
2364 d10v_register_convert_to_raw): Delete function; no registers
2365 are convertible now, so we use
2366 generic_register_convertible_not instead.
2367 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
2369 (d10v_push_arguments, d10v_extract_return_value): Remove special
2370 cases for code and data pointers.
2371 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
2372 the target agree on how large pointers are. Say that addresses
2373 are 32 bits long. Register the address_to_pointer and
2374 pointer_to_address conversion functions. Since no registers are
2375 convertible now, register generic_register_convertible_not as the
2376 gdbarch_register_convertible method instead of
2377 d10v_register_convertible. Remove registrations for
2378 d10v_register_convert_to_virtual,
2379 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
2380 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
2381 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
2382 gdbarch_d10v_convert_iaddr_to_raw.
2384 * printcmd.c (print_scalar_formatted): If we are printing an
2385 address, remember that TARGET_ADDR_BIT is not always equal to
2388 * valops.c (value_cast): When casting a pointer to an integer,
2389 don't convert it to an address.
2391 2001-07-10 Andrew Cagney <ac131313@redhat.com>
2393 * remote-utils.h (struct serial): Declare as opaque. Remove
2394 include of "serial.h".
2395 * Makefile.in (remote_utils_h): Update.
2397 * monitor.h (struct serial): Declare as opaque. Remove include of
2399 (struct monitor_ops): Replace serial_t with `struct serial *'.
2400 * monitor.c (monitor_desc): Ditto.
2402 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
2404 * mips-linux-tdep.c: New file.
2405 * mips-linux-nat.c: New file.
2406 * config/mips/linux.mh: New file.
2407 * config/mips/linux.mt: New file.
2408 * config/mips/xm-linux.h: New file.
2409 * config/mips/nm-linux.h: New file.
2410 * config/mips/tm-linux.h: New file.
2411 * configure.host: Recognize mips*-*-linux*.
2412 * configure.tgt: Likewise.
2413 * NEWS: Mention mips*-*-linux* port.
2415 2001-07-09 Andrew Cagney <ac131313@redhat.com>
2417 * serial.h (struct serial): Rename `struct _serial_t'.
2418 * serial.c (XMALLOC): Define.
2419 (serial_open): Update. Use XMALLOC.
2420 (serial_fdopen): Ditto.
2422 2001-07-07 Andrew Cagney <ac131313@redhat.com>
2424 * gdbtypes.h (builtin_type_void_data_ptr): Rename
2426 * gdbtypes.c (builtin_type_void_data_ptr): Update.
2427 (build_gdbtypes): Update.
2428 (_initialize_gdbtypes): Update.
2429 * values.c (value_as_pointer): Update.
2430 * utils.c (host_pointer_to_address): Update.
2431 (address_to_host_pointer): Update.
2433 2001-07-08 Andrew Cagney <ac131313@redhat.com>
2435 * remote-udi.c (udi_wait): Make type, instead of name, of first
2438 2001-07-07 Andrew Cagney <ac131313@redhat.com>
2440 * ser-mac.c: Make obsolete.
2441 * Makefile.in (ser-mac.o): Ditto.
2443 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
2445 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
2446 (read_memory_region, get_descriptor, display_descriptor)
2447 (go32_sldt, go32_sgdt, go32_sidt): New functions.
2448 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
2449 away `disable' from dos.h, since breakpoint.h defines an enum
2450 member of the same name, and GCC 2.7.2 barfs.
2451 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
2452 dos-gdt, and dos-idt, all of them in the "info" class
2454 2001-07-07 Kevin Buettner <kevinb@redhat.com>
2456 * procfs.c (create_procinfo): Allocate space for saved_entryset
2458 (destroy_one_procinfo): Free space allocated to saved_entryset
2461 2001-07-07 Andrew Cagney <ac131313@redhat.com>
2463 * TODO (5.1): Update.
2465 2001-07-07 Andrew Cagney <ac131313@redhat.com>
2467 * symtab.c (main_name): New function.
2468 (set_main_name): New function.
2469 * symtab.h: Declare.
2472 From 2000-03-05 Anthony Green <green@redhat.com>:
2473 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
2475 * blockframe.c (inside_main_func): Use main_name instead of
2477 * symtab.c (find_main_psymtab): Ditto.
2478 * source.c (select_source_symtab): Ditto.
2479 * nlmread.c (nlm_symfile_read): Ditto.
2480 * rs6000-tdep.c (skip_prologue): Ditto.
2482 2001-07-07 Andrew Cagney <ac131313@redhat.com>
2484 * TODO: Convert most items into PRs.
2486 2001-07-07 Mark Kettenis <kettenis@gnu.org>
2488 * lin-lwp.c (status_to_str): New function.
2489 (lin_lwp_wait): Use it to print debug messages where appropriate.
2491 2001-07-06 Michael Chastain <chastain@redhat.com>
2493 * i387-tdep.c (print_i387_value): Fix pointer glitch.
2495 2001-07-07 Mark Kettenis <kettenis@gnu.org>
2497 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
2498 commented with "paranoia" into gdb_assert.
2499 (select_event_lwp_callback): Likewise.
2500 (cancel_breakpoints_callback): Bail out early if LP is the event
2501 LWP. Add comment about backup up breakpoints. Fix formatting and
2503 (select_event_lwp): Make solely repsonsible for switching event
2504 LWP. Fix formatting and remove bogus "ERROR" debug message.
2505 Don't backup breakpoints from here.
2506 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
2507 handle that. Only call select_event_lwp if we're not waiting for
2508 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
2510 2001-07-06 Michael Snyder <msnyder@redhat.com>
2512 * procfs.c (procfs_resume): Silence noisy warning.
2514 2001-06-12 Michael Snyder <msnyder@redhat.com>
2516 * lin-lwp.c: Prevent thread starvation by using a monte carlo
2517 method to choose which of several event threads to handle next.
2519 (stop_wait_callback): Defer pushback of breakpoint events until
2520 later; add SIGTRAP events to the queue of unhandled events.
2521 Keep calling waitpid until SIGSTOP retrieved. If more than one
2522 non-SIGSTOP event is retrieved, push them back onto the process
2524 (count_events_callback, select_singlestep_lwp_callback,
2525 select_event_lwp_callback, cancel_breakpoints_callback,
2526 select_event_lwp): New functions. Implement monte carlo method
2527 for selecting which of several SIGTRAP threads to handle next.
2528 Push back the breakpoint event for all threads other than the
2530 (lin_lwp_wait): Call select_event_lwp to decide which of several
2531 sigtrapped lwps to handle next.
2532 (resume_callback): Disable code that attempts to handle
2533 step_resume breakpoints. Let core gdb handle this.
2535 2001-07-06 Jim Blandy <jimb@redhat.com>
2537 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
2538 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
2539 (build_gdbtypes): Initialize it.
2540 (_initialize_gdbtypes): Swap it.
2542 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
2544 * mips-tdep.c (mips32_op): Correct offset.
2545 (itype_op): Likewise.
2546 (itype_rs): Fix formatting.
2547 (itype_immediate): Fix formatting.
2548 (jtype_op): Correct offset.
2549 (jtype_target): Fix formatting.
2550 (rtype_op): Correct offset.
2551 (rtype_rs): Fix formatting.
2552 (rtype_rt): Likewise.
2553 (rtype_rd): Likewise.
2554 (rtype_shamt): Likewise.
2555 (rtype_funct): Likewise.
2557 (mips32_next_pc): Fix formatting and comments. Recognize
2558 coprocessor 1 branches. Check the correct field for BLT family
2559 branches. Use itype_rt instead of itype_rs for the second register
2560 of a BNE or BNEL branch. Move (unreachable) default case.
2562 2001-07-04 Andrew Cagney <ac131313@redhat.com>
2564 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
2565 (ui_out_is_mi_like_p): Declare.
2566 * ui-out.c (ui_out_is_mi_like_p): Define.
2567 (default_ui_out_impl): Initialize is_mi_like_p to zero.
2568 * cli-out.c (cli_ui_out_impl): Ditto.
2569 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
2570 (watchpoint_check, print_one_breakpoint, mention): Ditto.
2571 * infrun.c (print_stop_reason, normal_stop): Ditto.
2573 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
2575 * mips-tdep.c (mips_software_single_step): New function.
2576 * config/mips/tm-mips.h: Add prototype for
2577 mips_software_single_step.
2579 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
2581 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
2583 (fill_gregset): Likewise.
2585 2001-07-05 Andrew Cagney <ac131313@redhat.com>
2587 * objfiles.c (open_mapped_file): Use lbasename instead of
2590 2001-07-05 Jim Blandy <jimb@redhat.com>
2592 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
2593 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
2594 d10v_write_sp, d10v_write_fp, d10v_read_fp,
2595 d10v_push_return_address): Call the functions d10v_make_daddr,
2596 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
2597 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
2598 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
2599 D10V_CONVERT_DADDR_TO_RAW.
2601 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
2603 2001-07-05 Mark Kettenis <kettenis@gnu.org>
2605 * config/i386/xm-go32.h (HOST_I386): Removed.
2606 * config/i386/xm-linux.h (HOST_I386): Removed.
2608 2001-07-04 Mark Kettenis <kettenis@gnu.org>
2610 * i387-tdep.c (print_i387_value): Add extra space after final full
2613 2001-07-04 Andrew Cagney <ac131313@redhat.com>
2615 * TODO (5.1): Update. Doco changes committed.
2617 2001-06-29 Andrew Cagney <ac131313@redhat.com>
2619 * config/arm/tm-arm.h: Include "floatformat.h".
2621 2001-06-29 Andrew Cagney <ac131313@redhat.com>
2623 * i387-tdep.c: Include "gdb_assert.h".
2624 (print_i387_value): Use extract_floating to extract the FP value
2625 from a zero padded local buffer.
2627 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2629 * TODO: Delete all thread items. The thread code was overhauled.
2631 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
2633 * memattr.c (create_mem_region): Move n to next memory region,
2634 to avoid infinite loop.
2636 * memattr.h: Add copyright statement.
2639 2001-07-04 Jim Blandy <jimb@redhat.com>
2641 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
2642 (read_partial_die): Delete fourth argument; we return this info in
2643 the struct partial_die_info object itself now.
2644 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
2645 has_pc_info field of the partial die struct, rather than passing a
2646 variable by reference to read_partial_die.
2648 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
2649 code in loop condition.
2651 2001-07-03 Michael Snyder <msnyder@redhat.com>
2653 * thread_db (find_new_threads_callback, thread_db_thread_alive,
2654 attach_thread): Update comments.
2656 2001-06-29 Ken Whaley <ken@believe.com>
2658 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
2659 to TD_THR_UNKNOWN when looking for defunct zombie threads.
2660 (thread_db_thread_alive): Ditto.
2661 (find_new_threads_callback): Ditto.
2663 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
2665 * MAINTAINERS: Add myself to the write-after-approval list.
2667 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
2669 * solib-svr4.c: Include "elf/mips.h".
2670 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
2672 2001-07-02 Jim Blandy <jimb@redhat.com>
2674 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
2675 dump_die_list, store_in_ref_table, follow_die_ref): Make these
2676 static; they're private functions.
2678 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
2680 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
2682 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
2684 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
2686 2001-06-29 Andrew Cagney <ac131313@redhat.com>
2688 * config/djgpp/fnchange.lst: Sort.
2690 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2692 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
2693 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
2695 2001-06-29 Andreas Jaeger <aj@suse.de>
2697 * MAINTAINERS: Add myself to the write-after-approval list.
2699 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2701 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
2702 (get_hex_word): Don't use HOST_BYTE_ORDER.
2703 (array_fetch_registers): Add variable ``reg''. Use
2704 store_unsigned_integer to byte-swap the register. Delete unused
2707 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2709 * MAINTAINERS: Add Per Bothner to Java maintainers.
2711 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2713 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
2714 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
2715 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
2717 * MAINTAINERS: Update. arm-elf builds.
2719 2001-06-28 Jim Blandy <jimb@redhat.com>
2721 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
2723 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
2724 d10v_breakpoint_from_pc, d10v_register_byte,
2725 d10v_register_raw_size, d10v_register_virtual_size,
2726 d10v_register_virtual_type, d10v_register_convertible,
2727 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
2728 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
2729 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
2730 d10v_store_struct_return, d10v_store_return_value,
2731 d10v_extract_struct_value_address, d10v_frame_saved_pc,
2732 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
2733 d10v_frame_chain, d10v_frame_init_saved_regs,
2734 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
2735 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
2736 d10v_push_return_address, d10v_push_arguments,
2737 d10v_extract_return_value): Make these functions static.
2739 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2741 From Fernando Nasser:
2742 * infrun.c (handle_inferior_event): Handle "nexti" inside function
2745 2001-06-28 Michael Snyder <msnyder@redhat.com>
2747 * infrun.c (handle_inferior_event): Replace prev_pc test in all
2748 calls to bpstat_stop_status (removed in 1999-09-24). This test
2749 helps distinguish stepping over a breakpoint trap from stepping
2750 thru a jump to the instruction after a breakpoint trap.
2751 (handle_inferior_event): Don't bother writing the PC if
2752 DECR_PC_AFTER_BREAK is zero (optimization).
2753 * breakpoint.c (bpstat_stop_status): Add comment explaining the
2754 purpose and usage of the "not_a_breakpoint" argument in computing
2755 the breakpoint address.
2757 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2759 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2760 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
2761 (setreg_resp_delim_pattern): Likewise.
2762 (setmem_resp_delim_fastmap): New buffer.
2763 (setreg_resp_delim_fastmap): Likewise.
2764 (monitor_open): Initialize above regexp if they are defined.
2765 (monitor_write_memory): Use regexp to check the result of write.
2766 (monitor_store_register): Likewise to check result of register set.
2768 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2770 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
2771 * coff-solib.c: Include symfile.h and objfiles.h to make
2772 OBJF_SHARED visible.
2774 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2776 * configure.in (--enable-gdbmi): Enable by default.
2777 * configure: Regenerate.
2781 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
2783 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
2784 explaining the consequences of always returning zero. No code
2787 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2789 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
2790 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
2791 to TARGET_SIGNAL_REALTIME_127.
2792 * target.c (struct signals): Add SIG63 to SIG127.
2793 (target_signal_from_host): Handle up to 127 signals.
2794 (do_target_signal_to_host): Likewise.
2796 2001-06-27 Andrew Cagney <ac131313@redhat.com>
2798 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
2799 from possibly unsigned char.
2801 2001-06-27 Andrew Cagney <ac131313@redhat.com>
2803 * ser-ocd.c: Delete file.
2804 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
2805 (ser-ocd.o): Delete target.
2809 2001-06-27 Andrew Cagney <ac131313@redhat.com>
2811 * MAINTAINERS (Write After Approval): Sort.
2812 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
2814 2001-06-26 Andrew Cagney <ac131313@redhat.com>
2816 * breakpoint.c (breakpoint_1): Always output the breakpoint
2817 headings. Leave it to ui-out to decide which
2819 2001-06-25 Andrew Cagney <ac131313@redhat.com>
2821 * stack.c (print_frame): For ui_out, output a list of arguments.
2823 2001-06-25 Kevin Buettner <kevinb@redhat.com>
2825 * MAINTAINERS (paper trail): Update.
2827 2001-06-25 Michael Snyder <msnyder@redhat.com>
2829 * infrun.c: Eliminate the "thread_step_needed" state variable,
2830 and replace it with a relatively simple test in resume.
2831 (resume): Replace thread_step_needed logic with a test for
2832 stepping, breakpoint_here_p and breakpoints_inserted.
2833 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
2834 (proceed): Discard thread_step_needed logic.
2835 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
2836 Discard thread_step_needed logic.
2838 2001-06-24 Fernando Nasser <fnasser@redhat.com>
2840 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
2841 * rdi-share/host.h: Add missing parenthesis in conditional.
2843 2001-06-22 J.T. Conklin <jtc@redback.com>
2845 * configure.in: include nlist.h when checking for member som_addr
2847 * configure: regenerate.
2849 2001-06-21 Keith Seitz <keiths@redhat.com>
2851 * cli-out.c (cli_out_new): Initialize new structure member
2854 2001-06-20 Andrew Cagney <ac131313@redhat.com>
2856 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
2857 (table_header_ftype): Ditto.
2858 * cli-out.c (cli_table_header): Update.
2859 * ui-out.c (ui_out_table_header): Update.
2860 (uo_table_header): Update.
2861 (default_table_header): Update.
2862 (append_header_to_list): Update.
2863 (struct ui_out_header): Add field ``col_name''.
2864 (append_header_to_list): Use xstrdup. Initialize col_name.
2865 * breakpoint.c (breakpoint_1): Pass COL_NAME to
2866 ui_out_table_header.
2868 2001-06-19 Andrew Cagney <ac131313@redhat.com>
2870 * cli-out.c: Include "gdb_assert.h'.
2871 (struct ui_out_data): Add field ``suppress_output.
2872 (cli_table_begin): When NR_ROWS is zero, suppress_output.
2873 (cli_table_end): Clear suppress_output.
2874 (cli_table_body): Check suppress_output.
2875 (cli_table_header, cli_begin): Ditto.
2876 (cli_end, cli_field_int, cli_field_skip): Ditto.
2877 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
2878 (cli_text, cli_message, cli_wrap_hint): Ditto.
2879 * breakpoint.c (breakpoint_1): Close the ui_out table before
2880 printing the breakpoint not found message.
2882 2001-06-18 Andrew Cagney <ac131313@redhat.com>
2884 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
2885 (default_table_begin): Ditto.
2886 (uo_table_begin): Ditto.
2887 * cli-out.c (cli_table_begin): Ditto.
2888 * ui-out.h (ui_out_table_begin): Update
2889 (table_begin_ftype): Update.
2890 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
2893 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2895 * breakpoint.c (breakpoint_1): Restructure. Compute the
2896 nr_printable_breakpoints. Move the header output to before the
2897 main print breakpoints loop.
2898 (user_settable_breakpoint): New function.
2900 2001-06-18 Andrew Cagney <ac131313@redhat.com>
2902 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
2903 "mi", "mi0" and "mi1".
2905 2001-06-17 Andrew Cagney <ac131313@redhat.com>
2907 * gdbarch.sh: Generate an error when conflicting macro
2908 definitions. Generate an error when both pure multi-arch and
2910 * gdbarch.h, gdbarch.c: Regenerate.
2911 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
2913 2001-06-17 Andrew Cagney <ac131313@redhat.com>
2915 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
2916 GDB_MULTI_ARCH_PARTIAL from two.
2918 2001-06-17 Fernando Nasser <fnasser@redhat.com>
2920 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
2921 * cli/cli-script.c (free_command_lines): Reset list pointer.
2923 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2925 * arch-utils.c (init_frame_pc_default): New function
2926 * arch-utils.h (init_frame_pc_default): Declare.
2927 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
2928 not init_frame_pc_noop.
2929 * gdbarch.h, gdbarch.c: Re-generate.
2930 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
2931 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
2934 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2936 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
2938 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2940 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
2941 (CANNOT_STORE_REGISTER): Ditto.
2942 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
2943 (CANNOT_STORE_REGISTER): Ditto.
2944 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
2945 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
2946 * arch-utils.h (cannot_register_not): Define.
2947 * arch-utils.c (cannot_register_not): Declare.
2949 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2951 * gdbarch.sh: Clarify pre/post default
2952 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
2953 * blockframe.c (get_prev_frame): Remove #ifdef from around
2954 INIT_FRAME_PC_FIRST call.
2955 * arch-utils.c (init_frame_pc_noop): Define.
2956 * arch-utils.h (init_frame_pc_noop): Declare.
2957 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
2958 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
2959 * mips-tdep.c (mips_init_frame_pc_first): Make static.
2960 (mips_gdbarch_init): Initialize init_frame_pc_first.
2961 (mips_dump_tdep): Update.
2963 2001-06-15 Michael Snyder <msnyder@redhat.com>
2965 * infrun.c (context_switch): New function. Abstract the operation
2966 of saving and restoring infrun's state when switching threads.
2967 (handle_inferior_event): Normalize the handling of the 'thread hop'
2968 event (when the wrong thread hits a thread-specific breakpoint,
2969 and we need to solo-step that thread past the breakpoint).
2970 Call keep_going, instead of target_resume. Handle the subsequent
2971 singlestep-trap as a normal event instead of just resuming.
2973 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2975 * arch-utils.c (core_addr_identity): New function. Rename
2976 default_convert_from_func_ptr_addr.
2977 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
2978 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
2979 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
2980 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
2981 * mips-tdep.c (mips_addr_bits_remove): Make static.
2982 (mips_gdbarch_init): Initialize addr_bits_remove.
2984 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2986 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
2987 * configure.tgt: Add S/390 31 & 64 bit target configuration.
2988 * configure.host: Ditto for host.
2990 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2992 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
2993 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
2995 * gdbarch.h, gdbarch.c: Regenerate.
2996 * values.c (value_being_returned): Change the reference to
2997 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
2999 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
3001 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
3002 Write After Approval list.
3004 2001-06-14 Michael Snyder <msnyder@redhat.com>
3006 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
3007 set_remote_protocol_qSymbol_packet_cmd): New functions.
3008 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
3009 (remote_check_symbols): New function. Implement qSymbol packet,
3010 allowing target to request symbol lookup service from gdb.
3011 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
3012 allowing symbol lookup from exec_bfd on connection to target.
3013 (remote_new_objfile): New function. Catch new objfile notifications
3014 from shared library module, and call remote_check_symbols.
3015 (_initialize_remote): Hook remote_new_objfile into the shared
3016 library notification chain. Add "set remote symbol-lookup" command.
3018 2001-06-14 Keith Seitz <keiths@redhat.com>
3020 * tracepoint.c (trace_command): We now have tracepoint
3021 events. Get rid of those ugly hooks.
3022 (tracepoint_operation): Likewise.
3023 (trace_pass_command): Likewise.
3025 2001-06-13 Michael Snyder <msnyder@redhat.com>
3027 * gdbthread.h (struct thread_info): Add new fields:
3028 current_line, current_symtab, step_sp, for saved infrun state.
3029 * thread.c (save_infrun_state, load_infrun_state): Save and
3030 restore current_line, current_symtab, and step_sp.
3031 (add_thread): Rather than adding assignments to initialize
3032 the new fields, just use memset (tp, 0, sizeof (*tp).
3033 This way future new fields will not be overlooked.
3034 * infrun.c (handle_inferior_event): Save and restore save_sp,
3035 current_line, and current_symtab when switching threads.
3037 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
3039 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
3042 2001-06-11 Andrew Cagney <ac131313@redhat.com>
3044 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
3045 (lookup_partial_symtab, file_matches): Ditto.
3046 (make_source_files_completion_list): Ditto.
3047 (make_file_symbol_completion_list): Ditto. Make local char*
3048 variable ``tail'' constant.
3049 (make_source_files_completion_list): Ditto with ``base_name''.
3050 * source.c (open_source_file): Use lbasename. Make ``p'' const
3053 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
3055 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
3056 (SLASH_STRING): Remove unused definitions.
3057 * config/i386/xm-cygwin.h: Likewise.
3059 2001-06-12 Andrew Cagney <ac131313@redhat.com>
3061 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
3062 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
3063 * ui-out.h: Update declarations.
3065 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
3067 * source.c (openp): Make parameters ``path'' and ``string''
3069 (openp): Use alloca to safely duplicate ``string''. Make local
3070 variables ``p'' and ``p1'' constant. Delete char* casts.
3073 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
3074 (lookup_symtab, lookup_partial_symtab): Ditto.
3075 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
3077 2001-06-11 Andrew Cagney <ac131313@redhat.com>
3079 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
3080 (ui_out_table_header, ui_out_field_int): Ditto.
3081 (ui_out_field_core_addr, ui_out_field_string): Ditto.
3082 (ui_out_field_stream, ui_out_field_fmt): Ditto.
3083 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
3084 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
3085 (ui_out_field_core_addr, ui_out_field_stream): Update.
3086 (ui_out_field_string, ui_out_field_fmt): Update.
3087 (ui_out_text, ui_out_message): Update.
3088 (append_header_to_list): Make char* parameters constant.
3089 (uo_table_header, uo_table_begin): Ditto.
3090 (uo_field_int, uo_field_skip): Ditto.
3091 (uo_field_string, uo_field_fmt): Ditto.
3092 (uo_text, uo_message): Ditto.
3094 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
3096 * completer.c (gdb_completer_loc_break_characters): New variable.
3097 (line_completion_function): If we are completing on locations,
3098 back up the start of word pointer past all characters which can
3099 appear in a location spec.
3100 (location_completer): New function.
3102 * completer.h: Add prototype for location_completer.
3104 * symtab.c (make_source_files_completion_list)
3105 (add_filename_to_list, not_interesting_fname): New functions.
3106 (filename_seen): New function, body extracted from
3107 output_source_filename.
3108 (output_source_filename): Call filename_seen to check if the file
3109 was already printed.
3110 (make_symbol_completion_list): If TEXT includes a
3111 double-quoted string, return an empty list, not NULL.
3112 (make_file_symbol_completion_list): New function, similar to
3113 make_symbol_completion_list but with an additional argument
3116 * symtab.h (make_file_symbol_completion_list)
3117 (make_source_files_completion_list): Add prototypes.
3119 * breakpoint.c (_initialize_breakpoint): Make location_completer
3120 be the completion function for all commands which set breakpoints
3122 (top-level): #include "completer.h".
3124 * tracepoint.c (_initialize_tracepoint): Make location_completer
3125 be the completion function for the "trace" command.
3126 (top-level): #include "completer.h".
3128 * printcmd.c (_initialize_printcmd): Make location_completer be
3129 the completion function for the "print", "inspect", "call", and
3130 "disassemble" commands.
3131 (top-level): #include "completer.h".
3133 * infcmd.c (_initialize_infcmd): Make location_completer be the
3134 completion function for the "go", "jump", and "until" commands.
3135 (top-level): #include "completer.h".
3137 2001-06-10 Christopher Faylor <cgf@redhat.com>
3139 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
3140 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
3141 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
3143 * m32r-rom.c: Ditto.
3145 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
3147 (get_ds_base): Remove _MSC_VER version of this function.
3148 * nindy-share/ttyflush.c: Ditto.
3149 * rdi-share/host.h: Ditto.
3150 * ser-go32.c (dos_readchar): Remove call to obsolete function.
3151 * remote-sim.c (gdb_os_poll_quit): Ditto.
3152 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
3154 * main.c (captured_main): Eliminate special Cygwin checks.
3155 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
3157 2001-06-09 Andrew Cagney <ac131313@redhat.com>
3159 * Makefile.in (gdbcmd_h): Add ui_out_h.
3160 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
3161 (thread.o, top.o): Ditto.
3163 * ui-out.h (table_begin_ftype): Make string parameters constant.
3164 (table_header_ftype): Ditto.
3165 (field_int_ftype): Ditto.
3166 (field_skip_ftype): Ditto.
3167 (field_string_ftype): Ditto.
3168 (field_fmt_ftype): Ditto.
3169 (text_ftype): Ditto.
3170 (message_ftype): Ditto.
3171 * cli-out.c (cli_table_begin): Ditto.
3172 (cli_table_header): Ditto.
3173 (cli_field_int): Ditto.
3174 (cli_field_skip): Ditto.
3175 (cli_field_string): Ditto.
3176 (cli_field_fmt): Ditto.
3178 (cli_message): Ditto.
3179 (out_field_fmt): Ditto.
3180 * ui-out.c (default_table_begin): Ditto.
3181 (default_table_header): Ditto.
3182 (default_field_int): Ditto.
3183 (default_field_skip): Ditto.
3184 (default_field_string): Ditto.
3185 (default_field_fmt): Ditto.
3186 (default_text): Ditto.
3187 (default_message): Ditto.
3189 2001-06-08 Michael Snyder <msnyder@redhat.com>
3191 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
3192 remove_breakpoint, so that the subsequent test for
3193 bpt->inserted will succeed, and duplicates will be fixed up.
3195 2001-06-08 Per Bothner <per@bothner.com>
3197 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
3199 2001-06-07 Keith Seitz <keiths@redhat.com>
3201 * tracepoint.c (tracepoint_opertation): Add ui event
3203 (trace_pass_command): Ditto.
3205 2001-06-07 Andrew Cagney <ac131313@redhat.com>
3207 * MAINTAINERS (Write After Approval): Note the entry criteria.
3208 (HP/PA): Jeff Law stepped down
3210 2001-06-07 Jim Blandy <jimb@redhat.com>
3212 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
3213 variable values as operators.
3215 2001-06-07 Keith Seitz <keiths@redhat.com>
3217 * gdb-events.sh: Fix quote escaping which was obsoleted
3220 2001-06-07 Keith Seitz <keiths@redhat.com>
3222 * gdb-events.sh: Make if statements and tests
3223 a little more portable.
3224 Don't use shell's echo command to put strings containing
3225 escaped characeters into a file -- different flavors of /bin/sh
3226 require differnt levels of escaping. Use cat <<EOF instead.
3227 Our internal field separator is a colon. Change all
3228 commands which assume it is a space.
3230 2001-06-06 Mark Kettenis <kettenis@gnu.org>
3232 * lin-lwp.c (struct lwp_info): Add member `resumed'.
3233 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
3234 LWP it's called for.
3235 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
3236 SIGSTOP is reported.
3237 (resume_clear_callback): New function.
3238 (resume_set_callback): New function.
3239 (lin_lwp_resume): Mark all LWP's that we're going to resume as
3240 resumed, and unmark all others.
3241 (status_callback): Only report a pending wait status if we pretend
3242 that LP has been resumed.
3243 (resumed_callback): New function.
3244 (lin_lwp_wait): Add assertions to check that LWP's are properly
3245 marked as resumed. Partially revert 2001-05-25 patch by Michael
3246 Snyder: do not resume all threads. Add comment explaining the
3247 problems associated with this bit of code.
3249 2001-06-07 Keith Seitz <keiths@redhat.com>
3251 * MAINTAINTERS: Syd Polk is stepping down from
3252 maintaining libgui. I am replacing him.
3254 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
3256 * config/mips/tm-irix6.h: New file.
3258 * config/mips/irix6.mh: New file.
3260 * config/mips/irix6.mt: New file.
3262 * config/mips/xm-irix6.h: New file.
3264 * config/mips/nm-irix6.h: New file.
3266 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
3267 disassembler info in tm_print_insn_info as appropriate for the N32
3268 ABI. Force N32 ABI to be the default if the CPU is R8000 or
3271 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
3273 * configure.host (mips*-sgi-irix6*): Ditto.
3275 2001-06-07 Andrew Cagney <ac131313@redhat.com>
3277 * gnu-v3-abi.c: Include "gdb_assert.h".
3278 (build_gdb_vtable_type): Replace abort() with gdb_assert().
3280 2001-06-06 Jim Blandy <jimb@redhat.com>
3282 * cp-abi.h: Rearrange code to put documentation comments above the
3283 functions we export. The actual function table itself simply
3284 refers to those functions. Minor doc fixes.
3286 * gdbarch.sh: Changes to effect the following:
3287 * gdbarch.c (initialize_non_multiarch): New function.
3288 * gdbarch.h (initialize_non_multiarch): New declaration.
3289 * arch-utils.c (initialize_current_architecture): For
3290 non-multiarch configurations, call initialize_non_multiarch.
3292 2001-06-06 Andrew Cagney <ac131313@redhat.com>
3294 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
3296 (compare_symbols): Ditto.
3298 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
3300 * arch-utils.c (generic_prepare_to_proceed): Allow for having
3301 stopped due to a Ctrl-C as well as breakpoints.
3303 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
3304 support thread switches after Ctrl-C.
3305 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
3306 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
3307 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
3309 2001-06-06 Jim Blandy <jimb@redhat.com>
3311 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
3312 per-architecture data should be registered at initialization time,
3313 before any gdbarch objects get used, so the generality is
3316 2001-06-06 Keith Seitz <keiths@redhat.com>
3318 * gdb-events.sh (function_list): Add tracepoint_create,
3319 tracepoint_delete, and tracepoint_modify events.
3320 * gdb-events.c: Regenerated.
3321 * gdb-events.h: Regenerated.
3323 2001-06-06 Keith Seitz <keiths@redhat.com>
3325 * gdb-events.sh: Update copyrights.
3326 Change free to xfree.
3327 * gdb-events.c: Regenerated.
3328 * gdb-events.h: Regenerated.
3330 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
3332 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
3333 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
3334 * completer.c: Ditto.
3335 * cli/cli-cmds.c (cd_command): Ditto.
3337 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
3339 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
3340 (mips_set_processor_type_command): Remove unused variable j.
3341 (mips_breakpoint_from_pc): Declare breakpoint instruction
3342 sequences as unsigned char, to avoid compiler warnings.
3344 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
3345 instead of system-specific define's like _WIN32 and __MSDOS__.
3346 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
3348 (top-level): #include "filenames.h".
3350 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
3351 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
3352 (top-level): #include "filenames.h".
3354 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
3355 (SLASH_STRING): Define only for _WIN32.
3357 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
3360 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
3361 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
3362 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
3363 (top-level): #include "filenames.h".
3365 * go32-nat.c (go32_wait): Change the return value to ptid_t.
3367 * config/djgpp/fnchange.lst: Add two new files in the
3368 gdb/testsuite/gdb.c++/ directory to the remapped names.
3370 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
3372 2001-06-01 Jim Blandy <jimb@redhat.com>
3374 Expand the gdbarch per-architecture data vector as needed, rather
3375 than requiring that all per-architecture data be registered before
3376 the first gdbarch object is allocated.
3377 * gdbarch.sh: Changes to effect the following:
3378 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
3379 declarations and definitions.
3380 (check_gdbarch_data): New function, and declaration.
3381 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
3382 zero is good enough.
3383 (free_gdbarch_data): Tolerate a null data pointer. Free only
3384 those data items gdbarch->data actually has allocated.
3385 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
3386 (gdbarch_update_p): No need to call init_gdbarch_data.
3388 2001-06-01 Kevin Buettner <kevinb@redhat.com>
3390 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
3391 on types that we wish to recurse on.
3392 (slot_alignment_is_next_even): New function.
3393 (ia64_push_arguments): Call slot_alignment_is_next_even() to
3394 examine the type in order to decide if it's necessary to skip
3397 2001-06-01 Michael Snyder <msnyder@redhat.com>
3399 * thread.c (delete_step_resume_breakpoint): New function.
3400 Maintain internal consistency of the thread list while deleting
3401 a step_resume_breakpoint.
3402 * gdbthread.h (delete_step_resume_breakpoint): Export.
3403 * breakpoint.c (bpstat_find_step_resume_breakpoint):
3404 Make thread-aware: don't return a step_resume_breakpoint
3405 for the wrong thread.
3406 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
3407 instead of delete_breakpoint_current_contents.
3408 (fetch_inferior_event): Ditto.
3409 (handle_inferior_event): Call delete_step_resume_breakpoint
3410 instead of delete_breakpoint.
3411 * infrun.c (handle_inferior_event): After singlestepping over a
3412 thread-specific breakpoint, use currently_stepping() to decide
3413 whether to step or continue.
3415 2001-06-01 Jim Blandy <jimb@redhat.com>
3417 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
3418 these static --- there's no reason other files should use these.
3420 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
3423 * partial-stab.h: New complaint: function_outside_compilation_unit.
3424 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
3425 complain, and don't try to set pst's start address.
3427 2001-05-31 Kevin Buettner <kevinb@redhat.com>
3429 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
3430 match the location at which the kernel is placing the sigcontext
3433 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
3434 (refine_prologue_limit): New function.
3435 (examine_prologue): Further limit number of instructions
3436 scanned by calling refine_prologue_limit(). Revise way in
3437 which the end of prologue address is computed for frameless
3440 2001-05-29 Christopher Faylor <cgf@redhat.com>
3442 * partial-stab.h: Revert previous patch.
3444 2001-05-29 Christopher Faylor <cgf@redhat.com>
3446 * partial-stab.h: Consistently guard against pst being NULL.
3448 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
3450 * symfile.c (compare_psymbols, compare_symbols): Declare using
3451 PTR, as in the definition.
3452 * minsyms.c (compare_minimal_symbols): Likewise.
3453 * coffread.c (find_targ_sec): Likewise.
3454 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
3455 * mipsread.c (alphacoff_locate_sections): Likewise.
3456 * mdebugread.c (compare_blocks): Likewise.
3458 2001-05-25 Nick Duffek <nsd@redhat.com>
3460 * solib.c (update_solib_list): Move target_resize_to_sections()
3461 into solib_map_sections() loop.
3462 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
3463 bfd_get_arch_size() fails.
3465 2001-05-25 Nick Duffek <nsd@redhat.com>
3467 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
3469 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
3470 with solib-osf.o and solib.o.
3471 * config/alpha/alpha-osf2.mh: Likewise.
3472 * config/alpha/alpha-osf3.mh: Likewise.
3473 * solib-osf.c: New file, renamed and largely rewritten from
3476 2001-05-25 Michael Snyder <msnyder@redhat.com>
3478 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
3479 to consume the SIGSTOP generated by PTRACE_ATTACH.
3480 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
3481 try again to get the SIGSTOP event.
3482 (lin_lwp_wait): Resume all threads when ignoring a signal.
3483 This will insure that newly attached threads get resumed.
3484 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
3485 * remote.c (remote_write_bytes): Update 'p' packet pointer.
3487 2001-05-25 Jim Blandy <jimb@redhat.com>
3489 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
3490 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
3491 useful value, then we should fix that instead.
3493 2001-05-24 Nick Duffek <nsd@redhat.com>
3495 * solist.h (struct so_list): Document the requirement that
3496 current_sos initialize some fields to 0.
3498 2001-05-24 Mark Kettenis <kettenis@gnu.org>
3500 * gnu-nat.c: Include <ctype.h>.
3501 (gnu_pid_to_exec_file): Add PID parameter.
3502 (set_sig_thread_cmd): Use PIDGET on return value from
3504 (proc_string): Use MERGEPID to construct argument to
3507 2001-05-22 Kevin Buettner <kevinb@redhat.com>
3509 * breakpoint.c (breakpoint_address_is_meaningful): New function.
3510 (check_duplicates): Don't compare non-meaningful addresses.
3512 2001-05-22 Michael Snyder <msnyder@redhat.com>
3514 * thread-db.c: Allow for defunct zombie threads.
3515 (attach_thread): Do not attempt to attach zombie thread.
3516 (thread_db_thread_alive): Return false for defunct zombie thread.
3517 (find_new_threads_callback): Don't add defunct zombie thread to list.
3519 2001-05-22 Jim Blandy <jimb@redhat.com>
3521 Add support for the GNU V3 C++ ABI.
3522 (Includes changes by Dan Berlin.)
3524 * gnu-v3-abi.c: New file.
3525 * minsyms.c: #include "value.h" and "cp-abi.h".
3526 (install_minimal_symbols): Check the minimal symbol table for
3527 symbols that look mangled in the V3 style, and select the V3 ABI
3529 * Makefile.in (SFILES): Add gnu-v3-abi.c.
3530 (COMMON_OBS): Add gnu-v3-abi.o.
3531 (gnu-v3-abi.o): Add new rule.
3532 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
3534 2001-05-21 Jim Blandy <jimb@redhat.com>
3536 * values.c (value_primitive_field): If we're extracting a base
3537 class, then the type of the result should be the base class being
3538 extracted, not the type of which it is a base class.
3540 * value.h (struct value): Doc fix, and rearrange members to place
3541 them near their explanations.
3543 2001-05-21 Michael Snyder <msnyder@redhat.com>
3545 * remote.c (remote_async_wait): Added new variable fieldsize.
3546 Add fieldsize (return value of hex2bin) to string pointer p.
3548 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3550 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
3551 (m68hc11_analyze_instruction): Update the pc correctly.
3552 (m68hc11_guess_from_prologue): Take into account the stack correction
3553 for the saving address.
3555 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
3557 Changes by Jim Ingham:
3559 * values.c (value_change_enclosing_type): New function. If the
3560 new enclosing type is larger than the old one, we need to allocate
3562 * value.h: Add value_change_enclosing_type prototype.
3563 * valops.c (value_cast): Use it.
3564 (value_assign): Use it.
3565 (value_addr): Use it.
3566 (value_ind): Use it.
3567 (value_full_object): Use it.
3569 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
3571 * values.c (value_static_field): Handle static fields that have a
3574 2001-05-17 Michael Snyder <msnyder@redhat.com>
3576 * blockframe.c (create_new_frame): Zero all the fields via memset,
3577 rather than zeroing them one by one.
3579 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
3581 * top.c (user_args): Remove unused declaration.
3583 2001-05-16 Michael Snyder <msnyder@redhat.com>
3585 * infcmd.c (do_registers_info): Move alloca outside of loop.
3587 2001-05-15 John S Kallal <jskallal@home.com>
3589 * remote.c (remote_wait): Added new variable fieldsize.
3590 Add fieldsize (return value of hex2bin) to string pointer p.
3592 2001-05-15 Mark Kettenis <kettenis@gnu.org>
3594 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
3597 2001-05-14 Kevin Buettner <kevinb@redhat.com>
3599 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
3600 Adjust format strings for printing LWPs to account for the fact
3601 that the type returned by GET_LWP() is now a long instead of an
3604 2001-05-14 Kevin Buettner <kevinb@redhat.com>
3606 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
3607 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
3608 (ptid_get_tid, ptid_equal): New function declarations.
3609 * infrun.c (null_ptid, minus_one_ptid): New variables.
3610 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
3611 (ptid_get_tid, ptid_equal): New functions.
3612 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
3613 inferior_ptid, and target_last_wait_ptid.
3615 * defs.h (ptid_t): Redefine to be a struct rather than an int.
3616 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
3617 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
3618 new ptid accessors and constructor.
3620 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
3621 MKLID, MKTID, ISTID): Provide new definitions for these macros.
3622 The old macros are retained, but disabled via #if 0 in order
3623 to aid in future restructuring. See FIXME.
3625 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
3626 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
3627 * infptrace.c (PIDGET, TIDGET): Likewise.
3628 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
3629 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
3630 * proc-service.c (MERGEPID): Likewise.
3631 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
3632 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
3633 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
3634 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
3636 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
3639 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
3640 (GET_LWP): Redefine in terms of ptid_get_lwp().
3641 (GET_PID): Redefine in terms of ptid_get_pid().
3642 (is_lwp): Redefine without the need for THREAD_FLAG.
3643 (BUILD_LWP): Redefine in terms of ptid_build().
3644 * lin-thread.c (THREAD_FLAG): Delete macro definition.
3645 (GET_LWP): Redefine in terms of ptid_get_lwp().
3646 (GET_PID): Redefine in terms of ptid_get_pid().
3647 (GET_THREAD): Redefine in terms of ptid_get_tid().
3648 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
3649 (is_lwp, is_thread): Redefine.
3650 (linux_child_wait, check_all_signal_numbers)
3651 (linuxthreads_discard_global_state, attach_thread): Declare these
3652 functions to squash warnings about missing declarations.
3653 * sol-thread.c (THREAD_FLAG): Delete macro definition.
3654 (GET_PID): Redefine in terms of ptid_get_pid().
3655 (GET_LWP): Redefine in terms of ptid_get_lwp().
3656 (GET_THREAD): Redefine in terms of ptid_get_tid().
3657 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
3658 (is_lwp, is_thread): Redefine.
3659 * thread-db.c (THREAD_FLAG): Delete macro definition.
3660 (GET_PID): Redefine in terms of ptid_get_pid().
3661 (GET_LWP): Redefine in terms of ptid_get_lwp().
3662 (GET_THREAD): Redefine in terms of ptid_get_tid().
3663 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
3664 (is_lwp, is_thread): Redefine.
3666 * corelow.c (add_to_thread_list, get_core_register_section):
3667 Eliminate hacks needed to prevent regressions when inferior_ptid
3668 wasn't wide enough to hold the core file thread id in the pid
3669 component of inferior_ptid.
3671 2001-05-14 Michael Snyder <msnyder@redhat.com>
3673 * remote.c (hex2bin): Make first argument const.
3674 Require explicit count, don't accept null-terminated str.
3675 (remote_resume, remote_async_resume): White space fix-up.
3676 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
3678 2001-05-13 Mark Kettenis <kettenis@gnu.org>
3680 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
3681 basename (NAME). The FreeBSD basename returns a pointer to a
3682 static buffer, even if it's simply returning a string identical to
3684 (lookup_partial_symtab): Likewise.
3686 2001-05-14 Michael Snyder <msnyder@redhat.com>
3688 * solib.c, solib.h: Add comment for function no_shared_libraries.
3690 2001-05-14 Kevin Buettner <kevinb@redhat.com>
3692 * solib.h (no_shared_libraries): Make declaration match definition
3695 2001-05-14 Andrew Cagney <ac131313@redhat.com>
3697 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
3698 * solib.h (no_shared_libraries): Declare.
3700 2001-05-12 Andrew Cagney <ac131313@redhat.com>
3702 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
3703 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
3704 user specified values when available.
3705 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
3706 architecture from info.bfd_arch_info.
3707 * gdbarch.c, gdbarch.h: Regenerate.
3709 2001-05-12 Fernando Nasser <fnasser@redhat.com>
3711 * remote-e7000.c (e7000_open): Check for bad baud rate.
3712 * remote-st.c (st2000_open): Ditto.
3714 2001-05-11 Jim Blandy <jimb@redhat.com>
3716 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
3717 and ui_out_tuple_end instead of ui_out_list_begin and
3720 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
3721 dependencies. Reorder dependencies to match #includes in file,
3722 for easier verification.
3724 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
3726 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
3727 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
3728 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
3729 * cli/cli-setshow.c: Ditto.
3730 * printcmd.c: Ditto.
3733 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
3734 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
3735 (ui_out_tuple_begin): New function.
3736 (ui_out_tuple_end): New function.
3737 (ui_out_tuple_begin_end): New function.
3738 (make_cleanup_ui_out_list_begin_end): Replace
3739 make_cleanup_ui_out_list_end function.
3740 * ui-out.h (ui_out_list_begin): Update declaration.
3741 (make_cleanup_ui_out_list_begin_end): Replace
3742 make_cleanup_ui_out_list_end declaration.
3743 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
3744 (ui_out_tuple_begin_end): Declare.
3746 2001-05-11 Jim Blandy <jimb@redhat.com>
3748 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
3750 2001-05-11 Andrew Cagney <ac131313@redhat.com>
3752 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
3753 * config/pa/tm-hppa.h: Remove trigraph.
3754 * hp-symtab-read.c (hpread_type_translate): Provide return value.
3755 (hpread_read_struct_type): Remove trigraph. Add parameter in
3757 (hpread_read_array_type): Provide return value.
3758 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
3760 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
3763 2001-05-11 Jim Blandy <jimb@redhat.com>
3765 * mips-tdep.c (mips_store_return_value,
3766 mips_extract_return_value): Pass arguments to
3767 return_value_location in the proper order.
3769 2001-05-11 Andrew Cagney <ac131313@redhat.com>
3771 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
3772 (version.c): Depends on file ``version.in''. Extract version
3773 number from ``version.in'' file.
3774 (clean mostlyclean): Update.
3775 * version.in: New file.
3778 2001-05-11 Kevin Buettner <kevinb@redhat.com>
3780 * breakpoint.c (set_raw_breakpoint): Add new parameter
3781 representing the breakpoint's type. Adjust all callers.
3782 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
3783 (create_thread_event_breakpoint): Don't test for zero return
3784 value from set_raw_breakpoint(). It can never be zero.
3785 (create_exception_catchpoint, watch_command_1): Move logic
3786 which calculates the breakpoint type prior to the call to
3787 set_raw_breakpoint().
3789 2001-05-11 Fernando Nasser <fnasser@redhat.com>
3791 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
3792 (hardwire_setbaudrate): Set errno to EINVAL and return with error
3793 if the conversion of the baud rate to code fails.
3795 2001-05-10 Andrew Cagney <ac131313@redhat.com>
3797 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
3798 * ui-out.c (struct ui_out_end_cleanup_data): Define.
3799 (do_cleanup_end): New function. Replace do_list_end.
3800 (make_cleanup_ui_out_end): New function.
3801 (make_cleanup_ui_out_begin_end): New function.
3802 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
3804 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
3806 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
3807 and make Kevin Buettner (kevinb@redhat.com) the reference person.
3809 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
3811 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
3813 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3815 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
3817 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
3819 * Makefile.in (mi-main.o): Compile with -Werror.
3821 2001-05-10 Michael Snyder <msnyder@redhat.com>
3823 * remote.c (remote_open_1): Call no_shared_libraries, so that
3824 symbols for shared libraries can be reloaded per session.
3825 (remote_async_open_1): Ditto.
3826 * remote.c (bin2hex, hex2bin): New functions. Factor out these
3827 two conversions which are coded for repeatedly in this module.
3828 (remote_threads_extra_info, remote_wait, remote_async_wait,
3829 store_register_using_P, remote_store_registers, remote_write_bytes,
3830 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
3831 of coding the conversions inline.
3832 (fromhex): Not exported, change from extern to static.
3834 2001-05-10 Andrew Cagney <ac131313@redhat.com>
3836 * arch-utils.c (initialize_current_architecture): Delete obsolete
3837 ``info architecture'' command.
3838 (info_architecture): Delete function.
3840 2001-05-10 Andrew Cagney <ac131313@redhat.com>
3842 * TODO (5.1, 5.2): Update.
3844 2001-05-09 Andrew Cagney <ac131313@redhat.com>
3846 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
3849 2001-05-10 Keith Seitz <keiths@cygnus.com>
3851 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
3853 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
3854 (gdbtk-bp.o): New rule.
3855 (gdbtk-register.o): New rule.
3856 (gdbtk-stack.o): New rule.
3857 (gdbtk-cmds.o): Update dependencies.
3859 (gdbtk-hooks.o): Ditto.
3860 (gdbtk-varobj.o): Ditto.
3862 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3864 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
3865 variables, not just unregister them.
3867 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3869 * varobj.c (c_number_of_children): Check for target type of void*,
3870 not the target type name. Allow dereferencing char*.
3872 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3874 * symfile.c (symbol_file_add_main_1): New static function.
3875 Passes the flags arguments to symbol_file_add() and takes care
3876 of any necessary reinitializations.
3877 (symbol_file_command): Call symbol_file_add_main_1() instead of
3879 (symbol_file_add_main): Ditto.
3881 2001-05-09 Kevin Buettner <kevinb@redhat.com>
3883 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
3884 string change in 2001-05-03 changes.
3885 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
3888 2001-05-09 Kevin Buettner <kevinb@redhat.com>
3890 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
3891 component from inferior_ptid.
3892 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
3895 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
3897 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
3898 conditional for help with connections through parallel ports,
3899 given that the actual code for downloading through a parallel port
3900 is not conditionalized.
3902 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
3903 unmaintaned, and probably on its way to obsolescence.
3905 2001-05-09 Mark Kettenis <kettenis@gnu.org>
3907 * i386-tdep.c (i386_frame_saved_pc): New function.
3908 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
3909 i386_frame_saved_pc.
3910 (i386_frame_saved_pc): New prototype.
3912 * i386-tdep.c (i386_register_virtual_type): New function.
3913 (i386_register_convertible): New function.
3914 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
3915 of i386_register_virtual_type.
3916 (REGISTER_CONVERTIBLE): Redefine in terms of
3917 i386_register_convertible.
3918 (i386_register_virtual_type, i386_register_convertible): New
3921 2001-05-08 Jim Blandy <jimb@redhat.com>
3923 * Makefile.in (mn10300-tdep.o): New rule.
3925 * Makefile.in (gdb_string_h): Define. Use it throughout.
3926 Some rules were already using this, even though it isn't defined.
3928 * Makefile.in (obstack_h, target_h): Define; these are already
3929 used elsewhere, but have been expanding to the empty string.
3930 (memattr_h): Define; needed by target_h.
3932 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
3933 static. (This was accidentally omitted from the earlier patch.)
3935 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
3936 (mn10300_gdbarch_init): Register it as the architecture's
3937 dwarf2_reg_to_regnum method.
3939 Correct and expand handling of `movm' instruction, and register
3941 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
3942 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
3943 (enum movm_register_bits): New enum.
3944 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
3945 bits, not hex literals. Handle the `other', `exreg0', and
3946 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
3947 r6, and r7, not r2, r3, r4, and r5.
3948 (saved_regs_size): New function.
3949 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
3950 of computing the same thing inline, incorrectly.
3952 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
3953 dummy_breakpoint_offset; it's zero.
3955 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
3956 stuff out into mn10300_pop_frame_regular, and use
3957 generic_pop_current_frame. This lets us share code, and also
3958 makes this function's prototype match that expected by gdbarch.
3959 Make this function static.
3960 (mn10300_pop_frame_regular): New function.
3961 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
3962 gdbarch's pop_frame method.
3963 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
3964 (mn10300_pop_frame): Delete declaration.
3966 * mn10300-tdep.c (mn10300_saved_pc_after_call,
3967 mn10300_extract_return_value,
3968 mn10300_extract_struct_value_address, mn10300_store_return_value,
3969 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
3970 mn10300_frame_chain, mn10300_skip_prologue,
3971 mn10300_push_arguments, mn10300_push_return_address,
3972 mn10300_store_struct_return, mn10300_frame_saved_pc,
3973 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
3974 Make these functions static; they should only be visible to the
3975 outside world as gdbarch methods.
3977 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
3980 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
3981 in some rational order.
3983 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
3984 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
3986 Use gdbarch for most target parameters for the MN10300, rather
3987 than the tm-*.h file.
3988 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
3989 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
3990 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
3991 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
3992 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
3993 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
3994 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
3995 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3996 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
3997 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3998 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
3999 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4000 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
4001 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
4002 Delete definitions. We register gdbarch methods for these now.
4003 (struct frame_info, struct type, struct value): Delete forward
4004 declarations of these types; they're no longer necessary, since we
4005 don't have function declarations here any more.
4006 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
4007 some default gdbarch methods.
4008 (mn10300_store_struct_return): Return void, as expected by
4010 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
4011 as expected by gdbarch.
4012 (mn10300_frame_init_saved_regs): Provide dummy definition for
4013 this, as required by gdbarch.
4014 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
4015 by gdbarch. Register gdbarch methods or values for all the stuff
4016 removed from tm-10300.h, listed above.
4018 2001-05-08 Andrew Cagney <ac131313@redhat.com>
4020 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
4022 (cli_ui_out_impl): Update.
4024 * ui-out.c (default_begin, default_end): Replace
4025 default_list_begin and default_list_end.
4026 (default_ui_out_impl): Update.
4027 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
4028 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
4030 (ui_out_list_begin, ui_out_list_end): New. Compatibility
4032 (struct ui_out_level): Add field type.
4033 (push_level, pop_level): Update. Add type parameter.
4035 * ui-out.h (enum ui_out_type): Declare.
4036 (ui_out_begin, ui_out_end): Declare.
4037 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
4039 (struct ui_out_impl): Update.
4041 2001-05-07 Andrew Cagney <ac131313@redhat.com>
4043 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
4044 ``list_flag'' to ``depth''.
4045 * ui-out.c (default_list_begin, default_list_end): Update.
4046 (uo_list_begin, uo_list_end): Update.
4047 (MAX_UI_OUT_LEVELS): Define.
4048 (struct ui_out_level): Define.
4049 (top-level): Include "gdb_assert.h".
4050 (struct ui_out): Add fields ``level'' and ``levels''. Delete
4051 fields ``list_flag'' and ``field_count''.
4052 (ui_out_new): Update.
4053 (verify_field_proper_position): Update.
4054 (current_level, push_level, pop_level): New functions.
4055 (ui_out_list_begin): Use push_level.
4056 (ui_out_list_end): Use pop_level.
4057 (ui_out_field_int): Use current_level.
4058 (ui_out_field_skip): Ditto.
4059 (ui_out_field_fmt): Ditto.
4061 2001-05-08 Michael Snyder <msnyder@redhat.com>
4063 * language.c (longest_local_hex_string_custom): Strlen test is
4064 inverted -- reverse the sense of the test.
4066 2001-05-08 Mark Kettenis <kettenis@gnu.org>
4068 * config/i386/tm-i386v.h (struct frame_info, struct
4069 frame_saved_regs): Remove declarations.
4070 (i386_frame_num_args): Remove prototype.
4072 2001-05-07 Andrew Cagney <ac131313@redhat.com>
4074 * MAINTAINERS: I'm no longer actively maintaining the mn10300
4077 2001-05-04 Andrew Cagney <ac131313@redhat.com>
4079 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
4082 2001-05-06 Kevin Buettner <kevinb@redhat.com>
4084 * inferior.h (save_inferior_ptid): Declare.
4085 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
4087 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
4088 Delete these functions.
4089 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4090 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4091 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
4093 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
4095 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4096 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4098 * somsolib.c (reset_inferior_ptid): Delete.
4099 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
4100 build the cleanup struct.
4102 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
4103 a cleanup to save/restore inferior_ptid.
4105 2001-05-06 Mark Kettenis <kettenis@gnu.org>
4107 Implement attach/detach for multi-threaded programs on Linux.
4108 * thread-db.c (keep_thread_db): Adjust comment.
4109 (deactivate_target): Removed.
4110 (thread_db_new_objfile): Don't call deactivate_target. Implement
4111 guts of deactivate_target inline instead.
4112 (attach_thread): Call ATTACH_LWP unconditionally if defined.
4113 (thread_db_attach): New function.
4114 (thread_db_detach): Don't call deactivate_target. Do necessary
4115 cleanup inline instead. Set inferior_ptid to LWP corresponding to
4116 the current user-level thread.
4117 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
4118 current user-level thread.
4119 (thread_db_create_inferior): Deactivate target vector if
4120 KEEP_THREAD_DB is zero.
4121 (thread_db_mourn_inferior): Don't call deactivate_target. Do
4122 necessary cleanup inline instead.
4123 (init_thread_db_ops): Initialize to_attach field to
4125 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
4126 (stop_wait_callback): Add prototype.
4127 (init_lwp_list): Add comment about when to re-initialize the LWP
4129 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
4130 Avoid adding publicates to the LWP list. Only mark an LWP as
4131 signalled if it doesn't correspond to a cloned process.
4132 (lin_lwp_attach): Add initial process to the LWP list. Make sure
4133 it's stopped and fake a SIGSTOP.
4134 (detach_callback): New function.
4135 (lin_lwp_detach): Implement.
4136 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
4137 Call child_ops.to_create_inferior directly instead of via
4138 target_beneath local.
4139 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
4140 directly instead of via target_beneath local.
4142 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
4144 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
4145 instead of non-portable search for `/'. Use FILENAME_CMP instead
4146 of STREQ, to account for case-insensitive filesystems.
4147 (top-level): #include "filenames.h".
4149 2001-05-05 Jim Blandy <jimb@redhat.com>
4151 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
4152 its address, to decide whether it's a watchpoint or not. Zero
4153 is a valid code address.
4154 (update_breakpoints_after_exec): Admonishing comments.
4155 * breakpoint.h (struct breakpoint): Doc fixes.
4157 * breakpoint.c (check_duplicates): Take a breakpoint object as an
4158 argument, rather than an address and section. All callers changed.
4160 2001-05-03 Kevin Buettner <kevinb@redhat.com>
4162 * defs.h (ptid_t): New typedef.
4163 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
4165 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
4166 blockframe.c, breakpoint.c, breakpoint.h,
4167 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
4168 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
4169 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
4170 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
4171 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
4172 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
4173 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
4174 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
4175 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
4176 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
4177 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
4178 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
4179 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
4180 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
4181 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
4182 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
4183 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
4184 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
4185 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4186 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
4187 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
4188 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
4189 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
4190 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
4191 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
4192 (inferior_pid): Rename to inferior_ptid everywhere - even in
4193 comments and obsolete ports. In cases where this variable
4194 really is supposed to be used as a process id, use PIDGET() to
4195 extract the process id component from inferior_ptid. The
4196 other cases, either involving other variables whose types had
4197 to be changed or functions whose signatures had to changed
4198 are listed separately below.
4200 * arm-linux-nat.c (get_thread_id): Change type of argument
4201 representing a combined process/thread id from ``int'' to
4202 ``ptid_t''. Also change parameter name to ptid.
4203 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
4204 * corelow.c (core_file_thread_alive): Likewise.
4205 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
4206 * defs.h (*target_wait_hook): Likewise.
4207 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
4208 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
4209 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
4210 (gnu_resume): Likewise.
4211 * go32-nat.c (go32_wait, go32_resume): Likewise.
4212 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
4213 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
4214 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
4215 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
4216 (child_thread_alive): Likewise.
4217 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
4218 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
4219 * i386-linux-nat.c (child_resume): Likewise.
4220 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
4221 (store_debug_register, fetch_debug_register_pair)
4222 (store_debug_register_pair, ia64_linux_insert_watchpoint)
4223 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
4225 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
4226 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
4227 (generic_target_write_pc, ptrace_wait, child_resume)
4228 (get_last_target_status): Likewise.
4229 * infptrace.c (ptrace_wait, child_resume): Likewise.
4230 * inftarg.c (child_wait, child_post_wait, child_thread_live)
4231 (child_pid_to_str): Likewise.
4232 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
4233 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
4234 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
4235 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
4236 (lin_lwp_pid_to_str): Likewise.
4237 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
4238 (thread_db_resume, thread_db_wait): Likewise.
4239 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
4240 (linuxthreads_resume, linuxthreads_wait): Likewise.
4241 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
4242 (child_pid_to_str): Likewise.
4243 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
4244 * mac-nat.c (child_wait, child_resume): Likewise.
4245 * mips-tdep.c (mips_read_pc): Likewise.
4246 * monitor.c (monitor_wait, monitor_resume): Likewise.
4247 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
4248 * ppc-bdm.c (bdm_ppc_wait): Likewise.
4249 * procfs.c (do_attach, procfs_wait, procfs_resume)
4250 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
4251 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
4252 (procfs_find_LDT_entry): Likewise.
4253 * regcache.c (read_register_pid, read_signed_register_pid)
4254 (write_register_pid, generic_target_read_pc, read_pc_pid)
4255 (generic_target_write_pc, write_pc_pid): Likewise.
4256 * regcache.h (read_register_pid, read_signed_register_pid)
4257 (write_register_pid): Likewise.
4258 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
4259 * remote-array.c (array_wait, array_resume): Likewise.
4260 * remote-bug.c (bug_wait, bug_resume): Likewise.
4261 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
4262 * remote-eb.c (eb_wait, eb_resume): Likewise.
4263 * remote-es.c (es1800_wait, es1800_resume): Likewise.
4264 * remote-mips.c (mips_wait, mips_resume): Likewise.
4265 * remote-mm.c (mm_wait, mm_resume): Likewise.
4266 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
4267 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
4268 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
4269 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
4270 * remote-sds.c (sds_wait, sds_resume): Likewise.
4271 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
4272 * remote-st.c (st2000_wait, st2000_resume): Likewise.
4273 * remote-udi.c (udi_wait, udi_resume): Likewise.
4274 * remote-vx.c (vx_wait, vx_resume): Likewise.
4275 * remote.c (remote_current_thread, remote_resume, remote_wait)
4276 (remote_async_resume, remote_async_wait, remote_cisco_wait)
4277 (remote_thread_alive): Likewise.
4278 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
4279 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
4280 (solaris_pid_to_str): Likewise.
4281 * symm-nat.c (child_wait, child_resume): Likewise.
4282 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
4283 (debug_to_notice_signals, debug_to_thread_alive)
4284 (normal_target_post_startup_inferior, normal_pid_to_str)
4285 (debug_to_post_startup_inferior): Likewise.
4286 * target.h (to_resume, to_wait, to_post_wait)
4287 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
4288 (to_pid_to_str [all in struct target_ops]): Likewise.
4289 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
4290 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
4291 (attach_thread, detach_thread, thread_db_resume, check_event)
4292 (thread_db_post_startup_inferior, thread_db_thread_alive)
4293 (thread_db_pid_to_str): Likewise.
4294 * thread.c (add_thread, delete_thread, find_thread_pid)
4295 (pid_to_thread_id, in_thread_list, load_infrun_state)
4296 (save_infrun_state, switch_to_thread, restore_current_thread)
4297 (make_cleanup_restore_current_thread): Likewise.
4298 * top.c (target_wait_hook): Likewise.
4299 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
4300 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
4301 (uw_thread_pid_to_str): Likewise.
4302 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
4303 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
4304 (cywin_pid_to_str): Likewise.
4305 * wince.c (child_wait, child_resume, win32_child_thread_alive):
4307 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
4308 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
4309 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
4310 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
4311 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
4312 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
4313 (procfs_set_watchpoint): Likewise.
4314 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
4315 * config/i386/nm-ptx4.h (child_wait): Likewise.
4316 * config/i386/nm-symmetry.h (child_wait): Likewise.
4317 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
4318 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
4319 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
4320 (lin_lwp_attach_lwp): Likewise.
4321 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
4322 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
4323 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
4324 (hppa_pid_or_tid_to_str): Likewise.
4325 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
4326 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
4327 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
4328 (procfs_set_watchpoint): Likewise.
4330 * gdbthread.h (thread_id_to_pid): Change return type which
4331 represents a combined process/thread id from ``int'' to
4333 * gnu-nat.c (gnu_wait): Likewise.
4334 * go32-nat.c (go32_wait): Likewise.
4335 * hpux-thread.c (hpux_thread_wait): Likewise.
4336 * inferior.h (procfs_first_available): Likewise.
4337 * inftarg.c (child_wait): Likewise.
4338 * infttrace.c (ptrace_wait): Likewise.
4339 * lin-lwp.c (lin_lwp_wait): Likewise.
4340 * lin-thread.c (thread_db_wait): Likewise.
4341 * linux-thread.c (linuxthreads_wait): Likewise.
4342 * lynx-nat.c (child_wait): Likewise.
4343 * m3-nat.c (mach_really_wait): Likewise.
4344 * mac-nat.c (child_wait): Likewise.
4345 * monitor.c (monitor_wait): Likewise.
4346 * ppc-bdm.c (bdm_ppc_wait): Likewise.
4347 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
4348 * remote-adapt.c (adapt_wait): Likewise.
4349 * remote-array.c (array_wait): Likewise.
4350 * remote-bug.c (bug_wait): Likewise.
4351 * remote-e7000.c (e7000_wait): Likewise.
4352 * remote-eb.c (eb_wait): Likewise.
4353 * remote-es.c (es1800_wait): Likewise.
4354 * remote-mips.c (mips_wait): Likewise.
4355 * remote-mm.c (mm_wait): Likewise.
4356 * remote-nindy.c (nindy_wait): Likewise.
4357 * remote-os9k (rombug_wait): Likewise.
4358 * remote-rdi.c (arm_rdi_wait): Likewise.
4359 * remote-rdp.c (remote_rdp_wait): Likewise.
4360 * remote-sds.c (sds_wait): Likewise.
4361 * remote-sim.c (gdbsim_wait): Likewise.
4362 * remote-st.c (st2000_wait): Likewise.
4363 * remote-udi.c (udi_wait): Likewise.
4364 * remote-vx.c (vx_wait): Likewise.
4365 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
4366 (remote_cisco_wait): Likewise.
4367 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
4369 * symm-nat.c (child_wait): Likewise.
4370 * target.c (debug_to_wait): Likewise.
4371 * target.h (to_wait [in struct target_ops]): Likewise.
4372 * thread.c (thread_id_to_pid): Likewise.
4373 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
4375 * top.c (*target_wait_hook): Likewise.
4376 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
4377 * v850ice.c (v850ice_wait): Likewise.
4378 * win32-nat.c (child_wait): Likewise.
4379 * wince.c (child_wait): Likewise.
4380 * config/nm-lynx.h (child_wait): Likewise.
4381 * config/i386/nm-ptx4.h (child_wait): Likewise.
4382 * config/i386/nm-symmetry.h (child_wait): Likewise.
4384 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
4385 to wait_ptid and change its type from ``int'' to ``ptid_t''.
4386 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
4387 but rename saved_inferior_pid to saved_inferior_ptid.
4388 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
4389 save_pid to save_ptid.
4390 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
4391 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
4392 saved_inferior_pid to saved_inferior_ptid.
4393 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
4394 * infrun.c (previous_inferior_pid [static global]): Likewise,
4395 but rename to previous_inferior_ptid.
4396 (resume): Likewise, but rename resume_pid to resume_ptid.
4397 (struct execution_control_state): Likewise, but rename
4398 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
4399 and waiton_pid to waiton_ptid.
4400 (target_last_wait_pid): Likewise, but rename to
4401 target_last_wait_ptid.
4402 * infttrace.c (saved_real_pid): Likewise, but rename to
4404 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
4405 to saved_inferior_ptid.
4406 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
4407 (trap_ptid): Likewise, but renamed from trap_pid.
4408 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
4410 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
4411 (thread_db_wait): Likewise, but rename ret_pid to retptid.
4412 * procfs.c (procfs_wait): Likewise, for retval whose name
4413 doesn't change. Also, ``temp'' becomes two separate variables,
4414 one named temp_tid (an int) and the other temp_ptid.
4415 (procfs_notice_thread): Likewise (type change) for gdb_threadid
4416 whose name does not change.
4417 * regcache.c (registers_ptid): Likewise, but renamed from
4419 (read_register_pid, read_signed_register_pid, write_register_pid):
4420 Likewise, but rename save_pid to save_ptid.
4421 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
4422 to saved_inferior_ptid.
4423 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
4424 * sol-thread.c (struct ps_prochandle): Likewise.
4425 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
4426 (sol_thread_wait): Likewise, for rtnval whose name does not
4427 change, and for save_pid which becomes save_ptid.
4428 (solaris_pid_to_str): Likewise for lwp whose name does not change.
4429 (sol_find_new_threads_callback): Likewise, for pid which becomes
4431 * target.h (target_resume, target_wait, target_post_wait)
4432 (target_post_startup_inferior, target_notice_signals)
4433 (target_thread_alive): Likewise.
4434 * thread.c (info_threads_command): Likewise, but rename
4435 current_pid to current_ptid.
4436 (struct current_thread_cleanup): Likewise, but rename field
4437 inferior_pid to inferior_ptid.
4438 * thread-db.c (find_new_threads_callback): Likewise, but rename
4440 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
4442 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
4443 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
4444 but rename pid to ptid.
4445 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
4446 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
4447 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
4448 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
4449 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
4450 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
4452 * arch-utils.c (generic_prepare_to_proceed): Test for the
4453 "zero" ptid by using ptid_equal() to test to see if variable
4454 in question is the same as null_ptid. This replaces a direct
4456 * cxux-nat.c (add_shared_symbol_files): Likewise.
4457 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
4458 * infcmd.c (run_command): Likewise.
4459 * inflow.c (kill_command): Likewise.
4460 * infttrace.c (call_ttrace): Likewise.
4461 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
4462 * lin-thread.c (thread_db_kill): Likewise.
4463 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
4464 * remote-es.c (es1800_kill): Likewise.
4465 * sol-thread.c (sol_thread_create_inferior): Likewise.
4466 * solib.c (locate_base): Likewise.
4467 * target.c (nosupport_runtime): Likewise.
4468 * thread-db.c (thread_db_wait): Likewise.
4469 * top.c (quit_confirm, quit_force): Likewise.
4470 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
4472 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
4473 Use ptid_equal to compare value of process/thread ids instead of
4474 ``=='' and ``!='' operators.
4475 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
4476 (stop_wait_callback, lin_lwp_wait): Likewise.
4477 * procfs.c (procfs_wait): Likewise.
4478 * regcache.c (read_register_bytes, read_register_gen)
4479 (write_register_gen, read_register, read_register_pid)
4480 (read_signed_register, read_signed_register_pid, write_register)
4481 (write_register_pid, supply_register): Likewise.
4482 * remote-vx.c (vx_resume): Likewise.
4483 * sol-thread.c (sol_thread_wait): Likewise.
4484 * symm-nat.c (kill_inferior): Likewise.
4485 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
4486 (in_thread_list, info_threads_command, switch_to_thread)
4487 (restore_current_thread): Likewise.
4488 * uw-thread (libtread_stub): Likewise.
4490 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
4492 * corelow.c (add_to_thread_list): Convert argument in add_thread()
4494 * gnu-nat.c (inf_validate_procs): Likewise.
4495 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
4496 * remote.c (record_currthread, remote_threads_info): Likewise.
4497 * win32-nat.c (child_add_thread): Likewise.
4499 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
4500 respectively, to save_inferior_ptid() and restore_inferior_ptid().
4501 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
4502 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
4503 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
4504 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
4505 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
4506 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
4507 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
4509 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
4510 to be passed to target_resume() when all threads should resume.
4511 (resume): Set resume_ptid to RESUME_ALL rather than -1.
4512 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
4514 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
4515 a ptid_t in target_resume() call.
4516 * osfsolib.c (solib_create_inferior_hook): Likewise.
4517 * solib-svr4.c (solib_create_inferior_hook): Likewise.
4519 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
4520 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
4521 difference being that the 0xffff pattern will be interpreted
4523 * lin-thread.c (PIDGET, PIDGET0): Likewise.
4524 * thread-db.c (PIDGET, PIDGET0): Likewise.
4525 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
4526 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
4527 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
4528 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
4530 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
4531 mach_really_wait rather than mach_really__wait.
4532 * lin-thread.c (check_for_thread_event): Fix warning; make function
4533 actually return a value.
4535 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
4536 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
4538 * gdbarch.h, gdbarch.c: Regenerated.
4540 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
4542 * rdi-share/devsw.c: Include <time.h> for struct tm
4544 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4546 * config/djgpp/fnchange.lst: Add mappings for the new
4547 opcodes/openrisc-* files.
4549 2001-05-01 Michael Snyder <msnyder@redhat.com>
4551 * lin-lwp.c: Change printf to fprintf_unfiltered.
4552 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
4554 2001-05-01 Nicholas Duffek <nsd@redhat.com>
4556 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
4557 (rs6000_in_solib_return_trampoline): Declare.
4558 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
4560 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
4561 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
4562 check after the CSECT check rather than before it. Allocate
4563 separate symtabs for CSECTs whose names begin with '@'.
4564 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
4565 Activate the misc_func_recorded mechanism for whose names begin
4568 2001-04-30 J.T. Conklin <jtc@redback.com>
4570 * ppcnbsd-nat.c (fetch_inferior_registers)
4571 (store_inferior_registers, fetch_core_registers): Changed to use
4572 fpreg[] instead of r_regs[] to access floating point registers.
4574 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
4576 * sh-tdep.c: Get rid of the function prototypes.
4577 (sh_sh4_build_float_register_type): Move earlier in file.
4578 (fv_reg_base_num): Ditto.
4579 (dr_reg_base_num): Ditto.
4581 2001-04-30 Michael Snyder <msnyder@redhat.com>
4583 * thread-db.c: Revert 2001-04-26 change for debugging output.
4585 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
4586 command to turn extra debugging output on / off.
4588 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
4590 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
4591 (top-level): #include filenames.h.
4593 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
4594 FILENAME_CMP, to DTRT on non-Posix platforms.
4595 (top-level): #include filenames.h.
4598 2001-04-27 Andrew Cagney <ac131313@redhat.com>
4600 * gdbtypes.c (check_stub_method): Always initialize ``p''.
4602 2001-04-27 Andrew Cagney <ac131313@redhat.com>
4604 * configure.host: Delete romp host.
4607 2001-04-27 Andrew Cagney <ac131313@redhat.com>
4609 * TODO: Updates to 5.1. No more targets to obsolete.
4611 2001-04-27 Don Howard <dhoward@redhat.com>
4613 (Changes from Kevin Buettner, with minor update by Don Howard.)
4615 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
4616 typos in which hexadecimal constants were really intended to be
4618 (i387_tag): Swap logic regarding zero vs non-zero exponents.
4619 * MAINTAINERS (Misc): Added myself to the write-after-approval
4622 2001-04-26 Jim Blandy <jimb@redhat.com>
4624 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
4626 Abstract out operations specific to particular C++ ABI's, and
4627 invoke them through a function table. This removes the C++ ABI
4628 dependencies scattered throughout the code, and allows us to
4629 cleanly add support for new C++ ABI's.
4630 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
4631 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
4632 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
4633 #include "cp-abi.h". These files all use functions now declared
4635 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
4636 Deleted. These services are now provided by functions declared in
4638 * value.h (value_rtti_type, value_virtual_fn_field): Same.
4639 * values.c (value_virtual_fn_field): Same, for this definition.
4640 * valops.c (value_rtti_type): Same.
4641 * c-typeprint.c (c_type_print_base): Use the functions from
4642 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
4644 * dbxread.c (record_minimal_symbol): Same.
4645 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
4646 virtual_base_index_skip_primaries): Same.
4647 * jv-typeprint.c (java_type_print_base): Same.
4648 * linespec.c (find_methods, decode_line_1): Same.
4649 * symtab.c (gdb_mangle_name): Same.
4650 * Makefile.in (SFILES): Add the new .c files mentioned above.
4651 (cp_abi_h): New variable.
4652 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
4653 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
4654 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
4655 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
4656 dependency on $(cp_abi_h).
4658 2001-04-26 Michael Snyder <msnyder@redhat.com>
4660 * thread-db.c (_initialize_thread_db): Add set/show command
4661 "debug-linux-threads" for debugging output.
4662 * lin-lwp.c (various): Use global "debug_linux_threads to
4663 turn on extra debugging output.
4664 * lin-lwp.c: Minor cleanups in comments.
4665 * target.c (normal_pid_to_str): Get rid of an ancient hack.
4666 * remote.c (remote_pid_to_str): New function for remote target.
4668 2001-04-24 Jim Blandy <jimb@redhat.com>
4670 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
4671 qualifier on C++ references; all references are innately const.
4673 2001-04-20 Mark Kettenis <kettenis@gnu.org>
4675 * event-top.h: Fix formatting.
4677 2001-04-17 Andrew Cagney <ac131313@redhat.com>
4679 * source.c (openp): Obsolete #ifdef MPW code.
4680 (open_source_file): Ditto.
4681 * event-top.c (display_gdb_prompt): Ditto.
4682 * utils.c (query): Ditto.
4683 (init_page_info): Ditto.
4684 (init_page_info): Delete #ifndef MPW.
4685 * top.c (gdb_readline): Ditto.
4686 * mac-xdep.c: Obsolete.
4687 * mac-gdb.r: Obsolete.
4688 * config/powerpc/xm-mpw.h: Obsolete.
4689 * config/xm-mpw.h: Obsolete.
4690 * mpw-make.sed: Obsolete.
4691 * mpw-config.in: Obsolete.
4695 2001-04-19 Mark Kettenis <kettenis@gnu.org>
4697 * i386-tdep.c (i386_frameless_function_invocation): New function.
4698 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
4699 in terms of i386_frameless_function_invocation. Adjust comment.
4700 (i386_frameless_function_invocation): New prototype.
4702 2001-04-18 Martin M. Hunt <hunt@redhat.com>
4704 * top.c (gdb_init): Don't call cli_out_new() to
4705 create global uiout if init_ui_hook is set. uiout will
4706 have to be initialized there.
4708 2001-04-18 Andrew Cagney <ac131313@redhat.com>
4710 * arch-utils.c: Include "regcache.h".
4712 2001-04-18 Mark Kettenis <kettenis@gnu.org>
4714 * i386-tdep.c (i386_saved_pc_after_call): New function.
4715 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
4716 of i386_saved_pc_after_call.
4717 (i386_saved_pc_after_call): New prototype.
4719 2001-04-17 Michael Snyder <msnyder@redhat.com>
4721 * i386-nat.c: Fix typo in comment.
4722 * solib.c (no_shared_libraries): New function. Discard all symbols
4723 from shared libraries.
4724 (_initialize_solib): Add command "nosharedlibrary" as complement
4725 to the command "sharedlibrary". Unloads symbols for all solibs.
4727 2001-04-16 Andrew Cagney <ac131313@redhat.com>
4729 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
4730 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
4731 (m68*-est-*, m68*-sony-*, m68*-isi-*):
4732 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
4733 * config/m68k/xm-news.h: Obsolete.
4734 * config/m68k/tm-news.h:
4735 * config/m68k/xm-news1000.h: Obsolete.
4736 * config/m68k/news.mh: Obsolete.
4737 * config/m68k/news.mt: Obsolete.
4738 * config/m68k/nm-news.h: Obsolete.
4739 * config/m68k/news1000.mh: Obsolete.
4740 * news-xdep.c: Obsolete.
4741 * Makefile.in (isi-xdep.o): Obsolete.
4742 (ALLDEPFILES): Delete isi-xdep.c.
4743 (tm-isi.h): Obsolete.
4744 * m68k-tdep.c (altos_skip_prologue): Update comments.
4745 (isi_skip_prologue): Obsolete.
4746 * isi-xdep.c: Obsolete.
4747 * config/m68k/xm-isi.h: Obsolete.
4748 * config/m68k/isi.mh: Obsolete.
4749 * config/m68k/tm-isi.h: Obsolete.
4750 * config/m68k/isi.mt: Obsolete.
4755 2001-04-17 Michael Snyder <msnyder@redhat.com>
4757 * remote.c (remote_open_1): On opening the remote target, activate
4758 the solib_create_inferior_hook, so that it can detect when the
4759 target loads shared libraries.
4760 (remote_async_open_1): Ditto.
4762 2001-04-17 Michael Snyder <msnyder@redhat.com>
4764 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
4765 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
4766 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
4767 * testsuite/gdb.trace/infotrace.exp: Ditto.
4768 * testsuite/gdb.trace/passcount.exp: Ditto.
4769 * testsuite/gdb.trace/while-stepping.exp: Ditto.
4771 2001-04-17 Michael Snyder <msnyder@redhat.com>
4773 * thread-db.c (check_thread_signals): When looping over all
4774 signals, ignore signal zero.
4775 (disable_thread_signals): Ditto.
4777 2001-04-17 Eirik Fuller <eirik@netapp.com>
4779 * thread.c (do_captured_thread_select): Allow the argument to the
4780 thread command to be an expression rather than a literal integer.
4782 2001-04-17 Mark Kettenis <kettenis@gnu.org>
4784 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
4785 read_memory_unsigned_integer instead of read_memory_integer.
4787 2001-04-16 Kevin Buettner <kevinb@redhat.com>
4789 * solib-aix5.c (map_index_vs_section_name_okay): New function.
4790 (aix5_relocate_main_executable): Don't use file offsets for
4791 determining corresponding sections and map file entries. Call
4792 map_index_vs_section_name_okay() to do this instead.
4794 2001-04-16 Kevin Buettner <kevinb@redhat.com>
4796 * procfs.c (open_with_retry): New function.
4797 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
4798 (proc_get_LDT_entry): Call open_with_retry() instead of open().
4800 2001-04-16 Kevin Buettner <kevinb@redhat.com>
4802 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
4803 comparison against TRAP_HWBKPT constant yet again to account
4804 for the various values used by different kernel versions.
4806 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
4808 * demangle.c (_initialize_demangler): Use xcalloc on the
4809 demangling_style_names, and make it a null terminated array of
4810 names, to avoid a crash.
4812 2001-04-16 Mark Kettenis <kettenis@gnu.org>
4814 * i386-tdep.c (i386_frame_chain): New function.
4815 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
4817 (i386_frame_chain): New prototype.
4819 2001-04-14 J.T. Conklin <jtc@redback.com>
4821 * target.h (target_ops): Removed to_core_file_to_sym_file vector
4823 * corelow.c (core_ops): Updated for above change.
4824 * gnu-nat.c (core_ops): Likewise.
4825 * inftarg.c (child_ops): Likewise.
4826 * monitor.c (monitor_ops): Likewise.
4827 * ppc-bdm.c (bdm_ppc_ops): Likewise.
4828 * remote-adapt.c (adapt_ops): Likewise.
4829 * remote-bug.c (bug_ops): Likewise.
4830 * remote-e7000.c (e7000_ops): Likewise.
4831 * remote-eb.c (eb_ops): Likewise.
4832 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
4833 * remote-mm.c (mm_ops): Likewise.
4834 * remote-nindy.c (nindy_ops): Likewise.
4835 * remote-nrom.c (nrom_ops): Likewise.
4836 * remote-os9k.c (rombug_ops): Likewise.
4837 * remote-rdp.c (remote_rdp_ops): Likewise.
4838 * remote-sim.c (gdbsim_ops): Likewise.
4839 * remote-st.c (st2000_ops): Likewise.
4840 * v850ice.c (v850ice_ops): Likewise.
4841 * target.c (cleanup_target): Likewise
4842 (update_current_target): Likewise.
4843 (setup_target_debug): Likewise
4844 (debug_to_core_file_to_sym_file): Removed.
4846 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
4847 sets symbol file from information obtained from the core file.
4848 * corelow.c (core_file_to_sym_file): Removed.
4850 2001-04-13 Fernando Nasser <fnasser@redhat.com>
4852 From Adam Mirowski <Adam.Mirowski@Sun.COM>
4853 Fixed Insight on Solaris. It was not possible to debug a process
4854 because of EINTR "errors".
4855 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
4856 with EINTR, retry the call.
4858 2001-04-12 Kevin Buettner <kevinb@redhat.com>
4860 * solib-aix5.c (enum maptype): Delete.
4861 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
4862 member a pointer instead of a statically sized array.
4863 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
4865 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
4866 aix5_find_global_pointer): Search for correct mapping to use
4867 based on file offset instead of knowledge of whether the section
4868 is read-only or read/write.
4869 (aix5_find_gate_addresses): Use the first mapping instead of
4870 the (now defunct) MT_READONLY mapping.
4872 2001-04-12 Nicholas Duffek <nsd@redhat.com>
4874 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
4877 2001-04-12 Kevin Buettner <kevinb@redhat.com>
4879 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
4881 2001-04-09 Andrew Cagney <ac131313@redhat.com>
4883 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
4884 * config/i386/sun386.mh: Obsolete.
4885 * config/i386/sun386.mt: Obsolete.
4886 * config/i386/xm-sun386.h: Obsolete.
4887 * config/i386/tm-sun386.h: Obsolete.
4888 * config/i386/nm-sun386.h: Obsolete.
4889 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
4890 (sun386-nat.o): Target is obsolete.
4891 * sun386-nat.c: Obsolete.
4892 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
4893 * configure.host (i[3456]86-*-sunos*): Obsolete.
4897 2001-04-10 J.T. Conklin <jtc@redback.com>
4899 * maint.c: Fix typo in comment.
4901 2001-04-09 Keith Seitz <keiths@cygnus.com>
4903 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
4905 2001-04-08 Kevin Buettner <kevinb@redhat.com>
4907 * fork-child.c (fork_inferior, clone_and_follow_inferior):
4908 Document fact that apparent call to vfork() might actually be
4909 a call to fork() instead.
4910 * ser-pipe.c (pipe_open): Likewise.
4912 2001-04-08 Kevin Buettner <kevinb@redhat.com>
4914 * printcmd.c (print_frame_args): Use a cleanup to invoke
4915 ui_out_list_end() so that the list count nesting flag will
4916 be decremented properly when an error occurs.
4917 * stack.c (print_frame): Likewise.
4919 2001-04-06 J.T. Conklin <jtc@redback.com>
4921 * dcache.c (dcache_write_line): Fixed bugs where cache line was
4922 not written to target correctly.
4924 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
4926 * gdbserver/low-nbsd.c: Likewise.
4927 * gdbserver/low-sparc.c: Likewise.
4928 * gdbserver/low-sun3.c: Likewise.
4930 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
4932 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
4933 (PTRACE_DETACH): Don't define.
4935 2001-04-06 David Smith <dsmith@redhat.com>
4937 * arch-utils.c (default_prepare_to_proceed)
4938 (generic_prepare_to_proceed): Added new functions.
4939 * arch-utils.h: New function declarations for
4940 default_prepare_to_proceed() and generic_prepare_to_proceed().
4941 * gdbarch.sh: Added PREPARE_TO_PROCEED.
4942 * gdbarch.c: Regenerated.
4943 * gdbarch.h: Regenerated.
4944 * inferior.h: Added get_last_target_status() declaration.
4945 * infrun.c (get_last_target_status): Added new function.
4946 (handle_inferior_event): Saves last pid and waitstatus, which will
4947 get returned by get_last_target_status().
4949 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
4950 prepare_to_proceed() is potentially redundant since
4951 default_prepare_to_proceed() has been added.
4952 * linux-thread.c (prepare_to_proceed): Ditto.
4953 * lin-lwp.c (prepare_to_proceed): Ditto.
4954 * m3-nat.c (prepare_to_proceed): Ditto.
4956 2001-04-05 Andrew Cagney <ac131313@redhat.com>
4958 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
4959 and powerpc-*-netware* target.
4960 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
4962 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
4963 (powerpcle-*-solaris*): Obsolete.
4964 * config/powerpc/tm-cygwin.h: Obsolete.
4965 * config/powerpc/cygwin.mt: Obsolete.
4966 * config/powerpc/xm-cygwin.h: Obsolete.
4967 * config/powerpc/cygwin.mh: Obsolete.
4968 * config/powerpc/nm-solaris.h: Obsolete.
4969 * config/powerpc/xm-solaris.h: Obsolete.
4970 * config/powerpc/tm-solaris.h: Obsolete.
4971 * config/powerpc/solaris.mt: Obsolete.
4972 * config/powerpc/tm-ppc-nw.h: Obsolete.
4973 * config/powerpc/ppc-nw.mt: Obsolete.
4977 2001-04-06 Fernando Nasser <fnasser@redhat.com>
4979 * buildsym.c (record_line): Turn off unused addr bits.
4981 2001-04-06 Fernando Nasser <fnasser@redhat.com>
4983 From David Deephanphongs <deephan@telocity.com>
4984 * inferior.h: Fix declarations of get_inferior_args and
4985 set_inferior_args, which were missing the trailing 's'.
4987 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
4989 * monitor.c (monitor_supply_register): Only report an error if we
4990 don't get a valid value.
4992 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
4994 * README: Don't mention gdba.el.
4996 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4998 From Jimmy Guo <guo@cup.hp.com>
4999 * top.c (init_main): set prompt if annotation_level>1,
5000 this is necessary when annotation_level is set to 2 via
5001 --annotate=2 command line option.
5003 2001-04-04 Andrew Cagney <ac131313@redhat.com>
5005 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
5006 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
5007 * configure.host (a29k-*-*): Obsolete.
5008 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
5010 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
5011 * config/a29k/tm-ultra3.h: Obsolete.
5012 * config/a29k/ultra3.mt: Obsolete.
5013 * config/a29k/ultra3.mh: Obsolete.
5014 * config/a29k/nm-ultra3.h: Obsolete.
5015 * config/a29k/xm-ultra3.h: Obsolete.
5016 * ultra3-xdep.c: Obsolete.
5017 * ultra3-nat.c: Obsolete.
5018 * config/a29k/a29k-kern.mt: Obsolete.
5022 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
5024 * main.c: Remove windows.h use.
5025 (gdbtk_test): Use PATH_MAX for home var calculation.
5026 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
5027 Win32 in colon test.
5028 * ser-tcp.c: Use modern __CYGWIN__ conditional.
5029 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
5031 * symfile.c (symfile_bfd_open): Ditto.
5033 2001-04-04 Martin M. Hunt <hunt@redhat.com>
5035 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
5036 Handle all stream setup in gdbtk_init
5038 2001-04-04 Mark Kettenis <kettenis@gnu.org>
5040 * i386-tdep.c (i386_extract_return_value): Don't return the return
5041 value of a void function.
5042 (i386_store_return_value): Likewise.
5044 2001-04-03 Andrew Cagney <ac131313@redhat.com>
5046 Obsolete w65-*-* target.
5047 * configure.tgt (w65-*-*): Obsolete.
5048 * config/w65/w65.mt: Obsolete.
5049 * config/w65/tm-w65.h: Obsolete.
5050 * w65-tdep.c: Obsolete.
5051 * NEWS: Update. Fix TiC80 description.
5054 2001-04-03 Andrew Cagney <ac131313@redhat.com>
5056 Obsolete tic80-*-* target.
5057 * configure.tgt (tic80-*-*): Obsolete.
5058 * config/tic80/tic80.mt: Obsolete.
5059 * config/tic80/tm-tic80.h: Obsolete.
5060 * tic80-tdep.c: Obsolete.
5064 2001-04-02 J.T. Conklin <jtc@redback.com>
5066 * remote-mips.c (S_IROTH): Moved definition from here.
5067 * gdb_stat.h (S_IROTH): to here.
5069 * remote.c (remote_protocol_e, remote_protocol_E): Define.
5070 (set_remote_protocol_e_packet_cmd)
5071 (set_remote_protocol_E_packet_cmd)
5072 (show_remote_protocol_e_packet_command)
5073 (show_remote_protocol_E_packet_command): New functions.
5074 (init_all_packet_configs): Initialize remote_protocol_e and
5076 (remote_resume, remote_async_resume): Support e/E command
5078 (show_remote_cmd): Show state of remote_protocol_e and
5080 (_initialize_remote): Add "set remote step-over-range-packet"
5081 and "set remote step-over-range-w-signal-packet" to CLI.
5083 2001-04-01 Andrew Cagney <ac131313@redhat.com>
5085 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
5087 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
5088 (umax-xdep.o, ns32km3-nat.o): Obsolete.
5089 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
5091 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
5093 * config/ns32k/merlin.mh: Obsolete.
5094 * config/ns32k/merlin.mt: Obsolete.
5095 * config/ns32k/xm-merlin.h: Obsolete.
5096 * config/ns32k/tm-merlin.h: Obsolete.
5097 * config/ns32k/nm-umax.h: Obsolete.
5098 * config/ns32k/umax.mh: Obsolete.
5099 * config/ns32k/umax.mt: Obsolete.
5100 * config/ns32k/xm-umax.h: Obsolete.
5101 * umax-xdep.c: Obsolete.
5102 * config/ns32k/ns32km3.mh: Obsolete.
5103 * config/ns32k/ns32km3.mt: Obsolete.
5104 * config/ns32k/tm-ns32km3.h: Obsolete.
5105 * config/ns32k/xm-ns32km3.h: Obsolete.
5106 * ns32km3-nat.c: Obsolete.
5107 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
5108 (merlin_frame_num_args): Ditto.
5112 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
5114 * config/djgpp/fnchange.lst: Tweak due to
5115 expect/example/chesslib.c.
5117 2001-04-02 Kevin Buettner <kevinb@redhat.com>
5119 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
5120 unsigned int to unsigned long. Also, fix format string.
5121 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
5122 use an undeclared variable. Also, delete declaration and
5123 initialization of ``fp'' because it is otherwise unused.
5124 * remote-bug.c (sleep): Delete declaration.
5125 (bug_store_register, bug_write_memory, bug_read_memory)
5126 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
5127 format statements and cast certain sprintf() arguments to
5129 (bug_load): Likewise for call to printf_filtered().
5130 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
5131 assignment to ``pc''. The necessary assignment is done in
5132 hand_function_call() after the invocation of FIX_CALL_DUMMY().
5134 2001-03-20 Daniel Berlin <dberlin@redhat.com>
5136 * symtab.c (completion_list_add_name): Remove duplicate string checks,
5137 readline already does this, and it's much faster at it, too.
5139 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
5141 * go32-nat.c: Minor tweaks, to pacify the ari script.
5143 2001-04-01 Mark Kettenis <kettenis@gnu.org>
5145 * i386-tdep.c (i386_extract_struct_value_address): New function.
5146 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
5147 in terms of i386_extract_struct_value_address.
5148 (i386_extract_struct_value_address): New prototype.
5150 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
5151 value to `unsigned long'. Change type of `value' to `unsigned
5153 (i386_linux_dr_set): Change type of second argument to `unsigned
5155 (i386_linux_dr_set_control): Change type of first argument to
5157 (i386_linux_dr_get_status): Change type of return value to
5159 * config/i386/nm-linux.h (i386_linux_dr_set_control,
5160 i386_linux_dr_get_status): Adjust prototypes accordingly.
5162 2001-03-31 Kevin Buettner <kevinb@redhat.com>
5164 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
5165 TRAP_HWBKPT constant to match that in the kernel headers for
5168 2001-03-31 Mark Kettenis <kettenis@gnu.org>
5170 * i386bsd-nat.c: Include "gdb_assert.h".
5171 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
5173 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
5174 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
5175 i386bsd_dr_get_status): New functions.
5176 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
5177 (I386_USE_GENERIC_WATCHPOINTS): Define.
5178 Include "i386/nm-i386.h".
5179 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
5180 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
5181 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
5182 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
5183 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
5184 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
5186 * config.in, configure: Regenerate.
5188 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
5189 register before enabling it by setting the control register.
5190 (i386_remove_aligned_watchpoint): Reset address register after
5191 disabling it by setting the control register.
5193 * i386-tdep.c (i386_extract_return_value): If the type of the
5194 return value is TYPE_STRUCT and the number of fields is one, call
5195 ourselves with TYPE set tp the type of the first field.
5196 (i386_store_return_value): Likewise.
5197 This fixes a problem with returning structs consisting of a single
5198 `float' or `double' on *BSD.
5200 2001-03-30 Mark Kettenis <kettenis@gnu.org>
5202 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
5203 we're absolutely sure we're going to resume it.
5205 * thread-db.c (check_event): Don't report an error if we encounter
5206 a thread creation event for a thread that's already in the thread
5207 list, since that may legitemately happen. Instead only call
5208 attach_thread if it's not already in the thread list.
5210 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5212 * config/pa/xm-hppah.h (malloc): Really delete declaration
5213 (MALLOC_INCOMPATIBLE): Really delete macro.
5214 * cli/cli-cmds.c (apropos_command): Use xcalloc.
5216 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5218 * configure.in (build_warnings): Add -Wuninitialized.
5219 * configure: Regenerate.
5221 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
5222 * sparc-tdep.c (sparc64_push_arguments): Add default case to
5224 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
5225 expression with if statement.
5226 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
5228 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
5229 (mips_dump_tdep): Fix setting of ef_mips_arch.
5230 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
5231 * dsrec.c (make_srec): Always initialize ``binbuf''.
5232 * monitor.c (monitor_read_memory_single): Do not pass an
5233 uninitialized buffer to monitor_error. Make ``i'' more local.
5235 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5237 * MAINTAINERS: Change ns32k target to ,-Werror.
5239 * ns32k-tdep.c: Include "gdbcore.h"
5240 (flip_bytes): Change first argument to void*. Add forward
5242 (sign_extend): Add declaration.
5243 (merlin_frame_num_args): Add final else clause to if-else chain.
5244 (umax_frame_num_args): Ditto.
5245 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
5246 (flip_bytes): Ditto.
5248 2001-03-28 Mark Kettenis <kettenis@gnu.org>
5250 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
5251 config/i386/nm-linux.h (including comment).
5252 (i386_linux_frame_chain): New function implementing guts of the
5253 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
5254 instead of read_memory_integer.
5255 (i386_linux_frame_saved_pc): Removed doc pointing to
5256 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
5257 now lives in this file.
5258 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
5259 i386-linux-tdep.c (including comment).
5260 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
5261 (i386_linux_frame_chain): New prototype.
5263 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
5265 (NUM_FREGS): Redefine to 0.
5266 (NUM_REGS): Redefine as NUM_GREGS.
5267 (i386_register_byte, i386_register_raw_size): Update from
5268 i386-tdep.c. Add comment about their origin.
5269 (regmap, register_u_addr): Take these from i386-linux-nat.c.
5270 (i386_register_u_addr): Removed.
5272 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
5273 fails instead of calling perror_with_name. This should fix
5274 debugging remote i386 targets with a native Linux/x86 GDB. Add
5275 FIXME for this hack.
5277 2001-03-19 J.T. Conklin <jtc@redback.com>
5279 * arch-utils.c (#include "gdbthread.h"): Removed.
5280 (#include "symfile.h"): Removed.
5281 (XMALLOC): Removed unused macro.
5282 * breakpoint.c (tbreak_command): Removed local declaration.
5283 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
5284 Remove duplicate declarations.
5285 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
5286 (remove_solib_event_breakpoints): Fix indentation botch.
5287 * c-typeprint.c (#include "command.h"): Removed.
5288 (#include "gdbcmd.h"): Removed.
5289 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
5290 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
5291 Removed duplicate declarations.
5292 * ch-typeprint.c (#include "command.h"): Removed.
5293 (#include "gdbcmd.h"): Removed.
5294 * corefile.c (#include "frame.h"): Removed
5295 (#include "symfile.h"): Removed.
5296 (#include "language.h"): Removed.
5297 * dbxread.c (#include "command.h"): Removed.
5298 * environ.c (#include "gdbcore.h"): Removed.
5299 * event-loop.c (#include "top.h"): Removed.
5300 * f-typeprint.c (#include "command.h"): Removed.
5301 (#include "gdbcmd.h"): Removed.
5302 (#include "language.h"): Removed.
5303 (#include "typeprint.h"): Removed.
5304 (#include "frame.h"): Removed.
5305 * gdbtypes.h (print_type_scalar): Removed declaration.
5306 * infcmd.c (#include "completer.h"): Removed.
5307 * language.c (#include "frame.h"): Removed.
5308 * m2-typeprint.c (#include "command.h"): Removed.
5309 (#include "gdbcmd.h"): Removed.
5310 (#include "language.h"): Removed.
5311 * m2-valprint.c (#include "valprint.h"): Removed.
5312 * p-typeprint.c (#include "command.h"): Removed.
5313 (#include "gdbcmd.h"): Removed.
5314 * p-valprint.c (#include "typeprint.h"): Removed.
5315 * parse.c (#include "linespec.h"): Removed.
5316 * regcache.c (#include "frame.h"): Removed.
5317 * remote.c (#include "frame.h"): Removed.
5318 (getpkt_sane): Make static.
5319 * source.c (#include "completer.h"): Removed.
5320 * stack.c (#include "symfile.h"): Removed.
5321 (#include "objfiles.h"): Removed.
5322 * symfile.c (#include "completer.h"): Removed.
5323 * tracepoint.c (#include "completer.h"): Removed.
5324 * values.c (#include "frame.h"): Removed.
5325 * varobj.c (#include "valprint.h"): Removed.
5326 * wrapper.c (#include "frame.h"): Removed.
5328 * memattr.c (create_mem_region): Removed unused variable.
5329 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
5331 2001-03-27 Nick Clifton <nickc@redhat.com>
5333 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
5335 2001-03-27 Kevin Buettner <kevinb@redhat.com>
5337 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
5340 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
5342 * TODO (Cleanups): Remove the item about converting docs to GFDL.
5344 2001-03-26 Kevin Buettner <kevinb@redhat.com>
5346 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
5347 type of ``bundle'' from unsigned char * to char *.
5348 (ia64_get_saved_register): Use alloca() to allocate register
5351 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
5353 2001-03-26 Kevin Buettner <kevinb@redhat.com>
5355 * proc-utils.h (procfs_ctl_t): New typedef.
5356 * proc-api.c (write_with_trace): Change type of ``opcode'' from
5357 long to procfs_ctl_t. Don't assume that the target has defined
5358 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
5359 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
5360 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
5361 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
5362 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
5363 Conditionally define as appropriate for AIX/non-AIX systems. Use
5364 these defines/typedefs as appropriate elsewhere in file.
5365 (struct procinfo): Change type of saved_sigset and saved_sighold
5366 from sigset_t to gdb_sigset_t. Make saved_exitset and
5367 saved_entryset pointer variables. Add two new fields, num_syscalls
5369 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
5370 (sysset_t_size, sysset_t_alloc): New functions.
5371 (load_syscalls, free_syscalls, find_syscall): New functions for
5372 platforms which define DYNAMIC_SYSCALLS.
5373 (create_procinfo): Call load_syscalls.
5374 (destroy_one_procinfo): Call free_syscalls.
5375 (GDBRESET): Don't define twice.
5376 (proc_modify_flag): Change type of operation code array `arg'
5377 from long to procfs_ctl_t.
5378 (proc_stop_process, proc_wait_for_stop, proc_run_process)
5379 (proc_set_traced_signals, proc_set_traced_faults)
5380 (proc_set_traced_sysentry, proc_set_traced_sysexit)
5381 (proc_set_held_signals, proc_clear_current_fault)
5382 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
5383 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
5384 (proc_set_traced_sysentry): Dynamically allocate variable sized
5385 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
5386 (proc_set_traced_sysexit): Dynamically allocate variable
5387 sized struct gdb_proc_ctl_pcsexit. Also, free it at
5389 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
5390 for reading the sysset_t struct on AIX5.
5391 (procfs_debug_inferior): Don't assume that SYS_exit will be
5392 defined. Add new code for finding certain syscalls on AIX5.
5393 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
5394 (syscall_is_lwp_create): New functions.
5395 (procfs_wait): Restructured code which checks for certain
5396 system calls to use the new syscall_is_... functions.
5397 (procfs_notice_signals): Account for the fact that saved_entryset
5398 and saved_exitset in struct procinfo are now pointers.
5400 2001-03-26 Kevin Buettner <kevinb@redhat.com>
5402 * symtab.c (find_pc_sect_line): Revise method used for finding
5405 2001-03-26 Mark Kettenis <kettenis@gnu.org>
5407 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
5408 i386_linux_sigtramp_saved_sp): Make static.
5409 (i386_linux_frame_saved_pc): New function based on the old
5410 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
5411 of read_memory_integer.
5412 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
5413 (i386_linux_sigtramp_saved_pc): Remove prototype.
5414 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
5415 (i386_linux_frame_saved_pc): New prototype.
5417 2001-03-26 Andrew Cagney <ac131313@redhat.com>
5419 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
5420 * TODO (GDB 5.1 - Cleanups): Update.
5422 2001-03-26 Andrew Cagney <ac131313@redhat.com>
5424 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
5427 2001-03-26 Mark Kettenis <kettenis@gnu.org>
5429 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
5431 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
5433 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
5434 (STORE_STRUCT_RETURN): Redefine in terms of
5435 i386_store_struct_return.
5436 (i386_push_arguments, i386_store_struct_return): New prototypes.
5437 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
5438 definition was identical to the definition in "i386/tm-i386.h" so
5439 the new definition should suffice too.
5441 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5443 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
5444 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
5446 * config/djgpp/djconfig.sh: Add copyright notice.
5448 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
5449 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
5450 (top level) <string.h>: Include gdb_string.h instead.
5451 (dos_noop, dos_raw, dos_noflush_set_tty_state)
5452 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
5454 * go32-nat.c (go32_create_inferior): Move the declaration of
5455 `environ' to here from the top level.
5456 (top level) <_initialize_go32_nat>: Remove redundant prototype.
5457 <gdb_string.h>: Include it instead of string.h.
5458 (store_register): Call register_buffer instead of accessing
5459 registers[] directly.
5460 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
5461 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
5462 the function names at the start of the line.
5463 (go32_set_dr): Throw internal_error if the argument is not a valid
5464 debug register number.
5465 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
5466 (go32_wait, go32_xfer_memory, go32_files_info)
5467 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
5469 2001-03-25 Jim Blandy <jimb@redhat.com>
5471 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
5473 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5475 From Andrew Cagney <ac131313@redhat.com>
5477 * coffread.c: Include "gdb_assert.h".
5478 (coff_symtab_read): Cast the integer s_sclass to a long before
5479 casting it to a pointer.
5481 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5483 From Andrew Cagney <ac131313@redhat.com>
5485 * coffread.c (coff_symtab_read): Initialize
5486 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
5488 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
5490 2001-03-23 Andrew Cagney <ac131313@redhat.com>
5492 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
5493 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
5496 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
5497 * gdbarch.h, gdbarch.c: Re-generate.
5499 * target.h (SOFTWARE_SINGLE_STEP_P)
5500 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
5502 2001-03-23 Andrew Cagney <ac131313@redhat.com>
5504 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
5505 * gdbarch.h, gdbarch.c: Regenerate.
5507 * regcache.h (regcache_read, regcache_write): Declare.
5508 (registers, register_valid, register_buffer): Add note that these
5509 interfaces are deprecated.
5511 * regcache.c: Include "gdb_assert.h".
5512 (legacy_write_register_gen): Rename write_register_gen.
5513 (legacy_read_register_gen): Rename read_register_gen.
5514 (regcache_read, regcache_write): New function.
5515 (read_register_gen, write_register_gen): New function.
5516 (write_register): Simplify. Use write_register_gen.
5517 (read_register): Ditto using read_register_gen.
5518 (read_signed_register): Ditto.
5519 (read_register_bytes): Ditto!!!!
5520 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
5521 replaced by gdbarch_register_read.
5523 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
5526 2001-03-23 Jim Blandy <jimb@redhat.com>
5528 Fix from Dan Berlin:
5530 * stabsread.c (read_cpp_abbrev): Properly construct the names of
5531 virtual function table pointer fields.
5533 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5535 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
5536 xmrealloc): Move existing declarations to the one place and
5537 re-order to be consistent.
5538 (xmcalloc, xmfree): Declare.
5539 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
5542 * utils.c (size_t): Delete #ifdef defining size_t.
5543 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
5544 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
5545 corresponding malloc, realloc, calloc.
5546 (mfree): Call free directly.
5547 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
5548 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
5549 function bodies to here.
5550 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
5552 2001-03-23 Andrew Cagney <ac131313@redhat.com>
5554 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
5555 ``shell_file'' static locals.
5557 * jv-lang.c (java_link_class_type): Initialize ``field'' and
5560 * jv-valprint.c (java_value_print): Initialize ``next_element''.
5562 2001-03-23 Mark Kettenis <kettenis@gnu.org>
5564 * config/i386/nm-i386.h: Fix formatting and change reference to
5565 i386-tdep.c to i386-nat.c.
5567 2001-03-23 David Smith <dsmith@redhat.com>
5569 * configure.in: Corrected spelling errors.
5570 * configure: Regenerated.
5572 2001-03-22 Andrew Cagney <ac131313@redhat.com>
5574 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
5576 2001-03-22 Andrew Cagney <ac131313@redhat.com>
5578 * Makefile.in (NTSSTART): Delete.
5580 (kdb): Delete target.
5581 * kdb-start.c, stuff.c: Mark as obsolete.
5584 2001-03-22 Andrew Cagney <ac131313@redhat.com>
5586 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
5587 compiles using an ISO-C compiler.
5588 (MALLOC_INCOMPATIBLE): Ditto.
5589 * linespec.c (decode_line_1): Delete hack to work around
5592 2001-03-22 Andrew Cagney <ac131313@redhat.com>
5594 * exec.c (xfer_memory): Always initialize section.
5595 * infrun.c (normal_stop): Always initialize source_flag.
5597 2001-03-22 Andrew Cagney <ac131313@redhat.com>
5599 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
5600 non-use of a continue address and typical use of ``q'' packet.
5602 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
5604 Make DJGPP use the new unified support for hardware
5605 breakpoints and watchpoints on x86 targets:
5607 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
5608 include nm-i386.h instead.
5609 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
5610 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
5611 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
5612 (target_stopped_data_address, target_insert_watchpoint)
5613 (target_remove_watchpoint, target_insert_hw_breakpoint)
5614 (target_remove_hw_breakpoint): Don't define.
5615 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
5616 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
5617 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
5618 functions from go32-nat.c.
5620 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
5622 * go32-nat.c <top level>: Remove prototypes for watchpoint-
5623 related functions. Remove definitions of watchpoint-related
5625 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
5626 private cleanup_dregs function.
5627 (cleanup_dregs, go32_insert_watchpoint)
5628 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
5629 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
5630 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
5631 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
5632 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
5634 2001-03-21 Kevin Buettner <kevinb@redhat.com>
5636 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
5637 than two instead of generating an error.
5639 2001-03-21 Jim Blandy <jimb@redhat.com>
5641 * cp-valprint.c: Reformat to bring into line with GNU coding
5644 2001-03-21 Mark Kettenis <kettenis@gnu.org>
5646 Make Linux use the new unified support for hardware breakpoints
5647 and watchpoints on x86 targets.
5648 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
5649 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
5650 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
5651 appropriate value if not already defined.
5652 (register_u_addr): New function.
5653 (kernel_u_size): New function.
5654 (i386_linux_dr_get, i386_linux_dr_set): New functions.
5655 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
5656 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
5657 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
5658 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
5659 (TARGET_HAS_HARDWARE_WATCHPOINTS,
5660 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
5661 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
5662 target_remove_watchpoint): Remove macros.
5663 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
5664 i386_remove_watchpoint): Remove prototypes.
5665 (register_u_addr): New prototype.
5666 (REGISTER_U_ADDR): Define in terms of register_u_addr.
5667 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
5668 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
5669 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
5670 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
5671 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
5674 2001-03-21 Jim Blandy <jimb@redhat.com>
5676 Fix from Dan Berlin:
5678 * linespec.c (find_methods): Whitespace differences aren't
5679 significant in *un*mangled method names. Use strcmp_iw to compare
5682 2001-03-21 Andrew Cagney <ac131313@redhat.com>
5684 * gdbarch.sh: Allow a non- multi-arch target to override a
5686 * gdbarch.h: Regenerate.
5688 2001-03-21 Andrew Cagney <ac131313@redhat.com>
5690 * gdbarch.sh: Avoid use of ``!''.
5692 2001-03-20 Andrew Cagney <ac131313@redhat.com>
5694 * target.h (enum target_signal): Move definition from here.
5695 * defs.h (enum target_signal): To here.
5697 * config/arc/tm-arc.h (arc_software_single_step): Change type of
5698 first parameter to enum target_signal.
5699 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
5700 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
5701 * rs6000-tdep.c (rs6000_software_single_step): Update.
5703 2001-03-20 Andrew Cagney <ac131313@redhat.com>
5705 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
5708 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
5709 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
5710 or a reference ('a') can be in a pseudo register.
5711 * infcmd.c (do_registers_info): Must take into account the pseudo
5712 registers to print their value.
5713 (registers_info): Likewise.
5714 * stack.c (frame_info): Likewise.
5715 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
5717 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
5719 Unified support for hardware breakpoints and watchpoints on
5722 * config/i386/nm-i386.h: New file.
5724 * config/i386/nm-i386.h: (i386_cleanup_dregs)
5725 (i386_insert_watchpoint, i386_remove_watchpoint)
5726 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
5727 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5728 (i386_remove_hw_breakpoint): Declare prototypes.
5729 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5730 Define if not already defined.
5731 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
5732 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
5733 (target_insert_watchpoint, target_remove_watchpoint)
5734 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
5735 to call the appropriate i386_* functions.
5737 * i386-nat.c: New file.
5739 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
5740 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
5741 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
5742 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
5743 (maint_show_dr): New variables.
5744 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
5745 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
5746 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
5747 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5748 (i386_stopped_data_address, i386_stopped_by_hwbp)
5749 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
5751 (_initialize_i386_nat): New function.
5752 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
5753 `show-debug-regs', sets maint_show_dr to non-zero value and
5754 activates debugging print-outs in functions which insert, remove,
5755 and test watchpoints and hardware breakpoints.
5757 * Makefile.in (i386-nat.o): New target.
5758 (ALLDEPFILES): Add i386-nat.o.
5760 2001-03-21 Mark Kettenis <kettenis@gnu.org>
5762 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
5763 appropriate comment.
5765 2001-03-20 Kevin Buettner <kevinb@redhat.com>
5767 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
5768 thread-db.o, and lin-lwp.o for thread support instead of
5769 linux-thread.o and lin-thread.o.
5770 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
5771 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
5772 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
5773 (lin_lwp_attach_lwp): Declare.
5775 2001-03-20 Jim Blandy <jimb@redhat.com>
5777 Fix from Dan Berlin:
5779 * Makefile.in: Clean up dependencies on ../include/demangle.h.
5780 (demangle_h): New variable.
5781 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
5783 2001-03-20 Andrew Cagney <ac131313@redhat.com>
5785 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
5786 * breakpoint.c (bpstat_stop_status): Update.
5787 * infrun.c (handle_inferior_event): Ditto.
5788 * mips-tdep.c (mips_dump_tdep): Ditto.
5789 * infrun.c (resume): Ditto.
5790 * infptrace.c (child_resume): Ditto.
5791 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5792 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5793 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5794 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5795 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5796 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5797 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5799 2001-03-20 Andrew Cagney <ac131313@redhat.com>
5801 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
5802 with internal_error.
5804 2001-03-20 Jim Blandy <jimb@redhat.com>
5806 Fix from Dan Berlin:
5808 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
5809 than asking for sym_class's type; that's circuitous. Remove
5810 sym_class, since the last use of it is gone.
5812 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
5814 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
5815 Correct the order of calls to ui_out_field_string and
5816 ui_out_list_begin when bs->old_val is NULL.
5818 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5820 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
5821 * configure: Regenerate.
5822 * config.in: Regenerate.
5823 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
5825 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5827 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
5828 same line to avoid problems with Unixware 7's make when building
5831 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5833 * defs.h (malloc): Move declaration from here.
5834 * utils.c (malloc): To here.
5835 * config/pa/xm-hppah.h (malloc): Delete declaration.
5837 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
5838 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
5839 (hpread_quick_traverse): Ditto.
5840 * infttrace.c (create_thread_info): Ditto.
5841 (kill_inferior): Ditto.
5842 * gnu-nat.c (make_inf): Ditto, and don't check return value.
5843 * procfs.c (proc_update_threads): Ditto.
5844 * valprint.c (print_decimal_chars): Ditto.
5845 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
5847 * remote-rdp.c (rdp_set_command_line): Ditto.
5849 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5851 * defs.h (realloc): Move declaration from here.
5852 * utils.c (realloc): To here.
5853 * config/pa/xm-hppah.h (realloc): Delete declaration.
5854 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
5855 * symfile.c (add_filename_language): Ditto.
5856 * event-loop.c (create_file_handler): Ditto.
5858 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5860 * defs.h (free): Move declaration from here.
5861 * utils.c (free): To here.
5862 (xfree): Document as the only call to free().
5863 * config/pa/xm-hppah.h (free): Delete declaration.
5865 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5867 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
5870 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5872 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
5873 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
5874 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
5876 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5878 * TODO: List known problems with TUI.
5880 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5882 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
5885 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5887 * remote.c (remote_cisco_section_offsets): Do not cast result from
5888 bfd_get_section_name.
5889 (compare_sections_command): Ditto.
5890 (remote_cisco_section_offsets): Make ``p'' a const pointer.
5891 (compare_sections_command): Ditto for ``sectname''.
5893 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5895 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
5896 * valops.c (hand_function_call): Simplify computation of the
5897 address of the pushed argument.
5899 2001-03-17 Andrew Cagney <ac131313@redhat.com>
5901 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
5902 Code copied from c-exp.y.
5904 2001-03-18 Kevin Buettner <kevinb@redhat.com>
5906 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
5907 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
5908 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
5909 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
5910 of the Solaris procfs testing section. Instead, group with...
5911 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
5912 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
5913 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
5914 * configure: Regenerate.
5915 * config.in: Regenerate.
5917 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
5918 new configure macros to choose which (if any) code to
5919 compile in. Added code to explicitly handle *BSD systems;
5920 these systems were previously handled only through macro
5921 redefinition. Also, due to the way the autoconf tests are set
5922 up, this function will no longer return a non-zero value when
5923 GDB is configured as a cross debugger. I.e, cross debuggers
5924 will no longer be able to "accidentally" get the host system's
5927 2001-03-18 Kevin Buettner <kevinb@redhat.com>
5929 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
5930 line to avoid build problem on NetBSD 1.4.
5932 2001-03-17 Michael Chastain <chastain@redhat.com>
5934 * win32-nat.c (child_attach): check args for NULL before passing
5935 to strtoul. This fixes PR gdb/43.
5937 2001-03-17 Mark Kettenis <kettenis@gnu.org>
5939 * i387-nat.h: Doc Fix.
5941 * i386-tdep.c: Fix formatting.
5942 (i386_get_frame_setup, i386_follow_jump, codestream_read,
5943 codestream_seek, codestream_fill, skip_trampoline_code,
5944 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
5947 2001-03-17 Mark Kettenis <kettenis@gnu.org>
5949 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
5950 no longer used. Also remove associated FIXME.
5952 2001-03-16 Andrew Cagney <ac131313@redhat.com>
5954 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
5955 not generate macro wrappers for multi-arch functions or
5957 (class_is_info_p, class_is_predicate_p): Update.
5958 (class_is_function_p, class_is_variable_p): Ditto.
5959 (class_is_multiarch_p): New class function.
5961 2001-03-16 J.T. Conklin <jtc@redback.com>
5963 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
5964 h8300_frame_args_address from frame_args_address.
5965 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
5966 from frame_locals_address.
5967 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
5968 from print_register_hook.
5969 (h8300_frame_args_address): Declare.
5970 (h8300_frame_find_saved_regs): Declare.
5971 (h8300_frame_locals_address): Declare.
5972 (h8300_frame_saved_pc): Declare.
5973 (h8300_pop_frame): Declare.
5974 (h8300_print_register_hook): Declare.
5975 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
5976 (h8300_frame_args_address): Renamed from frame_args_address.
5977 (h8300_frame_locals_address): Renamed from frame_locals_address.
5978 (h8300_pop_frame): Renamed from pop_frame.
5979 (h8300_print_register_hook): Renamed from print_register_hook.
5981 2001-03-16 Kevin Buettner <kevinb@redhat.com>
5983 * solib-svr4.c (bfd_lookup_symbol): Change type of
5984 ``storage_needed'' from unsigned int to long in order to
5985 match return type of bfd_get_symtab_upper_bound() and
5986 bfd_get_dynamic_symtab_upper_bound().
5987 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
5988 REASONABLE_LIMIT hack which had been added to work around this
5991 2001-03-15 Kevin Buettner <kevinb@redhat.com>
5993 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
5994 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
5995 to free() with calls to xfree().
5996 (bfd_lookup_symbol): Eliminate use of PTR.
5997 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
5999 2001-03-15 Martin Hunt <hunt@redhat.com>
6001 * linespec.c (decode_line_1): Remove trailing quote
6002 when parsing double quotes.
6004 2001-03-15 Kevin Buettner <kevinb@redhat.com>
6006 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
6007 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
6008 argument in the to_xfer_memory calls.
6010 2001-03-15 Andrew Cagney <ac131313@redhat.com>
6012 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
6013 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
6015 2001-03-15 Andrew Cagney <ac131313@redhat.com>
6017 * wince.c (child_xfer_memory): Add attrib parameter.
6018 * symm-nat.c (child_xfer_memory): Ditto.
6019 * mac-nat.c (child_xfer_memory): Ditto.
6020 * infttrace.c (child_xfer_memory): Ditto.
6021 * procfs.c (procfs_xfer_memory): Ditto.
6022 * lin-thread.c (thread_db_xfer_memory): Ditto.
6023 * gnu-nat.c (gnu_xfer_memory): Ditto.
6025 2001-03-14 Andrew Cagney <ac131313@redhat.com>
6027 * NEWS: Mention that Harris/CXUX m88k is obsolete.
6029 2001-03-13 Andrew Cagney <ac131313@redhat.com>
6031 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
6032 to regcache functions.
6033 * config/m68k/tm-m68k.h: Ditto.
6034 * config/i386/tm-i386v.h: Ditto.
6035 * config/mcore/tm-mcore.h: Ditto.
6036 * config/m88k/tm-m88k.h: Ditto.
6037 * config/m68k/tm-news.h: Ditto.
6038 * config/m68k/tm-linux.h: Ditto.
6039 * config/m68k/tm-delta68.h: Ditto.
6040 * config/m68k/nm-sun3.h: Ditto.
6041 * config/m32r/tm-m32r.h: Ditto.
6042 * config/i386/tm-symmetry.h: Ditto.
6043 * config/i386/tm-sun386.h: Ditto.
6044 * config/i386/tm-i386.h: Ditto.
6045 * config/i386/nm-symmetry.h: Ditto.
6046 * config/i386/nm-sun386.h: Ditto.
6047 * config/i386/nm-ptx4.h: Ditto.
6048 * config/i386/nm-i386mach.h: Ditto.
6049 * config/h8500/tm-h8500.h: Ditto.
6050 * config/h8300/tm-h8300.h: Ditto.
6051 * config/fr30/tm-fr30.h: Ditto.
6052 * config/d30v/tm-d30v.h: Ditto.
6053 * config/arm/tm-arm.h: Ditto.
6054 * config/arc/tm-arc.h: Ditto.
6055 * config/alpha/tm-alpha.h: Ditto.
6056 * config/a29k/tm-vx29k.h: Ditto.
6057 * config/a29k/tm-a29k.h: Ditto.
6058 * config/w65/tm-w65.h: Ditto.
6059 * config/vax/tm-vax.h: Ditto.
6060 * config/v850/tm-v850.h: Ditto.
6061 * config/tic80/tm-tic80.h: Ditto.
6062 * config/sparc/tm-sparclite.h: Ditto.
6063 * config/sparc/tm-sparclet.h: Ditto.
6064 * config/sparc/tm-sparc.h: Ditto.
6065 * config/sparc/nm-sun4sol2.h: Ditto.
6066 * config/sparc/nm-sun4os4.h: Ditto.
6067 * config/sparc/nm-nbsd.h: Ditto.
6068 * config/powerpc/nm-solaris.h: Ditto.
6069 * config/pa/tm-hppao.h: Ditto.
6070 * config/pa/tm-hppa.h: Ditto.
6071 * config/pa/nm-hppab.h: Ditto.
6072 * config/ns32k/tm-umax.h: Ditto.
6073 * config/ns32k/tm-merlin.h: Ditto.
6074 * config/nm-m3.h: Ditto.
6075 * config/nm-gnu.h: Ditto.
6077 2001-03-14 Andrew Cagney <ac131313@redhat.com>
6079 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
6080 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
6081 Specify an m88k target. Include sample GAWK script to generate
6082 target list. Delete non-existant romp target.
6083 * TODO (GDB 5.1 - Cleanups): Update.
6085 2001-03-14 Keith Seitz <keiths@cygnus.com>
6087 * linespec.c (decode_line_1): Skip argptr over a leading
6088 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
6090 2001-03-14 Kevin Buettner <kevinb@redhat.com>
6092 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
6094 2001-03-13 Andrew Cagney <ac131313@redhat.com>
6096 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
6099 * printcmd.c (printf_command): Ditto.
6100 * ch-exp.c (match_integer_literal): Ditto.
6101 * scm-tags.h: Ditto.
6102 * ser-go32.c: Ditto.
6103 * hppa-tdep.c (unwind_command): Ditto.
6104 * defs.h (volatile): Delete macro definition. Assume __STDC__.
6105 * remote-adapt.c (volatile): Ditto.
6106 * remote-eb.c (volatile): Ditto.
6107 * remote-mm.c (volatile): Ditto.
6108 * defs.h (alloca): Assume __STDC__, declare returning void *.
6110 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6112 * inferior.h (ARCH_NUM_REGS): Delete definition.
6113 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
6114 * regcache.c (registers_changed): Ditto.
6115 (registers_fetched): Ditto.
6116 * infptrace.c (fetch_inferior_registers): Ditto.
6117 (store_inferior_registers): Ditto.
6118 * infcmd.c (do_registers_info): Ditto.
6119 (registers_info): Ditto.
6120 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
6121 (old_store_inferior_registers): Ditto.
6122 * gdbserver/low-linux.c (register_addr): Ditto.
6123 * gdbserver/low-hppabsd.c (register_addr): Ditto.
6124 * core-aout.c: Don't include "inferior.h".
6125 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
6126 (register_addr): Ditto.
6128 2001-03-13 Fernando Nasser <fnasser@redhat.com>
6130 From Steven Johnson <sjohnson@neurizon.net>
6131 * cli/cli-script.c (define_command): Fix setting of post hooks.
6133 2001-03-13 Mark Kettenis <kettenis@gnu.org>
6135 * i386-linux-tdep.c: Fix formatting and clarify comments.
6136 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
6139 2001-03-12 Andrew Cagney <ac131313@redhat.com>
6141 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
6142 (proc_update_sc): Use gdb_assert instead of assert.
6143 (proc_abort): Ditto.
6144 (inf_set_step_thread): Ditto.
6146 (S_exception_raise_request): Ditto.
6147 (gnu_terminal_init_inferior): Ditto.
6149 2001-03-09 Kevin Buettner <kevinb@redhat.com>
6151 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
6152 (solib-legacy.o): New makefile target.
6153 * solib-legacy.c: New file.
6154 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6155 (default_svr4_fetch_link_map_offsets): Delete.
6156 (set_solib_svr4_fetch_link_map_offsets): Declare.
6157 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
6158 * solib-svr4.c (elf/common.h): Include.
6159 (link.h): Only include for SunOS shared library support.
6160 (_SYSCALL32): Don't define.
6161 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
6162 (default_svr4_fetch_link_map_offsets): Made static; added forward
6164 (fetch_link_map_offsets): New static global.
6165 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
6166 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
6167 of what used to be in this function now reside in
6168 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
6169 (open_symbol_file_object): Fix declaration in SunOS section
6171 (set_solib_svr4_fetch_link_map_offsets): New extern function.
6172 (init_fetch_link_map_offsets): New static function.
6173 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
6174 under multiarch control.
6176 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
6178 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
6179 * config/arm/linux.mt (TDEPFILES): Likewise.
6180 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6181 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
6182 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6183 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
6184 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
6185 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
6186 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6187 * config/i386/linux.mt (TDEPFILES): Likewise.
6188 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6189 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6190 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
6191 * config/i386/ptx4.mh (XDEPFILES): Likewise.
6192 * config/i386/sun386.mt (TDEPFILES): Likewise.
6193 * config/ia64/linux.mt (TDEPFILES): Likewise.
6194 * config/m68k/linux.mt (TDEPFILES): Likewise.
6195 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
6196 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6197 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
6198 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
6199 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
6200 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
6201 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6202 * config/powerpc/linux.mt (TDEPFILES): Likewise.
6203 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6204 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
6205 * config/sh/linux.mt (TDEPFILES): Likewise.
6206 * config/sparc/linux.mt (TDEPFILES): Likewise.
6207 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6208 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6209 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
6210 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
6211 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
6213 2001-03-09 Kevin Buettner <kevinb@redhat.com>
6215 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
6217 2001-03-09 Andrew Cagney <ac131313@redhat.com>
6219 * MAINTAINERS (Write After Approval): Update Philip Blundell.
6221 2001-03-09 Keith Seitz <keiths@cygnus.com>
6223 * MAINTAINERS: Add myself to write after approval list.
6225 2001-03-09 Mark Kettenis <kettenis@gnu.org>
6227 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
6228 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
6230 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6232 * configure.host (m88*-harris-cxux*): Mark as obsolete.
6233 * configure.tgt: Ditto.
6234 * config/m88k/xm-cxux.h: Ditto.
6235 * config/m88k/tm-cxux.h: Ditto.
6236 * config/m88k/nm-cxux.h: Ditto.
6237 * config/m88k/cxux.mt: Ditto.
6238 * config/m88k/cxux.mh: Ditto.
6240 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6242 * Makefile.in: Delete rules for obsolete files.
6244 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
6246 * stack.c (parse_frame_specification): For one argument case,
6247 handle the situation where the argument is an integer, not an
6248 address -- arguably the most common case. This matters on
6249 targets where pointers and addresses are different.
6251 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6253 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
6254 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
6257 2001-03-07 Andrew Cagney <ac131313@redhat.com>
6259 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
6260 with SID on Solaris 8.
6262 2001-03-07 Mark Kettenis <kettenis@gnu.org>
6264 * defs.h: Provide prototypes for floatformat_is_negative,
6265 floatformat_is_nan and floatformat_mantissa.
6266 * utils.c: Include "gdb_assert.h".
6267 (floatformat_is_negative): New function.
6268 (floatformat_is_nan): New function.
6269 (floatformat_mantissa): New function.
6270 * valprint.c: Include "floatformat.h".
6271 (print_floating): Get rid of the Linux-specific
6272 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
6273 help these new functions. Print NaN's in a format conforming to
6276 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
6278 * top.c (init_main): Make `set history file name' complete on file
6281 2001-03-06 J.T. Conklin <jtc@redback.com>
6283 * Makefile.in (LINTFLAGS): Update to contain all of the macros
6284 which define include paths used when compiling.
6286 * util.c (savestring, msavestring): Change type of length argument.
6287 * defs.h (savestring, msavestring): Update to match.
6289 * symtab.h (decode_line_1): Removed declaration.
6291 * symfile.c (#include <assert.h>): Removed.
6293 * arch-utils.c (#include <ctype.h>): Removed.
6294 * c-typeprint.c: Likewise.
6295 * dbxread.c: Likewise.
6296 * gdbtypes.c: Likewise.
6297 * target.c: Likewise.
6298 * os9kread.c: Likewise.
6300 * c-valprint.c (#include "demangle.h"): Removed.
6301 * ch-typeprint.c: Likewise.
6303 * f-typeprint.c: Likewise.
6304 * f-valprint.c: Likewise.
6305 * m2-typeprint.c: Likewise.
6306 * typeprint.c: Likewise.
6307 * p-typeprint.c: Likewise.
6308 * valarith.c: Likewise.
6309 * valprint.c: Likewise.
6311 * m2-typeprint.c (#include "gdb_string.h"): Removed.
6312 * nlmread.c: Likewise.
6314 * mdebugread.c (#include "gdb-stabs.h"): Removed.
6315 * minsyms.c: Likewise.
6316 * mipsread.c: Likewise.
6317 * nlmread.c: Likewise.
6319 * m2-typeprint.c (#include "obstack.h"): Removed.
6320 * m2-valprint.c: Likewise.
6322 * event-loop.c (#include <setjmp.h>): Removed.
6324 2001-03-06 Stan Shebs <shebs@apple.com>
6326 * MAINTAINERS: Remove self from specific maintenance domains
6327 (macos, gdbserver, documentation, testsuite).
6329 2001-03-06 Kevin Buettner <kevinb@redhat.com>
6331 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
6332 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
6333 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
6334 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
6335 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
6336 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
6337 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
6338 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
6339 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
6340 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
6341 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
6342 coff-solib.h, coffread.c, command.h, complaints.c,
6343 complaints.h, completer.c, completer.h,
6344 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
6345 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
6346 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
6347 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
6348 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
6349 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
6350 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
6351 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
6352 config/arm/nm-linux.h, config/arm/tm-arm.h,
6353 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
6354 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
6355 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
6356 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
6357 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
6358 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
6359 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
6360 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
6361 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
6362 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
6363 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
6364 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
6365 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
6366 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
6367 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
6368 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
6369 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
6370 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
6371 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
6372 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
6373 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
6374 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
6375 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
6376 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
6377 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
6378 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
6379 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
6380 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
6381 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
6382 config/i960/tm-i960.h, config/i960/tm-mon960.h,
6383 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
6384 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
6385 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
6386 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
6387 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
6388 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
6389 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
6390 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
6391 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
6392 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
6393 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
6394 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
6395 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
6396 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
6397 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
6398 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
6399 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
6400 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
6401 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
6402 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
6403 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
6404 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
6405 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
6406 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
6407 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
6408 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
6409 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
6410 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
6411 config/mips/nm-irix5.h, config/mips/nm-mips.h,
6412 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
6413 config/mips/tm-embed.h, config/mips/tm-embed64.h,
6414 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
6415 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
6416 config/mips/tm-mips.h, config/mips/tm-mips64.h,
6417 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
6418 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
6419 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
6420 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
6421 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
6422 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
6423 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
6424 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
6425 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
6426 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
6427 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
6428 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
6429 config/nm-sysv4.h, config/none/nm-none.h,
6430 config/none/tm-none.h, config/none/xm-none.h,
6431 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
6432 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
6433 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
6434 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
6435 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
6436 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
6437 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
6438 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
6439 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
6440 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
6441 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
6442 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
6443 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
6444 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
6445 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
6446 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
6447 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
6448 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
6449 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
6450 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
6451 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
6452 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
6453 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
6454 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
6455 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
6456 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
6457 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
6458 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
6459 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
6460 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
6461 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
6462 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
6463 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
6464 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
6465 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
6466 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
6467 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
6468 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
6469 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
6470 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
6471 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
6472 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
6473 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
6474 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
6475 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
6476 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
6477 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
6478 gdbserver/low-sim.c, gdbserver/low-sparc.c,
6479 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
6480 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
6481 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
6482 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
6483 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
6484 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
6485 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
6486 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
6487 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
6488 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
6489 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
6490 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
6491 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
6492 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
6493 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
6494 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
6495 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
6496 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
6497 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
6498 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
6499 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
6500 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
6501 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
6502 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
6503 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
6504 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
6505 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
6506 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
6507 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
6508 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
6509 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
6510 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
6511 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
6512 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
6513 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
6514 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
6515 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
6516 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
6517 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
6518 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
6519 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
6520 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
6521 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
6522 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
6523 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
6524 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
6525 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
6526 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
6527 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
6528 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
6529 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
6530 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
6531 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
6532 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
6533 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
6534 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
6535 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
6538 2001-03-05 Kevin Buettner <kevinb@redhat.com>
6540 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
6541 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
6543 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
6544 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
6545 (sys/fault.h, sys/select.h): Test for presence of these
6547 (ia64-*-aix*): Define NEW_PROC_API for this host.
6548 * configure: Regenerate.
6549 * config.in: Regenerate.
6551 * configure.host (ia64-*-aix*): New host.
6552 * configure.tgt (ia64-*-aix*): New target.
6554 2001-03-05 Andrew Cagney <ac131313@redhat.com>
6556 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
6558 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
6560 * wince.c: Change realloc to xrealloc throughout.
6561 (handle_load_dll): Use void * rather than PTR in argument.
6563 2001-03-04 Andrew Cagney <ac131313@redhat.com>
6565 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
6566 * ocd.c (ocd_xfer_memory): Ditto.
6567 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
6568 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
6569 buildable with ,-Werror.
6571 * Makefile.in (symfile_h): Define.
6572 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
6573 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
6574 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
6577 * dsrec.c (make_srec): Fix internal_error fmt arg.
6578 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
6580 2001-03-03 Kevin Buettner <kevinb@redhat.com>
6582 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
6585 2001-03-02 Andrew Cagney <ac131313@redhat.com>
6587 * MAINTAINERS (paper trail): Update.
6589 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
6591 2001-03-02 Andrew Cagney <ac131313@redhat.com>
6593 From 2001-03-01 Tom Rix <trix@redhat.com>:
6594 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
6595 parameter to mn10200_analyze_prologue.
6597 * config/mn10200/tm-mn10200.h: Include "regcache.h".
6598 * MAINTAINERS: Document that mn10200-elf target is buildable.
6600 2001-03-02 Kevin Buettner <kevinb@redhat.com>
6602 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
6604 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
6605 (MONTEREY): Don't define.
6608 2001-03-02 Matt Hiller <hiller@redhat.com>
6610 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
6612 2001-03-02 Kevin Buettner <kevinb@redhat.com>
6614 * sparc-nat.c (sparc-nat.c): Don't include self.
6616 2001-03-01 J.T. Conklin <jtc@redback.com>
6618 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
6619 if __CYGWIN32__ is set from here.
6620 * config/i386/xm-cygwin.h: To here.
6621 * config/powerpc/xm-cygwin.h: To here.
6623 * i386-stub.c (handle_exception): Use 'T' response packet.
6625 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6627 * m32r-tdep.c: Fix cut and paste error in comment.
6629 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6631 * symtab.c (print_msymbol_info): Print addresses by portable method
6632 longest_local_hex_string_custom. Allow for 64-bit addresses.
6634 2001-03-01 J.T. Conklin <jtc@redback.com>
6636 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
6637 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
6638 (MIN_OF_TYPE): Likewise.
6640 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
6642 2001-03-01 Andrew Cagney <ac131313@redhat.com>
6644 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
6645 * os9kread.c (os9k_process_one_symbol): Add assert to detect
6646 ``loses if sizeof (char *) > sizeof (int)''.
6648 2001-03-01 Andrew Cagney <ac131313@redhat.com>
6650 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
6652 2001-03-01 Andrew Cagney <ac131313@redhat.com>
6654 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
6658 2001-03-01 Andrew Cagney <ac131313@redhat.com>
6660 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
6663 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6665 * printcmd.c (print_address_numeric): Update comments to refer
6666 to sizeof addr, not sizeof pointer.
6667 (x_command): Remove needless whitespace (shorten long line).
6669 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
6670 (read_memory_nobpt): Ditto.
6671 (ep_is_catchpoint): Ditto.
6672 (ep_is_shlib_catchpoint): Ditto.
6673 (ep_is_exception_catchpoint): Ditto.
6674 (describe_other_breakpoints): Ditto.
6676 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
6678 * regcache.h (register_valid): Fix comment documenting valid
6681 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
6683 From Steven Johnson:
6684 * regcache.h: New file.
6686 * value.h (read_register_bytes, read_register_gen)
6687 (write_register_gen, write_register_bytes)
6688 (read_register, read_register_pid)
6689 (read_signed_register, read_signed_register_pid)
6690 (write_register, write_register_pid)
6691 (register_cached, set_register_cached)
6692 (register_changed, register_buffer)
6693 (registers_changed, supply_register): Move declaration from here.
6694 * regcache.h: To here.
6695 * gdbcore.h (registers_fetched): Ditto.
6696 * inferior.h (registers, registers_valid): Ditto.
6698 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
6699 generic_target_write_pc, write_pc_pid, write_pc,
6700 generic_target_read_sp, read_sp, generic_target_write_sp,
6701 write_sp, generic_target_read_fp, read_fp,
6702 generic_target_write_fp, write_fp): Add note that these functions
6703 will be moved from this file.
6705 * a29k-tdep.c: Include "regcache.h".
6706 * a68v-nat.c: Ditto.
6707 * abug-rom.c: Ditto.
6708 * alpha-nat.c: Ditto.
6709 * alpha-tdep.c: Ditto.
6710 * alphabsd-nat.c: Ditto.
6711 * arc-tdep.c: Ditto.
6712 * arm-linux-nat.c: Ditto.
6713 * arm-linux-tdep.c: Ditto.
6714 * arm-tdep.c: Ditto.
6715 * blockframe.c: Ditto.
6716 * core-aout.c: Ditto.
6717 * core-sol2.c: Ditto.
6719 * cpu32bug-rom.c: Ditto.
6720 * cxux-nat.c: Ditto.
6721 * d10v-tdep.c: Ditto.
6722 * d30v-tdep.c: Ditto.
6723 * dbug-rom.c: Ditto.
6724 * dink32-rom.c: Ditto.
6725 * dve3900-rom.c: Ditto.
6727 * fr30-tdep.c: Ditto.
6729 * go32-nat.c: Ditto.
6730 * h8300-tdep.c: Ditto.
6731 * h8500-tdep.c: Ditto.
6732 * hp300ux-nat.c: Ditto.
6733 * hppa-tdep.c: Ditto.
6734 * hppab-nat.c: Ditto.
6735 * hppah-nat.c: Ditto.
6736 * hppam3-nat.c: Ditto.
6737 * hpux-thread.c: Ditto.
6738 * i386-linux-nat.c: Ditto.
6739 * i386-linux-tdep.c: Ditto.
6740 * i386-tdep.c: Ditto.
6741 * i386aix-nat.c: Ditto.
6742 * i386b-nat.c: Ditto.
6743 * i386bsd-nat.c: Ditto.
6744 * i386gnu-nat.c: Ditto.
6745 * i386ly-tdep.c: Ditto.
6746 * i386m3-nat.c: Ditto.
6747 * i386mach-nat.c: Ditto.
6748 * i386nbsd-nat.c: Ditto.
6749 * i386v4-nat.c: Ditto.
6750 * i387-nat.c: Ditto.
6751 * i387-tdep.c: Ditto.
6752 * i960-tdep.c: Ditto.
6753 * ia64-aix-nat.c: Ditto.
6754 * ia64-linux-nat.c: Ditto.
6755 * ia64-tdep.c: Ditto.
6756 * infptrace.c: Ditto.
6758 * irix4-nat.c: Ditto.
6759 * irix5-nat.c: Ditto.
6761 * lin-thread.c: Ditto.
6762 * lynx-nat.c: Ditto.
6764 * m32r-rom.c: Ditto.
6765 * m32r-tdep.c: Ditto.
6766 * m68hc11-tdep.c: Ditto.
6767 * m68k-tdep.c: Ditto.
6768 * m68klinux-nat.c: Ditto.
6769 * m68knbsd-nat.c: Ditto.
6770 * m68knbsd-tdep.c: Ditto.
6771 * m88k-nat.c: Ditto.
6772 * m88k-tdep.c: Ditto.
6774 * mcore-rom.c: Ditto.
6775 * mcore-tdep.c: Ditto.
6776 * mi/mi-main.c: Ditto.
6777 * mips-nat.c: Ditto.
6778 * mips-tdep.c: Ditto.
6779 * mipsm3-nat.c: Ditto.
6780 * mipsv4-nat.c: Ditto.
6781 * mn10200-tdep.c: Ditto.
6782 * mn10300-tdep.c: Ditto.
6784 * ns32km3-nat.c: Ditto.
6785 * ns32knbsd-nat.c: Ditto.
6787 * pa64solib.c: Ditto.
6789 * ppc-linux-nat.c: Ditto.
6790 * ppc-linux-tdep.c: Ditto.
6791 * ppcbug-rom.c: Ditto.
6792 * ppcnbsd-nat.c: Ditto.
6793 * ptx4-nat.c: Ditto.
6794 * regcache.c: Ditto.
6795 * remote-adapt.c: Ditto.
6796 * remote-array.c: Ditto.
6797 * remote-bug.c: Ditto.
6798 * remote-e7000.c: Ditto.
6799 * remote-eb.c: Ditto.
6800 * remote-es.c: Ditto.
6801 * remote-est.c: Ditto.
6802 * remote-hms.c: Ditto.
6803 * remote-mips.c: Ditto.
6804 * remote-mm.c: Ditto.
6805 * remote-nindy.c: Ditto.
6806 * remote-os9k.c: Ditto.
6807 * remote-rdi.c: Ditto.
6808 * remote-rdp.c: Ditto.
6809 * remote-sds.c: Ditto.
6810 * remote-sim.c: Ditto.
6811 * remote-st.c: Ditto.
6812 * remote-udi.c: Ditto.
6813 * remote-utils.c: Ditto.
6814 * remote-vx.c: Ditto.
6815 * remote-vx29k.c: Ditto.
6816 * remote-vx68.c: Ditto.
6817 * remote-vx960.c: Ditto.
6818 * remote-vxmips.c: Ditto.
6819 * remote-vxsparc.c: Ditto.
6821 * rom68k-rom.c: Ditto.
6822 * rs6000-nat.c: Ditto.
6823 * rs6000-tdep.c: Ditto.
6826 * sol-thread.c: Ditto.
6827 * solib-svr4.c: Ditto.
6828 * somsolib.c: Ditto.
6829 * sparc-nat.c: Ditto.
6830 * sparc-tdep.c: Ditto.
6831 * sparcl-tdep.c: Ditto.
6832 * sparclet-rom.c: Ditto.
6833 * sun3-nat.c: Ditto.
6834 * sun386-nat.c: Ditto.
6835 * symm-nat.c: Ditto.
6837 * thread-db.c: Ditto.
6839 * tic80-tdep.c: Ditto.
6840 * tracepoint.c: Ditto.
6841 * ultra3-nat.c: Ditto.
6842 * umax-xdep.c: Ditto.
6843 * uw-thread.c: Ditto.
6844 * v850-tdep.c: Ditto.
6847 * w65-tdep.c: Ditto.
6848 * w89k-rom.c: Ditto.
6849 * win32-nat.c: Ditto.
6851 * z8k-tdep.c: Ditto.
6853 2001-02-28 Matt Hiller <hiller@redhat.com>
6855 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
6857 2001-02-27 Matt Hiller <hiller@redhat.com>
6859 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
6860 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
6861 mn10300_stab_reg_to_regnum.
6863 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
6865 * symtab.c (search_symbols): Fix off by one error in test for
6868 2001-02-23 Andrew Cagney <ac131313@redhat.com>
6870 * config/sparc/sp64linux.mt: New file.
6871 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
6872 * configure.host: Recognize sparc64-*-linux* as a linux host.
6874 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
6875 * config/sparc/tm-sp64linux.h: New file.
6877 2001-02-24 Kevin Buettner <kevinb@redhat.com>
6879 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
6880 with call to internal_error().
6881 * dbxread.c (process_one_symbol): Likewise.
6882 * exec.c (build_section_table, xfer_memory): Likewise.
6883 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
6885 * hpread.c (hpread_type_translate, hpread_read_array_type)
6886 (hpread_type_lookup): Likewise.
6887 * i386-tdep.c (gdb_print_insn_i386): Likewise.
6888 * i960-tdep.c (mem): Likewise
6889 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
6890 * infptrace.c (child_resume): Likewise.
6891 * infttrace.c (_initialize_infttrace): Likewise.
6892 * language.c (binop_result_type, add_language): Likewise.
6893 * lynx-nat.c (store_inferior_registers): Likewise.
6894 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
6895 * mdebugread.c (parse_partial_symbols): Likewise.
6896 * monitor.c (monitor_printf_noecho, monitor_printf)
6897 (monitor_dump_regs): Likewise.
6898 * ocd.c (stu_put_packet): Likewise.
6899 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
6900 * remote-bug.c (bug_open): Likewise.
6901 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
6902 * remote-es.c (es1800_read_bytes): Likewise.
6903 * remote-mips.c (common_breakpoint): Likewise.
6904 * remote-rdp.c (send_rdp): Likewise.
6905 * remote-sds.c (putmessage): Likewise.
6906 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
6908 * sparcl-tdep.c (sparclite_download): Likewise.
6909 * symtab.c (lookup_partial_symbol): Likewise.
6910 * target.c (push_target, pop_target, initialize_targets): Likewise.
6911 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
6913 * valprint.c (print_decimal, print_longest, print_longest)
6914 (strcat_longest): Likewise.
6915 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
6916 * xmodem.c (xmodem_send_packet): Likewise.
6917 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
6918 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
6919 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
6920 (STORE_RETURN_VALUE): Likewise.
6921 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
6922 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
6923 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
6926 2001-02-23 Andrew Cagney <ac131313@redhat.com>
6928 * CONTRIBUTE: Document how to cite a problem report.
6929 * TODO: Note need to replace CONTRIBUTE with generated file.
6931 * CONTRIBUTE: Mention that patches do not need to include the
6932 generated files gdbarch.h and gdbarch.c.
6934 2001-02-21 Andrew Cagney <ac131313@redhat.com>
6936 * value.h (get_saved_register): Move from here.
6939 2001-02-21 Kevin Buettner <kevinb@redhat.com>
6941 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
6942 (in_solib_dynsym_resolve_code): Add declaration.
6943 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
6944 in_solib_dynsym_resolve_code() rather than
6945 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
6946 which caused this macro to only be defined when
6947 SVR4_SHARED_LIBS is defined.
6948 * solib.c (in_solib_dynsym_resolve_code): New function.
6949 * solist.h (struct target_so_ops): Add new member
6950 in_dynsym_resolve_code.
6951 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
6952 in_svr4_dynsym_resolve_code. Also, made static.
6953 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
6954 member in aix5_so_ops.
6955 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
6956 in_svr4_dynsym_resolve_code. Also, added second version
6957 of this function which will be used when SVR4_SHARED_LIBS
6959 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
6960 member in svr4_so_ops.
6962 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
6963 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
6964 config/ia64/xm-aix.h: New files.
6965 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
6966 (ia64_aix_sigcontext_register_address): New declaration.
6967 (ia64_gdbarch_init): Provide for initialization of
6968 sigcontext_register_address member of struct tdep when
6969 on target is detected to be running AIX.
6970 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
6973 2001-02-20 Kevin Buettner <kevinb@redhat.com>
6975 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
6976 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
6977 for thread support instead of linux-thread.o and lin-thread.o.
6978 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
6979 ATTACH_LWP): Define to use the following lin-lwp.c functions...
6980 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
6981 lin_lwp_attach_lwp): Declare.
6983 2001-02-20 Andrew Cagney <ac131313@redhat.com>
6985 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
6988 2001-02-20 Kevin Buettner <kevinb@redhat.com>
6990 * solib-aix5.c (solib-svr4.h): Remove include.
6991 (solib_break_names): Delete names which aren't actually
6993 (bkpt_names): Remove.
6994 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
6995 to STREQ() with equivalent calls to strcmp().
6996 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
6997 aix5_solib_create_inferior_hook): Revise comments.
6998 (enable_break): Remove old ``bkpt_names'' code.
7000 2001-02-19 Andrew Cagney <ac131313@redhat.com>
7002 * Makefile.in (SFILES): Add frame.c .
7003 (COMMON_OBS): Add frame.o .
7004 (frame.o): New target.
7006 * frame.c (find_saved_register):
7007 (default_get_saved_register):
7008 (get_saved_register):
7009 (read_relative_register_raw_bytes_for_frame):
7010 (read_relative_register_raw_bytes): Moved to here.
7011 * regcache.c: From here.
7013 2001-02-20 Kevin Buettner <kevinb@redhat.com>
7015 * solib-aix5.c: New file.
7017 2001-02-20 Martin M. Hunt <hunt@redhat.com>
7019 * solib.c (info_sharedlibrary_command): Don't assume pointers
7020 are the same size of long, call longest_local_hex_string_custom().
7022 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
7023 extract_signed_integer() should be called instead of
7026 2001-02-20 Martin M. Hunt <hunt@redhat.com>
7028 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
7030 2001-02-19 Andrew Cagney <ac131313@redhat.com>
7032 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
7033 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
7034 then floating point registers are 8 bytes.
7036 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7038 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
7039 accomodate 64-bit addresses.
7041 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7043 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
7044 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
7045 lookup_symbol, when trying to find a symbol with a mangled name,
7046 to avoid infinite recursion.
7048 2001-02-18 Andrew Cagney <ac131313@redhat.com>
7050 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
7052 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
7054 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
7055 (save_prologue_cache): Ditto.
7057 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7059 From: innadadadavida@yahoo.com:
7060 * partial-stab.h (switch): Check that pst is not null
7061 before dereferencing it.
7063 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7065 From Andrew Cagney <cagney@b1.cygnus.com>:
7066 * symfile.c (add_symbol_file_command): Always initialize
7067 my_cleanup using a NULL cleanup.
7069 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
7071 * demangle.c (demangling_style_names): New variable.
7072 (_initialize_demangler): Fill demangling_style_names with the
7073 names of known demangling styles from libiberty_demanglers[]. Use
7074 add_set_enum_cmd instead of add_set_cmd, to get completion on
7075 demangling style names.
7077 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
7078 file-name completion.
7080 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
7082 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
7083 `solib-absolute-prefix'.
7085 * tracepoint.c (_initialize_tracepoint): Ditto for
7088 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
7090 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
7091 file-name completion.
7093 * infcmd.c (_initialize_infcmd): Make the following commands use
7094 the file-name completer: `tty', `args', `path', `paths', and
7097 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
7099 * go32-nat.c: Include i387-nat.h.
7100 (fetch_register): New function, uses some of the guts of
7101 go32_fetch_registers and calls i387_supply_register.
7102 (go32_fetch_registers): Most of the code moved into
7103 fetch_register. Use i387_supply_fsave.
7104 (store_register): Use i387_fill_fsave instead of custom code.
7105 (go32_store_registers): Use i387_fill_fsave.
7107 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
7109 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
7111 * completer.c (gdb_completer_file_name_break_characters): Remove
7112 slash from file-name break characters.
7113 [__MSDOS__]: Special definition for DOS/Windows file names.
7114 (line_completion_function): When completing on file names, bump
7115 `p' to the first file-name constituent character of `word', before
7116 invoking the completer.
7118 2001-02-17 Mark Kettenis <kettenis@gnu.org>
7120 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
7121 consistently for parameter names. Fix comments accordingly.
7122 (i387_supply_register): New function.
7123 (i387_supply_fsave): Implement using i387_supply_register.
7124 * i387-nat.h: Use regnum instead of regno consistently for
7125 parameter names. Fix comments accordingly.
7126 (i387_supply_register): New prototype.
7128 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7130 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
7131 instead of TARGET_PTR_BIT (to support Harvard architectures).
7133 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7135 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
7136 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
7137 argument to parameter list and to call in order to conform to
7138 to_xfer_memory field of struct target_ops.
7140 2001-02-12 Michael Chastain <chastain@redhat.com>
7142 * somsolib.c (som_solib_add_solib_objfile): Do not use
7143 section relocation feature of syms_from_objfile. Do my own
7144 section relocation, offsetting each section of the som by
7145 either text_addr - text_link_addr or data_start.
7147 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7149 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
7151 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7153 * MAINTAINERS (paper trail): Update.
7155 2001-02-16 Mark Kettenis <kettenis@gnu.org>
7157 * target.h (target_fetch_registers): Fix comment.
7159 2001-02-15 Andrew Cagney <ac131313@redhat.com>
7161 * f-exp.y: Include <ctype.h>.
7162 (parse_number): Ensure that ``i'' is always initialized.
7164 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
7166 * MAINTAINERS: Add myself to paper trail section.
7168 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7170 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
7171 * configure, config.in: Regenerate.
7172 * corelow.c: Include <sys/file.h> if present.
7174 2001-02-14 Andrew Cagney <ac131313@redhat.com>
7176 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
7177 declare when have SIGTTOU.
7179 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
7181 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
7183 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
7185 * MAINTAINERS: Update my email address.
7187 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
7189 * NEWS: Document that "info symbol" works with COFF debug info and
7192 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
7193 symbols whose SYMBOL_BFD_SECTION is NULL.
7195 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7197 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
7198 * xcoffsolib.c (xcoff_solib_address): Renamed from
7199 pc_load_segment_name. Return NULL if address is not in a shared
7200 library. Cleanup shared library name construction, using xasprintf.
7201 Format shared library member names consistent with format in exec.c.
7202 (solib_info): Format shared library member names consistent with
7204 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
7205 using xcoff_solib_address for PC_SOLIB definition.
7206 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
7209 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7211 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
7212 with xmalloc calls and cleanups.
7214 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7216 * rs6000-nat.c (child_xfer_memory): Add missing parameter
7217 'struct mem_attrib *' required by 2001-01-23 change.
7219 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
7221 Updates to "make TAGS":
7222 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
7223 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
7225 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
7227 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
7229 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
7231 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
7233 From Dean Luick <luick@cray.com>:
7234 * defs.h (continuation): Remove unused global variable.
7236 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
7238 * configure.tgt: Remove references to convex, pyramid, altos and
7240 * configure.host: Ditto.
7241 * MAINTAINERS: Ditto.
7244 * tahoe-tdep.c: Delete obsolete file.
7245 * pyr-xdep.c: Ditto.
7246 * pyr-tdep.c: Ditto.
7247 * convex-tdep.c: Ditto.
7248 * convex-xdep.c: Ditto.
7249 * config/tahoe/xm-tahoe.h: Ditto.
7250 * config/tahoe/tm-tahoe.h: Ditto.
7251 * config/tahoe/tahoe.mt: Ditto.
7252 * config/tahoe/tahoe.mh: Ditto.
7253 * config/pyr/xm-pyr.h: Ditto.
7254 * config/pyr/tm-pyr.h: Ditto.
7255 * config/pyr/pyramid.mt: Ditto.
7256 * config/pyr/pyramid.mh: Ditto.
7257 * config/m68k/xm-altos.h: Ditto.
7258 * config/m68k/tm-altos.h: Ditto.
7259 * config/m68k/altos.mt: Ditto.
7260 * config/m68k/altos.mh: Ditto.
7261 * config/convex/xm-convex.h: Ditto.
7262 * config/convex/tm-convex.h: Ditto.
7263 * config/convex/convex.mt: Ditto.
7264 * config/convex/convex.mh: Ditto.
7265 * config/convex/Convex.notes: Ditto.
7266 * config/arm/xm-arm.h: Ditto.
7267 * config/arm/nm-arm.h: Ditto.
7268 * config/arm/arm.mt: Ditto.
7269 * config/arm/arm.mh: Ditto.
7270 * arm-convert.s: Ditto.
7271 * arm-xdep.c: Ditto.
7272 * altos-xdep.c: Ditto.
7274 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
7276 * defs.h (internal_error, internal_verror): Add __FILE__ and
7278 * utils.c (internal_error, internal_verror): Update.
7280 * v850-tdep.c: Update calls to internal_error.
7286 * symm-nat.c: Ditto.
7287 * sparc-tdep.c: Ditto.
7290 * rs6000-tdep.c: Ditto.
7291 * rs6000-nat.c: Ditto.
7293 * remote-vx.c: Ditto.
7294 * remote-sim.c: Ditto.
7295 * remote-mips.c: Ditto.
7296 * regcache.c: Ditto.
7297 * objfiles.h: Ditto.
7298 * objfiles.c: Ditto.
7299 * mn10300-tdep.c: Ditto.
7300 * mips-tdep.c: Ditto.
7302 * m68k-tdep.c: Ditto.
7304 * language.c: Ditto.
7305 * infptrace.c: Ditto.
7306 * inferior.h: Ditto.
7308 * ia64-tdep.c: Ditto.
7309 * i386-tdep.c: Ditto.
7310 * i386-linux-nat.c: Ditto.
7311 * hppah-nat.c: Ditto.
7312 * go32-nat.c: Ditto.
7316 * event-loop.c: Ditto.
7317 * dwarf2read.c: Ditto.
7319 * d30v-tdep.c: Ditto.
7320 * d10v-tdep.c: Ditto.
7321 * cli/cli-setshow.c: Ditto.
7322 * cli/cli-script.c: Ditto.
7324 * breakpoint.c: Ditto.
7326 * arch-utils.c: Ditto.
7327 * a29k-tdep.c: Ditto.
7328 * gdb_assert.h: Ditto.
7329 * gdbarch.sh: Ditto.
7330 * gdbarch.h, gdbarch.c: Re-generate.
7332 2001-02-07 Andrew Cagney <ac131313@redhat.com>
7334 From Mark Kettenis <kettenis@gnu.org>:
7335 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
7337 2001-02-07 Andrew Cagney <ac131313@redhat.com>
7339 * remote-sim.c (dump_mem): Cleanup printf format argument.
7340 * MAINTAINERS: Update, mn10300-elf now builds.
7342 2001-02-07 Mark Kettenis <kettenis@gnu.org>
7344 * event-top.c: Remove duplicate #include <signal.h>.
7346 2001-02-06 Andrew Cagney <ac131313@redhat.com>
7348 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
7350 (save_inferior_pid): Restore the PID from that tempoary
7351 buffer. Delete the buffer.
7352 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
7354 2001-02-06 Andrew Cagney <ac131313@redhat.com>
7356 * MAINTAINERS: Add ``The Obvious Fix Rule''.
7358 2001-02-06 Andrew Cagney <ac131313@redhat.com>
7360 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
7362 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
7364 * gdbarch.sh: Include "gdb_assert.h".
7365 (struct gdbarch): Change ``nr_data'' to unsigned.
7366 (alloc_gdbarch_data, free_gdbarch_data): New functions.
7367 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
7368 architecture vector.
7369 (struct gdbarch_data, struct gdbarch_data_registration): Move init
7370 method to gdbarch_data. Add free method, make index unsigned.
7371 (struct gdbarch_data_registry): Make nr unsigned.
7372 (register_gdbarch_data): Add free parameter. Store in
7374 (init_gdbarch_data): Use set_gdbarch_data.
7375 (set_gdbarch_data): New function.
7377 * gdbarch.h, gdbarch.c: Re-generate.
7379 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7381 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
7382 fprintf_filtered with correct arguments.
7384 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
7385 Submitted by Paul Hilfinger (hilfingr@gnat.com)
7386 and Andrei Petrov (and@genesyslab.com).
7387 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
7388 must be allocated dynamically, since these are no longer constants.
7390 * regcache.c: Ditto.
7392 * sol-thread.c: Ditto.
7394 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
7395 work-around for a missing Sun header file in solaris for sparc64.
7397 2001-02-04 Philip Blundell <philb@gnu.org>
7399 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
7400 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
7401 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
7402 GET_THREAD_SIGNALS): Define.
7403 * arm-linux-nat.c (fill_gregset): Correct type of argument.
7404 (supply_gregset): Likewise.
7405 (fill_fpregset): Likewise.
7406 (supply_fpregset): Likewise.
7408 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
7410 * valops.c (value_cast): If casting a scalar to a pointer, do not
7411 issue a message about truncation unless it exceeds the length of
7412 an address, not the length of a pointer. This is because what the
7413 user gives us is an address, not a pointer, and we will ultimately
7414 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
7415 to a pointer. This allows things like "print *(int *)0x01000234"
7416 to work without generating a misleading message on a target having
7417 two byte pointers and four byte addresses.
7419 2001-02-05 Christopher Faylor <cgf@cygnus.com>
7421 * win32-nat.c: Change PTR to void * throughout.
7423 2001-02-05 J.T. Conklin <jtc@redback.com>
7425 * signals.h: Removed.
7426 * event-top.c (#include <signal.h>): Changed from signals.h.
7427 * inflow.c: Likewise.
7428 * mac-xdep.c: Likewise.
7429 * ser-pipe.c: Likewise.
7430 * ser-tcp.c: Likewise.
7431 * standalone.c: Likewise.
7433 * utils.c: Likewise.
7434 * Makefile.in: Removed signals.h from dependencies.
7436 2001-02-05 Christopher Faylor <cgf@cygnus.com>
7438 Change suggested by Dean Luick <luick@cray.com>
7439 * inferior.h (step_over_calls_kind): Remove trailing comma from
7441 (step_over_calls): Declare as extern rather than global.
7443 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7445 * sh-tdep.c: Update copyright.
7446 (sh_extract_return_value): Rewrite.
7447 (sh3e_sh4_extract_return_value): New function.
7448 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
7449 version of the function for sh3e and sh4 CPUs.
7451 2001-02-05 Michael Chastain <chastain@redhat.com>
7453 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
7454 to conform with interface change.
7456 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
7458 * config/djgpp/fnchange.lst: Tweak to make consistent with the
7461 * config/djgpp/djconfig.sh: Use explicit absolute file name when
7464 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
7465 UART_FIFO_WORKS is defined. Otherwise use outportb.
7466 From Francisco Pastor <fpastor.etra-id@etra.es>
7468 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
7469 with target.h's `to_xfer_memory' member.
7471 2001-02-02 J.T. Conklin <jtc@redback.com>
7473 * ppc-bdm.c (#include <signal.h>): Removed.
7474 * remote-array.c: Likewise.
7475 * remote-bug.c: Likewise.
7476 * remote-e7000.c: Likewise.
7477 * remote-mips.c: Likewise.
7478 * remote-os9k.c: Likewise.
7479 * remote-st.c: Likewise.
7480 * remote-udi.c: Likewise.
7481 * remote-vx29k.c: Likewise.
7482 * remote-vx68.c: Likewise.
7483 * remote-vx960.c: Likewise.
7484 * remote-vxmips.c: Likewise.
7485 * remote-vxsparc.c: Likewise.
7487 2001-02-02 John Moore <jmoore@redhat.com>
7489 * remote-utils.h (sr_set_device): Changed free() to xfree() where
7490 appropriate. Also changed Copyright to include 2001.
7491 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
7492 * value.h (value_free): Likewise.
7493 * gdbarch.sh (gdbarch_free): Likewise.
7494 * gdbarch.c, gdbarch.h: Regenerated.
7496 2001-02-02 John Moore <jmoore@redhat.com>
7498 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
7499 xfree(). Also changed Copyright to include 2001.
7501 2001-02-02 J.T. Conklin <jtc@redback.com>
7503 * monitor.c (#include "gdb_wait.h"): Removed.
7505 * ppc-bdm.c: Likewise.
7506 * remote-adapt.c: Likewise.
7507 * remote-array.c: Likewise.
7508 * remote-bug.c: Likewise.
7509 * remote-e7000.c: Likewise.
7510 * remote-eb.c: Likewise.
7511 * remote-es.c: Likewise.
7512 * remote-mips.c: Likewise.
7513 * remote-mm.c: Likewise.
7514 * remote-nindy.c: Likewise.
7515 * remote-os9k.c: Likewise.
7516 * remote-rdi.c: Likewise.
7517 * remote-rdp.c: Likewise.
7518 * remote-sds.c: Likewise.
7519 * remote-sim.c: Likewise.
7520 * remote-st.c: Likewise.
7521 * remote-udi.c: Likewise.
7522 * remote-vx.c: Likewise.
7523 * remote-vx29k.c: Likewise.
7524 * remote-vx68.c: Likewise.
7525 * remote-vx960.c: Likewise.
7526 * remote-vxmips.c: Likewise.
7527 * remote-vxsparc.c: Likewise.
7528 * remote.c: Likewise.
7529 * ser-pipe.c: Likewise.
7530 * ser-unix.c: Likewise.
7531 * Makefile.in: Updated dependencies.
7533 2001-01-31 David Smith <dsmith@redhat.com>
7535 * event-loop.c: Change inclusion of string.h to gdb_string.h and
7536 updated the copyright notice.
7537 * ser-pipe.c: Ditto.
7538 * mi/mi-cmds.c: Ditto.
7539 * mi/mi-console.c: Ditto.
7540 * mi/mi-getopt.c: Ditto.
7541 * mi/mi-parse.c: Ditto.
7543 2001-01-31 David Smith <dsmith@redhat.com>
7545 * MAINTAINERS: Add David Smith to Write After Approval list.
7547 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
7549 * cli/cli-utils.c (putchar_filtered): Move function from here.
7550 * utils.c (putchar_filtered): To here.
7551 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
7552 * defs.h (putchar_filtered): To here.
7554 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
7556 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
7557 AC_FUNC_VFORK macro.
7558 * config.in, configure: Re-generate.
7560 * gdb_vfork.h: New file.
7561 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
7562 * fork-child.c (fork_inferior): Ditto.
7564 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
7566 * defs.h (strsave): Delete declaration.
7567 * utils.c (strsave): Delete definition.
7568 * TODO (strsave): Update
7570 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
7571 * sparcl-tdep.c (sparclite_open): Ditto.
7572 * mips-tdep.c (mips_set_processor_type_command): Ditto.
7573 (_initialize_mips_tdep): Ditto.
7574 * solib.c (solib_open): Ditto.
7575 * symfile.c (add_filename_language): Ditto.
7576 (set_ext_lang_command): Ditto.
7577 * source.c (init_source_path): Ditto.
7579 * sh3-rom.c (sh3_open): Ditto.
7581 * serial.c (serial_open): Ditto.
7582 * remote-mips.c (common_open): Ditto.
7583 * monitor.c (monitor_open): Ditto.
7584 * m32r-rom.c (m32r_upload_command): Ditto.
7585 * infcmd.c (path_command): Ditto.
7586 * f-exp.y (parse_number): Ditto.
7587 * breakpoint.c (create_longjmp_breakpoint): Ditto.
7588 (create_thread_event_breakpoint): Ditto.
7589 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
7590 (_initialize_arc_tdep): Ditto.
7592 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
7594 * cli/cli-script.c (define_command): Check for a bad hook value in
7597 2001-01-30 J.T. Conklin <jtc@redback.com>
7599 * configure/sh/embed.mt: New file.
7600 * configure/sh/linux.mt: New file.
7601 * configure/sh/sh.mt: Removed.
7602 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
7605 2001-01-29 Michael Chastain <chastain@redhat.com>
7607 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
7608 symbol comparisons in binary search.
7610 2001-01-27 Christopher Faylor <cgf@cygnus.com>
7612 * win32-nat.c (child_xfer_memory): Add missing argument required by
7615 2001-01-27 Mark Kettenis <kettenis@gnu.org>
7617 * ui-out.c (do_list_end): New function.
7618 (make_cleanup_ui_out_list_end): New function.
7619 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
7620 * stack.c (print_frame) [UI_OUT]: Call
7621 make_cleanup_ui_out_list_end to make sure we mark the end of the
7622 list if we do a non-local exit. At the end of the function,
7623 instead of calling ui_out_list_end directly, let do_cleanups
7626 2001-01-26 Fernando Nasser <fnasser@redhat.com>
7628 Fix double parsing of filenames passed as command line arguments
7629 to GDB (causes weird handling of escape characters).
7630 Also, remove dependencies on the CLI from libgdb.
7631 * call-cmds.h: Remove declaration of exec_file_command().
7632 * gdbcore.h: Remove declaration of exec_file_command().
7633 Add declarations for exec_open() and exec_file_clear().
7634 * symfile.h: Add declarations for symbol_file_add_main() and
7635 symbol_file_clear().
7636 * exec.c (exec_open): New function. Implements to_open for exec
7638 (exec_file_clear): New function. Makes GDB forget about a previously
7639 specified executable file.
7640 (exec_file_attach): Move parsing of arguments from here ...
7641 (exec_file_command): ... to here.
7642 (init_exec_ops): Use exec_open(), not exec_file_command() to
7643 implement to_open for exec targets.
7644 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
7645 with default values. Used when the file name has already been parsed.
7646 (symbol_file_clear): New function. Makes GDB forget about previously
7648 (symbol_file_command): Call the above function instead of inline code.
7649 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
7651 (captured_main): Call exec_file_attach() and symbol_file_add_main()
7652 instead of exec_file_command() and symbol_file_command().
7653 (captured_main): Add comment.
7654 * corefile.c: Include "symfile.h".
7655 (core_file_command): Call symbol_file_add_main() instead of
7656 symbol_file_command().
7657 (reopen_exec_file): Call exec_open() instead of exec_file_command().
7658 * infcmd.c: Include "symfile.h".
7659 (attach_command): Call symbol_file_add_main() instead of
7660 symbol_file_command().
7661 * infrun.c: Remove comment about the inclusion of "symfile.h",
7662 not any longer appropriate.
7663 (follow_exec): Call symbol_file_add_main() instead of
7664 symbol_file_command().
7665 * remote-es.c: Include "symfile.h".
7666 (es1800_load): Call symbol_file_add_main() instead of
7667 symbol_file_command().
7668 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
7669 not any longer appropriate.
7670 (vx-wait): Call symbol_file_add_main() instead of
7671 symbol_file_command().
7672 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
7673 instead of symbol_file_command().
7674 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
7675 symbol_file_add_main() instead of exec_file_command() and
7676 symbol_file_command().
7677 * Makefile.in: Update dependencies.
7679 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
7681 * remote-udi.c (udi_open): Change strdup to xstrdup.
7682 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
7683 Update copyright message.
7684 * varobj.c (delete_variable_1): Likewise.
7686 * gdb_string.h: Remove declaration of strdup. Update copyright
7688 * config/xm-mpw.h: Likewise.
7689 * config/i386/xm-i386mach.h: Likewise.
7690 * config/m68k/xm-apollo68b.h: Likewise.
7691 * config/m68k/xm-hp300bsd.h: Likewise.
7692 * config/rs6000/xm-rs6000.h: Likewise.
7693 * config/vax/xm-vaxult.h: Remove declaration of strdup.
7694 * config/vax/xm-vaxult2.h: Likewise.
7696 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
7698 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
7700 2001-01-25 J.T. Conklin <jtc@redback.com>
7702 * target.c (target_xfer_memory_partial): Return -1 on failure due
7703 to invalid access mode attribute.
7705 2001-01-25 Christopher Faylor <cgf@cygnus.com>
7707 * win32-nat.c (_initialize_core_win32): Prototype correctly.
7709 2001-01-25 Mark Kettenis <kettenis@gnu.org>
7711 * config/alpha/tm-fbsd.h: Update copyright.
7712 (USE_STRUCT_CONVENTION): Define in terms of
7713 alphabsd_use_struct_convention.
7714 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
7715 * alphafbsd-tdep.c: New file.
7717 2001-01-24 Fernando Nasser <fnasser@redhat.com>
7719 * top.c (print_gdb_version): Update Copyright year.
7721 2001-01-24 J.T. Conklin <jtc@redback.com>
7723 * dcache.c (dcache_write_line): Fix typo.
7725 * memattr.c (delete_mem_region): Replace free() with xfree().
7726 (mem_number): Add explicit type.
7728 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
7729 (rw_common): Likewise.
7731 2001-01-24 Fernando Nasser <fnasser@redhat.com>
7733 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
7734 for the inferior program arguments.
7735 (run_command, run_no_args_command, init_infcmd)): Use accessor
7736 functions to set the inferior program arguments.
7737 * inferior.h: Add definitions to the accessor functions above.
7739 2001-01-23 Jim Blandy <jimb@redhat.com>
7741 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
7742 Implement these correctly, using make_cv_type.
7744 2001-01-23 J.T. Conklin <jtc@redback.com>
7746 * exec.c (xfer_memory): Add attrib argument.
7747 * infptrace.c (child_xfer_memory): Likewise.
7748 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
7749 * monitor.c (monitor_xfer_memory): Likewise.
7750 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
7751 * remote-array.c (array_xfer_memory): Likewise.
7752 * remote-bug.c (bug_xfer_memory): Likewise.
7753 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
7754 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
7755 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
7756 * remote-mips.c (mips_xfer_memory): Likewise.
7757 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
7758 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
7759 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
7760 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
7761 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
7762 * remote-sds.c (sds_xfer_memory): Likewise.
7763 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
7764 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
7765 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
7766 * remote-vx.c (vx_xfer_memory): Likewise.
7767 * remote.c (remote_xfer_memory): Likewise.
7768 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
7769 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
7770 * thread-db.c (thread_db_xfer_memory): Likewise.
7772 * target.h (#include "memattr.h"): Added.
7773 (target_ops.to_xfer_memory): Add attrib argument.
7775 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
7776 * dcache.h (set_dcache_state): Removed declaration.
7777 * dcache.c (set_dcache_state): Removed definition
7779 * dcache.c: Update module comment, as dcache is now enabled and
7780 disabled with memory region attributes instead of by the global
7781 variable "remotecache". Add comment describing the interaction
7782 between dcache and memory region attributes.
7783 (dcache_xfer_memory): Add comment describing benefits of moving
7784 cache writeback to a higher level.
7785 (dcache_struct): Removed cache_has_stuff field. This was used to
7786 record whether the cache had been accessed in order to invalidate
7787 it when it was disabled. However, this is not needed because the
7788 cache is write through and the code that enables, disables, and
7789 deletes memory regions invalidate the cache. Add comment which
7790 suggests that we could be more selective and only invalidate those
7791 cache lines containing data from those memory regions.
7792 (dcache_invalidate): Updated.
7793 (dcache_xfer_memory): Updated.
7795 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
7796 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
7797 perform a uncached transfer if dcache_enabled_p was clear. This
7798 function is now only called if caching is enabled for the memory
7800 (dcache_info): Always print cache info.
7802 * target.c (do_xfer_memory): Add attrib argument.
7803 (target_xfer_memory, target_xfer_memory_partial): Break transfer
7804 into chunks defined by memory regions, pass region attributes to
7806 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
7808 * Makefile.in (SFILES): Add memattr.c.
7809 (COMMON_OBS): Add memattr.o.
7810 (dcache.o): Add target.h to dependencies.
7811 * memattr.c: New file.
7812 * memattr.h: Likewise.
7814 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
7815 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
7816 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
7817 * gdbserver/low-sim.c (#include "defs.h"): Removed.
7818 (mygeneric_load): Rename from generic_load.
7820 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
7821 (#include "defs.h"): Removed.
7822 (inferior_pid, perror_with_name): Remove declarations.
7823 * gdbserver/low-linux.c: Likewise.
7824 * gdbserver/low-nbsd.c: Likewise.
7825 * gdbserver/low-sparc.c: Likewise.
7826 * gdbserver/low-sun3.c: Likewise.
7828 * i386-stub.c: Re-indent.
7829 * m68k-stub.c: Re-indent.
7831 2001-01-22 Nicholas Duffek <nsd@redhat.com>
7833 * gdbarch.sh (PARM_BOUNDARY): Define.
7834 * gdbarch.c: Regenerate.
7835 * gdbarch.h: Regenerate.
7837 2001-01-22 J.T. Conklin <jtc@redback.com>
7839 * ns32k-tdep.c: #include "frame.h"
7840 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
7841 appears to have been inadvertantly removed sometime in May 1999.
7843 * Revert 2000-11-09 changes where shared library objects were
7844 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
7845 we'd like to be able to debug dynamically linked executables,
7846 this makes it impossible to build a cross debugger on a many
7849 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
7850 * config/i386/nbsdelf.mt: Likewise.
7851 * config/m68k/nbsd.mt: Likewise.
7852 * config/ns32k/nbsd.mt: Likewise.
7853 * config/powerpc/nbsd.mt: Likewise.
7854 * config/sparc/nbsd.mt: Likewise.
7855 * config/sparc/nbsdelf.mt: Likewise.
7856 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
7857 * config/i386/nbsdelf.mh: Likewise.
7858 * config/m68k/nbsd.mh: Likewise.
7859 * config/ns32k/nbsd.mh: Likewise.
7860 * config/powerpc/nbsd.mh: Likewise.
7861 * config/sparc/nbsd.mh: Likewise.
7863 2001-01-19 Jason Merrill <jason@redhat.com>
7865 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
7866 (process_one_symbol): Likewise.
7867 * dwarfread.c (handle_producer): Likewise.
7869 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
7871 * configure.in (build_warnings): Disable -Wuninitialized until GDB
7872 compiles with -Wuninitialized,-Werror.
7873 * configure: Regenerate.
7875 * MAINTAINERS: Add list of buildable targets.
7877 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
7879 * defs.h (STRCMP): Delete macro.
7881 * objfiles.c (objfile_relocate): Replace STRCMP with call to
7883 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7884 * symfile.c (compare_symbols): Ditto.
7885 * standalone.c (open): Ditto.
7886 * remote-es.c (verify_break): Ditto.
7887 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
7889 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
7891 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
7893 * varobj.c (FREEIF): Delete macro.
7894 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
7897 2001-01-18 Nick Clifton <nickc@redhat.com>
7899 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
7900 (arc_print_insn): No bfd available, so pass NULL to
7901 arc_get_disassembler.
7903 2001-01-09 James Ingham <jingham@inghji.apple.com>
7905 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
7906 a mangled symbol rather than recursing into lookup_symbol, since
7907 this will just re-unmangle the name & call lookup_symbol_aux -
7908 leading to an infinite recursion.
7910 2001-01-18 Mark Kettenis <kettenis@gnu.org>
7912 * infcmd.c (print_return_value): Restore another space lost by
7913 switch to UIOUT. ``$NN='' should be ``$NN =''.
7915 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
7917 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
7918 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
7919 definition in parenthesis.
7921 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
7923 From 2000-10-27 Mark Salter <msalter@redhat.com>:
7924 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
7926 (remote_insert_hw_breakpoint): Ditto.
7928 2001-01-17 J.T. Conklin <jtc@redback.com>
7930 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
7931 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
7932 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
7933 * m68knbsd-tdep.c: New file.
7935 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
7937 * m68knbsd-nat.c: #include gdbcore.h.
7939 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
7941 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
7943 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
7945 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
7946 goes away -- just return false (ie. not stopped by watchpoint).
7947 * source.c (openp): Fix typo in comment.
7949 2001-01-12 Nicholas Duffek <nsd@redhat.com>
7951 * blockframe.c (generic_get_saved_register): Spelling fix.
7952 * frame.h (FRAME_FP): Spelling fix.
7954 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
7956 * infcmd.c (print_return_value): Restore space lost by switch to
7957 UIOUT. ``$NN='' should be ``$NN =''.
7959 2001-01-08 Nicholas Duffek <nsd@redhat.com>
7961 * regcache.c (set_register_cached, register_buffer,
7962 real_register, pseudo_register fetch_register, store_register):
7964 (register_changed, read_relative_register_raw_bytes_for_frame,
7965 registers_changed, registers_fetched, read_register_bytes,
7966 read_register_gen, write_register_gen, read_register,
7967 read_signed_register, write_register, supply_register): Replace
7968 register_valid[] with register_cached() and
7969 set_register_cached().
7970 (read_register_bytes, read_register_gen, write_register_gen,
7971 read_register, read_signed_register, write_register,
7972 supply_register): Replace registers[] with register_buffer().
7973 (read_register_bytes, read_register_gen, read_register,
7974 read_signed_register): Call fetch_register().
7975 (write_register_gen, write_register): Call real_register() and
7977 (write_register_bytes): Call store_register().
7978 * value.h (set_register_cached, register_buffer): Prototype.
7979 * remote.c (remote_fetch_registers): Allocate regs[] with a
7980 run-time size. Replace register_valid[] with
7981 set_register_cached().
7982 (store_register_using_P, remote_store_registers): Replace
7983 registers[] with register_buffer().
7985 2001-01-08 Nicholas Duffek <nsd@redhat.com>
7987 * regcache.c: Change "write-back" comment to "write-through".
7988 Change "regno" to "regnum".
7989 (read_register, read_signed_register): Remove "raw" from return
7991 (supply_register): Spelling fix.
7992 * value.h: Change "regno" to "regnum".
7994 2001-01-08 Fernando Nasser <fnasser@redhat.com>
7996 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
7999 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8001 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
8003 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8005 * valops.c (VALUE_SUBSTRING_START): Delete.
8007 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8009 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
8010 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
8011 (cli_utils_h): New variable.
8012 (cli/cli-utils.o): New rule.
8013 * cli/cli-utils.c: New file.
8014 * cli/cli-utils.h: New file.
8016 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8018 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
8019 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
8021 2001-01-03 J.T. Conklin <jtc@redback.com>
8023 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
8026 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
8028 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
8029 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
8031 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
8032 Update copyright notice.
8034 For older changes see ChangeLog-2000
8040 version-control: never