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