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