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