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