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