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