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