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