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